agent-tower 0.1.6 → 0.1.7

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.
Files changed (62) hide show
  1. package/dist/cli.js +11 -1
  2. package/dist/cli.js.map +1 -1
  3. package/dist/mcp/index.js +21 -5
  4. package/dist/mcp/index.js.map +1 -1
  5. package/dist/routes/filesystem.d.ts.map +1 -1
  6. package/dist/routes/filesystem.js +62 -0
  7. package/dist/routes/filesystem.js.map +1 -1
  8. package/dist/routes/projects.d.ts.map +1 -1
  9. package/dist/routes/projects.js +6 -0
  10. package/dist/routes/projects.js.map +1 -1
  11. package/dist/services/copy-files.service.d.ts +8 -0
  12. package/dist/services/copy-files.service.d.ts.map +1 -0
  13. package/dist/services/copy-files.service.js +82 -0
  14. package/dist/services/copy-files.service.js.map +1 -0
  15. package/dist/services/notifications/notification.service.d.ts.map +1 -1
  16. package/dist/services/notifications/notification.service.js +5 -2
  17. package/dist/services/notifications/notification.service.js.map +1 -1
  18. package/dist/services/project.service.d.ts +15 -0
  19. package/dist/services/project.service.d.ts.map +1 -1
  20. package/dist/services/project.service.js +3 -0
  21. package/dist/services/project.service.js.map +1 -1
  22. package/dist/services/workspace.service.d.ts +17 -0
  23. package/dist/services/workspace.service.d.ts.map +1 -1
  24. package/dist/services/workspace.service.js +39 -0
  25. package/dist/services/workspace.service.js.map +1 -1
  26. package/dist/web/assets/AgentDemoPage-CHlsAeGt.js +1 -0
  27. package/dist/web/assets/{DemoPage-C4Z_ftHI.js → DemoPage-BuI7acbi.js} +1 -1
  28. package/dist/web/assets/NotificationSettingsPage-BGoKo6r7.js +1 -0
  29. package/dist/web/assets/{ProfileSettingsPage-Cs93rTRr.js → ProfileSettingsPage-DuWWMW-Z.js} +2 -2
  30. package/dist/web/assets/{ProjectKanbanPage-BmlRVfzo.js → ProjectKanbanPage-DsCdIAOu.js} +26 -26
  31. package/dist/web/assets/ProjectSettingsPage-CE8pGEMA.js +2 -0
  32. package/dist/web/assets/{api-client-CEBkg5lt.js → api-client-CvXTcmYq.js} +1 -1
  33. package/dist/web/assets/chevron-down-ml0TDwNN.js +1 -0
  34. package/dist/web/assets/{circle-alert-BEozlsMd.js → circle-alert-BxinJD1E.js} +1 -1
  35. package/dist/web/assets/code-block-OCS4YCEC-BcChVPQR.js +2 -0
  36. package/dist/web/assets/folder-picker-DQQA9MJl.js +1 -0
  37. package/dist/web/assets/{index-BuAijQvi.js → index-Bd8P8ri4.js} +7 -7
  38. package/dist/web/assets/index-RpcjVTWm.css +1 -0
  39. package/dist/web/assets/{loader-circle-yEIqsdJ1.js → loader-circle-DLsnUkgW.js} +1 -1
  40. package/dist/web/assets/{mermaid-NOHMQCX5-CIqtI2jF.js → mermaid-NOHMQCX5-hAoNEzYT.js} +43 -43
  41. package/dist/web/assets/modal-DAr55LDv.js +1 -0
  42. package/dist/web/assets/{query-keys-BD_s_Etj.js → query-keys-BAUd6IYD.js} +1 -1
  43. package/dist/web/assets/select-Bi3jfZzX.js +1 -0
  44. package/dist/web/assets/{use-profiles-Rh8rBsAt.js → use-profiles-DSKFDf9E.js} +1 -1
  45. package/dist/web/assets/use-projects-BUtm-JeL.js +1 -0
  46. package/dist/web/assets/x-I40qDFta.js +1 -0
  47. package/dist/web/index.html +2 -2
  48. package/node_modules/@agent-tower/shared/dist/types.d.ts +11 -0
  49. package/node_modules/@agent-tower/shared/dist/types.d.ts.map +1 -1
  50. package/node_modules/@agent-tower/shared/dist/types.js.map +1 -1
  51. package/package.json +1 -1
  52. package/prisma/CLAUDE.md +11 -0
  53. package/prisma/migrations/20260225070554_add_project_config/migration.sql +117 -0
  54. package/prisma/migrations/20260225073151_add_quick_commands/migration.sql +2 -0
  55. package/prisma/migrations/migration_lock.toml +3 -0
  56. package/prisma/schema.prisma +3 -0
  57. package/dist/web/assets/AgentDemoPage-WdWEQtyU.js +0 -1
  58. package/dist/web/assets/NotificationSettingsPage-FrLfgt9y.js +0 -1
  59. package/dist/web/assets/code-block-OCS4YCEC-CGgYYS4A.js +0 -2
  60. package/dist/web/assets/folder-picker-BP3x3phB.js +0 -1
  61. package/dist/web/assets/index-CxV866Yg.css +0 -1
  62. package/dist/web/assets/modal-BoX2RXaV.js +0 -1
@@ -1,13 +1,13 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ProjectKanbanPage-BmlRVfzo.js","assets/query-keys-BD_s_Etj.js","assets/mermaid-NOHMQCX5-CIqtI2jF.js","assets/api-client-CEBkg5lt.js","assets/mermaid-NOHMQCX5-lI9o3AWT.css","assets/modal-BoX2RXaV.js","assets/loader-circle-yEIqsdJ1.js","assets/ProjectKanbanPage-G5OQeJvU.css","assets/DemoPage-C4Z_ftHI.js","assets/AgentDemoPage-WdWEQtyU.js","assets/use-profiles-Rh8rBsAt.js","assets/ProfileSettingsPage-Cs93rTRr.js","assets/NotificationSettingsPage-FrLfgt9y.js","assets/circle-alert-BEozlsMd.js"])))=>i.map(i=>d[i]);
2
- function a0(a,i){for(var r=0;r<i.length;r++){const u=i[r];if(typeof u!="string"&&!Array.isArray(u)){for(const c in u)if(c!=="default"&&!(c in a)){const f=Object.getOwnPropertyDescriptor(u,c);f&&Object.defineProperty(a,c,f.get?f:{enumerable:!0,get:()=>u[c]})}}}return Object.freeze(Object.defineProperty(a,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"]'))u(c);new MutationObserver(c=>{for(const f of c)if(f.type==="childList")for(const h of f.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&u(h)}).observe(document,{childList:!0,subtree:!0});function r(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 u(c){if(c.ep)return;c.ep=!0;const f=r(c);fetch(c.href,f)}})();function Zy(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var cc={exports:{}},er={};var km;function l0(){if(km)return er;km=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function r(u,c,f){var h=null;if(f!==void 0&&(h=""+f),c.key!==void 0&&(h=""+c.key),"key"in c){f={};for(var m in c)m!=="key"&&(f[m]=c[m])}else f=c;return c=f.ref,{$$typeof:a,type:u,key:h,ref:c!==void 0?c:null,props:f}}return er.Fragment=i,er.jsx=r,er.jsxs=r,er}var Km;function i0(){return Km||(Km=1,cc.exports=l0()),cc.exports}var be=i0(),fc={exports:{}},Te={};var Zm;function r0(){if(Zm)return Te;Zm=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),h=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),R=Symbol.iterator;function D(_){return _===null||typeof _!="object"?null:(_=R&&_[R]||_["@@iterator"],typeof _=="function"?_:null)}var H={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},V=Object.assign,K={};function G(_,B,q){this.props=_,this.context=B,this.refs=K,this.updater=q||H}G.prototype.isReactComponent={},G.prototype.setState=function(_,B){if(typeof _!="object"&&typeof _!="function"&&_!=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,_,B,"setState")},G.prototype.forceUpdate=function(_){this.updater.enqueueForceUpdate(this,_,"forceUpdate")};function Z(){}Z.prototype=G.prototype;function P(_,B,q){this.props=_,this.context=B,this.refs=K,this.updater=q||H}var ge=P.prototype=new Z;ge.constructor=P,V(ge,G.prototype),ge.isPureReactComponent=!0;var pe=Array.isArray;function ye(){}var A={H:null,A:null,T:null,S:null},ae=Object.prototype.hasOwnProperty;function Ee(_,B,q){var J=q.ref;return{$$typeof:a,type:_,key:B,ref:J!==void 0?J:null,props:q}}function ze(_,B){return Ee(_.type,B,_.props)}function Oe(_){return typeof _=="object"&&_!==null&&_.$$typeof===a}function Ae(_){var B={"=":"=0",":":"=2"};return"$"+_.replace(/[=:]/g,function(q){return B[q]})}var Ke=/\/+/g;function Qe(_,B){return typeof _=="object"&&_!==null&&_.key!=null?Ae(""+_.key):B.toString(36)}function _e(_){switch(_.status){case"fulfilled":return _.value;case"rejected":throw _.reason;default:switch(typeof _.status=="string"?_.then(ye,ye):(_.status="pending",_.then(function(B){_.status==="pending"&&(_.status="fulfilled",_.value=B)},function(B){_.status==="pending"&&(_.status="rejected",_.reason=B)})),_.status){case"fulfilled":return _.value;case"rejected":throw _.reason}}throw _}function O(_,B,q,J,I){var ue=typeof _;(ue==="undefined"||ue==="boolean")&&(_=null);var we=!1;if(_===null)we=!0;else switch(ue){case"bigint":case"string":case"number":we=!0;break;case"object":switch(_.$$typeof){case a:case i:we=!0;break;case E:return we=_._init,O(we(_._payload),B,q,J,I)}}if(we)return I=I(_),we=J===""?"."+Qe(_,0):J,pe(I)?(q="",we!=null&&(q=we.replace(Ke,"$&/")+"/"),O(I,B,q,"",function(hn){return hn})):I!=null&&(Oe(I)&&(I=ze(I,q+(I.key==null||_&&_.key===I.key?"":(""+I.key).replace(Ke,"$&/")+"/")+we)),B.push(I)),1;we=0;var Se=J===""?".":J+":";if(pe(_))for(var Ze=0;Ze<_.length;Ze++)J=_[Ze],ue=Se+Qe(J,Ze),we+=O(J,B,q,ue,I);else if(Ze=D(_),typeof Ze=="function")for(_=Ze.call(_),Ze=0;!(J=_.next()).done;)J=J.value,ue=Se+Qe(J,Ze++),we+=O(J,B,q,ue,I);else if(ue==="object"){if(typeof _.then=="function")return O(_e(_),B,q,J,I);throw B=String(_),Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys(_).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.")}return we}function k(_,B,q){if(_==null)return _;var J=[],I=0;return O(_,J,"","",function(ue){return B.call(q,ue,I++)}),J}function F(_){if(_._status===-1){var B=_._result;B=B(),B.then(function(q){(_._status===0||_._status===-1)&&(_._status=1,_._result=q)},function(q){(_._status===0||_._status===-1)&&(_._status=2,_._result=q)}),_._status===-1&&(_._status=0,_._result=B)}if(_._status===1)return _._result.default;throw _._result}var ce=typeof reportError=="function"?reportError:function(_){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var B=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof _=="object"&&_!==null&&typeof _.message=="string"?String(_.message):String(_),error:_});if(!window.dispatchEvent(B))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",_);return}console.error(_)},de={map:k,forEach:function(_,B,q){k(_,function(){B.apply(this,arguments)},q)},count:function(_){var B=0;return k(_,function(){B++}),B},toArray:function(_){return k(_,function(B){return B})||[]},only:function(_){if(!Oe(_))throw Error("React.Children.only expected to receive a single React element child.");return _}};return Te.Activity=p,Te.Children=de,Te.Component=G,Te.Fragment=r,Te.Profiler=c,Te.PureComponent=P,Te.StrictMode=u,Te.Suspense=g,Te.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=A,Te.__COMPILER_RUNTIME={__proto__:null,c:function(_){return A.H.useMemoCache(_)}},Te.cache=function(_){return function(){return _.apply(null,arguments)}},Te.cacheSignal=function(){return null},Te.cloneElement=function(_,B,q){if(_==null)throw Error("The argument must be a React element, but you passed "+_+".");var J=V({},_.props),I=_.key;if(B!=null)for(ue in B.key!==void 0&&(I=""+B.key),B)!ae.call(B,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&B.ref===void 0||(J[ue]=B[ue]);var ue=arguments.length-2;if(ue===1)J.children=q;else if(1<ue){for(var we=Array(ue),Se=0;Se<ue;Se++)we[Se]=arguments[Se+2];J.children=we}return Ee(_.type,I,J)},Te.createContext=function(_){return _={$$typeof:h,_currentValue:_,_currentValue2:_,_threadCount:0,Provider:null,Consumer:null},_.Provider=_,_.Consumer={$$typeof:f,_context:_},_},Te.createElement=function(_,B,q){var J,I={},ue=null;if(B!=null)for(J in B.key!==void 0&&(ue=""+B.key),B)ae.call(B,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(I[J]=B[J]);var we=arguments.length-2;if(we===1)I.children=q;else if(1<we){for(var Se=Array(we),Ze=0;Ze<we;Ze++)Se[Ze]=arguments[Ze+2];I.children=Se}if(_&&_.defaultProps)for(J in we=_.defaultProps,we)I[J]===void 0&&(I[J]=we[J]);return Ee(_,ue,I)},Te.createRef=function(){return{current:null}},Te.forwardRef=function(_){return{$$typeof:m,render:_}},Te.isValidElement=Oe,Te.lazy=function(_){return{$$typeof:E,_payload:{_status:-1,_result:_},_init:F}},Te.memo=function(_,B){return{$$typeof:y,type:_,compare:B===void 0?null:B}},Te.startTransition=function(_){var B=A.T,q={};A.T=q;try{var J=_(),I=A.S;I!==null&&I(q,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then(ye,ce)}catch(ue){ce(ue)}finally{B!==null&&q.types!==null&&(B.types=q.types),A.T=B}},Te.unstable_useCacheRefresh=function(){return A.H.useCacheRefresh()},Te.use=function(_){return A.H.use(_)},Te.useActionState=function(_,B,q){return A.H.useActionState(_,B,q)},Te.useCallback=function(_,B){return A.H.useCallback(_,B)},Te.useContext=function(_){return A.H.useContext(_)},Te.useDebugValue=function(){},Te.useDeferredValue=function(_,B){return A.H.useDeferredValue(_,B)},Te.useEffect=function(_,B){return A.H.useEffect(_,B)},Te.useEffectEvent=function(_){return A.H.useEffectEvent(_)},Te.useId=function(){return A.H.useId()},Te.useImperativeHandle=function(_,B,q){return A.H.useImperativeHandle(_,B,q)},Te.useInsertionEffect=function(_,B){return A.H.useInsertionEffect(_,B)},Te.useLayoutEffect=function(_,B){return A.H.useLayoutEffect(_,B)},Te.useMemo=function(_,B){return A.H.useMemo(_,B)},Te.useOptimistic=function(_,B){return A.H.useOptimistic(_,B)},Te.useReducer=function(_,B,q){return A.H.useReducer(_,B,q)},Te.useRef=function(_){return A.H.useRef(_)},Te.useState=function(_){return A.H.useState(_)},Te.useSyncExternalStore=function(_,B,q){return A.H.useSyncExternalStore(_,B,q)},Te.useTransition=function(){return A.H.useTransition()},Te.version="19.2.4",Te}var Jm;function Yc(){return Jm||(Jm=1,fc.exports=r0()),fc.exports}var C=Yc();const W=Zy(C),s0=a0({__proto__:null,default:W},[C]);var dc={exports:{}},tr={},hc={exports:{}},mc={};var Fm;function u0(){return Fm||(Fm=1,(function(a){function i(O,k){var F=O.length;O.push(k);e:for(;0<F;){var ce=F-1>>>1,de=O[ce];if(0<c(de,k))O[ce]=k,O[F]=de,F=ce;else break e}}function r(O){return O.length===0?null:O[0]}function u(O){if(O.length===0)return null;var k=O[0],F=O.pop();if(F!==k){O[0]=F;e:for(var ce=0,de=O.length,_=de>>>1;ce<_;){var B=2*(ce+1)-1,q=O[B],J=B+1,I=O[J];if(0>c(q,F))J<de&&0>c(I,q)?(O[ce]=I,O[J]=F,ce=J):(O[ce]=q,O[B]=F,ce=B);else if(J<de&&0>c(I,F))O[ce]=I,O[J]=F,ce=J;else break e}}return k}function c(O,k){var F=O.sortIndex-k.sortIndex;return F!==0?F:O.id-k.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;a.unstable_now=function(){return f.now()}}else{var h=Date,m=h.now();a.unstable_now=function(){return h.now()-m}}var g=[],y=[],E=1,p=null,R=3,D=!1,H=!1,V=!1,K=!1,G=typeof setTimeout=="function"?setTimeout:null,Z=typeof clearTimeout=="function"?clearTimeout:null,P=typeof setImmediate<"u"?setImmediate:null;function ge(O){for(var k=r(y);k!==null;){if(k.callback===null)u(y);else if(k.startTime<=O)u(y),k.sortIndex=k.expirationTime,i(g,k);else break;k=r(y)}}function pe(O){if(V=!1,ge(O),!H)if(r(g)!==null)H=!0,ye||(ye=!0,Ae());else{var k=r(y);k!==null&&_e(pe,k.startTime-O)}}var ye=!1,A=-1,ae=5,Ee=-1;function ze(){return K?!0:!(a.unstable_now()-Ee<ae)}function Oe(){if(K=!1,ye){var O=a.unstable_now();Ee=O;var k=!0;try{e:{H=!1,V&&(V=!1,Z(A),A=-1),D=!0;var F=R;try{t:{for(ge(O),p=r(g);p!==null&&!(p.expirationTime>O&&ze());){var ce=p.callback;if(typeof ce=="function"){p.callback=null,R=p.priorityLevel;var de=ce(p.expirationTime<=O);if(O=a.unstable_now(),typeof de=="function"){p.callback=de,ge(O),k=!0;break t}p===r(g)&&u(g),ge(O)}else u(g);p=r(g)}if(p!==null)k=!0;else{var _=r(y);_!==null&&_e(pe,_.startTime-O),k=!1}}break e}finally{p=null,R=F,D=!1}k=void 0}}finally{k?Ae():ye=!1}}}var Ae;if(typeof P=="function")Ae=function(){P(Oe)};else if(typeof MessageChannel<"u"){var Ke=new MessageChannel,Qe=Ke.port2;Ke.port1.onmessage=Oe,Ae=function(){Qe.postMessage(null)}}else Ae=function(){G(Oe,0)};function _e(O,k){A=G(function(){O(a.unstable_now())},k)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(O){O.callback=null},a.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ae=0<O?Math.floor(1e3/O):5},a.unstable_getCurrentPriorityLevel=function(){return R},a.unstable_next=function(O){switch(R){case 1:case 2:case 3:var k=3;break;default:k=R}var F=R;R=k;try{return O()}finally{R=F}},a.unstable_requestPaint=function(){K=!0},a.unstable_runWithPriority=function(O,k){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var F=R;R=O;try{return k()}finally{R=F}},a.unstable_scheduleCallback=function(O,k,F){var ce=a.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?ce+F:ce):F=ce,O){case 1:var de=-1;break;case 2:de=250;break;case 5:de=1073741823;break;case 4:de=1e4;break;default:de=5e3}return de=F+de,O={id:E++,callback:k,priorityLevel:O,startTime:F,expirationTime:de,sortIndex:-1},F>ce?(O.sortIndex=F,i(y,O),r(g)===null&&O===r(y)&&(V?(Z(A),A=-1):V=!0,_e(pe,F-ce))):(O.sortIndex=de,i(g,O),H||D||(H=!0,ye||(ye=!0,Ae()))),O},a.unstable_shouldYield=ze,a.unstable_wrapCallback=function(O){var k=R;return function(){var F=R;R=k;try{return O.apply(this,arguments)}finally{R=F}}}})(mc)),mc}var $m;function o0(){return $m||($m=1,hc.exports=u0()),hc.exports}var yc={exports:{}},jt={};var Wm;function c0(){if(Wm)return jt;Wm=1;var a=Yc();function i(g){var y="https://react.dev/errors/"+g;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var E=2;E<arguments.length;E++)y+="&args[]="+encodeURIComponent(arguments[E])}return"Minified React error #"+g+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var u={d:{f:r,r:function(){throw Error(i(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},c=Symbol.for("react.portal");function f(g,y,E){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:p==null?null:""+p,children:g,containerInfo:y,implementation:E}}var h=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(g,y){if(g==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return jt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,jt.createPortal=function(g,y){var E=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(i(299));return f(g,y,null,E)},jt.flushSync=function(g){var y=h.T,E=u.p;try{if(h.T=null,u.p=2,g)return g()}finally{h.T=y,u.p=E,u.d.f()}},jt.preconnect=function(g,y){typeof g=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,u.d.C(g,y))},jt.prefetchDNS=function(g){typeof g=="string"&&u.d.D(g)},jt.preinit=function(g,y){if(typeof g=="string"&&y&&typeof y.as=="string"){var E=y.as,p=m(E,y.crossOrigin),R=typeof y.integrity=="string"?y.integrity:void 0,D=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;E==="style"?u.d.S(g,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:p,integrity:R,fetchPriority:D}):E==="script"&&u.d.X(g,{crossOrigin:p,integrity:R,fetchPriority:D,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},jt.preinitModule=function(g,y){if(typeof g=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var E=m(y.as,y.crossOrigin);u.d.M(g,{crossOrigin:E,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&u.d.M(g)},jt.preload=function(g,y){if(typeof g=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var E=y.as,p=m(E,y.crossOrigin);u.d.L(g,E,{crossOrigin:p,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},jt.preloadModule=function(g,y){if(typeof g=="string")if(y){var E=m(y.as,y.crossOrigin);u.d.m(g,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:E,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else u.d.m(g)},jt.requestFormReset=function(g){u.d.r(g)},jt.unstable_batchedUpdates=function(g,y){return g(y)},jt.useFormState=function(g,y,E){return h.H.useFormState(g,y,E)},jt.useFormStatus=function(){return h.H.useHostTransitionStatus()},jt.version="19.2.4",jt}var Pm;function Jy(){if(Pm)return yc.exports;Pm=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),yc.exports=c0(),yc.exports}var Im;function f0(){if(Im)return tr;Im=1;var a=o0(),i=Yc(),r=Jy();function u(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(f(e)!==e)throw Error(u(188))}function y(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(u(188));return t!==e?null:e}for(var n=e,l=t;;){var s=n.return;if(s===null)break;var o=s.alternate;if(o===null){if(l=s.return,l!==null){n=l;continue}break}if(s.child===o.child){for(o=s.child;o;){if(o===n)return g(s),e;if(o===l)return g(s),t;o=o.sibling}throw Error(u(188))}if(n.return!==l.return)n=s,l=o;else{for(var d=!1,v=s.child;v;){if(v===n){d=!0,n=s,l=o;break}if(v===l){d=!0,l=s,n=o;break}v=v.sibling}if(!d){for(v=o.child;v;){if(v===n){d=!0,n=o,l=s;break}if(v===l){d=!0,l=o,n=s;break}v=v.sibling}if(!d)throw Error(u(189))}}if(n.alternate!==l)throw Error(u(190))}if(n.tag!==3)throw Error(u(188));return n.stateNode.current===n?e:t}function E(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=E(e),t!==null)return t;e=e.sibling}return null}var p=Object.assign,R=Symbol.for("react.element"),D=Symbol.for("react.transitional.element"),H=Symbol.for("react.portal"),V=Symbol.for("react.fragment"),K=Symbol.for("react.strict_mode"),G=Symbol.for("react.profiler"),Z=Symbol.for("react.consumer"),P=Symbol.for("react.context"),ge=Symbol.for("react.forward_ref"),pe=Symbol.for("react.suspense"),ye=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),ae=Symbol.for("react.lazy"),Ee=Symbol.for("react.activity"),ze=Symbol.for("react.memo_cache_sentinel"),Oe=Symbol.iterator;function Ae(e){return e===null||typeof e!="object"?null:(e=Oe&&e[Oe]||e["@@iterator"],typeof e=="function"?e:null)}var Ke=Symbol.for("react.client.reference");function Qe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ke?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case V:return"Fragment";case G:return"Profiler";case K:return"StrictMode";case pe:return"Suspense";case ye:return"SuspenseList";case Ee:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case H:return"Portal";case P:return e.displayName||"Context";case Z:return(e._context.displayName||"Context")+".Consumer";case ge: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:Qe(e.type)||"Memo";case ae:t=e._payload,e=e._init;try{return Qe(e(t))}catch{}}return null}var _e=Array.isArray,O=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,k=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F={pending:!1,data:null,method:null,action:null},ce=[],de=-1;function _(e){return{current:e}}function B(e){0>de||(e.current=ce[de],ce[de]=null,de--)}function q(e,t){de++,ce[de]=e.current,e.current=t}var J=_(null),I=_(null),ue=_(null),we=_(null);function Se(e,t){switch(q(ue,t),q(I,e),q(J,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?mm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=mm(t),e=ym(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}B(J),q(J,e)}function Ze(){B(J),B(I),B(ue)}function hn(e){e.memoizedState!==null&&q(we,e);var t=J.current,n=ym(t,e.type);t!==n&&(q(I,e),q(J,n))}function Dn(e){I.current===e&&(B(J),B(I)),we.current===e&&(B(we),$i._currentValue=F)}var Ie,Mn;function Gt(e){if(Ie===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ie=t&&t[1]||"",Mn=-1<n.stack.indexOf(`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ProjectKanbanPage-DsCdIAOu.js","assets/query-keys-BAUd6IYD.js","assets/mermaid-NOHMQCX5-hAoNEzYT.js","assets/chevron-down-ml0TDwNN.js","assets/api-client-CvXTcmYq.js","assets/mermaid-NOHMQCX5-lI9o3AWT.css","assets/x-I40qDFta.js","assets/use-projects-BUtm-JeL.js","assets/loader-circle-DLsnUkgW.js","assets/modal-DAr55LDv.js","assets/select-Bi3jfZzX.js","assets/ProjectKanbanPage-G5OQeJvU.css","assets/DemoPage-BuI7acbi.js","assets/AgentDemoPage-CHlsAeGt.js","assets/use-profiles-DSKFDf9E.js","assets/ProfileSettingsPage-DuWWMW-Z.js","assets/NotificationSettingsPage-BGoKo6r7.js","assets/circle-alert-BxinJD1E.js","assets/ProjectSettingsPage-CE8pGEMA.js"])))=>i.map(i=>d[i]);
2
+ function a0(a,i){for(var r=0;r<i.length;r++){const u=i[r];if(typeof u!="string"&&!Array.isArray(u)){for(const c in u)if(c!=="default"&&!(c in a)){const f=Object.getOwnPropertyDescriptor(u,c);f&&Object.defineProperty(a,c,f.get?f:{enumerable:!0,get:()=>u[c]})}}}return Object.freeze(Object.defineProperty(a,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"]'))u(c);new MutationObserver(c=>{for(const f of c)if(f.type==="childList")for(const h of f.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&u(h)}).observe(document,{childList:!0,subtree:!0});function r(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 u(c){if(c.ep)return;c.ep=!0;const f=r(c);fetch(c.href,f)}})();function Zy(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var fc={exports:{}},tr={};var km;function l0(){if(km)return tr;km=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function r(u,c,f){var h=null;if(f!==void 0&&(h=""+f),c.key!==void 0&&(h=""+c.key),"key"in c){f={};for(var m in c)m!=="key"&&(f[m]=c[m])}else f=c;return c=f.ref,{$$typeof:a,type:u,key:h,ref:c!==void 0?c:null,props:f}}return tr.Fragment=i,tr.jsx=r,tr.jsxs=r,tr}var Km;function i0(){return Km||(Km=1,fc.exports=l0()),fc.exports}var pe=i0(),dc={exports:{}},Te={};var Zm;function r0(){if(Zm)return Te;Zm=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),h=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),R=Symbol.iterator;function D(_){return _===null||typeof _!="object"?null:(_=R&&_[R]||_["@@iterator"],typeof _=="function"?_:null)}var H={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},V=Object.assign,K={};function G(_,B,q){this.props=_,this.context=B,this.refs=K,this.updater=q||H}G.prototype.isReactComponent={},G.prototype.setState=function(_,B){if(typeof _!="object"&&typeof _!="function"&&_!=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,_,B,"setState")},G.prototype.forceUpdate=function(_){this.updater.enqueueForceUpdate(this,_,"forceUpdate")};function Z(){}Z.prototype=G.prototype;function W(_,B,q){this.props=_,this.context=B,this.refs=K,this.updater=q||H}var be=W.prototype=new Z;be.constructor=W,V(be,G.prototype),be.isPureReactComponent=!0;var ve=Array.isArray;function ye(){}var A={H:null,A:null,T:null,S:null},ae=Object.prototype.hasOwnProperty;function Ee(_,B,q){var J=q.ref;return{$$typeof:a,type:_,key:B,ref:J!==void 0?J:null,props:q}}function ze(_,B){return Ee(_.type,B,_.props)}function Oe(_){return typeof _=="object"&&_!==null&&_.$$typeof===a}function Ae(_){var B={"=":"=0",":":"=2"};return"$"+_.replace(/[=:]/g,function(q){return B[q]})}var Ke=/\/+/g;function Qe(_,B){return typeof _=="object"&&_!==null&&_.key!=null?Ae(""+_.key):B.toString(36)}function _e(_){switch(_.status){case"fulfilled":return _.value;case"rejected":throw _.reason;default:switch(typeof _.status=="string"?_.then(ye,ye):(_.status="pending",_.then(function(B){_.status==="pending"&&(_.status="fulfilled",_.value=B)},function(B){_.status==="pending"&&(_.status="rejected",_.reason=B)})),_.status){case"fulfilled":return _.value;case"rejected":throw _.reason}}throw _}function O(_,B,q,J,I){var ue=typeof _;(ue==="undefined"||ue==="boolean")&&(_=null);var we=!1;if(_===null)we=!0;else switch(ue){case"bigint":case"string":case"number":we=!0;break;case"object":switch(_.$$typeof){case a:case i:we=!0;break;case E:return we=_._init,O(we(_._payload),B,q,J,I)}}if(we)return I=I(_),we=J===""?"."+Qe(_,0):J,ve(I)?(q="",we!=null&&(q=we.replace(Ke,"$&/")+"/"),O(I,B,q,"",function(hn){return hn})):I!=null&&(Oe(I)&&(I=ze(I,q+(I.key==null||_&&_.key===I.key?"":(""+I.key).replace(Ke,"$&/")+"/")+we)),B.push(I)),1;we=0;var Se=J===""?".":J+":";if(ve(_))for(var Ze=0;Ze<_.length;Ze++)J=_[Ze],ue=Se+Qe(J,Ze),we+=O(J,B,q,ue,I);else if(Ze=D(_),typeof Ze=="function")for(_=Ze.call(_),Ze=0;!(J=_.next()).done;)J=J.value,ue=Se+Qe(J,Ze++),we+=O(J,B,q,ue,I);else if(ue==="object"){if(typeof _.then=="function")return O(_e(_),B,q,J,I);throw B=String(_),Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys(_).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.")}return we}function k(_,B,q){if(_==null)return _;var J=[],I=0;return O(_,J,"","",function(ue){return B.call(q,ue,I++)}),J}function F(_){if(_._status===-1){var B=_._result;B=B(),B.then(function(q){(_._status===0||_._status===-1)&&(_._status=1,_._result=q)},function(q){(_._status===0||_._status===-1)&&(_._status=2,_._result=q)}),_._status===-1&&(_._status=0,_._result=B)}if(_._status===1)return _._result.default;throw _._result}var ce=typeof reportError=="function"?reportError:function(_){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var B=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof _=="object"&&_!==null&&typeof _.message=="string"?String(_.message):String(_),error:_});if(!window.dispatchEvent(B))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",_);return}console.error(_)},de={map:k,forEach:function(_,B,q){k(_,function(){B.apply(this,arguments)},q)},count:function(_){var B=0;return k(_,function(){B++}),B},toArray:function(_){return k(_,function(B){return B})||[]},only:function(_){if(!Oe(_))throw Error("React.Children.only expected to receive a single React element child.");return _}};return Te.Activity=p,Te.Children=de,Te.Component=G,Te.Fragment=r,Te.Profiler=c,Te.PureComponent=W,Te.StrictMode=u,Te.Suspense=g,Te.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=A,Te.__COMPILER_RUNTIME={__proto__:null,c:function(_){return A.H.useMemoCache(_)}},Te.cache=function(_){return function(){return _.apply(null,arguments)}},Te.cacheSignal=function(){return null},Te.cloneElement=function(_,B,q){if(_==null)throw Error("The argument must be a React element, but you passed "+_+".");var J=V({},_.props),I=_.key;if(B!=null)for(ue in B.key!==void 0&&(I=""+B.key),B)!ae.call(B,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&B.ref===void 0||(J[ue]=B[ue]);var ue=arguments.length-2;if(ue===1)J.children=q;else if(1<ue){for(var we=Array(ue),Se=0;Se<ue;Se++)we[Se]=arguments[Se+2];J.children=we}return Ee(_.type,I,J)},Te.createContext=function(_){return _={$$typeof:h,_currentValue:_,_currentValue2:_,_threadCount:0,Provider:null,Consumer:null},_.Provider=_,_.Consumer={$$typeof:f,_context:_},_},Te.createElement=function(_,B,q){var J,I={},ue=null;if(B!=null)for(J in B.key!==void 0&&(ue=""+B.key),B)ae.call(B,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(I[J]=B[J]);var we=arguments.length-2;if(we===1)I.children=q;else if(1<we){for(var Se=Array(we),Ze=0;Ze<we;Ze++)Se[Ze]=arguments[Ze+2];I.children=Se}if(_&&_.defaultProps)for(J in we=_.defaultProps,we)I[J]===void 0&&(I[J]=we[J]);return Ee(_,ue,I)},Te.createRef=function(){return{current:null}},Te.forwardRef=function(_){return{$$typeof:m,render:_}},Te.isValidElement=Oe,Te.lazy=function(_){return{$$typeof:E,_payload:{_status:-1,_result:_},_init:F}},Te.memo=function(_,B){return{$$typeof:y,type:_,compare:B===void 0?null:B}},Te.startTransition=function(_){var B=A.T,q={};A.T=q;try{var J=_(),I=A.S;I!==null&&I(q,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then(ye,ce)}catch(ue){ce(ue)}finally{B!==null&&q.types!==null&&(B.types=q.types),A.T=B}},Te.unstable_useCacheRefresh=function(){return A.H.useCacheRefresh()},Te.use=function(_){return A.H.use(_)},Te.useActionState=function(_,B,q){return A.H.useActionState(_,B,q)},Te.useCallback=function(_,B){return A.H.useCallback(_,B)},Te.useContext=function(_){return A.H.useContext(_)},Te.useDebugValue=function(){},Te.useDeferredValue=function(_,B){return A.H.useDeferredValue(_,B)},Te.useEffect=function(_,B){return A.H.useEffect(_,B)},Te.useEffectEvent=function(_){return A.H.useEffectEvent(_)},Te.useId=function(){return A.H.useId()},Te.useImperativeHandle=function(_,B,q){return A.H.useImperativeHandle(_,B,q)},Te.useInsertionEffect=function(_,B){return A.H.useInsertionEffect(_,B)},Te.useLayoutEffect=function(_,B){return A.H.useLayoutEffect(_,B)},Te.useMemo=function(_,B){return A.H.useMemo(_,B)},Te.useOptimistic=function(_,B){return A.H.useOptimistic(_,B)},Te.useReducer=function(_,B,q){return A.H.useReducer(_,B,q)},Te.useRef=function(_){return A.H.useRef(_)},Te.useState=function(_){return A.H.useState(_)},Te.useSyncExternalStore=function(_,B,q){return A.H.useSyncExternalStore(_,B,q)},Te.useTransition=function(){return A.H.useTransition()},Te.version="19.2.4",Te}var Jm;function Qc(){return Jm||(Jm=1,dc.exports=r0()),dc.exports}var M=Qc();const P=Zy(M),s0=a0({__proto__:null,default:P},[M]);var hc={exports:{}},nr={},mc={exports:{}},yc={};var Fm;function u0(){return Fm||(Fm=1,(function(a){function i(O,k){var F=O.length;O.push(k);e:for(;0<F;){var ce=F-1>>>1,de=O[ce];if(0<c(de,k))O[ce]=k,O[F]=de,F=ce;else break e}}function r(O){return O.length===0?null:O[0]}function u(O){if(O.length===0)return null;var k=O[0],F=O.pop();if(F!==k){O[0]=F;e:for(var ce=0,de=O.length,_=de>>>1;ce<_;){var B=2*(ce+1)-1,q=O[B],J=B+1,I=O[J];if(0>c(q,F))J<de&&0>c(I,q)?(O[ce]=I,O[J]=F,ce=J):(O[ce]=q,O[B]=F,ce=B);else if(J<de&&0>c(I,F))O[ce]=I,O[J]=F,ce=J;else break e}}return k}function c(O,k){var F=O.sortIndex-k.sortIndex;return F!==0?F:O.id-k.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;a.unstable_now=function(){return f.now()}}else{var h=Date,m=h.now();a.unstable_now=function(){return h.now()-m}}var g=[],y=[],E=1,p=null,R=3,D=!1,H=!1,V=!1,K=!1,G=typeof setTimeout=="function"?setTimeout:null,Z=typeof clearTimeout=="function"?clearTimeout:null,W=typeof setImmediate<"u"?setImmediate:null;function be(O){for(var k=r(y);k!==null;){if(k.callback===null)u(y);else if(k.startTime<=O)u(y),k.sortIndex=k.expirationTime,i(g,k);else break;k=r(y)}}function ve(O){if(V=!1,be(O),!H)if(r(g)!==null)H=!0,ye||(ye=!0,Ae());else{var k=r(y);k!==null&&_e(ve,k.startTime-O)}}var ye=!1,A=-1,ae=5,Ee=-1;function ze(){return K?!0:!(a.unstable_now()-Ee<ae)}function Oe(){if(K=!1,ye){var O=a.unstable_now();Ee=O;var k=!0;try{e:{H=!1,V&&(V=!1,Z(A),A=-1),D=!0;var F=R;try{t:{for(be(O),p=r(g);p!==null&&!(p.expirationTime>O&&ze());){var ce=p.callback;if(typeof ce=="function"){p.callback=null,R=p.priorityLevel;var de=ce(p.expirationTime<=O);if(O=a.unstable_now(),typeof de=="function"){p.callback=de,be(O),k=!0;break t}p===r(g)&&u(g),be(O)}else u(g);p=r(g)}if(p!==null)k=!0;else{var _=r(y);_!==null&&_e(ve,_.startTime-O),k=!1}}break e}finally{p=null,R=F,D=!1}k=void 0}}finally{k?Ae():ye=!1}}}var Ae;if(typeof W=="function")Ae=function(){W(Oe)};else if(typeof MessageChannel<"u"){var Ke=new MessageChannel,Qe=Ke.port2;Ke.port1.onmessage=Oe,Ae=function(){Qe.postMessage(null)}}else Ae=function(){G(Oe,0)};function _e(O,k){A=G(function(){O(a.unstable_now())},k)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(O){O.callback=null},a.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ae=0<O?Math.floor(1e3/O):5},a.unstable_getCurrentPriorityLevel=function(){return R},a.unstable_next=function(O){switch(R){case 1:case 2:case 3:var k=3;break;default:k=R}var F=R;R=k;try{return O()}finally{R=F}},a.unstable_requestPaint=function(){K=!0},a.unstable_runWithPriority=function(O,k){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var F=R;R=O;try{return k()}finally{R=F}},a.unstable_scheduleCallback=function(O,k,F){var ce=a.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?ce+F:ce):F=ce,O){case 1:var de=-1;break;case 2:de=250;break;case 5:de=1073741823;break;case 4:de=1e4;break;default:de=5e3}return de=F+de,O={id:E++,callback:k,priorityLevel:O,startTime:F,expirationTime:de,sortIndex:-1},F>ce?(O.sortIndex=F,i(y,O),r(g)===null&&O===r(y)&&(V?(Z(A),A=-1):V=!0,_e(ve,F-ce))):(O.sortIndex=de,i(g,O),H||D||(H=!0,ye||(ye=!0,Ae()))),O},a.unstable_shouldYield=ze,a.unstable_wrapCallback=function(O){var k=R;return function(){var F=R;R=k;try{return O.apply(this,arguments)}finally{R=F}}}})(yc)),yc}var $m;function o0(){return $m||($m=1,mc.exports=u0()),mc.exports}var pc={exports:{}},jt={};var Pm;function c0(){if(Pm)return jt;Pm=1;var a=Qc();function i(g){var y="https://react.dev/errors/"+g;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var E=2;E<arguments.length;E++)y+="&args[]="+encodeURIComponent(arguments[E])}return"Minified React error #"+g+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var u={d:{f:r,r:function(){throw Error(i(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},c=Symbol.for("react.portal");function f(g,y,E){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:p==null?null:""+p,children:g,containerInfo:y,implementation:E}}var h=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(g,y){if(g==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return jt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,jt.createPortal=function(g,y){var E=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(i(299));return f(g,y,null,E)},jt.flushSync=function(g){var y=h.T,E=u.p;try{if(h.T=null,u.p=2,g)return g()}finally{h.T=y,u.p=E,u.d.f()}},jt.preconnect=function(g,y){typeof g=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,u.d.C(g,y))},jt.prefetchDNS=function(g){typeof g=="string"&&u.d.D(g)},jt.preinit=function(g,y){if(typeof g=="string"&&y&&typeof y.as=="string"){var E=y.as,p=m(E,y.crossOrigin),R=typeof y.integrity=="string"?y.integrity:void 0,D=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;E==="style"?u.d.S(g,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:p,integrity:R,fetchPriority:D}):E==="script"&&u.d.X(g,{crossOrigin:p,integrity:R,fetchPriority:D,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},jt.preinitModule=function(g,y){if(typeof g=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var E=m(y.as,y.crossOrigin);u.d.M(g,{crossOrigin:E,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&u.d.M(g)},jt.preload=function(g,y){if(typeof g=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var E=y.as,p=m(E,y.crossOrigin);u.d.L(g,E,{crossOrigin:p,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},jt.preloadModule=function(g,y){if(typeof g=="string")if(y){var E=m(y.as,y.crossOrigin);u.d.m(g,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:E,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else u.d.m(g)},jt.requestFormReset=function(g){u.d.r(g)},jt.unstable_batchedUpdates=function(g,y){return g(y)},jt.useFormState=function(g,y,E){return h.H.useFormState(g,y,E)},jt.useFormStatus=function(){return h.H.useHostTransitionStatus()},jt.version="19.2.4",jt}var Wm;function Jy(){if(Wm)return pc.exports;Wm=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),pc.exports=c0(),pc.exports}var Im;function f0(){if(Im)return nr;Im=1;var a=o0(),i=Qc(),r=Jy();function u(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(f(e)!==e)throw Error(u(188))}function y(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(u(188));return t!==e?null:e}for(var n=e,l=t;;){var s=n.return;if(s===null)break;var o=s.alternate;if(o===null){if(l=s.return,l!==null){n=l;continue}break}if(s.child===o.child){for(o=s.child;o;){if(o===n)return g(s),e;if(o===l)return g(s),t;o=o.sibling}throw Error(u(188))}if(n.return!==l.return)n=s,l=o;else{for(var d=!1,v=s.child;v;){if(v===n){d=!0,n=s,l=o;break}if(v===l){d=!0,l=s,n=o;break}v=v.sibling}if(!d){for(v=o.child;v;){if(v===n){d=!0,n=o,l=s;break}if(v===l){d=!0,l=o,n=s;break}v=v.sibling}if(!d)throw Error(u(189))}}if(n.alternate!==l)throw Error(u(190))}if(n.tag!==3)throw Error(u(188));return n.stateNode.current===n?e:t}function E(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=E(e),t!==null)return t;e=e.sibling}return null}var p=Object.assign,R=Symbol.for("react.element"),D=Symbol.for("react.transitional.element"),H=Symbol.for("react.portal"),V=Symbol.for("react.fragment"),K=Symbol.for("react.strict_mode"),G=Symbol.for("react.profiler"),Z=Symbol.for("react.consumer"),W=Symbol.for("react.context"),be=Symbol.for("react.forward_ref"),ve=Symbol.for("react.suspense"),ye=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),ae=Symbol.for("react.lazy"),Ee=Symbol.for("react.activity"),ze=Symbol.for("react.memo_cache_sentinel"),Oe=Symbol.iterator;function Ae(e){return e===null||typeof e!="object"?null:(e=Oe&&e[Oe]||e["@@iterator"],typeof e=="function"?e:null)}var Ke=Symbol.for("react.client.reference");function Qe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ke?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case V:return"Fragment";case G:return"Profiler";case K:return"StrictMode";case ve:return"Suspense";case ye:return"SuspenseList";case Ee:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case H:return"Portal";case W:return e.displayName||"Context";case Z:return(e._context.displayName||"Context")+".Consumer";case be: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:Qe(e.type)||"Memo";case ae:t=e._payload,e=e._init;try{return Qe(e(t))}catch{}}return null}var _e=Array.isArray,O=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,k=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F={pending:!1,data:null,method:null,action:null},ce=[],de=-1;function _(e){return{current:e}}function B(e){0>de||(e.current=ce[de],ce[de]=null,de--)}function q(e,t){de++,ce[de]=e.current,e.current=t}var J=_(null),I=_(null),ue=_(null),we=_(null);function Se(e,t){switch(q(ue,t),q(I,e),q(J,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?mm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=mm(t),e=ym(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}B(J),q(J,e)}function Ze(){B(J),B(I),B(ue)}function hn(e){e.memoizedState!==null&&q(we,e);var t=J.current,n=ym(t,e.type);t!==n&&(q(I,e),q(J,n))}function Dn(e){I.current===e&&(B(J),B(I)),we.current===e&&(B(we),Pi._currentValue=F)}var Ie,Cn;function Gt(e){if(Ie===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ie=t&&t[1]||"",Cn=-1<n.stack.indexOf(`
3
3
  at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
4
- `+Ie+e+Mn}var Ia=!1;function Xt(e,t){if(!e||Ia)return"";Ia=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var Q=function(){throw Error()};if(Object.defineProperty(Q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Q,[])}catch(L){var N=L}Reflect.construct(e,[],Q)}else{try{Q.call()}catch(L){N=L}e.call(Q.prototype)}}else{try{throw Error()}catch(L){N=L}(Q=e())&&typeof Q.catch=="function"&&Q.catch(function(){})}}catch(L){if(L&&N&&typeof L.stack=="string")return[L.stack,N.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=l.DetermineComponentFrameRoot(),d=o[0],v=o[1];if(d&&v){var S=d.split(`
4
+ `+Ie+e+Cn}var Ia=!1;function Xt(e,t){if(!e||Ia)return"";Ia=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var Q=function(){throw Error()};if(Object.defineProperty(Q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Q,[])}catch(L){var N=L}Reflect.construct(e,[],Q)}else{try{Q.call()}catch(L){N=L}e.call(Q.prototype)}}else{try{throw Error()}catch(L){N=L}(Q=e())&&typeof Q.catch=="function"&&Q.catch(function(){})}}catch(L){if(L&&N&&typeof L.stack=="string")return[L.stack,N.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=l.DetermineComponentFrameRoot(),d=o[0],v=o[1];if(d&&v){var S=d.split(`
5
5
  `),z=v.split(`
6
6
  `);for(s=l=0;l<S.length&&!S[l].includes("DetermineComponentFrameRoot");)l++;for(;s<z.length&&!z[s].includes("DetermineComponentFrameRoot");)s++;if(l===S.length||s===z.length)for(l=S.length-1,s=z.length-1;1<=l&&0<=s&&S[l]!==z[s];)s--;for(;1<=l&&0<=s;l--,s--)if(S[l]!==z[s]){if(l!==1||s!==1)do if(l--,s--,0>s||S[l]!==z[s]){var j=`
7
7
  `+S[l].replace(" at new "," at ");return e.displayName&&j.includes("<anonymous>")&&(j=j.replace("<anonymous>",e.displayName)),j}while(1<=l&&0<=s);break}}}finally{Ia=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Gt(n):""}function In(e,t){switch(e.tag){case 26:case 27:case 5:return Gt(e.type);case 16:return Gt("Lazy");case 13:return e.child!==t&&t!==null?Gt("Suspense Fallback"):Gt("Suspense");case 19:return Gt("SuspenseList");case 0:case 15:return Xt(e.type,!1);case 11:return Xt(e.type.render,!1);case 1:return Xt(e.type,!0);case 31:return Gt("Activity");default:return""}}function el(e){try{var t="",n=null;do t+=In(e,n),n=e,e=e.return;while(e);return t}catch(l){return`
8
8
  Error generating stack: `+l.message+`
9
- `+l.stack}}var Bt=Object.prototype.hasOwnProperty,tl=a.unstable_scheduleCallback,nl=a.unstable_cancelCallback,Ct=a.unstable_shouldYield,Gn=a.unstable_requestPaint,ut=a.unstable_now,ea=a.unstable_getCurrentPriorityLevel,Xn=a.unstable_ImmediatePriority,Ta=a.unstable_UserBlockingPriority,Dt=a.unstable_NormalPriority,Yt=a.unstable_LowPriority,mn=a.unstable_IdlePriority,Rl=a.log,yn=a.unstable_setDisableYieldValue,ta=null,at=null;function kt(e){if(typeof Rl=="function"&&yn(e),at&&typeof at.setStrictMode=="function")try{at.setStrictMode(ta,e)}catch{}}var Rt=Math.clz32?Math.clz32:en,xl=Math.log,al=Math.LN2;function en(e){return e>>>=0,e===0?32:31-(xl(e)/al|0)|0}var zn=256,na=262144,Nn=4194304;function pn(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 ve(e,t,n){var l=e.pendingLanes;if(l===0)return 0;var s=0,o=e.suspendedLanes,d=e.pingedLanes;e=e.warmLanes;var v=l&134217727;return v!==0?(l=v&~o,l!==0?s=pn(l):(d&=v,d!==0?s=pn(d):n||(n=v&~e,n!==0&&(s=pn(n))))):(v=l&~o,v!==0?s=pn(v):d!==0?s=pn(d):n||(n=l&~e,n!==0&&(s=pn(n)))),s===0?0:t!==0&&t!==s&&(t&o)===0&&(o=s&-s,n=t&-t,o>=n||o===32&&(n&4194048)!==0)?t:s}function tt(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function mt(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 yt(){var e=Nn;return Nn<<=1,(Nn&62914560)===0&&(Nn=4194304),e}function tn(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function nt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ht(e,t,n,l,s,o){var d=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var v=e.entanglements,S=e.expirationTimes,z=e.hiddenUpdates;for(n=d&~n;0<n;){var j=31-Rt(n),Q=1<<j;v[j]=0,S[j]=-1;var N=z[j];if(N!==null)for(z[j]=null,j=0;j<N.length;j++){var L=N[j];L!==null&&(L.lane&=-536870913)}n&=~Q}l!==0&&aa(e,l,0),o!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=o&~(d&~t))}function aa(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-Rt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|n&261930}function b(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var l=31-Rt(n),s=1<<l;s&t|e[l]&t&&(e[l]|=t),n&=~s}}function w(e,t){var n=t&-t;return n=(n&42)!==0?1:U(n),(n&(e.suspendedLanes|t))!==0?0:n}function U(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 X(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function $(){var e=k.p;return e!==0?e:(e=window.event,e===void 0?32:jm(e.type))}function se(e,t){var n=k.p;try{return k.p=e,t()}finally{k.p=n}}var te=Math.random().toString(36).slice(2),ee="__reactFiber$"+te,ne="__reactProps$"+te,re="__reactContainer$"+te,he="__reactEvents$"+te,oe="__reactListeners$"+te,Ve="__reactHandles$"+te,Le="__reactResources$"+te,ot="__reactMarker$"+te;function ct(e){delete e[ee],delete e[ne],delete e[he],delete e[oe],delete e[Ve]}function ft(e){var t=e[ee];if(t)return t;for(var n=e.parentNode;n;){if(t=n[re]||n[ee]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=_m(e);e!==null;){if(n=e[ee])return n;e=_m(e)}return t}e=n,n=e.parentNode}return null}function Be(e){if(e=e[ee]||e[re]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ot(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(u(33))}function Kt(e){var t=e[Le];return t||(t=e[Le]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function rt(e){e[ot]=!0}var Un=new Set,nn={};function Ln(e,t){vn(e,t),vn(e+"Capture",t)}function vn(e,t){for(nn[e]=t,e=0;e<t.length;e++)Un.add(t[e])}var la=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]*$"),ll={},il={};function He(e){return Bt.call(il,e)?!0:Bt.call(ll,e)?!1:la.test(e)?il[e]=!0:(ll[e]=!0,!1)}function pt(e,t,n){if(He(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Bn(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function Mt(e,t,n,l){if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+l)}}function je(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function rl(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Sr(e,t,n){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var s=l.get,o=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(d){n=""+d,o.call(this,d)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(d){n=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function di(e){if(!e._valueTracker){var t=rl(e)?"checked":"value";e._valueTracker=Sr(e,t,""+e[t])}}function sf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),l="";return e&&(l=rl(e)?e.checked?"true":"false":e.value),e=l,e!==n?(t.setValue(e),!0):!1}function Er(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 Wp=/[\n"\\]/g;function gn(e){return e.replace(Wp,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function au(e,t,n,l,s,o,d,v){e.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.type=d:e.removeAttribute("type"),t!=null?d==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+je(t)):e.value!==""+je(t)&&(e.value=""+je(t)):d!=="submit"&&d!=="reset"||e.removeAttribute("value"),t!=null?lu(e,d,je(t)):n!=null?lu(e,d,je(n)):l!=null&&e.removeAttribute("value"),s==null&&o!=null&&(e.defaultChecked=!!o),s!=null&&(e.checked=s&&typeof s!="function"&&typeof s!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.name=""+je(v):e.removeAttribute("name")}function uf(e,t,n,l,s,o,d,v){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.type=o),t!=null||n!=null){if(!(o!=="submit"&&o!=="reset"||t!=null)){di(e);return}n=n!=null?""+je(n):"",t=t!=null?""+je(t):n,v||t===e.value||(e.value=t),e.defaultValue=t}l=l??s,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=v?e.checked:!!l,e.defaultChecked=!!l,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.name=d),di(e)}function lu(e,t,n){t==="number"&&Er(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Ol(e,t,n,l){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&l&&(e[n].defaultSelected=!0)}else{for(n=""+je(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,l&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function of(e,t,n){if(t!=null&&(t=""+je(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+je(n):""}function cf(e,t,n,l){if(t==null){if(l!=null){if(n!=null)throw Error(u(92));if(_e(l)){if(1<l.length)throw Error(u(93));l=l[0]}n=l}n==null&&(n=""),t=n}n=je(t),e.defaultValue=n,l=e.textContent,l===n&&l!==""&&l!==null&&(e.value=l),di(e)}function Al(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Pp=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 ff(e,t,n){var l=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,n):typeof n!="number"||n===0||Pp.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function df(e,t,n){if(t!=null&&typeof t!="object")throw Error(u(62));if(e=e.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var s in t)l=t[s],t.hasOwnProperty(s)&&n[s]!==l&&ff(e,s,l)}else for(var o in t)t.hasOwnProperty(o)&&ff(e,o,t[o])}function iu(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 Ip=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"]]),ev=/^[\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 _r(e){return ev.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ia(){}var ru=null;function su(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Cl=null,Dl=null;function hf(e){var t=Be(e);if(t&&(e=t.stateNode)){var n=e[ne]||null;e:switch(e=t.stateNode,t.type){case"input":if(au(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+gn(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var l=n[t];if(l!==e&&l.form===e.form){var s=l[ne]||null;if(!s)throw Error(u(90));au(l,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(t=0;t<n.length;t++)l=n[t],l.form===e.form&&sf(l)}break e;case"textarea":of(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Ol(e,!!n.multiple,t,!1)}}}var uu=!1;function mf(e,t,n){if(uu)return e(t,n);uu=!0;try{var l=e(t);return l}finally{if(uu=!1,(Cl!==null||Dl!==null)&&(os(),Cl&&(t=Cl,e=Dl,Dl=Cl=null,hf(t),e)))for(t=0;t<e.length;t++)hf(e[t])}}function hi(e,t){var n=e.stateNode;if(n===null)return null;var l=n[ne]||null;if(l===null)return null;n=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(u(231,t,typeof n));return n}var ra=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ou=!1;if(ra)try{var mi={};Object.defineProperty(mi,"passive",{get:function(){ou=!0}}),window.addEventListener("test",mi,mi),window.removeEventListener("test",mi,mi)}catch{ou=!1}var wa=null,cu=null,Tr=null;function yf(){if(Tr)return Tr;var e,t=cu,n=t.length,l,s="value"in wa?wa.value:wa.textContent,o=s.length;for(e=0;e<n&&t[e]===s[e];e++);var d=n-e;for(l=1;l<=d&&t[n-l]===s[o-l];l++);return Tr=s.slice(e,1<l?1-l:void 0)}function wr(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 Rr(){return!0}function pf(){return!1}function Zt(e){function t(n,l,s,o,d){this._reactName=n,this._targetInst=s,this.type=l,this.nativeEvent=o,this.target=d,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(n=e[v],this[v]=n?n(o):o[v]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Rr:pf,this.isPropagationStopped=pf,this}return p(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Rr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Rr)},persist:function(){},isPersistent:Rr}),t}var sl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},xr=Zt(sl),yi=p({},sl,{view:0,detail:0}),tv=Zt(yi),fu,du,pi,Or=p({},yi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:mu,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!==pi&&(pi&&e.type==="mousemove"?(fu=e.screenX-pi.screenX,du=e.screenY-pi.screenY):du=fu=0,pi=e),fu)},movementY:function(e){return"movementY"in e?e.movementY:du}}),vf=Zt(Or),nv=p({},Or,{dataTransfer:0}),av=Zt(nv),lv=p({},yi,{relatedTarget:0}),hu=Zt(lv),iv=p({},sl,{animationName:0,elapsedTime:0,pseudoElement:0}),rv=Zt(iv),sv=p({},sl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),uv=Zt(sv),ov=p({},sl,{data:0}),gf=Zt(ov),cv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},fv={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"},dv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function hv(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=dv[e])?!!t[e]:!1}function mu(){return hv}var mv=p({},yi,{key:function(e){if(e.key){var t=cv[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=wr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?fv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:mu,charCode:function(e){return e.type==="keypress"?wr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?wr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),yv=Zt(mv),pv=p({},Or,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),bf=Zt(pv),vv=p({},yi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:mu}),gv=Zt(vv),bv=p({},sl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Sv=Zt(bv),Ev=p({},Or,{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}),_v=Zt(Ev),Tv=p({},sl,{newState:0,oldState:0}),wv=Zt(Tv),Rv=[9,13,27,32],yu=ra&&"CompositionEvent"in window,vi=null;ra&&"documentMode"in document&&(vi=document.documentMode);var xv=ra&&"TextEvent"in window&&!vi,Sf=ra&&(!yu||vi&&8<vi&&11>=vi),Ef=" ",_f=!1;function Tf(e,t){switch(e){case"keyup":return Rv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ml=!1;function Ov(e,t){switch(e){case"compositionend":return wf(t);case"keypress":return t.which!==32?null:(_f=!0,Ef);case"textInput":return e=t.data,e===Ef&&_f?null:e;default:return null}}function Av(e,t){if(Ml)return e==="compositionend"||!yu&&Tf(e,t)?(e=yf(),Tr=cu=wa=null,Ml=!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 Sf&&t.locale!=="ko"?null:t.data;default:return null}}var Cv={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 Rf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Cv[e.type]:t==="textarea"}function xf(e,t,n,l){Cl?Dl?Dl.push(l):Dl=[l]:Cl=l,t=ps(t,"onChange"),0<t.length&&(n=new xr("onChange","change",null,n,l),e.push({event:n,listeners:t}))}var gi=null,bi=null;function Dv(e){um(e,0)}function Ar(e){var t=Ot(e);if(sf(t))return e}function Of(e,t){if(e==="change")return t}var Af=!1;if(ra){var pu;if(ra){var vu="oninput"in document;if(!vu){var Cf=document.createElement("div");Cf.setAttribute("oninput","return;"),vu=typeof Cf.oninput=="function"}pu=vu}else pu=!1;Af=pu&&(!document.documentMode||9<document.documentMode)}function Df(){gi&&(gi.detachEvent("onpropertychange",Mf),bi=gi=null)}function Mf(e){if(e.propertyName==="value"&&Ar(bi)){var t=[];xf(t,bi,e,su(e)),mf(Dv,t)}}function Mv(e,t,n){e==="focusin"?(Df(),gi=t,bi=n,gi.attachEvent("onpropertychange",Mf)):e==="focusout"&&Df()}function zv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ar(bi)}function Nv(e,t){if(e==="click")return Ar(t)}function Uv(e,t){if(e==="input"||e==="change")return Ar(t)}function Lv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var an=typeof Object.is=="function"?Object.is:Lv;function Si(e,t){if(an(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),l=Object.keys(t);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var s=n[l];if(!Bt.call(t,s)||!an(e[s],t[s]))return!1}return!0}function zf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Nf(e,t){var n=zf(e);e=0;for(var l;n;){if(n.nodeType===3){if(l=e+n.textContent.length,e<=t&&l>=t)return{node:n,offset:t-e};e=l}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=zf(n)}}function Uf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Uf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Lf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Er(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Er(e.document)}return t}function gu(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 Bv=ra&&"documentMode"in document&&11>=document.documentMode,zl=null,bu=null,Ei=null,Su=!1;function Bf(e,t,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Su||zl==null||zl!==Er(l)||(l=zl,"selectionStart"in l&&gu(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Ei&&Si(Ei,l)||(Ei=l,l=ps(bu,"onSelect"),0<l.length&&(t=new xr("onSelect","select",null,t,n),e.push({event:t,listeners:l}),t.target=zl)))}function ul(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Nl={animationend:ul("Animation","AnimationEnd"),animationiteration:ul("Animation","AnimationIteration"),animationstart:ul("Animation","AnimationStart"),transitionrun:ul("Transition","TransitionRun"),transitionstart:ul("Transition","TransitionStart"),transitioncancel:ul("Transition","TransitionCancel"),transitionend:ul("Transition","TransitionEnd")},Eu={},Hf={};ra&&(Hf=document.createElement("div").style,"AnimationEvent"in window||(delete Nl.animationend.animation,delete Nl.animationiteration.animation,delete Nl.animationstart.animation),"TransitionEvent"in window||delete Nl.transitionend.transition);function ol(e){if(Eu[e])return Eu[e];if(!Nl[e])return e;var t=Nl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Hf)return Eu[e]=t[n];return e}var jf=ol("animationend"),qf=ol("animationiteration"),Yf=ol("animationstart"),Hv=ol("transitionrun"),jv=ol("transitionstart"),qv=ol("transitioncancel"),Qf=ol("transitionend"),Vf=new Map,_u="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(" ");_u.push("scrollEnd");function Hn(e,t){Vf.set(e,t),Ln(t,[e])}var Cr=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)},bn=[],Ul=0,Tu=0;function Dr(){for(var e=Ul,t=Tu=Ul=0;t<e;){var n=bn[t];bn[t++]=null;var l=bn[t];bn[t++]=null;var s=bn[t];bn[t++]=null;var o=bn[t];if(bn[t++]=null,l!==null&&s!==null){var d=l.pending;d===null?s.next=s:(s.next=d.next,d.next=s),l.pending=s}o!==0&&Gf(n,s,o)}}function Mr(e,t,n,l){bn[Ul++]=e,bn[Ul++]=t,bn[Ul++]=n,bn[Ul++]=l,Tu|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function wu(e,t,n,l){return Mr(e,t,n,l),zr(e)}function cl(e,t){return Mr(e,null,null,t),zr(e)}function Gf(e,t,n){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n);for(var s=!1,o=e.return;o!==null;)o.childLanes|=n,l=o.alternate,l!==null&&(l.childLanes|=n),o.tag===22&&(e=o.stateNode,e===null||e._visibility&1||(s=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,s&&t!==null&&(s=31-Rt(n),e=o.hiddenUpdates,l=e[s],l===null?e[s]=[t]:l.push(t),t.lane=n|536870912),o):null}function zr(e){if(50<Gi)throw Gi=0,Uo=null,Error(u(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ll={};function Yv(e,t,n,l){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ln(e,t,n,l){return new Yv(e,t,n,l)}function Ru(e){return e=e.prototype,!(!e||!e.isReactComponent)}function sa(e,t){var n=e.alternate;return n===null?(n=ln(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Xf(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Nr(e,t,n,l,s,o){var d=0;if(l=e,typeof e=="function")Ru(e)&&(d=1);else if(typeof e=="string")d=kg(e,n,J.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Ee:return e=ln(31,n,t,s),e.elementType=Ee,e.lanes=o,e;case V:return fl(n.children,s,o,t);case K:d=8,s|=24;break;case G:return e=ln(12,n,t,s|2),e.elementType=G,e.lanes=o,e;case pe:return e=ln(13,n,t,s),e.elementType=pe,e.lanes=o,e;case ye:return e=ln(19,n,t,s),e.elementType=ye,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case P:d=10;break e;case Z:d=9;break e;case ge:d=11;break e;case A:d=14;break e;case ae:d=16,l=null;break e}d=29,n=Error(u(130,e===null?"null":typeof e,"")),l=null}return t=ln(d,n,t,s),t.elementType=e,t.type=l,t.lanes=o,t}function fl(e,t,n,l){return e=ln(7,e,l,t),e.lanes=n,e}function xu(e,t,n){return e=ln(6,e,null,t),e.lanes=n,e}function kf(e){var t=ln(18,null,null,0);return t.stateNode=e,t}function Ou(e,t,n){return t=ln(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Kf=new WeakMap;function Sn(e,t){if(typeof e=="object"&&e!==null){var n=Kf.get(e);return n!==void 0?n:(t={value:e,source:t,stack:el(t)},Kf.set(e,t),t)}return{value:e,source:t,stack:el(t)}}var Bl=[],Hl=0,Ur=null,_i=0,En=[],_n=0,Ra=null,kn=1,Kn="";function ua(e,t){Bl[Hl++]=_i,Bl[Hl++]=Ur,Ur=e,_i=t}function Zf(e,t,n){En[_n++]=kn,En[_n++]=Kn,En[_n++]=Ra,Ra=e;var l=kn;e=Kn;var s=32-Rt(l)-1;l&=~(1<<s),n+=1;var o=32-Rt(t)+s;if(30<o){var d=s-s%5;o=(l&(1<<d)-1).toString(32),l>>=d,s-=d,kn=1<<32-Rt(t)+s|n<<s|l,Kn=o+e}else kn=1<<o|n<<s|l,Kn=e}function Au(e){e.return!==null&&(ua(e,1),Zf(e,1,0))}function Cu(e){for(;e===Ur;)Ur=Bl[--Hl],Bl[Hl]=null,_i=Bl[--Hl],Bl[Hl]=null;for(;e===Ra;)Ra=En[--_n],En[_n]=null,Kn=En[--_n],En[_n]=null,kn=En[--_n],En[_n]=null}function Jf(e,t){En[_n++]=kn,En[_n++]=Kn,En[_n++]=Ra,kn=t.id,Kn=t.overflow,Ra=e}var zt=null,lt=null,qe=!1,xa=null,Tn=!1,Du=Error(u(519));function Oa(e){var t=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ti(Sn(t,e)),Du}function Ff(e){var t=e.stateNode,n=e.type,l=e.memoizedProps;switch(t[ee]=e,t[ne]=l,n){case"dialog":Me("cancel",t),Me("close",t);break;case"iframe":case"object":case"embed":Me("load",t);break;case"video":case"audio":for(n=0;n<ki.length;n++)Me(ki[n],t);break;case"source":Me("error",t);break;case"img":case"image":case"link":Me("error",t),Me("load",t);break;case"details":Me("toggle",t);break;case"input":Me("invalid",t),uf(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":Me("invalid",t);break;case"textarea":Me("invalid",t),cf(t,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||l.suppressHydrationWarning===!0||dm(t.textContent,n)?(l.popover!=null&&(Me("beforetoggle",t),Me("toggle",t)),l.onScroll!=null&&Me("scroll",t),l.onScrollEnd!=null&&Me("scrollend",t),l.onClick!=null&&(t.onclick=ia),t=!0):t=!1,t||Oa(e,!0)}function $f(e){for(zt=e.return;zt;)switch(zt.tag){case 5:case 31:case 13:Tn=!1;return;case 27:case 3:Tn=!0;return;default:zt=zt.return}}function jl(e){if(e!==zt)return!1;if(!qe)return $f(e),qe=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Fo(e.type,e.memoizedProps)),n=!n),n&&lt&&Oa(e),$f(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));lt=Em(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));lt=Em(e)}else t===27?(t=lt,Qa(e.type)?(e=ec,ec=null,lt=e):lt=t):lt=zt?Rn(e.stateNode.nextSibling):null;return!0}function dl(){lt=zt=null,qe=!1}function Mu(){var e=xa;return e!==null&&(Wt===null?Wt=e:Wt.push.apply(Wt,e),xa=null),e}function Ti(e){xa===null?xa=[e]:xa.push(e)}var zu=_(null),hl=null,oa=null;function Aa(e,t,n){q(zu,t._currentValue),t._currentValue=n}function ca(e){e._currentValue=zu.current,B(zu)}function Nu(e,t,n){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===n)break;e=e.return}}function Uu(e,t,n,l){var s=e.child;for(s!==null&&(s.return=e);s!==null;){var o=s.dependencies;if(o!==null){var d=s.child;o=o.firstContext;e:for(;o!==null;){var v=o;o=s;for(var S=0;S<t.length;S++)if(v.context===t[S]){o.lanes|=n,v=o.alternate,v!==null&&(v.lanes|=n),Nu(o.return,n,e),l||(d=null);break e}o=v.next}}else if(s.tag===18){if(d=s.return,d===null)throw Error(u(341));d.lanes|=n,o=d.alternate,o!==null&&(o.lanes|=n),Nu(d,n,e),d=null}else d=s.child;if(d!==null)d.return=s;else for(d=s;d!==null;){if(d===e){d=null;break}if(s=d.sibling,s!==null){s.return=d.return,d=s;break}d=d.return}s=d}}function ql(e,t,n,l){e=null;for(var s=t,o=!1;s!==null;){if(!o){if((s.flags&524288)!==0)o=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var d=s.alternate;if(d===null)throw Error(u(387));if(d=d.memoizedProps,d!==null){var v=s.type;an(s.pendingProps.value,d.value)||(e!==null?e.push(v):e=[v])}}else if(s===we.current){if(d=s.alternate,d===null)throw Error(u(387));d.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(e!==null?e.push($i):e=[$i])}s=s.return}e!==null&&Uu(t,e,n,l),t.flags|=262144}function Lr(e){for(e=e.firstContext;e!==null;){if(!an(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ml(e){hl=e,oa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Nt(e){return Wf(hl,e)}function Br(e,t){return hl===null&&ml(e),Wf(e,t)}function Wf(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},oa===null){if(e===null)throw Error(u(308));oa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else oa=oa.next=t;return n}var Qv=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},Vv=a.unstable_scheduleCallback,Gv=a.unstable_NormalPriority,St={$$typeof:P,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Lu(){return{controller:new Qv,data:new Map,refCount:0}}function wi(e){e.refCount--,e.refCount===0&&Vv(Gv,function(){e.controller.abort()})}var Ri=null,Bu=0,Yl=0,Ql=null;function Xv(e,t){if(Ri===null){var n=Ri=[];Bu=0,Yl=Yo(),Ql={status:"pending",value:void 0,then:function(l){n.push(l)}}}return Bu++,t.then(Pf,Pf),t}function Pf(){if(--Bu===0&&Ri!==null){Ql!==null&&(Ql.status="fulfilled");var e=Ri;Ri=null,Yl=0,Ql=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function kv(e,t){var n=[],l={status:"pending",value:null,reason:null,then:function(s){n.push(s)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var s=0;s<n.length;s++)(0,n[s])(t)},function(s){for(l.status="rejected",l.reason=s,s=0;s<n.length;s++)(0,n[s])(void 0)}),l}var If=O.S;O.S=function(e,t){Bh=ut(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Xv(e,t),If!==null&&If(e,t)};var yl=_(null);function Hu(){var e=yl.current;return e!==null?e:et.pooledCache}function Hr(e,t){t===null?q(yl,yl.current):q(yl,t.pool)}function ed(){var e=Hu();return e===null?null:{parent:St._currentValue,pool:e}}var Vl=Error(u(460)),ju=Error(u(474)),jr=Error(u(542)),qr={then:function(){}};function td(e){return e=e.status,e==="fulfilled"||e==="rejected"}function nd(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(ia,ia),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,ld(e),e;default:if(typeof t.status=="string")t.then(ia,ia);else{if(e=et,e!==null&&100<e.shellSuspendCounter)throw Error(u(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var s=t;s.status="fulfilled",s.value=l}},function(l){if(t.status==="pending"){var s=t;s.status="rejected",s.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,ld(e),e}throw vl=t,Vl}}function pl(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(vl=n,Vl):n}}var vl=null;function ad(){if(vl===null)throw Error(u(459));var e=vl;return vl=null,e}function ld(e){if(e===Vl||e===jr)throw Error(u(483))}var Gl=null,xi=0;function Yr(e){var t=xi;return xi+=1,Gl===null&&(Gl=[]),nd(Gl,e,t)}function Oi(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Qr(e,t){throw t.$$typeof===R?Error(u(525)):(e=Object.prototype.toString.call(t),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function id(e){function t(x,T){if(e){var M=x.deletions;M===null?(x.deletions=[T],x.flags|=16):M.push(T)}}function n(x,T){if(!e)return null;for(;T!==null;)t(x,T),T=T.sibling;return null}function l(x){for(var T=new Map;x!==null;)x.key!==null?T.set(x.key,x):T.set(x.index,x),x=x.sibling;return T}function s(x,T){return x=sa(x,T),x.index=0,x.sibling=null,x}function o(x,T,M){return x.index=M,e?(M=x.alternate,M!==null?(M=M.index,M<T?(x.flags|=67108866,T):M):(x.flags|=67108866,T)):(x.flags|=1048576,T)}function d(x){return e&&x.alternate===null&&(x.flags|=67108866),x}function v(x,T,M,Y){return T===null||T.tag!==6?(T=xu(M,x.mode,Y),T.return=x,T):(T=s(T,M),T.return=x,T)}function S(x,T,M,Y){var fe=M.type;return fe===V?j(x,T,M.props.children,Y,M.key):T!==null&&(T.elementType===fe||typeof fe=="object"&&fe!==null&&fe.$$typeof===ae&&pl(fe)===T.type)?(T=s(T,M.props),Oi(T,M),T.return=x,T):(T=Nr(M.type,M.key,M.props,null,x.mode,Y),Oi(T,M),T.return=x,T)}function z(x,T,M,Y){return T===null||T.tag!==4||T.stateNode.containerInfo!==M.containerInfo||T.stateNode.implementation!==M.implementation?(T=Ou(M,x.mode,Y),T.return=x,T):(T=s(T,M.children||[]),T.return=x,T)}function j(x,T,M,Y,fe){return T===null||T.tag!==7?(T=fl(M,x.mode,Y,fe),T.return=x,T):(T=s(T,M),T.return=x,T)}function Q(x,T,M){if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return T=xu(""+T,x.mode,M),T.return=x,T;if(typeof T=="object"&&T!==null){switch(T.$$typeof){case D:return M=Nr(T.type,T.key,T.props,null,x.mode,M),Oi(M,T),M.return=x,M;case H:return T=Ou(T,x.mode,M),T.return=x,T;case ae:return T=pl(T),Q(x,T,M)}if(_e(T)||Ae(T))return T=fl(T,x.mode,M,null),T.return=x,T;if(typeof T.then=="function")return Q(x,Yr(T),M);if(T.$$typeof===P)return Q(x,Br(x,T),M);Qr(x,T)}return null}function N(x,T,M,Y){var fe=T!==null?T.key:null;if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return fe!==null?null:v(x,T,""+M,Y);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case D:return M.key===fe?S(x,T,M,Y):null;case H:return M.key===fe?z(x,T,M,Y):null;case ae:return M=pl(M),N(x,T,M,Y)}if(_e(M)||Ae(M))return fe!==null?null:j(x,T,M,Y,null);if(typeof M.then=="function")return N(x,T,Yr(M),Y);if(M.$$typeof===P)return N(x,T,Br(x,M),Y);Qr(x,M)}return null}function L(x,T,M,Y,fe){if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return x=x.get(M)||null,v(T,x,""+Y,fe);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case D:return x=x.get(Y.key===null?M:Y.key)||null,S(T,x,Y,fe);case H:return x=x.get(Y.key===null?M:Y.key)||null,z(T,x,Y,fe);case ae:return Y=pl(Y),L(x,T,M,Y,fe)}if(_e(Y)||Ae(Y))return x=x.get(M)||null,j(T,x,Y,fe,null);if(typeof Y.then=="function")return L(x,T,M,Yr(Y),fe);if(Y.$$typeof===P)return L(x,T,M,Br(T,Y),fe);Qr(T,Y)}return null}function le(x,T,M,Y){for(var fe=null,Ge=null,ie=T,xe=T=0,Ue=null;ie!==null&&xe<M.length;xe++){ie.index>xe?(Ue=ie,ie=null):Ue=ie.sibling;var Xe=N(x,ie,M[xe],Y);if(Xe===null){ie===null&&(ie=Ue);break}e&&ie&&Xe.alternate===null&&t(x,ie),T=o(Xe,T,xe),Ge===null?fe=Xe:Ge.sibling=Xe,Ge=Xe,ie=Ue}if(xe===M.length)return n(x,ie),qe&&ua(x,xe),fe;if(ie===null){for(;xe<M.length;xe++)ie=Q(x,M[xe],Y),ie!==null&&(T=o(ie,T,xe),Ge===null?fe=ie:Ge.sibling=ie,Ge=ie);return qe&&ua(x,xe),fe}for(ie=l(ie);xe<M.length;xe++)Ue=L(ie,x,xe,M[xe],Y),Ue!==null&&(e&&Ue.alternate!==null&&ie.delete(Ue.key===null?xe:Ue.key),T=o(Ue,T,xe),Ge===null?fe=Ue:Ge.sibling=Ue,Ge=Ue);return e&&ie.forEach(function(Ka){return t(x,Ka)}),qe&&ua(x,xe),fe}function me(x,T,M,Y){if(M==null)throw Error(u(151));for(var fe=null,Ge=null,ie=T,xe=T=0,Ue=null,Xe=M.next();ie!==null&&!Xe.done;xe++,Xe=M.next()){ie.index>xe?(Ue=ie,ie=null):Ue=ie.sibling;var Ka=N(x,ie,Xe.value,Y);if(Ka===null){ie===null&&(ie=Ue);break}e&&ie&&Ka.alternate===null&&t(x,ie),T=o(Ka,T,xe),Ge===null?fe=Ka:Ge.sibling=Ka,Ge=Ka,ie=Ue}if(Xe.done)return n(x,ie),qe&&ua(x,xe),fe;if(ie===null){for(;!Xe.done;xe++,Xe=M.next())Xe=Q(x,Xe.value,Y),Xe!==null&&(T=o(Xe,T,xe),Ge===null?fe=Xe:Ge.sibling=Xe,Ge=Xe);return qe&&ua(x,xe),fe}for(ie=l(ie);!Xe.done;xe++,Xe=M.next())Xe=L(ie,x,xe,Xe.value,Y),Xe!==null&&(e&&Xe.alternate!==null&&ie.delete(Xe.key===null?xe:Xe.key),T=o(Xe,T,xe),Ge===null?fe=Xe:Ge.sibling=Xe,Ge=Xe);return e&&ie.forEach(function(n0){return t(x,n0)}),qe&&ua(x,xe),fe}function Pe(x,T,M,Y){if(typeof M=="object"&&M!==null&&M.type===V&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case D:e:{for(var fe=M.key;T!==null;){if(T.key===fe){if(fe=M.type,fe===V){if(T.tag===7){n(x,T.sibling),Y=s(T,M.props.children),Y.return=x,x=Y;break e}}else if(T.elementType===fe||typeof fe=="object"&&fe!==null&&fe.$$typeof===ae&&pl(fe)===T.type){n(x,T.sibling),Y=s(T,M.props),Oi(Y,M),Y.return=x,x=Y;break e}n(x,T);break}else t(x,T);T=T.sibling}M.type===V?(Y=fl(M.props.children,x.mode,Y,M.key),Y.return=x,x=Y):(Y=Nr(M.type,M.key,M.props,null,x.mode,Y),Oi(Y,M),Y.return=x,x=Y)}return d(x);case H:e:{for(fe=M.key;T!==null;){if(T.key===fe)if(T.tag===4&&T.stateNode.containerInfo===M.containerInfo&&T.stateNode.implementation===M.implementation){n(x,T.sibling),Y=s(T,M.children||[]),Y.return=x,x=Y;break e}else{n(x,T);break}else t(x,T);T=T.sibling}Y=Ou(M,x.mode,Y),Y.return=x,x=Y}return d(x);case ae:return M=pl(M),Pe(x,T,M,Y)}if(_e(M))return le(x,T,M,Y);if(Ae(M)){if(fe=Ae(M),typeof fe!="function")throw Error(u(150));return M=fe.call(M),me(x,T,M,Y)}if(typeof M.then=="function")return Pe(x,T,Yr(M),Y);if(M.$$typeof===P)return Pe(x,T,Br(x,M),Y);Qr(x,M)}return typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint"?(M=""+M,T!==null&&T.tag===6?(n(x,T.sibling),Y=s(T,M),Y.return=x,x=Y):(n(x,T),Y=xu(M,x.mode,Y),Y.return=x,x=Y),d(x)):n(x,T)}return function(x,T,M,Y){try{xi=0;var fe=Pe(x,T,M,Y);return Gl=null,fe}catch(ie){if(ie===Vl||ie===jr)throw ie;var Ge=ln(29,ie,null,x.mode);return Ge.lanes=Y,Ge.return=x,Ge}}}var gl=id(!0),rd=id(!1),Ca=!1;function qu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Yu(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 Da(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ma(e,t,n){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(ke&2)!==0){var s=l.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),l.pending=t,t=zr(e),Gf(e,null,n),t}return Mr(e,l,t,n),zr(e)}function Ai(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,b(e,n)}}function Qu(e,t){var n=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var s=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var d={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?s=o=d:o=o.next=d,n=n.next}while(n!==null);o===null?s=o=t:o=o.next=t}else s=o=t;n={baseState:l.baseState,firstBaseUpdate:s,lastBaseUpdate:o,shared:l.shared,callbacks:l.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Vu=!1;function Ci(){if(Vu){var e=Ql;if(e!==null)throw e}}function Di(e,t,n,l){Vu=!1;var s=e.updateQueue;Ca=!1;var o=s.firstBaseUpdate,d=s.lastBaseUpdate,v=s.shared.pending;if(v!==null){s.shared.pending=null;var S=v,z=S.next;S.next=null,d===null?o=z:d.next=z,d=S;var j=e.alternate;j!==null&&(j=j.updateQueue,v=j.lastBaseUpdate,v!==d&&(v===null?j.firstBaseUpdate=z:v.next=z,j.lastBaseUpdate=S))}if(o!==null){var Q=s.baseState;d=0,j=z=S=null,v=o;do{var N=v.lane&-536870913,L=N!==v.lane;if(L?(Ne&N)===N:(l&N)===N){N!==0&&N===Yl&&(Vu=!0),j!==null&&(j=j.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var le=e,me=v;N=t;var Pe=n;switch(me.tag){case 1:if(le=me.payload,typeof le=="function"){Q=le.call(Pe,Q,N);break e}Q=le;break e;case 3:le.flags=le.flags&-65537|128;case 0:if(le=me.payload,N=typeof le=="function"?le.call(Pe,Q,N):le,N==null)break e;Q=p({},Q,N);break e;case 2:Ca=!0}}N=v.callback,N!==null&&(e.flags|=64,L&&(e.flags|=8192),L=s.callbacks,L===null?s.callbacks=[N]:L.push(N))}else L={lane:N,tag:v.tag,payload:v.payload,callback:v.callback,next:null},j===null?(z=j=L,S=Q):j=j.next=L,d|=N;if(v=v.next,v===null){if(v=s.shared.pending,v===null)break;L=v,v=L.next,L.next=null,s.lastBaseUpdate=L,s.shared.pending=null}}while(!0);j===null&&(S=Q),s.baseState=S,s.firstBaseUpdate=z,s.lastBaseUpdate=j,o===null&&(s.shared.lanes=0),Ba|=d,e.lanes=d,e.memoizedState=Q}}function sd(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function ud(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)sd(n[e],t)}var Xl=_(null),Vr=_(0);function od(e,t){e=ba,q(Vr,e),q(Xl,t),ba=e|t.baseLanes}function Gu(){q(Vr,ba),q(Xl,Xl.current)}function Xu(){ba=Vr.current,B(Xl),B(Vr)}var rn=_(null),wn=null;function za(e){var t=e.alternate;q(vt,vt.current&1),q(rn,e),wn===null&&(t===null||Xl.current!==null||t.memoizedState!==null)&&(wn=e)}function ku(e){q(vt,vt.current),q(rn,e),wn===null&&(wn=e)}function cd(e){e.tag===22?(q(vt,vt.current),q(rn,e),wn===null&&(wn=e)):Na()}function Na(){q(vt,vt.current),q(rn,rn.current)}function sn(e){B(rn),wn===e&&(wn=null),B(vt)}var vt=_(0);function Gr(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Po(n)||Io(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var fa=0,Re=null,$e=null,Et=null,Xr=!1,kl=!1,bl=!1,kr=0,Mi=0,Kl=null,Kv=0;function dt(){throw Error(u(321))}function Ku(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!an(e[n],t[n]))return!1;return!0}function Zu(e,t,n,l,s,o){return fa=o,Re=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,O.H=e===null||e.memoizedState===null?Zd:uo,bl=!1,o=n(l,s),bl=!1,kl&&(o=dd(t,n,l,s)),fd(e),o}function fd(e){O.H=Ui;var t=$e!==null&&$e.next!==null;if(fa=0,Et=$e=Re=null,Xr=!1,Mi=0,Kl=null,t)throw Error(u(300));e===null||_t||(e=e.dependencies,e!==null&&Lr(e)&&(_t=!0))}function dd(e,t,n,l){Re=e;var s=0;do{if(kl&&(Kl=null),Mi=0,kl=!1,25<=s)throw Error(u(301));if(s+=1,Et=$e=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}O.H=Jd,o=t(n,l)}while(kl);return o}function Zv(){var e=O.H,t=e.useState()[0];return t=typeof t.then=="function"?zi(t):t,e=e.useState()[0],($e!==null?$e.memoizedState:null)!==e&&(Re.flags|=1024),t}function Ju(){var e=kr!==0;return kr=0,e}function Fu(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function $u(e){if(Xr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Xr=!1}fa=0,Et=$e=Re=null,kl=!1,Mi=kr=0,Kl=null}function Qt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Et===null?Re.memoizedState=Et=e:Et=Et.next=e,Et}function gt(){if($e===null){var e=Re.alternate;e=e!==null?e.memoizedState:null}else e=$e.next;var t=Et===null?Re.memoizedState:Et.next;if(t!==null)Et=t,$e=e;else{if(e===null)throw Re.alternate===null?Error(u(467)):Error(u(310));$e=e,e={memoizedState:$e.memoizedState,baseState:$e.baseState,baseQueue:$e.baseQueue,queue:$e.queue,next:null},Et===null?Re.memoizedState=Et=e:Et=Et.next=e}return Et}function Kr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function zi(e){var t=Mi;return Mi+=1,Kl===null&&(Kl=[]),e=nd(Kl,e,t),t=Re,(Et===null?t.memoizedState:Et.next)===null&&(t=t.alternate,O.H=t===null||t.memoizedState===null?Zd:uo),e}function Zr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return zi(e);if(e.$$typeof===P)return Nt(e)}throw Error(u(438,String(e)))}function Wu(e){var t=null,n=Re.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var l=Re.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(s){return s.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Kr(),Re.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),l=0;l<e;l++)n[l]=ze;return t.index++,n}function da(e,t){return typeof t=="function"?t(e):t}function Jr(e){var t=gt();return Pu(t,$e,e)}function Pu(e,t,n){var l=e.queue;if(l===null)throw Error(u(311));l.lastRenderedReducer=n;var s=e.baseQueue,o=l.pending;if(o!==null){if(s!==null){var d=s.next;s.next=o.next,o.next=d}t.baseQueue=s=o,l.pending=null}if(o=e.baseState,s===null)e.memoizedState=o;else{t=s.next;var v=d=null,S=null,z=t,j=!1;do{var Q=z.lane&-536870913;if(Q!==z.lane?(Ne&Q)===Q:(fa&Q)===Q){var N=z.revertLane;if(N===0)S!==null&&(S=S.next={lane:0,revertLane:0,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),Q===Yl&&(j=!0);else if((fa&N)===N){z=z.next,N===Yl&&(j=!0);continue}else Q={lane:0,revertLane:z.revertLane,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},S===null?(v=S=Q,d=o):S=S.next=Q,Re.lanes|=N,Ba|=N;Q=z.action,bl&&n(o,Q),o=z.hasEagerState?z.eagerState:n(o,Q)}else N={lane:Q,revertLane:z.revertLane,gesture:z.gesture,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},S===null?(v=S=N,d=o):S=S.next=N,Re.lanes|=Q,Ba|=Q;z=z.next}while(z!==null&&z!==t);if(S===null?d=o:S.next=v,!an(o,e.memoizedState)&&(_t=!0,j&&(n=Ql,n!==null)))throw n;e.memoizedState=o,e.baseState=d,e.baseQueue=S,l.lastRenderedState=o}return s===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Iu(e){var t=gt(),n=t.queue;if(n===null)throw Error(u(311));n.lastRenderedReducer=e;var l=n.dispatch,s=n.pending,o=t.memoizedState;if(s!==null){n.pending=null;var d=s=s.next;do o=e(o,d.action),d=d.next;while(d!==s);an(o,t.memoizedState)||(_t=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,l]}function hd(e,t,n){var l=Re,s=gt(),o=qe;if(o){if(n===void 0)throw Error(u(407));n=n()}else n=t();var d=!an(($e||s).memoizedState,n);if(d&&(s.memoizedState=n,_t=!0),s=s.queue,no(pd.bind(null,l,s,e),[e]),s.getSnapshot!==t||d||Et!==null&&Et.memoizedState.tag&1){if(l.flags|=2048,Zl(9,{destroy:void 0},yd.bind(null,l,s,n,t),null),et===null)throw Error(u(349));o||(fa&127)!==0||md(l,t,n)}return n}function md(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Re.updateQueue,t===null?(t=Kr(),Re.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function yd(e,t,n,l){t.value=n,t.getSnapshot=l,vd(t)&&gd(e)}function pd(e,t,n){return n(function(){vd(t)&&gd(e)})}function vd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!an(e,n)}catch{return!0}}function gd(e){var t=cl(e,2);t!==null&&Pt(t,e,2)}function eo(e){var t=Qt();if(typeof e=="function"){var n=e;if(e=n(),bl){kt(!0);try{n()}finally{kt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:da,lastRenderedState:e},t}function bd(e,t,n,l){return e.baseState=n,Pu(e,$e,typeof l=="function"?l:da)}function Jv(e,t,n,l,s){if(Wr(e))throw Error(u(485));if(e=t.action,e!==null){var o={payload:s,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){o.listeners.push(d)}};O.T!==null?n(!0):o.isTransition=!1,l(o),n=t.pending,n===null?(o.next=t.pending=o,Sd(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Sd(e,t){var n=t.action,l=t.payload,s=e.state;if(t.isTransition){var o=O.T,d={};O.T=d;try{var v=n(s,l),S=O.S;S!==null&&S(d,v),Ed(e,t,v)}catch(z){to(e,t,z)}finally{o!==null&&d.types!==null&&(o.types=d.types),O.T=o}}else try{o=n(s,l),Ed(e,t,o)}catch(z){to(e,t,z)}}function Ed(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){_d(e,t,l)},function(l){return to(e,t,l)}):_d(e,t,n)}function _d(e,t,n){t.status="fulfilled",t.value=n,Td(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Sd(e,n)))}function to(e,t,n){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=n,Td(t),t=t.next;while(t!==l)}e.action=null}function Td(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function wd(e,t){return t}function Rd(e,t){if(qe){var n=et.formState;if(n!==null){e:{var l=Re;if(qe){if(lt){t:{for(var s=lt,o=Tn;s.nodeType!==8;){if(!o){s=null;break t}if(s=Rn(s.nextSibling),s===null){s=null;break t}}o=s.data,s=o==="F!"||o==="F"?s:null}if(s){lt=Rn(s.nextSibling),l=s.data==="F!";break e}}Oa(l)}l=!1}l&&(t=n[0])}}return n=Qt(),n.memoizedState=n.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:wd,lastRenderedState:t},n.queue=l,n=Xd.bind(null,Re,l),l.dispatch=n,l=eo(!1),o=so.bind(null,Re,!1,l.queue),l=Qt(),s={state:t,dispatch:null,action:e,pending:null},l.queue=s,n=Jv.bind(null,Re,s,o,n),s.dispatch=n,l.memoizedState=e,[t,n,!1]}function xd(e){var t=gt();return Od(t,$e,e)}function Od(e,t,n){if(t=Pu(e,t,wd)[0],e=Jr(da)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=zi(t)}catch(d){throw d===Vl?jr:d}else l=t;t=gt();var s=t.queue,o=s.dispatch;return n!==t.memoizedState&&(Re.flags|=2048,Zl(9,{destroy:void 0},Fv.bind(null,s,n),null)),[l,o,e]}function Fv(e,t){e.action=t}function Ad(e){var t=gt(),n=$e;if(n!==null)return Od(t,n,e);gt(),t=t.memoizedState,n=gt();var l=n.queue.dispatch;return n.memoizedState=e,[t,l,!1]}function Zl(e,t,n,l){return e={tag:e,create:n,deps:l,inst:t,next:null},t=Re.updateQueue,t===null&&(t=Kr(),Re.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(l=n.next,n.next=e,e.next=l,t.lastEffect=e),e}function Cd(){return gt().memoizedState}function Fr(e,t,n,l){var s=Qt();Re.flags|=e,s.memoizedState=Zl(1|t,{destroy:void 0},n,l===void 0?null:l)}function $r(e,t,n,l){var s=gt();l=l===void 0?null:l;var o=s.memoizedState.inst;$e!==null&&l!==null&&Ku(l,$e.memoizedState.deps)?s.memoizedState=Zl(t,o,n,l):(Re.flags|=e,s.memoizedState=Zl(1|t,o,n,l))}function Dd(e,t){Fr(8390656,8,e,t)}function no(e,t){$r(2048,8,e,t)}function $v(e){Re.flags|=4;var t=Re.updateQueue;if(t===null)t=Kr(),Re.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Md(e){var t=gt().memoizedState;return $v({ref:t,nextImpl:e}),function(){if((ke&2)!==0)throw Error(u(440));return t.impl.apply(void 0,arguments)}}function zd(e,t){return $r(4,2,e,t)}function Nd(e,t){return $r(4,4,e,t)}function Ud(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Ld(e,t,n){n=n!=null?n.concat([e]):null,$r(4,4,Ud.bind(null,t,e),n)}function ao(){}function Bd(e,t){var n=gt();t=t===void 0?null:t;var l=n.memoizedState;return t!==null&&Ku(t,l[1])?l[0]:(n.memoizedState=[e,t],e)}function Hd(e,t){var n=gt();t=t===void 0?null:t;var l=n.memoizedState;if(t!==null&&Ku(t,l[1]))return l[0];if(l=e(),bl){kt(!0);try{e()}finally{kt(!1)}}return n.memoizedState=[l,t],l}function lo(e,t,n){return n===void 0||(fa&1073741824)!==0&&(Ne&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=jh(),Re.lanes|=e,Ba|=e,n)}function jd(e,t,n,l){return an(n,t)?n:Xl.current!==null?(e=lo(e,n,l),an(e,t)||(_t=!0),e):(fa&42)===0||(fa&1073741824)!==0&&(Ne&261930)===0?(_t=!0,e.memoizedState=n):(e=jh(),Re.lanes|=e,Ba|=e,t)}function qd(e,t,n,l,s){var o=k.p;k.p=o!==0&&8>o?o:8;var d=O.T,v={};O.T=v,so(e,!1,t,n);try{var S=s(),z=O.S;if(z!==null&&z(v,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var j=kv(S,l);Ni(e,t,j,cn(e))}else Ni(e,t,l,cn(e))}catch(Q){Ni(e,t,{then:function(){},status:"rejected",reason:Q},cn())}finally{k.p=o,d!==null&&v.types!==null&&(d.types=v.types),O.T=d}}function Wv(){}function io(e,t,n,l){if(e.tag!==5)throw Error(u(476));var s=Yd(e).queue;qd(e,s,t,F,n===null?Wv:function(){return Qd(e),n(l)})}function Yd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:F,baseState:F,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:da,lastRenderedState:F},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:da,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Qd(e){var t=Yd(e);t.next===null&&(t=e.alternate.memoizedState),Ni(e,t.next.queue,{},cn())}function ro(){return Nt($i)}function Vd(){return gt().memoizedState}function Gd(){return gt().memoizedState}function Pv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=cn();e=Da(n);var l=Ma(t,e,n);l!==null&&(Pt(l,t,n),Ai(l,t,n)),t={cache:Lu()},e.payload=t;return}t=t.return}}function Iv(e,t,n){var l=cn();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Wr(e)?kd(t,n):(n=wu(e,t,n,l),n!==null&&(Pt(n,e,l),Kd(n,t,l)))}function Xd(e,t,n){var l=cn();Ni(e,t,n,l)}function Ni(e,t,n,l){var s={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Wr(e))kd(t,s);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var d=t.lastRenderedState,v=o(d,n);if(s.hasEagerState=!0,s.eagerState=v,an(v,d))return Mr(e,t,s,0),et===null&&Dr(),!1}catch{}if(n=wu(e,t,s,l),n!==null)return Pt(n,e,l),Kd(n,t,l),!0}return!1}function so(e,t,n,l){if(l={lane:2,revertLane:Yo(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Wr(e)){if(t)throw Error(u(479))}else t=wu(e,n,l,2),t!==null&&Pt(t,e,2)}function Wr(e){var t=e.alternate;return e===Re||t!==null&&t===Re}function kd(e,t){kl=Xr=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Kd(e,t,n){if((n&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,b(e,n)}}var Ui={readContext:Nt,use:Zr,useCallback:dt,useContext:dt,useEffect:dt,useImperativeHandle:dt,useLayoutEffect:dt,useInsertionEffect:dt,useMemo:dt,useReducer:dt,useRef:dt,useState:dt,useDebugValue:dt,useDeferredValue:dt,useTransition:dt,useSyncExternalStore:dt,useId:dt,useHostTransitionStatus:dt,useFormState:dt,useActionState:dt,useOptimistic:dt,useMemoCache:dt,useCacheRefresh:dt};Ui.useEffectEvent=dt;var Zd={readContext:Nt,use:Zr,useCallback:function(e,t){return Qt().memoizedState=[e,t===void 0?null:t],e},useContext:Nt,useEffect:Dd,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Fr(4194308,4,Ud.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Fr(4194308,4,e,t)},useInsertionEffect:function(e,t){Fr(4,2,e,t)},useMemo:function(e,t){var n=Qt();t=t===void 0?null:t;var l=e();if(bl){kt(!0);try{e()}finally{kt(!1)}}return n.memoizedState=[l,t],l},useReducer:function(e,t,n){var l=Qt();if(n!==void 0){var s=n(t);if(bl){kt(!0);try{n(t)}finally{kt(!1)}}}else s=t;return l.memoizedState=l.baseState=s,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},l.queue=e,e=e.dispatch=Iv.bind(null,Re,e),[l.memoizedState,e]},useRef:function(e){var t=Qt();return e={current:e},t.memoizedState=e},useState:function(e){e=eo(e);var t=e.queue,n=Xd.bind(null,Re,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ao,useDeferredValue:function(e,t){var n=Qt();return lo(n,e,t)},useTransition:function(){var e=eo(!1);return e=qd.bind(null,Re,e.queue,!0,!1),Qt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var l=Re,s=Qt();if(qe){if(n===void 0)throw Error(u(407));n=n()}else{if(n=t(),et===null)throw Error(u(349));(Ne&127)!==0||md(l,t,n)}s.memoizedState=n;var o={value:n,getSnapshot:t};return s.queue=o,Dd(pd.bind(null,l,o,e),[e]),l.flags|=2048,Zl(9,{destroy:void 0},yd.bind(null,l,o,n,t),null),n},useId:function(){var e=Qt(),t=et.identifierPrefix;if(qe){var n=Kn,l=kn;n=(l&~(1<<32-Rt(l)-1)).toString(32)+n,t="_"+t+"R_"+n,n=kr++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=Kv++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:ro,useFormState:Rd,useActionState:Rd,useOptimistic:function(e){var t=Qt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=so.bind(null,Re,!0,n),n.dispatch=t,[e,t]},useMemoCache:Wu,useCacheRefresh:function(){return Qt().memoizedState=Pv.bind(null,Re)},useEffectEvent:function(e){var t=Qt(),n={impl:e};return t.memoizedState=n,function(){if((ke&2)!==0)throw Error(u(440));return n.impl.apply(void 0,arguments)}}},uo={readContext:Nt,use:Zr,useCallback:Bd,useContext:Nt,useEffect:no,useImperativeHandle:Ld,useInsertionEffect:zd,useLayoutEffect:Nd,useMemo:Hd,useReducer:Jr,useRef:Cd,useState:function(){return Jr(da)},useDebugValue:ao,useDeferredValue:function(e,t){var n=gt();return jd(n,$e.memoizedState,e,t)},useTransition:function(){var e=Jr(da)[0],t=gt().memoizedState;return[typeof e=="boolean"?e:zi(e),t]},useSyncExternalStore:hd,useId:Vd,useHostTransitionStatus:ro,useFormState:xd,useActionState:xd,useOptimistic:function(e,t){var n=gt();return bd(n,$e,e,t)},useMemoCache:Wu,useCacheRefresh:Gd};uo.useEffectEvent=Md;var Jd={readContext:Nt,use:Zr,useCallback:Bd,useContext:Nt,useEffect:no,useImperativeHandle:Ld,useInsertionEffect:zd,useLayoutEffect:Nd,useMemo:Hd,useReducer:Iu,useRef:Cd,useState:function(){return Iu(da)},useDebugValue:ao,useDeferredValue:function(e,t){var n=gt();return $e===null?lo(n,e,t):jd(n,$e.memoizedState,e,t)},useTransition:function(){var e=Iu(da)[0],t=gt().memoizedState;return[typeof e=="boolean"?e:zi(e),t]},useSyncExternalStore:hd,useId:Vd,useHostTransitionStatus:ro,useFormState:Ad,useActionState:Ad,useOptimistic:function(e,t){var n=gt();return $e!==null?bd(n,$e,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Wu,useCacheRefresh:Gd};Jd.useEffectEvent=Md;function oo(e,t,n,l){t=e.memoizedState,n=n(l,t),n=n==null?t:p({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var co={enqueueSetState:function(e,t,n){e=e._reactInternals;var l=cn(),s=Da(l);s.payload=t,n!=null&&(s.callback=n),t=Ma(e,s,l),t!==null&&(Pt(t,e,l),Ai(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var l=cn(),s=Da(l);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=Ma(e,s,l),t!==null&&(Pt(t,e,l),Ai(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=cn(),l=Da(n);l.tag=2,t!=null&&(l.callback=t),t=Ma(e,l,n),t!==null&&(Pt(t,e,n),Ai(t,e,n))}};function Fd(e,t,n,l,s,o,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,o,d):t.prototype&&t.prototype.isPureReactComponent?!Si(n,l)||!Si(s,o):!0}function $d(e,t,n,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,l),t.state!==e&&co.enqueueReplaceState(t,t.state,null)}function Sl(e,t){var n=t;if("ref"in t){n={};for(var l in t)l!=="ref"&&(n[l]=t[l])}if(e=e.defaultProps){n===t&&(n=p({},n));for(var s in e)n[s]===void 0&&(n[s]=e[s])}return n}function Wd(e){Cr(e)}function Pd(e){console.error(e)}function Id(e){Cr(e)}function Pr(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function eh(e,t,n){try{var l=e.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function fo(e,t,n){return n=Da(n),n.tag=3,n.payload={element:null},n.callback=function(){Pr(e,t)},n}function th(e){return e=Da(e),e.tag=3,e}function nh(e,t,n,l){var s=n.type.getDerivedStateFromError;if(typeof s=="function"){var o=l.value;e.payload=function(){return s(o)},e.callback=function(){eh(t,n,l)}}var d=n.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(e.callback=function(){eh(t,n,l),typeof s!="function"&&(Ha===null?Ha=new Set([this]):Ha.add(this));var v=l.stack;this.componentDidCatch(l.value,{componentStack:v!==null?v:""})})}function eg(e,t,n,l,s){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=n.alternate,t!==null&&ql(t,n,s,!0),n=rn.current,n!==null){switch(n.tag){case 31:case 13:return wn===null?cs():n.alternate===null&&ht===0&&(ht=3),n.flags&=-257,n.flags|=65536,n.lanes=s,l===qr?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([l]):t.add(l),Ho(e,l,s)),!1;case 22:return n.flags|=65536,l===qr?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([l]):n.add(l)),Ho(e,l,s)),!1}throw Error(u(435,n.tag))}return Ho(e,l,s),cs(),!1}if(qe)return t=rn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=s,l!==Du&&(e=Error(u(422),{cause:l}),Ti(Sn(e,n)))):(l!==Du&&(t=Error(u(423),{cause:l}),Ti(Sn(t,n))),e=e.current.alternate,e.flags|=65536,s&=-s,e.lanes|=s,l=Sn(l,n),s=fo(e.stateNode,l,s),Qu(e,s),ht!==4&&(ht=2)),!1;var o=Error(u(520),{cause:l});if(o=Sn(o,n),Vi===null?Vi=[o]:Vi.push(o),ht!==4&&(ht=2),t===null)return!0;l=Sn(l,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=s&-s,n.lanes|=e,e=fo(n.stateNode,l,e),Qu(n,e),!1;case 1:if(t=n.type,o=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(Ha===null||!Ha.has(o))))return n.flags|=65536,s&=-s,n.lanes|=s,s=th(s),nh(s,e,n,l),Qu(n,s),!1}n=n.return}while(n!==null);return!1}var ho=Error(u(461)),_t=!1;function Ut(e,t,n,l){t.child=e===null?rd(t,null,n,l):gl(t,e.child,n,l)}function ah(e,t,n,l,s){n=n.render;var o=t.ref;if("ref"in l){var d={};for(var v in l)v!=="ref"&&(d[v]=l[v])}else d=l;return ml(t),l=Zu(e,t,n,d,o,s),v=Ju(),e!==null&&!_t?(Fu(e,t,s),ha(e,t,s)):(qe&&v&&Au(t),t.flags|=1,Ut(e,t,l,s),t.child)}function lh(e,t,n,l,s){if(e===null){var o=n.type;return typeof o=="function"&&!Ru(o)&&o.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=o,ih(e,t,o,l,s)):(e=Nr(n.type,null,l,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!Eo(e,s)){var d=o.memoizedProps;if(n=n.compare,n=n!==null?n:Si,n(d,l)&&e.ref===t.ref)return ha(e,t,s)}return t.flags|=1,e=sa(o,l),e.ref=t.ref,e.return=t,t.child=e}function ih(e,t,n,l,s){if(e!==null){var o=e.memoizedProps;if(Si(o,l)&&e.ref===t.ref)if(_t=!1,t.pendingProps=l=o,Eo(e,s))(e.flags&131072)!==0&&(_t=!0);else return t.lanes=e.lanes,ha(e,t,s)}return mo(e,t,n,l,s)}function rh(e,t,n,l){var s=l.children,o=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(o=o!==null?o.baseLanes|n:n,e!==null){for(l=t.child=e.child,s=0;l!==null;)s=s|l.lanes|l.childLanes,l=l.sibling;l=s&~o}else l=0,t.child=null;return sh(e,t,o,n,l)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Hr(t,o!==null?o.cachePool:null),o!==null?od(t,o):Gu(),cd(t);else return l=t.lanes=536870912,sh(e,t,o!==null?o.baseLanes|n:n,n,l)}else o!==null?(Hr(t,o.cachePool),od(t,o),Na(),t.memoizedState=null):(e!==null&&Hr(t,null),Gu(),Na());return Ut(e,t,s,n),t.child}function Li(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function sh(e,t,n,l,s){var o=Hu();return o=o===null?null:{parent:St._currentValue,pool:o},t.memoizedState={baseLanes:n,cachePool:o},e!==null&&Hr(t,null),Gu(),cd(t),e!==null&&ql(e,t,l,!0),t.childLanes=s,null}function Ir(e,t){return t=ts({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function uh(e,t,n){return gl(t,e.child,null,n),e=Ir(t,t.pendingProps),e.flags|=2,sn(t),t.memoizedState=null,e}function tg(e,t,n){var l=t.pendingProps,s=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(qe){if(l.mode==="hidden")return e=Ir(t,l),t.lanes=536870912,Li(null,e);if(ku(t),(e=lt)?(e=Sm(e,Tn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ra!==null?{id:kn,overflow:Kn}:null,retryLane:536870912,hydrationErrors:null},n=kf(e),n.return=t,t.child=n,zt=t,lt=null)):e=null,e===null)throw Oa(t);return t.lanes=536870912,null}return Ir(t,l)}var o=e.memoizedState;if(o!==null){var d=o.dehydrated;if(ku(t),s)if(t.flags&256)t.flags&=-257,t=uh(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(u(558));else if(_t||ql(e,t,n,!1),s=(n&e.childLanes)!==0,_t||s){if(l=et,l!==null&&(d=w(l,n),d!==0&&d!==o.retryLane))throw o.retryLane=d,cl(e,d),Pt(l,e,d),ho;cs(),t=uh(e,t,n)}else e=o.treeContext,lt=Rn(d.nextSibling),zt=t,qe=!0,xa=null,Tn=!1,e!==null&&Jf(t,e),t=Ir(t,l),t.flags|=4096;return t}return e=sa(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function es(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(u(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function mo(e,t,n,l,s){return ml(t),n=Zu(e,t,n,l,void 0,s),l=Ju(),e!==null&&!_t?(Fu(e,t,s),ha(e,t,s)):(qe&&l&&Au(t),t.flags|=1,Ut(e,t,n,s),t.child)}function oh(e,t,n,l,s,o){return ml(t),t.updateQueue=null,n=dd(t,l,n,s),fd(e),l=Ju(),e!==null&&!_t?(Fu(e,t,o),ha(e,t,o)):(qe&&l&&Au(t),t.flags|=1,Ut(e,t,n,o),t.child)}function ch(e,t,n,l,s){if(ml(t),t.stateNode===null){var o=Ll,d=n.contextType;typeof d=="object"&&d!==null&&(o=Nt(d)),o=new n(l,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=co,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=l,o.state=t.memoizedState,o.refs={},qu(t),d=n.contextType,o.context=typeof d=="object"&&d!==null?Nt(d):Ll,o.state=t.memoizedState,d=n.getDerivedStateFromProps,typeof d=="function"&&(oo(t,n,d,l),o.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(d=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),d!==o.state&&co.enqueueReplaceState(o,o.state,null),Di(t,l,o,s),Ci(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){o=t.stateNode;var v=t.memoizedProps,S=Sl(n,v);o.props=S;var z=o.context,j=n.contextType;d=Ll,typeof j=="object"&&j!==null&&(d=Nt(j));var Q=n.getDerivedStateFromProps;j=typeof Q=="function"||typeof o.getSnapshotBeforeUpdate=="function",v=t.pendingProps!==v,j||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(v||z!==d)&&$d(t,o,l,d),Ca=!1;var N=t.memoizedState;o.state=N,Di(t,l,o,s),Ci(),z=t.memoizedState,v||N!==z||Ca?(typeof Q=="function"&&(oo(t,n,Q,l),z=t.memoizedState),(S=Ca||Fd(t,n,S,l,N,z,d))?(j||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=z),o.props=l,o.state=z,o.context=d,l=S):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{o=t.stateNode,Yu(e,t),d=t.memoizedProps,j=Sl(n,d),o.props=j,Q=t.pendingProps,N=o.context,z=n.contextType,S=Ll,typeof z=="object"&&z!==null&&(S=Nt(z)),v=n.getDerivedStateFromProps,(z=typeof v=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(d!==Q||N!==S)&&$d(t,o,l,S),Ca=!1,N=t.memoizedState,o.state=N,Di(t,l,o,s),Ci();var L=t.memoizedState;d!==Q||N!==L||Ca||e!==null&&e.dependencies!==null&&Lr(e.dependencies)?(typeof v=="function"&&(oo(t,n,v,l),L=t.memoizedState),(j=Ca||Fd(t,n,j,l,N,L,S)||e!==null&&e.dependencies!==null&&Lr(e.dependencies))?(z||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(l,L,S),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(l,L,S)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||d===e.memoizedProps&&N===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&N===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=L),o.props=l,o.state=L,o.context=S,l=j):(typeof o.componentDidUpdate!="function"||d===e.memoizedProps&&N===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&N===e.memoizedState||(t.flags|=1024),l=!1)}return o=l,es(e,t),l=(t.flags&128)!==0,o||l?(o=t.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:o.render(),t.flags|=1,e!==null&&l?(t.child=gl(t,e.child,null,s),t.child=gl(t,null,n,s)):Ut(e,t,n,s),t.memoizedState=o.state,e=t.child):e=ha(e,t,s),e}function fh(e,t,n,l){return dl(),t.flags|=256,Ut(e,t,n,l),t.child}var yo={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function po(e){return{baseLanes:e,cachePool:ed()}}function vo(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=on),e}function dh(e,t,n){var l=t.pendingProps,s=!1,o=(t.flags&128)!==0,d;if((d=o)||(d=e!==null&&e.memoizedState===null?!1:(vt.current&2)!==0),d&&(s=!0,t.flags&=-129),d=(t.flags&32)!==0,t.flags&=-33,e===null){if(qe){if(s?za(t):Na(),(e=lt)?(e=Sm(e,Tn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ra!==null?{id:kn,overflow:Kn}:null,retryLane:536870912,hydrationErrors:null},n=kf(e),n.return=t,t.child=n,zt=t,lt=null)):e=null,e===null)throw Oa(t);return Io(e)?t.lanes=32:t.lanes=536870912,null}var v=l.children;return l=l.fallback,s?(Na(),s=t.mode,v=ts({mode:"hidden",children:v},s),l=fl(l,s,n,null),v.return=t,l.return=t,v.sibling=l,t.child=v,l=t.child,l.memoizedState=po(n),l.childLanes=vo(e,d,n),t.memoizedState=yo,Li(null,l)):(za(t),go(t,v))}var S=e.memoizedState;if(S!==null&&(v=S.dehydrated,v!==null)){if(o)t.flags&256?(za(t),t.flags&=-257,t=bo(e,t,n)):t.memoizedState!==null?(Na(),t.child=e.child,t.flags|=128,t=null):(Na(),v=l.fallback,s=t.mode,l=ts({mode:"visible",children:l.children},s),v=fl(v,s,n,null),v.flags|=2,l.return=t,v.return=t,l.sibling=v,t.child=l,gl(t,e.child,null,n),l=t.child,l.memoizedState=po(n),l.childLanes=vo(e,d,n),t.memoizedState=yo,t=Li(null,l));else if(za(t),Io(v)){if(d=v.nextSibling&&v.nextSibling.dataset,d)var z=d.dgst;d=z,l=Error(u(419)),l.stack="",l.digest=d,Ti({value:l,source:null,stack:null}),t=bo(e,t,n)}else if(_t||ql(e,t,n,!1),d=(n&e.childLanes)!==0,_t||d){if(d=et,d!==null&&(l=w(d,n),l!==0&&l!==S.retryLane))throw S.retryLane=l,cl(e,l),Pt(d,e,l),ho;Po(v)||cs(),t=bo(e,t,n)}else Po(v)?(t.flags|=192,t.child=e.child,t=null):(e=S.treeContext,lt=Rn(v.nextSibling),zt=t,qe=!0,xa=null,Tn=!1,e!==null&&Jf(t,e),t=go(t,l.children),t.flags|=4096);return t}return s?(Na(),v=l.fallback,s=t.mode,S=e.child,z=S.sibling,l=sa(S,{mode:"hidden",children:l.children}),l.subtreeFlags=S.subtreeFlags&65011712,z!==null?v=sa(z,v):(v=fl(v,s,n,null),v.flags|=2),v.return=t,l.return=t,l.sibling=v,t.child=l,Li(null,l),l=t.child,v=e.child.memoizedState,v===null?v=po(n):(s=v.cachePool,s!==null?(S=St._currentValue,s=s.parent!==S?{parent:S,pool:S}:s):s=ed(),v={baseLanes:v.baseLanes|n,cachePool:s}),l.memoizedState=v,l.childLanes=vo(e,d,n),t.memoizedState=yo,Li(e.child,l)):(za(t),n=e.child,e=n.sibling,n=sa(n,{mode:"visible",children:l.children}),n.return=t,n.sibling=null,e!==null&&(d=t.deletions,d===null?(t.deletions=[e],t.flags|=16):d.push(e)),t.child=n,t.memoizedState=null,n)}function go(e,t){return t=ts({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function ts(e,t){return e=ln(22,e,null,t),e.lanes=0,e}function bo(e,t,n){return gl(t,e.child,null,n),e=go(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function hh(e,t,n){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Nu(e.return,t,n)}function So(e,t,n,l,s,o){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:s,treeForkCount:o}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=l,d.tail=n,d.tailMode=s,d.treeForkCount=o)}function mh(e,t,n){var l=t.pendingProps,s=l.revealOrder,o=l.tail;l=l.children;var d=vt.current,v=(d&2)!==0;if(v?(d=d&1|2,t.flags|=128):d&=1,q(vt,d),Ut(e,t,l,n),l=qe?_i:0,!v&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&hh(e,n,t);else if(e.tag===19)hh(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&Gr(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),So(t,!1,s,n,o,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Gr(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}So(t,!0,n,null,o,l);break;case"together":So(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function ha(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ba|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(ql(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(u(153));if(t.child!==null){for(e=t.child,n=sa(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=sa(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Eo(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Lr(e)))}function ng(e,t,n){switch(t.tag){case 3:Se(t,t.stateNode.containerInfo),Aa(t,St,e.memoizedState.cache),dl();break;case 27:case 5:hn(t);break;case 4:Se(t,t.stateNode.containerInfo);break;case 10:Aa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ku(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(za(t),t.flags|=128,null):(n&t.child.childLanes)!==0?dh(e,t,n):(za(t),e=ha(e,t,n),e!==null?e.sibling:null);za(t);break;case 19:var s=(e.flags&128)!==0;if(l=(n&t.childLanes)!==0,l||(ql(e,t,n,!1),l=(n&t.childLanes)!==0),s){if(l)return mh(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),q(vt,vt.current),l)break;return null;case 22:return t.lanes=0,rh(e,t,n,t.pendingProps);case 24:Aa(t,St,e.memoizedState.cache)}return ha(e,t,n)}function yh(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)_t=!0;else{if(!Eo(e,n)&&(t.flags&128)===0)return _t=!1,ng(e,t,n);_t=(e.flags&131072)!==0}else _t=!1,qe&&(t.flags&1048576)!==0&&Zf(t,_i,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=pl(t.elementType),t.type=e,typeof e=="function")Ru(e)?(l=Sl(e,l),t.tag=1,t=ch(null,t,e,l,n)):(t.tag=0,t=mo(null,t,e,l,n));else{if(e!=null){var s=e.$$typeof;if(s===ge){t.tag=11,t=ah(null,t,e,l,n);break e}else if(s===A){t.tag=14,t=lh(null,t,e,l,n);break e}}throw t=Qe(e)||e,Error(u(306,t,""))}}return t;case 0:return mo(e,t,t.type,t.pendingProps,n);case 1:return l=t.type,s=Sl(l,t.pendingProps),ch(e,t,l,s,n);case 3:e:{if(Se(t,t.stateNode.containerInfo),e===null)throw Error(u(387));l=t.pendingProps;var o=t.memoizedState;s=o.element,Yu(e,t),Di(t,l,null,n);var d=t.memoizedState;if(l=d.cache,Aa(t,St,l),l!==o.cache&&Uu(t,[St],n,!0),Ci(),l=d.element,o.isDehydrated)if(o={element:l,isDehydrated:!1,cache:d.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=fh(e,t,l,n);break e}else if(l!==s){s=Sn(Error(u(424)),t),Ti(s),t=fh(e,t,l,n);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,lt=Rn(e.firstChild),zt=t,qe=!0,xa=null,Tn=!0,n=rd(t,null,l,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(dl(),l===s){t=ha(e,t,n);break e}Ut(e,t,l,n)}t=t.child}return t;case 26:return es(e,t),e===null?(n=xm(t.type,null,t.pendingProps,null))?t.memoizedState=n:qe||(n=t.type,e=t.pendingProps,l=vs(ue.current).createElement(n),l[ee]=t,l[ne]=e,Lt(l,n,e),rt(l),t.stateNode=l):t.memoizedState=xm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return hn(t),e===null&&qe&&(l=t.stateNode=Tm(t.type,t.pendingProps,ue.current),zt=t,Tn=!0,s=lt,Qa(t.type)?(ec=s,lt=Rn(l.firstChild)):lt=s),Ut(e,t,t.pendingProps.children,n),es(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&qe&&((s=l=lt)&&(l=zg(l,t.type,t.pendingProps,Tn),l!==null?(t.stateNode=l,zt=t,lt=Rn(l.firstChild),Tn=!1,s=!0):s=!1),s||Oa(t)),hn(t),s=t.type,o=t.pendingProps,d=e!==null?e.memoizedProps:null,l=o.children,Fo(s,o)?l=null:d!==null&&Fo(s,d)&&(t.flags|=32),t.memoizedState!==null&&(s=Zu(e,t,Zv,null,null,n),$i._currentValue=s),es(e,t),Ut(e,t,l,n),t.child;case 6:return e===null&&qe&&((e=n=lt)&&(n=Ng(n,t.pendingProps,Tn),n!==null?(t.stateNode=n,zt=t,lt=null,e=!0):e=!1),e||Oa(t)),null;case 13:return dh(e,t,n);case 4:return Se(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=gl(t,null,l,n):Ut(e,t,l,n),t.child;case 11:return ah(e,t,t.type,t.pendingProps,n);case 7:return Ut(e,t,t.pendingProps,n),t.child;case 8:return Ut(e,t,t.pendingProps.children,n),t.child;case 12:return Ut(e,t,t.pendingProps.children,n),t.child;case 10:return l=t.pendingProps,Aa(t,t.type,l.value),Ut(e,t,l.children,n),t.child;case 9:return s=t.type._context,l=t.pendingProps.children,ml(t),s=Nt(s),l=l(s),t.flags|=1,Ut(e,t,l,n),t.child;case 14:return lh(e,t,t.type,t.pendingProps,n);case 15:return ih(e,t,t.type,t.pendingProps,n);case 19:return mh(e,t,n);case 31:return tg(e,t,n);case 22:return rh(e,t,n,t.pendingProps);case 24:return ml(t),l=Nt(St),e===null?(s=Hu(),s===null&&(s=et,o=Lu(),s.pooledCache=o,o.refCount++,o!==null&&(s.pooledCacheLanes|=n),s=o),t.memoizedState={parent:l,cache:s},qu(t),Aa(t,St,s)):((e.lanes&n)!==0&&(Yu(e,t),Di(t,null,null,n),Ci()),s=e.memoizedState,o=t.memoizedState,s.parent!==l?(s={parent:l,cache:l},t.memoizedState=s,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=s),Aa(t,St,l)):(l=o.cache,Aa(t,St,l),l!==s.cache&&Uu(t,[St],n,!0))),Ut(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(u(156,t.tag))}function ma(e){e.flags|=4}function _o(e,t,n,l,s){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(s&335544128)===s)if(e.stateNode.complete)e.flags|=8192;else if(Vh())e.flags|=8192;else throw vl=qr,ju}else e.flags&=-16777217}function ph(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Mm(t))if(Vh())e.flags|=8192;else throw vl=qr,ju}function ns(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?yt():536870912,e.lanes|=t,Wl|=t)}function Bi(e,t){if(!qe)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function it(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,l=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,l|=s.subtreeFlags&65011712,l|=s.flags&65011712,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,l|=s.subtreeFlags,l|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=l,e.childLanes=n,t}function ag(e,t,n){var l=t.pendingProps;switch(Cu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return it(t),null;case 1:return it(t),null;case 3:return n=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),ca(St),Ze(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(jl(t)?ma(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Mu())),it(t),null;case 26:var s=t.type,o=t.memoizedState;return e===null?(ma(t),o!==null?(it(t),ph(t,o)):(it(t),_o(t,s,null,l,n))):o?o!==e.memoizedState?(ma(t),it(t),ph(t,o)):(it(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&ma(t),it(t),_o(t,s,e,l,n)),null;case 27:if(Dn(t),n=ue.current,s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ma(t);else{if(!l){if(t.stateNode===null)throw Error(u(166));return it(t),null}e=J.current,jl(t)?Ff(t):(e=Tm(s,l,n),t.stateNode=e,ma(t))}return it(t),null;case 5:if(Dn(t),s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ma(t);else{if(!l){if(t.stateNode===null)throw Error(u(166));return it(t),null}if(o=J.current,jl(t))Ff(t);else{var d=vs(ue.current);switch(o){case 1:o=d.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:o=d.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":o=d.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":o=d.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":o=d.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof l.is=="string"?d.createElement("select",{is:l.is}):d.createElement("select"),l.multiple?o.multiple=!0:l.size&&(o.size=l.size);break;default:o=typeof l.is=="string"?d.createElement(s,{is:l.is}):d.createElement(s)}}o[ee]=t,o[ne]=l;e:for(d=t.child;d!==null;){if(d.tag===5||d.tag===6)o.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}t.stateNode=o;e:switch(Lt(o,s,l),s){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&ma(t)}}return it(t),_o(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&ma(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(u(166));if(e=ue.current,jl(t)){if(e=t.stateNode,n=t.memoizedProps,l=null,s=zt,s!==null)switch(s.tag){case 27:case 5:l=s.memoizedProps}e[ee]=t,e=!!(e.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||dm(e.nodeValue,n)),e||Oa(t,!0)}else e=vs(e).createTextNode(l),e[ee]=t,t.stateNode=e}return it(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(l=jl(t),n!==null){if(e===null){if(!l)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[ee]=t}else dl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;it(t),e=!1}else n=Mu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(sn(t),t):(sn(t),null);if((t.flags&128)!==0)throw Error(u(558))}return it(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(s=jl(t),l!==null&&l.dehydrated!==null){if(e===null){if(!s)throw Error(u(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(u(317));s[ee]=t}else dl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;it(t),s=!1}else s=Mu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),s=!0;if(!s)return t.flags&256?(sn(t),t):(sn(t),null)}return sn(t),(t.flags&128)!==0?(t.lanes=n,t):(n=l!==null,e=e!==null&&e.memoizedState!==null,n&&(l=t.child,s=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(s=l.alternate.memoizedState.cachePool.pool),o=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(o=l.memoizedState.cachePool.pool),o!==s&&(l.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),ns(t,t.updateQueue),it(t),null);case 4:return Ze(),e===null&&Xo(t.stateNode.containerInfo),it(t),null;case 10:return ca(t.type),it(t),null;case 19:if(B(vt),l=t.memoizedState,l===null)return it(t),null;if(s=(t.flags&128)!==0,o=l.rendering,o===null)if(s)Bi(l,!1);else{if(ht!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=Gr(e),o!==null){for(t.flags|=128,Bi(l,!1),e=o.updateQueue,t.updateQueue=e,ns(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Xf(n,e),n=n.sibling;return q(vt,vt.current&1|2),qe&&ua(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&ut()>ss&&(t.flags|=128,s=!0,Bi(l,!1),t.lanes=4194304)}else{if(!s)if(e=Gr(o),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,ns(t,e),Bi(l,!0),l.tail===null&&l.tailMode==="hidden"&&!o.alternate&&!qe)return it(t),null}else 2*ut()-l.renderingStartTime>ss&&n!==536870912&&(t.flags|=128,s=!0,Bi(l,!1),t.lanes=4194304);l.isBackwards?(o.sibling=t.child,t.child=o):(e=l.last,e!==null?e.sibling=o:t.child=o,l.last=o)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=ut(),e.sibling=null,n=vt.current,q(vt,s?n&1|2:n&1),qe&&ua(t,l.treeForkCount),e):(it(t),null);case 22:case 23:return sn(t),Xu(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(n&536870912)!==0&&(t.flags&128)===0&&(it(t),t.subtreeFlags&6&&(t.flags|=8192)):it(t),n=t.updateQueue,n!==null&&ns(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==n&&(t.flags|=2048),e!==null&&B(yl),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),ca(St),it(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function lg(e,t){switch(Cu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ca(St),Ze(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Dn(t),null;case 31:if(t.memoizedState!==null){if(sn(t),t.alternate===null)throw Error(u(340));dl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(sn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));dl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return B(vt),null;case 4:return Ze(),null;case 10:return ca(t.type),null;case 22:case 23:return sn(t),Xu(),e!==null&&B(yl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ca(St),null;case 25:return null;default:return null}}function vh(e,t){switch(Cu(t),t.tag){case 3:ca(St),Ze();break;case 26:case 27:case 5:Dn(t);break;case 4:Ze();break;case 31:t.memoizedState!==null&&sn(t);break;case 13:sn(t);break;case 19:B(vt);break;case 10:ca(t.type);break;case 22:case 23:sn(t),Xu(),e!==null&&B(yl);break;case 24:ca(St)}}function Hi(e,t){try{var n=t.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var s=l.next;n=s;do{if((n.tag&e)===e){l=void 0;var o=n.create,d=n.inst;l=o(),d.destroy=l}n=n.next}while(n!==s)}}catch(v){Fe(t,t.return,v)}}function Ua(e,t,n){try{var l=t.updateQueue,s=l!==null?l.lastEffect:null;if(s!==null){var o=s.next;l=o;do{if((l.tag&e)===e){var d=l.inst,v=d.destroy;if(v!==void 0){d.destroy=void 0,s=t;var S=n,z=v;try{z()}catch(j){Fe(s,S,j)}}}l=l.next}while(l!==o)}}catch(j){Fe(t,t.return,j)}}function gh(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{ud(t,n)}catch(l){Fe(e,e.return,l)}}}function bh(e,t,n){n.props=Sl(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(l){Fe(e,t,l)}}function ji(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof n=="function"?e.refCleanup=n(l):n.current=l}}catch(s){Fe(e,t,s)}}function Zn(e,t){var n=e.ref,l=e.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(s){Fe(e,t,s)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(s){Fe(e,t,s)}else n.current=null}function Sh(e){var t=e.type,n=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break e;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(s){Fe(e,e.return,s)}}function To(e,t,n){try{var l=e.stateNode;xg(l,e.type,n,t),l[ne]=t}catch(s){Fe(e,e.return,s)}}function Eh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Qa(e.type)||e.tag===4}function wo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Eh(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&&Qa(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ro(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ia));else if(l!==4&&(l===27&&Qa(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Ro(e,t,n),e=e.sibling;e!==null;)Ro(e,t,n),e=e.sibling}function as(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(l!==4&&(l===27&&Qa(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(as(e,t,n),e=e.sibling;e!==null;)as(e,t,n),e=e.sibling}function _h(e){var t=e.stateNode,n=e.memoizedProps;try{for(var l=e.type,s=t.attributes;s.length;)t.removeAttributeNode(s[0]);Lt(t,l,n),t[ee]=e,t[ne]=n}catch(o){Fe(e,e.return,o)}}var ya=!1,Tt=!1,xo=!1,Th=typeof WeakSet=="function"?WeakSet:Set,At=null;function ig(e,t){if(e=e.containerInfo,Zo=ws,e=Lf(e),gu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var s=l.anchorOffset,o=l.focusNode;l=l.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var d=0,v=-1,S=-1,z=0,j=0,Q=e,N=null;t:for(;;){for(var L;Q!==n||s!==0&&Q.nodeType!==3||(v=d+s),Q!==o||l!==0&&Q.nodeType!==3||(S=d+l),Q.nodeType===3&&(d+=Q.nodeValue.length),(L=Q.firstChild)!==null;)N=Q,Q=L;for(;;){if(Q===e)break t;if(N===n&&++z===s&&(v=d),N===o&&++j===l&&(S=d),(L=Q.nextSibling)!==null)break;Q=N,N=Q.parentNode}Q=L}n=v===-1||S===-1?null:{start:v,end:S}}else n=null}n=n||{start:0,end:0}}else n=null;for(Jo={focusedElem:e,selectionRange:n},ws=!1,At=t;At!==null;)if(t=At,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,At=e;else for(;At!==null;){switch(t=At,o=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)s=e[n],s.ref.impl=s.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&o!==null){e=void 0,n=t,s=o.memoizedProps,o=o.memoizedState,l=n.stateNode;try{var le=Sl(n.type,s);e=l.getSnapshotBeforeUpdate(le,o),l.__reactInternalSnapshotBeforeUpdate=e}catch(me){Fe(n,n.return,me)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Wo(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Wo(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(u(163))}if(e=t.sibling,e!==null){e.return=t.return,At=e;break}At=t.return}}function wh(e,t,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:va(e,n),l&4&&Hi(5,n);break;case 1:if(va(e,n),l&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(d){Fe(n,n.return,d)}else{var s=Sl(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(s,t,e.__reactInternalSnapshotBeforeUpdate)}catch(d){Fe(n,n.return,d)}}l&64&&gh(n),l&512&&ji(n,n.return);break;case 3:if(va(e,n),l&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{ud(e,t)}catch(d){Fe(n,n.return,d)}}break;case 27:t===null&&l&4&&_h(n);case 26:case 5:va(e,n),t===null&&l&4&&Sh(n),l&512&&ji(n,n.return);break;case 12:va(e,n);break;case 31:va(e,n),l&4&&Oh(e,n);break;case 13:va(e,n),l&4&&Ah(e,n),l&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=mg.bind(null,n),Ug(e,n))));break;case 22:if(l=n.memoizedState!==null||ya,!l){t=t!==null&&t.memoizedState!==null||Tt,s=ya;var o=Tt;ya=l,(Tt=t)&&!o?ga(e,n,(n.subtreeFlags&8772)!==0):va(e,n),ya=s,Tt=o}break;case 30:break;default:va(e,n)}}function Rh(e){var t=e.alternate;t!==null&&(e.alternate=null,Rh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ct(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 st=null,Jt=!1;function pa(e,t,n){for(n=n.child;n!==null;)xh(e,t,n),n=n.sibling}function xh(e,t,n){if(at&&typeof at.onCommitFiberUnmount=="function")try{at.onCommitFiberUnmount(ta,n)}catch{}switch(n.tag){case 26:Tt||Zn(n,t),pa(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Tt||Zn(n,t);var l=st,s=Jt;Qa(n.type)&&(st=n.stateNode,Jt=!1),pa(e,t,n),Zi(n.stateNode),st=l,Jt=s;break;case 5:Tt||Zn(n,t);case 6:if(l=st,s=Jt,st=null,pa(e,t,n),st=l,Jt=s,st!==null)if(Jt)try{(st.nodeType===9?st.body:st.nodeName==="HTML"?st.ownerDocument.body:st).removeChild(n.stateNode)}catch(o){Fe(n,t,o)}else try{st.removeChild(n.stateNode)}catch(o){Fe(n,t,o)}break;case 18:st!==null&&(Jt?(e=st,gm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),ii(e)):gm(st,n.stateNode));break;case 4:l=st,s=Jt,st=n.stateNode.containerInfo,Jt=!0,pa(e,t,n),st=l,Jt=s;break;case 0:case 11:case 14:case 15:Ua(2,n,t),Tt||Ua(4,n,t),pa(e,t,n);break;case 1:Tt||(Zn(n,t),l=n.stateNode,typeof l.componentWillUnmount=="function"&&bh(n,t,l)),pa(e,t,n);break;case 21:pa(e,t,n);break;case 22:Tt=(l=Tt)||n.memoizedState!==null,pa(e,t,n),Tt=l;break;default:pa(e,t,n)}}function Oh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ii(e)}catch(n){Fe(t,t.return,n)}}}function Ah(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ii(e)}catch(n){Fe(t,t.return,n)}}function rg(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Th),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Th),t;default:throw Error(u(435,e.tag))}}function ls(e,t){var n=rg(e);t.forEach(function(l){if(!n.has(l)){n.add(l);var s=yg.bind(null,e,l);l.then(s,s)}})}function Ft(e,t){var n=t.deletions;if(n!==null)for(var l=0;l<n.length;l++){var s=n[l],o=e,d=t,v=d;e:for(;v!==null;){switch(v.tag){case 27:if(Qa(v.type)){st=v.stateNode,Jt=!1;break e}break;case 5:st=v.stateNode,Jt=!1;break e;case 3:case 4:st=v.stateNode.containerInfo,Jt=!0;break e}v=v.return}if(st===null)throw Error(u(160));xh(o,d,s),st=null,Jt=!1,o=s.alternate,o!==null&&(o.return=null),s.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Ch(t,e),t=t.sibling}var jn=null;function Ch(e,t){var n=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Ft(t,e),$t(e),l&4&&(Ua(3,e,e.return),Hi(3,e),Ua(5,e,e.return));break;case 1:Ft(t,e),$t(e),l&512&&(Tt||n===null||Zn(n,n.return)),l&64&&ya&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var s=jn;if(Ft(t,e),$t(e),l&512&&(Tt||n===null||Zn(n,n.return)),l&4){var o=n!==null?n.memoizedState:null;if(l=e.memoizedState,n===null)if(l===null)if(e.stateNode===null){e:{l=e.type,n=e.memoizedProps,s=s.ownerDocument||s;t:switch(l){case"title":o=s.getElementsByTagName("title")[0],(!o||o[ot]||o[ee]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=s.createElement(l),s.head.insertBefore(o,s.querySelector("head > title"))),Lt(o,l,n),o[ee]=e,rt(o),l=o;break e;case"link":var d=Cm("link","href",s).get(l+(n.href||""));if(d){for(var v=0;v<d.length;v++)if(o=d[v],o.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&o.getAttribute("rel")===(n.rel==null?null:n.rel)&&o.getAttribute("title")===(n.title==null?null:n.title)&&o.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){d.splice(v,1);break t}}o=s.createElement(l),Lt(o,l,n),s.head.appendChild(o);break;case"meta":if(d=Cm("meta","content",s).get(l+(n.content||""))){for(v=0;v<d.length;v++)if(o=d[v],o.getAttribute("content")===(n.content==null?null:""+n.content)&&o.getAttribute("name")===(n.name==null?null:n.name)&&o.getAttribute("property")===(n.property==null?null:n.property)&&o.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute("charset")===(n.charSet==null?null:n.charSet)){d.splice(v,1);break t}}o=s.createElement(l),Lt(o,l,n),s.head.appendChild(o);break;default:throw Error(u(468,l))}o[ee]=e,rt(o),l=o}e.stateNode=l}else Dm(s,e.type,e.stateNode);else e.stateNode=Am(s,l,e.memoizedProps);else o!==l?(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,l===null?Dm(s,e.type,e.stateNode):Am(s,l,e.memoizedProps)):l===null&&e.stateNode!==null&&To(e,e.memoizedProps,n.memoizedProps)}break;case 27:Ft(t,e),$t(e),l&512&&(Tt||n===null||Zn(n,n.return)),n!==null&&l&4&&To(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Ft(t,e),$t(e),l&512&&(Tt||n===null||Zn(n,n.return)),e.flags&32){s=e.stateNode;try{Al(s,"")}catch(le){Fe(e,e.return,le)}}l&4&&e.stateNode!=null&&(s=e.memoizedProps,To(e,s,n!==null?n.memoizedProps:s)),l&1024&&(xo=!0);break;case 6:if(Ft(t,e),$t(e),l&4){if(e.stateNode===null)throw Error(u(162));l=e.memoizedProps,n=e.stateNode;try{n.nodeValue=l}catch(le){Fe(e,e.return,le)}}break;case 3:if(Ss=null,s=jn,jn=gs(t.containerInfo),Ft(t,e),jn=s,$t(e),l&4&&n!==null&&n.memoizedState.isDehydrated)try{ii(t.containerInfo)}catch(le){Fe(e,e.return,le)}xo&&(xo=!1,Dh(e));break;case 4:l=jn,jn=gs(e.stateNode.containerInfo),Ft(t,e),$t(e),jn=l;break;case 12:Ft(t,e),$t(e);break;case 31:Ft(t,e),$t(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,ls(e,l)));break;case 13:Ft(t,e),$t(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(rs=ut()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,ls(e,l)));break;case 22:s=e.memoizedState!==null;var S=n!==null&&n.memoizedState!==null,z=ya,j=Tt;if(ya=z||s,Tt=j||S,Ft(t,e),Tt=j,ya=z,$t(e),l&8192)e:for(t=e.stateNode,t._visibility=s?t._visibility&-2:t._visibility|1,s&&(n===null||S||ya||Tt||El(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){S=n=t;try{if(o=S.stateNode,s)d=o.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none";else{v=S.stateNode;var Q=S.memoizedProps.style,N=Q!=null&&Q.hasOwnProperty("display")?Q.display:null;v.style.display=N==null||typeof N=="boolean"?"":(""+N).trim()}}catch(le){Fe(S,S.return,le)}}}else if(t.tag===6){if(n===null){S=t;try{S.stateNode.nodeValue=s?"":S.memoizedProps}catch(le){Fe(S,S.return,le)}}}else if(t.tag===18){if(n===null){S=t;try{var L=S.stateNode;s?bm(L,!0):bm(S.stateNode,!1)}catch(le){Fe(S,S.return,le)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,ls(e,n))));break;case 19:Ft(t,e),$t(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,ls(e,l)));break;case 30:break;case 21:break;default:Ft(t,e),$t(e)}}function $t(e){var t=e.flags;if(t&2){try{for(var n,l=e.return;l!==null;){if(Eh(l)){n=l;break}l=l.return}if(n==null)throw Error(u(160));switch(n.tag){case 27:var s=n.stateNode,o=wo(e);as(e,o,s);break;case 5:var d=n.stateNode;n.flags&32&&(Al(d,""),n.flags&=-33);var v=wo(e);as(e,v,d);break;case 3:case 4:var S=n.stateNode.containerInfo,z=wo(e);Ro(e,z,S);break;default:throw Error(u(161))}}catch(j){Fe(e,e.return,j)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Dh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Dh(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function va(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)wh(e,t.alternate,t),t=t.sibling}function El(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ua(4,t,t.return),El(t);break;case 1:Zn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&bh(t,t.return,n),El(t);break;case 27:Zi(t.stateNode);case 26:case 5:Zn(t,t.return),El(t);break;case 22:t.memoizedState===null&&El(t);break;case 30:El(t);break;default:El(t)}e=e.sibling}}function ga(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,s=e,o=t,d=o.flags;switch(o.tag){case 0:case 11:case 15:ga(s,o,n),Hi(4,o);break;case 1:if(ga(s,o,n),l=o,s=l.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(z){Fe(l,l.return,z)}if(l=o,s=l.updateQueue,s!==null){var v=l.stateNode;try{var S=s.shared.hiddenCallbacks;if(S!==null)for(s.shared.hiddenCallbacks=null,s=0;s<S.length;s++)sd(S[s],v)}catch(z){Fe(l,l.return,z)}}n&&d&64&&gh(o),ji(o,o.return);break;case 27:_h(o);case 26:case 5:ga(s,o,n),n&&l===null&&d&4&&Sh(o),ji(o,o.return);break;case 12:ga(s,o,n);break;case 31:ga(s,o,n),n&&d&4&&Oh(s,o);break;case 13:ga(s,o,n),n&&d&4&&Ah(s,o);break;case 22:o.memoizedState===null&&ga(s,o,n),ji(o,o.return);break;case 30:break;default:ga(s,o,n)}t=t.sibling}}function Oo(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&wi(n))}function Ao(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&wi(e))}function qn(e,t,n,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Mh(e,t,n,l),t=t.sibling}function Mh(e,t,n,l){var s=t.flags;switch(t.tag){case 0:case 11:case 15:qn(e,t,n,l),s&2048&&Hi(9,t);break;case 1:qn(e,t,n,l);break;case 3:qn(e,t,n,l),s&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&wi(e)));break;case 12:if(s&2048){qn(e,t,n,l),e=t.stateNode;try{var o=t.memoizedProps,d=o.id,v=o.onPostCommit;typeof v=="function"&&v(d,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(S){Fe(t,t.return,S)}}else qn(e,t,n,l);break;case 31:qn(e,t,n,l);break;case 13:qn(e,t,n,l);break;case 23:break;case 22:o=t.stateNode,d=t.alternate,t.memoizedState!==null?o._visibility&2?qn(e,t,n,l):qi(e,t):o._visibility&2?qn(e,t,n,l):(o._visibility|=2,Jl(e,t,n,l,(t.subtreeFlags&10256)!==0||!1)),s&2048&&Oo(d,t);break;case 24:qn(e,t,n,l),s&2048&&Ao(t.alternate,t);break;default:qn(e,t,n,l)}}function Jl(e,t,n,l,s){for(s=s&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var o=e,d=t,v=n,S=l,z=d.flags;switch(d.tag){case 0:case 11:case 15:Jl(o,d,v,S,s),Hi(8,d);break;case 23:break;case 22:var j=d.stateNode;d.memoizedState!==null?j._visibility&2?Jl(o,d,v,S,s):qi(o,d):(j._visibility|=2,Jl(o,d,v,S,s)),s&&z&2048&&Oo(d.alternate,d);break;case 24:Jl(o,d,v,S,s),s&&z&2048&&Ao(d.alternate,d);break;default:Jl(o,d,v,S,s)}t=t.sibling}}function qi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,l=t,s=l.flags;switch(l.tag){case 22:qi(n,l),s&2048&&Oo(l.alternate,l);break;case 24:qi(n,l),s&2048&&Ao(l.alternate,l);break;default:qi(n,l)}t=t.sibling}}var Yi=8192;function Fl(e,t,n){if(e.subtreeFlags&Yi)for(e=e.child;e!==null;)zh(e,t,n),e=e.sibling}function zh(e,t,n){switch(e.tag){case 26:Fl(e,t,n),e.flags&Yi&&e.memoizedState!==null&&Kg(n,jn,e.memoizedState,e.memoizedProps);break;case 5:Fl(e,t,n);break;case 3:case 4:var l=jn;jn=gs(e.stateNode.containerInfo),Fl(e,t,n),jn=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=Yi,Yi=16777216,Fl(e,t,n),Yi=l):Fl(e,t,n));break;default:Fl(e,t,n)}}function Nh(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 Qi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];At=l,Lh(l,e)}Nh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Uh(e),e=e.sibling}function Uh(e){switch(e.tag){case 0:case 11:case 15:Qi(e),e.flags&2048&&Ua(9,e,e.return);break;case 3:Qi(e);break;case 12:Qi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,is(e)):Qi(e);break;default:Qi(e)}}function is(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];At=l,Lh(l,e)}Nh(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ua(8,t,t.return),is(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,is(t));break;default:is(t)}e=e.sibling}}function Lh(e,t){for(;At!==null;){var n=At;switch(n.tag){case 0:case 11:case 15:Ua(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:wi(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,At=l;else e:for(n=e;At!==null;){l=At;var s=l.sibling,o=l.return;if(Rh(l),l===n){At=null;break e}if(s!==null){s.return=o,At=s;break e}At=o}}}var sg={getCacheForType:function(e){var t=Nt(St),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Nt(St).controller.signal}},ug=typeof WeakMap=="function"?WeakMap:Map,ke=0,et=null,De=null,Ne=0,Je=0,un=null,La=!1,$l=!1,Co=!1,ba=0,ht=0,Ba=0,_l=0,Do=0,on=0,Wl=0,Vi=null,Wt=null,Mo=!1,rs=0,Bh=0,ss=1/0,us=null,Ha=null,xt=0,ja=null,Pl=null,Sa=0,zo=0,No=null,Hh=null,Gi=0,Uo=null;function cn(){return(ke&2)!==0&&Ne!==0?Ne&-Ne:O.T!==null?Yo():$()}function jh(){if(on===0)if((Ne&536870912)===0||qe){var e=na;na<<=1,(na&3932160)===0&&(na=262144),on=e}else on=536870912;return e=rn.current,e!==null&&(e.flags|=32),on}function Pt(e,t,n){(e===et&&(Je===2||Je===9)||e.cancelPendingCommit!==null)&&(Il(e,0),qa(e,Ne,on,!1)),nt(e,n),((ke&2)===0||e!==et)&&(e===et&&((ke&2)===0&&(_l|=n),ht===4&&qa(e,Ne,on,!1)),Jn(e))}function qh(e,t,n){if((ke&6)!==0)throw Error(u(327));var l=!n&&(t&127)===0&&(t&e.expiredLanes)===0||tt(e,t),s=l?fg(e,t):Bo(e,t,!0),o=l;do{if(s===0){$l&&!l&&qa(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!og(n)){s=Bo(e,t,!1),o=!1;continue}if(s===2){if(o=t,e.errorRecoveryDisabledLanes&o)var d=0;else d=e.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){t=d;e:{var v=e;s=Vi;var S=v.current.memoizedState.isDehydrated;if(S&&(Il(v,d).flags|=256),d=Bo(v,d,!1),d!==2){if(Co&&!S){v.errorRecoveryDisabledLanes|=o,_l|=o,s=4;break e}o=Wt,Wt=s,o!==null&&(Wt===null?Wt=o:Wt.push.apply(Wt,o))}s=d}if(o=!1,s!==2)continue}}if(s===1){Il(e,0),qa(e,t,0,!0);break}e:{switch(l=e,o=s,o){case 0:case 1:throw Error(u(345));case 4:if((t&4194048)!==t)break;case 6:qa(l,t,on,!La);break e;case 2:Wt=null;break;case 3:case 5:break;default:throw Error(u(329))}if((t&62914560)===t&&(s=rs+300-ut(),10<s)){if(qa(l,t,on,!La),ve(l,0,!0)!==0)break e;Sa=t,l.timeoutHandle=pm(Yh.bind(null,l,n,Wt,us,Mo,t,on,_l,Wl,La,o,"Throttled",-0,0),s);break e}Yh(l,n,Wt,us,Mo,t,on,_l,Wl,La,o,null,-0,0)}}break}while(!0);Jn(e)}function Yh(e,t,n,l,s,o,d,v,S,z,j,Q,N,L){if(e.timeoutHandle=-1,Q=t.subtreeFlags,Q&8192||(Q&16785408)===16785408){Q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ia},zh(t,o,Q);var le=(o&62914560)===o?rs-ut():(o&4194048)===o?Bh-ut():0;if(le=Zg(Q,le),le!==null){Sa=o,e.cancelPendingCommit=le(Jh.bind(null,e,t,o,n,l,s,d,v,S,j,Q,null,N,L)),qa(e,o,d,!z);return}}Jh(e,t,o,n,l,s,d,v,S)}function og(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var s=n[l],o=s.getSnapshot;s=s.value;try{if(!an(o(),s))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function qa(e,t,n,l){t&=~Do,t&=~_l,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var s=t;0<s;){var o=31-Rt(s),d=1<<o;l[o]=-1,s&=~d}n!==0&&aa(e,n,t)}function os(){return(ke&6)===0?(Xi(0),!1):!0}function Lo(){if(De!==null){if(Je===0)var e=De.return;else e=De,oa=hl=null,$u(e),Gl=null,xi=0,e=De;for(;e!==null;)vh(e.alternate,e),e=e.return;De=null}}function Il(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Cg(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Sa=0,Lo(),et=e,De=n=sa(e.current,null),Ne=t,Je=0,un=null,La=!1,$l=tt(e,t),Co=!1,Wl=on=Do=_l=Ba=ht=0,Wt=Vi=null,Mo=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var s=31-Rt(l),o=1<<s;t|=e[s],l&=~o}return ba=t,Dr(),n}function Qh(e,t){Re=null,O.H=Ui,t===Vl||t===jr?(t=ad(),Je=3):t===ju?(t=ad(),Je=4):Je=t===ho?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,un=t,De===null&&(ht=1,Pr(e,Sn(t,e.current)))}function Vh(){var e=rn.current;return e===null?!0:(Ne&4194048)===Ne?wn===null:(Ne&62914560)===Ne||(Ne&536870912)!==0?e===wn:!1}function Gh(){var e=O.H;return O.H=Ui,e===null?Ui:e}function Xh(){var e=O.A;return O.A=sg,e}function cs(){ht=4,La||(Ne&4194048)!==Ne&&rn.current!==null||($l=!0),(Ba&134217727)===0&&(_l&134217727)===0||et===null||qa(et,Ne,on,!1)}function Bo(e,t,n){var l=ke;ke|=2;var s=Gh(),o=Xh();(et!==e||Ne!==t)&&(us=null,Il(e,t)),t=!1;var d=ht;e:do try{if(Je!==0&&De!==null){var v=De,S=un;switch(Je){case 8:Lo(),d=6;break e;case 3:case 2:case 9:case 6:rn.current===null&&(t=!0);var z=Je;if(Je=0,un=null,ei(e,v,S,z),n&&$l){d=0;break e}break;default:z=Je,Je=0,un=null,ei(e,v,S,z)}}cg(),d=ht;break}catch(j){Qh(e,j)}while(!0);return t&&e.shellSuspendCounter++,oa=hl=null,ke=l,O.H=s,O.A=o,De===null&&(et=null,Ne=0,Dr()),d}function cg(){for(;De!==null;)kh(De)}function fg(e,t){var n=ke;ke|=2;var l=Gh(),s=Xh();et!==e||Ne!==t?(us=null,ss=ut()+500,Il(e,t)):$l=tt(e,t);e:do try{if(Je!==0&&De!==null){t=De;var o=un;t:switch(Je){case 1:Je=0,un=null,ei(e,t,o,1);break;case 2:case 9:if(td(o)){Je=0,un=null,Kh(t);break}t=function(){Je!==2&&Je!==9||et!==e||(Je=7),Jn(e)},o.then(t,t);break e;case 3:Je=7;break e;case 4:Je=5;break e;case 7:td(o)?(Je=0,un=null,Kh(t)):(Je=0,un=null,ei(e,t,o,7));break;case 5:var d=null;switch(De.tag){case 26:d=De.memoizedState;case 5:case 27:var v=De;if(d?Mm(d):v.stateNode.complete){Je=0,un=null;var S=v.sibling;if(S!==null)De=S;else{var z=v.return;z!==null?(De=z,fs(z)):De=null}break t}}Je=0,un=null,ei(e,t,o,5);break;case 6:Je=0,un=null,ei(e,t,o,6);break;case 8:Lo(),ht=6;break e;default:throw Error(u(462))}}dg();break}catch(j){Qh(e,j)}while(!0);return oa=hl=null,O.H=l,O.A=s,ke=n,De!==null?0:(et=null,Ne=0,Dr(),ht)}function dg(){for(;De!==null&&!Ct();)kh(De)}function kh(e){var t=yh(e.alternate,e,ba);e.memoizedProps=e.pendingProps,t===null?fs(e):De=t}function Kh(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=oh(n,t,t.pendingProps,t.type,void 0,Ne);break;case 11:t=oh(n,t,t.pendingProps,t.type.render,t.ref,Ne);break;case 5:$u(t);default:vh(n,t),t=De=Xf(t,ba),t=yh(n,t,ba)}e.memoizedProps=e.pendingProps,t===null?fs(e):De=t}function ei(e,t,n,l){oa=hl=null,$u(t),Gl=null,xi=0;var s=t.return;try{if(eg(e,s,t,n,Ne)){ht=1,Pr(e,Sn(n,e.current)),De=null;return}}catch(o){if(s!==null)throw De=s,o;ht=1,Pr(e,Sn(n,e.current)),De=null;return}t.flags&32768?(qe||l===1?e=!0:$l||(Ne&536870912)!==0?e=!1:(La=e=!0,(l===2||l===9||l===3||l===6)&&(l=rn.current,l!==null&&l.tag===13&&(l.flags|=16384))),Zh(t,e)):fs(t)}function fs(e){var t=e;do{if((t.flags&32768)!==0){Zh(t,La);return}e=t.return;var n=ag(t.alternate,t,ba);if(n!==null){De=n;return}if(t=t.sibling,t!==null){De=t;return}De=t=e}while(t!==null);ht===0&&(ht=5)}function Zh(e,t){do{var n=lg(e.alternate,e);if(n!==null){n.flags&=32767,De=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){De=e;return}De=e=n}while(e!==null);ht=6,De=null}function Jh(e,t,n,l,s,o,d,v,S){e.cancelPendingCommit=null;do ds();while(xt!==0);if((ke&6)!==0)throw Error(u(327));if(t!==null){if(t===e.current)throw Error(u(177));if(o=t.lanes|t.childLanes,o|=Tu,Ht(e,n,o,d,v,S),e===et&&(De=et=null,Ne=0),Pl=t,ja=e,Sa=n,zo=o,No=s,Hh=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,pg(Dt,function(){return Ih(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=O.T,O.T=null,s=k.p,k.p=2,d=ke,ke|=4;try{ig(e,t,n)}finally{ke=d,k.p=s,O.T=l}}xt=1,Fh(),$h(),Wh()}}function Fh(){if(xt===1){xt=0;var e=ja,t=Pl,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=O.T,O.T=null;var l=k.p;k.p=2;var s=ke;ke|=4;try{Ch(t,e);var o=Jo,d=Lf(e.containerInfo),v=o.focusedElem,S=o.selectionRange;if(d!==v&&v&&v.ownerDocument&&Uf(v.ownerDocument.documentElement,v)){if(S!==null&&gu(v)){var z=S.start,j=S.end;if(j===void 0&&(j=z),"selectionStart"in v)v.selectionStart=z,v.selectionEnd=Math.min(j,v.value.length);else{var Q=v.ownerDocument||document,N=Q&&Q.defaultView||window;if(N.getSelection){var L=N.getSelection(),le=v.textContent.length,me=Math.min(S.start,le),Pe=S.end===void 0?me:Math.min(S.end,le);!L.extend&&me>Pe&&(d=Pe,Pe=me,me=d);var x=Nf(v,me),T=Nf(v,Pe);if(x&&T&&(L.rangeCount!==1||L.anchorNode!==x.node||L.anchorOffset!==x.offset||L.focusNode!==T.node||L.focusOffset!==T.offset)){var M=Q.createRange();M.setStart(x.node,x.offset),L.removeAllRanges(),me>Pe?(L.addRange(M),L.extend(T.node,T.offset)):(M.setEnd(T.node,T.offset),L.addRange(M))}}}}for(Q=[],L=v;L=L.parentNode;)L.nodeType===1&&Q.push({element:L,left:L.scrollLeft,top:L.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<Q.length;v++){var Y=Q[v];Y.element.scrollLeft=Y.left,Y.element.scrollTop=Y.top}}ws=!!Zo,Jo=Zo=null}finally{ke=s,k.p=l,O.T=n}}e.current=t,xt=2}}function $h(){if(xt===2){xt=0;var e=ja,t=Pl,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=O.T,O.T=null;var l=k.p;k.p=2;var s=ke;ke|=4;try{wh(e,t.alternate,t)}finally{ke=s,k.p=l,O.T=n}}xt=3}}function Wh(){if(xt===4||xt===3){xt=0,Gn();var e=ja,t=Pl,n=Sa,l=Hh;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?xt=5:(xt=0,Pl=ja=null,Ph(e,e.pendingLanes));var s=e.pendingLanes;if(s===0&&(Ha=null),X(n),t=t.stateNode,at&&typeof at.onCommitFiberRoot=="function")try{at.onCommitFiberRoot(ta,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=O.T,s=k.p,k.p=2,O.T=null;try{for(var o=e.onRecoverableError,d=0;d<l.length;d++){var v=l[d];o(v.value,{componentStack:v.stack})}}finally{O.T=t,k.p=s}}(Sa&3)!==0&&ds(),Jn(e),s=e.pendingLanes,(n&261930)!==0&&(s&42)!==0?e===Uo?Gi++:(Gi=0,Uo=e):Gi=0,Xi(0)}}function Ph(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,wi(t)))}function ds(){return Fh(),$h(),Wh(),Ih()}function Ih(){if(xt!==5)return!1;var e=ja,t=zo;zo=0;var n=X(Sa),l=O.T,s=k.p;try{k.p=32>n?32:n,O.T=null,n=No,No=null;var o=ja,d=Sa;if(xt=0,Pl=ja=null,Sa=0,(ke&6)!==0)throw Error(u(331));var v=ke;if(ke|=4,Uh(o.current),Mh(o,o.current,d,n),ke=v,Xi(0,!1),at&&typeof at.onPostCommitFiberRoot=="function")try{at.onPostCommitFiberRoot(ta,o)}catch{}return!0}finally{k.p=s,O.T=l,Ph(e,t)}}function em(e,t,n){t=Sn(n,t),t=fo(e.stateNode,t,2),e=Ma(e,t,2),e!==null&&(nt(e,2),Jn(e))}function Fe(e,t,n){if(e.tag===3)em(e,e,n);else for(;t!==null;){if(t.tag===3){em(t,e,n);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Ha===null||!Ha.has(l))){e=Sn(n,e),n=th(2),l=Ma(t,n,2),l!==null&&(nh(n,l,t,e),nt(l,2),Jn(l));break}}t=t.return}}function Ho(e,t,n){var l=e.pingCache;if(l===null){l=e.pingCache=new ug;var s=new Set;l.set(t,s)}else s=l.get(t),s===void 0&&(s=new Set,l.set(t,s));s.has(n)||(Co=!0,s.add(n),e=hg.bind(null,e,t,n),t.then(e,e))}function hg(e,t,n){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,et===e&&(Ne&n)===n&&(ht===4||ht===3&&(Ne&62914560)===Ne&&300>ut()-rs?(ke&2)===0&&Il(e,0):Do|=n,Wl===Ne&&(Wl=0)),Jn(e)}function tm(e,t){t===0&&(t=yt()),e=cl(e,t),e!==null&&(nt(e,t),Jn(e))}function mg(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),tm(e,n)}function yg(e,t){var n=0;switch(e.tag){case 31:case 13:var l=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(u(314))}l!==null&&l.delete(t),tm(e,n)}function pg(e,t){return tl(e,t)}var hs=null,ti=null,jo=!1,ms=!1,qo=!1,Ya=0;function Jn(e){e!==ti&&e.next===null&&(ti===null?hs=ti=e:ti=ti.next=e),ms=!0,jo||(jo=!0,gg())}function Xi(e,t){if(!qo&&ms){qo=!0;do for(var n=!1,l=hs;l!==null;){if(e!==0){var s=l.pendingLanes;if(s===0)var o=0;else{var d=l.suspendedLanes,v=l.pingedLanes;o=(1<<31-Rt(42|e)+1)-1,o&=s&~(d&~v),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,im(l,o))}else o=Ne,o=ve(l,l===et?o:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(o&3)===0||tt(l,o)||(n=!0,im(l,o));l=l.next}while(n);qo=!1}}function vg(){nm()}function nm(){ms=jo=!1;var e=0;Ya!==0&&Ag()&&(e=Ya);for(var t=ut(),n=null,l=hs;l!==null;){var s=l.next,o=am(l,t);o===0?(l.next=null,n===null?hs=s:n.next=s,s===null&&(ti=n)):(n=l,(e!==0||(o&3)!==0)&&(ms=!0)),l=s}xt!==0&&xt!==5||Xi(e),Ya!==0&&(Ya=0)}function am(e,t){for(var n=e.suspendedLanes,l=e.pingedLanes,s=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var d=31-Rt(o),v=1<<d,S=s[d];S===-1?((v&n)===0||(v&l)!==0)&&(s[d]=mt(v,t)):S<=t&&(e.expiredLanes|=v),o&=~v}if(t=et,n=Ne,n=ve(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,n===0||e===t&&(Je===2||Je===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&nl(l),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||tt(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(l!==null&&nl(l),X(n)){case 2:case 8:n=Ta;break;case 32:n=Dt;break;case 268435456:n=mn;break;default:n=Dt}return l=lm.bind(null,e),n=tl(n,l),e.callbackPriority=t,e.callbackNode=n,t}return l!==null&&l!==null&&nl(l),e.callbackPriority=2,e.callbackNode=null,2}function lm(e,t){if(xt!==0&&xt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(ds()&&e.callbackNode!==n)return null;var l=Ne;return l=ve(e,e===et?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(qh(e,l,t),am(e,ut()),e.callbackNode!=null&&e.callbackNode===n?lm.bind(null,e):null)}function im(e,t){if(ds())return null;qh(e,t,!0)}function gg(){Dg(function(){(ke&6)!==0?tl(Xn,vg):nm()})}function Yo(){if(Ya===0){var e=Yl;e===0&&(e=zn,zn<<=1,(zn&261888)===0&&(zn=256)),Ya=e}return Ya}function rm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:_r(""+e)}function sm(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function bg(e,t,n,l,s){if(t==="submit"&&n&&n.stateNode===s){var o=rm((s[ne]||null).action),d=l.submitter;d&&(t=(t=d[ne]||null)?rm(t.formAction):d.getAttribute("formAction"),t!==null&&(o=t,d=null));var v=new xr("action","action",null,l,s);e.push({event:v,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Ya!==0){var S=d?sm(s,d):new FormData(s);io(n,{pending:!0,data:S,method:s.method,action:o},null,S)}}else typeof o=="function"&&(v.preventDefault(),S=d?sm(s,d):new FormData(s),io(n,{pending:!0,data:S,method:s.method,action:o},o,S))},currentTarget:s}]})}}for(var Qo=0;Qo<_u.length;Qo++){var Vo=_u[Qo],Sg=Vo.toLowerCase(),Eg=Vo[0].toUpperCase()+Vo.slice(1);Hn(Sg,"on"+Eg)}Hn(jf,"onAnimationEnd"),Hn(qf,"onAnimationIteration"),Hn(Yf,"onAnimationStart"),Hn("dblclick","onDoubleClick"),Hn("focusin","onFocus"),Hn("focusout","onBlur"),Hn(Hv,"onTransitionRun"),Hn(jv,"onTransitionStart"),Hn(qv,"onTransitionCancel"),Hn(Qf,"onTransitionEnd"),vn("onMouseEnter",["mouseout","mouseover"]),vn("onMouseLeave",["mouseout","mouseover"]),vn("onPointerEnter",["pointerout","pointerover"]),vn("onPointerLeave",["pointerout","pointerover"]),Ln("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ln("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ln("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ln("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ln("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ln("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ki="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(" "),_g=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ki));function um(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var l=e[n],s=l.event;l=l.listeners;e:{var o=void 0;if(t)for(var d=l.length-1;0<=d;d--){var v=l[d],S=v.instance,z=v.currentTarget;if(v=v.listener,S!==o&&s.isPropagationStopped())break e;o=v,s.currentTarget=z;try{o(s)}catch(j){Cr(j)}s.currentTarget=null,o=S}else for(d=0;d<l.length;d++){if(v=l[d],S=v.instance,z=v.currentTarget,v=v.listener,S!==o&&s.isPropagationStopped())break e;o=v,s.currentTarget=z;try{o(s)}catch(j){Cr(j)}s.currentTarget=null,o=S}}}}function Me(e,t){var n=t[he];n===void 0&&(n=t[he]=new Set);var l=e+"__bubble";n.has(l)||(om(t,e,2,!1),n.add(l))}function Go(e,t,n){var l=0;t&&(l|=4),om(n,e,l,t)}var ys="_reactListening"+Math.random().toString(36).slice(2);function Xo(e){if(!e[ys]){e[ys]=!0,Un.forEach(function(n){n!=="selectionchange"&&(_g.has(n)||Go(n,!1,e),Go(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ys]||(t[ys]=!0,Go("selectionchange",!1,t))}}function om(e,t,n,l){switch(jm(t)){case 2:var s=$g;break;case 8:s=Wg;break;default:s=ic}n=s.bind(null,t,n,e),s=void 0,!ou||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),l?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function ko(e,t,n,l,s){var o=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var d=l.tag;if(d===3||d===4){var v=l.stateNode.containerInfo;if(v===s)break;if(d===4)for(d=l.return;d!==null;){var S=d.tag;if((S===3||S===4)&&d.stateNode.containerInfo===s)return;d=d.return}for(;v!==null;){if(d=ft(v),d===null)return;if(S=d.tag,S===5||S===6||S===26||S===27){l=o=d;continue e}v=v.parentNode}}l=l.return}mf(function(){var z=o,j=su(n),Q=[];e:{var N=Vf.get(e);if(N!==void 0){var L=xr,le=e;switch(e){case"keypress":if(wr(n)===0)break e;case"keydown":case"keyup":L=yv;break;case"focusin":le="focus",L=hu;break;case"focusout":le="blur",L=hu;break;case"beforeblur":case"afterblur":L=hu;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":L=vf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":L=av;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":L=gv;break;case jf:case qf:case Yf:L=rv;break;case Qf:L=Sv;break;case"scroll":case"scrollend":L=tv;break;case"wheel":L=_v;break;case"copy":case"cut":case"paste":L=uv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":L=bf;break;case"toggle":case"beforetoggle":L=wv}var me=(t&4)!==0,Pe=!me&&(e==="scroll"||e==="scrollend"),x=me?N!==null?N+"Capture":null:N;me=[];for(var T=z,M;T!==null;){var Y=T;if(M=Y.stateNode,Y=Y.tag,Y!==5&&Y!==26&&Y!==27||M===null||x===null||(Y=hi(T,x),Y!=null&&me.push(Ki(T,Y,M))),Pe)break;T=T.return}0<me.length&&(N=new L(N,le,null,n,j),Q.push({event:N,listeners:me}))}}if((t&7)===0){e:{if(N=e==="mouseover"||e==="pointerover",L=e==="mouseout"||e==="pointerout",N&&n!==ru&&(le=n.relatedTarget||n.fromElement)&&(ft(le)||le[re]))break e;if((L||N)&&(N=j.window===j?j:(N=j.ownerDocument)?N.defaultView||N.parentWindow:window,L?(le=n.relatedTarget||n.toElement,L=z,le=le?ft(le):null,le!==null&&(Pe=f(le),me=le.tag,le!==Pe||me!==5&&me!==27&&me!==6)&&(le=null)):(L=null,le=z),L!==le)){if(me=vf,Y="onMouseLeave",x="onMouseEnter",T="mouse",(e==="pointerout"||e==="pointerover")&&(me=bf,Y="onPointerLeave",x="onPointerEnter",T="pointer"),Pe=L==null?N:Ot(L),M=le==null?N:Ot(le),N=new me(Y,T+"leave",L,n,j),N.target=Pe,N.relatedTarget=M,Y=null,ft(j)===z&&(me=new me(x,T+"enter",le,n,j),me.target=M,me.relatedTarget=Pe,Y=me),Pe=Y,L&&le)t:{for(me=Tg,x=L,T=le,M=0,Y=x;Y;Y=me(Y))M++;Y=0;for(var fe=T;fe;fe=me(fe))Y++;for(;0<M-Y;)x=me(x),M--;for(;0<Y-M;)T=me(T),Y--;for(;M--;){if(x===T||T!==null&&x===T.alternate){me=x;break t}x=me(x),T=me(T)}me=null}else me=null;L!==null&&cm(Q,N,L,me,!1),le!==null&&Pe!==null&&cm(Q,Pe,le,me,!0)}}e:{if(N=z?Ot(z):window,L=N.nodeName&&N.nodeName.toLowerCase(),L==="select"||L==="input"&&N.type==="file")var Ge=Of;else if(Rf(N))if(Af)Ge=Uv;else{Ge=zv;var ie=Mv}else L=N.nodeName,!L||L.toLowerCase()!=="input"||N.type!=="checkbox"&&N.type!=="radio"?z&&iu(z.elementType)&&(Ge=Of):Ge=Nv;if(Ge&&(Ge=Ge(e,z))){xf(Q,Ge,n,j);break e}ie&&ie(e,N,z),e==="focusout"&&z&&N.type==="number"&&z.memoizedProps.value!=null&&lu(N,"number",N.value)}switch(ie=z?Ot(z):window,e){case"focusin":(Rf(ie)||ie.contentEditable==="true")&&(zl=ie,bu=z,Ei=null);break;case"focusout":Ei=bu=zl=null;break;case"mousedown":Su=!0;break;case"contextmenu":case"mouseup":case"dragend":Su=!1,Bf(Q,n,j);break;case"selectionchange":if(Bv)break;case"keydown":case"keyup":Bf(Q,n,j)}var xe;if(yu)e:{switch(e){case"compositionstart":var Ue="onCompositionStart";break e;case"compositionend":Ue="onCompositionEnd";break e;case"compositionupdate":Ue="onCompositionUpdate";break e}Ue=void 0}else Ml?Tf(e,n)&&(Ue="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Ue="onCompositionStart");Ue&&(Sf&&n.locale!=="ko"&&(Ml||Ue!=="onCompositionStart"?Ue==="onCompositionEnd"&&Ml&&(xe=yf()):(wa=j,cu="value"in wa?wa.value:wa.textContent,Ml=!0)),ie=ps(z,Ue),0<ie.length&&(Ue=new gf(Ue,e,null,n,j),Q.push({event:Ue,listeners:ie}),xe?Ue.data=xe:(xe=wf(n),xe!==null&&(Ue.data=xe)))),(xe=xv?Ov(e,n):Av(e,n))&&(Ue=ps(z,"onBeforeInput"),0<Ue.length&&(ie=new gf("onBeforeInput","beforeinput",null,n,j),Q.push({event:ie,listeners:Ue}),ie.data=xe)),bg(Q,e,z,n,j)}um(Q,t)})}function Ki(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ps(e,t){for(var n=t+"Capture",l=[];e!==null;){var s=e,o=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||o===null||(s=hi(e,n),s!=null&&l.unshift(Ki(e,s,o)),s=hi(e,t),s!=null&&l.push(Ki(e,s,o))),e.tag===3)return l;e=e.return}return[]}function Tg(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function cm(e,t,n,l,s){for(var o=t._reactName,d=[];n!==null&&n!==l;){var v=n,S=v.alternate,z=v.stateNode;if(v=v.tag,S!==null&&S===l)break;v!==5&&v!==26&&v!==27||z===null||(S=z,s?(z=hi(n,o),z!=null&&d.unshift(Ki(n,z,S))):s||(z=hi(n,o),z!=null&&d.push(Ki(n,z,S)))),n=n.return}d.length!==0&&e.push({event:t,listeners:d})}var wg=/\r\n?/g,Rg=/\u0000|\uFFFD/g;function fm(e){return(typeof e=="string"?e:""+e).replace(wg,`
10
- `).replace(Rg,"")}function dm(e,t){return t=fm(t),fm(e)===t}function We(e,t,n,l,s,o){switch(n){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Al(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Al(e,""+l);break;case"className":Bn(e,"class",l);break;case"tabIndex":Bn(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Bn(e,n,l);break;case"style":df(e,l,o);break;case"data":if(t!=="object"){Bn(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=_r(""+l),e.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof o=="function"&&(n==="formAction"?(t!=="input"&&We(e,t,"name",s.name,s,null),We(e,t,"formEncType",s.formEncType,s,null),We(e,t,"formMethod",s.formMethod,s,null),We(e,t,"formTarget",s.formTarget,s,null)):(We(e,t,"encType",s.encType,s,null),We(e,t,"method",s.method,s,null),We(e,t,"target",s.target,s,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=_r(""+l),e.setAttribute(n,l);break;case"onClick":l!=null&&(e.onclick=ia);break;case"onScroll":l!=null&&Me("scroll",e);break;case"onScrollEnd":l!=null&&Me("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(u(61));if(n=l.__html,n!=null){if(s.children!=null)throw Error(u(60));e.innerHTML=n}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}n=_r(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""+l):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":l===!0?e.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,l):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(n,l):e.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(n):e.setAttribute(n,l);break;case"popover":Me("beforetoggle",e),Me("toggle",e),pt(e,"popover",l);break;case"xlinkActuate":Mt(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Mt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Mt(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Mt(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Mt(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Mt(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Mt(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Mt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Mt(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":pt(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Ip.get(n)||n,pt(e,n,l))}}function Ko(e,t,n,l,s,o){switch(n){case"style":df(e,l,o);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(u(61));if(n=l.__html,n!=null){if(s.children!=null)throw Error(u(60));e.innerHTML=n}}break;case"children":typeof l=="string"?Al(e,l):(typeof l=="number"||typeof l=="bigint")&&Al(e,""+l);break;case"onScroll":l!=null&&Me("scroll",e);break;case"onScrollEnd":l!=null&&Me("scrollend",e);break;case"onClick":l!=null&&(e.onclick=ia);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!nn.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(s=n.endsWith("Capture"),t=n.slice(2,s?n.length-7:void 0),o=e[ne]||null,o=o!=null?o[n]:null,typeof o=="function"&&e.removeEventListener(t,o,s),typeof l=="function")){typeof o!="function"&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,l,s);break e}n in e?e[n]=l:l===!0?e.setAttribute(n,""):pt(e,n,l)}}}function Lt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Me("error",e),Me("load",e);var l=!1,s=!1,o;for(o in n)if(n.hasOwnProperty(o)){var d=n[o];if(d!=null)switch(o){case"src":l=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:We(e,t,o,d,n,null)}}s&&We(e,t,"srcSet",n.srcSet,n,null),l&&We(e,t,"src",n.src,n,null);return;case"input":Me("invalid",e);var v=o=d=s=null,S=null,z=null;for(l in n)if(n.hasOwnProperty(l)){var j=n[l];if(j!=null)switch(l){case"name":s=j;break;case"type":d=j;break;case"checked":S=j;break;case"defaultChecked":z=j;break;case"value":o=j;break;case"defaultValue":v=j;break;case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(u(137,t));break;default:We(e,t,l,j,n,null)}}uf(e,o,v,S,z,d,s,!1);return;case"select":Me("invalid",e),l=d=o=null;for(s in n)if(n.hasOwnProperty(s)&&(v=n[s],v!=null))switch(s){case"value":o=v;break;case"defaultValue":d=v;break;case"multiple":l=v;default:We(e,t,s,v,n,null)}t=o,n=d,e.multiple=!!l,t!=null?Ol(e,!!l,t,!1):n!=null&&Ol(e,!!l,n,!0);return;case"textarea":Me("invalid",e),o=s=l=null;for(d in n)if(n.hasOwnProperty(d)&&(v=n[d],v!=null))switch(d){case"value":l=v;break;case"defaultValue":s=v;break;case"children":o=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(u(91));break;default:We(e,t,d,v,n,null)}cf(e,l,s,o);return;case"option":for(S in n)n.hasOwnProperty(S)&&(l=n[S],l!=null)&&(S==="selected"?e.selected=l&&typeof l!="function"&&typeof l!="symbol":We(e,t,S,l,n,null));return;case"dialog":Me("beforetoggle",e),Me("toggle",e),Me("cancel",e),Me("close",e);break;case"iframe":case"object":Me("load",e);break;case"video":case"audio":for(l=0;l<ki.length;l++)Me(ki[l],e);break;case"image":Me("error",e),Me("load",e);break;case"details":Me("toggle",e);break;case"embed":case"source":case"link":Me("error",e),Me("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(z in n)if(n.hasOwnProperty(z)&&(l=n[z],l!=null))switch(z){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:We(e,t,z,l,n,null)}return;default:if(iu(t)){for(j in n)n.hasOwnProperty(j)&&(l=n[j],l!==void 0&&Ko(e,t,j,l,n,void 0));return}}for(v in n)n.hasOwnProperty(v)&&(l=n[v],l!=null&&We(e,t,v,l,n,null))}function xg(e,t,n,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,o=null,d=null,v=null,S=null,z=null,j=null;for(L in n){var Q=n[L];if(n.hasOwnProperty(L)&&Q!=null)switch(L){case"checked":break;case"value":break;case"defaultValue":S=Q;default:l.hasOwnProperty(L)||We(e,t,L,null,l,Q)}}for(var N in l){var L=l[N];if(Q=n[N],l.hasOwnProperty(N)&&(L!=null||Q!=null))switch(N){case"type":o=L;break;case"name":s=L;break;case"checked":z=L;break;case"defaultChecked":j=L;break;case"value":d=L;break;case"defaultValue":v=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(u(137,t));break;default:L!==Q&&We(e,t,N,L,l,Q)}}au(e,d,v,S,z,j,o,s);return;case"select":L=d=v=N=null;for(o in n)if(S=n[o],n.hasOwnProperty(o)&&S!=null)switch(o){case"value":break;case"multiple":L=S;default:l.hasOwnProperty(o)||We(e,t,o,null,l,S)}for(s in l)if(o=l[s],S=n[s],l.hasOwnProperty(s)&&(o!=null||S!=null))switch(s){case"value":N=o;break;case"defaultValue":v=o;break;case"multiple":d=o;default:o!==S&&We(e,t,s,o,l,S)}t=v,n=d,l=L,N!=null?Ol(e,!!n,N,!1):!!l!=!!n&&(t!=null?Ol(e,!!n,t,!0):Ol(e,!!n,n?[]:"",!1));return;case"textarea":L=N=null;for(v in n)if(s=n[v],n.hasOwnProperty(v)&&s!=null&&!l.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:We(e,t,v,null,l,s)}for(d in l)if(s=l[d],o=n[d],l.hasOwnProperty(d)&&(s!=null||o!=null))switch(d){case"value":N=s;break;case"defaultValue":L=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(u(91));break;default:s!==o&&We(e,t,d,s,l,o)}of(e,N,L);return;case"option":for(var le in n)N=n[le],n.hasOwnProperty(le)&&N!=null&&!l.hasOwnProperty(le)&&(le==="selected"?e.selected=!1:We(e,t,le,null,l,N));for(S in l)N=l[S],L=n[S],l.hasOwnProperty(S)&&N!==L&&(N!=null||L!=null)&&(S==="selected"?e.selected=N&&typeof N!="function"&&typeof N!="symbol":We(e,t,S,N,l,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 me in n)N=n[me],n.hasOwnProperty(me)&&N!=null&&!l.hasOwnProperty(me)&&We(e,t,me,null,l,N);for(z in l)if(N=l[z],L=n[z],l.hasOwnProperty(z)&&N!==L&&(N!=null||L!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(u(137,t));break;default:We(e,t,z,N,l,L)}return;default:if(iu(t)){for(var Pe in n)N=n[Pe],n.hasOwnProperty(Pe)&&N!==void 0&&!l.hasOwnProperty(Pe)&&Ko(e,t,Pe,void 0,l,N);for(j in l)N=l[j],L=n[j],!l.hasOwnProperty(j)||N===L||N===void 0&&L===void 0||Ko(e,t,j,N,l,L);return}}for(var x in n)N=n[x],n.hasOwnProperty(x)&&N!=null&&!l.hasOwnProperty(x)&&We(e,t,x,null,l,N);for(Q in l)N=l[Q],L=n[Q],!l.hasOwnProperty(Q)||N===L||N==null&&L==null||We(e,t,Q,N,l,L)}function hm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Og(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var s=n[l],o=s.transferSize,d=s.initiatorType,v=s.duration;if(o&&v&&hm(d)){for(d=0,v=s.responseEnd,l+=1;l<n.length;l++){var S=n[l],z=S.startTime;if(z>v)break;var j=S.transferSize,Q=S.initiatorType;j&&hm(Q)&&(S=S.responseEnd,d+=j*(S<v?1:(v-z)/(S-z)))}if(--l,t+=8*(o+d)/(s.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Zo=null,Jo=null;function vs(e){return e.nodeType===9?e:e.ownerDocument}function mm(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 ym(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 Fo(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 $o=null;function Ag(){var e=window.event;return e&&e.type==="popstate"?e===$o?!1:($o=e,!0):($o=null,!1)}var pm=typeof setTimeout=="function"?setTimeout:void 0,Cg=typeof clearTimeout=="function"?clearTimeout:void 0,vm=typeof Promise=="function"?Promise:void 0,Dg=typeof queueMicrotask=="function"?queueMicrotask:typeof vm<"u"?function(e){return vm.resolve(null).then(e).catch(Mg)}:pm;function Mg(e){setTimeout(function(){throw e})}function Qa(e){return e==="head"}function gm(e,t){var n=t,l=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"||n==="/&"){if(l===0){e.removeChild(s),ii(t);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")Zi(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Zi(n);for(var o=n.firstChild;o;){var d=o.nextSibling,v=o.nodeName;o[ot]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&o.rel.toLowerCase()==="stylesheet"||n.removeChild(o),o=d}}else n==="body"&&Zi(e.ownerDocument.body);n=s}while(n);ii(t)}function bm(e,t){var n=e;e=0;do{var l=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=l}while(n)}function Wo(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Wo(n),ct(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function zg(e,t,n,l){for(;e.nodeType===1;){var s=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[ot])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(o=e.getAttribute("rel"),o==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(o!==s.rel||e.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||e.getAttribute("title")!==(s.title==null?null:s.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(o=e.getAttribute("src"),(o!==(s.src==null?null:s.src)||e.getAttribute("type")!==(s.type==null?null:s.type)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var o=s.name==null?null:""+s.name;if(s.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=Rn(e.nextSibling),e===null)break}return null}function Ng(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Rn(e.nextSibling),e===null))return null;return e}function Sm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Rn(e.nextSibling),e===null))return null;return e}function Po(e){return e.data==="$?"||e.data==="$~"}function Io(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Ug(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var l=function(){t(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Rn(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 ec=null;function Em(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Rn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function _m(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function Tm(e,t,n){switch(t=vs(n),e){case"html":if(e=t.documentElement,!e)throw Error(u(452));return e;case"head":if(e=t.head,!e)throw Error(u(453));return e;case"body":if(e=t.body,!e)throw Error(u(454));return e;default:throw Error(u(451))}}function Zi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ct(e)}var xn=new Map,wm=new Set;function gs(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ea=k.d;k.d={f:Lg,r:Bg,D:Hg,C:jg,L:qg,m:Yg,X:Vg,S:Qg,M:Gg};function Lg(){var e=Ea.f(),t=os();return e||t}function Bg(e){var t=Be(e);t!==null&&t.tag===5&&t.type==="form"?Qd(t):Ea.r(e)}var ni=typeof document>"u"?null:document;function Rm(e,t,n){var l=ni;if(l&&typeof t=="string"&&t){var s=gn(t);s='link[rel="'+e+'"][href="'+s+'"]',typeof n=="string"&&(s+='[crossorigin="'+n+'"]'),wm.has(s)||(wm.add(s),e={rel:e,crossOrigin:n,href:t},l.querySelector(s)===null&&(t=l.createElement("link"),Lt(t,"link",e),rt(t),l.head.appendChild(t)))}}function Hg(e){Ea.D(e),Rm("dns-prefetch",e,null)}function jg(e,t){Ea.C(e,t),Rm("preconnect",e,t)}function qg(e,t,n){Ea.L(e,t,n);var l=ni;if(l&&e&&t){var s='link[rel="preload"][as="'+gn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(s+='[imagesrcset="'+gn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(s+='[imagesizes="'+gn(n.imageSizes)+'"]')):s+='[href="'+gn(e)+'"]';var o=s;switch(t){case"style":o=ai(e);break;case"script":o=li(e)}xn.has(o)||(e=p({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),xn.set(o,e),l.querySelector(s)!==null||t==="style"&&l.querySelector(Ji(o))||t==="script"&&l.querySelector(Fi(o))||(t=l.createElement("link"),Lt(t,"link",e),rt(t),l.head.appendChild(t)))}}function Yg(e,t){Ea.m(e,t);var n=ni;if(n&&e){var l=t&&typeof t.as=="string"?t.as:"script",s='link[rel="modulepreload"][as="'+gn(l)+'"][href="'+gn(e)+'"]',o=s;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=li(e)}if(!xn.has(o)&&(e=p({rel:"modulepreload",href:e},t),xn.set(o,e),n.querySelector(s)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Fi(o)))return}l=n.createElement("link"),Lt(l,"link",e),rt(l),n.head.appendChild(l)}}}function Qg(e,t,n){Ea.S(e,t,n);var l=ni;if(l&&e){var s=Kt(l).hoistableStyles,o=ai(e);t=t||"default";var d=s.get(o);if(!d){var v={loading:0,preload:null};if(d=l.querySelector(Ji(o)))v.loading=5;else{e=p({rel:"stylesheet",href:e,"data-precedence":t},n),(n=xn.get(o))&&tc(e,n);var S=d=l.createElement("link");rt(S),Lt(S,"link",e),S._p=new Promise(function(z,j){S.onload=z,S.onerror=j}),S.addEventListener("load",function(){v.loading|=1}),S.addEventListener("error",function(){v.loading|=2}),v.loading|=4,bs(d,t,l)}d={type:"stylesheet",instance:d,count:1,state:v},s.set(o,d)}}}function Vg(e,t){Ea.X(e,t);var n=ni;if(n&&e){var l=Kt(n).hoistableScripts,s=li(e),o=l.get(s);o||(o=n.querySelector(Fi(s)),o||(e=p({src:e,async:!0},t),(t=xn.get(s))&&nc(e,t),o=n.createElement("script"),rt(o),Lt(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},l.set(s,o))}}function Gg(e,t){Ea.M(e,t);var n=ni;if(n&&e){var l=Kt(n).hoistableScripts,s=li(e),o=l.get(s);o||(o=n.querySelector(Fi(s)),o||(e=p({src:e,async:!0,type:"module"},t),(t=xn.get(s))&&nc(e,t),o=n.createElement("script"),rt(o),Lt(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},l.set(s,o))}}function xm(e,t,n,l){var s=(s=ue.current)?gs(s):null;if(!s)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=ai(n.href),n=Kt(s).hoistableStyles,l=n.get(t),l||(l={type:"style",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=ai(n.href);var o=Kt(s).hoistableStyles,d=o.get(e);if(d||(s=s.ownerDocument||s,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,d),(o=s.querySelector(Ji(e)))&&!o._p&&(d.instance=o,d.state.loading=5),xn.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},xn.set(e,n),o||Xg(s,e,n,d.state))),t&&l===null)throw Error(u(528,""));return d}if(t&&l!==null)throw Error(u(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=li(n),n=Kt(s).hoistableScripts,l=n.get(t),l||(l={type:"script",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function ai(e){return'href="'+gn(e)+'"'}function Ji(e){return'link[rel="stylesheet"]['+e+"]"}function Om(e){return p({},e,{"data-precedence":e.precedence,precedence:null})}function Xg(e,t,n,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),Lt(t,"link",n),rt(t),e.head.appendChild(t))}function li(e){return'[src="'+gn(e)+'"]'}function Fi(e){return"script[async]"+e}function Am(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+gn(n.href)+'"]');if(l)return t.instance=l,rt(l),l;var s=p({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),rt(l),Lt(l,"style",s),bs(l,n.precedence,e),t.instance=l;case"stylesheet":s=ai(n.href);var o=e.querySelector(Ji(s));if(o)return t.state.loading|=4,t.instance=o,rt(o),o;l=Om(n),(s=xn.get(s))&&tc(l,s),o=(e.ownerDocument||e).createElement("link"),rt(o);var d=o;return d._p=new Promise(function(v,S){d.onload=v,d.onerror=S}),Lt(o,"link",l),t.state.loading|=4,bs(o,n.precedence,e),t.instance=o;case"script":return o=li(n.src),(s=e.querySelector(Fi(o)))?(t.instance=s,rt(s),s):(l=n,(s=xn.get(o))&&(l=p({},n),nc(l,s)),e=e.ownerDocument||e,s=e.createElement("script"),rt(s),Lt(s,"link",l),e.head.appendChild(s),t.instance=s);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,bs(l,n.precedence,e));return t.instance}function bs(e,t,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=l.length?l[l.length-1]:null,o=s,d=0;d<l.length;d++){var v=l[d];if(v.dataset.precedence===t)o=v;else if(o!==s)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function tc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function nc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Ss=null;function Cm(e,t,n){if(Ss===null){var l=new Map,s=Ss=new Map;s.set(n,l)}else s=Ss,l=s.get(n),l||(l=new Map,s.set(n,l));if(l.has(e))return l;for(l.set(e,null),n=n.getElementsByTagName(e),s=0;s<n.length;s++){var o=n[s];if(!(o[ot]||o[ee]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var d=o.getAttribute(t)||"";d=e+d;var v=l.get(d);v?v.push(o):l.set(d,[o])}}return l}function Dm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function kg(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;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 Mm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Kg(e,t,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var s=ai(l.href),o=t.querySelector(Ji(s));if(o){t=o._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Es.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=o,rt(o);return}o=t.ownerDocument||t,l=Om(l),(s=xn.get(s))&&tc(l,s),o=o.createElement("link"),rt(o);var d=o;d._p=new Promise(function(v,S){d.onload=v,d.onerror=S}),Lt(o,"link",l),n.instance=o}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Es.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var ac=0;function Zg(e,t){return e.stylesheets&&e.count===0&&Ts(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var l=setTimeout(function(){if(e.stylesheets&&Ts(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4+t);0<e.imgBytes&&ac===0&&(ac=62500*Og());var s=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Ts(e,e.stylesheets),e.unsuspend)){var o=e.unsuspend;e.unsuspend=null,o()}},(e.imgBytes>ac?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(s)}}:null}function Es(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ts(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var _s=null;function Ts(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,_s=new Map,t.forEach(Jg,e),_s=null,Es.call(e))}function Jg(e,t){if(!(t.state.loading&4)){var n=_s.get(e);if(n)var l=n.get(null);else{n=new Map,_s.set(e,n);for(var s=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<s.length;o++){var d=s[o];(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")&&(n.set(d.dataset.precedence,d),l=d)}l&&n.set(null,l)}s=t.instance,d=s.getAttribute("data-precedence"),o=n.get(d)||l,o===l&&n.set(null,s),n.set(d,s),this.count++,l=Es.bind(this),s.addEventListener("load",l),s.addEventListener("error",l),o?o.parentNode.insertBefore(s,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(s,e.firstChild)),t.state.loading|=4}}var $i={$$typeof:P,Provider:null,Consumer:null,_currentValue:F,_currentValue2:F,_threadCount:0};function Fg(e,t,n,l,s,o,d,v,S){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=tn(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=tn(0),this.hiddenUpdates=tn(null),this.identifierPrefix=l,this.onUncaughtError=s,this.onCaughtError=o,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=S,this.incompleteTransitions=new Map}function zm(e,t,n,l,s,o,d,v,S,z,j,Q){return e=new Fg(e,t,n,d,S,z,j,Q,v),t=1,o===!0&&(t|=24),o=ln(3,null,null,t),e.current=o,o.stateNode=e,t=Lu(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:l,isDehydrated:n,cache:t},qu(o),e}function Nm(e){return e?(e=Ll,e):Ll}function Um(e,t,n,l,s,o){s=Nm(s),l.context===null?l.context=s:l.pendingContext=s,l=Da(t),l.payload={element:n},o=o===void 0?null:o,o!==null&&(l.callback=o),n=Ma(e,l,t),n!==null&&(Pt(n,e,t),Ai(n,e,t))}function Lm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function lc(e,t){Lm(e,t),(e=e.alternate)&&Lm(e,t)}function Bm(e){if(e.tag===13||e.tag===31){var t=cl(e,67108864);t!==null&&Pt(t,e,67108864),lc(e,67108864)}}function Hm(e){if(e.tag===13||e.tag===31){var t=cn();t=U(t);var n=cl(e,t);n!==null&&Pt(n,e,t),lc(e,t)}}var ws=!0;function $g(e,t,n,l){var s=O.T;O.T=null;var o=k.p;try{k.p=2,ic(e,t,n,l)}finally{k.p=o,O.T=s}}function Wg(e,t,n,l){var s=O.T;O.T=null;var o=k.p;try{k.p=8,ic(e,t,n,l)}finally{k.p=o,O.T=s}}function ic(e,t,n,l){if(ws){var s=rc(l);if(s===null)ko(e,t,l,Rs,n),qm(e,l);else if(Ig(s,e,t,n,l))l.stopPropagation();else if(qm(e,l),t&4&&-1<Pg.indexOf(e)){for(;s!==null;){var o=Be(s);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var d=pn(o.pendingLanes);if(d!==0){var v=o;for(v.pendingLanes|=2,v.entangledLanes|=2;d;){var S=1<<31-Rt(d);v.entanglements[1]|=S,d&=~S}Jn(o),(ke&6)===0&&(ss=ut()+500,Xi(0))}}break;case 31:case 13:v=cl(o,2),v!==null&&Pt(v,o,2),os(),lc(o,2)}if(o=rc(l),o===null&&ko(e,t,l,Rs,n),o===s)break;s=o}s!==null&&l.stopPropagation()}else ko(e,t,l,null,n)}}function rc(e){return e=su(e),sc(e)}var Rs=null;function sc(e){if(Rs=null,e=ft(e),e!==null){var t=f(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=h(t),e!==null)return e;e=null}else if(n===31){if(e=m(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Rs=e,null}function jm(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(ea()){case Xn:return 2;case Ta:return 8;case Dt:case Yt:return 32;case mn:return 268435456;default:return 32}default:return 32}}var uc=!1,Va=null,Ga=null,Xa=null,Wi=new Map,Pi=new Map,ka=[],Pg="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 qm(e,t){switch(e){case"focusin":case"focusout":Va=null;break;case"dragenter":case"dragleave":Ga=null;break;case"mouseover":case"mouseout":Xa=null;break;case"pointerover":case"pointerout":Wi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pi.delete(t.pointerId)}}function Ii(e,t,n,l,s,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:l,nativeEvent:o,targetContainers:[s]},t!==null&&(t=Be(t),t!==null&&Bm(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function Ig(e,t,n,l,s){switch(t){case"focusin":return Va=Ii(Va,e,t,n,l,s),!0;case"dragenter":return Ga=Ii(Ga,e,t,n,l,s),!0;case"mouseover":return Xa=Ii(Xa,e,t,n,l,s),!0;case"pointerover":var o=s.pointerId;return Wi.set(o,Ii(Wi.get(o)||null,e,t,n,l,s)),!0;case"gotpointercapture":return o=s.pointerId,Pi.set(o,Ii(Pi.get(o)||null,e,t,n,l,s)),!0}return!1}function Ym(e){var t=ft(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=h(n),t!==null){e.blockedOn=t,se(e.priority,function(){Hm(n)});return}}else if(t===31){if(t=m(n),t!==null){e.blockedOn=t,se(e.priority,function(){Hm(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function xs(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=rc(e.nativeEvent);if(n===null){n=e.nativeEvent;var l=new n.constructor(n.type,n);ru=l,n.target.dispatchEvent(l),ru=null}else return t=Be(n),t!==null&&Bm(t),e.blockedOn=n,!1;t.shift()}return!0}function Qm(e,t,n){xs(e)&&n.delete(t)}function e0(){uc=!1,Va!==null&&xs(Va)&&(Va=null),Ga!==null&&xs(Ga)&&(Ga=null),Xa!==null&&xs(Xa)&&(Xa=null),Wi.forEach(Qm),Pi.forEach(Qm)}function Os(e,t){e.blockedOn===t&&(e.blockedOn=null,uc||(uc=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,e0)))}var As=null;function Vm(e){As!==e&&(As=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){As===e&&(As=null);for(var t=0;t<e.length;t+=3){var n=e[t],l=e[t+1],s=e[t+2];if(typeof l!="function"){if(sc(l||n)===null)continue;break}var o=Be(n);o!==null&&(e.splice(t,3),t-=3,io(o,{pending:!0,data:s,method:n.method,action:l},l,s))}}))}function ii(e){function t(S){return Os(S,e)}Va!==null&&Os(Va,e),Ga!==null&&Os(Ga,e),Xa!==null&&Os(Xa,e),Wi.forEach(t),Pi.forEach(t);for(var n=0;n<ka.length;n++){var l=ka[n];l.blockedOn===e&&(l.blockedOn=null)}for(;0<ka.length&&(n=ka[0],n.blockedOn===null);)Ym(n),n.blockedOn===null&&ka.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var s=n[l],o=n[l+1],d=s[ne]||null;if(typeof o=="function")d||Vm(n);else if(d){var v=null;if(o&&o.hasAttribute("formAction")){if(s=o,d=o[ne]||null)v=d.formAction;else if(sc(s)!==null)continue}else v=d.action;typeof v=="function"?n[l+1]=v:(n.splice(l,3),l-=3),Vm(n)}}}function Gm(){function e(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(d){return s=d})},focusReset:"manual",scroll:"manual"})}function t(){s!==null&&(s(),s=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var o=navigation.currentEntry;o&&o.url!=null&&navigation.navigate(o.url,{state:o.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,s=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),s!==null&&(s(),s=null)}}}function oc(e){this._internalRoot=e}Cs.prototype.render=oc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(u(409));var n=t.current,l=cn();Um(n,l,e,t,null,null)},Cs.prototype.unmount=oc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Um(e.current,2,null,e,null,null),os(),t[re]=null}};function Cs(e){this._internalRoot=e}Cs.prototype.unstable_scheduleHydration=function(e){if(e){var t=$();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ka.length&&t!==0&&t<ka[n].priority;n++);ka.splice(n,0,e),n===0&&Ym(e)}};var Xm=i.version;if(Xm!=="19.2.4")throw Error(u(527,Xm,"19.2.4"));k.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(u(188)):(e=Object.keys(e).join(","),Error(u(268,e)));return e=y(t),e=e!==null?E(e):null,e=e===null?null:e.stateNode,e};var t0={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:O,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ds=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ds.isDisabled&&Ds.supportsFiber)try{ta=Ds.inject(t0),at=Ds}catch{}}return tr.createRoot=function(e,t){if(!c(e))throw Error(u(299));var n=!1,l="",s=Wd,o=Pd,d=Id;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(s=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(d=t.onRecoverableError)),t=zm(e,1,!1,null,null,n,l,null,s,o,d,Gm),e[re]=t.current,Xo(e),new oc(t)},tr.hydrateRoot=function(e,t,n){if(!c(e))throw Error(u(299));var l=!1,s="",o=Wd,d=Pd,v=Id,S=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(d=n.onCaughtError),n.onRecoverableError!==void 0&&(v=n.onRecoverableError),n.formState!==void 0&&(S=n.formState)),t=zm(e,1,!0,t,n??null,l,s,S,o,d,v,Gm),t.context=Nm(null),n=t.current,l=cn(),l=U(l),s=Da(l),s.callback=null,Ma(n,s,l),n=l,t.current.lanes=n,nt(t,n),Jn(t),e[re]=t.current,Xo(e),new Cs(t)},tr.version="19.2.4",tr}var ey;function d0(){if(ey)return dc.exports;ey=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),dc.exports=f0(),dc.exports}var h0=d0(),Fs=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(a){return this.listeners.add(a),this.onSubscribe(),()=>{this.listeners.delete(a),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},m0={setTimeout:(a,i)=>setTimeout(a,i),clearTimeout:a=>clearTimeout(a),setInterval:(a,i)=>setInterval(a,i),clearInterval:a=>clearInterval(a)},y0=class{#e=m0;#n=!1;setTimeoutProvider(a){this.#e=a}setTimeout(a,i){return this.#e.setTimeout(a,i)}clearTimeout(a){this.#e.clearTimeout(a)}setInterval(a,i){return this.#e.setInterval(a,i)}clearInterval(a){this.#e.clearInterval(a)}},Rc=new y0;function p0(a){setTimeout(a,0)}var $s=typeof window>"u"||"Deno"in globalThis;function Yn(){}function v0(a,i){return typeof a=="function"?a(i):a}function g0(a){return typeof a=="number"&&a>=0&&a!==1/0}function b0(a,i){return Math.max(a+(i||0)-Date.now(),0)}function xc(a,i){return typeof a=="function"?a(i):a}function S0(a,i){return typeof a=="function"?a(i):a}function ty(a,i){const{type:r="all",exact:u,fetchStatus:c,predicate:f,queryKey:h,stale:m}=a;if(h){if(u){if(i.queryHash!==Qc(h,i.options))return!1}else if(!fr(i.queryKey,h))return!1}if(r!=="all"){const g=i.isActive();if(r==="active"&&!g||r==="inactive"&&g)return!1}return!(typeof m=="boolean"&&i.isStale()!==m||c&&c!==i.state.fetchStatus||f&&!f(i))}function ny(a,i){const{exact:r,status:u,predicate:c,mutationKey:f}=a;if(f){if(!i.options.mutationKey)return!1;if(r){if(cr(i.options.mutationKey)!==cr(f))return!1}else if(!fr(i.options.mutationKey,f))return!1}return!(u&&i.state.status!==u||c&&!c(i))}function Qc(a,i){return(i?.queryKeyHashFn||cr)(a)}function cr(a){return JSON.stringify(a,(i,r)=>Oc(r)?Object.keys(r).sort().reduce((u,c)=>(u[c]=r[c],u),{}):r)}function fr(a,i){return a===i?!0:typeof a!=typeof i?!1:a&&i&&typeof a=="object"&&typeof i=="object"?Object.keys(i).every(r=>fr(a[r],i[r])):!1}var E0=Object.prototype.hasOwnProperty;function Fy(a,i,r=0){if(a===i)return a;if(r>500)return i;const u=ay(a)&&ay(i);if(!u&&!(Oc(a)&&Oc(i)))return i;const f=(u?a:Object.keys(a)).length,h=u?i:Object.keys(i),m=h.length,g=u?new Array(m):{};let y=0;for(let E=0;E<m;E++){const p=u?E:h[E],R=a[p],D=i[p];if(R===D){g[p]=R,(u?E<f:E0.call(a,p))&&y++;continue}if(R===null||D===null||typeof R!="object"||typeof D!="object"){g[p]=D;continue}const H=Fy(R,D,r+1);g[p]=H,H===R&&y++}return f===m&&y===f?a:g}function o2(a,i){if(!i||Object.keys(a).length!==Object.keys(i).length)return!1;for(const r in a)if(a[r]!==i[r])return!1;return!0}function ay(a){return Array.isArray(a)&&a.length===Object.keys(a).length}function Oc(a){if(!ly(a))return!1;const i=a.constructor;if(i===void 0)return!0;const r=i.prototype;return!(!ly(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(a)!==Object.prototype)}function ly(a){return Object.prototype.toString.call(a)==="[object Object]"}function _0(a){return new Promise(i=>{Rc.setTimeout(i,a)})}function T0(a,i,r){return typeof r.structuralSharing=="function"?r.structuralSharing(a,i):r.structuralSharing!==!1?Fy(a,i):i}function w0(a,i,r=0){const u=[...a,i];return r&&u.length>r?u.slice(1):u}function R0(a,i,r=0){const u=[i,...a];return r&&u.length>r?u.slice(0,-1):u}var Vc=Symbol();function $y(a,i){return!a.queryFn&&i?.initialPromise?()=>i.initialPromise:!a.queryFn||a.queryFn===Vc?()=>Promise.reject(new Error(`Missing queryFn: '${a.queryHash}'`)):a.queryFn}function c2(a,i){return typeof a=="function"?a(...i):!!a}function x0(a,i,r){let u=!1,c;return Object.defineProperty(a,"signal",{enumerable:!0,get:()=>(c??=i(),u||(u=!0,c.aborted?r():c.addEventListener("abort",r,{once:!0})),c)}),a}var O0=class extends Fs{#e;#n;#t;constructor(){super(),this.#t=a=>{if(!$s&&window.addEventListener){const i=()=>a();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}}}onSubscribe(){this.#n||this.setEventListener(this.#t)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(a){this.#t=a,this.#n?.(),this.#n=a(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()})}setFocused(a){this.#e!==a&&(this.#e=a,this.onFocus())}onFocus(){const a=this.isFocused();this.listeners.forEach(i=>{i(a)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},Wy=new O0;function A0(){let a,i;const r=new Promise((c,f)=>{a=c,i=f});r.status="pending",r.catch(()=>{});function u(c){Object.assign(r,c),delete r.resolve,delete r.reject}return r.resolve=c=>{u({status:"fulfilled",value:c}),a(c)},r.reject=c=>{u({status:"rejected",reason:c}),i(c)},r}var C0=p0;function D0(){let a=[],i=0,r=m=>{m()},u=m=>{m()},c=C0;const f=m=>{i?a.push(m):c(()=>{r(m)})},h=()=>{const m=a;a=[],m.length&&c(()=>{u(()=>{m.forEach(g=>{r(g)})})})};return{batch:m=>{let g;i++;try{g=m()}finally{i--,i||h()}return g},batchCalls:m=>(...g)=>{f(()=>{m(...g)})},schedule:f,setNotifyFunction:m=>{r=m},setBatchNotifyFunction:m=>{u=m},setScheduler:m=>{c=m}}}var Vt=D0(),M0=class extends Fs{#e=!0;#n;#t;constructor(){super(),this.#t=a=>{if(!$s&&window.addEventListener){const i=()=>a(!0),r=()=>a(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#n||this.setEventListener(this.#t)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(a){this.#t=a,this.#n?.(),this.#n=a(this.setOnline.bind(this))}setOnline(a){this.#e!==a&&(this.#e=a,this.listeners.forEach(r=>{r(a)}))}isOnline(){return this.#e}},Zs=new M0;function z0(a){return Math.min(1e3*2**a,3e4)}function Py(a){return(a??"online")==="online"?Zs.isOnline():!0}var Ac=class extends Error{constructor(a){super("CancelledError"),this.revert=a?.revert,this.silent=a?.silent}};function Iy(a){let i=!1,r=0,u;const c=A0(),f=()=>c.status!=="pending",h=V=>{if(!f()){const K=new Ac(V);R(K),a.onCancel?.(K)}},m=()=>{i=!0},g=()=>{i=!1},y=()=>Wy.isFocused()&&(a.networkMode==="always"||Zs.isOnline())&&a.canRun(),E=()=>Py(a.networkMode)&&a.canRun(),p=V=>{f()||(u?.(),c.resolve(V))},R=V=>{f()||(u?.(),c.reject(V))},D=()=>new Promise(V=>{u=K=>{(f()||y())&&V(K)},a.onPause?.()}).then(()=>{u=void 0,f()||a.onContinue?.()}),H=()=>{if(f())return;let V;const K=r===0?a.initialPromise:void 0;try{V=K??a.fn()}catch(G){V=Promise.reject(G)}Promise.resolve(V).then(p).catch(G=>{if(f())return;const Z=a.retry??($s?0:3),P=a.retryDelay??z0,ge=typeof P=="function"?P(r,G):P,pe=Z===!0||typeof Z=="number"&&r<Z||typeof Z=="function"&&Z(r,G);if(i||!pe){R(G);return}r++,a.onFail?.(r,G),_0(ge).then(()=>y()?void 0:D()).then(()=>{i?R(G):H()})})};return{promise:c,status:()=>c.status,cancel:h,continue:()=>(u?.(),c),cancelRetry:m,continueRetry:g,canStart:E,start:()=>(E()?H():D().then(H),c)}}var ep=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),g0(this.gcTime)&&(this.#e=Rc.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(a){this.gcTime=Math.max(this.gcTime||0,a??($s?1/0:300*1e3))}clearGcTimeout(){this.#e&&(Rc.clearTimeout(this.#e),this.#e=void 0)}},N0=class extends ep{#e;#n;#t;#l;#a;#r;#s;constructor(a){super(),this.#s=!1,this.#r=a.defaultOptions,this.setOptions(a.options),this.observers=[],this.#l=a.client,this.#t=this.#l.getQueryCache(),this.queryKey=a.queryKey,this.queryHash=a.queryHash,this.#e=ry(this.options),this.state=a.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(a){if(this.options={...this.#r,...a},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=ry(this.options);i.data!==void 0&&(this.setState(iy(i.data,i.dataUpdatedAt)),this.#e=i)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#t.remove(this)}setData(a,i){const r=T0(this.state.data,a,this.options);return this.#i({data:r,type:"success",dataUpdatedAt:i?.updatedAt,manual:i?.manual}),r}setState(a,i){this.#i({type:"setState",state:a,setStateOptions:i})}cancel(a){const i=this.#a?.promise;return this.#a?.cancel(a),i?i.then(Yn).catch(Yn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(a=>S0(a.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Vc||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(a=>xc(a.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(a=>a.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(a=0){return this.state.data===void 0?!0:a==="static"?!1:this.state.isInvalidated?!0:!b0(this.state.dataUpdatedAt,a)}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(a){this.observers.includes(a)||(this.observers.push(a),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",query:this,observer:a}))}removeObserver(a){this.observers.includes(a)&&(this.observers=this.observers.filter(i=>i!==a),this.observers.length||(this.#a&&(this.#s?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#t.notify({type:"observerRemoved",query:this,observer:a}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(a,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(a&&this.setOptions(a),!this.options.queryFn){const m=this.observers.find(g=>g.options.queryFn);m&&this.setOptions(m.options)}const r=new AbortController,u=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(this.#s=!0,r.signal)})},c=()=>{const m=$y(this.options,i),y=(()=>{const E={client:this.#l,queryKey:this.queryKey,meta:this.meta};return u(E),E})();return this.#s=!1,this.options.persister?this.options.persister(m,y,this):m(y)},h=(()=>{const m={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:this.#l,state:this.state,fetchFn:c};return u(m),m})();this.options.behavior?.onFetch(h,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==h.fetchOptions?.meta)&&this.#i({type:"fetch",meta:h.fetchOptions?.meta}),this.#a=Iy({initialPromise:i?.initialPromise,fn:h.fetchFn,onCancel:m=>{m instanceof Ac&&m.revert&&this.setState({...this.#n,fetchStatus:"idle"}),r.abort()},onFail:(m,g)=>{this.#i({type:"failed",failureCount:m,error:g})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode,canRun:()=>!0});try{const m=await this.#a.start();if(m===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(m),this.#t.config.onSuccess?.(m,this),this.#t.config.onSettled?.(m,this.state.error,this),m}catch(m){if(m instanceof Ac){if(m.silent)return this.#a.promise;if(m.revert){if(this.state.data===void 0)throw m;return this.state.data}}throw this.#i({type:"error",error:m}),this.#t.config.onError?.(m,this),this.#t.config.onSettled?.(this.state.data,m,this),m}finally{this.scheduleGc()}}#i(a){const i=r=>{switch(a.type){case"failed":return{...r,fetchFailureCount:a.failureCount,fetchFailureReason:a.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...U0(r.data,this.options),fetchMeta:a.meta??null};case"success":const u={...r,...iy(a.data,a.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!a.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=a.manual?u:void 0,u;case"error":const c=a.error;return{...r,error:c,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:c,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...a.state}}};this.state=i(this.state),Vt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),this.#t.notify({query:this,type:"updated",action:a})})}};function U0(a,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Py(i.networkMode)?"fetching":"paused",...a===void 0&&{error:null,status:"pending"}}}function iy(a,i){return{data:a,dataUpdatedAt:i??Date.now(),error:null,isInvalidated:!1,status:"success"}}function ry(a){const i=typeof a.initialData=="function"?a.initialData():a.initialData,r=i!==void 0,u=r?typeof a.initialDataUpdatedAt=="function"?a.initialDataUpdatedAt():a.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:r?u??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}function sy(a){return{onFetch:(i,r)=>{const u=i.options,c=i.fetchOptions?.meta?.fetchMore?.direction,f=i.state.data?.pages||[],h=i.state.data?.pageParams||[];let m={pages:[],pageParams:[]},g=0;const y=async()=>{let E=!1;const p=H=>{x0(H,()=>i.signal,()=>E=!0)},R=$y(i.options,i.fetchOptions),D=async(H,V,K)=>{if(E)return Promise.reject();if(V==null&&H.pages.length)return Promise.resolve(H);const Z=(()=>{const ye={client:i.client,queryKey:i.queryKey,pageParam:V,direction:K?"backward":"forward",meta:i.options.meta};return p(ye),ye})(),P=await R(Z),{maxPages:ge}=i.options,pe=K?R0:w0;return{pages:pe(H.pages,P,ge),pageParams:pe(H.pageParams,V,ge)}};if(c&&f.length){const H=c==="backward",V=H?L0:uy,K={pages:f,pageParams:h},G=V(u,K);m=await D(K,G,H)}else{const H=a??f.length;do{const V=g===0?h[0]??u.initialPageParam:uy(u,m);if(g>0&&V==null)break;m=await D(m,V),g++}while(g<H)}return m};i.options.persister?i.fetchFn=()=>i.options.persister?.(y,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},r):i.fetchFn=y}}}function uy(a,{pages:i,pageParams:r}){const u=i.length-1;return i.length>0?a.getNextPageParam(i[u],i,r[u],r):void 0}function L0(a,{pages:i,pageParams:r}){return i.length>0?a.getPreviousPageParam?.(i[0],i,r[0],r):void 0}var B0=class extends ep{#e;#n;#t;#l;constructor(a){super(),this.#e=a.client,this.mutationId=a.mutationId,this.#t=a.mutationCache,this.#n=[],this.state=a.state||H0(),this.setOptions(a.options),this.scheduleGc()}setOptions(a){this.options=a,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(a){this.#n.includes(a)||(this.#n.push(a),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",mutation:this,observer:a}))}removeObserver(a){this.#n=this.#n.filter(i=>i!==a),this.scheduleGc(),this.#t.notify({type:"observerRemoved",mutation:this,observer:a})}optionalRemove(){this.#n.length||(this.state.status==="pending"?this.scheduleGc():this.#t.remove(this))}continue(){return this.#l?.continue()??this.execute(this.state.variables)}async execute(a){const i=()=>{this.#a({type:"continue"})},r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#l=Iy({fn:()=>this.options.mutationFn?this.options.mutationFn(a,r):Promise.reject(new Error("No mutationFn found")),onFail:(f,h)=>{this.#a({type:"failed",failureCount:f,error:h})},onPause:()=>{this.#a({type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#t.canRun(this)});const u=this.state.status==="pending",c=!this.#l.canStart();try{if(u)i();else{this.#a({type:"pending",variables:a,isPaused:c}),this.#t.config.onMutate&&await this.#t.config.onMutate(a,this,r);const h=await this.options.onMutate?.(a,r);h!==this.state.context&&this.#a({type:"pending",context:h,variables:a,isPaused:c})}const f=await this.#l.start();return await this.#t.config.onSuccess?.(f,a,this.state.context,this,r),await this.options.onSuccess?.(f,a,this.state.context,r),await this.#t.config.onSettled?.(f,null,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(f,null,a,this.state.context,r),this.#a({type:"success",data:f}),f}catch(f){try{await this.#t.config.onError?.(f,a,this.state.context,this,r)}catch(h){Promise.reject(h)}try{await this.options.onError?.(f,a,this.state.context,r)}catch(h){Promise.reject(h)}try{await this.#t.config.onSettled?.(void 0,f,this.state.variables,this.state.context,this,r)}catch(h){Promise.reject(h)}try{await this.options.onSettled?.(void 0,f,a,this.state.context,r)}catch(h){Promise.reject(h)}throw this.#a({type:"error",error:f}),f}finally{this.#t.runNext(this)}}#a(a){const i=r=>{switch(a.type){case"failed":return{...r,failureCount:a.failureCount,failureReason:a.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:a.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:a.isPaused,status:"pending",variables:a.variables,submittedAt:Date.now()};case"success":return{...r,data:a.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:a.error,failureCount:r.failureCount+1,failureReason:a.error,isPaused:!1,status:"error"}}};this.state=i(this.state),Vt.batch(()=>{this.#n.forEach(r=>{r.onMutationUpdate(a)}),this.#t.notify({mutation:this,type:"updated",action:a})})}};function H0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var j0=class extends Fs{constructor(a={}){super(),this.config=a,this.#e=new Set,this.#n=new Map,this.#t=0}#e;#n;#t;build(a,i,r){const u=new B0({client:a,mutationCache:this,mutationId:++this.#t,options:a.defaultMutationOptions(i),state:r});return this.add(u),u}add(a){this.#e.add(a);const i=Ms(a);if(typeof i=="string"){const r=this.#n.get(i);r?r.push(a):this.#n.set(i,[a])}this.notify({type:"added",mutation:a})}remove(a){if(this.#e.delete(a)){const i=Ms(a);if(typeof i=="string"){const r=this.#n.get(i);if(r)if(r.length>1){const u=r.indexOf(a);u!==-1&&r.splice(u,1)}else r[0]===a&&this.#n.delete(i)}}this.notify({type:"removed",mutation:a})}canRun(a){const i=Ms(a);if(typeof i=="string"){const u=this.#n.get(i)?.find(c=>c.state.status==="pending");return!u||u===a}else return!0}runNext(a){const i=Ms(a);return typeof i=="string"?this.#n.get(i)?.find(u=>u!==a&&u.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Vt.batch(()=>{this.#e.forEach(a=>{this.notify({type:"removed",mutation:a})}),this.#e.clear(),this.#n.clear()})}getAll(){return Array.from(this.#e)}find(a){const i={exact:!0,...a};return this.getAll().find(r=>ny(i,r))}findAll(a={}){return this.getAll().filter(i=>ny(a,i))}notify(a){Vt.batch(()=>{this.listeners.forEach(i=>{i(a)})})}resumePausedMutations(){const a=this.getAll().filter(i=>i.state.isPaused);return Vt.batch(()=>Promise.all(a.map(i=>i.continue().catch(Yn))))}};function Ms(a){return a.options.scope?.id}var q0=class extends Fs{constructor(a={}){super(),this.config=a,this.#e=new Map}#e;build(a,i,r){const u=i.queryKey,c=i.queryHash??Qc(u,i);let f=this.get(c);return f||(f=new N0({client:a,queryKey:u,queryHash:c,options:a.defaultQueryOptions(i),state:r,defaultOptions:a.getQueryDefaults(u)}),this.add(f)),f}add(a){this.#e.has(a.queryHash)||(this.#e.set(a.queryHash,a),this.notify({type:"added",query:a}))}remove(a){const i=this.#e.get(a.queryHash);i&&(a.destroy(),i===a&&this.#e.delete(a.queryHash),this.notify({type:"removed",query:a}))}clear(){Vt.batch(()=>{this.getAll().forEach(a=>{this.remove(a)})})}get(a){return this.#e.get(a)}getAll(){return[...this.#e.values()]}find(a){const i={exact:!0,...a};return this.getAll().find(r=>ty(i,r))}findAll(a={}){const i=this.getAll();return Object.keys(a).length>0?i.filter(r=>ty(a,r)):i}notify(a){Vt.batch(()=>{this.listeners.forEach(i=>{i(a)})})}onFocus(){Vt.batch(()=>{this.getAll().forEach(a=>{a.onFocus()})})}onOnline(){Vt.batch(()=>{this.getAll().forEach(a=>{a.onOnline()})})}},Y0=class{#e;#n;#t;#l;#a;#r;#s;#i;constructor(a={}){this.#e=a.queryCache||new q0,this.#n=a.mutationCache||new j0,this.#t=a.defaultOptions||{},this.#l=new Map,this.#a=new Map,this.#r=0}mount(){this.#r++,this.#r===1&&(this.#s=Wy.subscribe(async a=>{a&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=Zs.subscribe(async a=>{a&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#r--,this.#r===0&&(this.#s?.(),this.#s=void 0,this.#i?.(),this.#i=void 0)}isFetching(a){return this.#e.findAll({...a,fetchStatus:"fetching"}).length}isMutating(a){return this.#n.findAll({...a,status:"pending"}).length}getQueryData(a){const i=this.defaultQueryOptions({queryKey:a});return this.#e.get(i.queryHash)?.state.data}ensureQueryData(a){const i=this.defaultQueryOptions(a),r=this.#e.build(this,i),u=r.state.data;return u===void 0?this.fetchQuery(a):(a.revalidateIfStale&&r.isStaleByTime(xc(i.staleTime,r))&&this.prefetchQuery(i),Promise.resolve(u))}getQueriesData(a){return this.#e.findAll(a).map(({queryKey:i,state:r})=>{const u=r.data;return[i,u]})}setQueryData(a,i,r){const u=this.defaultQueryOptions({queryKey:a}),f=this.#e.get(u.queryHash)?.state.data,h=v0(i,f);if(h!==void 0)return this.#e.build(this,u).setData(h,{...r,manual:!0})}setQueriesData(a,i,r){return Vt.batch(()=>this.#e.findAll(a).map(({queryKey:u})=>[u,this.setQueryData(u,i,r)]))}getQueryState(a){const i=this.defaultQueryOptions({queryKey:a});return this.#e.get(i.queryHash)?.state}removeQueries(a){const i=this.#e;Vt.batch(()=>{i.findAll(a).forEach(r=>{i.remove(r)})})}resetQueries(a,i){const r=this.#e;return Vt.batch(()=>(r.findAll(a).forEach(u=>{u.reset()}),this.refetchQueries({type:"active",...a},i)))}cancelQueries(a,i={}){const r={revert:!0,...i},u=Vt.batch(()=>this.#e.findAll(a).map(c=>c.cancel(r)));return Promise.all(u).then(Yn).catch(Yn)}invalidateQueries(a,i={}){return Vt.batch(()=>(this.#e.findAll(a).forEach(r=>{r.invalidate()}),a?.refetchType==="none"?Promise.resolve():this.refetchQueries({...a,type:a?.refetchType??a?.type??"active"},i)))}refetchQueries(a,i={}){const r={...i,cancelRefetch:i.cancelRefetch??!0},u=Vt.batch(()=>this.#e.findAll(a).filter(c=>!c.isDisabled()&&!c.isStatic()).map(c=>{let f=c.fetch(void 0,r);return r.throwOnError||(f=f.catch(Yn)),c.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(u).then(Yn)}fetchQuery(a){const i=this.defaultQueryOptions(a);i.retry===void 0&&(i.retry=!1);const r=this.#e.build(this,i);return r.isStaleByTime(xc(i.staleTime,r))?r.fetch(i):Promise.resolve(r.state.data)}prefetchQuery(a){return this.fetchQuery(a).then(Yn).catch(Yn)}fetchInfiniteQuery(a){return a.behavior=sy(a.pages),this.fetchQuery(a)}prefetchInfiniteQuery(a){return this.fetchInfiniteQuery(a).then(Yn).catch(Yn)}ensureInfiniteQueryData(a){return a.behavior=sy(a.pages),this.ensureQueryData(a)}resumePausedMutations(){return Zs.isOnline()?this.#n.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#n}getDefaultOptions(){return this.#t}setDefaultOptions(a){this.#t=a}setQueryDefaults(a,i){this.#l.set(cr(a),{queryKey:a,defaultOptions:i})}getQueryDefaults(a){const i=[...this.#l.values()],r={};return i.forEach(u=>{fr(a,u.queryKey)&&Object.assign(r,u.defaultOptions)}),r}setMutationDefaults(a,i){this.#a.set(cr(a),{mutationKey:a,defaultOptions:i})}getMutationDefaults(a){const i=[...this.#a.values()],r={};return i.forEach(u=>{fr(a,u.mutationKey)&&Object.assign(r,u.defaultOptions)}),r}defaultQueryOptions(a){if(a._defaulted)return a;const i={...this.#t.queries,...this.getQueryDefaults(a.queryKey),...a,_defaulted:!0};return i.queryHash||(i.queryHash=Qc(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===Vc&&(i.enabled=!1),i}defaultMutationOptions(a){return a?._defaulted?a:{...this.#t.mutations,...a?.mutationKey&&this.getMutationDefaults(a.mutationKey),...a,_defaulted:!0}}clear(){this.#e.clear(),this.#n.clear()}},tp=C.createContext(void 0),f2=a=>{const i=C.useContext(tp);if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},Q0=({client:a,children:i})=>(C.useEffect(()=>(a.mount(),()=>{a.unmount()}),[a]),be.jsx(tp.Provider,{value:a,children:i})),np=Jy();const V0=Zy(np);function G0(a){if(typeof document>"u")return;let i=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",i.appendChild(r),r.styleSheet?r.styleSheet.cssText=a:r.appendChild(document.createTextNode(a))}const X0=a=>{switch(a){case"success":return Z0;case"info":return F0;case"warning":return J0;case"error":return $0;default:return null}},k0=Array(12).fill(0),K0=({visible:a,className:i})=>W.createElement("div",{className:["sonner-loading-wrapper",i].filter(Boolean).join(" "),"data-visible":a},W.createElement("div",{className:"sonner-spinner"},k0.map((r,u)=>W.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${u}`})))),Z0=W.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},W.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"})),J0=W.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},W.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"})),F0=W.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},W.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"})),$0=W.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},W.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"})),W0=W.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"},W.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),W.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),P0=()=>{const[a,i]=W.useState(document.hidden);return W.useEffect(()=>{const r=()=>{i(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),a};let Cc=1;class I0{constructor(){this.subscribe=i=>(this.subscribers.push(i),()=>{const r=this.subscribers.indexOf(i);this.subscribers.splice(r,1)}),this.publish=i=>{this.subscribers.forEach(r=>r(i))},this.addToast=i=>{this.publish(i),this.toasts=[...this.toasts,i]},this.create=i=>{var r;const{message:u,...c}=i,f=typeof i?.id=="number"||((r=i.id)==null?void 0:r.length)>0?i.id:Cc++,h=this.toasts.find(g=>g.id===f),m=i.dismissible===void 0?!0:i.dismissible;return this.dismissedToasts.has(f)&&this.dismissedToasts.delete(f),h?this.toasts=this.toasts.map(g=>g.id===f?(this.publish({...g,...i,id:f,title:u}),{...g,...i,id:f,dismissible:m,title:u}):g):this.addToast({title:u,...c,dismissible:m,id:f}),f},this.dismiss=i=>(i?(this.dismissedToasts.add(i),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:i,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(u=>u({id:r.id,dismiss:!0}))}),i),this.message=(i,r)=>this.create({...r,message:i}),this.error=(i,r)=>this.create({...r,message:i,type:"error"}),this.success=(i,r)=>this.create({...r,type:"success",message:i}),this.info=(i,r)=>this.create({...r,type:"info",message:i}),this.warning=(i,r)=>this.create({...r,type:"warning",message:i}),this.loading=(i,r)=>this.create({...r,type:"loading",message:i}),this.promise=(i,r)=>{if(!r)return;let u;r.loading!==void 0&&(u=this.create({...r,promise:i,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const c=Promise.resolve(i instanceof Function?i():i);let f=u!==void 0,h;const m=c.then(async y=>{if(h=["resolve",y],W.isValidElement(y))f=!1,this.create({id:u,type:"default",message:y});else if(tb(y)&&!y.ok){f=!1;const p=typeof r.error=="function"?await r.error(`HTTP error! status: ${y.status}`):r.error,R=typeof r.description=="function"?await r.description(`HTTP error! status: ${y.status}`):r.description,H=typeof p=="object"&&!W.isValidElement(p)?p:{message:p};this.create({id:u,type:"error",description:R,...H})}else if(y instanceof Error){f=!1;const p=typeof r.error=="function"?await r.error(y):r.error,R=typeof r.description=="function"?await r.description(y):r.description,H=typeof p=="object"&&!W.isValidElement(p)?p:{message:p};this.create({id:u,type:"error",description:R,...H})}else if(r.success!==void 0){f=!1;const p=typeof r.success=="function"?await r.success(y):r.success,R=typeof r.description=="function"?await r.description(y):r.description,H=typeof p=="object"&&!W.isValidElement(p)?p:{message:p};this.create({id:u,type:"success",description:R,...H})}}).catch(async y=>{if(h=["reject",y],r.error!==void 0){f=!1;const E=typeof r.error=="function"?await r.error(y):r.error,p=typeof r.description=="function"?await r.description(y):r.description,D=typeof E=="object"&&!W.isValidElement(E)?E:{message:E};this.create({id:u,type:"error",description:p,...D})}}).finally(()=>{f&&(this.dismiss(u),u=void 0),r.finally==null||r.finally.call(r)}),g=()=>new Promise((y,E)=>m.then(()=>h[0]==="reject"?E(h[1]):y(h[1])).catch(E));return typeof u!="string"&&typeof u!="number"?{unwrap:g}:Object.assign(u,{unwrap:g})},this.custom=(i,r)=>{const u=r?.id||Cc++;return this.create({jsx:i(u),id:u,...r}),u},this.getActiveToasts=()=>this.toasts.filter(i=>!this.dismissedToasts.has(i.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const It=new I0,eb=(a,i)=>{const r=i?.id||Cc++;return It.addToast({title:a,...i,id:r}),r},tb=a=>a&&typeof a=="object"&&"ok"in a&&typeof a.ok=="boolean"&&"status"in a&&typeof a.status=="number",nb=eb,ab=()=>It.toasts,lb=()=>It.getActiveToasts(),d2=Object.assign(nb,{success:It.success,info:It.info,warning:It.warning,error:It.error,custom:It.custom,message:It.message,promise:It.promise,dismiss:It.dismiss,loading:It.loading},{getHistory:ab,getToasts:lb});G0("[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 zs(a){return a.label!==void 0}const ib=3,rb="24px",sb="16px",oy=4e3,ub=356,ob=14,cb=45,fb=200;function Fn(...a){return a.filter(Boolean).join(" ")}function db(a){const[i,r]=a.split("-"),u=[];return i&&u.push(i),r&&u.push(r),u}const hb=a=>{var i,r,u,c,f,h,m,g,y;const{invert:E,toast:p,unstyled:R,interacting:D,setHeights:H,visibleToasts:V,heights:K,index:G,toasts:Z,expanded:P,removeToast:ge,defaultRichColors:pe,closeButton:ye,style:A,cancelButtonStyle:ae,actionButtonStyle:Ee,className:ze="",descriptionClassName:Oe="",duration:Ae,position:Ke,gap:Qe,expandByDefault:_e,classNames:O,icons:k,closeButtonAriaLabel:F="Close toast"}=a,[ce,de]=W.useState(null),[_,B]=W.useState(null),[q,J]=W.useState(!1),[I,ue]=W.useState(!1),[we,Se]=W.useState(!1),[Ze,hn]=W.useState(!1),[Dn,Ie]=W.useState(!1),[Mn,Gt]=W.useState(0),[Ia,Xt]=W.useState(0),In=W.useRef(p.duration||Ae||oy),el=W.useRef(null),Bt=W.useRef(null),tl=G===0,nl=G+1<=V,Ct=p.type,Gn=p.dismissible!==!1,ut=p.className||"",ea=p.descriptionClassName||"",Xn=W.useMemo(()=>K.findIndex(ve=>ve.toastId===p.id)||0,[K,p.id]),Ta=W.useMemo(()=>{var ve;return(ve=p.closeButton)!=null?ve:ye},[p.closeButton,ye]),Dt=W.useMemo(()=>p.duration||Ae||oy,[p.duration,Ae]),Yt=W.useRef(0),mn=W.useRef(0),Rl=W.useRef(0),yn=W.useRef(null),[ta,at]=Ke.split("-"),kt=W.useMemo(()=>K.reduce((ve,tt,mt)=>mt>=Xn?ve:ve+tt.height,0),[K,Xn]),Rt=P0(),xl=p.invert||E,al=Ct==="loading";mn.current=W.useMemo(()=>Xn*Qe+kt,[Xn,kt]),W.useEffect(()=>{In.current=Dt},[Dt]),W.useEffect(()=>{J(!0)},[]),W.useEffect(()=>{const ve=Bt.current;if(ve){const tt=ve.getBoundingClientRect().height;return Xt(tt),H(mt=>[{toastId:p.id,height:tt,position:p.position},...mt]),()=>H(mt=>mt.filter(yt=>yt.toastId!==p.id))}},[H,p.id]),W.useLayoutEffect(()=>{if(!q)return;const ve=Bt.current,tt=ve.style.height;ve.style.height="auto";const mt=ve.getBoundingClientRect().height;ve.style.height=tt,Xt(mt),H(yt=>yt.find(nt=>nt.toastId===p.id)?yt.map(nt=>nt.toastId===p.id?{...nt,height:mt}:nt):[{toastId:p.id,height:mt,position:p.position},...yt])},[q,p.title,p.description,H,p.id,p.jsx,p.action,p.cancel]);const en=W.useCallback(()=>{ue(!0),Gt(mn.current),H(ve=>ve.filter(tt=>tt.toastId!==p.id)),setTimeout(()=>{ge(p)},fb)},[p,ge,H,mn]);W.useEffect(()=>{if(p.promise&&Ct==="loading"||p.duration===1/0||p.type==="loading")return;let ve;return P||D||Rt?(()=>{if(Rl.current<Yt.current){const yt=new Date().getTime()-Yt.current;In.current=In.current-yt}Rl.current=new Date().getTime()})():In.current!==1/0&&(Yt.current=new Date().getTime(),ve=setTimeout(()=>{p.onAutoClose==null||p.onAutoClose.call(p,p),en()},In.current)),()=>clearTimeout(ve)},[P,D,p,Ct,Rt,en]),W.useEffect(()=>{p.delete&&(en(),p.onDismiss==null||p.onDismiss.call(p,p))},[en,p.delete]);function zn(){var ve;if(k?.loading){var tt;return W.createElement("div",{className:Fn(O?.loader,p==null||(tt=p.classNames)==null?void 0:tt.loader,"sonner-loader"),"data-visible":Ct==="loading"},k.loading)}return W.createElement(K0,{className:Fn(O?.loader,p==null||(ve=p.classNames)==null?void 0:ve.loader),visible:Ct==="loading"})}const na=p.icon||k?.[Ct]||X0(Ct);var Nn,pn;return W.createElement("li",{tabIndex:0,ref:Bt,className:Fn(ze,ut,O?.toast,p==null||(i=p.classNames)==null?void 0:i.toast,O?.default,O?.[Ct],p==null||(r=p.classNames)==null?void 0:r[Ct]),"data-sonner-toast":"","data-rich-colors":(Nn=p.richColors)!=null?Nn:pe,"data-styled":!(p.jsx||p.unstyled||R),"data-mounted":q,"data-promise":!!p.promise,"data-swiped":Dn,"data-removed":I,"data-visible":nl,"data-y-position":ta,"data-x-position":at,"data-index":G,"data-front":tl,"data-swiping":we,"data-dismissible":Gn,"data-type":Ct,"data-invert":xl,"data-swipe-out":Ze,"data-swipe-direction":_,"data-expanded":!!(P||_e&&q),"data-testid":p.testId,style:{"--index":G,"--toasts-before":G,"--z-index":Z.length-G,"--offset":`${I?Mn:mn.current}px`,"--initial-height":_e?"auto":`${Ia}px`,...A,...p.style},onDragEnd:()=>{Se(!1),de(null),yn.current=null},onPointerDown:ve=>{ve.button!==2&&(al||!Gn||(el.current=new Date,Gt(mn.current),ve.target.setPointerCapture(ve.pointerId),ve.target.tagName!=="BUTTON"&&(Se(!0),yn.current={x:ve.clientX,y:ve.clientY})))},onPointerUp:()=>{var ve,tt,mt;if(Ze||!Gn)return;yn.current=null;const yt=Number(((ve=Bt.current)==null?void 0:ve.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),tn=Number(((tt=Bt.current)==null?void 0:tt.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),nt=new Date().getTime()-((mt=el.current)==null?void 0:mt.getTime()),Ht=ce==="x"?yt:tn,aa=Math.abs(Ht)/nt;if(Math.abs(Ht)>=cb||aa>.11){Gt(mn.current),p.onDismiss==null||p.onDismiss.call(p,p),B(ce==="x"?yt>0?"right":"left":tn>0?"down":"up"),en(),hn(!0);return}else{var b,w;(b=Bt.current)==null||b.style.setProperty("--swipe-amount-x","0px"),(w=Bt.current)==null||w.style.setProperty("--swipe-amount-y","0px")}Ie(!1),Se(!1),de(null)},onPointerMove:ve=>{var tt,mt,yt;if(!yn.current||!Gn||((tt=window.getSelection())==null?void 0:tt.toString().length)>0)return;const nt=ve.clientY-yn.current.y,Ht=ve.clientX-yn.current.x;var aa;const b=(aa=a.swipeDirections)!=null?aa:db(Ke);!ce&&(Math.abs(Ht)>1||Math.abs(nt)>1)&&de(Math.abs(Ht)>Math.abs(nt)?"x":"y");let w={x:0,y:0};const U=X=>1/(1.5+Math.abs(X)/20);if(ce==="y"){if(b.includes("top")||b.includes("bottom"))if(b.includes("top")&&nt<0||b.includes("bottom")&&nt>0)w.y=nt;else{const X=nt*U(nt);w.y=Math.abs(X)<Math.abs(nt)?X:nt}}else if(ce==="x"&&(b.includes("left")||b.includes("right")))if(b.includes("left")&&Ht<0||b.includes("right")&&Ht>0)w.x=Ht;else{const X=Ht*U(Ht);w.x=Math.abs(X)<Math.abs(Ht)?X:Ht}(Math.abs(w.x)>0||Math.abs(w.y)>0)&&Ie(!0),(mt=Bt.current)==null||mt.style.setProperty("--swipe-amount-x",`${w.x}px`),(yt=Bt.current)==null||yt.style.setProperty("--swipe-amount-y",`${w.y}px`)}},Ta&&!p.jsx&&Ct!=="loading"?W.createElement("button",{"aria-label":F,"data-disabled":al,"data-close-button":!0,onClick:al||!Gn?()=>{}:()=>{en(),p.onDismiss==null||p.onDismiss.call(p,p)},className:Fn(O?.closeButton,p==null||(u=p.classNames)==null?void 0:u.closeButton)},(pn=k?.close)!=null?pn:W0):null,(Ct||p.icon||p.promise)&&p.icon!==null&&(k?.[Ct]!==null||p.icon)?W.createElement("div",{"data-icon":"",className:Fn(O?.icon,p==null||(c=p.classNames)==null?void 0:c.icon)},p.promise||p.type==="loading"&&!p.icon?p.icon||zn():null,p.type!=="loading"?na:null):null,W.createElement("div",{"data-content":"",className:Fn(O?.content,p==null||(f=p.classNames)==null?void 0:f.content)},W.createElement("div",{"data-title":"",className:Fn(O?.title,p==null||(h=p.classNames)==null?void 0:h.title)},p.jsx?p.jsx:typeof p.title=="function"?p.title():p.title),p.description?W.createElement("div",{"data-description":"",className:Fn(Oe,ea,O?.description,p==null||(m=p.classNames)==null?void 0:m.description)},typeof p.description=="function"?p.description():p.description):null),W.isValidElement(p.cancel)?p.cancel:p.cancel&&zs(p.cancel)?W.createElement("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||ae,onClick:ve=>{zs(p.cancel)&&Gn&&(p.cancel.onClick==null||p.cancel.onClick.call(p.cancel,ve),en())},className:Fn(O?.cancelButton,p==null||(g=p.classNames)==null?void 0:g.cancelButton)},p.cancel.label):null,W.isValidElement(p.action)?p.action:p.action&&zs(p.action)?W.createElement("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||Ee,onClick:ve=>{zs(p.action)&&(p.action.onClick==null||p.action.onClick.call(p.action,ve),!ve.defaultPrevented&&en())},className:Fn(O?.actionButton,p==null||(y=p.classNames)==null?void 0:y.actionButton)},p.action.label):null)};function cy(){if(typeof window>"u"||typeof document>"u")return"ltr";const a=document.documentElement.getAttribute("dir");return a==="auto"||!a?window.getComputedStyle(document.documentElement).direction:a}function mb(a,i){const r={};return[a,i].forEach((u,c)=>{const f=c===1,h=f?"--mobile-offset":"--offset",m=f?sb:rb;function g(y){["top","right","bottom","left"].forEach(E=>{r[`${h}-${E}`]=typeof y=="number"?`${y}px`:y})}typeof u=="number"||typeof u=="string"?g(u):typeof u=="object"?["top","right","bottom","left"].forEach(y=>{u[y]===void 0?r[`${h}-${y}`]=m:r[`${h}-${y}`]=typeof u[y]=="number"?`${u[y]}px`:u[y]}):g(m)}),r}const yb=W.forwardRef(function(i,r){const{id:u,invert:c,position:f="bottom-right",hotkey:h=["altKey","KeyT"],expand:m,closeButton:g,className:y,offset:E,mobileOffset:p,theme:R="light",richColors:D,duration:H,style:V,visibleToasts:K=ib,toastOptions:G,dir:Z=cy(),gap:P=ob,icons:ge,containerAriaLabel:pe="Notifications"}=i,[ye,A]=W.useState([]),ae=W.useMemo(()=>u?ye.filter(q=>q.toasterId===u):ye.filter(q=>!q.toasterId),[ye,u]),Ee=W.useMemo(()=>Array.from(new Set([f].concat(ae.filter(q=>q.position).map(q=>q.position)))),[ae,f]),[ze,Oe]=W.useState([]),[Ae,Ke]=W.useState(!1),[Qe,_e]=W.useState(!1),[O,k]=W.useState(R!=="system"?R:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),F=W.useRef(null),ce=h.join("+").replace(/Key/g,"").replace(/Digit/g,""),de=W.useRef(null),_=W.useRef(!1),B=W.useCallback(q=>{A(J=>{var I;return(I=J.find(ue=>ue.id===q.id))!=null&&I.delete||It.dismiss(q.id),J.filter(({id:ue})=>ue!==q.id)})},[]);return W.useEffect(()=>It.subscribe(q=>{if(q.dismiss){requestAnimationFrame(()=>{A(J=>J.map(I=>I.id===q.id?{...I,delete:!0}:I))});return}setTimeout(()=>{V0.flushSync(()=>{A(J=>{const I=J.findIndex(ue=>ue.id===q.id);return I!==-1?[...J.slice(0,I),{...J[I],...q},...J.slice(I+1)]:[q,...J]})})})}),[ye]),W.useEffect(()=>{if(R!=="system"){k(R);return}if(R==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?k("dark"):k("light")),typeof window>"u")return;const q=window.matchMedia("(prefers-color-scheme: dark)");try{q.addEventListener("change",({matches:J})=>{k(J?"dark":"light")})}catch{q.addListener(({matches:I})=>{try{k(I?"dark":"light")}catch(ue){console.error(ue)}})}},[R]),W.useEffect(()=>{ye.length<=1&&Ke(!1)},[ye]),W.useEffect(()=>{const q=J=>{var I;if(h.every(Se=>J[Se]||J.code===Se)){var we;Ke(!0),(we=F.current)==null||we.focus()}J.code==="Escape"&&(document.activeElement===F.current||(I=F.current)!=null&&I.contains(document.activeElement))&&Ke(!1)};return document.addEventListener("keydown",q),()=>document.removeEventListener("keydown",q)},[h]),W.useEffect(()=>{if(F.current)return()=>{de.current&&(de.current.focus({preventScroll:!0}),de.current=null,_.current=!1)}},[F.current]),W.createElement("section",{ref:r,"aria-label":`${pe} ${ce}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},Ee.map((q,J)=>{var I;const[ue,we]=q.split("-");return ae.length?W.createElement("ol",{key:q,dir:Z==="auto"?cy():Z,tabIndex:-1,ref:F,className:y,"data-sonner-toaster":!0,"data-sonner-theme":O,"data-y-position":ue,"data-x-position":we,style:{"--front-toast-height":`${((I=ze[0])==null?void 0:I.height)||0}px`,"--width":`${ub}px`,"--gap":`${P}px`,...V,...mb(E,p)},onBlur:Se=>{_.current&&!Se.currentTarget.contains(Se.relatedTarget)&&(_.current=!1,de.current&&(de.current.focus({preventScroll:!0}),de.current=null))},onFocus:Se=>{Se.target instanceof HTMLElement&&Se.target.dataset.dismissible==="false"||_.current||(_.current=!0,de.current=Se.relatedTarget)},onMouseEnter:()=>Ke(!0),onMouseMove:()=>Ke(!0),onMouseLeave:()=>{Qe||Ke(!1)},onDragEnd:()=>Ke(!1),onPointerDown:Se=>{Se.target instanceof HTMLElement&&Se.target.dataset.dismissible==="false"||_e(!0)},onPointerUp:()=>_e(!1)},ae.filter(Se=>!Se.position&&J===0||Se.position===q).map((Se,Ze)=>{var hn,Dn;return W.createElement(hb,{key:Se.id,icons:ge,index:Ze,toast:Se,defaultRichColors:D,duration:(hn=G?.duration)!=null?hn:H,className:G?.className,descriptionClassName:G?.descriptionClassName,invert:c,visibleToasts:K,closeButton:(Dn=G?.closeButton)!=null?Dn:g,interacting:Qe,position:q,style:G?.style,unstyled:G?.unstyled,classNames:G?.classNames,cancelButtonStyle:G?.cancelButtonStyle,actionButtonStyle:G?.actionButtonStyle,closeButtonAriaLabel:G?.closeButtonAriaLabel,removeToast:B,toasts:ae.filter(Ie=>Ie.position==Se.position),heights:ze.filter(Ie=>Ie.position==Se.position),setHeights:Oe,expandByDefault:m,gap:P,expanded:Ae,swipeDirections:i.swipeDirections})})):null}))}),pb=new Y0({defaultOptions:{queries:{staleTime:1e3*60,retry:1,refetchOnWindowFocus:!1}}}),vb="modulepreload",gb=function(a){return"/"+a},fy={},yr=function(i,r,u){let c=Promise.resolve();if(r&&r.length>0){let g=function(y){return Promise.all(y.map(E=>Promise.resolve(E).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};document.getElementsByTagName("link");const h=document.querySelector("meta[property=csp-nonce]"),m=h?.nonce||h?.getAttribute("nonce");c=g(r.map(y=>{if(y=gb(y),y in fy)return;fy[y]=!0;const E=y.endsWith(".css"),p=E?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${y}"]${p}`))return;const R=document.createElement("link");if(R.rel=E?"stylesheet":vb,E||(R.as="script"),R.crossOrigin="",R.href=y,m&&R.setAttribute("nonce",m),document.head.appendChild(R),E)return new Promise((D,H)=>{R.addEventListener("load",D),R.addEventListener("error",()=>H(new Error(`Unable to preload CSS for ${y}`)))})}))}function f(h){const m=new Event("vite:preloadError",{cancelable:!0});if(m.payload=h,window.dispatchEvent(m),!m.defaultPrevented)throw h}return c.then(h=>{for(const m of h||[])m.status==="rejected"&&f(m.reason);return i().catch(f)})};var ap=a=>{throw TypeError(a)},bb=(a,i,r)=>i.has(a)||ap("Cannot "+r),pc=(a,i,r)=>(bb(a,i,"read from private field"),r?r.call(a):i.get(a)),Sb=(a,i,r)=>i.has(a)?ap("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(a):i.set(a,r),dy="popstate";function Eb(a={}){function i(u,c){let{pathname:f,search:h,hash:m}=u.location;return dr("",{pathname:f,search:h,hash:m},c.state&&c.state.usr||null,c.state&&c.state.key||"default")}function r(u,c){return typeof c=="string"?c:Wn(c)}return Tb(i,r,null,a)}function Ce(a,i){if(a===!1||a===null||typeof a>"u")throw new Error(i)}function bt(a,i){if(!a){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function _b(){return Math.random().toString(36).substring(2,10)}function hy(a,i){return{usr:a.state,key:a.key,idx:i}}function dr(a,i,r=null,u){return{pathname:typeof a=="string"?a:a.pathname,search:"",hash:"",...typeof i=="string"?Wa(i):i,state:r,key:i&&i.key||u||_b()}}function Wn({pathname:a="/",search:i="",hash:r=""}){return i&&i!=="?"&&(a+=i.charAt(0)==="?"?i:"?"+i),r&&r!=="#"&&(a+=r.charAt(0)==="#"?r:"#"+r),a}function Wa(a){let i={};if(a){let r=a.indexOf("#");r>=0&&(i.hash=a.substring(r),a=a.substring(0,r));let u=a.indexOf("?");u>=0&&(i.search=a.substring(u),a=a.substring(0,u)),a&&(i.pathname=a)}return i}function Tb(a,i,r,u={}){let{window:c=document.defaultView,v5Compat:f=!1}=u,h=c.history,m="POP",g=null,y=E();y==null&&(y=0,h.replaceState({...h.state,idx:y},""));function E(){return(h.state||{idx:null}).idx}function p(){m="POP";let K=E(),G=K==null?null:K-y;y=K,g&&g({action:m,location:V.location,delta:G})}function R(K,G){m="PUSH";let Z=dr(V.location,K,G);y=E()+1;let P=hy(Z,y),ge=V.createHref(Z);try{h.pushState(P,"",ge)}catch(pe){if(pe instanceof DOMException&&pe.name==="DataCloneError")throw pe;c.location.assign(ge)}f&&g&&g({action:m,location:V.location,delta:1})}function D(K,G){m="REPLACE";let Z=dr(V.location,K,G);y=E();let P=hy(Z,y),ge=V.createHref(Z);h.replaceState(P,"",ge),f&&g&&g({action:m,location:V.location,delta:0})}function H(K){return lp(K)}let V={get action(){return m},get location(){return a(c,h)},listen(K){if(g)throw new Error("A history only accepts one active listener");return c.addEventListener(dy,p),g=K,()=>{c.removeEventListener(dy,p),g=null}},createHref(K){return i(c,K)},createURL:H,encodeLocation(K){let G=H(K);return{pathname:G.pathname,search:G.search,hash:G.hash}},push:R,replace:D,go(K){return h.go(K)}};return V}function lp(a,i=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),Ce(r,"No window.location.(origin|href) available to create URL");let u=typeof a=="string"?a:Wn(a);return u=u.replace(/ $/,"%20"),!i&&u.startsWith("//")&&(u=r+u),new URL(u,r)}var rr,my=class{constructor(a){if(Sb(this,rr,new Map),a)for(let[i,r]of a)this.set(i,r)}get(a){if(pc(this,rr).has(a))return pc(this,rr).get(a);if(a.defaultValue!==void 0)return a.defaultValue;throw new Error("No value found for context")}set(a,i){pc(this,rr).set(a,i)}};rr=new WeakMap;var wb=new Set(["lazy","caseSensitive","path","id","index","children"]);function Rb(a){return wb.has(a)}var xb=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function Ob(a){return xb.has(a)}function Ab(a){return a.index===!0}function hr(a,i,r=[],u={},c=!1){return a.map((f,h)=>{let m=[...r,String(h)],g=typeof f.id=="string"?f.id:m.join("-");if(Ce(f.index!==!0||!f.children,"Cannot specify children on an index route"),Ce(c||!u[g],`Found a route id collision on id "${g}". Route id's must be globally unique within Data Router usages`),Ab(f)){let y={...f,id:g};return u[g]=yy(y,i(y)),y}else{let y={...f,id:g,children:void 0};return u[g]=yy(y,i(y)),f.children&&(y.children=hr(f.children,i,m,u,c)),y}})}function yy(a,i){return Object.assign(a,{...i,...typeof i.lazy=="object"&&i.lazy!=null?{lazy:{...a.lazy,...i.lazy}}:{}})}function Za(a,i,r="/"){return sr(a,i,r,!1)}function sr(a,i,r,u){let c=typeof i=="string"?Wa(i):i,f=Cn(c.pathname||"/",r);if(f==null)return null;let h=ip(a);Db(h);let m=null;for(let g=0;m==null&&g<h.length;++g){let y=Qb(f);m=qb(h[g],y,u)}return m}function Cb(a,i){let{route:r,pathname:u,params:c}=a;return{id:r.id,pathname:u,params:c,data:i[r.id],loaderData:i[r.id],handle:r.handle}}function ip(a,i=[],r=[],u="",c=!1){let f=(h,m,g=c,y)=>{let E={relativePath:y===void 0?h.path||"":y,caseSensitive:h.caseSensitive===!0,childrenIndex:m,route:h};if(E.relativePath.startsWith("/")){if(!E.relativePath.startsWith(u)&&g)return;Ce(E.relativePath.startsWith(u),`Absolute route path "${E.relativePath}" nested under path "${u}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),E.relativePath=E.relativePath.slice(u.length)}let p=$n([u,E.relativePath]),R=r.concat(E);h.children&&h.children.length>0&&(Ce(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),ip(h.children,i,R,p,g)),!(h.path==null&&!h.index)&&i.push({path:p,score:Hb(p,h.index),routesMeta:R})};return a.forEach((h,m)=>{if(h.path===""||!h.path?.includes("?"))f(h,m);else for(let g of rp(h.path))f(h,m,!0,g)}),i}function rp(a){let i=a.split("/");if(i.length===0)return[];let[r,...u]=i,c=r.endsWith("?"),f=r.replace(/\?$/,"");if(u.length===0)return c?[f,""]:[f];let h=rp(u.join("/")),m=[];return m.push(...h.map(g=>g===""?f:[f,g].join("/"))),c&&m.push(...h),m.map(g=>a.startsWith("/")&&g===""?"/":g)}function Db(a){a.sort((i,r)=>i.score!==r.score?r.score-i.score:jb(i.routesMeta.map(u=>u.childrenIndex),r.routesMeta.map(u=>u.childrenIndex)))}var Mb=/^:[\w-]+$/,zb=3,Nb=2,Ub=1,Lb=10,Bb=-2,py=a=>a==="*";function Hb(a,i){let r=a.split("/"),u=r.length;return r.some(py)&&(u+=Bb),i&&(u+=Nb),r.filter(c=>!py(c)).reduce((c,f)=>c+(Mb.test(f)?zb:f===""?Ub:Lb),u)}function jb(a,i){return a.length===i.length&&a.slice(0,-1).every((u,c)=>u===i[c])?a[a.length-1]-i[i.length-1]:0}function qb(a,i,r=!1){let{routesMeta:u}=a,c={},f="/",h=[];for(let m=0;m<u.length;++m){let g=u[m],y=m===u.length-1,E=f==="/"?i:i.slice(f.length)||"/",p=Js({path:g.relativePath,caseSensitive:g.caseSensitive,end:y},E),R=g.route;if(!p&&y&&r&&!u[u.length-1].route.index&&(p=Js({path:g.relativePath,caseSensitive:g.caseSensitive,end:!1},E)),!p)return null;Object.assign(c,p.params),h.push({params:c,pathname:$n([f,p.pathname]),pathnameBase:Xb($n([f,p.pathnameBase])),route:R}),p.pathnameBase!=="/"&&(f=$n([f,p.pathnameBase]))}return h}function Js(a,i){typeof a=="string"&&(a={path:a,caseSensitive:!1,end:!0});let[r,u]=Yb(a.path,a.caseSensitive,a.end),c=i.match(r);if(!c)return null;let f=c[0],h=f.replace(/(.)\/+$/,"$1"),m=c.slice(1);return{params:u.reduce((y,{paramName:E,isOptional:p},R)=>{if(E==="*"){let H=m[R]||"";h=f.slice(0,f.length-H.length).replace(/(.)\/+$/,"$1")}const D=m[R];return p&&!D?y[E]=void 0:y[E]=(D||"").replace(/%2F/g,"/"),y},{}),pathname:f,pathnameBase:h,pattern:a}}function Yb(a,i=!1,r=!0){bt(a==="*"||!a.endsWith("*")||a.endsWith("/*"),`Route path "${a}" will be treated as if it were "${a.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${a.replace(/\*$/,"/*")}".`);let u=[],c="^"+a.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,m,g)=>(u.push({paramName:m,isOptional:g!=null}),g?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return a.endsWith("*")?(u.push({paramName:"*"}),c+=a==="*"||a==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?c+="\\/*$":a!==""&&a!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,i?void 0:"i"),u]}function Qb(a){try{return a.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return bt(!1,`The URL path "${a}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),a}}function Cn(a,i){if(i==="/")return a;if(!a.toLowerCase().startsWith(i.toLowerCase()))return null;let r=i.endsWith("/")?i.length-1:i.length,u=a.charAt(r);return u&&u!=="/"?null:a.slice(r)||"/"}function Vb({basename:a,pathname:i}){return i==="/"?a:$n([a,i])}var sp=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Gc=a=>sp.test(a);function Gb(a,i="/"){let{pathname:r,search:u="",hash:c=""}=typeof a=="string"?Wa(a):a,f;return r?(r=r.replace(/\/\/+/g,"/"),r.startsWith("/")?f=vy(r.substring(1),"/"):f=vy(r,i)):f=i,{pathname:f,search:kb(u),hash:Kb(c)}}function vy(a,i){let r=i.replace(/\/+$/,"").split("/");return a.split("/").forEach(c=>{c===".."?r.length>1&&r.pop():c!=="."&&r.push(c)}),r.length>1?r.join("/"):"/"}function vc(a,i,r,u){return`Cannot include a '${a}' character in a manually specified \`to.${i}\` field [${JSON.stringify(u)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function up(a){return a.filter((i,r)=>r===0||i.route.path&&i.route.path.length>0)}function Ws(a){let i=up(a);return i.map((r,u)=>u===i.length-1?r.pathname:r.pathnameBase)}function Ps(a,i,r,u=!1){let c;typeof a=="string"?c=Wa(a):(c={...a},Ce(!c.pathname||!c.pathname.includes("?"),vc("?","pathname","search",c)),Ce(!c.pathname||!c.pathname.includes("#"),vc("#","pathname","hash",c)),Ce(!c.search||!c.search.includes("#"),vc("#","search","hash",c)));let f=a===""||c.pathname==="",h=f?"/":c.pathname,m;if(h==null)m=r;else{let p=i.length-1;if(!u&&h.startsWith("..")){let R=h.split("/");for(;R[0]==="..";)R.shift(),p-=1;c.pathname=R.join("/")}m=p>=0?i[p]:"/"}let g=Gb(c,m),y=h&&h!=="/"&&h.endsWith("/"),E=(f||h===".")&&r.endsWith("/");return!g.pathname.endsWith("/")&&(y||E)&&(g.pathname+="/"),g}var $n=a=>a.join("/").replace(/\/\/+/g,"/"),Xb=a=>a.replace(/\/+$/,"").replace(/^\/*/,"/"),kb=a=>!a||a==="?"?"":a.startsWith("?")?a:"?"+a,Kb=a=>!a||a==="#"?"":a.startsWith("#")?a:"#"+a,pr=class{constructor(a,i,r,u=!1){this.status=a,this.statusText=i||"",this.internal=u,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function mr(a){return a!=null&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.internal=="boolean"&&"data"in a}function vr(a){return a.map(i=>i.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var op=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function cp(a,i){let r=a;if(typeof r!="string"||!sp.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let u=r,c=!1;if(op)try{let f=new URL(window.location.href),h=r.startsWith("//")?new URL(f.protocol+r):new URL(r),m=Cn(h.pathname,i);h.origin===f.origin&&m!=null?r=m+h.search+h.hash:c=!0}catch{bt(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:u,isExternal:c,to:r}}var Fa=Symbol("Uninstrumented");function Zb(a,i){let r={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};a.forEach(c=>c({id:i.id,index:i.index,path:i.path,instrument(f){let h=Object.keys(r);for(let m of h)f[m]&&r[m].push(f[m])}}));let u={};if(typeof i.lazy=="function"&&r.lazy.length>0){let c=si(r.lazy,i.lazy,()=>{});c&&(u.lazy=c)}if(typeof i.lazy=="object"){let c=i.lazy;["middleware","loader","action"].forEach(f=>{let h=c[f],m=r[`lazy.${f}`];if(typeof h=="function"&&m.length>0){let g=si(m,h,()=>{});g&&(u.lazy=Object.assign(u.lazy||{},{[f]:g}))}})}return["loader","action"].forEach(c=>{let f=i[c];if(typeof f=="function"&&r[c].length>0){let h=f[Fa]??f,m=si(r[c],h,(...g)=>gy(g[0]));m&&(c==="loader"&&h.hydrate===!0&&(m.hydrate=!0),m[Fa]=h,u[c]=m)}}),i.middleware&&i.middleware.length>0&&r.middleware.length>0&&(u.middleware=i.middleware.map(c=>{let f=c[Fa]??c,h=si(r.middleware,f,(...m)=>gy(m[0]));return h?(h[Fa]=f,h):c})),u}function Jb(a,i){let r={navigate:[],fetch:[]};if(i.forEach(u=>u({instrument(c){let f=Object.keys(c);for(let h of f)c[h]&&r[h].push(c[h])}})),r.navigate.length>0){let u=a.navigate[Fa]??a.navigate,c=si(r.navigate,u,(...f)=>{let[h,m]=f;return{to:typeof h=="number"||typeof h=="string"?h:h?Wn(h):".",...by(a,m??{})}});c&&(c[Fa]=u,a.navigate=c)}if(r.fetch.length>0){let u=a.fetch[Fa]??a.fetch,c=si(r.fetch,u,(...f)=>{let[h,,m,g]=f;return{href:m??".",fetcherKey:h,...by(a,g??{})}});c&&(c[Fa]=u,a.fetch=c)}return a}function si(a,i,r){return a.length===0?null:async(...u)=>{let c=await fp(a,r(...u),()=>i(...u),a.length-1);if(c.type==="error")throw c.value;return c.value}}async function fp(a,i,r,u){let c=a[u],f;if(c){let h,m=async()=>(h?console.error("You cannot call instrumented handlers more than once"):h=fp(a,i,r,u-1),f=await h,Ce(f,"Expected a result"),f.type==="error"&&f.value instanceof Error?{status:"error",error:f.value}:{status:"success",error:void 0});try{await c(m,i)}catch(g){console.error("An instrumentation function threw an error:",g)}h||await m(),await h}else try{f={type:"success",value:await r()}}catch(h){f={type:"error",value:h}}return f||{type:"error",value:new Error("No result assigned in instrumentation chain.")}}function gy(a){let{request:i,context:r,params:u,unstable_pattern:c}=a;return{request:Fb(i),params:{...u},unstable_pattern:c,context:$b(r)}}function by(a,i){return{currentUrl:Wn(a.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 Fb(a){return{method:a.method,url:a.url,headers:{get:(...i)=>a.headers.get(...i)}}}function $b(a){if(Pb(a)){let i={...a};return Object.freeze(i),i}else return{get:i=>a.get(i)}}var Wb=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Pb(a){if(a===null||typeof a!="object")return!1;const i=Object.getPrototypeOf(a);return i===Object.prototype||i===null||Object.getOwnPropertyNames(i).sort().join("\0")===Wb}var dp=["POST","PUT","PATCH","DELETE"],Ib=new Set(dp),e1=["GET",...dp],t1=new Set(e1),hp=new Set([301,302,303,307,308]),n1=new Set([307,308]),gc={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},a1={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},nr={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},l1=a=>({hasErrorBoundary:!!a.hasErrorBoundary}),mp="remix-router-transitions",yp=Symbol("ResetLoaderData");function i1(a){const i=a.window?a.window:typeof window<"u"?window:void 0,r=typeof i<"u"&&typeof i.document<"u"&&typeof i.document.createElement<"u";Ce(a.routes.length>0,"You must provide a non-empty routes array to createRouter");let u=a.hydrationRouteProperties||[],c=a.mapRouteProperties||l1,f=c;if(a.unstable_instrumentations){let b=a.unstable_instrumentations;f=w=>({...c(w),...Zb(b.map(U=>U.route).filter(Boolean),w)})}let h={},m=hr(a.routes,f,void 0,h),g,y=a.basename||"/";y.startsWith("/")||(y=`/${y}`);let E=a.dataStrategy||c1,p={...a.future},R=null,D=new Set,H=null,V=null,K=null,G=a.hydrationData!=null,Z=Za(m,a.history.location,y),P=!1,ge=null,pe;if(Z==null&&!a.patchRoutesOnNavigation){let b=On(404,{pathname:a.history.location.pathname}),{matches:w,route:U}=Ns(m);pe=!0,Z=w,ge={[U.id]:b}}else if(Z&&!a.hydrationData&&yt(Z,m,a.history.location.pathname).active&&(Z=null),Z)if(Z.some(b=>b.route.lazy))pe=!1;else if(!Z.some(b=>Xc(b.route)))pe=!0;else{let b=a.hydrationData?a.hydrationData.loaderData:null,w=a.hydrationData?a.hydrationData.errors:null;if(w){let U=Z.findIndex(X=>w[X.route.id]!==void 0);pe=Z.slice(0,U+1).every(X=>!Mc(X.route,b,w))}else pe=Z.every(U=>!Mc(U.route,b,w))}else{pe=!1,Z=[];let b=yt(null,m,a.history.location.pathname);b.active&&b.matches&&(P=!0,Z=b.matches)}let ye,A={historyAction:a.history.action,location:a.history.location,matches:Z,initialized:pe,navigation:gc,restoreScrollPosition:a.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:a.hydrationData&&a.hydrationData.loaderData||{},actionData:a.hydrationData&&a.hydrationData.actionData||null,errors:a.hydrationData&&a.hydrationData.errors||ge,fetchers:new Map,blockers:new Map},ae="POP",Ee=null,ze=!1,Oe,Ae=!1,Ke=new Map,Qe=null,_e=!1,O=!1,k=new Set,F=new Map,ce=0,de=-1,_=new Map,B=new Set,q=new Map,J=new Map,I=new Set,ue=new Map,we,Se=null;function Ze(){if(R=a.history.listen(({action:b,location:w,delta:U})=>{if(we){we(),we=void 0;return}bt(ue.size===0||U!=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 X=na({currentLocation:A.location,nextLocation:w,historyAction:b});if(X&&U!=null){let $=new Promise(se=>{we=se});a.history.go(U*-1),zn(X,{state:"blocked",location:w,proceed(){zn(X,{state:"proceeding",proceed:void 0,reset:void 0,location:w}),$.then(()=>a.history.go(U))},reset(){let se=new Map(A.blockers);se.set(X,nr),Ie({blockers:se})}}),Ee?.resolve(),Ee=null;return}return Xt(b,w)}),r){A1(i,Ke);let b=()=>C1(i,Ke);i.addEventListener("pagehide",b),Qe=()=>i.removeEventListener("pagehide",b)}return A.initialized||Xt("POP",A.location,{initialHydration:!0}),ye}function hn(){R&&R(),Qe&&Qe(),D.clear(),Oe&&Oe.abort(),A.fetchers.forEach((b,w)=>yn(w)),A.blockers.forEach((b,w)=>en(w))}function Dn(b){return D.add(b),()=>D.delete(b)}function Ie(b,w={}){b.matches&&(b.matches=b.matches.map($=>{let se=h[$.route.id],te=$.route;return te.element!==se.element||te.errorElement!==se.errorElement||te.hydrateFallbackElement!==se.hydrateFallbackElement?{...$,route:se}:$})),A={...A,...b};let U=[],X=[];A.fetchers.forEach(($,se)=>{$.state==="idle"&&(I.has(se)?U.push(se):X.push(se))}),I.forEach($=>{!A.fetchers.has($)&&!F.has($)&&U.push($)}),[...D].forEach($=>$(A,{deletedFetchers:U,newErrors:b.errors??null,viewTransitionOpts:w.viewTransitionOpts,flushSync:w.flushSync===!0})),U.forEach($=>yn($)),X.forEach($=>A.fetchers.delete($))}function Mn(b,w,{flushSync:U}={}){let X=A.actionData!=null&&A.navigation.formMethod!=null&&qt(A.navigation.formMethod)&&A.navigation.state==="loading"&&b.state?._isRedirect!==!0,$;w.actionData?Object.keys(w.actionData).length>0?$=w.actionData:$=null:X?$=A.actionData:$=null;let se=w.loaderData?Cy(A.loaderData,w.loaderData,w.matches||[],w.errors):A.loaderData,te=A.blockers;te.size>0&&(te=new Map(te),te.forEach((he,oe)=>te.set(oe,nr)));let ee=_e?!1:mt(b,w.matches||A.matches),ne=ze===!0||A.navigation.formMethod!=null&&qt(A.navigation.formMethod)&&b.state?._isRedirect!==!0;g&&(m=g,g=void 0),_e||ae==="POP"||(ae==="PUSH"?a.history.push(b,b.state):ae==="REPLACE"&&a.history.replace(b,b.state));let re;if(ae==="POP"){let he=Ke.get(A.location.pathname);he&&he.has(b.pathname)?re={currentLocation:A.location,nextLocation:b}:Ke.has(b.pathname)&&(re={currentLocation:b,nextLocation:A.location})}else if(Ae){let he=Ke.get(A.location.pathname);he?he.add(b.pathname):(he=new Set([b.pathname]),Ke.set(A.location.pathname,he)),re={currentLocation:A.location,nextLocation:b}}Ie({...w,actionData:$,loaderData:se,historyAction:ae,location:b,initialized:!0,navigation:gc,revalidation:"idle",restoreScrollPosition:ee,preventScrollReset:ne,blockers:te},{viewTransitionOpts:re,flushSync:U===!0}),ae="POP",ze=!1,Ae=!1,_e=!1,O=!1,Ee?.resolve(),Ee=null,Se?.resolve(),Se=null}async function Gt(b,w){if(Ee?.resolve(),Ee=null,typeof b=="number"){Ee||(Ee=Ny());let Le=Ee.promise;return a.history.go(b),Le}let U=Dc(A.location,A.matches,y,b,w?.fromRouteId,w?.relative),{path:X,submission:$,error:se}=Sy(!1,U,w),te=A.location,ee=dr(A.location,X,w&&w.state);ee={...ee,...a.history.encodeLocation(ee)};let ne=w&&w.replace!=null?w.replace:void 0,re="PUSH";ne===!0?re="REPLACE":ne===!1||$!=null&&qt($.formMethod)&&$.formAction===A.location.pathname+A.location.search&&(re="REPLACE");let he=w&&"preventScrollReset"in w?w.preventScrollReset===!0:void 0,oe=(w&&w.flushSync)===!0,Ve=na({currentLocation:te,nextLocation:ee,historyAction:re});if(Ve){zn(Ve,{state:"blocked",location:ee,proceed(){zn(Ve,{state:"proceeding",proceed:void 0,reset:void 0,location:ee}),Gt(b,w)},reset(){let Le=new Map(A.blockers);Le.set(Ve,nr),Ie({blockers:Le})}});return}await Xt(re,ee,{submission:$,pendingError:se,preventScrollReset:he,replace:w&&w.replace,enableViewTransition:w&&w.viewTransition,flushSync:oe,callSiteDefaultShouldRevalidate:w&&w.unstable_defaultShouldRevalidate})}function Ia(){Se||(Se=Ny()),Ta(),Ie({revalidation:"loading"});let b=Se.promise;return A.navigation.state==="submitting"?b:A.navigation.state==="idle"?(Xt(A.historyAction,A.location,{startUninterruptedRevalidation:!0}),b):(Xt(ae||A.historyAction,A.navigation.location,{overrideNavigation:A.navigation,enableViewTransition:Ae===!0}),b)}async function Xt(b,w,U){Oe&&Oe.abort(),Oe=null,ae=b,_e=(U&&U.startUninterruptedRevalidation)===!0,tt(A.location,A.matches),ze=(U&&U.preventScrollReset)===!0,Ae=(U&&U.enableViewTransition)===!0;let X=g||m,$=U&&U.overrideNavigation,se=U?.initialHydration&&A.matches&&A.matches.length>0&&!P?A.matches:Za(X,w,y),te=(U&&U.flushSync)===!0;if(se&&A.initialized&&!O&&g1(A.location,w)&&!(U&&U.submission&&qt(U.submission.formMethod))){Mn(w,{matches:se},{flushSync:te});return}let ee=yt(se,X,w.pathname);if(ee.active&&ee.matches&&(se=ee.matches),!se){let{error:ct,notFoundMatches:ft,route:Be}=Nn(w.pathname);Mn(w,{matches:ft,loaderData:{},errors:{[Be.id]:ct}},{flushSync:te});return}Oe=new AbortController;let ne=ri(a.history,w,Oe.signal,U&&U.submission),re=a.getContext?await a.getContext():new my,he;if(U&&U.pendingError)he=[Ja(se).route.id,{type:"error",error:U.pendingError}];else if(U&&U.submission&&qt(U.submission.formMethod)){let ct=await In(ne,w,U.submission,se,re,ee.active,U&&U.initialHydration===!0,{replace:U.replace,flushSync:te});if(ct.shortCircuited)return;if(ct.pendingActionResult){let[ft,Be]=ct.pendingActionResult;if(fn(Be)&&mr(Be.error)&&Be.error.status===404){Oe=null,Mn(w,{matches:ct.matches,loaderData:{},errors:{[ft]:Be.error}});return}}se=ct.matches||se,he=ct.pendingActionResult,$=bc(w,U.submission),te=!1,ee.active=!1,ne=ri(a.history,ne.url,ne.signal)}let{shortCircuited:oe,matches:Ve,loaderData:Le,errors:ot}=await el(ne,w,se,re,ee.active,$,U&&U.submission,U&&U.fetcherSubmission,U&&U.replace,U&&U.initialHydration===!0,te,he,U&&U.callSiteDefaultShouldRevalidate);oe||(Oe=null,Mn(w,{matches:Ve||se,...Dy(he),loaderData:Le,errors:ot}))}async function In(b,w,U,X,$,se,te,ee={}){Ta();let ne=x1(w,U);if(Ie({navigation:ne},{flushSync:ee.flushSync===!0}),se){let oe=await tn(X,w.pathname,b.signal);if(oe.type==="aborted")return{shortCircuited:!0};if(oe.type==="error"){if(oe.partialMatches.length===0){let{matches:Le,route:ot}=Ns(m);return{matches:Le,pendingActionResult:[ot.id,{type:"error",error:oe.error}]}}let Ve=Ja(oe.partialMatches).route.id;return{matches:oe.partialMatches,pendingActionResult:[Ve,{type:"error",error:oe.error}]}}else if(oe.matches)X=oe.matches;else{let{notFoundMatches:Ve,error:Le,route:ot}=Nn(w.pathname);return{matches:Ve,pendingActionResult:[ot.id,{type:"error",error:Le}]}}}let re,he=qs(X,w);if(!he.route.action&&!he.route.lazy)re={type:"error",error:On(405,{method:b.method,pathname:w.pathname,routeId:he.route.id})};else{let oe=ui(f,h,b,X,he,te?[]:u,$),Ve=await ea(b,oe,$,null);if(re=Ve[he.route.id],!re){for(let Le of X)if(Ve[Le.route.id]){re=Ve[Le.route.id];break}}if(b.signal.aborted)return{shortCircuited:!0}}if(Tl(re)){let oe;return ee&&ee.replace!=null?oe=ee.replace:oe=xy(re.response.headers.get("Location"),new URL(b.url),y,a.history)===A.location.pathname+A.location.search,await ut(b,re,!0,{submission:U,replace:oe}),{shortCircuited:!0}}if(fn(re)){let oe=Ja(X,he.route.id);return(ee&&ee.replace)!==!0&&(ae="PUSH"),{matches:X,pendingActionResult:[oe.route.id,re,he.route.id]}}return{matches:X,pendingActionResult:[he.route.id,re]}}async function el(b,w,U,X,$,se,te,ee,ne,re,he,oe,Ve){let Le=se||bc(w,te),ot=te||ee||zy(Le),ct=!_e&&!re;if($){if(ct){let pt=Bt(oe);Ie({navigation:Le,...pt!==void 0?{actionData:pt}:{}},{flushSync:he})}let He=await tn(U,w.pathname,b.signal);if(He.type==="aborted")return{shortCircuited:!0};if(He.type==="error"){if(He.partialMatches.length===0){let{matches:Bn,route:Mt}=Ns(m);return{matches:Bn,loaderData:{},errors:{[Mt.id]:He.error}}}let pt=Ja(He.partialMatches).route.id;return{matches:He.partialMatches,loaderData:{},errors:{[pt]:He.error}}}else if(He.matches)U=He.matches;else{let{error:pt,notFoundMatches:Bn,route:Mt}=Nn(w.pathname);return{matches:Bn,loaderData:{},errors:{[Mt.id]:pt}}}}let ft=g||m,{dsMatches:Be,revalidatingFetchers:Ot}=Ey(b,X,f,h,a.history,A,U,ot,w,re?[]:u,re===!0,O,k,I,q,B,ft,y,a.patchRoutesOnNavigation!=null,oe,Ve);if(de=++ce,!a.dataStrategy&&!Be.some(He=>He.shouldLoad)&&!Be.some(He=>He.route.middleware&&He.route.middleware.length>0)&&Ot.length===0){let He=Rt();return Mn(w,{matches:U,loaderData:{},errors:oe&&fn(oe[1])?{[oe[0]]:oe[1].error}:null,...Dy(oe),...He?{fetchers:new Map(A.fetchers)}:{}},{flushSync:he}),{shortCircuited:!0}}if(ct){let He={};if(!$){He.navigation=Le;let pt=Bt(oe);pt!==void 0&&(He.actionData=pt)}Ot.length>0&&(He.fetchers=tl(Ot)),Ie(He,{flushSync:he})}Ot.forEach(He=>{at(He.key),He.controller&&F.set(He.key,He.controller)});let Kt=()=>Ot.forEach(He=>at(He.key));Oe&&Oe.signal.addEventListener("abort",Kt);let{loaderResults:rt,fetcherResults:Un}=await Xn(Be,Ot,b,X);if(b.signal.aborted)return{shortCircuited:!0};Oe&&Oe.signal.removeEventListener("abort",Kt),Ot.forEach(He=>F.delete(He.key));let nn=Us(rt);if(nn)return await ut(b,nn.result,!0,{replace:ne}),{shortCircuited:!0};if(nn=Us(Un),nn)return B.add(nn.key),await ut(b,nn.result,!0,{replace:ne}),{shortCircuited:!0};let{loaderData:Ln,errors:vn}=Ay(A,U,rt,oe,Ot,Un);re&&A.errors&&(vn={...A.errors,...vn});let la=Rt(),ll=xl(de),il=la||ll||Ot.length>0;return{matches:U,loaderData:Ln,errors:vn,...il?{fetchers:new Map(A.fetchers)}:{}}}function Bt(b){if(b&&!fn(b[1]))return{[b[0]]:b[1].data};if(A.actionData)return Object.keys(A.actionData).length===0?null:A.actionData}function tl(b){return b.forEach(w=>{let U=A.fetchers.get(w.key),X=ar(void 0,U?U.data:void 0);A.fetchers.set(w.key,X)}),new Map(A.fetchers)}async function nl(b,w,U,X){at(b);let $=(X&&X.flushSync)===!0,se=g||m,te=Dc(A.location,A.matches,y,U,w,X?.relative),ee=Za(se,te,y),ne=yt(ee,se,te);if(ne.active&&ne.matches&&(ee=ne.matches),!ee){Yt(b,w,On(404,{pathname:te}),{flushSync:$});return}let{path:re,submission:he,error:oe}=Sy(!0,te,X);if(oe){Yt(b,w,oe,{flushSync:$});return}let Ve=a.getContext?await a.getContext():new my,Le=(X&&X.preventScrollReset)===!0;if(he&&qt(he.formMethod)){await Ct(b,w,re,ee,Ve,ne.active,$,Le,he,X&&X.unstable_defaultShouldRevalidate);return}q.set(b,{routeId:w,path:re}),await Gn(b,w,re,ee,Ve,ne.active,$,Le,he)}async function Ct(b,w,U,X,$,se,te,ee,ne,re){Ta(),q.delete(b);let he=A.fetchers.get(b);Dt(b,O1(ne,he),{flushSync:te});let oe=new AbortController,Ve=ri(a.history,U,oe.signal,ne);if(se){let je=await tn(X,new URL(Ve.url).pathname,Ve.signal,b);if(je.type==="aborted")return;if(je.type==="error"){Yt(b,w,je.error,{flushSync:te});return}else if(je.matches)X=je.matches;else{Yt(b,w,On(404,{pathname:U}),{flushSync:te});return}}let Le=qs(X,U);if(!Le.route.action&&!Le.route.lazy){let je=On(405,{method:ne.formMethod,pathname:U,routeId:w});Yt(b,w,je,{flushSync:te});return}F.set(b,oe);let ot=ce,ct=ui(f,h,Ve,X,Le,u,$),ft=await ea(Ve,ct,$,b),Be=ft[Le.route.id];if(!Be){for(let je of ct)if(ft[je.route.id]){Be=ft[je.route.id];break}}if(Ve.signal.aborted){F.get(b)===oe&&F.delete(b);return}if(I.has(b)){if(Tl(Be)||fn(Be)){Dt(b,_a(void 0));return}}else{if(Tl(Be))if(F.delete(b),de>ot){Dt(b,_a(void 0));return}else return B.add(b),Dt(b,ar(ne)),ut(Ve,Be,!1,{fetcherSubmission:ne,preventScrollReset:ee});if(fn(Be)){Yt(b,w,Be.error);return}}let Ot=A.navigation.location||A.location,Kt=ri(a.history,Ot,oe.signal),rt=g||m,Un=A.navigation.state!=="idle"?Za(rt,A.navigation.location,y):A.matches;Ce(Un,"Didn't find any matches after fetcher action");let nn=++ce;_.set(b,nn);let Ln=ar(ne,Be.data);A.fetchers.set(b,Ln);let{dsMatches:vn,revalidatingFetchers:la}=Ey(Kt,$,f,h,a.history,A,Un,ne,Ot,u,!1,O,k,I,q,B,rt,y,a.patchRoutesOnNavigation!=null,[Le.route.id,Be],re);la.filter(je=>je.key!==b).forEach(je=>{let rl=je.key,Sr=A.fetchers.get(rl),di=ar(void 0,Sr?Sr.data:void 0);A.fetchers.set(rl,di),at(rl),je.controller&&F.set(rl,je.controller)}),Ie({fetchers:new Map(A.fetchers)});let ll=()=>la.forEach(je=>at(je.key));oe.signal.addEventListener("abort",ll);let{loaderResults:il,fetcherResults:He}=await Xn(vn,la,Kt,$);if(oe.signal.aborted)return;if(oe.signal.removeEventListener("abort",ll),_.delete(b),F.delete(b),la.forEach(je=>F.delete(je.key)),A.fetchers.has(b)){let je=_a(Be.data);A.fetchers.set(b,je)}let pt=Us(il);if(pt)return ut(Kt,pt.result,!1,{preventScrollReset:ee});if(pt=Us(He),pt)return B.add(pt.key),ut(Kt,pt.result,!1,{preventScrollReset:ee});let{loaderData:Bn,errors:Mt}=Ay(A,Un,il,void 0,la,He);xl(nn),A.navigation.state==="loading"&&nn>de?(Ce(ae,"Expected pending action"),Oe&&Oe.abort(),Mn(A.navigation.location,{matches:Un,loaderData:Bn,errors:Mt,fetchers:new Map(A.fetchers)})):(Ie({errors:Mt,loaderData:Cy(A.loaderData,Bn,Un,Mt),fetchers:new Map(A.fetchers)}),O=!1)}async function Gn(b,w,U,X,$,se,te,ee,ne){let re=A.fetchers.get(b);Dt(b,ar(ne,re?re.data:void 0),{flushSync:te});let he=new AbortController,oe=ri(a.history,U,he.signal);if(se){let Be=await tn(X,new URL(oe.url).pathname,oe.signal,b);if(Be.type==="aborted")return;if(Be.type==="error"){Yt(b,w,Be.error,{flushSync:te});return}else if(Be.matches)X=Be.matches;else{Yt(b,w,On(404,{pathname:U}),{flushSync:te});return}}let Ve=qs(X,U);F.set(b,he);let Le=ce,ot=ui(f,h,oe,X,Ve,u,$),ft=(await ea(oe,ot,$,b))[Ve.route.id];if(F.get(b)===he&&F.delete(b),!oe.signal.aborted){if(I.has(b)){Dt(b,_a(void 0));return}if(Tl(ft))if(de>Le){Dt(b,_a(void 0));return}else{B.add(b),await ut(oe,ft,!1,{preventScrollReset:ee});return}if(fn(ft)){Yt(b,w,ft.error);return}Dt(b,_a(ft.data))}}async function ut(b,w,U,{submission:X,fetcherSubmission:$,preventScrollReset:se,replace:te}={}){U||(Ee?.resolve(),Ee=null),w.response.headers.has("X-Remix-Revalidate")&&(O=!0);let ee=w.response.headers.get("Location");Ce(ee,"Expected a Location header on the redirect Response"),ee=xy(ee,new URL(b.url),y,a.history);let ne=dr(A.location,ee,{_isRedirect:!0});if(r){let ot=!1;if(w.response.headers.has("X-Remix-Reload-Document"))ot=!0;else if(Gc(ee)){const ct=lp(ee,!0);ot=ct.origin!==i.location.origin||Cn(ct.pathname,y)==null}if(ot){te?i.location.replace(ee):i.location.assign(ee);return}}Oe=null;let re=te===!0||w.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:he,formAction:oe,formEncType:Ve}=A.navigation;!X&&!$&&he&&oe&&Ve&&(X=zy(A.navigation));let Le=X||$;if(n1.has(w.response.status)&&Le&&qt(Le.formMethod))await Xt(re,ne,{submission:{...Le,formAction:ee},preventScrollReset:se||ze,enableViewTransition:U?Ae:void 0});else{let ot=bc(ne,X);await Xt(re,ne,{overrideNavigation:ot,fetcherSubmission:$,preventScrollReset:se||ze,enableViewTransition:U?Ae:void 0})}}async function ea(b,w,U,X){let $,se={};try{$=await d1(E,b,w,X,U,!1)}catch(te){return w.filter(ee=>ee.shouldLoad).forEach(ee=>{se[ee.route.id]={type:"error",error:te}}),se}if(b.signal.aborted)return se;if(!qt(b.method))for(let te of w){if($[te.route.id]?.type==="error")break;!$.hasOwnProperty(te.route.id)&&!A.loaderData.hasOwnProperty(te.route.id)&&(!A.errors||!A.errors.hasOwnProperty(te.route.id))&&te.shouldCallHandler()&&($[te.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${te.route.id}`)})}for(let[te,ee]of Object.entries($))if(_1(ee)){let ne=ee.result;se[te]={type:"redirect",response:p1(ne,b,te,w,y)}}else se[te]=await y1(ee);return se}async function Xn(b,w,U,X){let $=ea(U,b,X,null),se=Promise.all(w.map(async ne=>{if(ne.matches&&ne.match&&ne.request&&ne.controller){let he=(await ea(ne.request,ne.matches,X,ne.key))[ne.match.route.id];return{[ne.key]:he}}else return Promise.resolve({[ne.key]:{type:"error",error:On(404,{pathname:ne.path})}})})),te=await $,ee=(await se).reduce((ne,re)=>Object.assign(ne,re),{});return{loaderResults:te,fetcherResults:ee}}function Ta(){O=!0,q.forEach((b,w)=>{F.has(w)&&k.add(w),at(w)})}function Dt(b,w,U={}){A.fetchers.set(b,w),Ie({fetchers:new Map(A.fetchers)},{flushSync:(U&&U.flushSync)===!0})}function Yt(b,w,U,X={}){let $=Ja(A.matches,w);yn(b),Ie({errors:{[$.route.id]:U},fetchers:new Map(A.fetchers)},{flushSync:(X&&X.flushSync)===!0})}function mn(b){return J.set(b,(J.get(b)||0)+1),I.has(b)&&I.delete(b),A.fetchers.get(b)||a1}function Rl(b,w){at(b,w?.reason),Dt(b,_a(null))}function yn(b){let w=A.fetchers.get(b);F.has(b)&&!(w&&w.state==="loading"&&_.has(b))&&at(b),q.delete(b),_.delete(b),B.delete(b),I.delete(b),k.delete(b),A.fetchers.delete(b)}function ta(b){let w=(J.get(b)||0)-1;w<=0?(J.delete(b),I.add(b)):J.set(b,w),Ie({fetchers:new Map(A.fetchers)})}function at(b,w){let U=F.get(b);U&&(U.abort(w),F.delete(b))}function kt(b){for(let w of b){let U=mn(w),X=_a(U.data);A.fetchers.set(w,X)}}function Rt(){let b=[],w=!1;for(let U of B){let X=A.fetchers.get(U);Ce(X,`Expected fetcher: ${U}`),X.state==="loading"&&(B.delete(U),b.push(U),w=!0)}return kt(b),w}function xl(b){let w=[];for(let[U,X]of _)if(X<b){let $=A.fetchers.get(U);Ce($,`Expected fetcher: ${U}`),$.state==="loading"&&(at(U),_.delete(U),w.push(U))}return kt(w),w.length>0}function al(b,w){let U=A.blockers.get(b)||nr;return ue.get(b)!==w&&ue.set(b,w),U}function en(b){A.blockers.delete(b),ue.delete(b)}function zn(b,w){let U=A.blockers.get(b)||nr;Ce(U.state==="unblocked"&&w.state==="blocked"||U.state==="blocked"&&w.state==="blocked"||U.state==="blocked"&&w.state==="proceeding"||U.state==="blocked"&&w.state==="unblocked"||U.state==="proceeding"&&w.state==="unblocked",`Invalid blocker state transition: ${U.state} -> ${w.state}`);let X=new Map(A.blockers);X.set(b,w),Ie({blockers:X})}function na({currentLocation:b,nextLocation:w,historyAction:U}){if(ue.size===0)return;ue.size>1&&bt(!1,"A router only supports one blocker at a time");let X=Array.from(ue.entries()),[$,se]=X[X.length-1],te=A.blockers.get($);if(!(te&&te.state==="proceeding")&&se({currentLocation:b,nextLocation:w,historyAction:U}))return $}function Nn(b){let w=On(404,{pathname:b}),U=g||m,{matches:X,route:$}=Ns(U);return{notFoundMatches:X,route:$,error:w}}function pn(b,w,U){if(H=b,K=w,V=U||null,!G&&A.navigation===gc){G=!0;let X=mt(A.location,A.matches);X!=null&&Ie({restoreScrollPosition:X})}return()=>{H=null,K=null,V=null}}function ve(b,w){return V&&V(b,w.map(X=>Cb(X,A.loaderData)))||b.key}function tt(b,w){if(H&&K){let U=ve(b,w);H[U]=K()}}function mt(b,w){if(H){let U=ve(b,w),X=H[U];if(typeof X=="number")return X}return null}function yt(b,w,U){if(a.patchRoutesOnNavigation)if(b){if(Object.keys(b[0].params).length>0)return{active:!0,matches:sr(w,U,y,!0)}}else return{active:!0,matches:sr(w,U,y,!0)||[]};return{active:!1,matches:null}}async function tn(b,w,U,X){if(!a.patchRoutesOnNavigation)return{type:"success",matches:b};let $=b;for(;;){let se=g==null,te=g||m,ee=h;try{await a.patchRoutesOnNavigation({signal:U,path:w,matches:$,fetcherKey:X,patch:(he,oe)=>{U.aborted||_y(he,oe,te,ee,f,!1)}})}catch(he){return{type:"error",error:he,partialMatches:$}}finally{se&&!U.aborted&&(m=[...m])}if(U.aborted)return{type:"aborted"};let ne=Za(te,w,y),re=null;if(ne){if(Object.keys(ne[0].params).length===0)return{type:"success",matches:ne};if(re=sr(te,w,y,!0),!(re&&$.length<re.length&&nt($,re.slice(0,$.length))))return{type:"success",matches:ne}}if(re||(re=sr(te,w,y,!0)),!re||nt($,re))return{type:"success",matches:null};$=re}}function nt(b,w){return b.length===w.length&&b.every((U,X)=>U.route.id===w[X].route.id)}function Ht(b){h={},g=hr(b,f,void 0,h)}function aa(b,w,U=!1){let X=g==null;_y(b,w,g||m,h,f,U),X&&(m=[...m],Ie({}))}return ye={get basename(){return y},get future(){return p},get state(){return A},get routes(){return m},get window(){return i},initialize:Ze,subscribe:Dn,enableScrollRestoration:pn,navigate:Gt,fetch:nl,revalidate:Ia,createHref:b=>a.history.createHref(b),encodeLocation:b=>a.history.encodeLocation(b),getFetcher:mn,resetFetcher:Rl,deleteFetcher:ta,dispose:hn,getBlocker:al,deleteBlocker:en,patchRoutes:aa,_internalFetchControllers:F,_internalSetRoutes:Ht,_internalSetStateDoNotUseOrYouWillBreakYourApp(b){Ie(b)}},a.unstable_instrumentations&&(ye=Jb(ye,a.unstable_instrumentations.map(b=>b.router).filter(Boolean))),ye}function r1(a){return a!=null&&("formData"in a&&a.formData!=null||"body"in a&&a.body!==void 0)}function Dc(a,i,r,u,c,f){let h,m;if(c){h=[];for(let y of i)if(h.push(y),y.route.id===c){m=y;break}}else h=i,m=i[i.length-1];let g=Ps(u||".",Ws(h),Cn(a.pathname,r)||a.pathname,f==="path");if(u==null&&(g.search=a.search,g.hash=a.hash),(u==null||u===""||u===".")&&m){let y=Kc(g.search);if(m.route.index&&!y)g.search=g.search?g.search.replace(/^\?/,"?index&"):"?index";else if(!m.route.index&&y){let E=new URLSearchParams(g.search),p=E.getAll("index");E.delete("index"),p.filter(D=>D).forEach(D=>E.append("index",D));let R=E.toString();g.search=R?`?${R}`:""}}return r!=="/"&&(g.pathname=Vb({basename:r,pathname:g.pathname})),Wn(g)}function Sy(a,i,r){if(!r||!r1(r))return{path:i};if(r.formMethod&&!R1(r.formMethod))return{path:i,error:On(405,{method:r.formMethod})};let u=()=>({path:i,error:On(400,{type:"invalid-body"})}),f=(r.formMethod||"get").toUpperCase(),h=Ep(i);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!qt(f))return u();let p=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((R,[D,H])=>`${R}${D}=${H}
11
- `,""):String(r.body);return{path:i,submission:{formMethod:f,formAction:h,formEncType:r.formEncType,formData:void 0,json:void 0,text:p}}}else if(r.formEncType==="application/json"){if(!qt(f))return u();try{let p=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:i,submission:{formMethod:f,formAction:h,formEncType:r.formEncType,formData:void 0,json:p,text:void 0}}}catch{return u()}}}Ce(typeof FormData=="function","FormData is not available in this environment");let m,g;if(r.formData)m=Nc(r.formData),g=r.formData;else if(r.body instanceof FormData)m=Nc(r.body),g=r.body;else if(r.body instanceof URLSearchParams)m=r.body,g=Oy(m);else if(r.body==null)m=new URLSearchParams,g=new FormData;else try{m=new URLSearchParams(r.body),g=Oy(m)}catch{return u()}let y={formMethod:f,formAction:h,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:g,json:void 0,text:void 0};if(qt(y.formMethod))return{path:i,submission:y};let E=Wa(i);return a&&E.search&&Kc(E.search)&&m.append("index",""),E.search=`?${m}`,{path:Wn(E),submission:y}}function Ey(a,i,r,u,c,f,h,m,g,y,E,p,R,D,H,V,K,G,Z,P,ge){let pe=P?fn(P[1])?P[1].error:P[1].data:void 0,ye=c.createURL(f.location),A=c.createURL(g),ae;if(E&&f.errors){let _e=Object.keys(f.errors)[0];ae=h.findIndex(O=>O.route.id===_e)}else if(P&&fn(P[1])){let _e=P[0];ae=h.findIndex(O=>O.route.id===_e)-1}let Ee=P?P[1].statusCode:void 0,ze=Ee&&Ee>=400,Oe={currentUrl:ye,currentParams:f.matches[0]?.params||{},nextUrl:A,nextParams:h[0].params,...m,actionResult:pe,actionStatus:Ee},Ae=vr(h),Ke=h.map((_e,O)=>{let{route:k}=_e,F=null;if(ae!=null&&O>ae?F=!1:k.lazy?F=!0:Xc(k)?E?F=Mc(k,f.loaderData,f.errors):s1(f.loaderData,f.matches[O],_e)&&(F=!0):F=!1,F!==null)return zc(r,u,a,Ae,_e,y,i,F);let ce=!1;typeof ge=="boolean"?ce=ge:ze?ce=!1:(p||ye.pathname+ye.search===A.pathname+A.search||ye.search!==A.search||u1(f.matches[O],_e))&&(ce=!0);let de={...Oe,defaultShouldRevalidate:ce},_=or(_e,de);return zc(r,u,a,Ae,_e,y,i,_,de,ge)}),Qe=[];return H.forEach((_e,O)=>{if(E||!h.some(J=>J.route.id===_e.routeId)||D.has(O))return;let k=f.fetchers.get(O),F=k&&k.state!=="idle"&&k.data===void 0,ce=Za(K,_e.path,G);if(!ce){if(Z&&F)return;Qe.push({key:O,routeId:_e.routeId,path:_e.path,matches:null,match:null,request:null,controller:null});return}if(V.has(O))return;let de=qs(ce,_e.path),_=new AbortController,B=ri(c,_e.path,_.signal),q=null;if(R.has(O))R.delete(O),q=ui(r,u,B,ce,de,y,i);else if(F)p&&(q=ui(r,u,B,ce,de,y,i));else{let J;typeof ge=="boolean"?J=ge:ze?J=!1:J=p;let I={...Oe,defaultShouldRevalidate:J};or(de,I)&&(q=ui(r,u,B,ce,de,y,i,I))}q&&Qe.push({key:O,routeId:_e.routeId,path:_e.path,matches:q,match:de,request:B,controller:_})}),{dsMatches:Ke,revalidatingFetchers:Qe}}function Xc(a){return a.loader!=null||a.middleware!=null&&a.middleware.length>0}function Mc(a,i,r){if(a.lazy)return!0;if(!Xc(a))return!1;let u=i!=null&&a.id in i,c=r!=null&&r[a.id]!==void 0;return!u&&c?!1:typeof a.loader=="function"&&a.loader.hydrate===!0?!0:!u&&!c}function s1(a,i,r){let u=!i||r.route.id!==i.route.id,c=!a.hasOwnProperty(r.route.id);return u||c}function u1(a,i){let r=a.route.path;return a.pathname!==i.pathname||r!=null&&r.endsWith("*")&&a.params["*"]!==i.params["*"]}function or(a,i){if(a.route.shouldRevalidate){let r=a.route.shouldRevalidate(i);if(typeof r=="boolean")return r}return i.defaultShouldRevalidate}function _y(a,i,r,u,c,f){let h;if(a){let y=u[a];Ce(y,`No route found to patch children into: routeId = ${a}`),y.children||(y.children=[]),h=y.children}else h=r;let m=[],g=[];if(i.forEach(y=>{let E=h.find(p=>pp(y,p));E?g.push({existingRoute:E,newRoute:y}):m.push(y)}),m.length>0){let y=hr(m,c,[a||"_","patch",String(h?.length||"0")],u);h.push(...y)}if(f&&g.length>0)for(let y=0;y<g.length;y++){let{existingRoute:E,newRoute:p}=g[y],R=E,[D]=hr([p],c,[],{},!0);Object.assign(R,{element:D.element?D.element:R.element,errorElement:D.errorElement?D.errorElement:R.errorElement,hydrateFallbackElement:D.hydrateFallbackElement?D.hydrateFallbackElement:R.hydrateFallbackElement})}}function pp(a,i){return"id"in a&&"id"in i&&a.id===i.id?!0:a.index===i.index&&a.path===i.path&&a.caseSensitive===i.caseSensitive?(!a.children||a.children.length===0)&&(!i.children||i.children.length===0)?!0:a.children.every((r,u)=>i.children?.some(c=>pp(r,c))):!1}var Ty=new WeakMap,vp=({key:a,route:i,manifest:r,mapRouteProperties:u})=>{let c=r[i.id];if(Ce(c,"No route found in manifest"),!c.lazy||typeof c.lazy!="object")return;let f=c.lazy[a];if(!f)return;let h=Ty.get(c);h||(h={},Ty.set(c,h));let m=h[a];if(m)return m;let g=(async()=>{let y=Rb(a),p=c[a]!==void 0&&a!=="hasErrorBoundary";if(y)bt(!y,"Route property "+a+" is not a supported lazy route property. This property will be ignored."),h[a]=Promise.resolve();else if(p)bt(!1,`Route "${c.id}" has a static property "${a}" defined. The lazy property will be ignored.`);else{let R=await f();R!=null&&(Object.assign(c,{[a]:R}),Object.assign(c,u(c)))}typeof c.lazy=="object"&&(c.lazy[a]=void 0,Object.values(c.lazy).every(R=>R===void 0)&&(c.lazy=void 0))})();return h[a]=g,g},wy=new WeakMap;function o1(a,i,r,u,c){let f=r[a.id];if(Ce(f,"No route found in manifest"),!a.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof a.lazy=="function"){let E=wy.get(f);if(E)return{lazyRoutePromise:E,lazyHandlerPromise:E};let p=(async()=>{Ce(typeof a.lazy=="function","No lazy route function found");let R=await a.lazy(),D={};for(let H in R){let V=R[H];if(V===void 0)continue;let K=Ob(H),Z=f[H]!==void 0&&H!=="hasErrorBoundary";K?bt(!K,"Route property "+H+" is not a supported property to be returned from a lazy route function. This property will be ignored."):Z?bt(!Z,`Route "${f.id}" has a static property "${H}" defined but its lazy function is also returning a value for this property. The lazy route property "${H}" will be ignored.`):D[H]=V}Object.assign(f,D),Object.assign(f,{...u(f),lazy:void 0})})();return wy.set(f,p),p.catch(()=>{}),{lazyRoutePromise:p,lazyHandlerPromise:p}}let h=Object.keys(a.lazy),m=[],g;for(let E of h){if(c&&c.includes(E))continue;let p=vp({key:E,route:a,manifest:r,mapRouteProperties:u});p&&(m.push(p),E===i&&(g=p))}let y=m.length>0?Promise.all(m).then(()=>{}):void 0;return y?.catch(()=>{}),g?.catch(()=>{}),{lazyRoutePromise:y,lazyHandlerPromise:g}}async function Ry(a){let i=a.matches.filter(c=>c.shouldLoad),r={};return(await Promise.all(i.map(c=>c.resolve()))).forEach((c,f)=>{r[i[f].route.id]=c}),r}async function c1(a){return a.matches.some(i=>i.route.middleware)?gp(a,()=>Ry(a)):Ry(a)}function gp(a,i){return f1(a,i,u=>{if(w1(u))throw u;return u},S1,r);function r(u,c,f){if(f)return Promise.resolve(Object.assign(f.value,{[c]:{type:"error",result:u}}));{let{matches:h}=a,m=Math.min(Math.max(h.findIndex(y=>y.route.id===c),0),Math.max(h.findIndex(y=>y.shouldCallHandler()),0)),g=Ja(h,h[m].route.id).route.id;return Promise.resolve({[g]:{type:"error",result:u}})}}}async function f1(a,i,r,u,c){let{matches:f,request:h,params:m,context:g,unstable_pattern:y}=a,E=f.flatMap(R=>R.route.middleware?R.route.middleware.map(D=>[R.route.id,D]):[]);return await bp({request:h,params:m,context:g,unstable_pattern:y},E,i,r,u,c)}async function bp(a,i,r,u,c,f,h=0){let{request:m}=a;if(m.signal.aborted)throw m.signal.reason??new Error(`Request aborted: ${m.method} ${m.url}`);let g=i[h];if(!g)return await r();let[y,E]=g,p,R=async()=>{if(p)throw new Error("You may only call `next()` once per middleware");try{return p={value:await bp(a,i,r,u,c,f,h+1)},p.value}catch(D){return p={value:await f(D,y,p)},p.value}};try{let D=await E(a,R),H=D!=null?u(D):void 0;return c(H)?H:p?H??p.value:(p={value:await R()},p.value)}catch(D){return await f(D,y,p)}}function Sp(a,i,r,u,c){let f=vp({key:"middleware",route:u.route,manifest:i,mapRouteProperties:a}),h=o1(u.route,qt(r.method)?"action":"loader",i,a,c);return{middleware:f,route:h.lazyRoutePromise,handler:h.lazyHandlerPromise}}function zc(a,i,r,u,c,f,h,m,g=null,y){let E=!1,p=Sp(a,i,r,c,f);return{...c,_lazyPromises:p,shouldLoad:m,shouldRevalidateArgs:g,shouldCallHandler(R){return E=!0,g?typeof y=="boolean"?or(c,{...g,defaultShouldRevalidate:y}):typeof R=="boolean"?or(c,{...g,defaultShouldRevalidate:R}):or(c,g):m},resolve(R){let{lazy:D,loader:H,middleware:V}=c.route,K=E||m||R&&!qt(r.method)&&(D||H),G=V&&V.length>0&&!H&&!D;return K&&(qt(r.method)||!G)?h1({request:r,unstable_pattern:u,match:c,lazyHandlerPromise:p?.handler,lazyRoutePromise:p?.route,handlerOverride:R,scopedContext:h}):Promise.resolve({type:"data",result:void 0})}}}function ui(a,i,r,u,c,f,h,m=null){return u.map(g=>g.route.id!==c.route.id?{...g,shouldLoad:!1,shouldRevalidateArgs:m,shouldCallHandler:()=>!1,_lazyPromises:Sp(a,i,r,g,f),resolve:()=>Promise.resolve({type:"data",result:void 0})}:zc(a,i,r,vr(u),g,f,h,!0,m))}async function d1(a,i,r,u,c,f){r.some(y=>y._lazyPromises?.middleware)&&await Promise.all(r.map(y=>y._lazyPromises?.middleware));let h={request:i,unstable_pattern:vr(r),params:r[0].params,context:c,matches:r},g=await a({...h,fetcherKey:u,runClientMiddleware:y=>{let E=h;return gp(E,()=>y({...E,fetcherKey:u,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))}});try{await Promise.all(r.flatMap(y=>[y._lazyPromises?.handler,y._lazyPromises?.route]))}catch{}return g}async function h1({request:a,unstable_pattern:i,match:r,lazyHandlerPromise:u,lazyRoutePromise:c,handlerOverride:f,scopedContext:h}){let m,g,y=qt(a.method),E=y?"action":"loader",p=R=>{let D,H=new Promise((G,Z)=>D=Z);g=()=>D(),a.signal.addEventListener("abort",g);let V=G=>typeof R!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${E}" [routeId: ${r.route.id}]`)):R({request:a,unstable_pattern:i,params:r.params,context:h},...G!==void 0?[G]:[]),K=(async()=>{try{return{type:"data",result:await(f?f(Z=>V(Z)):V())}}catch(G){return{type:"error",result:G}}})();return Promise.race([K,H])};try{let R=y?r.route.action:r.route.loader;if(u||c)if(R){let D,[H]=await Promise.all([p(R).catch(V=>{D=V}),u,c]);if(D!==void 0)throw D;m=H}else{await u;let D=y?r.route.action:r.route.loader;if(D)[m]=await Promise.all([p(D),c]);else if(E==="action"){let H=new URL(a.url),V=H.pathname+H.search;throw On(405,{method:a.method,pathname:V,routeId:r.route.id})}else return{type:"data",result:void 0}}else if(R)m=await p(R);else{let D=new URL(a.url),H=D.pathname+D.search;throw On(404,{pathname:H})}}catch(R){return{type:"error",result:R}}finally{g&&a.signal.removeEventListener("abort",g)}return m}async function m1(a){let i=a.headers.get("Content-Type");return i&&/\bapplication\/json\b/.test(i)?a.body==null?null:a.json():a.text()}async function y1(a){let{result:i,type:r}=a;if(kc(i)){let u;try{u=await m1(i)}catch(c){return{type:"error",error:c}}return r==="error"?{type:"error",error:new pr(i.status,i.statusText,u),statusCode:i.status,headers:i.headers}:{type:"data",data:u,statusCode:i.status,headers:i.headers}}return r==="error"?My(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:b1(i),statusCode:mr(i)?i.status:void 0,headers:i.init?.headers?new Headers(i.init.headers):void 0}:{type:"error",error:i,statusCode:mr(i)?i.status:void 0}:My(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 p1(a,i,r,u,c){let f=a.headers.get("Location");if(Ce(f,"Redirects returned/thrown from loaders/actions must have a Location header"),!Gc(f)){let h=u.slice(0,u.findIndex(m=>m.route.id===r)+1);f=Dc(new URL(i.url),h,c,f),a.headers.set("Location",f)}return a}function xy(a,i,r,u){let c=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(Gc(a)){let f=a,h=f.startsWith("//")?new URL(i.protocol+f):new URL(f);if(c.includes(h.protocol))throw new Error("Invalid redirect location");let m=Cn(h.pathname,r)!=null;if(h.origin===i.origin&&m)return h.pathname+h.search+h.hash}try{let f=u.createURL(a);if(c.includes(f.protocol))throw new Error("Invalid redirect location")}catch{}return a}function ri(a,i,r,u){let c=a.createURL(Ep(i)).toString(),f={signal:r};if(u&&qt(u.formMethod)){let{formMethod:h,formEncType:m}=u;f.method=h.toUpperCase(),m==="application/json"?(f.headers=new Headers({"Content-Type":m}),f.body=JSON.stringify(u.json)):m==="text/plain"?f.body=u.text:m==="application/x-www-form-urlencoded"&&u.formData?f.body=Nc(u.formData):f.body=u.formData}return new Request(c,f)}function Nc(a){let i=new URLSearchParams;for(let[r,u]of a.entries())i.append(r,typeof u=="string"?u:u.name);return i}function Oy(a){let i=new FormData;for(let[r,u]of a.entries())i.append(r,u);return i}function v1(a,i,r,u=!1,c=!1){let f={},h=null,m,g=!1,y={},E=r&&fn(r[1])?r[1].error:void 0;return a.forEach(p=>{if(!(p.route.id in i))return;let R=p.route.id,D=i[R];if(Ce(!Tl(D),"Cannot handle redirect results in processLoaderData"),fn(D)){let H=D.error;if(E!==void 0&&(H=E,E=void 0),h=h||{},c)h[R]=H;else{let V=Ja(a,R);h[V.route.id]==null&&(h[V.route.id]=H)}u||(f[R]=yp),g||(g=!0,m=mr(D.error)?D.error.status:500),D.headers&&(y[R]=D.headers)}else f[R]=D.data,D.statusCode&&D.statusCode!==200&&!g&&(m=D.statusCode),D.headers&&(y[R]=D.headers)}),E!==void 0&&r&&(h={[r[0]]:E},r[2]&&(f[r[2]]=void 0)),{loaderData:f,errors:h,statusCode:m||200,loaderHeaders:y}}function Ay(a,i,r,u,c,f){let{loaderData:h,errors:m}=v1(i,r,u);return c.filter(g=>!g.matches||g.matches.some(y=>y.shouldLoad)).forEach(g=>{let{key:y,match:E,controller:p}=g;if(p&&p.signal.aborted)return;let R=f[y];if(Ce(R,"Did not find corresponding fetcher result"),fn(R)){let D=Ja(a.matches,E?.route.id);m&&m[D.route.id]||(m={...m,[D.route.id]:R.error}),a.fetchers.delete(y)}else if(Tl(R))Ce(!1,"Unhandled fetcher revalidation redirect");else{let D=_a(R.data);a.fetchers.set(y,D)}}),{loaderData:h,errors:m}}function Cy(a,i,r,u){let c=Object.entries(i).filter(([,f])=>f!==yp).reduce((f,[h,m])=>(f[h]=m,f),{});for(let f of r){let h=f.route.id;if(!i.hasOwnProperty(h)&&a.hasOwnProperty(h)&&f.route.loader&&(c[h]=a[h]),u&&u.hasOwnProperty(h))break}return c}function Dy(a){return a?fn(a[1])?{actionData:{}}:{actionData:{[a[0]]:a[1].data}}:{}}function Ja(a,i){return(i?a.slice(0,a.findIndex(u=>u.route.id===i)+1):[...a]).reverse().find(u=>u.route.hasErrorBoundary===!0)||a[0]}function Ns(a){let i=a.length===1?a[0]:a.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:i}],route:i}}function On(a,{pathname:i,routeId:r,method:u,type:c,message:f}={}){let h="Unknown Server Error",m="Unknown @remix-run/router error";return a===400?(h="Bad Request",u&&i&&r?m=`You made a ${u} request to "${i}" but did not provide a \`loader\` for route "${r}", so there is no way to handle the request.`:c==="invalid-body"&&(m="Unable to encode submission body")):a===403?(h="Forbidden",m=`Route "${r}" does not match URL "${i}"`):a===404?(h="Not Found",m=`No route matches URL "${i}"`):a===405&&(h="Method Not Allowed",u&&i&&r?m=`You made a ${u.toUpperCase()} request to "${i}" but did not provide an \`action\` for route "${r}", so there is no way to handle the request.`:u&&(m=`Invalid request method "${u.toUpperCase()}"`)),new pr(a||500,h,new Error(m),!0)}function Us(a){let i=Object.entries(a);for(let r=i.length-1;r>=0;r--){let[u,c]=i[r];if(Tl(c))return{key:u,result:c}}}function Ep(a){let i=typeof a=="string"?Wa(a):a;return Wn({...i,hash:""})}function g1(a,i){return a.pathname!==i.pathname||a.search!==i.search?!1:a.hash===""?i.hash!=="":a.hash===i.hash?!0:i.hash!==""}function b1(a){return new pr(a.init?.status??500,a.init?.statusText??"Internal Server Error",a.data)}function S1(a){return a!=null&&typeof a=="object"&&Object.entries(a).every(([i,r])=>typeof i=="string"&&E1(r))}function E1(a){return a!=null&&typeof a=="object"&&"type"in a&&"result"in a&&(a.type==="data"||a.type==="error")}function _1(a){return kc(a.result)&&hp.has(a.result.status)}function fn(a){return a.type==="error"}function Tl(a){return(a&&a.type)==="redirect"}function My(a){return typeof a=="object"&&a!=null&&"type"in a&&"data"in a&&"init"in a&&a.type==="DataWithResponseInit"}function kc(a){return a!=null&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.headers=="object"&&typeof a.body<"u"}function T1(a){return hp.has(a)}function w1(a){return kc(a)&&T1(a.status)&&a.headers.has("Location")}function R1(a){return t1.has(a.toUpperCase())}function qt(a){return Ib.has(a.toUpperCase())}function Kc(a){return new URLSearchParams(a).getAll("index").some(i=>i==="")}function qs(a,i){let r=typeof i=="string"?Wa(i).search:i.search;if(a[a.length-1].route.index&&Kc(r||""))return a[a.length-1];let u=up(a);return u[u.length-1]}function zy(a){let{formMethod:i,formAction:r,formEncType:u,text:c,formData:f,json:h}=a;if(!(!i||!r||!u)){if(c!=null)return{formMethod:i,formAction:r,formEncType:u,formData:void 0,json:void 0,text:c};if(f!=null)return{formMethod:i,formAction:r,formEncType:u,formData:f,json:void 0,text:void 0};if(h!==void 0)return{formMethod:i,formAction:r,formEncType:u,formData:void 0,json:h,text:void 0}}}function bc(a,i){return i?{state:"loading",location:a,formMethod:i.formMethod,formAction:i.formAction,formEncType:i.formEncType,formData:i.formData,json:i.json,text:i.text}:{state:"loading",location:a,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function x1(a,i){return{state:"submitting",location:a,formMethod:i.formMethod,formAction:i.formAction,formEncType:i.formEncType,formData:i.formData,json:i.json,text:i.text}}function ar(a,i){return a?{state:"loading",formMethod:a.formMethod,formAction:a.formAction,formEncType:a.formEncType,formData:a.formData,json:a.json,text:a.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 O1(a,i){return{state:"submitting",formMethod:a.formMethod,formAction:a.formAction,formEncType:a.formEncType,formData:a.formData,json:a.json,text:a.text,data:i?i.data:void 0}}function _a(a){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:a}}function A1(a,i){try{let r=a.sessionStorage.getItem(mp);if(r){let u=JSON.parse(r);for(let[c,f]of Object.entries(u||{}))f&&Array.isArray(f)&&i.set(c,new Set(f||[]))}}catch{}}function C1(a,i){if(i.size>0){let r={};for(let[u,c]of i)r[u]=[...c];try{a.sessionStorage.setItem(mp,JSON.stringify(r))}catch(u){bt(!1,`Failed to save applied view transitions in sessionStorage (${u}).`)}}}function Ny(){let a,i,r=new Promise((u,c)=>{a=async f=>{u(f);try{await r}catch{}},i=async f=>{c(f);try{await r}catch{}}});return{promise:r,resolve:a,reject:i}}var wl=C.createContext(null);wl.displayName="DataRouter";var gr=C.createContext(null);gr.displayName="DataRouterState";var _p=C.createContext(!1);function D1(){return C.useContext(_p)}var Zc=C.createContext({isTransitioning:!1});Zc.displayName="ViewTransition";var Tp=C.createContext(new Map);Tp.displayName="Fetchers";var M1=C.createContext(null);M1.displayName="Await";var dn=C.createContext(null);dn.displayName="Navigation";var Is=C.createContext(null);Is.displayName="Location";var Vn=C.createContext({outlet:null,matches:[],isDataRoute:!1});Vn.displayName="Route";var Jc=C.createContext(null);Jc.displayName="RouteError";var wp="REACT_ROUTER_ERROR",z1="REDIRECT",N1="ROUTE_ERROR_RESPONSE";function U1(a){if(a.startsWith(`${wp}:${z1}:{`))try{let i=JSON.parse(a.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 L1(a){if(a.startsWith(`${wp}:${N1}:{`))try{let i=JSON.parse(a.slice(40));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string")return new pr(i.status,i.statusText,i.data)}catch{}}function B1(a,{relative:i}={}){Ce(ci(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:u}=C.useContext(dn),{hash:c,pathname:f,search:h}=br(a,{relative:i}),m=f;return r!=="/"&&(m=f==="/"?r:$n([r,f])),u.createHref({pathname:m,search:h,hash:c})}function ci(){return C.useContext(Is)!=null}function Pa(){return Ce(ci(),"useLocation() may be used only in the context of a <Router> component."),C.useContext(Is).location}var Rp="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function xp(a){C.useContext(dn).static||C.useLayoutEffect(a)}function Fc(){let{isDataRoute:a}=C.useContext(Vn);return a?W1():H1()}function H1(){Ce(ci(),"useNavigate() may be used only in the context of a <Router> component.");let a=C.useContext(wl),{basename:i,navigator:r}=C.useContext(dn),{matches:u}=C.useContext(Vn),{pathname:c}=Pa(),f=JSON.stringify(Ws(u)),h=C.useRef(!1);return xp(()=>{h.current=!0}),C.useCallback((g,y={})=>{if(bt(h.current,Rp),!h.current)return;if(typeof g=="number"){r.go(g);return}let E=Ps(g,JSON.parse(f),c,y.relative==="path");a==null&&i!=="/"&&(E.pathname=E.pathname==="/"?i:$n([i,E.pathname])),(y.replace?r.replace:r.push)(E,y.state,y)},[i,r,f,c,a])}var j1=C.createContext(null);function q1(a){let i=C.useContext(Vn).outlet;return C.useMemo(()=>i&&C.createElement(j1.Provider,{value:a},i),[i,a])}function br(a,{relative:i}={}){let{matches:r}=C.useContext(Vn),{pathname:u}=Pa(),c=JSON.stringify(Ws(r));return C.useMemo(()=>Ps(a,JSON.parse(c),u,i==="path"),[a,c,u,i])}function Y1(a,i,r,u,c){Ce(ci(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:f}=C.useContext(dn),{matches:h}=C.useContext(Vn),m=h[h.length-1],g=m?m.params:{},y=m?m.pathname:"/",E=m?m.pathnameBase:"/",p=m&&m.route;{let Z=p&&p.path||"";Ap(y,!p||Z.endsWith("*")||Z.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${y}" (under <Route path="${Z}">) 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
+ `+l.stack}}var Bt=Object.prototype.hasOwnProperty,tl=a.unstable_scheduleCallback,nl=a.unstable_cancelCallback,Mt=a.unstable_shouldYield,Gn=a.unstable_requestPaint,ut=a.unstable_now,ea=a.unstable_getCurrentPriorityLevel,Xn=a.unstable_ImmediatePriority,Ta=a.unstable_UserBlockingPriority,Dt=a.unstable_NormalPriority,Yt=a.unstable_LowPriority,mn=a.unstable_IdlePriority,Rl=a.log,yn=a.unstable_setDisableYieldValue,ta=null,at=null;function kt(e){if(typeof Rl=="function"&&yn(e),at&&typeof at.setStrictMode=="function")try{at.setStrictMode(ta,e)}catch{}}var Rt=Math.clz32?Math.clz32:en,xl=Math.log,al=Math.LN2;function en(e){return e>>>=0,e===0?32:31-(xl(e)/al|0)|0}var zn=256,na=262144,Nn=4194304;function pn(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 ge(e,t,n){var l=e.pendingLanes;if(l===0)return 0;var s=0,o=e.suspendedLanes,d=e.pingedLanes;e=e.warmLanes;var v=l&134217727;return v!==0?(l=v&~o,l!==0?s=pn(l):(d&=v,d!==0?s=pn(d):n||(n=v&~e,n!==0&&(s=pn(n))))):(v=l&~o,v!==0?s=pn(v):d!==0?s=pn(d):n||(n=l&~e,n!==0&&(s=pn(n)))),s===0?0:t!==0&&t!==s&&(t&o)===0&&(o=s&-s,n=t&-t,o>=n||o===32&&(n&4194048)!==0)?t:s}function tt(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function mt(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 yt(){var e=Nn;return Nn<<=1,(Nn&62914560)===0&&(Nn=4194304),e}function tn(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function nt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ht(e,t,n,l,s,o){var d=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var v=e.entanglements,S=e.expirationTimes,z=e.hiddenUpdates;for(n=d&~n;0<n;){var j=31-Rt(n),Q=1<<j;v[j]=0,S[j]=-1;var N=z[j];if(N!==null)for(z[j]=null,j=0;j<N.length;j++){var L=N[j];L!==null&&(L.lane&=-536870913)}n&=~Q}l!==0&&aa(e,l,0),o!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=o&~(d&~t))}function aa(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-Rt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|n&261930}function b(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var l=31-Rt(n),s=1<<l;s&t|e[l]&t&&(e[l]|=t),n&=~s}}function w(e,t){var n=t&-t;return n=(n&42)!==0?1:U(n),(n&(e.suspendedLanes|t))!==0?0:n}function U(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 X(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function $(){var e=k.p;return e!==0?e:(e=window.event,e===void 0?32:jm(e.type))}function se(e,t){var n=k.p;try{return k.p=e,t()}finally{k.p=n}}var te=Math.random().toString(36).slice(2),ee="__reactFiber$"+te,ne="__reactProps$"+te,re="__reactContainer$"+te,he="__reactEvents$"+te,oe="__reactListeners$"+te,Ve="__reactHandles$"+te,Le="__reactResources$"+te,ot="__reactMarker$"+te;function ct(e){delete e[ee],delete e[ne],delete e[he],delete e[oe],delete e[Ve]}function ft(e){var t=e[ee];if(t)return t;for(var n=e.parentNode;n;){if(t=n[re]||n[ee]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=_m(e);e!==null;){if(n=e[ee])return n;e=_m(e)}return t}e=n,n=e.parentNode}return null}function Be(e){if(e=e[ee]||e[re]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ot(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(u(33))}function Kt(e){var t=e[Le];return t||(t=e[Le]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function rt(e){e[ot]=!0}var Un=new Set,nn={};function Ln(e,t){vn(e,t),vn(e+"Capture",t)}function vn(e,t){for(nn[e]=t,e=0;e<t.length;e++)Un.add(t[e])}var la=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]*$"),ll={},il={};function He(e){return Bt.call(il,e)?!0:Bt.call(ll,e)?!1:la.test(e)?il[e]=!0:(ll[e]=!0,!1)}function pt(e,t,n){if(He(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Bn(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function Ct(e,t,n,l){if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+l)}}function je(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function rl(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Sr(e,t,n){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var s=l.get,o=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(d){n=""+d,o.call(this,d)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(d){n=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function hi(e){if(!e._valueTracker){var t=rl(e)?"checked":"value";e._valueTracker=Sr(e,t,""+e[t])}}function sf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),l="";return e&&(l=rl(e)?e.checked?"true":"false":e.value),e=l,e!==n?(t.setValue(e),!0):!1}function Er(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 Pp=/[\n"\\]/g;function gn(e){return e.replace(Pp,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function lu(e,t,n,l,s,o,d,v){e.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.type=d:e.removeAttribute("type"),t!=null?d==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+je(t)):e.value!==""+je(t)&&(e.value=""+je(t)):d!=="submit"&&d!=="reset"||e.removeAttribute("value"),t!=null?iu(e,d,je(t)):n!=null?iu(e,d,je(n)):l!=null&&e.removeAttribute("value"),s==null&&o!=null&&(e.defaultChecked=!!o),s!=null&&(e.checked=s&&typeof s!="function"&&typeof s!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.name=""+je(v):e.removeAttribute("name")}function uf(e,t,n,l,s,o,d,v){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.type=o),t!=null||n!=null){if(!(o!=="submit"&&o!=="reset"||t!=null)){hi(e);return}n=n!=null?""+je(n):"",t=t!=null?""+je(t):n,v||t===e.value||(e.value=t),e.defaultValue=t}l=l??s,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=v?e.checked:!!l,e.defaultChecked=!!l,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.name=d),hi(e)}function iu(e,t,n){t==="number"&&Er(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Ol(e,t,n,l){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&l&&(e[n].defaultSelected=!0)}else{for(n=""+je(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,l&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function of(e,t,n){if(t!=null&&(t=""+je(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+je(n):""}function cf(e,t,n,l){if(t==null){if(l!=null){if(n!=null)throw Error(u(92));if(_e(l)){if(1<l.length)throw Error(u(93));l=l[0]}n=l}n==null&&(n=""),t=n}n=je(t),e.defaultValue=n,l=e.textContent,l===n&&l!==""&&l!==null&&(e.value=l),hi(e)}function Al(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Wp=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 ff(e,t,n){var l=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,n):typeof n!="number"||n===0||Wp.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function df(e,t,n){if(t!=null&&typeof t!="object")throw Error(u(62));if(e=e.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var s in t)l=t[s],t.hasOwnProperty(s)&&n[s]!==l&&ff(e,s,l)}else for(var o in t)t.hasOwnProperty(o)&&ff(e,o,t[o])}function ru(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 Ip=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"]]),ev=/^[\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 _r(e){return ev.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ia(){}var su=null;function uu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ml=null,Dl=null;function hf(e){var t=Be(e);if(t&&(e=t.stateNode)){var n=e[ne]||null;e:switch(e=t.stateNode,t.type){case"input":if(lu(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+gn(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var l=n[t];if(l!==e&&l.form===e.form){var s=l[ne]||null;if(!s)throw Error(u(90));lu(l,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(t=0;t<n.length;t++)l=n[t],l.form===e.form&&sf(l)}break e;case"textarea":of(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Ol(e,!!n.multiple,t,!1)}}}var ou=!1;function mf(e,t,n){if(ou)return e(t,n);ou=!0;try{var l=e(t);return l}finally{if(ou=!1,(Ml!==null||Dl!==null)&&(os(),Ml&&(t=Ml,e=Dl,Dl=Ml=null,hf(t),e)))for(t=0;t<e.length;t++)hf(e[t])}}function mi(e,t){var n=e.stateNode;if(n===null)return null;var l=n[ne]||null;if(l===null)return null;n=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(u(231,t,typeof n));return n}var ra=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),cu=!1;if(ra)try{var yi={};Object.defineProperty(yi,"passive",{get:function(){cu=!0}}),window.addEventListener("test",yi,yi),window.removeEventListener("test",yi,yi)}catch{cu=!1}var wa=null,fu=null,Tr=null;function yf(){if(Tr)return Tr;var e,t=fu,n=t.length,l,s="value"in wa?wa.value:wa.textContent,o=s.length;for(e=0;e<n&&t[e]===s[e];e++);var d=n-e;for(l=1;l<=d&&t[n-l]===s[o-l];l++);return Tr=s.slice(e,1<l?1-l:void 0)}function wr(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 Rr(){return!0}function pf(){return!1}function Zt(e){function t(n,l,s,o,d){this._reactName=n,this._targetInst=s,this.type=l,this.nativeEvent=o,this.target=d,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(n=e[v],this[v]=n?n(o):o[v]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Rr:pf,this.isPropagationStopped=pf,this}return p(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Rr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Rr)},persist:function(){},isPersistent:Rr}),t}var sl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},xr=Zt(sl),pi=p({},sl,{view:0,detail:0}),tv=Zt(pi),du,hu,vi,Or=p({},pi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:yu,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!==vi&&(vi&&e.type==="mousemove"?(du=e.screenX-vi.screenX,hu=e.screenY-vi.screenY):hu=du=0,vi=e),du)},movementY:function(e){return"movementY"in e?e.movementY:hu}}),vf=Zt(Or),nv=p({},Or,{dataTransfer:0}),av=Zt(nv),lv=p({},pi,{relatedTarget:0}),mu=Zt(lv),iv=p({},sl,{animationName:0,elapsedTime:0,pseudoElement:0}),rv=Zt(iv),sv=p({},sl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),uv=Zt(sv),ov=p({},sl,{data:0}),gf=Zt(ov),cv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},fv={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"},dv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function hv(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=dv[e])?!!t[e]:!1}function yu(){return hv}var mv=p({},pi,{key:function(e){if(e.key){var t=cv[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=wr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?fv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:yu,charCode:function(e){return e.type==="keypress"?wr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?wr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),yv=Zt(mv),pv=p({},Or,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),bf=Zt(pv),vv=p({},pi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:yu}),gv=Zt(vv),bv=p({},sl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Sv=Zt(bv),Ev=p({},Or,{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}),_v=Zt(Ev),Tv=p({},sl,{newState:0,oldState:0}),wv=Zt(Tv),Rv=[9,13,27,32],pu=ra&&"CompositionEvent"in window,gi=null;ra&&"documentMode"in document&&(gi=document.documentMode);var xv=ra&&"TextEvent"in window&&!gi,Sf=ra&&(!pu||gi&&8<gi&&11>=gi),Ef=" ",_f=!1;function Tf(e,t){switch(e){case"keyup":return Rv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Cl=!1;function Ov(e,t){switch(e){case"compositionend":return wf(t);case"keypress":return t.which!==32?null:(_f=!0,Ef);case"textInput":return e=t.data,e===Ef&&_f?null:e;default:return null}}function Av(e,t){if(Cl)return e==="compositionend"||!pu&&Tf(e,t)?(e=yf(),Tr=fu=wa=null,Cl=!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 Sf&&t.locale!=="ko"?null:t.data;default:return null}}var Mv={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 Rf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Mv[e.type]:t==="textarea"}function xf(e,t,n,l){Ml?Dl?Dl.push(l):Dl=[l]:Ml=l,t=ps(t,"onChange"),0<t.length&&(n=new xr("onChange","change",null,n,l),e.push({event:n,listeners:t}))}var bi=null,Si=null;function Dv(e){um(e,0)}function Ar(e){var t=Ot(e);if(sf(t))return e}function Of(e,t){if(e==="change")return t}var Af=!1;if(ra){var vu;if(ra){var gu="oninput"in document;if(!gu){var Mf=document.createElement("div");Mf.setAttribute("oninput","return;"),gu=typeof Mf.oninput=="function"}vu=gu}else vu=!1;Af=vu&&(!document.documentMode||9<document.documentMode)}function Df(){bi&&(bi.detachEvent("onpropertychange",Cf),Si=bi=null)}function Cf(e){if(e.propertyName==="value"&&Ar(Si)){var t=[];xf(t,Si,e,uu(e)),mf(Dv,t)}}function Cv(e,t,n){e==="focusin"?(Df(),bi=t,Si=n,bi.attachEvent("onpropertychange",Cf)):e==="focusout"&&Df()}function zv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ar(Si)}function Nv(e,t){if(e==="click")return Ar(t)}function Uv(e,t){if(e==="input"||e==="change")return Ar(t)}function Lv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var an=typeof Object.is=="function"?Object.is:Lv;function Ei(e,t){if(an(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),l=Object.keys(t);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var s=n[l];if(!Bt.call(t,s)||!an(e[s],t[s]))return!1}return!0}function zf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Nf(e,t){var n=zf(e);e=0;for(var l;n;){if(n.nodeType===3){if(l=e+n.textContent.length,e<=t&&l>=t)return{node:n,offset:t-e};e=l}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=zf(n)}}function Uf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Uf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Lf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Er(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Er(e.document)}return t}function bu(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 Bv=ra&&"documentMode"in document&&11>=document.documentMode,zl=null,Su=null,_i=null,Eu=!1;function Bf(e,t,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Eu||zl==null||zl!==Er(l)||(l=zl,"selectionStart"in l&&bu(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),_i&&Ei(_i,l)||(_i=l,l=ps(Su,"onSelect"),0<l.length&&(t=new xr("onSelect","select",null,t,n),e.push({event:t,listeners:l}),t.target=zl)))}function ul(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Nl={animationend:ul("Animation","AnimationEnd"),animationiteration:ul("Animation","AnimationIteration"),animationstart:ul("Animation","AnimationStart"),transitionrun:ul("Transition","TransitionRun"),transitionstart:ul("Transition","TransitionStart"),transitioncancel:ul("Transition","TransitionCancel"),transitionend:ul("Transition","TransitionEnd")},_u={},Hf={};ra&&(Hf=document.createElement("div").style,"AnimationEvent"in window||(delete Nl.animationend.animation,delete Nl.animationiteration.animation,delete Nl.animationstart.animation),"TransitionEvent"in window||delete Nl.transitionend.transition);function ol(e){if(_u[e])return _u[e];if(!Nl[e])return e;var t=Nl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Hf)return _u[e]=t[n];return e}var jf=ol("animationend"),qf=ol("animationiteration"),Yf=ol("animationstart"),Hv=ol("transitionrun"),jv=ol("transitionstart"),qv=ol("transitioncancel"),Qf=ol("transitionend"),Vf=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 Hn(e,t){Vf.set(e,t),Ln(t,[e])}var Mr=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)},bn=[],Ul=0,wu=0;function Dr(){for(var e=Ul,t=wu=Ul=0;t<e;){var n=bn[t];bn[t++]=null;var l=bn[t];bn[t++]=null;var s=bn[t];bn[t++]=null;var o=bn[t];if(bn[t++]=null,l!==null&&s!==null){var d=l.pending;d===null?s.next=s:(s.next=d.next,d.next=s),l.pending=s}o!==0&&Gf(n,s,o)}}function Cr(e,t,n,l){bn[Ul++]=e,bn[Ul++]=t,bn[Ul++]=n,bn[Ul++]=l,wu|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Ru(e,t,n,l){return Cr(e,t,n,l),zr(e)}function cl(e,t){return Cr(e,null,null,t),zr(e)}function Gf(e,t,n){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n);for(var s=!1,o=e.return;o!==null;)o.childLanes|=n,l=o.alternate,l!==null&&(l.childLanes|=n),o.tag===22&&(e=o.stateNode,e===null||e._visibility&1||(s=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,s&&t!==null&&(s=31-Rt(n),e=o.hiddenUpdates,l=e[s],l===null?e[s]=[t]:l.push(t),t.lane=n|536870912),o):null}function zr(e){if(50<Xi)throw Xi=0,Lo=null,Error(u(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ll={};function Yv(e,t,n,l){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ln(e,t,n,l){return new Yv(e,t,n,l)}function xu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function sa(e,t){var n=e.alternate;return n===null?(n=ln(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Xf(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Nr(e,t,n,l,s,o){var d=0;if(l=e,typeof e=="function")xu(e)&&(d=1);else if(typeof e=="string")d=kg(e,n,J.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Ee:return e=ln(31,n,t,s),e.elementType=Ee,e.lanes=o,e;case V:return fl(n.children,s,o,t);case K:d=8,s|=24;break;case G:return e=ln(12,n,t,s|2),e.elementType=G,e.lanes=o,e;case ve:return e=ln(13,n,t,s),e.elementType=ve,e.lanes=o,e;case ye:return e=ln(19,n,t,s),e.elementType=ye,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case W:d=10;break e;case Z:d=9;break e;case be:d=11;break e;case A:d=14;break e;case ae:d=16,l=null;break e}d=29,n=Error(u(130,e===null?"null":typeof e,"")),l=null}return t=ln(d,n,t,s),t.elementType=e,t.type=l,t.lanes=o,t}function fl(e,t,n,l){return e=ln(7,e,l,t),e.lanes=n,e}function Ou(e,t,n){return e=ln(6,e,null,t),e.lanes=n,e}function kf(e){var t=ln(18,null,null,0);return t.stateNode=e,t}function Au(e,t,n){return t=ln(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Kf=new WeakMap;function Sn(e,t){if(typeof e=="object"&&e!==null){var n=Kf.get(e);return n!==void 0?n:(t={value:e,source:t,stack:el(t)},Kf.set(e,t),t)}return{value:e,source:t,stack:el(t)}}var Bl=[],Hl=0,Ur=null,Ti=0,En=[],_n=0,Ra=null,kn=1,Kn="";function ua(e,t){Bl[Hl++]=Ti,Bl[Hl++]=Ur,Ur=e,Ti=t}function Zf(e,t,n){En[_n++]=kn,En[_n++]=Kn,En[_n++]=Ra,Ra=e;var l=kn;e=Kn;var s=32-Rt(l)-1;l&=~(1<<s),n+=1;var o=32-Rt(t)+s;if(30<o){var d=s-s%5;o=(l&(1<<d)-1).toString(32),l>>=d,s-=d,kn=1<<32-Rt(t)+s|n<<s|l,Kn=o+e}else kn=1<<o|n<<s|l,Kn=e}function Mu(e){e.return!==null&&(ua(e,1),Zf(e,1,0))}function Du(e){for(;e===Ur;)Ur=Bl[--Hl],Bl[Hl]=null,Ti=Bl[--Hl],Bl[Hl]=null;for(;e===Ra;)Ra=En[--_n],En[_n]=null,Kn=En[--_n],En[_n]=null,kn=En[--_n],En[_n]=null}function Jf(e,t){En[_n++]=kn,En[_n++]=Kn,En[_n++]=Ra,kn=t.id,Kn=t.overflow,Ra=e}var zt=null,lt=null,qe=!1,xa=null,Tn=!1,Cu=Error(u(519));function Oa(e){var t=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw wi(Sn(t,e)),Cu}function Ff(e){var t=e.stateNode,n=e.type,l=e.memoizedProps;switch(t[ee]=e,t[ne]=l,n){case"dialog":Ce("cancel",t),Ce("close",t);break;case"iframe":case"object":case"embed":Ce("load",t);break;case"video":case"audio":for(n=0;n<Ki.length;n++)Ce(Ki[n],t);break;case"source":Ce("error",t);break;case"img":case"image":case"link":Ce("error",t),Ce("load",t);break;case"details":Ce("toggle",t);break;case"input":Ce("invalid",t),uf(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":Ce("invalid",t);break;case"textarea":Ce("invalid",t),cf(t,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||l.suppressHydrationWarning===!0||dm(t.textContent,n)?(l.popover!=null&&(Ce("beforetoggle",t),Ce("toggle",t)),l.onScroll!=null&&Ce("scroll",t),l.onScrollEnd!=null&&Ce("scrollend",t),l.onClick!=null&&(t.onclick=ia),t=!0):t=!1,t||Oa(e,!0)}function $f(e){for(zt=e.return;zt;)switch(zt.tag){case 5:case 31:case 13:Tn=!1;return;case 27:case 3:Tn=!0;return;default:zt=zt.return}}function jl(e){if(e!==zt)return!1;if(!qe)return $f(e),qe=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||$o(e.type,e.memoizedProps)),n=!n),n&&lt&&Oa(e),$f(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));lt=Em(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));lt=Em(e)}else t===27?(t=lt,Qa(e.type)?(e=tc,tc=null,lt=e):lt=t):lt=zt?Rn(e.stateNode.nextSibling):null;return!0}function dl(){lt=zt=null,qe=!1}function zu(){var e=xa;return e!==null&&(Pt===null?Pt=e:Pt.push.apply(Pt,e),xa=null),e}function wi(e){xa===null?xa=[e]:xa.push(e)}var Nu=_(null),hl=null,oa=null;function Aa(e,t,n){q(Nu,t._currentValue),t._currentValue=n}function ca(e){e._currentValue=Nu.current,B(Nu)}function Uu(e,t,n){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===n)break;e=e.return}}function Lu(e,t,n,l){var s=e.child;for(s!==null&&(s.return=e);s!==null;){var o=s.dependencies;if(o!==null){var d=s.child;o=o.firstContext;e:for(;o!==null;){var v=o;o=s;for(var S=0;S<t.length;S++)if(v.context===t[S]){o.lanes|=n,v=o.alternate,v!==null&&(v.lanes|=n),Uu(o.return,n,e),l||(d=null);break e}o=v.next}}else if(s.tag===18){if(d=s.return,d===null)throw Error(u(341));d.lanes|=n,o=d.alternate,o!==null&&(o.lanes|=n),Uu(d,n,e),d=null}else d=s.child;if(d!==null)d.return=s;else for(d=s;d!==null;){if(d===e){d=null;break}if(s=d.sibling,s!==null){s.return=d.return,d=s;break}d=d.return}s=d}}function ql(e,t,n,l){e=null;for(var s=t,o=!1;s!==null;){if(!o){if((s.flags&524288)!==0)o=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var d=s.alternate;if(d===null)throw Error(u(387));if(d=d.memoizedProps,d!==null){var v=s.type;an(s.pendingProps.value,d.value)||(e!==null?e.push(v):e=[v])}}else if(s===we.current){if(d=s.alternate,d===null)throw Error(u(387));d.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(e!==null?e.push(Pi):e=[Pi])}s=s.return}e!==null&&Lu(t,e,n,l),t.flags|=262144}function Lr(e){for(e=e.firstContext;e!==null;){if(!an(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ml(e){hl=e,oa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Nt(e){return Pf(hl,e)}function Br(e,t){return hl===null&&ml(e),Pf(e,t)}function Pf(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},oa===null){if(e===null)throw Error(u(308));oa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else oa=oa.next=t;return n}var Qv=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},Vv=a.unstable_scheduleCallback,Gv=a.unstable_NormalPriority,St={$$typeof:W,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Bu(){return{controller:new Qv,data:new Map,refCount:0}}function Ri(e){e.refCount--,e.refCount===0&&Vv(Gv,function(){e.controller.abort()})}var xi=null,Hu=0,Yl=0,Ql=null;function Xv(e,t){if(xi===null){var n=xi=[];Hu=0,Yl=Qo(),Ql={status:"pending",value:void 0,then:function(l){n.push(l)}}}return Hu++,t.then(Wf,Wf),t}function Wf(){if(--Hu===0&&xi!==null){Ql!==null&&(Ql.status="fulfilled");var e=xi;xi=null,Yl=0,Ql=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function kv(e,t){var n=[],l={status:"pending",value:null,reason:null,then:function(s){n.push(s)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var s=0;s<n.length;s++)(0,n[s])(t)},function(s){for(l.status="rejected",l.reason=s,s=0;s<n.length;s++)(0,n[s])(void 0)}),l}var If=O.S;O.S=function(e,t){Bh=ut(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Xv(e,t),If!==null&&If(e,t)};var yl=_(null);function ju(){var e=yl.current;return e!==null?e:et.pooledCache}function Hr(e,t){t===null?q(yl,yl.current):q(yl,t.pool)}function ed(){var e=ju();return e===null?null:{parent:St._currentValue,pool:e}}var Vl=Error(u(460)),qu=Error(u(474)),jr=Error(u(542)),qr={then:function(){}};function td(e){return e=e.status,e==="fulfilled"||e==="rejected"}function nd(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(ia,ia),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,ld(e),e;default:if(typeof t.status=="string")t.then(ia,ia);else{if(e=et,e!==null&&100<e.shellSuspendCounter)throw Error(u(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var s=t;s.status="fulfilled",s.value=l}},function(l){if(t.status==="pending"){var s=t;s.status="rejected",s.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,ld(e),e}throw vl=t,Vl}}function pl(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(vl=n,Vl):n}}var vl=null;function ad(){if(vl===null)throw Error(u(459));var e=vl;return vl=null,e}function ld(e){if(e===Vl||e===jr)throw Error(u(483))}var Gl=null,Oi=0;function Yr(e){var t=Oi;return Oi+=1,Gl===null&&(Gl=[]),nd(Gl,e,t)}function Ai(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Qr(e,t){throw t.$$typeof===R?Error(u(525)):(e=Object.prototype.toString.call(t),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function id(e){function t(x,T){if(e){var C=x.deletions;C===null?(x.deletions=[T],x.flags|=16):C.push(T)}}function n(x,T){if(!e)return null;for(;T!==null;)t(x,T),T=T.sibling;return null}function l(x){for(var T=new Map;x!==null;)x.key!==null?T.set(x.key,x):T.set(x.index,x),x=x.sibling;return T}function s(x,T){return x=sa(x,T),x.index=0,x.sibling=null,x}function o(x,T,C){return x.index=C,e?(C=x.alternate,C!==null?(C=C.index,C<T?(x.flags|=67108866,T):C):(x.flags|=67108866,T)):(x.flags|=1048576,T)}function d(x){return e&&x.alternate===null&&(x.flags|=67108866),x}function v(x,T,C,Y){return T===null||T.tag!==6?(T=Ou(C,x.mode,Y),T.return=x,T):(T=s(T,C),T.return=x,T)}function S(x,T,C,Y){var fe=C.type;return fe===V?j(x,T,C.props.children,Y,C.key):T!==null&&(T.elementType===fe||typeof fe=="object"&&fe!==null&&fe.$$typeof===ae&&pl(fe)===T.type)?(T=s(T,C.props),Ai(T,C),T.return=x,T):(T=Nr(C.type,C.key,C.props,null,x.mode,Y),Ai(T,C),T.return=x,T)}function z(x,T,C,Y){return T===null||T.tag!==4||T.stateNode.containerInfo!==C.containerInfo||T.stateNode.implementation!==C.implementation?(T=Au(C,x.mode,Y),T.return=x,T):(T=s(T,C.children||[]),T.return=x,T)}function j(x,T,C,Y,fe){return T===null||T.tag!==7?(T=fl(C,x.mode,Y,fe),T.return=x,T):(T=s(T,C),T.return=x,T)}function Q(x,T,C){if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return T=Ou(""+T,x.mode,C),T.return=x,T;if(typeof T=="object"&&T!==null){switch(T.$$typeof){case D:return C=Nr(T.type,T.key,T.props,null,x.mode,C),Ai(C,T),C.return=x,C;case H:return T=Au(T,x.mode,C),T.return=x,T;case ae:return T=pl(T),Q(x,T,C)}if(_e(T)||Ae(T))return T=fl(T,x.mode,C,null),T.return=x,T;if(typeof T.then=="function")return Q(x,Yr(T),C);if(T.$$typeof===W)return Q(x,Br(x,T),C);Qr(x,T)}return null}function N(x,T,C,Y){var fe=T!==null?T.key:null;if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return fe!==null?null:v(x,T,""+C,Y);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case D:return C.key===fe?S(x,T,C,Y):null;case H:return C.key===fe?z(x,T,C,Y):null;case ae:return C=pl(C),N(x,T,C,Y)}if(_e(C)||Ae(C))return fe!==null?null:j(x,T,C,Y,null);if(typeof C.then=="function")return N(x,T,Yr(C),Y);if(C.$$typeof===W)return N(x,T,Br(x,C),Y);Qr(x,C)}return null}function L(x,T,C,Y,fe){if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return x=x.get(C)||null,v(T,x,""+Y,fe);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case D:return x=x.get(Y.key===null?C:Y.key)||null,S(T,x,Y,fe);case H:return x=x.get(Y.key===null?C:Y.key)||null,z(T,x,Y,fe);case ae:return Y=pl(Y),L(x,T,C,Y,fe)}if(_e(Y)||Ae(Y))return x=x.get(C)||null,j(T,x,Y,fe,null);if(typeof Y.then=="function")return L(x,T,C,Yr(Y),fe);if(Y.$$typeof===W)return L(x,T,C,Br(T,Y),fe);Qr(T,Y)}return null}function le(x,T,C,Y){for(var fe=null,Ge=null,ie=T,xe=T=0,Ue=null;ie!==null&&xe<C.length;xe++){ie.index>xe?(Ue=ie,ie=null):Ue=ie.sibling;var Xe=N(x,ie,C[xe],Y);if(Xe===null){ie===null&&(ie=Ue);break}e&&ie&&Xe.alternate===null&&t(x,ie),T=o(Xe,T,xe),Ge===null?fe=Xe:Ge.sibling=Xe,Ge=Xe,ie=Ue}if(xe===C.length)return n(x,ie),qe&&ua(x,xe),fe;if(ie===null){for(;xe<C.length;xe++)ie=Q(x,C[xe],Y),ie!==null&&(T=o(ie,T,xe),Ge===null?fe=ie:Ge.sibling=ie,Ge=ie);return qe&&ua(x,xe),fe}for(ie=l(ie);xe<C.length;xe++)Ue=L(ie,x,xe,C[xe],Y),Ue!==null&&(e&&Ue.alternate!==null&&ie.delete(Ue.key===null?xe:Ue.key),T=o(Ue,T,xe),Ge===null?fe=Ue:Ge.sibling=Ue,Ge=Ue);return e&&ie.forEach(function(Ka){return t(x,Ka)}),qe&&ua(x,xe),fe}function me(x,T,C,Y){if(C==null)throw Error(u(151));for(var fe=null,Ge=null,ie=T,xe=T=0,Ue=null,Xe=C.next();ie!==null&&!Xe.done;xe++,Xe=C.next()){ie.index>xe?(Ue=ie,ie=null):Ue=ie.sibling;var Ka=N(x,ie,Xe.value,Y);if(Ka===null){ie===null&&(ie=Ue);break}e&&ie&&Ka.alternate===null&&t(x,ie),T=o(Ka,T,xe),Ge===null?fe=Ka:Ge.sibling=Ka,Ge=Ka,ie=Ue}if(Xe.done)return n(x,ie),qe&&ua(x,xe),fe;if(ie===null){for(;!Xe.done;xe++,Xe=C.next())Xe=Q(x,Xe.value,Y),Xe!==null&&(T=o(Xe,T,xe),Ge===null?fe=Xe:Ge.sibling=Xe,Ge=Xe);return qe&&ua(x,xe),fe}for(ie=l(ie);!Xe.done;xe++,Xe=C.next())Xe=L(ie,x,xe,Xe.value,Y),Xe!==null&&(e&&Xe.alternate!==null&&ie.delete(Xe.key===null?xe:Xe.key),T=o(Xe,T,xe),Ge===null?fe=Xe:Ge.sibling=Xe,Ge=Xe);return e&&ie.forEach(function(n0){return t(x,n0)}),qe&&ua(x,xe),fe}function We(x,T,C,Y){if(typeof C=="object"&&C!==null&&C.type===V&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case D:e:{for(var fe=C.key;T!==null;){if(T.key===fe){if(fe=C.type,fe===V){if(T.tag===7){n(x,T.sibling),Y=s(T,C.props.children),Y.return=x,x=Y;break e}}else if(T.elementType===fe||typeof fe=="object"&&fe!==null&&fe.$$typeof===ae&&pl(fe)===T.type){n(x,T.sibling),Y=s(T,C.props),Ai(Y,C),Y.return=x,x=Y;break e}n(x,T);break}else t(x,T);T=T.sibling}C.type===V?(Y=fl(C.props.children,x.mode,Y,C.key),Y.return=x,x=Y):(Y=Nr(C.type,C.key,C.props,null,x.mode,Y),Ai(Y,C),Y.return=x,x=Y)}return d(x);case H:e:{for(fe=C.key;T!==null;){if(T.key===fe)if(T.tag===4&&T.stateNode.containerInfo===C.containerInfo&&T.stateNode.implementation===C.implementation){n(x,T.sibling),Y=s(T,C.children||[]),Y.return=x,x=Y;break e}else{n(x,T);break}else t(x,T);T=T.sibling}Y=Au(C,x.mode,Y),Y.return=x,x=Y}return d(x);case ae:return C=pl(C),We(x,T,C,Y)}if(_e(C))return le(x,T,C,Y);if(Ae(C)){if(fe=Ae(C),typeof fe!="function")throw Error(u(150));return C=fe.call(C),me(x,T,C,Y)}if(typeof C.then=="function")return We(x,T,Yr(C),Y);if(C.$$typeof===W)return We(x,T,Br(x,C),Y);Qr(x,C)}return typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint"?(C=""+C,T!==null&&T.tag===6?(n(x,T.sibling),Y=s(T,C),Y.return=x,x=Y):(n(x,T),Y=Ou(C,x.mode,Y),Y.return=x,x=Y),d(x)):n(x,T)}return function(x,T,C,Y){try{Oi=0;var fe=We(x,T,C,Y);return Gl=null,fe}catch(ie){if(ie===Vl||ie===jr)throw ie;var Ge=ln(29,ie,null,x.mode);return Ge.lanes=Y,Ge.return=x,Ge}}}var gl=id(!0),rd=id(!1),Ma=!1;function Yu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Qu(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 Da(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ca(e,t,n){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(ke&2)!==0){var s=l.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),l.pending=t,t=zr(e),Gf(e,null,n),t}return Cr(e,l,t,n),zr(e)}function Mi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,b(e,n)}}function Vu(e,t){var n=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var s=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var d={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?s=o=d:o=o.next=d,n=n.next}while(n!==null);o===null?s=o=t:o=o.next=t}else s=o=t;n={baseState:l.baseState,firstBaseUpdate:s,lastBaseUpdate:o,shared:l.shared,callbacks:l.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Gu=!1;function Di(){if(Gu){var e=Ql;if(e!==null)throw e}}function Ci(e,t,n,l){Gu=!1;var s=e.updateQueue;Ma=!1;var o=s.firstBaseUpdate,d=s.lastBaseUpdate,v=s.shared.pending;if(v!==null){s.shared.pending=null;var S=v,z=S.next;S.next=null,d===null?o=z:d.next=z,d=S;var j=e.alternate;j!==null&&(j=j.updateQueue,v=j.lastBaseUpdate,v!==d&&(v===null?j.firstBaseUpdate=z:v.next=z,j.lastBaseUpdate=S))}if(o!==null){var Q=s.baseState;d=0,j=z=S=null,v=o;do{var N=v.lane&-536870913,L=N!==v.lane;if(L?(Ne&N)===N:(l&N)===N){N!==0&&N===Yl&&(Gu=!0),j!==null&&(j=j.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var le=e,me=v;N=t;var We=n;switch(me.tag){case 1:if(le=me.payload,typeof le=="function"){Q=le.call(We,Q,N);break e}Q=le;break e;case 3:le.flags=le.flags&-65537|128;case 0:if(le=me.payload,N=typeof le=="function"?le.call(We,Q,N):le,N==null)break e;Q=p({},Q,N);break e;case 2:Ma=!0}}N=v.callback,N!==null&&(e.flags|=64,L&&(e.flags|=8192),L=s.callbacks,L===null?s.callbacks=[N]:L.push(N))}else L={lane:N,tag:v.tag,payload:v.payload,callback:v.callback,next:null},j===null?(z=j=L,S=Q):j=j.next=L,d|=N;if(v=v.next,v===null){if(v=s.shared.pending,v===null)break;L=v,v=L.next,L.next=null,s.lastBaseUpdate=L,s.shared.pending=null}}while(!0);j===null&&(S=Q),s.baseState=S,s.firstBaseUpdate=z,s.lastBaseUpdate=j,o===null&&(s.shared.lanes=0),Ba|=d,e.lanes=d,e.memoizedState=Q}}function sd(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function ud(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)sd(n[e],t)}var Xl=_(null),Vr=_(0);function od(e,t){e=ba,q(Vr,e),q(Xl,t),ba=e|t.baseLanes}function Xu(){q(Vr,ba),q(Xl,Xl.current)}function ku(){ba=Vr.current,B(Xl),B(Vr)}var rn=_(null),wn=null;function za(e){var t=e.alternate;q(vt,vt.current&1),q(rn,e),wn===null&&(t===null||Xl.current!==null||t.memoizedState!==null)&&(wn=e)}function Ku(e){q(vt,vt.current),q(rn,e),wn===null&&(wn=e)}function cd(e){e.tag===22?(q(vt,vt.current),q(rn,e),wn===null&&(wn=e)):Na()}function Na(){q(vt,vt.current),q(rn,rn.current)}function sn(e){B(rn),wn===e&&(wn=null),B(vt)}var vt=_(0);function Gr(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Io(n)||ec(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var fa=0,Re=null,$e=null,Et=null,Xr=!1,kl=!1,bl=!1,kr=0,zi=0,Kl=null,Kv=0;function dt(){throw Error(u(321))}function Zu(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!an(e[n],t[n]))return!1;return!0}function Ju(e,t,n,l,s,o){return fa=o,Re=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,O.H=e===null||e.memoizedState===null?Zd:oo,bl=!1,o=n(l,s),bl=!1,kl&&(o=dd(t,n,l,s)),fd(e),o}function fd(e){O.H=Li;var t=$e!==null&&$e.next!==null;if(fa=0,Et=$e=Re=null,Xr=!1,zi=0,Kl=null,t)throw Error(u(300));e===null||_t||(e=e.dependencies,e!==null&&Lr(e)&&(_t=!0))}function dd(e,t,n,l){Re=e;var s=0;do{if(kl&&(Kl=null),zi=0,kl=!1,25<=s)throw Error(u(301));if(s+=1,Et=$e=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}O.H=Jd,o=t(n,l)}while(kl);return o}function Zv(){var e=O.H,t=e.useState()[0];return t=typeof t.then=="function"?Ni(t):t,e=e.useState()[0],($e!==null?$e.memoizedState:null)!==e&&(Re.flags|=1024),t}function Fu(){var e=kr!==0;return kr=0,e}function $u(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Pu(e){if(Xr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Xr=!1}fa=0,Et=$e=Re=null,kl=!1,zi=kr=0,Kl=null}function Qt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Et===null?Re.memoizedState=Et=e:Et=Et.next=e,Et}function gt(){if($e===null){var e=Re.alternate;e=e!==null?e.memoizedState:null}else e=$e.next;var t=Et===null?Re.memoizedState:Et.next;if(t!==null)Et=t,$e=e;else{if(e===null)throw Re.alternate===null?Error(u(467)):Error(u(310));$e=e,e={memoizedState:$e.memoizedState,baseState:$e.baseState,baseQueue:$e.baseQueue,queue:$e.queue,next:null},Et===null?Re.memoizedState=Et=e:Et=Et.next=e}return Et}function Kr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ni(e){var t=zi;return zi+=1,Kl===null&&(Kl=[]),e=nd(Kl,e,t),t=Re,(Et===null?t.memoizedState:Et.next)===null&&(t=t.alternate,O.H=t===null||t.memoizedState===null?Zd:oo),e}function Zr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ni(e);if(e.$$typeof===W)return Nt(e)}throw Error(u(438,String(e)))}function Wu(e){var t=null,n=Re.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var l=Re.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(s){return s.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Kr(),Re.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),l=0;l<e;l++)n[l]=ze;return t.index++,n}function da(e,t){return typeof t=="function"?t(e):t}function Jr(e){var t=gt();return Iu(t,$e,e)}function Iu(e,t,n){var l=e.queue;if(l===null)throw Error(u(311));l.lastRenderedReducer=n;var s=e.baseQueue,o=l.pending;if(o!==null){if(s!==null){var d=s.next;s.next=o.next,o.next=d}t.baseQueue=s=o,l.pending=null}if(o=e.baseState,s===null)e.memoizedState=o;else{t=s.next;var v=d=null,S=null,z=t,j=!1;do{var Q=z.lane&-536870913;if(Q!==z.lane?(Ne&Q)===Q:(fa&Q)===Q){var N=z.revertLane;if(N===0)S!==null&&(S=S.next={lane:0,revertLane:0,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),Q===Yl&&(j=!0);else if((fa&N)===N){z=z.next,N===Yl&&(j=!0);continue}else Q={lane:0,revertLane:z.revertLane,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},S===null?(v=S=Q,d=o):S=S.next=Q,Re.lanes|=N,Ba|=N;Q=z.action,bl&&n(o,Q),o=z.hasEagerState?z.eagerState:n(o,Q)}else N={lane:Q,revertLane:z.revertLane,gesture:z.gesture,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},S===null?(v=S=N,d=o):S=S.next=N,Re.lanes|=Q,Ba|=Q;z=z.next}while(z!==null&&z!==t);if(S===null?d=o:S.next=v,!an(o,e.memoizedState)&&(_t=!0,j&&(n=Ql,n!==null)))throw n;e.memoizedState=o,e.baseState=d,e.baseQueue=S,l.lastRenderedState=o}return s===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function eo(e){var t=gt(),n=t.queue;if(n===null)throw Error(u(311));n.lastRenderedReducer=e;var l=n.dispatch,s=n.pending,o=t.memoizedState;if(s!==null){n.pending=null;var d=s=s.next;do o=e(o,d.action),d=d.next;while(d!==s);an(o,t.memoizedState)||(_t=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,l]}function hd(e,t,n){var l=Re,s=gt(),o=qe;if(o){if(n===void 0)throw Error(u(407));n=n()}else n=t();var d=!an(($e||s).memoizedState,n);if(d&&(s.memoizedState=n,_t=!0),s=s.queue,ao(pd.bind(null,l,s,e),[e]),s.getSnapshot!==t||d||Et!==null&&Et.memoizedState.tag&1){if(l.flags|=2048,Zl(9,{destroy:void 0},yd.bind(null,l,s,n,t),null),et===null)throw Error(u(349));o||(fa&127)!==0||md(l,t,n)}return n}function md(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Re.updateQueue,t===null?(t=Kr(),Re.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function yd(e,t,n,l){t.value=n,t.getSnapshot=l,vd(t)&&gd(e)}function pd(e,t,n){return n(function(){vd(t)&&gd(e)})}function vd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!an(e,n)}catch{return!0}}function gd(e){var t=cl(e,2);t!==null&&Wt(t,e,2)}function to(e){var t=Qt();if(typeof e=="function"){var n=e;if(e=n(),bl){kt(!0);try{n()}finally{kt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:da,lastRenderedState:e},t}function bd(e,t,n,l){return e.baseState=n,Iu(e,$e,typeof l=="function"?l:da)}function Jv(e,t,n,l,s){if(Pr(e))throw Error(u(485));if(e=t.action,e!==null){var o={payload:s,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){o.listeners.push(d)}};O.T!==null?n(!0):o.isTransition=!1,l(o),n=t.pending,n===null?(o.next=t.pending=o,Sd(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Sd(e,t){var n=t.action,l=t.payload,s=e.state;if(t.isTransition){var o=O.T,d={};O.T=d;try{var v=n(s,l),S=O.S;S!==null&&S(d,v),Ed(e,t,v)}catch(z){no(e,t,z)}finally{o!==null&&d.types!==null&&(o.types=d.types),O.T=o}}else try{o=n(s,l),Ed(e,t,o)}catch(z){no(e,t,z)}}function Ed(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){_d(e,t,l)},function(l){return no(e,t,l)}):_d(e,t,n)}function _d(e,t,n){t.status="fulfilled",t.value=n,Td(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Sd(e,n)))}function no(e,t,n){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=n,Td(t),t=t.next;while(t!==l)}e.action=null}function Td(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function wd(e,t){return t}function Rd(e,t){if(qe){var n=et.formState;if(n!==null){e:{var l=Re;if(qe){if(lt){t:{for(var s=lt,o=Tn;s.nodeType!==8;){if(!o){s=null;break t}if(s=Rn(s.nextSibling),s===null){s=null;break t}}o=s.data,s=o==="F!"||o==="F"?s:null}if(s){lt=Rn(s.nextSibling),l=s.data==="F!";break e}}Oa(l)}l=!1}l&&(t=n[0])}}return n=Qt(),n.memoizedState=n.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:wd,lastRenderedState:t},n.queue=l,n=Xd.bind(null,Re,l),l.dispatch=n,l=to(!1),o=uo.bind(null,Re,!1,l.queue),l=Qt(),s={state:t,dispatch:null,action:e,pending:null},l.queue=s,n=Jv.bind(null,Re,s,o,n),s.dispatch=n,l.memoizedState=e,[t,n,!1]}function xd(e){var t=gt();return Od(t,$e,e)}function Od(e,t,n){if(t=Iu(e,t,wd)[0],e=Jr(da)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=Ni(t)}catch(d){throw d===Vl?jr:d}else l=t;t=gt();var s=t.queue,o=s.dispatch;return n!==t.memoizedState&&(Re.flags|=2048,Zl(9,{destroy:void 0},Fv.bind(null,s,n),null)),[l,o,e]}function Fv(e,t){e.action=t}function Ad(e){var t=gt(),n=$e;if(n!==null)return Od(t,n,e);gt(),t=t.memoizedState,n=gt();var l=n.queue.dispatch;return n.memoizedState=e,[t,l,!1]}function Zl(e,t,n,l){return e={tag:e,create:n,deps:l,inst:t,next:null},t=Re.updateQueue,t===null&&(t=Kr(),Re.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(l=n.next,n.next=e,e.next=l,t.lastEffect=e),e}function Md(){return gt().memoizedState}function Fr(e,t,n,l){var s=Qt();Re.flags|=e,s.memoizedState=Zl(1|t,{destroy:void 0},n,l===void 0?null:l)}function $r(e,t,n,l){var s=gt();l=l===void 0?null:l;var o=s.memoizedState.inst;$e!==null&&l!==null&&Zu(l,$e.memoizedState.deps)?s.memoizedState=Zl(t,o,n,l):(Re.flags|=e,s.memoizedState=Zl(1|t,o,n,l))}function Dd(e,t){Fr(8390656,8,e,t)}function ao(e,t){$r(2048,8,e,t)}function $v(e){Re.flags|=4;var t=Re.updateQueue;if(t===null)t=Kr(),Re.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Cd(e){var t=gt().memoizedState;return $v({ref:t,nextImpl:e}),function(){if((ke&2)!==0)throw Error(u(440));return t.impl.apply(void 0,arguments)}}function zd(e,t){return $r(4,2,e,t)}function Nd(e,t){return $r(4,4,e,t)}function Ud(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Ld(e,t,n){n=n!=null?n.concat([e]):null,$r(4,4,Ud.bind(null,t,e),n)}function lo(){}function Bd(e,t){var n=gt();t=t===void 0?null:t;var l=n.memoizedState;return t!==null&&Zu(t,l[1])?l[0]:(n.memoizedState=[e,t],e)}function Hd(e,t){var n=gt();t=t===void 0?null:t;var l=n.memoizedState;if(t!==null&&Zu(t,l[1]))return l[0];if(l=e(),bl){kt(!0);try{e()}finally{kt(!1)}}return n.memoizedState=[l,t],l}function io(e,t,n){return n===void 0||(fa&1073741824)!==0&&(Ne&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=jh(),Re.lanes|=e,Ba|=e,n)}function jd(e,t,n,l){return an(n,t)?n:Xl.current!==null?(e=io(e,n,l),an(e,t)||(_t=!0),e):(fa&42)===0||(fa&1073741824)!==0&&(Ne&261930)===0?(_t=!0,e.memoizedState=n):(e=jh(),Re.lanes|=e,Ba|=e,t)}function qd(e,t,n,l,s){var o=k.p;k.p=o!==0&&8>o?o:8;var d=O.T,v={};O.T=v,uo(e,!1,t,n);try{var S=s(),z=O.S;if(z!==null&&z(v,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var j=kv(S,l);Ui(e,t,j,cn(e))}else Ui(e,t,l,cn(e))}catch(Q){Ui(e,t,{then:function(){},status:"rejected",reason:Q},cn())}finally{k.p=o,d!==null&&v.types!==null&&(d.types=v.types),O.T=d}}function Pv(){}function ro(e,t,n,l){if(e.tag!==5)throw Error(u(476));var s=Yd(e).queue;qd(e,s,t,F,n===null?Pv:function(){return Qd(e),n(l)})}function Yd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:F,baseState:F,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:da,lastRenderedState:F},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:da,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Qd(e){var t=Yd(e);t.next===null&&(t=e.alternate.memoizedState),Ui(e,t.next.queue,{},cn())}function so(){return Nt(Pi)}function Vd(){return gt().memoizedState}function Gd(){return gt().memoizedState}function Wv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=cn();e=Da(n);var l=Ca(t,e,n);l!==null&&(Wt(l,t,n),Mi(l,t,n)),t={cache:Bu()},e.payload=t;return}t=t.return}}function Iv(e,t,n){var l=cn();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Pr(e)?kd(t,n):(n=Ru(e,t,n,l),n!==null&&(Wt(n,e,l),Kd(n,t,l)))}function Xd(e,t,n){var l=cn();Ui(e,t,n,l)}function Ui(e,t,n,l){var s={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Pr(e))kd(t,s);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var d=t.lastRenderedState,v=o(d,n);if(s.hasEagerState=!0,s.eagerState=v,an(v,d))return Cr(e,t,s,0),et===null&&Dr(),!1}catch{}if(n=Ru(e,t,s,l),n!==null)return Wt(n,e,l),Kd(n,t,l),!0}return!1}function uo(e,t,n,l){if(l={lane:2,revertLane:Qo(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Pr(e)){if(t)throw Error(u(479))}else t=Ru(e,n,l,2),t!==null&&Wt(t,e,2)}function Pr(e){var t=e.alternate;return e===Re||t!==null&&t===Re}function kd(e,t){kl=Xr=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Kd(e,t,n){if((n&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,b(e,n)}}var Li={readContext:Nt,use:Zr,useCallback:dt,useContext:dt,useEffect:dt,useImperativeHandle:dt,useLayoutEffect:dt,useInsertionEffect:dt,useMemo:dt,useReducer:dt,useRef:dt,useState:dt,useDebugValue:dt,useDeferredValue:dt,useTransition:dt,useSyncExternalStore:dt,useId:dt,useHostTransitionStatus:dt,useFormState:dt,useActionState:dt,useOptimistic:dt,useMemoCache:dt,useCacheRefresh:dt};Li.useEffectEvent=dt;var Zd={readContext:Nt,use:Zr,useCallback:function(e,t){return Qt().memoizedState=[e,t===void 0?null:t],e},useContext:Nt,useEffect:Dd,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Fr(4194308,4,Ud.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Fr(4194308,4,e,t)},useInsertionEffect:function(e,t){Fr(4,2,e,t)},useMemo:function(e,t){var n=Qt();t=t===void 0?null:t;var l=e();if(bl){kt(!0);try{e()}finally{kt(!1)}}return n.memoizedState=[l,t],l},useReducer:function(e,t,n){var l=Qt();if(n!==void 0){var s=n(t);if(bl){kt(!0);try{n(t)}finally{kt(!1)}}}else s=t;return l.memoizedState=l.baseState=s,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},l.queue=e,e=e.dispatch=Iv.bind(null,Re,e),[l.memoizedState,e]},useRef:function(e){var t=Qt();return e={current:e},t.memoizedState=e},useState:function(e){e=to(e);var t=e.queue,n=Xd.bind(null,Re,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:lo,useDeferredValue:function(e,t){var n=Qt();return io(n,e,t)},useTransition:function(){var e=to(!1);return e=qd.bind(null,Re,e.queue,!0,!1),Qt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var l=Re,s=Qt();if(qe){if(n===void 0)throw Error(u(407));n=n()}else{if(n=t(),et===null)throw Error(u(349));(Ne&127)!==0||md(l,t,n)}s.memoizedState=n;var o={value:n,getSnapshot:t};return s.queue=o,Dd(pd.bind(null,l,o,e),[e]),l.flags|=2048,Zl(9,{destroy:void 0},yd.bind(null,l,o,n,t),null),n},useId:function(){var e=Qt(),t=et.identifierPrefix;if(qe){var n=Kn,l=kn;n=(l&~(1<<32-Rt(l)-1)).toString(32)+n,t="_"+t+"R_"+n,n=kr++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=Kv++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:so,useFormState:Rd,useActionState:Rd,useOptimistic:function(e){var t=Qt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=uo.bind(null,Re,!0,n),n.dispatch=t,[e,t]},useMemoCache:Wu,useCacheRefresh:function(){return Qt().memoizedState=Wv.bind(null,Re)},useEffectEvent:function(e){var t=Qt(),n={impl:e};return t.memoizedState=n,function(){if((ke&2)!==0)throw Error(u(440));return n.impl.apply(void 0,arguments)}}},oo={readContext:Nt,use:Zr,useCallback:Bd,useContext:Nt,useEffect:ao,useImperativeHandle:Ld,useInsertionEffect:zd,useLayoutEffect:Nd,useMemo:Hd,useReducer:Jr,useRef:Md,useState:function(){return Jr(da)},useDebugValue:lo,useDeferredValue:function(e,t){var n=gt();return jd(n,$e.memoizedState,e,t)},useTransition:function(){var e=Jr(da)[0],t=gt().memoizedState;return[typeof e=="boolean"?e:Ni(e),t]},useSyncExternalStore:hd,useId:Vd,useHostTransitionStatus:so,useFormState:xd,useActionState:xd,useOptimistic:function(e,t){var n=gt();return bd(n,$e,e,t)},useMemoCache:Wu,useCacheRefresh:Gd};oo.useEffectEvent=Cd;var Jd={readContext:Nt,use:Zr,useCallback:Bd,useContext:Nt,useEffect:ao,useImperativeHandle:Ld,useInsertionEffect:zd,useLayoutEffect:Nd,useMemo:Hd,useReducer:eo,useRef:Md,useState:function(){return eo(da)},useDebugValue:lo,useDeferredValue:function(e,t){var n=gt();return $e===null?io(n,e,t):jd(n,$e.memoizedState,e,t)},useTransition:function(){var e=eo(da)[0],t=gt().memoizedState;return[typeof e=="boolean"?e:Ni(e),t]},useSyncExternalStore:hd,useId:Vd,useHostTransitionStatus:so,useFormState:Ad,useActionState:Ad,useOptimistic:function(e,t){var n=gt();return $e!==null?bd(n,$e,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Wu,useCacheRefresh:Gd};Jd.useEffectEvent=Cd;function co(e,t,n,l){t=e.memoizedState,n=n(l,t),n=n==null?t:p({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var fo={enqueueSetState:function(e,t,n){e=e._reactInternals;var l=cn(),s=Da(l);s.payload=t,n!=null&&(s.callback=n),t=Ca(e,s,l),t!==null&&(Wt(t,e,l),Mi(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var l=cn(),s=Da(l);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=Ca(e,s,l),t!==null&&(Wt(t,e,l),Mi(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=cn(),l=Da(n);l.tag=2,t!=null&&(l.callback=t),t=Ca(e,l,n),t!==null&&(Wt(t,e,n),Mi(t,e,n))}};function Fd(e,t,n,l,s,o,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,o,d):t.prototype&&t.prototype.isPureReactComponent?!Ei(n,l)||!Ei(s,o):!0}function $d(e,t,n,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,l),t.state!==e&&fo.enqueueReplaceState(t,t.state,null)}function Sl(e,t){var n=t;if("ref"in t){n={};for(var l in t)l!=="ref"&&(n[l]=t[l])}if(e=e.defaultProps){n===t&&(n=p({},n));for(var s in e)n[s]===void 0&&(n[s]=e[s])}return n}function Pd(e){Mr(e)}function Wd(e){console.error(e)}function Id(e){Mr(e)}function Wr(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function eh(e,t,n){try{var l=e.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function ho(e,t,n){return n=Da(n),n.tag=3,n.payload={element:null},n.callback=function(){Wr(e,t)},n}function th(e){return e=Da(e),e.tag=3,e}function nh(e,t,n,l){var s=n.type.getDerivedStateFromError;if(typeof s=="function"){var o=l.value;e.payload=function(){return s(o)},e.callback=function(){eh(t,n,l)}}var d=n.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(e.callback=function(){eh(t,n,l),typeof s!="function"&&(Ha===null?Ha=new Set([this]):Ha.add(this));var v=l.stack;this.componentDidCatch(l.value,{componentStack:v!==null?v:""})})}function eg(e,t,n,l,s){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=n.alternate,t!==null&&ql(t,n,s,!0),n=rn.current,n!==null){switch(n.tag){case 31:case 13:return wn===null?cs():n.alternate===null&&ht===0&&(ht=3),n.flags&=-257,n.flags|=65536,n.lanes=s,l===qr?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([l]):t.add(l),jo(e,l,s)),!1;case 22:return n.flags|=65536,l===qr?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([l]):n.add(l)),jo(e,l,s)),!1}throw Error(u(435,n.tag))}return jo(e,l,s),cs(),!1}if(qe)return t=rn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=s,l!==Cu&&(e=Error(u(422),{cause:l}),wi(Sn(e,n)))):(l!==Cu&&(t=Error(u(423),{cause:l}),wi(Sn(t,n))),e=e.current.alternate,e.flags|=65536,s&=-s,e.lanes|=s,l=Sn(l,n),s=ho(e.stateNode,l,s),Vu(e,s),ht!==4&&(ht=2)),!1;var o=Error(u(520),{cause:l});if(o=Sn(o,n),Gi===null?Gi=[o]:Gi.push(o),ht!==4&&(ht=2),t===null)return!0;l=Sn(l,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=s&-s,n.lanes|=e,e=ho(n.stateNode,l,e),Vu(n,e),!1;case 1:if(t=n.type,o=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(Ha===null||!Ha.has(o))))return n.flags|=65536,s&=-s,n.lanes|=s,s=th(s),nh(s,e,n,l),Vu(n,s),!1}n=n.return}while(n!==null);return!1}var mo=Error(u(461)),_t=!1;function Ut(e,t,n,l){t.child=e===null?rd(t,null,n,l):gl(t,e.child,n,l)}function ah(e,t,n,l,s){n=n.render;var o=t.ref;if("ref"in l){var d={};for(var v in l)v!=="ref"&&(d[v]=l[v])}else d=l;return ml(t),l=Ju(e,t,n,d,o,s),v=Fu(),e!==null&&!_t?($u(e,t,s),ha(e,t,s)):(qe&&v&&Mu(t),t.flags|=1,Ut(e,t,l,s),t.child)}function lh(e,t,n,l,s){if(e===null){var o=n.type;return typeof o=="function"&&!xu(o)&&o.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=o,ih(e,t,o,l,s)):(e=Nr(n.type,null,l,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!_o(e,s)){var d=o.memoizedProps;if(n=n.compare,n=n!==null?n:Ei,n(d,l)&&e.ref===t.ref)return ha(e,t,s)}return t.flags|=1,e=sa(o,l),e.ref=t.ref,e.return=t,t.child=e}function ih(e,t,n,l,s){if(e!==null){var o=e.memoizedProps;if(Ei(o,l)&&e.ref===t.ref)if(_t=!1,t.pendingProps=l=o,_o(e,s))(e.flags&131072)!==0&&(_t=!0);else return t.lanes=e.lanes,ha(e,t,s)}return yo(e,t,n,l,s)}function rh(e,t,n,l){var s=l.children,o=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(o=o!==null?o.baseLanes|n:n,e!==null){for(l=t.child=e.child,s=0;l!==null;)s=s|l.lanes|l.childLanes,l=l.sibling;l=s&~o}else l=0,t.child=null;return sh(e,t,o,n,l)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Hr(t,o!==null?o.cachePool:null),o!==null?od(t,o):Xu(),cd(t);else return l=t.lanes=536870912,sh(e,t,o!==null?o.baseLanes|n:n,n,l)}else o!==null?(Hr(t,o.cachePool),od(t,o),Na(),t.memoizedState=null):(e!==null&&Hr(t,null),Xu(),Na());return Ut(e,t,s,n),t.child}function Bi(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function sh(e,t,n,l,s){var o=ju();return o=o===null?null:{parent:St._currentValue,pool:o},t.memoizedState={baseLanes:n,cachePool:o},e!==null&&Hr(t,null),Xu(),cd(t),e!==null&&ql(e,t,l,!0),t.childLanes=s,null}function Ir(e,t){return t=ts({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function uh(e,t,n){return gl(t,e.child,null,n),e=Ir(t,t.pendingProps),e.flags|=2,sn(t),t.memoizedState=null,e}function tg(e,t,n){var l=t.pendingProps,s=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(qe){if(l.mode==="hidden")return e=Ir(t,l),t.lanes=536870912,Bi(null,e);if(Ku(t),(e=lt)?(e=Sm(e,Tn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ra!==null?{id:kn,overflow:Kn}:null,retryLane:536870912,hydrationErrors:null},n=kf(e),n.return=t,t.child=n,zt=t,lt=null)):e=null,e===null)throw Oa(t);return t.lanes=536870912,null}return Ir(t,l)}var o=e.memoizedState;if(o!==null){var d=o.dehydrated;if(Ku(t),s)if(t.flags&256)t.flags&=-257,t=uh(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(u(558));else if(_t||ql(e,t,n,!1),s=(n&e.childLanes)!==0,_t||s){if(l=et,l!==null&&(d=w(l,n),d!==0&&d!==o.retryLane))throw o.retryLane=d,cl(e,d),Wt(l,e,d),mo;cs(),t=uh(e,t,n)}else e=o.treeContext,lt=Rn(d.nextSibling),zt=t,qe=!0,xa=null,Tn=!1,e!==null&&Jf(t,e),t=Ir(t,l),t.flags|=4096;return t}return e=sa(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function es(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(u(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function yo(e,t,n,l,s){return ml(t),n=Ju(e,t,n,l,void 0,s),l=Fu(),e!==null&&!_t?($u(e,t,s),ha(e,t,s)):(qe&&l&&Mu(t),t.flags|=1,Ut(e,t,n,s),t.child)}function oh(e,t,n,l,s,o){return ml(t),t.updateQueue=null,n=dd(t,l,n,s),fd(e),l=Fu(),e!==null&&!_t?($u(e,t,o),ha(e,t,o)):(qe&&l&&Mu(t),t.flags|=1,Ut(e,t,n,o),t.child)}function ch(e,t,n,l,s){if(ml(t),t.stateNode===null){var o=Ll,d=n.contextType;typeof d=="object"&&d!==null&&(o=Nt(d)),o=new n(l,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=fo,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=l,o.state=t.memoizedState,o.refs={},Yu(t),d=n.contextType,o.context=typeof d=="object"&&d!==null?Nt(d):Ll,o.state=t.memoizedState,d=n.getDerivedStateFromProps,typeof d=="function"&&(co(t,n,d,l),o.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(d=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),d!==o.state&&fo.enqueueReplaceState(o,o.state,null),Ci(t,l,o,s),Di(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){o=t.stateNode;var v=t.memoizedProps,S=Sl(n,v);o.props=S;var z=o.context,j=n.contextType;d=Ll,typeof j=="object"&&j!==null&&(d=Nt(j));var Q=n.getDerivedStateFromProps;j=typeof Q=="function"||typeof o.getSnapshotBeforeUpdate=="function",v=t.pendingProps!==v,j||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(v||z!==d)&&$d(t,o,l,d),Ma=!1;var N=t.memoizedState;o.state=N,Ci(t,l,o,s),Di(),z=t.memoizedState,v||N!==z||Ma?(typeof Q=="function"&&(co(t,n,Q,l),z=t.memoizedState),(S=Ma||Fd(t,n,S,l,N,z,d))?(j||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=z),o.props=l,o.state=z,o.context=d,l=S):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{o=t.stateNode,Qu(e,t),d=t.memoizedProps,j=Sl(n,d),o.props=j,Q=t.pendingProps,N=o.context,z=n.contextType,S=Ll,typeof z=="object"&&z!==null&&(S=Nt(z)),v=n.getDerivedStateFromProps,(z=typeof v=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(d!==Q||N!==S)&&$d(t,o,l,S),Ma=!1,N=t.memoizedState,o.state=N,Ci(t,l,o,s),Di();var L=t.memoizedState;d!==Q||N!==L||Ma||e!==null&&e.dependencies!==null&&Lr(e.dependencies)?(typeof v=="function"&&(co(t,n,v,l),L=t.memoizedState),(j=Ma||Fd(t,n,j,l,N,L,S)||e!==null&&e.dependencies!==null&&Lr(e.dependencies))?(z||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(l,L,S),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(l,L,S)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||d===e.memoizedProps&&N===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&N===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=L),o.props=l,o.state=L,o.context=S,l=j):(typeof o.componentDidUpdate!="function"||d===e.memoizedProps&&N===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&N===e.memoizedState||(t.flags|=1024),l=!1)}return o=l,es(e,t),l=(t.flags&128)!==0,o||l?(o=t.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:o.render(),t.flags|=1,e!==null&&l?(t.child=gl(t,e.child,null,s),t.child=gl(t,null,n,s)):Ut(e,t,n,s),t.memoizedState=o.state,e=t.child):e=ha(e,t,s),e}function fh(e,t,n,l){return dl(),t.flags|=256,Ut(e,t,n,l),t.child}var po={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function vo(e){return{baseLanes:e,cachePool:ed()}}function go(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=on),e}function dh(e,t,n){var l=t.pendingProps,s=!1,o=(t.flags&128)!==0,d;if((d=o)||(d=e!==null&&e.memoizedState===null?!1:(vt.current&2)!==0),d&&(s=!0,t.flags&=-129),d=(t.flags&32)!==0,t.flags&=-33,e===null){if(qe){if(s?za(t):Na(),(e=lt)?(e=Sm(e,Tn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ra!==null?{id:kn,overflow:Kn}:null,retryLane:536870912,hydrationErrors:null},n=kf(e),n.return=t,t.child=n,zt=t,lt=null)):e=null,e===null)throw Oa(t);return ec(e)?t.lanes=32:t.lanes=536870912,null}var v=l.children;return l=l.fallback,s?(Na(),s=t.mode,v=ts({mode:"hidden",children:v},s),l=fl(l,s,n,null),v.return=t,l.return=t,v.sibling=l,t.child=v,l=t.child,l.memoizedState=vo(n),l.childLanes=go(e,d,n),t.memoizedState=po,Bi(null,l)):(za(t),bo(t,v))}var S=e.memoizedState;if(S!==null&&(v=S.dehydrated,v!==null)){if(o)t.flags&256?(za(t),t.flags&=-257,t=So(e,t,n)):t.memoizedState!==null?(Na(),t.child=e.child,t.flags|=128,t=null):(Na(),v=l.fallback,s=t.mode,l=ts({mode:"visible",children:l.children},s),v=fl(v,s,n,null),v.flags|=2,l.return=t,v.return=t,l.sibling=v,t.child=l,gl(t,e.child,null,n),l=t.child,l.memoizedState=vo(n),l.childLanes=go(e,d,n),t.memoizedState=po,t=Bi(null,l));else if(za(t),ec(v)){if(d=v.nextSibling&&v.nextSibling.dataset,d)var z=d.dgst;d=z,l=Error(u(419)),l.stack="",l.digest=d,wi({value:l,source:null,stack:null}),t=So(e,t,n)}else if(_t||ql(e,t,n,!1),d=(n&e.childLanes)!==0,_t||d){if(d=et,d!==null&&(l=w(d,n),l!==0&&l!==S.retryLane))throw S.retryLane=l,cl(e,l),Wt(d,e,l),mo;Io(v)||cs(),t=So(e,t,n)}else Io(v)?(t.flags|=192,t.child=e.child,t=null):(e=S.treeContext,lt=Rn(v.nextSibling),zt=t,qe=!0,xa=null,Tn=!1,e!==null&&Jf(t,e),t=bo(t,l.children),t.flags|=4096);return t}return s?(Na(),v=l.fallback,s=t.mode,S=e.child,z=S.sibling,l=sa(S,{mode:"hidden",children:l.children}),l.subtreeFlags=S.subtreeFlags&65011712,z!==null?v=sa(z,v):(v=fl(v,s,n,null),v.flags|=2),v.return=t,l.return=t,l.sibling=v,t.child=l,Bi(null,l),l=t.child,v=e.child.memoizedState,v===null?v=vo(n):(s=v.cachePool,s!==null?(S=St._currentValue,s=s.parent!==S?{parent:S,pool:S}:s):s=ed(),v={baseLanes:v.baseLanes|n,cachePool:s}),l.memoizedState=v,l.childLanes=go(e,d,n),t.memoizedState=po,Bi(e.child,l)):(za(t),n=e.child,e=n.sibling,n=sa(n,{mode:"visible",children:l.children}),n.return=t,n.sibling=null,e!==null&&(d=t.deletions,d===null?(t.deletions=[e],t.flags|=16):d.push(e)),t.child=n,t.memoizedState=null,n)}function bo(e,t){return t=ts({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function ts(e,t){return e=ln(22,e,null,t),e.lanes=0,e}function So(e,t,n){return gl(t,e.child,null,n),e=bo(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function hh(e,t,n){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Uu(e.return,t,n)}function Eo(e,t,n,l,s,o){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:s,treeForkCount:o}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=l,d.tail=n,d.tailMode=s,d.treeForkCount=o)}function mh(e,t,n){var l=t.pendingProps,s=l.revealOrder,o=l.tail;l=l.children;var d=vt.current,v=(d&2)!==0;if(v?(d=d&1|2,t.flags|=128):d&=1,q(vt,d),Ut(e,t,l,n),l=qe?Ti:0,!v&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&hh(e,n,t);else if(e.tag===19)hh(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&Gr(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),Eo(t,!1,s,n,o,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Gr(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}Eo(t,!0,n,null,o,l);break;case"together":Eo(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function ha(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ba|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(ql(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(u(153));if(t.child!==null){for(e=t.child,n=sa(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=sa(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function _o(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Lr(e)))}function ng(e,t,n){switch(t.tag){case 3:Se(t,t.stateNode.containerInfo),Aa(t,St,e.memoizedState.cache),dl();break;case 27:case 5:hn(t);break;case 4:Se(t,t.stateNode.containerInfo);break;case 10:Aa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Ku(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(za(t),t.flags|=128,null):(n&t.child.childLanes)!==0?dh(e,t,n):(za(t),e=ha(e,t,n),e!==null?e.sibling:null);za(t);break;case 19:var s=(e.flags&128)!==0;if(l=(n&t.childLanes)!==0,l||(ql(e,t,n,!1),l=(n&t.childLanes)!==0),s){if(l)return mh(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),q(vt,vt.current),l)break;return null;case 22:return t.lanes=0,rh(e,t,n,t.pendingProps);case 24:Aa(t,St,e.memoizedState.cache)}return ha(e,t,n)}function yh(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)_t=!0;else{if(!_o(e,n)&&(t.flags&128)===0)return _t=!1,ng(e,t,n);_t=(e.flags&131072)!==0}else _t=!1,qe&&(t.flags&1048576)!==0&&Zf(t,Ti,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=pl(t.elementType),t.type=e,typeof e=="function")xu(e)?(l=Sl(e,l),t.tag=1,t=ch(null,t,e,l,n)):(t.tag=0,t=yo(null,t,e,l,n));else{if(e!=null){var s=e.$$typeof;if(s===be){t.tag=11,t=ah(null,t,e,l,n);break e}else if(s===A){t.tag=14,t=lh(null,t,e,l,n);break e}}throw t=Qe(e)||e,Error(u(306,t,""))}}return t;case 0:return yo(e,t,t.type,t.pendingProps,n);case 1:return l=t.type,s=Sl(l,t.pendingProps),ch(e,t,l,s,n);case 3:e:{if(Se(t,t.stateNode.containerInfo),e===null)throw Error(u(387));l=t.pendingProps;var o=t.memoizedState;s=o.element,Qu(e,t),Ci(t,l,null,n);var d=t.memoizedState;if(l=d.cache,Aa(t,St,l),l!==o.cache&&Lu(t,[St],n,!0),Di(),l=d.element,o.isDehydrated)if(o={element:l,isDehydrated:!1,cache:d.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=fh(e,t,l,n);break e}else if(l!==s){s=Sn(Error(u(424)),t),wi(s),t=fh(e,t,l,n);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,lt=Rn(e.firstChild),zt=t,qe=!0,xa=null,Tn=!0,n=rd(t,null,l,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(dl(),l===s){t=ha(e,t,n);break e}Ut(e,t,l,n)}t=t.child}return t;case 26:return es(e,t),e===null?(n=xm(t.type,null,t.pendingProps,null))?t.memoizedState=n:qe||(n=t.type,e=t.pendingProps,l=vs(ue.current).createElement(n),l[ee]=t,l[ne]=e,Lt(l,n,e),rt(l),t.stateNode=l):t.memoizedState=xm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return hn(t),e===null&&qe&&(l=t.stateNode=Tm(t.type,t.pendingProps,ue.current),zt=t,Tn=!0,s=lt,Qa(t.type)?(tc=s,lt=Rn(l.firstChild)):lt=s),Ut(e,t,t.pendingProps.children,n),es(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&qe&&((s=l=lt)&&(l=zg(l,t.type,t.pendingProps,Tn),l!==null?(t.stateNode=l,zt=t,lt=Rn(l.firstChild),Tn=!1,s=!0):s=!1),s||Oa(t)),hn(t),s=t.type,o=t.pendingProps,d=e!==null?e.memoizedProps:null,l=o.children,$o(s,o)?l=null:d!==null&&$o(s,d)&&(t.flags|=32),t.memoizedState!==null&&(s=Ju(e,t,Zv,null,null,n),Pi._currentValue=s),es(e,t),Ut(e,t,l,n),t.child;case 6:return e===null&&qe&&((e=n=lt)&&(n=Ng(n,t.pendingProps,Tn),n!==null?(t.stateNode=n,zt=t,lt=null,e=!0):e=!1),e||Oa(t)),null;case 13:return dh(e,t,n);case 4:return Se(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=gl(t,null,l,n):Ut(e,t,l,n),t.child;case 11:return ah(e,t,t.type,t.pendingProps,n);case 7:return Ut(e,t,t.pendingProps,n),t.child;case 8:return Ut(e,t,t.pendingProps.children,n),t.child;case 12:return Ut(e,t,t.pendingProps.children,n),t.child;case 10:return l=t.pendingProps,Aa(t,t.type,l.value),Ut(e,t,l.children,n),t.child;case 9:return s=t.type._context,l=t.pendingProps.children,ml(t),s=Nt(s),l=l(s),t.flags|=1,Ut(e,t,l,n),t.child;case 14:return lh(e,t,t.type,t.pendingProps,n);case 15:return ih(e,t,t.type,t.pendingProps,n);case 19:return mh(e,t,n);case 31:return tg(e,t,n);case 22:return rh(e,t,n,t.pendingProps);case 24:return ml(t),l=Nt(St),e===null?(s=ju(),s===null&&(s=et,o=Bu(),s.pooledCache=o,o.refCount++,o!==null&&(s.pooledCacheLanes|=n),s=o),t.memoizedState={parent:l,cache:s},Yu(t),Aa(t,St,s)):((e.lanes&n)!==0&&(Qu(e,t),Ci(t,null,null,n),Di()),s=e.memoizedState,o=t.memoizedState,s.parent!==l?(s={parent:l,cache:l},t.memoizedState=s,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=s),Aa(t,St,l)):(l=o.cache,Aa(t,St,l),l!==s.cache&&Lu(t,[St],n,!0))),Ut(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(u(156,t.tag))}function ma(e){e.flags|=4}function To(e,t,n,l,s){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(s&335544128)===s)if(e.stateNode.complete)e.flags|=8192;else if(Vh())e.flags|=8192;else throw vl=qr,qu}else e.flags&=-16777217}function ph(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Cm(t))if(Vh())e.flags|=8192;else throw vl=qr,qu}function ns(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?yt():536870912,e.lanes|=t,Pl|=t)}function Hi(e,t){if(!qe)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function it(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,l=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,l|=s.subtreeFlags&65011712,l|=s.flags&65011712,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,l|=s.subtreeFlags,l|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=l,e.childLanes=n,t}function ag(e,t,n){var l=t.pendingProps;switch(Du(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return it(t),null;case 1:return it(t),null;case 3:return n=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),ca(St),Ze(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(jl(t)?ma(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,zu())),it(t),null;case 26:var s=t.type,o=t.memoizedState;return e===null?(ma(t),o!==null?(it(t),ph(t,o)):(it(t),To(t,s,null,l,n))):o?o!==e.memoizedState?(ma(t),it(t),ph(t,o)):(it(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&ma(t),it(t),To(t,s,e,l,n)),null;case 27:if(Dn(t),n=ue.current,s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ma(t);else{if(!l){if(t.stateNode===null)throw Error(u(166));return it(t),null}e=J.current,jl(t)?Ff(t):(e=Tm(s,l,n),t.stateNode=e,ma(t))}return it(t),null;case 5:if(Dn(t),s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ma(t);else{if(!l){if(t.stateNode===null)throw Error(u(166));return it(t),null}if(o=J.current,jl(t))Ff(t);else{var d=vs(ue.current);switch(o){case 1:o=d.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:o=d.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":o=d.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":o=d.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":o=d.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof l.is=="string"?d.createElement("select",{is:l.is}):d.createElement("select"),l.multiple?o.multiple=!0:l.size&&(o.size=l.size);break;default:o=typeof l.is=="string"?d.createElement(s,{is:l.is}):d.createElement(s)}}o[ee]=t,o[ne]=l;e:for(d=t.child;d!==null;){if(d.tag===5||d.tag===6)o.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}t.stateNode=o;e:switch(Lt(o,s,l),s){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&ma(t)}}return it(t),To(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&ma(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(u(166));if(e=ue.current,jl(t)){if(e=t.stateNode,n=t.memoizedProps,l=null,s=zt,s!==null)switch(s.tag){case 27:case 5:l=s.memoizedProps}e[ee]=t,e=!!(e.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||dm(e.nodeValue,n)),e||Oa(t,!0)}else e=vs(e).createTextNode(l),e[ee]=t,t.stateNode=e}return it(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(l=jl(t),n!==null){if(e===null){if(!l)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[ee]=t}else dl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;it(t),e=!1}else n=zu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(sn(t),t):(sn(t),null);if((t.flags&128)!==0)throw Error(u(558))}return it(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(s=jl(t),l!==null&&l.dehydrated!==null){if(e===null){if(!s)throw Error(u(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(u(317));s[ee]=t}else dl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;it(t),s=!1}else s=zu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),s=!0;if(!s)return t.flags&256?(sn(t),t):(sn(t),null)}return sn(t),(t.flags&128)!==0?(t.lanes=n,t):(n=l!==null,e=e!==null&&e.memoizedState!==null,n&&(l=t.child,s=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(s=l.alternate.memoizedState.cachePool.pool),o=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(o=l.memoizedState.cachePool.pool),o!==s&&(l.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),ns(t,t.updateQueue),it(t),null);case 4:return Ze(),e===null&&ko(t.stateNode.containerInfo),it(t),null;case 10:return ca(t.type),it(t),null;case 19:if(B(vt),l=t.memoizedState,l===null)return it(t),null;if(s=(t.flags&128)!==0,o=l.rendering,o===null)if(s)Hi(l,!1);else{if(ht!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=Gr(e),o!==null){for(t.flags|=128,Hi(l,!1),e=o.updateQueue,t.updateQueue=e,ns(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Xf(n,e),n=n.sibling;return q(vt,vt.current&1|2),qe&&ua(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&ut()>ss&&(t.flags|=128,s=!0,Hi(l,!1),t.lanes=4194304)}else{if(!s)if(e=Gr(o),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,ns(t,e),Hi(l,!0),l.tail===null&&l.tailMode==="hidden"&&!o.alternate&&!qe)return it(t),null}else 2*ut()-l.renderingStartTime>ss&&n!==536870912&&(t.flags|=128,s=!0,Hi(l,!1),t.lanes=4194304);l.isBackwards?(o.sibling=t.child,t.child=o):(e=l.last,e!==null?e.sibling=o:t.child=o,l.last=o)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=ut(),e.sibling=null,n=vt.current,q(vt,s?n&1|2:n&1),qe&&ua(t,l.treeForkCount),e):(it(t),null);case 22:case 23:return sn(t),ku(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(n&536870912)!==0&&(t.flags&128)===0&&(it(t),t.subtreeFlags&6&&(t.flags|=8192)):it(t),n=t.updateQueue,n!==null&&ns(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==n&&(t.flags|=2048),e!==null&&B(yl),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),ca(St),it(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function lg(e,t){switch(Du(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ca(St),Ze(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Dn(t),null;case 31:if(t.memoizedState!==null){if(sn(t),t.alternate===null)throw Error(u(340));dl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(sn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));dl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return B(vt),null;case 4:return Ze(),null;case 10:return ca(t.type),null;case 22:case 23:return sn(t),ku(),e!==null&&B(yl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ca(St),null;case 25:return null;default:return null}}function vh(e,t){switch(Du(t),t.tag){case 3:ca(St),Ze();break;case 26:case 27:case 5:Dn(t);break;case 4:Ze();break;case 31:t.memoizedState!==null&&sn(t);break;case 13:sn(t);break;case 19:B(vt);break;case 10:ca(t.type);break;case 22:case 23:sn(t),ku(),e!==null&&B(yl);break;case 24:ca(St)}}function ji(e,t){try{var n=t.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var s=l.next;n=s;do{if((n.tag&e)===e){l=void 0;var o=n.create,d=n.inst;l=o(),d.destroy=l}n=n.next}while(n!==s)}}catch(v){Fe(t,t.return,v)}}function Ua(e,t,n){try{var l=t.updateQueue,s=l!==null?l.lastEffect:null;if(s!==null){var o=s.next;l=o;do{if((l.tag&e)===e){var d=l.inst,v=d.destroy;if(v!==void 0){d.destroy=void 0,s=t;var S=n,z=v;try{z()}catch(j){Fe(s,S,j)}}}l=l.next}while(l!==o)}}catch(j){Fe(t,t.return,j)}}function gh(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{ud(t,n)}catch(l){Fe(e,e.return,l)}}}function bh(e,t,n){n.props=Sl(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(l){Fe(e,t,l)}}function qi(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof n=="function"?e.refCleanup=n(l):n.current=l}}catch(s){Fe(e,t,s)}}function Zn(e,t){var n=e.ref,l=e.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(s){Fe(e,t,s)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(s){Fe(e,t,s)}else n.current=null}function Sh(e){var t=e.type,n=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break e;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(s){Fe(e,e.return,s)}}function wo(e,t,n){try{var l=e.stateNode;xg(l,e.type,n,t),l[ne]=t}catch(s){Fe(e,e.return,s)}}function Eh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Qa(e.type)||e.tag===4}function Ro(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Eh(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&&Qa(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 xo(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ia));else if(l!==4&&(l===27&&Qa(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(xo(e,t,n),e=e.sibling;e!==null;)xo(e,t,n),e=e.sibling}function as(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(l!==4&&(l===27&&Qa(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(as(e,t,n),e=e.sibling;e!==null;)as(e,t,n),e=e.sibling}function _h(e){var t=e.stateNode,n=e.memoizedProps;try{for(var l=e.type,s=t.attributes;s.length;)t.removeAttributeNode(s[0]);Lt(t,l,n),t[ee]=e,t[ne]=n}catch(o){Fe(e,e.return,o)}}var ya=!1,Tt=!1,Oo=!1,Th=typeof WeakSet=="function"?WeakSet:Set,At=null;function ig(e,t){if(e=e.containerInfo,Jo=ws,e=Lf(e),bu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var s=l.anchorOffset,o=l.focusNode;l=l.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var d=0,v=-1,S=-1,z=0,j=0,Q=e,N=null;t:for(;;){for(var L;Q!==n||s!==0&&Q.nodeType!==3||(v=d+s),Q!==o||l!==0&&Q.nodeType!==3||(S=d+l),Q.nodeType===3&&(d+=Q.nodeValue.length),(L=Q.firstChild)!==null;)N=Q,Q=L;for(;;){if(Q===e)break t;if(N===n&&++z===s&&(v=d),N===o&&++j===l&&(S=d),(L=Q.nextSibling)!==null)break;Q=N,N=Q.parentNode}Q=L}n=v===-1||S===-1?null:{start:v,end:S}}else n=null}n=n||{start:0,end:0}}else n=null;for(Fo={focusedElem:e,selectionRange:n},ws=!1,At=t;At!==null;)if(t=At,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,At=e;else for(;At!==null;){switch(t=At,o=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)s=e[n],s.ref.impl=s.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&o!==null){e=void 0,n=t,s=o.memoizedProps,o=o.memoizedState,l=n.stateNode;try{var le=Sl(n.type,s);e=l.getSnapshotBeforeUpdate(le,o),l.__reactInternalSnapshotBeforeUpdate=e}catch(me){Fe(n,n.return,me)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Wo(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Wo(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(u(163))}if(e=t.sibling,e!==null){e.return=t.return,At=e;break}At=t.return}}function wh(e,t,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:va(e,n),l&4&&ji(5,n);break;case 1:if(va(e,n),l&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(d){Fe(n,n.return,d)}else{var s=Sl(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(s,t,e.__reactInternalSnapshotBeforeUpdate)}catch(d){Fe(n,n.return,d)}}l&64&&gh(n),l&512&&qi(n,n.return);break;case 3:if(va(e,n),l&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{ud(e,t)}catch(d){Fe(n,n.return,d)}}break;case 27:t===null&&l&4&&_h(n);case 26:case 5:va(e,n),t===null&&l&4&&Sh(n),l&512&&qi(n,n.return);break;case 12:va(e,n);break;case 31:va(e,n),l&4&&Oh(e,n);break;case 13:va(e,n),l&4&&Ah(e,n),l&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=mg.bind(null,n),Ug(e,n))));break;case 22:if(l=n.memoizedState!==null||ya,!l){t=t!==null&&t.memoizedState!==null||Tt,s=ya;var o=Tt;ya=l,(Tt=t)&&!o?ga(e,n,(n.subtreeFlags&8772)!==0):va(e,n),ya=s,Tt=o}break;case 30:break;default:va(e,n)}}function Rh(e){var t=e.alternate;t!==null&&(e.alternate=null,Rh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ct(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 st=null,Jt=!1;function pa(e,t,n){for(n=n.child;n!==null;)xh(e,t,n),n=n.sibling}function xh(e,t,n){if(at&&typeof at.onCommitFiberUnmount=="function")try{at.onCommitFiberUnmount(ta,n)}catch{}switch(n.tag){case 26:Tt||Zn(n,t),pa(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Tt||Zn(n,t);var l=st,s=Jt;Qa(n.type)&&(st=n.stateNode,Jt=!1),pa(e,t,n),Ji(n.stateNode),st=l,Jt=s;break;case 5:Tt||Zn(n,t);case 6:if(l=st,s=Jt,st=null,pa(e,t,n),st=l,Jt=s,st!==null)if(Jt)try{(st.nodeType===9?st.body:st.nodeName==="HTML"?st.ownerDocument.body:st).removeChild(n.stateNode)}catch(o){Fe(n,t,o)}else try{st.removeChild(n.stateNode)}catch(o){Fe(n,t,o)}break;case 18:st!==null&&(Jt?(e=st,gm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),ii(e)):gm(st,n.stateNode));break;case 4:l=st,s=Jt,st=n.stateNode.containerInfo,Jt=!0,pa(e,t,n),st=l,Jt=s;break;case 0:case 11:case 14:case 15:Ua(2,n,t),Tt||Ua(4,n,t),pa(e,t,n);break;case 1:Tt||(Zn(n,t),l=n.stateNode,typeof l.componentWillUnmount=="function"&&bh(n,t,l)),pa(e,t,n);break;case 21:pa(e,t,n);break;case 22:Tt=(l=Tt)||n.memoizedState!==null,pa(e,t,n),Tt=l;break;default:pa(e,t,n)}}function Oh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ii(e)}catch(n){Fe(t,t.return,n)}}}function Ah(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ii(e)}catch(n){Fe(t,t.return,n)}}function rg(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Th),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Th),t;default:throw Error(u(435,e.tag))}}function ls(e,t){var n=rg(e);t.forEach(function(l){if(!n.has(l)){n.add(l);var s=yg.bind(null,e,l);l.then(s,s)}})}function Ft(e,t){var n=t.deletions;if(n!==null)for(var l=0;l<n.length;l++){var s=n[l],o=e,d=t,v=d;e:for(;v!==null;){switch(v.tag){case 27:if(Qa(v.type)){st=v.stateNode,Jt=!1;break e}break;case 5:st=v.stateNode,Jt=!1;break e;case 3:case 4:st=v.stateNode.containerInfo,Jt=!0;break e}v=v.return}if(st===null)throw Error(u(160));xh(o,d,s),st=null,Jt=!1,o=s.alternate,o!==null&&(o.return=null),s.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Mh(t,e),t=t.sibling}var jn=null;function Mh(e,t){var n=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Ft(t,e),$t(e),l&4&&(Ua(3,e,e.return),ji(3,e),Ua(5,e,e.return));break;case 1:Ft(t,e),$t(e),l&512&&(Tt||n===null||Zn(n,n.return)),l&64&&ya&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var s=jn;if(Ft(t,e),$t(e),l&512&&(Tt||n===null||Zn(n,n.return)),l&4){var o=n!==null?n.memoizedState:null;if(l=e.memoizedState,n===null)if(l===null)if(e.stateNode===null){e:{l=e.type,n=e.memoizedProps,s=s.ownerDocument||s;t:switch(l){case"title":o=s.getElementsByTagName("title")[0],(!o||o[ot]||o[ee]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=s.createElement(l),s.head.insertBefore(o,s.querySelector("head > title"))),Lt(o,l,n),o[ee]=e,rt(o),l=o;break e;case"link":var d=Mm("link","href",s).get(l+(n.href||""));if(d){for(var v=0;v<d.length;v++)if(o=d[v],o.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&o.getAttribute("rel")===(n.rel==null?null:n.rel)&&o.getAttribute("title")===(n.title==null?null:n.title)&&o.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){d.splice(v,1);break t}}o=s.createElement(l),Lt(o,l,n),s.head.appendChild(o);break;case"meta":if(d=Mm("meta","content",s).get(l+(n.content||""))){for(v=0;v<d.length;v++)if(o=d[v],o.getAttribute("content")===(n.content==null?null:""+n.content)&&o.getAttribute("name")===(n.name==null?null:n.name)&&o.getAttribute("property")===(n.property==null?null:n.property)&&o.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute("charset")===(n.charSet==null?null:n.charSet)){d.splice(v,1);break t}}o=s.createElement(l),Lt(o,l,n),s.head.appendChild(o);break;default:throw Error(u(468,l))}o[ee]=e,rt(o),l=o}e.stateNode=l}else Dm(s,e.type,e.stateNode);else e.stateNode=Am(s,l,e.memoizedProps);else o!==l?(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,l===null?Dm(s,e.type,e.stateNode):Am(s,l,e.memoizedProps)):l===null&&e.stateNode!==null&&wo(e,e.memoizedProps,n.memoizedProps)}break;case 27:Ft(t,e),$t(e),l&512&&(Tt||n===null||Zn(n,n.return)),n!==null&&l&4&&wo(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Ft(t,e),$t(e),l&512&&(Tt||n===null||Zn(n,n.return)),e.flags&32){s=e.stateNode;try{Al(s,"")}catch(le){Fe(e,e.return,le)}}l&4&&e.stateNode!=null&&(s=e.memoizedProps,wo(e,s,n!==null?n.memoizedProps:s)),l&1024&&(Oo=!0);break;case 6:if(Ft(t,e),$t(e),l&4){if(e.stateNode===null)throw Error(u(162));l=e.memoizedProps,n=e.stateNode;try{n.nodeValue=l}catch(le){Fe(e,e.return,le)}}break;case 3:if(Ss=null,s=jn,jn=gs(t.containerInfo),Ft(t,e),jn=s,$t(e),l&4&&n!==null&&n.memoizedState.isDehydrated)try{ii(t.containerInfo)}catch(le){Fe(e,e.return,le)}Oo&&(Oo=!1,Dh(e));break;case 4:l=jn,jn=gs(e.stateNode.containerInfo),Ft(t,e),$t(e),jn=l;break;case 12:Ft(t,e),$t(e);break;case 31:Ft(t,e),$t(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,ls(e,l)));break;case 13:Ft(t,e),$t(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(rs=ut()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,ls(e,l)));break;case 22:s=e.memoizedState!==null;var S=n!==null&&n.memoizedState!==null,z=ya,j=Tt;if(ya=z||s,Tt=j||S,Ft(t,e),Tt=j,ya=z,$t(e),l&8192)e:for(t=e.stateNode,t._visibility=s?t._visibility&-2:t._visibility|1,s&&(n===null||S||ya||Tt||El(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){S=n=t;try{if(o=S.stateNode,s)d=o.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none";else{v=S.stateNode;var Q=S.memoizedProps.style,N=Q!=null&&Q.hasOwnProperty("display")?Q.display:null;v.style.display=N==null||typeof N=="boolean"?"":(""+N).trim()}}catch(le){Fe(S,S.return,le)}}}else if(t.tag===6){if(n===null){S=t;try{S.stateNode.nodeValue=s?"":S.memoizedProps}catch(le){Fe(S,S.return,le)}}}else if(t.tag===18){if(n===null){S=t;try{var L=S.stateNode;s?bm(L,!0):bm(S.stateNode,!1)}catch(le){Fe(S,S.return,le)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,ls(e,n))));break;case 19:Ft(t,e),$t(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,ls(e,l)));break;case 30:break;case 21:break;default:Ft(t,e),$t(e)}}function $t(e){var t=e.flags;if(t&2){try{for(var n,l=e.return;l!==null;){if(Eh(l)){n=l;break}l=l.return}if(n==null)throw Error(u(160));switch(n.tag){case 27:var s=n.stateNode,o=Ro(e);as(e,o,s);break;case 5:var d=n.stateNode;n.flags&32&&(Al(d,""),n.flags&=-33);var v=Ro(e);as(e,v,d);break;case 3:case 4:var S=n.stateNode.containerInfo,z=Ro(e);xo(e,z,S);break;default:throw Error(u(161))}}catch(j){Fe(e,e.return,j)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Dh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Dh(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function va(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)wh(e,t.alternate,t),t=t.sibling}function El(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ua(4,t,t.return),El(t);break;case 1:Zn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&bh(t,t.return,n),El(t);break;case 27:Ji(t.stateNode);case 26:case 5:Zn(t,t.return),El(t);break;case 22:t.memoizedState===null&&El(t);break;case 30:El(t);break;default:El(t)}e=e.sibling}}function ga(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,s=e,o=t,d=o.flags;switch(o.tag){case 0:case 11:case 15:ga(s,o,n),ji(4,o);break;case 1:if(ga(s,o,n),l=o,s=l.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(z){Fe(l,l.return,z)}if(l=o,s=l.updateQueue,s!==null){var v=l.stateNode;try{var S=s.shared.hiddenCallbacks;if(S!==null)for(s.shared.hiddenCallbacks=null,s=0;s<S.length;s++)sd(S[s],v)}catch(z){Fe(l,l.return,z)}}n&&d&64&&gh(o),qi(o,o.return);break;case 27:_h(o);case 26:case 5:ga(s,o,n),n&&l===null&&d&4&&Sh(o),qi(o,o.return);break;case 12:ga(s,o,n);break;case 31:ga(s,o,n),n&&d&4&&Oh(s,o);break;case 13:ga(s,o,n),n&&d&4&&Ah(s,o);break;case 22:o.memoizedState===null&&ga(s,o,n),qi(o,o.return);break;case 30:break;default:ga(s,o,n)}t=t.sibling}}function Ao(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Ri(n))}function Mo(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ri(e))}function qn(e,t,n,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Ch(e,t,n,l),t=t.sibling}function Ch(e,t,n,l){var s=t.flags;switch(t.tag){case 0:case 11:case 15:qn(e,t,n,l),s&2048&&ji(9,t);break;case 1:qn(e,t,n,l);break;case 3:qn(e,t,n,l),s&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ri(e)));break;case 12:if(s&2048){qn(e,t,n,l),e=t.stateNode;try{var o=t.memoizedProps,d=o.id,v=o.onPostCommit;typeof v=="function"&&v(d,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(S){Fe(t,t.return,S)}}else qn(e,t,n,l);break;case 31:qn(e,t,n,l);break;case 13:qn(e,t,n,l);break;case 23:break;case 22:o=t.stateNode,d=t.alternate,t.memoizedState!==null?o._visibility&2?qn(e,t,n,l):Yi(e,t):o._visibility&2?qn(e,t,n,l):(o._visibility|=2,Jl(e,t,n,l,(t.subtreeFlags&10256)!==0||!1)),s&2048&&Ao(d,t);break;case 24:qn(e,t,n,l),s&2048&&Mo(t.alternate,t);break;default:qn(e,t,n,l)}}function Jl(e,t,n,l,s){for(s=s&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var o=e,d=t,v=n,S=l,z=d.flags;switch(d.tag){case 0:case 11:case 15:Jl(o,d,v,S,s),ji(8,d);break;case 23:break;case 22:var j=d.stateNode;d.memoizedState!==null?j._visibility&2?Jl(o,d,v,S,s):Yi(o,d):(j._visibility|=2,Jl(o,d,v,S,s)),s&&z&2048&&Ao(d.alternate,d);break;case 24:Jl(o,d,v,S,s),s&&z&2048&&Mo(d.alternate,d);break;default:Jl(o,d,v,S,s)}t=t.sibling}}function Yi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,l=t,s=l.flags;switch(l.tag){case 22:Yi(n,l),s&2048&&Ao(l.alternate,l);break;case 24:Yi(n,l),s&2048&&Mo(l.alternate,l);break;default:Yi(n,l)}t=t.sibling}}var Qi=8192;function Fl(e,t,n){if(e.subtreeFlags&Qi)for(e=e.child;e!==null;)zh(e,t,n),e=e.sibling}function zh(e,t,n){switch(e.tag){case 26:Fl(e,t,n),e.flags&Qi&&e.memoizedState!==null&&Kg(n,jn,e.memoizedState,e.memoizedProps);break;case 5:Fl(e,t,n);break;case 3:case 4:var l=jn;jn=gs(e.stateNode.containerInfo),Fl(e,t,n),jn=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=Qi,Qi=16777216,Fl(e,t,n),Qi=l):Fl(e,t,n));break;default:Fl(e,t,n)}}function Nh(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 Vi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];At=l,Lh(l,e)}Nh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Uh(e),e=e.sibling}function Uh(e){switch(e.tag){case 0:case 11:case 15:Vi(e),e.flags&2048&&Ua(9,e,e.return);break;case 3:Vi(e);break;case 12:Vi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,is(e)):Vi(e);break;default:Vi(e)}}function is(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];At=l,Lh(l,e)}Nh(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ua(8,t,t.return),is(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,is(t));break;default:is(t)}e=e.sibling}}function Lh(e,t){for(;At!==null;){var n=At;switch(n.tag){case 0:case 11:case 15:Ua(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Ri(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,At=l;else e:for(n=e;At!==null;){l=At;var s=l.sibling,o=l.return;if(Rh(l),l===n){At=null;break e}if(s!==null){s.return=o,At=s;break e}At=o}}}var sg={getCacheForType:function(e){var t=Nt(St),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Nt(St).controller.signal}},ug=typeof WeakMap=="function"?WeakMap:Map,ke=0,et=null,De=null,Ne=0,Je=0,un=null,La=!1,$l=!1,Do=!1,ba=0,ht=0,Ba=0,_l=0,Co=0,on=0,Pl=0,Gi=null,Pt=null,zo=!1,rs=0,Bh=0,ss=1/0,us=null,Ha=null,xt=0,ja=null,Wl=null,Sa=0,No=0,Uo=null,Hh=null,Xi=0,Lo=null;function cn(){return(ke&2)!==0&&Ne!==0?Ne&-Ne:O.T!==null?Qo():$()}function jh(){if(on===0)if((Ne&536870912)===0||qe){var e=na;na<<=1,(na&3932160)===0&&(na=262144),on=e}else on=536870912;return e=rn.current,e!==null&&(e.flags|=32),on}function Wt(e,t,n){(e===et&&(Je===2||Je===9)||e.cancelPendingCommit!==null)&&(Il(e,0),qa(e,Ne,on,!1)),nt(e,n),((ke&2)===0||e!==et)&&(e===et&&((ke&2)===0&&(_l|=n),ht===4&&qa(e,Ne,on,!1)),Jn(e))}function qh(e,t,n){if((ke&6)!==0)throw Error(u(327));var l=!n&&(t&127)===0&&(t&e.expiredLanes)===0||tt(e,t),s=l?fg(e,t):Ho(e,t,!0),o=l;do{if(s===0){$l&&!l&&qa(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!og(n)){s=Ho(e,t,!1),o=!1;continue}if(s===2){if(o=t,e.errorRecoveryDisabledLanes&o)var d=0;else d=e.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){t=d;e:{var v=e;s=Gi;var S=v.current.memoizedState.isDehydrated;if(S&&(Il(v,d).flags|=256),d=Ho(v,d,!1),d!==2){if(Do&&!S){v.errorRecoveryDisabledLanes|=o,_l|=o,s=4;break e}o=Pt,Pt=s,o!==null&&(Pt===null?Pt=o:Pt.push.apply(Pt,o))}s=d}if(o=!1,s!==2)continue}}if(s===1){Il(e,0),qa(e,t,0,!0);break}e:{switch(l=e,o=s,o){case 0:case 1:throw Error(u(345));case 4:if((t&4194048)!==t)break;case 6:qa(l,t,on,!La);break e;case 2:Pt=null;break;case 3:case 5:break;default:throw Error(u(329))}if((t&62914560)===t&&(s=rs+300-ut(),10<s)){if(qa(l,t,on,!La),ge(l,0,!0)!==0)break e;Sa=t,l.timeoutHandle=pm(Yh.bind(null,l,n,Pt,us,zo,t,on,_l,Pl,La,o,"Throttled",-0,0),s);break e}Yh(l,n,Pt,us,zo,t,on,_l,Pl,La,o,null,-0,0)}}break}while(!0);Jn(e)}function Yh(e,t,n,l,s,o,d,v,S,z,j,Q,N,L){if(e.timeoutHandle=-1,Q=t.subtreeFlags,Q&8192||(Q&16785408)===16785408){Q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ia},zh(t,o,Q);var le=(o&62914560)===o?rs-ut():(o&4194048)===o?Bh-ut():0;if(le=Zg(Q,le),le!==null){Sa=o,e.cancelPendingCommit=le(Jh.bind(null,e,t,o,n,l,s,d,v,S,j,Q,null,N,L)),qa(e,o,d,!z);return}}Jh(e,t,o,n,l,s,d,v,S)}function og(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var s=n[l],o=s.getSnapshot;s=s.value;try{if(!an(o(),s))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function qa(e,t,n,l){t&=~Co,t&=~_l,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var s=t;0<s;){var o=31-Rt(s),d=1<<o;l[o]=-1,s&=~d}n!==0&&aa(e,n,t)}function os(){return(ke&6)===0?(ki(0),!1):!0}function Bo(){if(De!==null){if(Je===0)var e=De.return;else e=De,oa=hl=null,Pu(e),Gl=null,Oi=0,e=De;for(;e!==null;)vh(e.alternate,e),e=e.return;De=null}}function Il(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Mg(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Sa=0,Bo(),et=e,De=n=sa(e.current,null),Ne=t,Je=0,un=null,La=!1,$l=tt(e,t),Do=!1,Pl=on=Co=_l=Ba=ht=0,Pt=Gi=null,zo=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var s=31-Rt(l),o=1<<s;t|=e[s],l&=~o}return ba=t,Dr(),n}function Qh(e,t){Re=null,O.H=Li,t===Vl||t===jr?(t=ad(),Je=3):t===qu?(t=ad(),Je=4):Je=t===mo?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,un=t,De===null&&(ht=1,Wr(e,Sn(t,e.current)))}function Vh(){var e=rn.current;return e===null?!0:(Ne&4194048)===Ne?wn===null:(Ne&62914560)===Ne||(Ne&536870912)!==0?e===wn:!1}function Gh(){var e=O.H;return O.H=Li,e===null?Li:e}function Xh(){var e=O.A;return O.A=sg,e}function cs(){ht=4,La||(Ne&4194048)!==Ne&&rn.current!==null||($l=!0),(Ba&134217727)===0&&(_l&134217727)===0||et===null||qa(et,Ne,on,!1)}function Ho(e,t,n){var l=ke;ke|=2;var s=Gh(),o=Xh();(et!==e||Ne!==t)&&(us=null,Il(e,t)),t=!1;var d=ht;e:do try{if(Je!==0&&De!==null){var v=De,S=un;switch(Je){case 8:Bo(),d=6;break e;case 3:case 2:case 9:case 6:rn.current===null&&(t=!0);var z=Je;if(Je=0,un=null,ei(e,v,S,z),n&&$l){d=0;break e}break;default:z=Je,Je=0,un=null,ei(e,v,S,z)}}cg(),d=ht;break}catch(j){Qh(e,j)}while(!0);return t&&e.shellSuspendCounter++,oa=hl=null,ke=l,O.H=s,O.A=o,De===null&&(et=null,Ne=0,Dr()),d}function cg(){for(;De!==null;)kh(De)}function fg(e,t){var n=ke;ke|=2;var l=Gh(),s=Xh();et!==e||Ne!==t?(us=null,ss=ut()+500,Il(e,t)):$l=tt(e,t);e:do try{if(Je!==0&&De!==null){t=De;var o=un;t:switch(Je){case 1:Je=0,un=null,ei(e,t,o,1);break;case 2:case 9:if(td(o)){Je=0,un=null,Kh(t);break}t=function(){Je!==2&&Je!==9||et!==e||(Je=7),Jn(e)},o.then(t,t);break e;case 3:Je=7;break e;case 4:Je=5;break e;case 7:td(o)?(Je=0,un=null,Kh(t)):(Je=0,un=null,ei(e,t,o,7));break;case 5:var d=null;switch(De.tag){case 26:d=De.memoizedState;case 5:case 27:var v=De;if(d?Cm(d):v.stateNode.complete){Je=0,un=null;var S=v.sibling;if(S!==null)De=S;else{var z=v.return;z!==null?(De=z,fs(z)):De=null}break t}}Je=0,un=null,ei(e,t,o,5);break;case 6:Je=0,un=null,ei(e,t,o,6);break;case 8:Bo(),ht=6;break e;default:throw Error(u(462))}}dg();break}catch(j){Qh(e,j)}while(!0);return oa=hl=null,O.H=l,O.A=s,ke=n,De!==null?0:(et=null,Ne=0,Dr(),ht)}function dg(){for(;De!==null&&!Mt();)kh(De)}function kh(e){var t=yh(e.alternate,e,ba);e.memoizedProps=e.pendingProps,t===null?fs(e):De=t}function Kh(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=oh(n,t,t.pendingProps,t.type,void 0,Ne);break;case 11:t=oh(n,t,t.pendingProps,t.type.render,t.ref,Ne);break;case 5:Pu(t);default:vh(n,t),t=De=Xf(t,ba),t=yh(n,t,ba)}e.memoizedProps=e.pendingProps,t===null?fs(e):De=t}function ei(e,t,n,l){oa=hl=null,Pu(t),Gl=null,Oi=0;var s=t.return;try{if(eg(e,s,t,n,Ne)){ht=1,Wr(e,Sn(n,e.current)),De=null;return}}catch(o){if(s!==null)throw De=s,o;ht=1,Wr(e,Sn(n,e.current)),De=null;return}t.flags&32768?(qe||l===1?e=!0:$l||(Ne&536870912)!==0?e=!1:(La=e=!0,(l===2||l===9||l===3||l===6)&&(l=rn.current,l!==null&&l.tag===13&&(l.flags|=16384))),Zh(t,e)):fs(t)}function fs(e){var t=e;do{if((t.flags&32768)!==0){Zh(t,La);return}e=t.return;var n=ag(t.alternate,t,ba);if(n!==null){De=n;return}if(t=t.sibling,t!==null){De=t;return}De=t=e}while(t!==null);ht===0&&(ht=5)}function Zh(e,t){do{var n=lg(e.alternate,e);if(n!==null){n.flags&=32767,De=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){De=e;return}De=e=n}while(e!==null);ht=6,De=null}function Jh(e,t,n,l,s,o,d,v,S){e.cancelPendingCommit=null;do ds();while(xt!==0);if((ke&6)!==0)throw Error(u(327));if(t!==null){if(t===e.current)throw Error(u(177));if(o=t.lanes|t.childLanes,o|=wu,Ht(e,n,o,d,v,S),e===et&&(De=et=null,Ne=0),Wl=t,ja=e,Sa=n,No=o,Uo=s,Hh=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,pg(Dt,function(){return Ih(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=O.T,O.T=null,s=k.p,k.p=2,d=ke,ke|=4;try{ig(e,t,n)}finally{ke=d,k.p=s,O.T=l}}xt=1,Fh(),$h(),Ph()}}function Fh(){if(xt===1){xt=0;var e=ja,t=Wl,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=O.T,O.T=null;var l=k.p;k.p=2;var s=ke;ke|=4;try{Mh(t,e);var o=Fo,d=Lf(e.containerInfo),v=o.focusedElem,S=o.selectionRange;if(d!==v&&v&&v.ownerDocument&&Uf(v.ownerDocument.documentElement,v)){if(S!==null&&bu(v)){var z=S.start,j=S.end;if(j===void 0&&(j=z),"selectionStart"in v)v.selectionStart=z,v.selectionEnd=Math.min(j,v.value.length);else{var Q=v.ownerDocument||document,N=Q&&Q.defaultView||window;if(N.getSelection){var L=N.getSelection(),le=v.textContent.length,me=Math.min(S.start,le),We=S.end===void 0?me:Math.min(S.end,le);!L.extend&&me>We&&(d=We,We=me,me=d);var x=Nf(v,me),T=Nf(v,We);if(x&&T&&(L.rangeCount!==1||L.anchorNode!==x.node||L.anchorOffset!==x.offset||L.focusNode!==T.node||L.focusOffset!==T.offset)){var C=Q.createRange();C.setStart(x.node,x.offset),L.removeAllRanges(),me>We?(L.addRange(C),L.extend(T.node,T.offset)):(C.setEnd(T.node,T.offset),L.addRange(C))}}}}for(Q=[],L=v;L=L.parentNode;)L.nodeType===1&&Q.push({element:L,left:L.scrollLeft,top:L.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<Q.length;v++){var Y=Q[v];Y.element.scrollLeft=Y.left,Y.element.scrollTop=Y.top}}ws=!!Jo,Fo=Jo=null}finally{ke=s,k.p=l,O.T=n}}e.current=t,xt=2}}function $h(){if(xt===2){xt=0;var e=ja,t=Wl,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=O.T,O.T=null;var l=k.p;k.p=2;var s=ke;ke|=4;try{wh(e,t.alternate,t)}finally{ke=s,k.p=l,O.T=n}}xt=3}}function Ph(){if(xt===4||xt===3){xt=0,Gn();var e=ja,t=Wl,n=Sa,l=Hh;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?xt=5:(xt=0,Wl=ja=null,Wh(e,e.pendingLanes));var s=e.pendingLanes;if(s===0&&(Ha=null),X(n),t=t.stateNode,at&&typeof at.onCommitFiberRoot=="function")try{at.onCommitFiberRoot(ta,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=O.T,s=k.p,k.p=2,O.T=null;try{for(var o=e.onRecoverableError,d=0;d<l.length;d++){var v=l[d];o(v.value,{componentStack:v.stack})}}finally{O.T=t,k.p=s}}(Sa&3)!==0&&ds(),Jn(e),s=e.pendingLanes,(n&261930)!==0&&(s&42)!==0?e===Lo?Xi++:(Xi=0,Lo=e):Xi=0,ki(0)}}function Wh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ri(t)))}function ds(){return Fh(),$h(),Ph(),Ih()}function Ih(){if(xt!==5)return!1;var e=ja,t=No;No=0;var n=X(Sa),l=O.T,s=k.p;try{k.p=32>n?32:n,O.T=null,n=Uo,Uo=null;var o=ja,d=Sa;if(xt=0,Wl=ja=null,Sa=0,(ke&6)!==0)throw Error(u(331));var v=ke;if(ke|=4,Uh(o.current),Ch(o,o.current,d,n),ke=v,ki(0,!1),at&&typeof at.onPostCommitFiberRoot=="function")try{at.onPostCommitFiberRoot(ta,o)}catch{}return!0}finally{k.p=s,O.T=l,Wh(e,t)}}function em(e,t,n){t=Sn(n,t),t=ho(e.stateNode,t,2),e=Ca(e,t,2),e!==null&&(nt(e,2),Jn(e))}function Fe(e,t,n){if(e.tag===3)em(e,e,n);else for(;t!==null;){if(t.tag===3){em(t,e,n);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Ha===null||!Ha.has(l))){e=Sn(n,e),n=th(2),l=Ca(t,n,2),l!==null&&(nh(n,l,t,e),nt(l,2),Jn(l));break}}t=t.return}}function jo(e,t,n){var l=e.pingCache;if(l===null){l=e.pingCache=new ug;var s=new Set;l.set(t,s)}else s=l.get(t),s===void 0&&(s=new Set,l.set(t,s));s.has(n)||(Do=!0,s.add(n),e=hg.bind(null,e,t,n),t.then(e,e))}function hg(e,t,n){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,et===e&&(Ne&n)===n&&(ht===4||ht===3&&(Ne&62914560)===Ne&&300>ut()-rs?(ke&2)===0&&Il(e,0):Co|=n,Pl===Ne&&(Pl=0)),Jn(e)}function tm(e,t){t===0&&(t=yt()),e=cl(e,t),e!==null&&(nt(e,t),Jn(e))}function mg(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),tm(e,n)}function yg(e,t){var n=0;switch(e.tag){case 31:case 13:var l=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(u(314))}l!==null&&l.delete(t),tm(e,n)}function pg(e,t){return tl(e,t)}var hs=null,ti=null,qo=!1,ms=!1,Yo=!1,Ya=0;function Jn(e){e!==ti&&e.next===null&&(ti===null?hs=ti=e:ti=ti.next=e),ms=!0,qo||(qo=!0,gg())}function ki(e,t){if(!Yo&&ms){Yo=!0;do for(var n=!1,l=hs;l!==null;){if(e!==0){var s=l.pendingLanes;if(s===0)var o=0;else{var d=l.suspendedLanes,v=l.pingedLanes;o=(1<<31-Rt(42|e)+1)-1,o&=s&~(d&~v),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,im(l,o))}else o=Ne,o=ge(l,l===et?o:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(o&3)===0||tt(l,o)||(n=!0,im(l,o));l=l.next}while(n);Yo=!1}}function vg(){nm()}function nm(){ms=qo=!1;var e=0;Ya!==0&&Ag()&&(e=Ya);for(var t=ut(),n=null,l=hs;l!==null;){var s=l.next,o=am(l,t);o===0?(l.next=null,n===null?hs=s:n.next=s,s===null&&(ti=n)):(n=l,(e!==0||(o&3)!==0)&&(ms=!0)),l=s}xt!==0&&xt!==5||ki(e),Ya!==0&&(Ya=0)}function am(e,t){for(var n=e.suspendedLanes,l=e.pingedLanes,s=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var d=31-Rt(o),v=1<<d,S=s[d];S===-1?((v&n)===0||(v&l)!==0)&&(s[d]=mt(v,t)):S<=t&&(e.expiredLanes|=v),o&=~v}if(t=et,n=Ne,n=ge(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,n===0||e===t&&(Je===2||Je===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&nl(l),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||tt(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(l!==null&&nl(l),X(n)){case 2:case 8:n=Ta;break;case 32:n=Dt;break;case 268435456:n=mn;break;default:n=Dt}return l=lm.bind(null,e),n=tl(n,l),e.callbackPriority=t,e.callbackNode=n,t}return l!==null&&l!==null&&nl(l),e.callbackPriority=2,e.callbackNode=null,2}function lm(e,t){if(xt!==0&&xt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(ds()&&e.callbackNode!==n)return null;var l=Ne;return l=ge(e,e===et?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(qh(e,l,t),am(e,ut()),e.callbackNode!=null&&e.callbackNode===n?lm.bind(null,e):null)}function im(e,t){if(ds())return null;qh(e,t,!0)}function gg(){Dg(function(){(ke&6)!==0?tl(Xn,vg):nm()})}function Qo(){if(Ya===0){var e=Yl;e===0&&(e=zn,zn<<=1,(zn&261888)===0&&(zn=256)),Ya=e}return Ya}function rm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:_r(""+e)}function sm(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function bg(e,t,n,l,s){if(t==="submit"&&n&&n.stateNode===s){var o=rm((s[ne]||null).action),d=l.submitter;d&&(t=(t=d[ne]||null)?rm(t.formAction):d.getAttribute("formAction"),t!==null&&(o=t,d=null));var v=new xr("action","action",null,l,s);e.push({event:v,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Ya!==0){var S=d?sm(s,d):new FormData(s);ro(n,{pending:!0,data:S,method:s.method,action:o},null,S)}}else typeof o=="function"&&(v.preventDefault(),S=d?sm(s,d):new FormData(s),ro(n,{pending:!0,data:S,method:s.method,action:o},o,S))},currentTarget:s}]})}}for(var Vo=0;Vo<Tu.length;Vo++){var Go=Tu[Vo],Sg=Go.toLowerCase(),Eg=Go[0].toUpperCase()+Go.slice(1);Hn(Sg,"on"+Eg)}Hn(jf,"onAnimationEnd"),Hn(qf,"onAnimationIteration"),Hn(Yf,"onAnimationStart"),Hn("dblclick","onDoubleClick"),Hn("focusin","onFocus"),Hn("focusout","onBlur"),Hn(Hv,"onTransitionRun"),Hn(jv,"onTransitionStart"),Hn(qv,"onTransitionCancel"),Hn(Qf,"onTransitionEnd"),vn("onMouseEnter",["mouseout","mouseover"]),vn("onMouseLeave",["mouseout","mouseover"]),vn("onPointerEnter",["pointerout","pointerover"]),vn("onPointerLeave",["pointerout","pointerover"]),Ln("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ln("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ln("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ln("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ln("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ln("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ki="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(" "),_g=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ki));function um(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var l=e[n],s=l.event;l=l.listeners;e:{var o=void 0;if(t)for(var d=l.length-1;0<=d;d--){var v=l[d],S=v.instance,z=v.currentTarget;if(v=v.listener,S!==o&&s.isPropagationStopped())break e;o=v,s.currentTarget=z;try{o(s)}catch(j){Mr(j)}s.currentTarget=null,o=S}else for(d=0;d<l.length;d++){if(v=l[d],S=v.instance,z=v.currentTarget,v=v.listener,S!==o&&s.isPropagationStopped())break e;o=v,s.currentTarget=z;try{o(s)}catch(j){Mr(j)}s.currentTarget=null,o=S}}}}function Ce(e,t){var n=t[he];n===void 0&&(n=t[he]=new Set);var l=e+"__bubble";n.has(l)||(om(t,e,2,!1),n.add(l))}function Xo(e,t,n){var l=0;t&&(l|=4),om(n,e,l,t)}var ys="_reactListening"+Math.random().toString(36).slice(2);function ko(e){if(!e[ys]){e[ys]=!0,Un.forEach(function(n){n!=="selectionchange"&&(_g.has(n)||Xo(n,!1,e),Xo(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ys]||(t[ys]=!0,Xo("selectionchange",!1,t))}}function om(e,t,n,l){switch(jm(t)){case 2:var s=$g;break;case 8:s=Pg;break;default:s=rc}n=s.bind(null,t,n,e),s=void 0,!cu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),l?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function Ko(e,t,n,l,s){var o=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var d=l.tag;if(d===3||d===4){var v=l.stateNode.containerInfo;if(v===s)break;if(d===4)for(d=l.return;d!==null;){var S=d.tag;if((S===3||S===4)&&d.stateNode.containerInfo===s)return;d=d.return}for(;v!==null;){if(d=ft(v),d===null)return;if(S=d.tag,S===5||S===6||S===26||S===27){l=o=d;continue e}v=v.parentNode}}l=l.return}mf(function(){var z=o,j=uu(n),Q=[];e:{var N=Vf.get(e);if(N!==void 0){var L=xr,le=e;switch(e){case"keypress":if(wr(n)===0)break e;case"keydown":case"keyup":L=yv;break;case"focusin":le="focus",L=mu;break;case"focusout":le="blur",L=mu;break;case"beforeblur":case"afterblur":L=mu;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":L=vf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":L=av;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":L=gv;break;case jf:case qf:case Yf:L=rv;break;case Qf:L=Sv;break;case"scroll":case"scrollend":L=tv;break;case"wheel":L=_v;break;case"copy":case"cut":case"paste":L=uv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":L=bf;break;case"toggle":case"beforetoggle":L=wv}var me=(t&4)!==0,We=!me&&(e==="scroll"||e==="scrollend"),x=me?N!==null?N+"Capture":null:N;me=[];for(var T=z,C;T!==null;){var Y=T;if(C=Y.stateNode,Y=Y.tag,Y!==5&&Y!==26&&Y!==27||C===null||x===null||(Y=mi(T,x),Y!=null&&me.push(Zi(T,Y,C))),We)break;T=T.return}0<me.length&&(N=new L(N,le,null,n,j),Q.push({event:N,listeners:me}))}}if((t&7)===0){e:{if(N=e==="mouseover"||e==="pointerover",L=e==="mouseout"||e==="pointerout",N&&n!==su&&(le=n.relatedTarget||n.fromElement)&&(ft(le)||le[re]))break e;if((L||N)&&(N=j.window===j?j:(N=j.ownerDocument)?N.defaultView||N.parentWindow:window,L?(le=n.relatedTarget||n.toElement,L=z,le=le?ft(le):null,le!==null&&(We=f(le),me=le.tag,le!==We||me!==5&&me!==27&&me!==6)&&(le=null)):(L=null,le=z),L!==le)){if(me=vf,Y="onMouseLeave",x="onMouseEnter",T="mouse",(e==="pointerout"||e==="pointerover")&&(me=bf,Y="onPointerLeave",x="onPointerEnter",T="pointer"),We=L==null?N:Ot(L),C=le==null?N:Ot(le),N=new me(Y,T+"leave",L,n,j),N.target=We,N.relatedTarget=C,Y=null,ft(j)===z&&(me=new me(x,T+"enter",le,n,j),me.target=C,me.relatedTarget=We,Y=me),We=Y,L&&le)t:{for(me=Tg,x=L,T=le,C=0,Y=x;Y;Y=me(Y))C++;Y=0;for(var fe=T;fe;fe=me(fe))Y++;for(;0<C-Y;)x=me(x),C--;for(;0<Y-C;)T=me(T),Y--;for(;C--;){if(x===T||T!==null&&x===T.alternate){me=x;break t}x=me(x),T=me(T)}me=null}else me=null;L!==null&&cm(Q,N,L,me,!1),le!==null&&We!==null&&cm(Q,We,le,me,!0)}}e:{if(N=z?Ot(z):window,L=N.nodeName&&N.nodeName.toLowerCase(),L==="select"||L==="input"&&N.type==="file")var Ge=Of;else if(Rf(N))if(Af)Ge=Uv;else{Ge=zv;var ie=Cv}else L=N.nodeName,!L||L.toLowerCase()!=="input"||N.type!=="checkbox"&&N.type!=="radio"?z&&ru(z.elementType)&&(Ge=Of):Ge=Nv;if(Ge&&(Ge=Ge(e,z))){xf(Q,Ge,n,j);break e}ie&&ie(e,N,z),e==="focusout"&&z&&N.type==="number"&&z.memoizedProps.value!=null&&iu(N,"number",N.value)}switch(ie=z?Ot(z):window,e){case"focusin":(Rf(ie)||ie.contentEditable==="true")&&(zl=ie,Su=z,_i=null);break;case"focusout":_i=Su=zl=null;break;case"mousedown":Eu=!0;break;case"contextmenu":case"mouseup":case"dragend":Eu=!1,Bf(Q,n,j);break;case"selectionchange":if(Bv)break;case"keydown":case"keyup":Bf(Q,n,j)}var xe;if(pu)e:{switch(e){case"compositionstart":var Ue="onCompositionStart";break e;case"compositionend":Ue="onCompositionEnd";break e;case"compositionupdate":Ue="onCompositionUpdate";break e}Ue=void 0}else Cl?Tf(e,n)&&(Ue="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Ue="onCompositionStart");Ue&&(Sf&&n.locale!=="ko"&&(Cl||Ue!=="onCompositionStart"?Ue==="onCompositionEnd"&&Cl&&(xe=yf()):(wa=j,fu="value"in wa?wa.value:wa.textContent,Cl=!0)),ie=ps(z,Ue),0<ie.length&&(Ue=new gf(Ue,e,null,n,j),Q.push({event:Ue,listeners:ie}),xe?Ue.data=xe:(xe=wf(n),xe!==null&&(Ue.data=xe)))),(xe=xv?Ov(e,n):Av(e,n))&&(Ue=ps(z,"onBeforeInput"),0<Ue.length&&(ie=new gf("onBeforeInput","beforeinput",null,n,j),Q.push({event:ie,listeners:Ue}),ie.data=xe)),bg(Q,e,z,n,j)}um(Q,t)})}function Zi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ps(e,t){for(var n=t+"Capture",l=[];e!==null;){var s=e,o=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||o===null||(s=mi(e,n),s!=null&&l.unshift(Zi(e,s,o)),s=mi(e,t),s!=null&&l.push(Zi(e,s,o))),e.tag===3)return l;e=e.return}return[]}function Tg(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function cm(e,t,n,l,s){for(var o=t._reactName,d=[];n!==null&&n!==l;){var v=n,S=v.alternate,z=v.stateNode;if(v=v.tag,S!==null&&S===l)break;v!==5&&v!==26&&v!==27||z===null||(S=z,s?(z=mi(n,o),z!=null&&d.unshift(Zi(n,z,S))):s||(z=mi(n,o),z!=null&&d.push(Zi(n,z,S)))),n=n.return}d.length!==0&&e.push({event:t,listeners:d})}var wg=/\r\n?/g,Rg=/\u0000|\uFFFD/g;function fm(e){return(typeof e=="string"?e:""+e).replace(wg,`
10
+ `).replace(Rg,"")}function dm(e,t){return t=fm(t),fm(e)===t}function Pe(e,t,n,l,s,o){switch(n){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Al(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Al(e,""+l);break;case"className":Bn(e,"class",l);break;case"tabIndex":Bn(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Bn(e,n,l);break;case"style":df(e,l,o);break;case"data":if(t!=="object"){Bn(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=_r(""+l),e.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof o=="function"&&(n==="formAction"?(t!=="input"&&Pe(e,t,"name",s.name,s,null),Pe(e,t,"formEncType",s.formEncType,s,null),Pe(e,t,"formMethod",s.formMethod,s,null),Pe(e,t,"formTarget",s.formTarget,s,null)):(Pe(e,t,"encType",s.encType,s,null),Pe(e,t,"method",s.method,s,null),Pe(e,t,"target",s.target,s,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=_r(""+l),e.setAttribute(n,l);break;case"onClick":l!=null&&(e.onclick=ia);break;case"onScroll":l!=null&&Ce("scroll",e);break;case"onScrollEnd":l!=null&&Ce("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(u(61));if(n=l.__html,n!=null){if(s.children!=null)throw Error(u(60));e.innerHTML=n}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}n=_r(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""+l):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":l===!0?e.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,l):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(n,l):e.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(n):e.setAttribute(n,l);break;case"popover":Ce("beforetoggle",e),Ce("toggle",e),pt(e,"popover",l);break;case"xlinkActuate":Ct(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Ct(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Ct(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Ct(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Ct(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Ct(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Ct(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Ct(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Ct(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":pt(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Ip.get(n)||n,pt(e,n,l))}}function Zo(e,t,n,l,s,o){switch(n){case"style":df(e,l,o);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(u(61));if(n=l.__html,n!=null){if(s.children!=null)throw Error(u(60));e.innerHTML=n}}break;case"children":typeof l=="string"?Al(e,l):(typeof l=="number"||typeof l=="bigint")&&Al(e,""+l);break;case"onScroll":l!=null&&Ce("scroll",e);break;case"onScrollEnd":l!=null&&Ce("scrollend",e);break;case"onClick":l!=null&&(e.onclick=ia);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!nn.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(s=n.endsWith("Capture"),t=n.slice(2,s?n.length-7:void 0),o=e[ne]||null,o=o!=null?o[n]:null,typeof o=="function"&&e.removeEventListener(t,o,s),typeof l=="function")){typeof o!="function"&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,l,s);break e}n in e?e[n]=l:l===!0?e.setAttribute(n,""):pt(e,n,l)}}}function Lt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ce("error",e),Ce("load",e);var l=!1,s=!1,o;for(o in n)if(n.hasOwnProperty(o)){var d=n[o];if(d!=null)switch(o){case"src":l=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:Pe(e,t,o,d,n,null)}}s&&Pe(e,t,"srcSet",n.srcSet,n,null),l&&Pe(e,t,"src",n.src,n,null);return;case"input":Ce("invalid",e);var v=o=d=s=null,S=null,z=null;for(l in n)if(n.hasOwnProperty(l)){var j=n[l];if(j!=null)switch(l){case"name":s=j;break;case"type":d=j;break;case"checked":S=j;break;case"defaultChecked":z=j;break;case"value":o=j;break;case"defaultValue":v=j;break;case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(u(137,t));break;default:Pe(e,t,l,j,n,null)}}uf(e,o,v,S,z,d,s,!1);return;case"select":Ce("invalid",e),l=d=o=null;for(s in n)if(n.hasOwnProperty(s)&&(v=n[s],v!=null))switch(s){case"value":o=v;break;case"defaultValue":d=v;break;case"multiple":l=v;default:Pe(e,t,s,v,n,null)}t=o,n=d,e.multiple=!!l,t!=null?Ol(e,!!l,t,!1):n!=null&&Ol(e,!!l,n,!0);return;case"textarea":Ce("invalid",e),o=s=l=null;for(d in n)if(n.hasOwnProperty(d)&&(v=n[d],v!=null))switch(d){case"value":l=v;break;case"defaultValue":s=v;break;case"children":o=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(u(91));break;default:Pe(e,t,d,v,n,null)}cf(e,l,s,o);return;case"option":for(S in n)n.hasOwnProperty(S)&&(l=n[S],l!=null)&&(S==="selected"?e.selected=l&&typeof l!="function"&&typeof l!="symbol":Pe(e,t,S,l,n,null));return;case"dialog":Ce("beforetoggle",e),Ce("toggle",e),Ce("cancel",e),Ce("close",e);break;case"iframe":case"object":Ce("load",e);break;case"video":case"audio":for(l=0;l<Ki.length;l++)Ce(Ki[l],e);break;case"image":Ce("error",e),Ce("load",e);break;case"details":Ce("toggle",e);break;case"embed":case"source":case"link":Ce("error",e),Ce("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(z in n)if(n.hasOwnProperty(z)&&(l=n[z],l!=null))switch(z){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:Pe(e,t,z,l,n,null)}return;default:if(ru(t)){for(j in n)n.hasOwnProperty(j)&&(l=n[j],l!==void 0&&Zo(e,t,j,l,n,void 0));return}}for(v in n)n.hasOwnProperty(v)&&(l=n[v],l!=null&&Pe(e,t,v,l,n,null))}function xg(e,t,n,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,o=null,d=null,v=null,S=null,z=null,j=null;for(L in n){var Q=n[L];if(n.hasOwnProperty(L)&&Q!=null)switch(L){case"checked":break;case"value":break;case"defaultValue":S=Q;default:l.hasOwnProperty(L)||Pe(e,t,L,null,l,Q)}}for(var N in l){var L=l[N];if(Q=n[N],l.hasOwnProperty(N)&&(L!=null||Q!=null))switch(N){case"type":o=L;break;case"name":s=L;break;case"checked":z=L;break;case"defaultChecked":j=L;break;case"value":d=L;break;case"defaultValue":v=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(u(137,t));break;default:L!==Q&&Pe(e,t,N,L,l,Q)}}lu(e,d,v,S,z,j,o,s);return;case"select":L=d=v=N=null;for(o in n)if(S=n[o],n.hasOwnProperty(o)&&S!=null)switch(o){case"value":break;case"multiple":L=S;default:l.hasOwnProperty(o)||Pe(e,t,o,null,l,S)}for(s in l)if(o=l[s],S=n[s],l.hasOwnProperty(s)&&(o!=null||S!=null))switch(s){case"value":N=o;break;case"defaultValue":v=o;break;case"multiple":d=o;default:o!==S&&Pe(e,t,s,o,l,S)}t=v,n=d,l=L,N!=null?Ol(e,!!n,N,!1):!!l!=!!n&&(t!=null?Ol(e,!!n,t,!0):Ol(e,!!n,n?[]:"",!1));return;case"textarea":L=N=null;for(v in n)if(s=n[v],n.hasOwnProperty(v)&&s!=null&&!l.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:Pe(e,t,v,null,l,s)}for(d in l)if(s=l[d],o=n[d],l.hasOwnProperty(d)&&(s!=null||o!=null))switch(d){case"value":N=s;break;case"defaultValue":L=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(u(91));break;default:s!==o&&Pe(e,t,d,s,l,o)}of(e,N,L);return;case"option":for(var le in n)N=n[le],n.hasOwnProperty(le)&&N!=null&&!l.hasOwnProperty(le)&&(le==="selected"?e.selected=!1:Pe(e,t,le,null,l,N));for(S in l)N=l[S],L=n[S],l.hasOwnProperty(S)&&N!==L&&(N!=null||L!=null)&&(S==="selected"?e.selected=N&&typeof N!="function"&&typeof N!="symbol":Pe(e,t,S,N,l,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 me in n)N=n[me],n.hasOwnProperty(me)&&N!=null&&!l.hasOwnProperty(me)&&Pe(e,t,me,null,l,N);for(z in l)if(N=l[z],L=n[z],l.hasOwnProperty(z)&&N!==L&&(N!=null||L!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(u(137,t));break;default:Pe(e,t,z,N,l,L)}return;default:if(ru(t)){for(var We in n)N=n[We],n.hasOwnProperty(We)&&N!==void 0&&!l.hasOwnProperty(We)&&Zo(e,t,We,void 0,l,N);for(j in l)N=l[j],L=n[j],!l.hasOwnProperty(j)||N===L||N===void 0&&L===void 0||Zo(e,t,j,N,l,L);return}}for(var x in n)N=n[x],n.hasOwnProperty(x)&&N!=null&&!l.hasOwnProperty(x)&&Pe(e,t,x,null,l,N);for(Q in l)N=l[Q],L=n[Q],!l.hasOwnProperty(Q)||N===L||N==null&&L==null||Pe(e,t,Q,N,l,L)}function hm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Og(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var s=n[l],o=s.transferSize,d=s.initiatorType,v=s.duration;if(o&&v&&hm(d)){for(d=0,v=s.responseEnd,l+=1;l<n.length;l++){var S=n[l],z=S.startTime;if(z>v)break;var j=S.transferSize,Q=S.initiatorType;j&&hm(Q)&&(S=S.responseEnd,d+=j*(S<v?1:(v-z)/(S-z)))}if(--l,t+=8*(o+d)/(s.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Jo=null,Fo=null;function vs(e){return e.nodeType===9?e:e.ownerDocument}function mm(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 ym(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 $o(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 Po=null;function Ag(){var e=window.event;return e&&e.type==="popstate"?e===Po?!1:(Po=e,!0):(Po=null,!1)}var pm=typeof setTimeout=="function"?setTimeout:void 0,Mg=typeof clearTimeout=="function"?clearTimeout:void 0,vm=typeof Promise=="function"?Promise:void 0,Dg=typeof queueMicrotask=="function"?queueMicrotask:typeof vm<"u"?function(e){return vm.resolve(null).then(e).catch(Cg)}:pm;function Cg(e){setTimeout(function(){throw e})}function Qa(e){return e==="head"}function gm(e,t){var n=t,l=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"||n==="/&"){if(l===0){e.removeChild(s),ii(t);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")Ji(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Ji(n);for(var o=n.firstChild;o;){var d=o.nextSibling,v=o.nodeName;o[ot]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&o.rel.toLowerCase()==="stylesheet"||n.removeChild(o),o=d}}else n==="body"&&Ji(e.ownerDocument.body);n=s}while(n);ii(t)}function bm(e,t){var n=e;e=0;do{var l=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=l}while(n)}function Wo(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Wo(n),ct(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function zg(e,t,n,l){for(;e.nodeType===1;){var s=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[ot])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(o=e.getAttribute("rel"),o==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(o!==s.rel||e.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||e.getAttribute("title")!==(s.title==null?null:s.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(o=e.getAttribute("src"),(o!==(s.src==null?null:s.src)||e.getAttribute("type")!==(s.type==null?null:s.type)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var o=s.name==null?null:""+s.name;if(s.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=Rn(e.nextSibling),e===null)break}return null}function Ng(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Rn(e.nextSibling),e===null))return null;return e}function Sm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Rn(e.nextSibling),e===null))return null;return e}function Io(e){return e.data==="$?"||e.data==="$~"}function ec(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Ug(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var l=function(){t(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Rn(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 tc=null;function Em(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Rn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function _m(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function Tm(e,t,n){switch(t=vs(n),e){case"html":if(e=t.documentElement,!e)throw Error(u(452));return e;case"head":if(e=t.head,!e)throw Error(u(453));return e;case"body":if(e=t.body,!e)throw Error(u(454));return e;default:throw Error(u(451))}}function Ji(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ct(e)}var xn=new Map,wm=new Set;function gs(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ea=k.d;k.d={f:Lg,r:Bg,D:Hg,C:jg,L:qg,m:Yg,X:Vg,S:Qg,M:Gg};function Lg(){var e=Ea.f(),t=os();return e||t}function Bg(e){var t=Be(e);t!==null&&t.tag===5&&t.type==="form"?Qd(t):Ea.r(e)}var ni=typeof document>"u"?null:document;function Rm(e,t,n){var l=ni;if(l&&typeof t=="string"&&t){var s=gn(t);s='link[rel="'+e+'"][href="'+s+'"]',typeof n=="string"&&(s+='[crossorigin="'+n+'"]'),wm.has(s)||(wm.add(s),e={rel:e,crossOrigin:n,href:t},l.querySelector(s)===null&&(t=l.createElement("link"),Lt(t,"link",e),rt(t),l.head.appendChild(t)))}}function Hg(e){Ea.D(e),Rm("dns-prefetch",e,null)}function jg(e,t){Ea.C(e,t),Rm("preconnect",e,t)}function qg(e,t,n){Ea.L(e,t,n);var l=ni;if(l&&e&&t){var s='link[rel="preload"][as="'+gn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(s+='[imagesrcset="'+gn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(s+='[imagesizes="'+gn(n.imageSizes)+'"]')):s+='[href="'+gn(e)+'"]';var o=s;switch(t){case"style":o=ai(e);break;case"script":o=li(e)}xn.has(o)||(e=p({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),xn.set(o,e),l.querySelector(s)!==null||t==="style"&&l.querySelector(Fi(o))||t==="script"&&l.querySelector($i(o))||(t=l.createElement("link"),Lt(t,"link",e),rt(t),l.head.appendChild(t)))}}function Yg(e,t){Ea.m(e,t);var n=ni;if(n&&e){var l=t&&typeof t.as=="string"?t.as:"script",s='link[rel="modulepreload"][as="'+gn(l)+'"][href="'+gn(e)+'"]',o=s;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=li(e)}if(!xn.has(o)&&(e=p({rel:"modulepreload",href:e},t),xn.set(o,e),n.querySelector(s)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector($i(o)))return}l=n.createElement("link"),Lt(l,"link",e),rt(l),n.head.appendChild(l)}}}function Qg(e,t,n){Ea.S(e,t,n);var l=ni;if(l&&e){var s=Kt(l).hoistableStyles,o=ai(e);t=t||"default";var d=s.get(o);if(!d){var v={loading:0,preload:null};if(d=l.querySelector(Fi(o)))v.loading=5;else{e=p({rel:"stylesheet",href:e,"data-precedence":t},n),(n=xn.get(o))&&nc(e,n);var S=d=l.createElement("link");rt(S),Lt(S,"link",e),S._p=new Promise(function(z,j){S.onload=z,S.onerror=j}),S.addEventListener("load",function(){v.loading|=1}),S.addEventListener("error",function(){v.loading|=2}),v.loading|=4,bs(d,t,l)}d={type:"stylesheet",instance:d,count:1,state:v},s.set(o,d)}}}function Vg(e,t){Ea.X(e,t);var n=ni;if(n&&e){var l=Kt(n).hoistableScripts,s=li(e),o=l.get(s);o||(o=n.querySelector($i(s)),o||(e=p({src:e,async:!0},t),(t=xn.get(s))&&ac(e,t),o=n.createElement("script"),rt(o),Lt(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},l.set(s,o))}}function Gg(e,t){Ea.M(e,t);var n=ni;if(n&&e){var l=Kt(n).hoistableScripts,s=li(e),o=l.get(s);o||(o=n.querySelector($i(s)),o||(e=p({src:e,async:!0,type:"module"},t),(t=xn.get(s))&&ac(e,t),o=n.createElement("script"),rt(o),Lt(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},l.set(s,o))}}function xm(e,t,n,l){var s=(s=ue.current)?gs(s):null;if(!s)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=ai(n.href),n=Kt(s).hoistableStyles,l=n.get(t),l||(l={type:"style",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=ai(n.href);var o=Kt(s).hoistableStyles,d=o.get(e);if(d||(s=s.ownerDocument||s,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,d),(o=s.querySelector(Fi(e)))&&!o._p&&(d.instance=o,d.state.loading=5),xn.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},xn.set(e,n),o||Xg(s,e,n,d.state))),t&&l===null)throw Error(u(528,""));return d}if(t&&l!==null)throw Error(u(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=li(n),n=Kt(s).hoistableScripts,l=n.get(t),l||(l={type:"script",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function ai(e){return'href="'+gn(e)+'"'}function Fi(e){return'link[rel="stylesheet"]['+e+"]"}function Om(e){return p({},e,{"data-precedence":e.precedence,precedence:null})}function Xg(e,t,n,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),Lt(t,"link",n),rt(t),e.head.appendChild(t))}function li(e){return'[src="'+gn(e)+'"]'}function $i(e){return"script[async]"+e}function Am(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+gn(n.href)+'"]');if(l)return t.instance=l,rt(l),l;var s=p({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),rt(l),Lt(l,"style",s),bs(l,n.precedence,e),t.instance=l;case"stylesheet":s=ai(n.href);var o=e.querySelector(Fi(s));if(o)return t.state.loading|=4,t.instance=o,rt(o),o;l=Om(n),(s=xn.get(s))&&nc(l,s),o=(e.ownerDocument||e).createElement("link"),rt(o);var d=o;return d._p=new Promise(function(v,S){d.onload=v,d.onerror=S}),Lt(o,"link",l),t.state.loading|=4,bs(o,n.precedence,e),t.instance=o;case"script":return o=li(n.src),(s=e.querySelector($i(o)))?(t.instance=s,rt(s),s):(l=n,(s=xn.get(o))&&(l=p({},n),ac(l,s)),e=e.ownerDocument||e,s=e.createElement("script"),rt(s),Lt(s,"link",l),e.head.appendChild(s),t.instance=s);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,bs(l,n.precedence,e));return t.instance}function bs(e,t,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=l.length?l[l.length-1]:null,o=s,d=0;d<l.length;d++){var v=l[d];if(v.dataset.precedence===t)o=v;else if(o!==s)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function nc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function ac(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Ss=null;function Mm(e,t,n){if(Ss===null){var l=new Map,s=Ss=new Map;s.set(n,l)}else s=Ss,l=s.get(n),l||(l=new Map,s.set(n,l));if(l.has(e))return l;for(l.set(e,null),n=n.getElementsByTagName(e),s=0;s<n.length;s++){var o=n[s];if(!(o[ot]||o[ee]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var d=o.getAttribute(t)||"";d=e+d;var v=l.get(d);v?v.push(o):l.set(d,[o])}}return l}function Dm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function kg(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;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 Cm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Kg(e,t,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var s=ai(l.href),o=t.querySelector(Fi(s));if(o){t=o._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Es.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=o,rt(o);return}o=t.ownerDocument||t,l=Om(l),(s=xn.get(s))&&nc(l,s),o=o.createElement("link"),rt(o);var d=o;d._p=new Promise(function(v,S){d.onload=v,d.onerror=S}),Lt(o,"link",l),n.instance=o}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Es.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var lc=0;function Zg(e,t){return e.stylesheets&&e.count===0&&Ts(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var l=setTimeout(function(){if(e.stylesheets&&Ts(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4+t);0<e.imgBytes&&lc===0&&(lc=62500*Og());var s=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Ts(e,e.stylesheets),e.unsuspend)){var o=e.unsuspend;e.unsuspend=null,o()}},(e.imgBytes>lc?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(s)}}:null}function Es(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ts(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var _s=null;function Ts(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,_s=new Map,t.forEach(Jg,e),_s=null,Es.call(e))}function Jg(e,t){if(!(t.state.loading&4)){var n=_s.get(e);if(n)var l=n.get(null);else{n=new Map,_s.set(e,n);for(var s=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<s.length;o++){var d=s[o];(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")&&(n.set(d.dataset.precedence,d),l=d)}l&&n.set(null,l)}s=t.instance,d=s.getAttribute("data-precedence"),o=n.get(d)||l,o===l&&n.set(null,s),n.set(d,s),this.count++,l=Es.bind(this),s.addEventListener("load",l),s.addEventListener("error",l),o?o.parentNode.insertBefore(s,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(s,e.firstChild)),t.state.loading|=4}}var Pi={$$typeof:W,Provider:null,Consumer:null,_currentValue:F,_currentValue2:F,_threadCount:0};function Fg(e,t,n,l,s,o,d,v,S){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=tn(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=tn(0),this.hiddenUpdates=tn(null),this.identifierPrefix=l,this.onUncaughtError=s,this.onCaughtError=o,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=S,this.incompleteTransitions=new Map}function zm(e,t,n,l,s,o,d,v,S,z,j,Q){return e=new Fg(e,t,n,d,S,z,j,Q,v),t=1,o===!0&&(t|=24),o=ln(3,null,null,t),e.current=o,o.stateNode=e,t=Bu(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:l,isDehydrated:n,cache:t},Yu(o),e}function Nm(e){return e?(e=Ll,e):Ll}function Um(e,t,n,l,s,o){s=Nm(s),l.context===null?l.context=s:l.pendingContext=s,l=Da(t),l.payload={element:n},o=o===void 0?null:o,o!==null&&(l.callback=o),n=Ca(e,l,t),n!==null&&(Wt(n,e,t),Mi(n,e,t))}function Lm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ic(e,t){Lm(e,t),(e=e.alternate)&&Lm(e,t)}function Bm(e){if(e.tag===13||e.tag===31){var t=cl(e,67108864);t!==null&&Wt(t,e,67108864),ic(e,67108864)}}function Hm(e){if(e.tag===13||e.tag===31){var t=cn();t=U(t);var n=cl(e,t);n!==null&&Wt(n,e,t),ic(e,t)}}var ws=!0;function $g(e,t,n,l){var s=O.T;O.T=null;var o=k.p;try{k.p=2,rc(e,t,n,l)}finally{k.p=o,O.T=s}}function Pg(e,t,n,l){var s=O.T;O.T=null;var o=k.p;try{k.p=8,rc(e,t,n,l)}finally{k.p=o,O.T=s}}function rc(e,t,n,l){if(ws){var s=sc(l);if(s===null)Ko(e,t,l,Rs,n),qm(e,l);else if(Ig(s,e,t,n,l))l.stopPropagation();else if(qm(e,l),t&4&&-1<Wg.indexOf(e)){for(;s!==null;){var o=Be(s);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var d=pn(o.pendingLanes);if(d!==0){var v=o;for(v.pendingLanes|=2,v.entangledLanes|=2;d;){var S=1<<31-Rt(d);v.entanglements[1]|=S,d&=~S}Jn(o),(ke&6)===0&&(ss=ut()+500,ki(0))}}break;case 31:case 13:v=cl(o,2),v!==null&&Wt(v,o,2),os(),ic(o,2)}if(o=sc(l),o===null&&Ko(e,t,l,Rs,n),o===s)break;s=o}s!==null&&l.stopPropagation()}else Ko(e,t,l,null,n)}}function sc(e){return e=uu(e),uc(e)}var Rs=null;function uc(e){if(Rs=null,e=ft(e),e!==null){var t=f(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=h(t),e!==null)return e;e=null}else if(n===31){if(e=m(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Rs=e,null}function jm(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(ea()){case Xn:return 2;case Ta:return 8;case Dt:case Yt:return 32;case mn:return 268435456;default:return 32}default:return 32}}var oc=!1,Va=null,Ga=null,Xa=null,Wi=new Map,Ii=new Map,ka=[],Wg="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 qm(e,t){switch(e){case"focusin":case"focusout":Va=null;break;case"dragenter":case"dragleave":Ga=null;break;case"mouseover":case"mouseout":Xa=null;break;case"pointerover":case"pointerout":Wi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ii.delete(t.pointerId)}}function er(e,t,n,l,s,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:l,nativeEvent:o,targetContainers:[s]},t!==null&&(t=Be(t),t!==null&&Bm(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function Ig(e,t,n,l,s){switch(t){case"focusin":return Va=er(Va,e,t,n,l,s),!0;case"dragenter":return Ga=er(Ga,e,t,n,l,s),!0;case"mouseover":return Xa=er(Xa,e,t,n,l,s),!0;case"pointerover":var o=s.pointerId;return Wi.set(o,er(Wi.get(o)||null,e,t,n,l,s)),!0;case"gotpointercapture":return o=s.pointerId,Ii.set(o,er(Ii.get(o)||null,e,t,n,l,s)),!0}return!1}function Ym(e){var t=ft(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=h(n),t!==null){e.blockedOn=t,se(e.priority,function(){Hm(n)});return}}else if(t===31){if(t=m(n),t!==null){e.blockedOn=t,se(e.priority,function(){Hm(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function xs(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=sc(e.nativeEvent);if(n===null){n=e.nativeEvent;var l=new n.constructor(n.type,n);su=l,n.target.dispatchEvent(l),su=null}else return t=Be(n),t!==null&&Bm(t),e.blockedOn=n,!1;t.shift()}return!0}function Qm(e,t,n){xs(e)&&n.delete(t)}function e0(){oc=!1,Va!==null&&xs(Va)&&(Va=null),Ga!==null&&xs(Ga)&&(Ga=null),Xa!==null&&xs(Xa)&&(Xa=null),Wi.forEach(Qm),Ii.forEach(Qm)}function Os(e,t){e.blockedOn===t&&(e.blockedOn=null,oc||(oc=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,e0)))}var As=null;function Vm(e){As!==e&&(As=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){As===e&&(As=null);for(var t=0;t<e.length;t+=3){var n=e[t],l=e[t+1],s=e[t+2];if(typeof l!="function"){if(uc(l||n)===null)continue;break}var o=Be(n);o!==null&&(e.splice(t,3),t-=3,ro(o,{pending:!0,data:s,method:n.method,action:l},l,s))}}))}function ii(e){function t(S){return Os(S,e)}Va!==null&&Os(Va,e),Ga!==null&&Os(Ga,e),Xa!==null&&Os(Xa,e),Wi.forEach(t),Ii.forEach(t);for(var n=0;n<ka.length;n++){var l=ka[n];l.blockedOn===e&&(l.blockedOn=null)}for(;0<ka.length&&(n=ka[0],n.blockedOn===null);)Ym(n),n.blockedOn===null&&ka.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var s=n[l],o=n[l+1],d=s[ne]||null;if(typeof o=="function")d||Vm(n);else if(d){var v=null;if(o&&o.hasAttribute("formAction")){if(s=o,d=o[ne]||null)v=d.formAction;else if(uc(s)!==null)continue}else v=d.action;typeof v=="function"?n[l+1]=v:(n.splice(l,3),l-=3),Vm(n)}}}function Gm(){function e(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(d){return s=d})},focusReset:"manual",scroll:"manual"})}function t(){s!==null&&(s(),s=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var o=navigation.currentEntry;o&&o.url!=null&&navigation.navigate(o.url,{state:o.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,s=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),s!==null&&(s(),s=null)}}}function cc(e){this._internalRoot=e}Ms.prototype.render=cc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(u(409));var n=t.current,l=cn();Um(n,l,e,t,null,null)},Ms.prototype.unmount=cc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Um(e.current,2,null,e,null,null),os(),t[re]=null}};function Ms(e){this._internalRoot=e}Ms.prototype.unstable_scheduleHydration=function(e){if(e){var t=$();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ka.length&&t!==0&&t<ka[n].priority;n++);ka.splice(n,0,e),n===0&&Ym(e)}};var Xm=i.version;if(Xm!=="19.2.4")throw Error(u(527,Xm,"19.2.4"));k.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(u(188)):(e=Object.keys(e).join(","),Error(u(268,e)));return e=y(t),e=e!==null?E(e):null,e=e===null?null:e.stateNode,e};var t0={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:O,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ds=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ds.isDisabled&&Ds.supportsFiber)try{ta=Ds.inject(t0),at=Ds}catch{}}return nr.createRoot=function(e,t){if(!c(e))throw Error(u(299));var n=!1,l="",s=Pd,o=Wd,d=Id;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(s=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(d=t.onRecoverableError)),t=zm(e,1,!1,null,null,n,l,null,s,o,d,Gm),e[re]=t.current,ko(e),new cc(t)},nr.hydrateRoot=function(e,t,n){if(!c(e))throw Error(u(299));var l=!1,s="",o=Pd,d=Wd,v=Id,S=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(d=n.onCaughtError),n.onRecoverableError!==void 0&&(v=n.onRecoverableError),n.formState!==void 0&&(S=n.formState)),t=zm(e,1,!0,t,n??null,l,s,S,o,d,v,Gm),t.context=Nm(null),n=t.current,l=cn(),l=U(l),s=Da(l),s.callback=null,Ca(n,s,l),n=l,t.current.lanes=n,nt(t,n),Jn(t),e[re]=t.current,ko(e),new Ms(t)},nr.version="19.2.4",nr}var ey;function d0(){if(ey)return hc.exports;ey=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),hc.exports=f0(),hc.exports}var h0=d0(),Fs=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(a){return this.listeners.add(a),this.onSubscribe(),()=>{this.listeners.delete(a),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},m0={setTimeout:(a,i)=>setTimeout(a,i),clearTimeout:a=>clearTimeout(a),setInterval:(a,i)=>setInterval(a,i),clearInterval:a=>clearInterval(a)},y0=class{#e=m0;#n=!1;setTimeoutProvider(a){this.#e=a}setTimeout(a,i){return this.#e.setTimeout(a,i)}clearTimeout(a){this.#e.clearTimeout(a)}setInterval(a,i){return this.#e.setInterval(a,i)}clearInterval(a){this.#e.clearInterval(a)}},xc=new y0;function p0(a){setTimeout(a,0)}var $s=typeof window>"u"||"Deno"in globalThis;function Yn(){}function v0(a,i){return typeof a=="function"?a(i):a}function g0(a){return typeof a=="number"&&a>=0&&a!==1/0}function b0(a,i){return Math.max(a+(i||0)-Date.now(),0)}function Oc(a,i){return typeof a=="function"?a(i):a}function S0(a,i){return typeof a=="function"?a(i):a}function ty(a,i){const{type:r="all",exact:u,fetchStatus:c,predicate:f,queryKey:h,stale:m}=a;if(h){if(u){if(i.queryHash!==Vc(h,i.options))return!1}else if(!dr(i.queryKey,h))return!1}if(r!=="all"){const g=i.isActive();if(r==="active"&&!g||r==="inactive"&&g)return!1}return!(typeof m=="boolean"&&i.isStale()!==m||c&&c!==i.state.fetchStatus||f&&!f(i))}function ny(a,i){const{exact:r,status:u,predicate:c,mutationKey:f}=a;if(f){if(!i.options.mutationKey)return!1;if(r){if(fr(i.options.mutationKey)!==fr(f))return!1}else if(!dr(i.options.mutationKey,f))return!1}return!(u&&i.state.status!==u||c&&!c(i))}function Vc(a,i){return(i?.queryKeyHashFn||fr)(a)}function fr(a){return JSON.stringify(a,(i,r)=>Ac(r)?Object.keys(r).sort().reduce((u,c)=>(u[c]=r[c],u),{}):r)}function dr(a,i){return a===i?!0:typeof a!=typeof i?!1:a&&i&&typeof a=="object"&&typeof i=="object"?Object.keys(i).every(r=>dr(a[r],i[r])):!1}var E0=Object.prototype.hasOwnProperty;function Fy(a,i,r=0){if(a===i)return a;if(r>500)return i;const u=ay(a)&&ay(i);if(!u&&!(Ac(a)&&Ac(i)))return i;const f=(u?a:Object.keys(a)).length,h=u?i:Object.keys(i),m=h.length,g=u?new Array(m):{};let y=0;for(let E=0;E<m;E++){const p=u?E:h[E],R=a[p],D=i[p];if(R===D){g[p]=R,(u?E<f:E0.call(a,p))&&y++;continue}if(R===null||D===null||typeof R!="object"||typeof D!="object"){g[p]=D;continue}const H=Fy(R,D,r+1);g[p]=H,H===R&&y++}return f===m&&y===f?a:g}function d2(a,i){if(!i||Object.keys(a).length!==Object.keys(i).length)return!1;for(const r in a)if(a[r]!==i[r])return!1;return!0}function ay(a){return Array.isArray(a)&&a.length===Object.keys(a).length}function Ac(a){if(!ly(a))return!1;const i=a.constructor;if(i===void 0)return!0;const r=i.prototype;return!(!ly(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(a)!==Object.prototype)}function ly(a){return Object.prototype.toString.call(a)==="[object Object]"}function _0(a){return new Promise(i=>{xc.setTimeout(i,a)})}function T0(a,i,r){return typeof r.structuralSharing=="function"?r.structuralSharing(a,i):r.structuralSharing!==!1?Fy(a,i):i}function w0(a,i,r=0){const u=[...a,i];return r&&u.length>r?u.slice(1):u}function R0(a,i,r=0){const u=[i,...a];return r&&u.length>r?u.slice(0,-1):u}var Gc=Symbol();function $y(a,i){return!a.queryFn&&i?.initialPromise?()=>i.initialPromise:!a.queryFn||a.queryFn===Gc?()=>Promise.reject(new Error(`Missing queryFn: '${a.queryHash}'`)):a.queryFn}function h2(a,i){return typeof a=="function"?a(...i):!!a}function x0(a,i,r){let u=!1,c;return Object.defineProperty(a,"signal",{enumerable:!0,get:()=>(c??=i(),u||(u=!0,c.aborted?r():c.addEventListener("abort",r,{once:!0})),c)}),a}var O0=class extends Fs{#e;#n;#t;constructor(){super(),this.#t=a=>{if(!$s&&window.addEventListener){const i=()=>a();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}}}onSubscribe(){this.#n||this.setEventListener(this.#t)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(a){this.#t=a,this.#n?.(),this.#n=a(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()})}setFocused(a){this.#e!==a&&(this.#e=a,this.onFocus())}onFocus(){const a=this.isFocused();this.listeners.forEach(i=>{i(a)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},Py=new O0;function A0(){let a,i;const r=new Promise((c,f)=>{a=c,i=f});r.status="pending",r.catch(()=>{});function u(c){Object.assign(r,c),delete r.resolve,delete r.reject}return r.resolve=c=>{u({status:"fulfilled",value:c}),a(c)},r.reject=c=>{u({status:"rejected",reason:c}),i(c)},r}var M0=p0;function D0(){let a=[],i=0,r=m=>{m()},u=m=>{m()},c=M0;const f=m=>{i?a.push(m):c(()=>{r(m)})},h=()=>{const m=a;a=[],m.length&&c(()=>{u(()=>{m.forEach(g=>{r(g)})})})};return{batch:m=>{let g;i++;try{g=m()}finally{i--,i||h()}return g},batchCalls:m=>(...g)=>{f(()=>{m(...g)})},schedule:f,setNotifyFunction:m=>{r=m},setBatchNotifyFunction:m=>{u=m},setScheduler:m=>{c=m}}}var Vt=D0(),C0=class extends Fs{#e=!0;#n;#t;constructor(){super(),this.#t=a=>{if(!$s&&window.addEventListener){const i=()=>a(!0),r=()=>a(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#n||this.setEventListener(this.#t)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(a){this.#t=a,this.#n?.(),this.#n=a(this.setOnline.bind(this))}setOnline(a){this.#e!==a&&(this.#e=a,this.listeners.forEach(r=>{r(a)}))}isOnline(){return this.#e}},Zs=new C0;function z0(a){return Math.min(1e3*2**a,3e4)}function Wy(a){return(a??"online")==="online"?Zs.isOnline():!0}var Mc=class extends Error{constructor(a){super("CancelledError"),this.revert=a?.revert,this.silent=a?.silent}};function Iy(a){let i=!1,r=0,u;const c=A0(),f=()=>c.status!=="pending",h=V=>{if(!f()){const K=new Mc(V);R(K),a.onCancel?.(K)}},m=()=>{i=!0},g=()=>{i=!1},y=()=>Py.isFocused()&&(a.networkMode==="always"||Zs.isOnline())&&a.canRun(),E=()=>Wy(a.networkMode)&&a.canRun(),p=V=>{f()||(u?.(),c.resolve(V))},R=V=>{f()||(u?.(),c.reject(V))},D=()=>new Promise(V=>{u=K=>{(f()||y())&&V(K)},a.onPause?.()}).then(()=>{u=void 0,f()||a.onContinue?.()}),H=()=>{if(f())return;let V;const K=r===0?a.initialPromise:void 0;try{V=K??a.fn()}catch(G){V=Promise.reject(G)}Promise.resolve(V).then(p).catch(G=>{if(f())return;const Z=a.retry??($s?0:3),W=a.retryDelay??z0,be=typeof W=="function"?W(r,G):W,ve=Z===!0||typeof Z=="number"&&r<Z||typeof Z=="function"&&Z(r,G);if(i||!ve){R(G);return}r++,a.onFail?.(r,G),_0(be).then(()=>y()?void 0:D()).then(()=>{i?R(G):H()})})};return{promise:c,status:()=>c.status,cancel:h,continue:()=>(u?.(),c),cancelRetry:m,continueRetry:g,canStart:E,start:()=>(E()?H():D().then(H),c)}}var ep=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),g0(this.gcTime)&&(this.#e=xc.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(a){this.gcTime=Math.max(this.gcTime||0,a??($s?1/0:300*1e3))}clearGcTimeout(){this.#e&&(xc.clearTimeout(this.#e),this.#e=void 0)}},N0=class extends ep{#e;#n;#t;#l;#a;#r;#s;constructor(a){super(),this.#s=!1,this.#r=a.defaultOptions,this.setOptions(a.options),this.observers=[],this.#l=a.client,this.#t=this.#l.getQueryCache(),this.queryKey=a.queryKey,this.queryHash=a.queryHash,this.#e=ry(this.options),this.state=a.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(a){if(this.options={...this.#r,...a},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=ry(this.options);i.data!==void 0&&(this.setState(iy(i.data,i.dataUpdatedAt)),this.#e=i)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#t.remove(this)}setData(a,i){const r=T0(this.state.data,a,this.options);return this.#i({data:r,type:"success",dataUpdatedAt:i?.updatedAt,manual:i?.manual}),r}setState(a,i){this.#i({type:"setState",state:a,setStateOptions:i})}cancel(a){const i=this.#a?.promise;return this.#a?.cancel(a),i?i.then(Yn).catch(Yn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(a=>S0(a.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Gc||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(a=>Oc(a.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(a=>a.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(a=0){return this.state.data===void 0?!0:a==="static"?!1:this.state.isInvalidated?!0:!b0(this.state.dataUpdatedAt,a)}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(a){this.observers.includes(a)||(this.observers.push(a),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",query:this,observer:a}))}removeObserver(a){this.observers.includes(a)&&(this.observers=this.observers.filter(i=>i!==a),this.observers.length||(this.#a&&(this.#s?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#t.notify({type:"observerRemoved",query:this,observer:a}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(a,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(a&&this.setOptions(a),!this.options.queryFn){const m=this.observers.find(g=>g.options.queryFn);m&&this.setOptions(m.options)}const r=new AbortController,u=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(this.#s=!0,r.signal)})},c=()=>{const m=$y(this.options,i),y=(()=>{const E={client:this.#l,queryKey:this.queryKey,meta:this.meta};return u(E),E})();return this.#s=!1,this.options.persister?this.options.persister(m,y,this):m(y)},h=(()=>{const m={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:this.#l,state:this.state,fetchFn:c};return u(m),m})();this.options.behavior?.onFetch(h,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==h.fetchOptions?.meta)&&this.#i({type:"fetch",meta:h.fetchOptions?.meta}),this.#a=Iy({initialPromise:i?.initialPromise,fn:h.fetchFn,onCancel:m=>{m instanceof Mc&&m.revert&&this.setState({...this.#n,fetchStatus:"idle"}),r.abort()},onFail:(m,g)=>{this.#i({type:"failed",failureCount:m,error:g})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode,canRun:()=>!0});try{const m=await this.#a.start();if(m===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(m),this.#t.config.onSuccess?.(m,this),this.#t.config.onSettled?.(m,this.state.error,this),m}catch(m){if(m instanceof Mc){if(m.silent)return this.#a.promise;if(m.revert){if(this.state.data===void 0)throw m;return this.state.data}}throw this.#i({type:"error",error:m}),this.#t.config.onError?.(m,this),this.#t.config.onSettled?.(this.state.data,m,this),m}finally{this.scheduleGc()}}#i(a){const i=r=>{switch(a.type){case"failed":return{...r,fetchFailureCount:a.failureCount,fetchFailureReason:a.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...U0(r.data,this.options),fetchMeta:a.meta??null};case"success":const u={...r,...iy(a.data,a.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!a.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=a.manual?u:void 0,u;case"error":const c=a.error;return{...r,error:c,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:c,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...a.state}}};this.state=i(this.state),Vt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),this.#t.notify({query:this,type:"updated",action:a})})}};function U0(a,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Wy(i.networkMode)?"fetching":"paused",...a===void 0&&{error:null,status:"pending"}}}function iy(a,i){return{data:a,dataUpdatedAt:i??Date.now(),error:null,isInvalidated:!1,status:"success"}}function ry(a){const i=typeof a.initialData=="function"?a.initialData():a.initialData,r=i!==void 0,u=r?typeof a.initialDataUpdatedAt=="function"?a.initialDataUpdatedAt():a.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:r?u??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}function sy(a){return{onFetch:(i,r)=>{const u=i.options,c=i.fetchOptions?.meta?.fetchMore?.direction,f=i.state.data?.pages||[],h=i.state.data?.pageParams||[];let m={pages:[],pageParams:[]},g=0;const y=async()=>{let E=!1;const p=H=>{x0(H,()=>i.signal,()=>E=!0)},R=$y(i.options,i.fetchOptions),D=async(H,V,K)=>{if(E)return Promise.reject();if(V==null&&H.pages.length)return Promise.resolve(H);const Z=(()=>{const ye={client:i.client,queryKey:i.queryKey,pageParam:V,direction:K?"backward":"forward",meta:i.options.meta};return p(ye),ye})(),W=await R(Z),{maxPages:be}=i.options,ve=K?R0:w0;return{pages:ve(H.pages,W,be),pageParams:ve(H.pageParams,V,be)}};if(c&&f.length){const H=c==="backward",V=H?L0:uy,K={pages:f,pageParams:h},G=V(u,K);m=await D(K,G,H)}else{const H=a??f.length;do{const V=g===0?h[0]??u.initialPageParam:uy(u,m);if(g>0&&V==null)break;m=await D(m,V),g++}while(g<H)}return m};i.options.persister?i.fetchFn=()=>i.options.persister?.(y,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},r):i.fetchFn=y}}}function uy(a,{pages:i,pageParams:r}){const u=i.length-1;return i.length>0?a.getNextPageParam(i[u],i,r[u],r):void 0}function L0(a,{pages:i,pageParams:r}){return i.length>0?a.getPreviousPageParam?.(i[0],i,r[0],r):void 0}var B0=class extends ep{#e;#n;#t;#l;constructor(a){super(),this.#e=a.client,this.mutationId=a.mutationId,this.#t=a.mutationCache,this.#n=[],this.state=a.state||H0(),this.setOptions(a.options),this.scheduleGc()}setOptions(a){this.options=a,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(a){this.#n.includes(a)||(this.#n.push(a),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",mutation:this,observer:a}))}removeObserver(a){this.#n=this.#n.filter(i=>i!==a),this.scheduleGc(),this.#t.notify({type:"observerRemoved",mutation:this,observer:a})}optionalRemove(){this.#n.length||(this.state.status==="pending"?this.scheduleGc():this.#t.remove(this))}continue(){return this.#l?.continue()??this.execute(this.state.variables)}async execute(a){const i=()=>{this.#a({type:"continue"})},r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#l=Iy({fn:()=>this.options.mutationFn?this.options.mutationFn(a,r):Promise.reject(new Error("No mutationFn found")),onFail:(f,h)=>{this.#a({type:"failed",failureCount:f,error:h})},onPause:()=>{this.#a({type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#t.canRun(this)});const u=this.state.status==="pending",c=!this.#l.canStart();try{if(u)i();else{this.#a({type:"pending",variables:a,isPaused:c}),this.#t.config.onMutate&&await this.#t.config.onMutate(a,this,r);const h=await this.options.onMutate?.(a,r);h!==this.state.context&&this.#a({type:"pending",context:h,variables:a,isPaused:c})}const f=await this.#l.start();return await this.#t.config.onSuccess?.(f,a,this.state.context,this,r),await this.options.onSuccess?.(f,a,this.state.context,r),await this.#t.config.onSettled?.(f,null,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(f,null,a,this.state.context,r),this.#a({type:"success",data:f}),f}catch(f){try{await this.#t.config.onError?.(f,a,this.state.context,this,r)}catch(h){Promise.reject(h)}try{await this.options.onError?.(f,a,this.state.context,r)}catch(h){Promise.reject(h)}try{await this.#t.config.onSettled?.(void 0,f,this.state.variables,this.state.context,this,r)}catch(h){Promise.reject(h)}try{await this.options.onSettled?.(void 0,f,a,this.state.context,r)}catch(h){Promise.reject(h)}throw this.#a({type:"error",error:f}),f}finally{this.#t.runNext(this)}}#a(a){const i=r=>{switch(a.type){case"failed":return{...r,failureCount:a.failureCount,failureReason:a.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:a.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:a.isPaused,status:"pending",variables:a.variables,submittedAt:Date.now()};case"success":return{...r,data:a.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:a.error,failureCount:r.failureCount+1,failureReason:a.error,isPaused:!1,status:"error"}}};this.state=i(this.state),Vt.batch(()=>{this.#n.forEach(r=>{r.onMutationUpdate(a)}),this.#t.notify({mutation:this,type:"updated",action:a})})}};function H0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var j0=class extends Fs{constructor(a={}){super(),this.config=a,this.#e=new Set,this.#n=new Map,this.#t=0}#e;#n;#t;build(a,i,r){const u=new B0({client:a,mutationCache:this,mutationId:++this.#t,options:a.defaultMutationOptions(i),state:r});return this.add(u),u}add(a){this.#e.add(a);const i=Cs(a);if(typeof i=="string"){const r=this.#n.get(i);r?r.push(a):this.#n.set(i,[a])}this.notify({type:"added",mutation:a})}remove(a){if(this.#e.delete(a)){const i=Cs(a);if(typeof i=="string"){const r=this.#n.get(i);if(r)if(r.length>1){const u=r.indexOf(a);u!==-1&&r.splice(u,1)}else r[0]===a&&this.#n.delete(i)}}this.notify({type:"removed",mutation:a})}canRun(a){const i=Cs(a);if(typeof i=="string"){const u=this.#n.get(i)?.find(c=>c.state.status==="pending");return!u||u===a}else return!0}runNext(a){const i=Cs(a);return typeof i=="string"?this.#n.get(i)?.find(u=>u!==a&&u.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Vt.batch(()=>{this.#e.forEach(a=>{this.notify({type:"removed",mutation:a})}),this.#e.clear(),this.#n.clear()})}getAll(){return Array.from(this.#e)}find(a){const i={exact:!0,...a};return this.getAll().find(r=>ny(i,r))}findAll(a={}){return this.getAll().filter(i=>ny(a,i))}notify(a){Vt.batch(()=>{this.listeners.forEach(i=>{i(a)})})}resumePausedMutations(){const a=this.getAll().filter(i=>i.state.isPaused);return Vt.batch(()=>Promise.all(a.map(i=>i.continue().catch(Yn))))}};function Cs(a){return a.options.scope?.id}var q0=class extends Fs{constructor(a={}){super(),this.config=a,this.#e=new Map}#e;build(a,i,r){const u=i.queryKey,c=i.queryHash??Vc(u,i);let f=this.get(c);return f||(f=new N0({client:a,queryKey:u,queryHash:c,options:a.defaultQueryOptions(i),state:r,defaultOptions:a.getQueryDefaults(u)}),this.add(f)),f}add(a){this.#e.has(a.queryHash)||(this.#e.set(a.queryHash,a),this.notify({type:"added",query:a}))}remove(a){const i=this.#e.get(a.queryHash);i&&(a.destroy(),i===a&&this.#e.delete(a.queryHash),this.notify({type:"removed",query:a}))}clear(){Vt.batch(()=>{this.getAll().forEach(a=>{this.remove(a)})})}get(a){return this.#e.get(a)}getAll(){return[...this.#e.values()]}find(a){const i={exact:!0,...a};return this.getAll().find(r=>ty(i,r))}findAll(a={}){const i=this.getAll();return Object.keys(a).length>0?i.filter(r=>ty(a,r)):i}notify(a){Vt.batch(()=>{this.listeners.forEach(i=>{i(a)})})}onFocus(){Vt.batch(()=>{this.getAll().forEach(a=>{a.onFocus()})})}onOnline(){Vt.batch(()=>{this.getAll().forEach(a=>{a.onOnline()})})}},Y0=class{#e;#n;#t;#l;#a;#r;#s;#i;constructor(a={}){this.#e=a.queryCache||new q0,this.#n=a.mutationCache||new j0,this.#t=a.defaultOptions||{},this.#l=new Map,this.#a=new Map,this.#r=0}mount(){this.#r++,this.#r===1&&(this.#s=Py.subscribe(async a=>{a&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=Zs.subscribe(async a=>{a&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#r--,this.#r===0&&(this.#s?.(),this.#s=void 0,this.#i?.(),this.#i=void 0)}isFetching(a){return this.#e.findAll({...a,fetchStatus:"fetching"}).length}isMutating(a){return this.#n.findAll({...a,status:"pending"}).length}getQueryData(a){const i=this.defaultQueryOptions({queryKey:a});return this.#e.get(i.queryHash)?.state.data}ensureQueryData(a){const i=this.defaultQueryOptions(a),r=this.#e.build(this,i),u=r.state.data;return u===void 0?this.fetchQuery(a):(a.revalidateIfStale&&r.isStaleByTime(Oc(i.staleTime,r))&&this.prefetchQuery(i),Promise.resolve(u))}getQueriesData(a){return this.#e.findAll(a).map(({queryKey:i,state:r})=>{const u=r.data;return[i,u]})}setQueryData(a,i,r){const u=this.defaultQueryOptions({queryKey:a}),f=this.#e.get(u.queryHash)?.state.data,h=v0(i,f);if(h!==void 0)return this.#e.build(this,u).setData(h,{...r,manual:!0})}setQueriesData(a,i,r){return Vt.batch(()=>this.#e.findAll(a).map(({queryKey:u})=>[u,this.setQueryData(u,i,r)]))}getQueryState(a){const i=this.defaultQueryOptions({queryKey:a});return this.#e.get(i.queryHash)?.state}removeQueries(a){const i=this.#e;Vt.batch(()=>{i.findAll(a).forEach(r=>{i.remove(r)})})}resetQueries(a,i){const r=this.#e;return Vt.batch(()=>(r.findAll(a).forEach(u=>{u.reset()}),this.refetchQueries({type:"active",...a},i)))}cancelQueries(a,i={}){const r={revert:!0,...i},u=Vt.batch(()=>this.#e.findAll(a).map(c=>c.cancel(r)));return Promise.all(u).then(Yn).catch(Yn)}invalidateQueries(a,i={}){return Vt.batch(()=>(this.#e.findAll(a).forEach(r=>{r.invalidate()}),a?.refetchType==="none"?Promise.resolve():this.refetchQueries({...a,type:a?.refetchType??a?.type??"active"},i)))}refetchQueries(a,i={}){const r={...i,cancelRefetch:i.cancelRefetch??!0},u=Vt.batch(()=>this.#e.findAll(a).filter(c=>!c.isDisabled()&&!c.isStatic()).map(c=>{let f=c.fetch(void 0,r);return r.throwOnError||(f=f.catch(Yn)),c.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(u).then(Yn)}fetchQuery(a){const i=this.defaultQueryOptions(a);i.retry===void 0&&(i.retry=!1);const r=this.#e.build(this,i);return r.isStaleByTime(Oc(i.staleTime,r))?r.fetch(i):Promise.resolve(r.state.data)}prefetchQuery(a){return this.fetchQuery(a).then(Yn).catch(Yn)}fetchInfiniteQuery(a){return a.behavior=sy(a.pages),this.fetchQuery(a)}prefetchInfiniteQuery(a){return this.fetchInfiniteQuery(a).then(Yn).catch(Yn)}ensureInfiniteQueryData(a){return a.behavior=sy(a.pages),this.ensureQueryData(a)}resumePausedMutations(){return Zs.isOnline()?this.#n.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#n}getDefaultOptions(){return this.#t}setDefaultOptions(a){this.#t=a}setQueryDefaults(a,i){this.#l.set(fr(a),{queryKey:a,defaultOptions:i})}getQueryDefaults(a){const i=[...this.#l.values()],r={};return i.forEach(u=>{dr(a,u.queryKey)&&Object.assign(r,u.defaultOptions)}),r}setMutationDefaults(a,i){this.#a.set(fr(a),{mutationKey:a,defaultOptions:i})}getMutationDefaults(a){const i=[...this.#a.values()],r={};return i.forEach(u=>{dr(a,u.mutationKey)&&Object.assign(r,u.defaultOptions)}),r}defaultQueryOptions(a){if(a._defaulted)return a;const i={...this.#t.queries,...this.getQueryDefaults(a.queryKey),...a,_defaulted:!0};return i.queryHash||(i.queryHash=Vc(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===Gc&&(i.enabled=!1),i}defaultMutationOptions(a){return a?._defaulted?a:{...this.#t.mutations,...a?.mutationKey&&this.getMutationDefaults(a.mutationKey),...a,_defaulted:!0}}clear(){this.#e.clear(),this.#n.clear()}},tp=M.createContext(void 0),m2=a=>{const i=M.useContext(tp);if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},Q0=({client:a,children:i})=>(M.useEffect(()=>(a.mount(),()=>{a.unmount()}),[a]),pe.jsx(tp.Provider,{value:a,children:i})),np=Jy();const V0=Zy(np);function G0(a){if(typeof document>"u")return;let i=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",i.appendChild(r),r.styleSheet?r.styleSheet.cssText=a:r.appendChild(document.createTextNode(a))}const X0=a=>{switch(a){case"success":return Z0;case"info":return F0;case"warning":return J0;case"error":return $0;default:return null}},k0=Array(12).fill(0),K0=({visible:a,className:i})=>P.createElement("div",{className:["sonner-loading-wrapper",i].filter(Boolean).join(" "),"data-visible":a},P.createElement("div",{className:"sonner-spinner"},k0.map((r,u)=>P.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${u}`})))),Z0=P.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},P.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"})),J0=P.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},P.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"})),F0=P.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},P.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"})),$0=P.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},P.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"})),P0=P.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"},P.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),P.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),W0=()=>{const[a,i]=P.useState(document.hidden);return P.useEffect(()=>{const r=()=>{i(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),a};let Dc=1;class I0{constructor(){this.subscribe=i=>(this.subscribers.push(i),()=>{const r=this.subscribers.indexOf(i);this.subscribers.splice(r,1)}),this.publish=i=>{this.subscribers.forEach(r=>r(i))},this.addToast=i=>{this.publish(i),this.toasts=[...this.toasts,i]},this.create=i=>{var r;const{message:u,...c}=i,f=typeof i?.id=="number"||((r=i.id)==null?void 0:r.length)>0?i.id:Dc++,h=this.toasts.find(g=>g.id===f),m=i.dismissible===void 0?!0:i.dismissible;return this.dismissedToasts.has(f)&&this.dismissedToasts.delete(f),h?this.toasts=this.toasts.map(g=>g.id===f?(this.publish({...g,...i,id:f,title:u}),{...g,...i,id:f,dismissible:m,title:u}):g):this.addToast({title:u,...c,dismissible:m,id:f}),f},this.dismiss=i=>(i?(this.dismissedToasts.add(i),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:i,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(u=>u({id:r.id,dismiss:!0}))}),i),this.message=(i,r)=>this.create({...r,message:i}),this.error=(i,r)=>this.create({...r,message:i,type:"error"}),this.success=(i,r)=>this.create({...r,type:"success",message:i}),this.info=(i,r)=>this.create({...r,type:"info",message:i}),this.warning=(i,r)=>this.create({...r,type:"warning",message:i}),this.loading=(i,r)=>this.create({...r,type:"loading",message:i}),this.promise=(i,r)=>{if(!r)return;let u;r.loading!==void 0&&(u=this.create({...r,promise:i,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const c=Promise.resolve(i instanceof Function?i():i);let f=u!==void 0,h;const m=c.then(async y=>{if(h=["resolve",y],P.isValidElement(y))f=!1,this.create({id:u,type:"default",message:y});else if(tb(y)&&!y.ok){f=!1;const p=typeof r.error=="function"?await r.error(`HTTP error! status: ${y.status}`):r.error,R=typeof r.description=="function"?await r.description(`HTTP error! status: ${y.status}`):r.description,H=typeof p=="object"&&!P.isValidElement(p)?p:{message:p};this.create({id:u,type:"error",description:R,...H})}else if(y instanceof Error){f=!1;const p=typeof r.error=="function"?await r.error(y):r.error,R=typeof r.description=="function"?await r.description(y):r.description,H=typeof p=="object"&&!P.isValidElement(p)?p:{message:p};this.create({id:u,type:"error",description:R,...H})}else if(r.success!==void 0){f=!1;const p=typeof r.success=="function"?await r.success(y):r.success,R=typeof r.description=="function"?await r.description(y):r.description,H=typeof p=="object"&&!P.isValidElement(p)?p:{message:p};this.create({id:u,type:"success",description:R,...H})}}).catch(async y=>{if(h=["reject",y],r.error!==void 0){f=!1;const E=typeof r.error=="function"?await r.error(y):r.error,p=typeof r.description=="function"?await r.description(y):r.description,D=typeof E=="object"&&!P.isValidElement(E)?E:{message:E};this.create({id:u,type:"error",description:p,...D})}}).finally(()=>{f&&(this.dismiss(u),u=void 0),r.finally==null||r.finally.call(r)}),g=()=>new Promise((y,E)=>m.then(()=>h[0]==="reject"?E(h[1]):y(h[1])).catch(E));return typeof u!="string"&&typeof u!="number"?{unwrap:g}:Object.assign(u,{unwrap:g})},this.custom=(i,r)=>{const u=r?.id||Dc++;return this.create({jsx:i(u),id:u,...r}),u},this.getActiveToasts=()=>this.toasts.filter(i=>!this.dismissedToasts.has(i.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const It=new I0,eb=(a,i)=>{const r=i?.id||Dc++;return It.addToast({title:a,...i,id:r}),r},tb=a=>a&&typeof a=="object"&&"ok"in a&&typeof a.ok=="boolean"&&"status"in a&&typeof a.status=="number",nb=eb,ab=()=>It.toasts,lb=()=>It.getActiveToasts(),y2=Object.assign(nb,{success:It.success,info:It.info,warning:It.warning,error:It.error,custom:It.custom,message:It.message,promise:It.promise,dismiss:It.dismiss,loading:It.loading},{getHistory:ab,getToasts:lb});G0("[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 zs(a){return a.label!==void 0}const ib=3,rb="24px",sb="16px",oy=4e3,ub=356,ob=14,cb=45,fb=200;function Fn(...a){return a.filter(Boolean).join(" ")}function db(a){const[i,r]=a.split("-"),u=[];return i&&u.push(i),r&&u.push(r),u}const hb=a=>{var i,r,u,c,f,h,m,g,y;const{invert:E,toast:p,unstyled:R,interacting:D,setHeights:H,visibleToasts:V,heights:K,index:G,toasts:Z,expanded:W,removeToast:be,defaultRichColors:ve,closeButton:ye,style:A,cancelButtonStyle:ae,actionButtonStyle:Ee,className:ze="",descriptionClassName:Oe="",duration:Ae,position:Ke,gap:Qe,expandByDefault:_e,classNames:O,icons:k,closeButtonAriaLabel:F="Close toast"}=a,[ce,de]=P.useState(null),[_,B]=P.useState(null),[q,J]=P.useState(!1),[I,ue]=P.useState(!1),[we,Se]=P.useState(!1),[Ze,hn]=P.useState(!1),[Dn,Ie]=P.useState(!1),[Cn,Gt]=P.useState(0),[Ia,Xt]=P.useState(0),In=P.useRef(p.duration||Ae||oy),el=P.useRef(null),Bt=P.useRef(null),tl=G===0,nl=G+1<=V,Mt=p.type,Gn=p.dismissible!==!1,ut=p.className||"",ea=p.descriptionClassName||"",Xn=P.useMemo(()=>K.findIndex(ge=>ge.toastId===p.id)||0,[K,p.id]),Ta=P.useMemo(()=>{var ge;return(ge=p.closeButton)!=null?ge:ye},[p.closeButton,ye]),Dt=P.useMemo(()=>p.duration||Ae||oy,[p.duration,Ae]),Yt=P.useRef(0),mn=P.useRef(0),Rl=P.useRef(0),yn=P.useRef(null),[ta,at]=Ke.split("-"),kt=P.useMemo(()=>K.reduce((ge,tt,mt)=>mt>=Xn?ge:ge+tt.height,0),[K,Xn]),Rt=W0(),xl=p.invert||E,al=Mt==="loading";mn.current=P.useMemo(()=>Xn*Qe+kt,[Xn,kt]),P.useEffect(()=>{In.current=Dt},[Dt]),P.useEffect(()=>{J(!0)},[]),P.useEffect(()=>{const ge=Bt.current;if(ge){const tt=ge.getBoundingClientRect().height;return Xt(tt),H(mt=>[{toastId:p.id,height:tt,position:p.position},...mt]),()=>H(mt=>mt.filter(yt=>yt.toastId!==p.id))}},[H,p.id]),P.useLayoutEffect(()=>{if(!q)return;const ge=Bt.current,tt=ge.style.height;ge.style.height="auto";const mt=ge.getBoundingClientRect().height;ge.style.height=tt,Xt(mt),H(yt=>yt.find(nt=>nt.toastId===p.id)?yt.map(nt=>nt.toastId===p.id?{...nt,height:mt}:nt):[{toastId:p.id,height:mt,position:p.position},...yt])},[q,p.title,p.description,H,p.id,p.jsx,p.action,p.cancel]);const en=P.useCallback(()=>{ue(!0),Gt(mn.current),H(ge=>ge.filter(tt=>tt.toastId!==p.id)),setTimeout(()=>{be(p)},fb)},[p,be,H,mn]);P.useEffect(()=>{if(p.promise&&Mt==="loading"||p.duration===1/0||p.type==="loading")return;let ge;return W||D||Rt?(()=>{if(Rl.current<Yt.current){const yt=new Date().getTime()-Yt.current;In.current=In.current-yt}Rl.current=new Date().getTime()})():In.current!==1/0&&(Yt.current=new Date().getTime(),ge=setTimeout(()=>{p.onAutoClose==null||p.onAutoClose.call(p,p),en()},In.current)),()=>clearTimeout(ge)},[W,D,p,Mt,Rt,en]),P.useEffect(()=>{p.delete&&(en(),p.onDismiss==null||p.onDismiss.call(p,p))},[en,p.delete]);function zn(){var ge;if(k?.loading){var tt;return P.createElement("div",{className:Fn(O?.loader,p==null||(tt=p.classNames)==null?void 0:tt.loader,"sonner-loader"),"data-visible":Mt==="loading"},k.loading)}return P.createElement(K0,{className:Fn(O?.loader,p==null||(ge=p.classNames)==null?void 0:ge.loader),visible:Mt==="loading"})}const na=p.icon||k?.[Mt]||X0(Mt);var Nn,pn;return P.createElement("li",{tabIndex:0,ref:Bt,className:Fn(ze,ut,O?.toast,p==null||(i=p.classNames)==null?void 0:i.toast,O?.default,O?.[Mt],p==null||(r=p.classNames)==null?void 0:r[Mt]),"data-sonner-toast":"","data-rich-colors":(Nn=p.richColors)!=null?Nn:ve,"data-styled":!(p.jsx||p.unstyled||R),"data-mounted":q,"data-promise":!!p.promise,"data-swiped":Dn,"data-removed":I,"data-visible":nl,"data-y-position":ta,"data-x-position":at,"data-index":G,"data-front":tl,"data-swiping":we,"data-dismissible":Gn,"data-type":Mt,"data-invert":xl,"data-swipe-out":Ze,"data-swipe-direction":_,"data-expanded":!!(W||_e&&q),"data-testid":p.testId,style:{"--index":G,"--toasts-before":G,"--z-index":Z.length-G,"--offset":`${I?Cn:mn.current}px`,"--initial-height":_e?"auto":`${Ia}px`,...A,...p.style},onDragEnd:()=>{Se(!1),de(null),yn.current=null},onPointerDown:ge=>{ge.button!==2&&(al||!Gn||(el.current=new Date,Gt(mn.current),ge.target.setPointerCapture(ge.pointerId),ge.target.tagName!=="BUTTON"&&(Se(!0),yn.current={x:ge.clientX,y:ge.clientY})))},onPointerUp:()=>{var ge,tt,mt;if(Ze||!Gn)return;yn.current=null;const yt=Number(((ge=Bt.current)==null?void 0:ge.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),tn=Number(((tt=Bt.current)==null?void 0:tt.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),nt=new Date().getTime()-((mt=el.current)==null?void 0:mt.getTime()),Ht=ce==="x"?yt:tn,aa=Math.abs(Ht)/nt;if(Math.abs(Ht)>=cb||aa>.11){Gt(mn.current),p.onDismiss==null||p.onDismiss.call(p,p),B(ce==="x"?yt>0?"right":"left":tn>0?"down":"up"),en(),hn(!0);return}else{var b,w;(b=Bt.current)==null||b.style.setProperty("--swipe-amount-x","0px"),(w=Bt.current)==null||w.style.setProperty("--swipe-amount-y","0px")}Ie(!1),Se(!1),de(null)},onPointerMove:ge=>{var tt,mt,yt;if(!yn.current||!Gn||((tt=window.getSelection())==null?void 0:tt.toString().length)>0)return;const nt=ge.clientY-yn.current.y,Ht=ge.clientX-yn.current.x;var aa;const b=(aa=a.swipeDirections)!=null?aa:db(Ke);!ce&&(Math.abs(Ht)>1||Math.abs(nt)>1)&&de(Math.abs(Ht)>Math.abs(nt)?"x":"y");let w={x:0,y:0};const U=X=>1/(1.5+Math.abs(X)/20);if(ce==="y"){if(b.includes("top")||b.includes("bottom"))if(b.includes("top")&&nt<0||b.includes("bottom")&&nt>0)w.y=nt;else{const X=nt*U(nt);w.y=Math.abs(X)<Math.abs(nt)?X:nt}}else if(ce==="x"&&(b.includes("left")||b.includes("right")))if(b.includes("left")&&Ht<0||b.includes("right")&&Ht>0)w.x=Ht;else{const X=Ht*U(Ht);w.x=Math.abs(X)<Math.abs(Ht)?X:Ht}(Math.abs(w.x)>0||Math.abs(w.y)>0)&&Ie(!0),(mt=Bt.current)==null||mt.style.setProperty("--swipe-amount-x",`${w.x}px`),(yt=Bt.current)==null||yt.style.setProperty("--swipe-amount-y",`${w.y}px`)}},Ta&&!p.jsx&&Mt!=="loading"?P.createElement("button",{"aria-label":F,"data-disabled":al,"data-close-button":!0,onClick:al||!Gn?()=>{}:()=>{en(),p.onDismiss==null||p.onDismiss.call(p,p)},className:Fn(O?.closeButton,p==null||(u=p.classNames)==null?void 0:u.closeButton)},(pn=k?.close)!=null?pn:P0):null,(Mt||p.icon||p.promise)&&p.icon!==null&&(k?.[Mt]!==null||p.icon)?P.createElement("div",{"data-icon":"",className:Fn(O?.icon,p==null||(c=p.classNames)==null?void 0:c.icon)},p.promise||p.type==="loading"&&!p.icon?p.icon||zn():null,p.type!=="loading"?na:null):null,P.createElement("div",{"data-content":"",className:Fn(O?.content,p==null||(f=p.classNames)==null?void 0:f.content)},P.createElement("div",{"data-title":"",className:Fn(O?.title,p==null||(h=p.classNames)==null?void 0:h.title)},p.jsx?p.jsx:typeof p.title=="function"?p.title():p.title),p.description?P.createElement("div",{"data-description":"",className:Fn(Oe,ea,O?.description,p==null||(m=p.classNames)==null?void 0:m.description)},typeof p.description=="function"?p.description():p.description):null),P.isValidElement(p.cancel)?p.cancel:p.cancel&&zs(p.cancel)?P.createElement("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||ae,onClick:ge=>{zs(p.cancel)&&Gn&&(p.cancel.onClick==null||p.cancel.onClick.call(p.cancel,ge),en())},className:Fn(O?.cancelButton,p==null||(g=p.classNames)==null?void 0:g.cancelButton)},p.cancel.label):null,P.isValidElement(p.action)?p.action:p.action&&zs(p.action)?P.createElement("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||Ee,onClick:ge=>{zs(p.action)&&(p.action.onClick==null||p.action.onClick.call(p.action,ge),!ge.defaultPrevented&&en())},className:Fn(O?.actionButton,p==null||(y=p.classNames)==null?void 0:y.actionButton)},p.action.label):null)};function cy(){if(typeof window>"u"||typeof document>"u")return"ltr";const a=document.documentElement.getAttribute("dir");return a==="auto"||!a?window.getComputedStyle(document.documentElement).direction:a}function mb(a,i){const r={};return[a,i].forEach((u,c)=>{const f=c===1,h=f?"--mobile-offset":"--offset",m=f?sb:rb;function g(y){["top","right","bottom","left"].forEach(E=>{r[`${h}-${E}`]=typeof y=="number"?`${y}px`:y})}typeof u=="number"||typeof u=="string"?g(u):typeof u=="object"?["top","right","bottom","left"].forEach(y=>{u[y]===void 0?r[`${h}-${y}`]=m:r[`${h}-${y}`]=typeof u[y]=="number"?`${u[y]}px`:u[y]}):g(m)}),r}const yb=P.forwardRef(function(i,r){const{id:u,invert:c,position:f="bottom-right",hotkey:h=["altKey","KeyT"],expand:m,closeButton:g,className:y,offset:E,mobileOffset:p,theme:R="light",richColors:D,duration:H,style:V,visibleToasts:K=ib,toastOptions:G,dir:Z=cy(),gap:W=ob,icons:be,containerAriaLabel:ve="Notifications"}=i,[ye,A]=P.useState([]),ae=P.useMemo(()=>u?ye.filter(q=>q.toasterId===u):ye.filter(q=>!q.toasterId),[ye,u]),Ee=P.useMemo(()=>Array.from(new Set([f].concat(ae.filter(q=>q.position).map(q=>q.position)))),[ae,f]),[ze,Oe]=P.useState([]),[Ae,Ke]=P.useState(!1),[Qe,_e]=P.useState(!1),[O,k]=P.useState(R!=="system"?R:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),F=P.useRef(null),ce=h.join("+").replace(/Key/g,"").replace(/Digit/g,""),de=P.useRef(null),_=P.useRef(!1),B=P.useCallback(q=>{A(J=>{var I;return(I=J.find(ue=>ue.id===q.id))!=null&&I.delete||It.dismiss(q.id),J.filter(({id:ue})=>ue!==q.id)})},[]);return P.useEffect(()=>It.subscribe(q=>{if(q.dismiss){requestAnimationFrame(()=>{A(J=>J.map(I=>I.id===q.id?{...I,delete:!0}:I))});return}setTimeout(()=>{V0.flushSync(()=>{A(J=>{const I=J.findIndex(ue=>ue.id===q.id);return I!==-1?[...J.slice(0,I),{...J[I],...q},...J.slice(I+1)]:[q,...J]})})})}),[ye]),P.useEffect(()=>{if(R!=="system"){k(R);return}if(R==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?k("dark"):k("light")),typeof window>"u")return;const q=window.matchMedia("(prefers-color-scheme: dark)");try{q.addEventListener("change",({matches:J})=>{k(J?"dark":"light")})}catch{q.addListener(({matches:I})=>{try{k(I?"dark":"light")}catch(ue){console.error(ue)}})}},[R]),P.useEffect(()=>{ye.length<=1&&Ke(!1)},[ye]),P.useEffect(()=>{const q=J=>{var I;if(h.every(Se=>J[Se]||J.code===Se)){var we;Ke(!0),(we=F.current)==null||we.focus()}J.code==="Escape"&&(document.activeElement===F.current||(I=F.current)!=null&&I.contains(document.activeElement))&&Ke(!1)};return document.addEventListener("keydown",q),()=>document.removeEventListener("keydown",q)},[h]),P.useEffect(()=>{if(F.current)return()=>{de.current&&(de.current.focus({preventScroll:!0}),de.current=null,_.current=!1)}},[F.current]),P.createElement("section",{ref:r,"aria-label":`${ve} ${ce}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},Ee.map((q,J)=>{var I;const[ue,we]=q.split("-");return ae.length?P.createElement("ol",{key:q,dir:Z==="auto"?cy():Z,tabIndex:-1,ref:F,className:y,"data-sonner-toaster":!0,"data-sonner-theme":O,"data-y-position":ue,"data-x-position":we,style:{"--front-toast-height":`${((I=ze[0])==null?void 0:I.height)||0}px`,"--width":`${ub}px`,"--gap":`${W}px`,...V,...mb(E,p)},onBlur:Se=>{_.current&&!Se.currentTarget.contains(Se.relatedTarget)&&(_.current=!1,de.current&&(de.current.focus({preventScroll:!0}),de.current=null))},onFocus:Se=>{Se.target instanceof HTMLElement&&Se.target.dataset.dismissible==="false"||_.current||(_.current=!0,de.current=Se.relatedTarget)},onMouseEnter:()=>Ke(!0),onMouseMove:()=>Ke(!0),onMouseLeave:()=>{Qe||Ke(!1)},onDragEnd:()=>Ke(!1),onPointerDown:Se=>{Se.target instanceof HTMLElement&&Se.target.dataset.dismissible==="false"||_e(!0)},onPointerUp:()=>_e(!1)},ae.filter(Se=>!Se.position&&J===0||Se.position===q).map((Se,Ze)=>{var hn,Dn;return P.createElement(hb,{key:Se.id,icons:be,index:Ze,toast:Se,defaultRichColors:D,duration:(hn=G?.duration)!=null?hn:H,className:G?.className,descriptionClassName:G?.descriptionClassName,invert:c,visibleToasts:K,closeButton:(Dn=G?.closeButton)!=null?Dn:g,interacting:Qe,position:q,style:G?.style,unstyled:G?.unstyled,classNames:G?.classNames,cancelButtonStyle:G?.cancelButtonStyle,actionButtonStyle:G?.actionButtonStyle,closeButtonAriaLabel:G?.closeButtonAriaLabel,removeToast:B,toasts:ae.filter(Ie=>Ie.position==Se.position),heights:ze.filter(Ie=>Ie.position==Se.position),setHeights:Oe,expandByDefault:m,gap:W,expanded:Ae,swipeDirections:i.swipeDirections})})):null}))}),pb=new Y0({defaultOptions:{queries:{staleTime:1e3*60,retry:1,refetchOnWindowFocus:!1}}}),vb="modulepreload",gb=function(a){return"/"+a},fy={},ci=function(i,r,u){let c=Promise.resolve();if(r&&r.length>0){let g=function(y){return Promise.all(y.map(E=>Promise.resolve(E).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};document.getElementsByTagName("link");const h=document.querySelector("meta[property=csp-nonce]"),m=h?.nonce||h?.getAttribute("nonce");c=g(r.map(y=>{if(y=gb(y),y in fy)return;fy[y]=!0;const E=y.endsWith(".css"),p=E?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${y}"]${p}`))return;const R=document.createElement("link");if(R.rel=E?"stylesheet":vb,E||(R.as="script"),R.crossOrigin="",R.href=y,m&&R.setAttribute("nonce",m),document.head.appendChild(R),E)return new Promise((D,H)=>{R.addEventListener("load",D),R.addEventListener("error",()=>H(new Error(`Unable to preload CSS for ${y}`)))})}))}function f(h){const m=new Event("vite:preloadError",{cancelable:!0});if(m.payload=h,window.dispatchEvent(m),!m.defaultPrevented)throw h}return c.then(h=>{for(const m of h||[])m.status==="rejected"&&f(m.reason);return i().catch(f)})};var ap=a=>{throw TypeError(a)},bb=(a,i,r)=>i.has(a)||ap("Cannot "+r),vc=(a,i,r)=>(bb(a,i,"read from private field"),r?r.call(a):i.get(a)),Sb=(a,i,r)=>i.has(a)?ap("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(a):i.set(a,r),dy="popstate";function Eb(a={}){function i(u,c){let{pathname:f,search:h,hash:m}=u.location;return hr("",{pathname:f,search:h,hash:m},c.state&&c.state.usr||null,c.state&&c.state.key||"default")}function r(u,c){return typeof c=="string"?c:Pn(c)}return Tb(i,r,null,a)}function Me(a,i){if(a===!1||a===null||typeof a>"u")throw new Error(i)}function bt(a,i){if(!a){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function _b(){return Math.random().toString(36).substring(2,10)}function hy(a,i){return{usr:a.state,key:a.key,idx:i}}function hr(a,i,r=null,u){return{pathname:typeof a=="string"?a:a.pathname,search:"",hash:"",...typeof i=="string"?Pa(i):i,state:r,key:i&&i.key||u||_b()}}function Pn({pathname:a="/",search:i="",hash:r=""}){return i&&i!=="?"&&(a+=i.charAt(0)==="?"?i:"?"+i),r&&r!=="#"&&(a+=r.charAt(0)==="#"?r:"#"+r),a}function Pa(a){let i={};if(a){let r=a.indexOf("#");r>=0&&(i.hash=a.substring(r),a=a.substring(0,r));let u=a.indexOf("?");u>=0&&(i.search=a.substring(u),a=a.substring(0,u)),a&&(i.pathname=a)}return i}function Tb(a,i,r,u={}){let{window:c=document.defaultView,v5Compat:f=!1}=u,h=c.history,m="POP",g=null,y=E();y==null&&(y=0,h.replaceState({...h.state,idx:y},""));function E(){return(h.state||{idx:null}).idx}function p(){m="POP";let K=E(),G=K==null?null:K-y;y=K,g&&g({action:m,location:V.location,delta:G})}function R(K,G){m="PUSH";let Z=hr(V.location,K,G);y=E()+1;let W=hy(Z,y),be=V.createHref(Z);try{h.pushState(W,"",be)}catch(ve){if(ve instanceof DOMException&&ve.name==="DataCloneError")throw ve;c.location.assign(be)}f&&g&&g({action:m,location:V.location,delta:1})}function D(K,G){m="REPLACE";let Z=hr(V.location,K,G);y=E();let W=hy(Z,y),be=V.createHref(Z);h.replaceState(W,"",be),f&&g&&g({action:m,location:V.location,delta:0})}function H(K){return lp(K)}let V={get action(){return m},get location(){return a(c,h)},listen(K){if(g)throw new Error("A history only accepts one active listener");return c.addEventListener(dy,p),g=K,()=>{c.removeEventListener(dy,p),g=null}},createHref(K){return i(c,K)},createURL:H,encodeLocation(K){let G=H(K);return{pathname:G.pathname,search:G.search,hash:G.hash}},push:R,replace:D,go(K){return h.go(K)}};return V}function lp(a,i=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),Me(r,"No window.location.(origin|href) available to create URL");let u=typeof a=="string"?a:Pn(a);return u=u.replace(/ $/,"%20"),!i&&u.startsWith("//")&&(u=r+u),new URL(u,r)}var sr,my=class{constructor(a){if(Sb(this,sr,new Map),a)for(let[i,r]of a)this.set(i,r)}get(a){if(vc(this,sr).has(a))return vc(this,sr).get(a);if(a.defaultValue!==void 0)return a.defaultValue;throw new Error("No value found for context")}set(a,i){vc(this,sr).set(a,i)}};sr=new WeakMap;var wb=new Set(["lazy","caseSensitive","path","id","index","children"]);function Rb(a){return wb.has(a)}var xb=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function Ob(a){return xb.has(a)}function Ab(a){return a.index===!0}function mr(a,i,r=[],u={},c=!1){return a.map((f,h)=>{let m=[...r,String(h)],g=typeof f.id=="string"?f.id:m.join("-");if(Me(f.index!==!0||!f.children,"Cannot specify children on an index route"),Me(c||!u[g],`Found a route id collision on id "${g}". Route id's must be globally unique within Data Router usages`),Ab(f)){let y={...f,id:g};return u[g]=yy(y,i(y)),y}else{let y={...f,id:g,children:void 0};return u[g]=yy(y,i(y)),f.children&&(y.children=mr(f.children,i,m,u,c)),y}})}function yy(a,i){return Object.assign(a,{...i,...typeof i.lazy=="object"&&i.lazy!=null?{lazy:{...a.lazy,...i.lazy}}:{}})}function Za(a,i,r="/"){return ur(a,i,r,!1)}function ur(a,i,r,u){let c=typeof i=="string"?Pa(i):i,f=Mn(c.pathname||"/",r);if(f==null)return null;let h=ip(a);Db(h);let m=null;for(let g=0;m==null&&g<h.length;++g){let y=Qb(f);m=qb(h[g],y,u)}return m}function Mb(a,i){let{route:r,pathname:u,params:c}=a;return{id:r.id,pathname:u,params:c,data:i[r.id],loaderData:i[r.id],handle:r.handle}}function ip(a,i=[],r=[],u="",c=!1){let f=(h,m,g=c,y)=>{let E={relativePath:y===void 0?h.path||"":y,caseSensitive:h.caseSensitive===!0,childrenIndex:m,route:h};if(E.relativePath.startsWith("/")){if(!E.relativePath.startsWith(u)&&g)return;Me(E.relativePath.startsWith(u),`Absolute route path "${E.relativePath}" nested under path "${u}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),E.relativePath=E.relativePath.slice(u.length)}let p=$n([u,E.relativePath]),R=r.concat(E);h.children&&h.children.length>0&&(Me(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),ip(h.children,i,R,p,g)),!(h.path==null&&!h.index)&&i.push({path:p,score:Hb(p,h.index),routesMeta:R})};return a.forEach((h,m)=>{if(h.path===""||!h.path?.includes("?"))f(h,m);else for(let g of rp(h.path))f(h,m,!0,g)}),i}function rp(a){let i=a.split("/");if(i.length===0)return[];let[r,...u]=i,c=r.endsWith("?"),f=r.replace(/\?$/,"");if(u.length===0)return c?[f,""]:[f];let h=rp(u.join("/")),m=[];return m.push(...h.map(g=>g===""?f:[f,g].join("/"))),c&&m.push(...h),m.map(g=>a.startsWith("/")&&g===""?"/":g)}function Db(a){a.sort((i,r)=>i.score!==r.score?r.score-i.score:jb(i.routesMeta.map(u=>u.childrenIndex),r.routesMeta.map(u=>u.childrenIndex)))}var Cb=/^:[\w-]+$/,zb=3,Nb=2,Ub=1,Lb=10,Bb=-2,py=a=>a==="*";function Hb(a,i){let r=a.split("/"),u=r.length;return r.some(py)&&(u+=Bb),i&&(u+=Nb),r.filter(c=>!py(c)).reduce((c,f)=>c+(Cb.test(f)?zb:f===""?Ub:Lb),u)}function jb(a,i){return a.length===i.length&&a.slice(0,-1).every((u,c)=>u===i[c])?a[a.length-1]-i[i.length-1]:0}function qb(a,i,r=!1){let{routesMeta:u}=a,c={},f="/",h=[];for(let m=0;m<u.length;++m){let g=u[m],y=m===u.length-1,E=f==="/"?i:i.slice(f.length)||"/",p=Js({path:g.relativePath,caseSensitive:g.caseSensitive,end:y},E),R=g.route;if(!p&&y&&r&&!u[u.length-1].route.index&&(p=Js({path:g.relativePath,caseSensitive:g.caseSensitive,end:!1},E)),!p)return null;Object.assign(c,p.params),h.push({params:c,pathname:$n([f,p.pathname]),pathnameBase:Xb($n([f,p.pathnameBase])),route:R}),p.pathnameBase!=="/"&&(f=$n([f,p.pathnameBase]))}return h}function Js(a,i){typeof a=="string"&&(a={path:a,caseSensitive:!1,end:!0});let[r,u]=Yb(a.path,a.caseSensitive,a.end),c=i.match(r);if(!c)return null;let f=c[0],h=f.replace(/(.)\/+$/,"$1"),m=c.slice(1);return{params:u.reduce((y,{paramName:E,isOptional:p},R)=>{if(E==="*"){let H=m[R]||"";h=f.slice(0,f.length-H.length).replace(/(.)\/+$/,"$1")}const D=m[R];return p&&!D?y[E]=void 0:y[E]=(D||"").replace(/%2F/g,"/"),y},{}),pathname:f,pathnameBase:h,pattern:a}}function Yb(a,i=!1,r=!0){bt(a==="*"||!a.endsWith("*")||a.endsWith("/*"),`Route path "${a}" will be treated as if it were "${a.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${a.replace(/\*$/,"/*")}".`);let u=[],c="^"+a.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,m,g)=>(u.push({paramName:m,isOptional:g!=null}),g?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return a.endsWith("*")?(u.push({paramName:"*"}),c+=a==="*"||a==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?c+="\\/*$":a!==""&&a!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,i?void 0:"i"),u]}function Qb(a){try{return a.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return bt(!1,`The URL path "${a}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),a}}function Mn(a,i){if(i==="/")return a;if(!a.toLowerCase().startsWith(i.toLowerCase()))return null;let r=i.endsWith("/")?i.length-1:i.length,u=a.charAt(r);return u&&u!=="/"?null:a.slice(r)||"/"}function Vb({basename:a,pathname:i}){return i==="/"?a:$n([a,i])}var sp=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Xc=a=>sp.test(a);function Gb(a,i="/"){let{pathname:r,search:u="",hash:c=""}=typeof a=="string"?Pa(a):a,f;return r?(r=r.replace(/\/\/+/g,"/"),r.startsWith("/")?f=vy(r.substring(1),"/"):f=vy(r,i)):f=i,{pathname:f,search:kb(u),hash:Kb(c)}}function vy(a,i){let r=i.replace(/\/+$/,"").split("/");return a.split("/").forEach(c=>{c===".."?r.length>1&&r.pop():c!=="."&&r.push(c)}),r.length>1?r.join("/"):"/"}function gc(a,i,r,u){return`Cannot include a '${a}' character in a manually specified \`to.${i}\` field [${JSON.stringify(u)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function up(a){return a.filter((i,r)=>r===0||i.route.path&&i.route.path.length>0)}function Ps(a){let i=up(a);return i.map((r,u)=>u===i.length-1?r.pathname:r.pathnameBase)}function Ws(a,i,r,u=!1){let c;typeof a=="string"?c=Pa(a):(c={...a},Me(!c.pathname||!c.pathname.includes("?"),gc("?","pathname","search",c)),Me(!c.pathname||!c.pathname.includes("#"),gc("#","pathname","hash",c)),Me(!c.search||!c.search.includes("#"),gc("#","search","hash",c)));let f=a===""||c.pathname==="",h=f?"/":c.pathname,m;if(h==null)m=r;else{let p=i.length-1;if(!u&&h.startsWith("..")){let R=h.split("/");for(;R[0]==="..";)R.shift(),p-=1;c.pathname=R.join("/")}m=p>=0?i[p]:"/"}let g=Gb(c,m),y=h&&h!=="/"&&h.endsWith("/"),E=(f||h===".")&&r.endsWith("/");return!g.pathname.endsWith("/")&&(y||E)&&(g.pathname+="/"),g}var $n=a=>a.join("/").replace(/\/\/+/g,"/"),Xb=a=>a.replace(/\/+$/,"").replace(/^\/*/,"/"),kb=a=>!a||a==="?"?"":a.startsWith("?")?a:"?"+a,Kb=a=>!a||a==="#"?"":a.startsWith("#")?a:"#"+a,pr=class{constructor(a,i,r,u=!1){this.status=a,this.statusText=i||"",this.internal=u,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function yr(a){return a!=null&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.internal=="boolean"&&"data"in a}function vr(a){return a.map(i=>i.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var op=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function cp(a,i){let r=a;if(typeof r!="string"||!sp.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let u=r,c=!1;if(op)try{let f=new URL(window.location.href),h=r.startsWith("//")?new URL(f.protocol+r):new URL(r),m=Mn(h.pathname,i);h.origin===f.origin&&m!=null?r=m+h.search+h.hash:c=!0}catch{bt(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:u,isExternal:c,to:r}}var Fa=Symbol("Uninstrumented");function Zb(a,i){let r={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};a.forEach(c=>c({id:i.id,index:i.index,path:i.path,instrument(f){let h=Object.keys(r);for(let m of h)f[m]&&r[m].push(f[m])}}));let u={};if(typeof i.lazy=="function"&&r.lazy.length>0){let c=si(r.lazy,i.lazy,()=>{});c&&(u.lazy=c)}if(typeof i.lazy=="object"){let c=i.lazy;["middleware","loader","action"].forEach(f=>{let h=c[f],m=r[`lazy.${f}`];if(typeof h=="function"&&m.length>0){let g=si(m,h,()=>{});g&&(u.lazy=Object.assign(u.lazy||{},{[f]:g}))}})}return["loader","action"].forEach(c=>{let f=i[c];if(typeof f=="function"&&r[c].length>0){let h=f[Fa]??f,m=si(r[c],h,(...g)=>gy(g[0]));m&&(c==="loader"&&h.hydrate===!0&&(m.hydrate=!0),m[Fa]=h,u[c]=m)}}),i.middleware&&i.middleware.length>0&&r.middleware.length>0&&(u.middleware=i.middleware.map(c=>{let f=c[Fa]??c,h=si(r.middleware,f,(...m)=>gy(m[0]));return h?(h[Fa]=f,h):c})),u}function Jb(a,i){let r={navigate:[],fetch:[]};if(i.forEach(u=>u({instrument(c){let f=Object.keys(c);for(let h of f)c[h]&&r[h].push(c[h])}})),r.navigate.length>0){let u=a.navigate[Fa]??a.navigate,c=si(r.navigate,u,(...f)=>{let[h,m]=f;return{to:typeof h=="number"||typeof h=="string"?h:h?Pn(h):".",...by(a,m??{})}});c&&(c[Fa]=u,a.navigate=c)}if(r.fetch.length>0){let u=a.fetch[Fa]??a.fetch,c=si(r.fetch,u,(...f)=>{let[h,,m,g]=f;return{href:m??".",fetcherKey:h,...by(a,g??{})}});c&&(c[Fa]=u,a.fetch=c)}return a}function si(a,i,r){return a.length===0?null:async(...u)=>{let c=await fp(a,r(...u),()=>i(...u),a.length-1);if(c.type==="error")throw c.value;return c.value}}async function fp(a,i,r,u){let c=a[u],f;if(c){let h,m=async()=>(h?console.error("You cannot call instrumented handlers more than once"):h=fp(a,i,r,u-1),f=await h,Me(f,"Expected a result"),f.type==="error"&&f.value instanceof Error?{status:"error",error:f.value}:{status:"success",error:void 0});try{await c(m,i)}catch(g){console.error("An instrumentation function threw an error:",g)}h||await m(),await h}else try{f={type:"success",value:await r()}}catch(h){f={type:"error",value:h}}return f||{type:"error",value:new Error("No result assigned in instrumentation chain.")}}function gy(a){let{request:i,context:r,params:u,unstable_pattern:c}=a;return{request:Fb(i),params:{...u},unstable_pattern:c,context:$b(r)}}function by(a,i){return{currentUrl:Pn(a.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 Fb(a){return{method:a.method,url:a.url,headers:{get:(...i)=>a.headers.get(...i)}}}function $b(a){if(Wb(a)){let i={...a};return Object.freeze(i),i}else return{get:i=>a.get(i)}}var Pb=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Wb(a){if(a===null||typeof a!="object")return!1;const i=Object.getPrototypeOf(a);return i===Object.prototype||i===null||Object.getOwnPropertyNames(i).sort().join("\0")===Pb}var dp=["POST","PUT","PATCH","DELETE"],Ib=new Set(dp),e1=["GET",...dp],t1=new Set(e1),hp=new Set([301,302,303,307,308]),n1=new Set([307,308]),bc={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},a1={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ar={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},l1=a=>({hasErrorBoundary:!!a.hasErrorBoundary}),mp="remix-router-transitions",yp=Symbol("ResetLoaderData");function i1(a){const i=a.window?a.window:typeof window<"u"?window:void 0,r=typeof i<"u"&&typeof i.document<"u"&&typeof i.document.createElement<"u";Me(a.routes.length>0,"You must provide a non-empty routes array to createRouter");let u=a.hydrationRouteProperties||[],c=a.mapRouteProperties||l1,f=c;if(a.unstable_instrumentations){let b=a.unstable_instrumentations;f=w=>({...c(w),...Zb(b.map(U=>U.route).filter(Boolean),w)})}let h={},m=mr(a.routes,f,void 0,h),g,y=a.basename||"/";y.startsWith("/")||(y=`/${y}`);let E=a.dataStrategy||c1,p={...a.future},R=null,D=new Set,H=null,V=null,K=null,G=a.hydrationData!=null,Z=Za(m,a.history.location,y),W=!1,be=null,ve;if(Z==null&&!a.patchRoutesOnNavigation){let b=On(404,{pathname:a.history.location.pathname}),{matches:w,route:U}=Ns(m);ve=!0,Z=w,be={[U.id]:b}}else if(Z&&!a.hydrationData&&yt(Z,m,a.history.location.pathname).active&&(Z=null),Z)if(Z.some(b=>b.route.lazy))ve=!1;else if(!Z.some(b=>kc(b.route)))ve=!0;else{let b=a.hydrationData?a.hydrationData.loaderData:null,w=a.hydrationData?a.hydrationData.errors:null;if(w){let U=Z.findIndex(X=>w[X.route.id]!==void 0);ve=Z.slice(0,U+1).every(X=>!zc(X.route,b,w))}else ve=Z.every(U=>!zc(U.route,b,w))}else{ve=!1,Z=[];let b=yt(null,m,a.history.location.pathname);b.active&&b.matches&&(W=!0,Z=b.matches)}let ye,A={historyAction:a.history.action,location:a.history.location,matches:Z,initialized:ve,navigation:bc,restoreScrollPosition:a.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:a.hydrationData&&a.hydrationData.loaderData||{},actionData:a.hydrationData&&a.hydrationData.actionData||null,errors:a.hydrationData&&a.hydrationData.errors||be,fetchers:new Map,blockers:new Map},ae="POP",Ee=null,ze=!1,Oe,Ae=!1,Ke=new Map,Qe=null,_e=!1,O=!1,k=new Set,F=new Map,ce=0,de=-1,_=new Map,B=new Set,q=new Map,J=new Map,I=new Set,ue=new Map,we,Se=null;function Ze(){if(R=a.history.listen(({action:b,location:w,delta:U})=>{if(we){we(),we=void 0;return}bt(ue.size===0||U!=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 X=na({currentLocation:A.location,nextLocation:w,historyAction:b});if(X&&U!=null){let $=new Promise(se=>{we=se});a.history.go(U*-1),zn(X,{state:"blocked",location:w,proceed(){zn(X,{state:"proceeding",proceed:void 0,reset:void 0,location:w}),$.then(()=>a.history.go(U))},reset(){let se=new Map(A.blockers);se.set(X,ar),Ie({blockers:se})}}),Ee?.resolve(),Ee=null;return}return Xt(b,w)}),r){A1(i,Ke);let b=()=>M1(i,Ke);i.addEventListener("pagehide",b),Qe=()=>i.removeEventListener("pagehide",b)}return A.initialized||Xt("POP",A.location,{initialHydration:!0}),ye}function hn(){R&&R(),Qe&&Qe(),D.clear(),Oe&&Oe.abort(),A.fetchers.forEach((b,w)=>yn(w)),A.blockers.forEach((b,w)=>en(w))}function Dn(b){return D.add(b),()=>D.delete(b)}function Ie(b,w={}){b.matches&&(b.matches=b.matches.map($=>{let se=h[$.route.id],te=$.route;return te.element!==se.element||te.errorElement!==se.errorElement||te.hydrateFallbackElement!==se.hydrateFallbackElement?{...$,route:se}:$})),A={...A,...b};let U=[],X=[];A.fetchers.forEach(($,se)=>{$.state==="idle"&&(I.has(se)?U.push(se):X.push(se))}),I.forEach($=>{!A.fetchers.has($)&&!F.has($)&&U.push($)}),[...D].forEach($=>$(A,{deletedFetchers:U,newErrors:b.errors??null,viewTransitionOpts:w.viewTransitionOpts,flushSync:w.flushSync===!0})),U.forEach($=>yn($)),X.forEach($=>A.fetchers.delete($))}function Cn(b,w,{flushSync:U}={}){let X=A.actionData!=null&&A.navigation.formMethod!=null&&qt(A.navigation.formMethod)&&A.navigation.state==="loading"&&b.state?._isRedirect!==!0,$;w.actionData?Object.keys(w.actionData).length>0?$=w.actionData:$=null:X?$=A.actionData:$=null;let se=w.loaderData?My(A.loaderData,w.loaderData,w.matches||[],w.errors):A.loaderData,te=A.blockers;te.size>0&&(te=new Map(te),te.forEach((he,oe)=>te.set(oe,ar)));let ee=_e?!1:mt(b,w.matches||A.matches),ne=ze===!0||A.navigation.formMethod!=null&&qt(A.navigation.formMethod)&&b.state?._isRedirect!==!0;g&&(m=g,g=void 0),_e||ae==="POP"||(ae==="PUSH"?a.history.push(b,b.state):ae==="REPLACE"&&a.history.replace(b,b.state));let re;if(ae==="POP"){let he=Ke.get(A.location.pathname);he&&he.has(b.pathname)?re={currentLocation:A.location,nextLocation:b}:Ke.has(b.pathname)&&(re={currentLocation:b,nextLocation:A.location})}else if(Ae){let he=Ke.get(A.location.pathname);he?he.add(b.pathname):(he=new Set([b.pathname]),Ke.set(A.location.pathname,he)),re={currentLocation:A.location,nextLocation:b}}Ie({...w,actionData:$,loaderData:se,historyAction:ae,location:b,initialized:!0,navigation:bc,revalidation:"idle",restoreScrollPosition:ee,preventScrollReset:ne,blockers:te},{viewTransitionOpts:re,flushSync:U===!0}),ae="POP",ze=!1,Ae=!1,_e=!1,O=!1,Ee?.resolve(),Ee=null,Se?.resolve(),Se=null}async function Gt(b,w){if(Ee?.resolve(),Ee=null,typeof b=="number"){Ee||(Ee=Ny());let Le=Ee.promise;return a.history.go(b),Le}let U=Cc(A.location,A.matches,y,b,w?.fromRouteId,w?.relative),{path:X,submission:$,error:se}=Sy(!1,U,w),te=A.location,ee=hr(A.location,X,w&&w.state);ee={...ee,...a.history.encodeLocation(ee)};let ne=w&&w.replace!=null?w.replace:void 0,re="PUSH";ne===!0?re="REPLACE":ne===!1||$!=null&&qt($.formMethod)&&$.formAction===A.location.pathname+A.location.search&&(re="REPLACE");let he=w&&"preventScrollReset"in w?w.preventScrollReset===!0:void 0,oe=(w&&w.flushSync)===!0,Ve=na({currentLocation:te,nextLocation:ee,historyAction:re});if(Ve){zn(Ve,{state:"blocked",location:ee,proceed(){zn(Ve,{state:"proceeding",proceed:void 0,reset:void 0,location:ee}),Gt(b,w)},reset(){let Le=new Map(A.blockers);Le.set(Ve,ar),Ie({blockers:Le})}});return}await Xt(re,ee,{submission:$,pendingError:se,preventScrollReset:he,replace:w&&w.replace,enableViewTransition:w&&w.viewTransition,flushSync:oe,callSiteDefaultShouldRevalidate:w&&w.unstable_defaultShouldRevalidate})}function Ia(){Se||(Se=Ny()),Ta(),Ie({revalidation:"loading"});let b=Se.promise;return A.navigation.state==="submitting"?b:A.navigation.state==="idle"?(Xt(A.historyAction,A.location,{startUninterruptedRevalidation:!0}),b):(Xt(ae||A.historyAction,A.navigation.location,{overrideNavigation:A.navigation,enableViewTransition:Ae===!0}),b)}async function Xt(b,w,U){Oe&&Oe.abort(),Oe=null,ae=b,_e=(U&&U.startUninterruptedRevalidation)===!0,tt(A.location,A.matches),ze=(U&&U.preventScrollReset)===!0,Ae=(U&&U.enableViewTransition)===!0;let X=g||m,$=U&&U.overrideNavigation,se=U?.initialHydration&&A.matches&&A.matches.length>0&&!W?A.matches:Za(X,w,y),te=(U&&U.flushSync)===!0;if(se&&A.initialized&&!O&&g1(A.location,w)&&!(U&&U.submission&&qt(U.submission.formMethod))){Cn(w,{matches:se},{flushSync:te});return}let ee=yt(se,X,w.pathname);if(ee.active&&ee.matches&&(se=ee.matches),!se){let{error:ct,notFoundMatches:ft,route:Be}=Nn(w.pathname);Cn(w,{matches:ft,loaderData:{},errors:{[Be.id]:ct}},{flushSync:te});return}Oe=new AbortController;let ne=ri(a.history,w,Oe.signal,U&&U.submission),re=a.getContext?await a.getContext():new my,he;if(U&&U.pendingError)he=[Ja(se).route.id,{type:"error",error:U.pendingError}];else if(U&&U.submission&&qt(U.submission.formMethod)){let ct=await In(ne,w,U.submission,se,re,ee.active,U&&U.initialHydration===!0,{replace:U.replace,flushSync:te});if(ct.shortCircuited)return;if(ct.pendingActionResult){let[ft,Be]=ct.pendingActionResult;if(fn(Be)&&yr(Be.error)&&Be.error.status===404){Oe=null,Cn(w,{matches:ct.matches,loaderData:{},errors:{[ft]:Be.error}});return}}se=ct.matches||se,he=ct.pendingActionResult,$=Sc(w,U.submission),te=!1,ee.active=!1,ne=ri(a.history,ne.url,ne.signal)}let{shortCircuited:oe,matches:Ve,loaderData:Le,errors:ot}=await el(ne,w,se,re,ee.active,$,U&&U.submission,U&&U.fetcherSubmission,U&&U.replace,U&&U.initialHydration===!0,te,he,U&&U.callSiteDefaultShouldRevalidate);oe||(Oe=null,Cn(w,{matches:Ve||se,...Dy(he),loaderData:Le,errors:ot}))}async function In(b,w,U,X,$,se,te,ee={}){Ta();let ne=x1(w,U);if(Ie({navigation:ne},{flushSync:ee.flushSync===!0}),se){let oe=await tn(X,w.pathname,b.signal);if(oe.type==="aborted")return{shortCircuited:!0};if(oe.type==="error"){if(oe.partialMatches.length===0){let{matches:Le,route:ot}=Ns(m);return{matches:Le,pendingActionResult:[ot.id,{type:"error",error:oe.error}]}}let Ve=Ja(oe.partialMatches).route.id;return{matches:oe.partialMatches,pendingActionResult:[Ve,{type:"error",error:oe.error}]}}else if(oe.matches)X=oe.matches;else{let{notFoundMatches:Ve,error:Le,route:ot}=Nn(w.pathname);return{matches:Ve,pendingActionResult:[ot.id,{type:"error",error:Le}]}}}let re,he=qs(X,w);if(!he.route.action&&!he.route.lazy)re={type:"error",error:On(405,{method:b.method,pathname:w.pathname,routeId:he.route.id})};else{let oe=ui(f,h,b,X,he,te?[]:u,$),Ve=await ea(b,oe,$,null);if(re=Ve[he.route.id],!re){for(let Le of X)if(Ve[Le.route.id]){re=Ve[Le.route.id];break}}if(b.signal.aborted)return{shortCircuited:!0}}if(Tl(re)){let oe;return ee&&ee.replace!=null?oe=ee.replace:oe=xy(re.response.headers.get("Location"),new URL(b.url),y,a.history)===A.location.pathname+A.location.search,await ut(b,re,!0,{submission:U,replace:oe}),{shortCircuited:!0}}if(fn(re)){let oe=Ja(X,he.route.id);return(ee&&ee.replace)!==!0&&(ae="PUSH"),{matches:X,pendingActionResult:[oe.route.id,re,he.route.id]}}return{matches:X,pendingActionResult:[he.route.id,re]}}async function el(b,w,U,X,$,se,te,ee,ne,re,he,oe,Ve){let Le=se||Sc(w,te),ot=te||ee||zy(Le),ct=!_e&&!re;if($){if(ct){let pt=Bt(oe);Ie({navigation:Le,...pt!==void 0?{actionData:pt}:{}},{flushSync:he})}let He=await tn(U,w.pathname,b.signal);if(He.type==="aborted")return{shortCircuited:!0};if(He.type==="error"){if(He.partialMatches.length===0){let{matches:Bn,route:Ct}=Ns(m);return{matches:Bn,loaderData:{},errors:{[Ct.id]:He.error}}}let pt=Ja(He.partialMatches).route.id;return{matches:He.partialMatches,loaderData:{},errors:{[pt]:He.error}}}else if(He.matches)U=He.matches;else{let{error:pt,notFoundMatches:Bn,route:Ct}=Nn(w.pathname);return{matches:Bn,loaderData:{},errors:{[Ct.id]:pt}}}}let ft=g||m,{dsMatches:Be,revalidatingFetchers:Ot}=Ey(b,X,f,h,a.history,A,U,ot,w,re?[]:u,re===!0,O,k,I,q,B,ft,y,a.patchRoutesOnNavigation!=null,oe,Ve);if(de=++ce,!a.dataStrategy&&!Be.some(He=>He.shouldLoad)&&!Be.some(He=>He.route.middleware&&He.route.middleware.length>0)&&Ot.length===0){let He=Rt();return Cn(w,{matches:U,loaderData:{},errors:oe&&fn(oe[1])?{[oe[0]]:oe[1].error}:null,...Dy(oe),...He?{fetchers:new Map(A.fetchers)}:{}},{flushSync:he}),{shortCircuited:!0}}if(ct){let He={};if(!$){He.navigation=Le;let pt=Bt(oe);pt!==void 0&&(He.actionData=pt)}Ot.length>0&&(He.fetchers=tl(Ot)),Ie(He,{flushSync:he})}Ot.forEach(He=>{at(He.key),He.controller&&F.set(He.key,He.controller)});let Kt=()=>Ot.forEach(He=>at(He.key));Oe&&Oe.signal.addEventListener("abort",Kt);let{loaderResults:rt,fetcherResults:Un}=await Xn(Be,Ot,b,X);if(b.signal.aborted)return{shortCircuited:!0};Oe&&Oe.signal.removeEventListener("abort",Kt),Ot.forEach(He=>F.delete(He.key));let nn=Us(rt);if(nn)return await ut(b,nn.result,!0,{replace:ne}),{shortCircuited:!0};if(nn=Us(Un),nn)return B.add(nn.key),await ut(b,nn.result,!0,{replace:ne}),{shortCircuited:!0};let{loaderData:Ln,errors:vn}=Ay(A,U,rt,oe,Ot,Un);re&&A.errors&&(vn={...A.errors,...vn});let la=Rt(),ll=xl(de),il=la||ll||Ot.length>0;return{matches:U,loaderData:Ln,errors:vn,...il?{fetchers:new Map(A.fetchers)}:{}}}function Bt(b){if(b&&!fn(b[1]))return{[b[0]]:b[1].data};if(A.actionData)return Object.keys(A.actionData).length===0?null:A.actionData}function tl(b){return b.forEach(w=>{let U=A.fetchers.get(w.key),X=lr(void 0,U?U.data:void 0);A.fetchers.set(w.key,X)}),new Map(A.fetchers)}async function nl(b,w,U,X){at(b);let $=(X&&X.flushSync)===!0,se=g||m,te=Cc(A.location,A.matches,y,U,w,X?.relative),ee=Za(se,te,y),ne=yt(ee,se,te);if(ne.active&&ne.matches&&(ee=ne.matches),!ee){Yt(b,w,On(404,{pathname:te}),{flushSync:$});return}let{path:re,submission:he,error:oe}=Sy(!0,te,X);if(oe){Yt(b,w,oe,{flushSync:$});return}let Ve=a.getContext?await a.getContext():new my,Le=(X&&X.preventScrollReset)===!0;if(he&&qt(he.formMethod)){await Mt(b,w,re,ee,Ve,ne.active,$,Le,he,X&&X.unstable_defaultShouldRevalidate);return}q.set(b,{routeId:w,path:re}),await Gn(b,w,re,ee,Ve,ne.active,$,Le,he)}async function Mt(b,w,U,X,$,se,te,ee,ne,re){Ta(),q.delete(b);let he=A.fetchers.get(b);Dt(b,O1(ne,he),{flushSync:te});let oe=new AbortController,Ve=ri(a.history,U,oe.signal,ne);if(se){let je=await tn(X,new URL(Ve.url).pathname,Ve.signal,b);if(je.type==="aborted")return;if(je.type==="error"){Yt(b,w,je.error,{flushSync:te});return}else if(je.matches)X=je.matches;else{Yt(b,w,On(404,{pathname:U}),{flushSync:te});return}}let Le=qs(X,U);if(!Le.route.action&&!Le.route.lazy){let je=On(405,{method:ne.formMethod,pathname:U,routeId:w});Yt(b,w,je,{flushSync:te});return}F.set(b,oe);let ot=ce,ct=ui(f,h,Ve,X,Le,u,$),ft=await ea(Ve,ct,$,b),Be=ft[Le.route.id];if(!Be){for(let je of ct)if(ft[je.route.id]){Be=ft[je.route.id];break}}if(Ve.signal.aborted){F.get(b)===oe&&F.delete(b);return}if(I.has(b)){if(Tl(Be)||fn(Be)){Dt(b,_a(void 0));return}}else{if(Tl(Be))if(F.delete(b),de>ot){Dt(b,_a(void 0));return}else return B.add(b),Dt(b,lr(ne)),ut(Ve,Be,!1,{fetcherSubmission:ne,preventScrollReset:ee});if(fn(Be)){Yt(b,w,Be.error);return}}let Ot=A.navigation.location||A.location,Kt=ri(a.history,Ot,oe.signal),rt=g||m,Un=A.navigation.state!=="idle"?Za(rt,A.navigation.location,y):A.matches;Me(Un,"Didn't find any matches after fetcher action");let nn=++ce;_.set(b,nn);let Ln=lr(ne,Be.data);A.fetchers.set(b,Ln);let{dsMatches:vn,revalidatingFetchers:la}=Ey(Kt,$,f,h,a.history,A,Un,ne,Ot,u,!1,O,k,I,q,B,rt,y,a.patchRoutesOnNavigation!=null,[Le.route.id,Be],re);la.filter(je=>je.key!==b).forEach(je=>{let rl=je.key,Sr=A.fetchers.get(rl),hi=lr(void 0,Sr?Sr.data:void 0);A.fetchers.set(rl,hi),at(rl),je.controller&&F.set(rl,je.controller)}),Ie({fetchers:new Map(A.fetchers)});let ll=()=>la.forEach(je=>at(je.key));oe.signal.addEventListener("abort",ll);let{loaderResults:il,fetcherResults:He}=await Xn(vn,la,Kt,$);if(oe.signal.aborted)return;if(oe.signal.removeEventListener("abort",ll),_.delete(b),F.delete(b),la.forEach(je=>F.delete(je.key)),A.fetchers.has(b)){let je=_a(Be.data);A.fetchers.set(b,je)}let pt=Us(il);if(pt)return ut(Kt,pt.result,!1,{preventScrollReset:ee});if(pt=Us(He),pt)return B.add(pt.key),ut(Kt,pt.result,!1,{preventScrollReset:ee});let{loaderData:Bn,errors:Ct}=Ay(A,Un,il,void 0,la,He);xl(nn),A.navigation.state==="loading"&&nn>de?(Me(ae,"Expected pending action"),Oe&&Oe.abort(),Cn(A.navigation.location,{matches:Un,loaderData:Bn,errors:Ct,fetchers:new Map(A.fetchers)})):(Ie({errors:Ct,loaderData:My(A.loaderData,Bn,Un,Ct),fetchers:new Map(A.fetchers)}),O=!1)}async function Gn(b,w,U,X,$,se,te,ee,ne){let re=A.fetchers.get(b);Dt(b,lr(ne,re?re.data:void 0),{flushSync:te});let he=new AbortController,oe=ri(a.history,U,he.signal);if(se){let Be=await tn(X,new URL(oe.url).pathname,oe.signal,b);if(Be.type==="aborted")return;if(Be.type==="error"){Yt(b,w,Be.error,{flushSync:te});return}else if(Be.matches)X=Be.matches;else{Yt(b,w,On(404,{pathname:U}),{flushSync:te});return}}let Ve=qs(X,U);F.set(b,he);let Le=ce,ot=ui(f,h,oe,X,Ve,u,$),ft=(await ea(oe,ot,$,b))[Ve.route.id];if(F.get(b)===he&&F.delete(b),!oe.signal.aborted){if(I.has(b)){Dt(b,_a(void 0));return}if(Tl(ft))if(de>Le){Dt(b,_a(void 0));return}else{B.add(b),await ut(oe,ft,!1,{preventScrollReset:ee});return}if(fn(ft)){Yt(b,w,ft.error);return}Dt(b,_a(ft.data))}}async function ut(b,w,U,{submission:X,fetcherSubmission:$,preventScrollReset:se,replace:te}={}){U||(Ee?.resolve(),Ee=null),w.response.headers.has("X-Remix-Revalidate")&&(O=!0);let ee=w.response.headers.get("Location");Me(ee,"Expected a Location header on the redirect Response"),ee=xy(ee,new URL(b.url),y,a.history);let ne=hr(A.location,ee,{_isRedirect:!0});if(r){let ot=!1;if(w.response.headers.has("X-Remix-Reload-Document"))ot=!0;else if(Xc(ee)){const ct=lp(ee,!0);ot=ct.origin!==i.location.origin||Mn(ct.pathname,y)==null}if(ot){te?i.location.replace(ee):i.location.assign(ee);return}}Oe=null;let re=te===!0||w.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:he,formAction:oe,formEncType:Ve}=A.navigation;!X&&!$&&he&&oe&&Ve&&(X=zy(A.navigation));let Le=X||$;if(n1.has(w.response.status)&&Le&&qt(Le.formMethod))await Xt(re,ne,{submission:{...Le,formAction:ee},preventScrollReset:se||ze,enableViewTransition:U?Ae:void 0});else{let ot=Sc(ne,X);await Xt(re,ne,{overrideNavigation:ot,fetcherSubmission:$,preventScrollReset:se||ze,enableViewTransition:U?Ae:void 0})}}async function ea(b,w,U,X){let $,se={};try{$=await d1(E,b,w,X,U,!1)}catch(te){return w.filter(ee=>ee.shouldLoad).forEach(ee=>{se[ee.route.id]={type:"error",error:te}}),se}if(b.signal.aborted)return se;if(!qt(b.method))for(let te of w){if($[te.route.id]?.type==="error")break;!$.hasOwnProperty(te.route.id)&&!A.loaderData.hasOwnProperty(te.route.id)&&(!A.errors||!A.errors.hasOwnProperty(te.route.id))&&te.shouldCallHandler()&&($[te.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${te.route.id}`)})}for(let[te,ee]of Object.entries($))if(_1(ee)){let ne=ee.result;se[te]={type:"redirect",response:p1(ne,b,te,w,y)}}else se[te]=await y1(ee);return se}async function Xn(b,w,U,X){let $=ea(U,b,X,null),se=Promise.all(w.map(async ne=>{if(ne.matches&&ne.match&&ne.request&&ne.controller){let he=(await ea(ne.request,ne.matches,X,ne.key))[ne.match.route.id];return{[ne.key]:he}}else return Promise.resolve({[ne.key]:{type:"error",error:On(404,{pathname:ne.path})}})})),te=await $,ee=(await se).reduce((ne,re)=>Object.assign(ne,re),{});return{loaderResults:te,fetcherResults:ee}}function Ta(){O=!0,q.forEach((b,w)=>{F.has(w)&&k.add(w),at(w)})}function Dt(b,w,U={}){A.fetchers.set(b,w),Ie({fetchers:new Map(A.fetchers)},{flushSync:(U&&U.flushSync)===!0})}function Yt(b,w,U,X={}){let $=Ja(A.matches,w);yn(b),Ie({errors:{[$.route.id]:U},fetchers:new Map(A.fetchers)},{flushSync:(X&&X.flushSync)===!0})}function mn(b){return J.set(b,(J.get(b)||0)+1),I.has(b)&&I.delete(b),A.fetchers.get(b)||a1}function Rl(b,w){at(b,w?.reason),Dt(b,_a(null))}function yn(b){let w=A.fetchers.get(b);F.has(b)&&!(w&&w.state==="loading"&&_.has(b))&&at(b),q.delete(b),_.delete(b),B.delete(b),I.delete(b),k.delete(b),A.fetchers.delete(b)}function ta(b){let w=(J.get(b)||0)-1;w<=0?(J.delete(b),I.add(b)):J.set(b,w),Ie({fetchers:new Map(A.fetchers)})}function at(b,w){let U=F.get(b);U&&(U.abort(w),F.delete(b))}function kt(b){for(let w of b){let U=mn(w),X=_a(U.data);A.fetchers.set(w,X)}}function Rt(){let b=[],w=!1;for(let U of B){let X=A.fetchers.get(U);Me(X,`Expected fetcher: ${U}`),X.state==="loading"&&(B.delete(U),b.push(U),w=!0)}return kt(b),w}function xl(b){let w=[];for(let[U,X]of _)if(X<b){let $=A.fetchers.get(U);Me($,`Expected fetcher: ${U}`),$.state==="loading"&&(at(U),_.delete(U),w.push(U))}return kt(w),w.length>0}function al(b,w){let U=A.blockers.get(b)||ar;return ue.get(b)!==w&&ue.set(b,w),U}function en(b){A.blockers.delete(b),ue.delete(b)}function zn(b,w){let U=A.blockers.get(b)||ar;Me(U.state==="unblocked"&&w.state==="blocked"||U.state==="blocked"&&w.state==="blocked"||U.state==="blocked"&&w.state==="proceeding"||U.state==="blocked"&&w.state==="unblocked"||U.state==="proceeding"&&w.state==="unblocked",`Invalid blocker state transition: ${U.state} -> ${w.state}`);let X=new Map(A.blockers);X.set(b,w),Ie({blockers:X})}function na({currentLocation:b,nextLocation:w,historyAction:U}){if(ue.size===0)return;ue.size>1&&bt(!1,"A router only supports one blocker at a time");let X=Array.from(ue.entries()),[$,se]=X[X.length-1],te=A.blockers.get($);if(!(te&&te.state==="proceeding")&&se({currentLocation:b,nextLocation:w,historyAction:U}))return $}function Nn(b){let w=On(404,{pathname:b}),U=g||m,{matches:X,route:$}=Ns(U);return{notFoundMatches:X,route:$,error:w}}function pn(b,w,U){if(H=b,K=w,V=U||null,!G&&A.navigation===bc){G=!0;let X=mt(A.location,A.matches);X!=null&&Ie({restoreScrollPosition:X})}return()=>{H=null,K=null,V=null}}function ge(b,w){return V&&V(b,w.map(X=>Mb(X,A.loaderData)))||b.key}function tt(b,w){if(H&&K){let U=ge(b,w);H[U]=K()}}function mt(b,w){if(H){let U=ge(b,w),X=H[U];if(typeof X=="number")return X}return null}function yt(b,w,U){if(a.patchRoutesOnNavigation)if(b){if(Object.keys(b[0].params).length>0)return{active:!0,matches:ur(w,U,y,!0)}}else return{active:!0,matches:ur(w,U,y,!0)||[]};return{active:!1,matches:null}}async function tn(b,w,U,X){if(!a.patchRoutesOnNavigation)return{type:"success",matches:b};let $=b;for(;;){let se=g==null,te=g||m,ee=h;try{await a.patchRoutesOnNavigation({signal:U,path:w,matches:$,fetcherKey:X,patch:(he,oe)=>{U.aborted||_y(he,oe,te,ee,f,!1)}})}catch(he){return{type:"error",error:he,partialMatches:$}}finally{se&&!U.aborted&&(m=[...m])}if(U.aborted)return{type:"aborted"};let ne=Za(te,w,y),re=null;if(ne){if(Object.keys(ne[0].params).length===0)return{type:"success",matches:ne};if(re=ur(te,w,y,!0),!(re&&$.length<re.length&&nt($,re.slice(0,$.length))))return{type:"success",matches:ne}}if(re||(re=ur(te,w,y,!0)),!re||nt($,re))return{type:"success",matches:null};$=re}}function nt(b,w){return b.length===w.length&&b.every((U,X)=>U.route.id===w[X].route.id)}function Ht(b){h={},g=mr(b,f,void 0,h)}function aa(b,w,U=!1){let X=g==null;_y(b,w,g||m,h,f,U),X&&(m=[...m],Ie({}))}return ye={get basename(){return y},get future(){return p},get state(){return A},get routes(){return m},get window(){return i},initialize:Ze,subscribe:Dn,enableScrollRestoration:pn,navigate:Gt,fetch:nl,revalidate:Ia,createHref:b=>a.history.createHref(b),encodeLocation:b=>a.history.encodeLocation(b),getFetcher:mn,resetFetcher:Rl,deleteFetcher:ta,dispose:hn,getBlocker:al,deleteBlocker:en,patchRoutes:aa,_internalFetchControllers:F,_internalSetRoutes:Ht,_internalSetStateDoNotUseOrYouWillBreakYourApp(b){Ie(b)}},a.unstable_instrumentations&&(ye=Jb(ye,a.unstable_instrumentations.map(b=>b.router).filter(Boolean))),ye}function r1(a){return a!=null&&("formData"in a&&a.formData!=null||"body"in a&&a.body!==void 0)}function Cc(a,i,r,u,c,f){let h,m;if(c){h=[];for(let y of i)if(h.push(y),y.route.id===c){m=y;break}}else h=i,m=i[i.length-1];let g=Ws(u||".",Ps(h),Mn(a.pathname,r)||a.pathname,f==="path");if(u==null&&(g.search=a.search,g.hash=a.hash),(u==null||u===""||u===".")&&m){let y=Zc(g.search);if(m.route.index&&!y)g.search=g.search?g.search.replace(/^\?/,"?index&"):"?index";else if(!m.route.index&&y){let E=new URLSearchParams(g.search),p=E.getAll("index");E.delete("index"),p.filter(D=>D).forEach(D=>E.append("index",D));let R=E.toString();g.search=R?`?${R}`:""}}return r!=="/"&&(g.pathname=Vb({basename:r,pathname:g.pathname})),Pn(g)}function Sy(a,i,r){if(!r||!r1(r))return{path:i};if(r.formMethod&&!R1(r.formMethod))return{path:i,error:On(405,{method:r.formMethod})};let u=()=>({path:i,error:On(400,{type:"invalid-body"})}),f=(r.formMethod||"get").toUpperCase(),h=Ep(i);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!qt(f))return u();let p=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((R,[D,H])=>`${R}${D}=${H}
11
+ `,""):String(r.body);return{path:i,submission:{formMethod:f,formAction:h,formEncType:r.formEncType,formData:void 0,json:void 0,text:p}}}else if(r.formEncType==="application/json"){if(!qt(f))return u();try{let p=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:i,submission:{formMethod:f,formAction:h,formEncType:r.formEncType,formData:void 0,json:p,text:void 0}}}catch{return u()}}}Me(typeof FormData=="function","FormData is not available in this environment");let m,g;if(r.formData)m=Uc(r.formData),g=r.formData;else if(r.body instanceof FormData)m=Uc(r.body),g=r.body;else if(r.body instanceof URLSearchParams)m=r.body,g=Oy(m);else if(r.body==null)m=new URLSearchParams,g=new FormData;else try{m=new URLSearchParams(r.body),g=Oy(m)}catch{return u()}let y={formMethod:f,formAction:h,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:g,json:void 0,text:void 0};if(qt(y.formMethod))return{path:i,submission:y};let E=Pa(i);return a&&E.search&&Zc(E.search)&&m.append("index",""),E.search=`?${m}`,{path:Pn(E),submission:y}}function Ey(a,i,r,u,c,f,h,m,g,y,E,p,R,D,H,V,K,G,Z,W,be){let ve=W?fn(W[1])?W[1].error:W[1].data:void 0,ye=c.createURL(f.location),A=c.createURL(g),ae;if(E&&f.errors){let _e=Object.keys(f.errors)[0];ae=h.findIndex(O=>O.route.id===_e)}else if(W&&fn(W[1])){let _e=W[0];ae=h.findIndex(O=>O.route.id===_e)-1}let Ee=W?W[1].statusCode:void 0,ze=Ee&&Ee>=400,Oe={currentUrl:ye,currentParams:f.matches[0]?.params||{},nextUrl:A,nextParams:h[0].params,...m,actionResult:ve,actionStatus:Ee},Ae=vr(h),Ke=h.map((_e,O)=>{let{route:k}=_e,F=null;if(ae!=null&&O>ae?F=!1:k.lazy?F=!0:kc(k)?E?F=zc(k,f.loaderData,f.errors):s1(f.loaderData,f.matches[O],_e)&&(F=!0):F=!1,F!==null)return Nc(r,u,a,Ae,_e,y,i,F);let ce=!1;typeof be=="boolean"?ce=be:ze?ce=!1:(p||ye.pathname+ye.search===A.pathname+A.search||ye.search!==A.search||u1(f.matches[O],_e))&&(ce=!0);let de={...Oe,defaultShouldRevalidate:ce},_=cr(_e,de);return Nc(r,u,a,Ae,_e,y,i,_,de,be)}),Qe=[];return H.forEach((_e,O)=>{if(E||!h.some(J=>J.route.id===_e.routeId)||D.has(O))return;let k=f.fetchers.get(O),F=k&&k.state!=="idle"&&k.data===void 0,ce=Za(K,_e.path,G);if(!ce){if(Z&&F)return;Qe.push({key:O,routeId:_e.routeId,path:_e.path,matches:null,match:null,request:null,controller:null});return}if(V.has(O))return;let de=qs(ce,_e.path),_=new AbortController,B=ri(c,_e.path,_.signal),q=null;if(R.has(O))R.delete(O),q=ui(r,u,B,ce,de,y,i);else if(F)p&&(q=ui(r,u,B,ce,de,y,i));else{let J;typeof be=="boolean"?J=be:ze?J=!1:J=p;let I={...Oe,defaultShouldRevalidate:J};cr(de,I)&&(q=ui(r,u,B,ce,de,y,i,I))}q&&Qe.push({key:O,routeId:_e.routeId,path:_e.path,matches:q,match:de,request:B,controller:_})}),{dsMatches:Ke,revalidatingFetchers:Qe}}function kc(a){return a.loader!=null||a.middleware!=null&&a.middleware.length>0}function zc(a,i,r){if(a.lazy)return!0;if(!kc(a))return!1;let u=i!=null&&a.id in i,c=r!=null&&r[a.id]!==void 0;return!u&&c?!1:typeof a.loader=="function"&&a.loader.hydrate===!0?!0:!u&&!c}function s1(a,i,r){let u=!i||r.route.id!==i.route.id,c=!a.hasOwnProperty(r.route.id);return u||c}function u1(a,i){let r=a.route.path;return a.pathname!==i.pathname||r!=null&&r.endsWith("*")&&a.params["*"]!==i.params["*"]}function cr(a,i){if(a.route.shouldRevalidate){let r=a.route.shouldRevalidate(i);if(typeof r=="boolean")return r}return i.defaultShouldRevalidate}function _y(a,i,r,u,c,f){let h;if(a){let y=u[a];Me(y,`No route found to patch children into: routeId = ${a}`),y.children||(y.children=[]),h=y.children}else h=r;let m=[],g=[];if(i.forEach(y=>{let E=h.find(p=>pp(y,p));E?g.push({existingRoute:E,newRoute:y}):m.push(y)}),m.length>0){let y=mr(m,c,[a||"_","patch",String(h?.length||"0")],u);h.push(...y)}if(f&&g.length>0)for(let y=0;y<g.length;y++){let{existingRoute:E,newRoute:p}=g[y],R=E,[D]=mr([p],c,[],{},!0);Object.assign(R,{element:D.element?D.element:R.element,errorElement:D.errorElement?D.errorElement:R.errorElement,hydrateFallbackElement:D.hydrateFallbackElement?D.hydrateFallbackElement:R.hydrateFallbackElement})}}function pp(a,i){return"id"in a&&"id"in i&&a.id===i.id?!0:a.index===i.index&&a.path===i.path&&a.caseSensitive===i.caseSensitive?(!a.children||a.children.length===0)&&(!i.children||i.children.length===0)?!0:a.children.every((r,u)=>i.children?.some(c=>pp(r,c))):!1}var Ty=new WeakMap,vp=({key:a,route:i,manifest:r,mapRouteProperties:u})=>{let c=r[i.id];if(Me(c,"No route found in manifest"),!c.lazy||typeof c.lazy!="object")return;let f=c.lazy[a];if(!f)return;let h=Ty.get(c);h||(h={},Ty.set(c,h));let m=h[a];if(m)return m;let g=(async()=>{let y=Rb(a),p=c[a]!==void 0&&a!=="hasErrorBoundary";if(y)bt(!y,"Route property "+a+" is not a supported lazy route property. This property will be ignored."),h[a]=Promise.resolve();else if(p)bt(!1,`Route "${c.id}" has a static property "${a}" defined. The lazy property will be ignored.`);else{let R=await f();R!=null&&(Object.assign(c,{[a]:R}),Object.assign(c,u(c)))}typeof c.lazy=="object"&&(c.lazy[a]=void 0,Object.values(c.lazy).every(R=>R===void 0)&&(c.lazy=void 0))})();return h[a]=g,g},wy=new WeakMap;function o1(a,i,r,u,c){let f=r[a.id];if(Me(f,"No route found in manifest"),!a.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof a.lazy=="function"){let E=wy.get(f);if(E)return{lazyRoutePromise:E,lazyHandlerPromise:E};let p=(async()=>{Me(typeof a.lazy=="function","No lazy route function found");let R=await a.lazy(),D={};for(let H in R){let V=R[H];if(V===void 0)continue;let K=Ob(H),Z=f[H]!==void 0&&H!=="hasErrorBoundary";K?bt(!K,"Route property "+H+" is not a supported property to be returned from a lazy route function. This property will be ignored."):Z?bt(!Z,`Route "${f.id}" has a static property "${H}" defined but its lazy function is also returning a value for this property. The lazy route property "${H}" will be ignored.`):D[H]=V}Object.assign(f,D),Object.assign(f,{...u(f),lazy:void 0})})();return wy.set(f,p),p.catch(()=>{}),{lazyRoutePromise:p,lazyHandlerPromise:p}}let h=Object.keys(a.lazy),m=[],g;for(let E of h){if(c&&c.includes(E))continue;let p=vp({key:E,route:a,manifest:r,mapRouteProperties:u});p&&(m.push(p),E===i&&(g=p))}let y=m.length>0?Promise.all(m).then(()=>{}):void 0;return y?.catch(()=>{}),g?.catch(()=>{}),{lazyRoutePromise:y,lazyHandlerPromise:g}}async function Ry(a){let i=a.matches.filter(c=>c.shouldLoad),r={};return(await Promise.all(i.map(c=>c.resolve()))).forEach((c,f)=>{r[i[f].route.id]=c}),r}async function c1(a){return a.matches.some(i=>i.route.middleware)?gp(a,()=>Ry(a)):Ry(a)}function gp(a,i){return f1(a,i,u=>{if(w1(u))throw u;return u},S1,r);function r(u,c,f){if(f)return Promise.resolve(Object.assign(f.value,{[c]:{type:"error",result:u}}));{let{matches:h}=a,m=Math.min(Math.max(h.findIndex(y=>y.route.id===c),0),Math.max(h.findIndex(y=>y.shouldCallHandler()),0)),g=Ja(h,h[m].route.id).route.id;return Promise.resolve({[g]:{type:"error",result:u}})}}}async function f1(a,i,r,u,c){let{matches:f,request:h,params:m,context:g,unstable_pattern:y}=a,E=f.flatMap(R=>R.route.middleware?R.route.middleware.map(D=>[R.route.id,D]):[]);return await bp({request:h,params:m,context:g,unstable_pattern:y},E,i,r,u,c)}async function bp(a,i,r,u,c,f,h=0){let{request:m}=a;if(m.signal.aborted)throw m.signal.reason??new Error(`Request aborted: ${m.method} ${m.url}`);let g=i[h];if(!g)return await r();let[y,E]=g,p,R=async()=>{if(p)throw new Error("You may only call `next()` once per middleware");try{return p={value:await bp(a,i,r,u,c,f,h+1)},p.value}catch(D){return p={value:await f(D,y,p)},p.value}};try{let D=await E(a,R),H=D!=null?u(D):void 0;return c(H)?H:p?H??p.value:(p={value:await R()},p.value)}catch(D){return await f(D,y,p)}}function Sp(a,i,r,u,c){let f=vp({key:"middleware",route:u.route,manifest:i,mapRouteProperties:a}),h=o1(u.route,qt(r.method)?"action":"loader",i,a,c);return{middleware:f,route:h.lazyRoutePromise,handler:h.lazyHandlerPromise}}function Nc(a,i,r,u,c,f,h,m,g=null,y){let E=!1,p=Sp(a,i,r,c,f);return{...c,_lazyPromises:p,shouldLoad:m,shouldRevalidateArgs:g,shouldCallHandler(R){return E=!0,g?typeof y=="boolean"?cr(c,{...g,defaultShouldRevalidate:y}):typeof R=="boolean"?cr(c,{...g,defaultShouldRevalidate:R}):cr(c,g):m},resolve(R){let{lazy:D,loader:H,middleware:V}=c.route,K=E||m||R&&!qt(r.method)&&(D||H),G=V&&V.length>0&&!H&&!D;return K&&(qt(r.method)||!G)?h1({request:r,unstable_pattern:u,match:c,lazyHandlerPromise:p?.handler,lazyRoutePromise:p?.route,handlerOverride:R,scopedContext:h}):Promise.resolve({type:"data",result:void 0})}}}function ui(a,i,r,u,c,f,h,m=null){return u.map(g=>g.route.id!==c.route.id?{...g,shouldLoad:!1,shouldRevalidateArgs:m,shouldCallHandler:()=>!1,_lazyPromises:Sp(a,i,r,g,f),resolve:()=>Promise.resolve({type:"data",result:void 0})}:Nc(a,i,r,vr(u),g,f,h,!0,m))}async function d1(a,i,r,u,c,f){r.some(y=>y._lazyPromises?.middleware)&&await Promise.all(r.map(y=>y._lazyPromises?.middleware));let h={request:i,unstable_pattern:vr(r),params:r[0].params,context:c,matches:r},g=await a({...h,fetcherKey:u,runClientMiddleware:y=>{let E=h;return gp(E,()=>y({...E,fetcherKey:u,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))}});try{await Promise.all(r.flatMap(y=>[y._lazyPromises?.handler,y._lazyPromises?.route]))}catch{}return g}async function h1({request:a,unstable_pattern:i,match:r,lazyHandlerPromise:u,lazyRoutePromise:c,handlerOverride:f,scopedContext:h}){let m,g,y=qt(a.method),E=y?"action":"loader",p=R=>{let D,H=new Promise((G,Z)=>D=Z);g=()=>D(),a.signal.addEventListener("abort",g);let V=G=>typeof R!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${E}" [routeId: ${r.route.id}]`)):R({request:a,unstable_pattern:i,params:r.params,context:h},...G!==void 0?[G]:[]),K=(async()=>{try{return{type:"data",result:await(f?f(Z=>V(Z)):V())}}catch(G){return{type:"error",result:G}}})();return Promise.race([K,H])};try{let R=y?r.route.action:r.route.loader;if(u||c)if(R){let D,[H]=await Promise.all([p(R).catch(V=>{D=V}),u,c]);if(D!==void 0)throw D;m=H}else{await u;let D=y?r.route.action:r.route.loader;if(D)[m]=await Promise.all([p(D),c]);else if(E==="action"){let H=new URL(a.url),V=H.pathname+H.search;throw On(405,{method:a.method,pathname:V,routeId:r.route.id})}else return{type:"data",result:void 0}}else if(R)m=await p(R);else{let D=new URL(a.url),H=D.pathname+D.search;throw On(404,{pathname:H})}}catch(R){return{type:"error",result:R}}finally{g&&a.signal.removeEventListener("abort",g)}return m}async function m1(a){let i=a.headers.get("Content-Type");return i&&/\bapplication\/json\b/.test(i)?a.body==null?null:a.json():a.text()}async function y1(a){let{result:i,type:r}=a;if(Kc(i)){let u;try{u=await m1(i)}catch(c){return{type:"error",error:c}}return r==="error"?{type:"error",error:new pr(i.status,i.statusText,u),statusCode:i.status,headers:i.headers}:{type:"data",data:u,statusCode:i.status,headers:i.headers}}return r==="error"?Cy(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:b1(i),statusCode:yr(i)?i.status:void 0,headers:i.init?.headers?new Headers(i.init.headers):void 0}:{type:"error",error:i,statusCode:yr(i)?i.status:void 0}:Cy(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 p1(a,i,r,u,c){let f=a.headers.get("Location");if(Me(f,"Redirects returned/thrown from loaders/actions must have a Location header"),!Xc(f)){let h=u.slice(0,u.findIndex(m=>m.route.id===r)+1);f=Cc(new URL(i.url),h,c,f),a.headers.set("Location",f)}return a}function xy(a,i,r,u){let c=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(Xc(a)){let f=a,h=f.startsWith("//")?new URL(i.protocol+f):new URL(f);if(c.includes(h.protocol))throw new Error("Invalid redirect location");let m=Mn(h.pathname,r)!=null;if(h.origin===i.origin&&m)return h.pathname+h.search+h.hash}try{let f=u.createURL(a);if(c.includes(f.protocol))throw new Error("Invalid redirect location")}catch{}return a}function ri(a,i,r,u){let c=a.createURL(Ep(i)).toString(),f={signal:r};if(u&&qt(u.formMethod)){let{formMethod:h,formEncType:m}=u;f.method=h.toUpperCase(),m==="application/json"?(f.headers=new Headers({"Content-Type":m}),f.body=JSON.stringify(u.json)):m==="text/plain"?f.body=u.text:m==="application/x-www-form-urlencoded"&&u.formData?f.body=Uc(u.formData):f.body=u.formData}return new Request(c,f)}function Uc(a){let i=new URLSearchParams;for(let[r,u]of a.entries())i.append(r,typeof u=="string"?u:u.name);return i}function Oy(a){let i=new FormData;for(let[r,u]of a.entries())i.append(r,u);return i}function v1(a,i,r,u=!1,c=!1){let f={},h=null,m,g=!1,y={},E=r&&fn(r[1])?r[1].error:void 0;return a.forEach(p=>{if(!(p.route.id in i))return;let R=p.route.id,D=i[R];if(Me(!Tl(D),"Cannot handle redirect results in processLoaderData"),fn(D)){let H=D.error;if(E!==void 0&&(H=E,E=void 0),h=h||{},c)h[R]=H;else{let V=Ja(a,R);h[V.route.id]==null&&(h[V.route.id]=H)}u||(f[R]=yp),g||(g=!0,m=yr(D.error)?D.error.status:500),D.headers&&(y[R]=D.headers)}else f[R]=D.data,D.statusCode&&D.statusCode!==200&&!g&&(m=D.statusCode),D.headers&&(y[R]=D.headers)}),E!==void 0&&r&&(h={[r[0]]:E},r[2]&&(f[r[2]]=void 0)),{loaderData:f,errors:h,statusCode:m||200,loaderHeaders:y}}function Ay(a,i,r,u,c,f){let{loaderData:h,errors:m}=v1(i,r,u);return c.filter(g=>!g.matches||g.matches.some(y=>y.shouldLoad)).forEach(g=>{let{key:y,match:E,controller:p}=g;if(p&&p.signal.aborted)return;let R=f[y];if(Me(R,"Did not find corresponding fetcher result"),fn(R)){let D=Ja(a.matches,E?.route.id);m&&m[D.route.id]||(m={...m,[D.route.id]:R.error}),a.fetchers.delete(y)}else if(Tl(R))Me(!1,"Unhandled fetcher revalidation redirect");else{let D=_a(R.data);a.fetchers.set(y,D)}}),{loaderData:h,errors:m}}function My(a,i,r,u){let c=Object.entries(i).filter(([,f])=>f!==yp).reduce((f,[h,m])=>(f[h]=m,f),{});for(let f of r){let h=f.route.id;if(!i.hasOwnProperty(h)&&a.hasOwnProperty(h)&&f.route.loader&&(c[h]=a[h]),u&&u.hasOwnProperty(h))break}return c}function Dy(a){return a?fn(a[1])?{actionData:{}}:{actionData:{[a[0]]:a[1].data}}:{}}function Ja(a,i){return(i?a.slice(0,a.findIndex(u=>u.route.id===i)+1):[...a]).reverse().find(u=>u.route.hasErrorBoundary===!0)||a[0]}function Ns(a){let i=a.length===1?a[0]:a.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:i}],route:i}}function On(a,{pathname:i,routeId:r,method:u,type:c,message:f}={}){let h="Unknown Server Error",m="Unknown @remix-run/router error";return a===400?(h="Bad Request",u&&i&&r?m=`You made a ${u} request to "${i}" but did not provide a \`loader\` for route "${r}", so there is no way to handle the request.`:c==="invalid-body"&&(m="Unable to encode submission body")):a===403?(h="Forbidden",m=`Route "${r}" does not match URL "${i}"`):a===404?(h="Not Found",m=`No route matches URL "${i}"`):a===405&&(h="Method Not Allowed",u&&i&&r?m=`You made a ${u.toUpperCase()} request to "${i}" but did not provide an \`action\` for route "${r}", so there is no way to handle the request.`:u&&(m=`Invalid request method "${u.toUpperCase()}"`)),new pr(a||500,h,new Error(m),!0)}function Us(a){let i=Object.entries(a);for(let r=i.length-1;r>=0;r--){let[u,c]=i[r];if(Tl(c))return{key:u,result:c}}}function Ep(a){let i=typeof a=="string"?Pa(a):a;return Pn({...i,hash:""})}function g1(a,i){return a.pathname!==i.pathname||a.search!==i.search?!1:a.hash===""?i.hash!=="":a.hash===i.hash?!0:i.hash!==""}function b1(a){return new pr(a.init?.status??500,a.init?.statusText??"Internal Server Error",a.data)}function S1(a){return a!=null&&typeof a=="object"&&Object.entries(a).every(([i,r])=>typeof i=="string"&&E1(r))}function E1(a){return a!=null&&typeof a=="object"&&"type"in a&&"result"in a&&(a.type==="data"||a.type==="error")}function _1(a){return Kc(a.result)&&hp.has(a.result.status)}function fn(a){return a.type==="error"}function Tl(a){return(a&&a.type)==="redirect"}function Cy(a){return typeof a=="object"&&a!=null&&"type"in a&&"data"in a&&"init"in a&&a.type==="DataWithResponseInit"}function Kc(a){return a!=null&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.headers=="object"&&typeof a.body<"u"}function T1(a){return hp.has(a)}function w1(a){return Kc(a)&&T1(a.status)&&a.headers.has("Location")}function R1(a){return t1.has(a.toUpperCase())}function qt(a){return Ib.has(a.toUpperCase())}function Zc(a){return new URLSearchParams(a).getAll("index").some(i=>i==="")}function qs(a,i){let r=typeof i=="string"?Pa(i).search:i.search;if(a[a.length-1].route.index&&Zc(r||""))return a[a.length-1];let u=up(a);return u[u.length-1]}function zy(a){let{formMethod:i,formAction:r,formEncType:u,text:c,formData:f,json:h}=a;if(!(!i||!r||!u)){if(c!=null)return{formMethod:i,formAction:r,formEncType:u,formData:void 0,json:void 0,text:c};if(f!=null)return{formMethod:i,formAction:r,formEncType:u,formData:f,json:void 0,text:void 0};if(h!==void 0)return{formMethod:i,formAction:r,formEncType:u,formData:void 0,json:h,text:void 0}}}function Sc(a,i){return i?{state:"loading",location:a,formMethod:i.formMethod,formAction:i.formAction,formEncType:i.formEncType,formData:i.formData,json:i.json,text:i.text}:{state:"loading",location:a,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function x1(a,i){return{state:"submitting",location:a,formMethod:i.formMethod,formAction:i.formAction,formEncType:i.formEncType,formData:i.formData,json:i.json,text:i.text}}function lr(a,i){return a?{state:"loading",formMethod:a.formMethod,formAction:a.formAction,formEncType:a.formEncType,formData:a.formData,json:a.json,text:a.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 O1(a,i){return{state:"submitting",formMethod:a.formMethod,formAction:a.formAction,formEncType:a.formEncType,formData:a.formData,json:a.json,text:a.text,data:i?i.data:void 0}}function _a(a){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:a}}function A1(a,i){try{let r=a.sessionStorage.getItem(mp);if(r){let u=JSON.parse(r);for(let[c,f]of Object.entries(u||{}))f&&Array.isArray(f)&&i.set(c,new Set(f||[]))}}catch{}}function M1(a,i){if(i.size>0){let r={};for(let[u,c]of i)r[u]=[...c];try{a.sessionStorage.setItem(mp,JSON.stringify(r))}catch(u){bt(!1,`Failed to save applied view transitions in sessionStorage (${u}).`)}}}function Ny(){let a,i,r=new Promise((u,c)=>{a=async f=>{u(f);try{await r}catch{}},i=async f=>{c(f);try{await r}catch{}}});return{promise:r,resolve:a,reject:i}}var wl=M.createContext(null);wl.displayName="DataRouter";var gr=M.createContext(null);gr.displayName="DataRouterState";var _p=M.createContext(!1);function D1(){return M.useContext(_p)}var Jc=M.createContext({isTransitioning:!1});Jc.displayName="ViewTransition";var Tp=M.createContext(new Map);Tp.displayName="Fetchers";var C1=M.createContext(null);C1.displayName="Await";var dn=M.createContext(null);dn.displayName="Navigation";var Is=M.createContext(null);Is.displayName="Location";var Vn=M.createContext({outlet:null,matches:[],isDataRoute:!1});Vn.displayName="Route";var Fc=M.createContext(null);Fc.displayName="RouteError";var wp="REACT_ROUTER_ERROR",z1="REDIRECT",N1="ROUTE_ERROR_RESPONSE";function U1(a){if(a.startsWith(`${wp}:${z1}:{`))try{let i=JSON.parse(a.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 L1(a){if(a.startsWith(`${wp}:${N1}:{`))try{let i=JSON.parse(a.slice(40));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string")return new pr(i.status,i.statusText,i.data)}catch{}}function B1(a,{relative:i}={}){Me(fi(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:u}=M.useContext(dn),{hash:c,pathname:f,search:h}=br(a,{relative:i}),m=f;return r!=="/"&&(m=f==="/"?r:$n([r,f])),u.createHref({pathname:m,search:h,hash:c})}function fi(){return M.useContext(Is)!=null}function Wa(){return Me(fi(),"useLocation() may be used only in the context of a <Router> component."),M.useContext(Is).location}var Rp="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function xp(a){M.useContext(dn).static||M.useLayoutEffect(a)}function $c(){let{isDataRoute:a}=M.useContext(Vn);return a?P1():H1()}function H1(){Me(fi(),"useNavigate() may be used only in the context of a <Router> component.");let a=M.useContext(wl),{basename:i,navigator:r}=M.useContext(dn),{matches:u}=M.useContext(Vn),{pathname:c}=Wa(),f=JSON.stringify(Ps(u)),h=M.useRef(!1);return xp(()=>{h.current=!0}),M.useCallback((g,y={})=>{if(bt(h.current,Rp),!h.current)return;if(typeof g=="number"){r.go(g);return}let E=Ws(g,JSON.parse(f),c,y.relative==="path");a==null&&i!=="/"&&(E.pathname=E.pathname==="/"?i:$n([i,E.pathname])),(y.replace?r.replace:r.push)(E,y.state,y)},[i,r,f,c,a])}var j1=M.createContext(null);function q1(a){let i=M.useContext(Vn).outlet;return M.useMemo(()=>i&&M.createElement(j1.Provider,{value:a},i),[i,a])}function br(a,{relative:i}={}){let{matches:r}=M.useContext(Vn),{pathname:u}=Wa(),c=JSON.stringify(Ps(r));return M.useMemo(()=>Ws(a,JSON.parse(c),u,i==="path"),[a,c,u,i])}function Y1(a,i,r,u,c){Me(fi(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:f}=M.useContext(dn),{matches:h}=M.useContext(Vn),m=h[h.length-1],g=m?m.params:{},y=m?m.pathname:"/",E=m?m.pathnameBase:"/",p=m&&m.route;{let Z=p&&p.path||"";Ap(y,!p||Z.endsWith("*")||Z.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${y}" (under <Route path="${Z}">) 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="${Z}"> to <Route path="${Z==="/"?"*":`${Z}/*`}">.`)}let R=Pa(),D;D=R;let H=D.pathname||"/",V=H;if(E!=="/"){let Z=E.replace(/^\//,"").split("/");V="/"+H.replace(/^\//,"").split("/").slice(Z.length).join("/")}let K=Za(a,{pathname:V});return bt(p||K!=null,`No routes matched location "${D.pathname}${D.search}${D.hash}" `),bt(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 "${D.pathname}${D.search}${D.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.`),k1(K&&K.map(Z=>Object.assign({},Z,{params:Object.assign({},g,Z.params),pathname:$n([E,f.encodeLocation?f.encodeLocation(Z.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:Z.pathname]),pathnameBase:Z.pathnameBase==="/"?E:$n([E,f.encodeLocation?f.encodeLocation(Z.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:Z.pathnameBase])})),h,r,u,c)}function Q1(){let a=$1(),i=mr(a)?`${a.status} ${a.statusText}`:a instanceof Error?a.message:JSON.stringify(a),r=a instanceof Error?a.stack:null,u="rgba(200,200,200, 0.5)",c={padding:"0.5rem",backgroundColor:u},f={padding:"2px 4px",backgroundColor:u},h=null;return console.error("Error handled by React Router default ErrorBoundary:",a),h=C.createElement(C.Fragment,null,C.createElement("p",null,"💿 Hey developer 👋"),C.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",C.createElement("code",{style:f},"ErrorBoundary")," or"," ",C.createElement("code",{style:f},"errorElement")," prop on your route.")),C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},i),r?C.createElement("pre",{style:c},r):null,h)}var V1=C.createElement(Q1,null),Op=class extends C.Component{constructor(a){super(a),this.state={location:a.location,revalidation:a.revalidation,error:a.error}}static getDerivedStateFromError(a){return{error:a}}static getDerivedStateFromProps(a,i){return i.location!==a.location||i.revalidation!=="idle"&&a.revalidation==="idle"?{error:a.error,location:a.location,revalidation:a.revalidation}:{error:a.error!==void 0?a.error:i.error,location:i.location,revalidation:a.revalidation||i.revalidation}}componentDidCatch(a,i){this.props.onError?this.props.onError(a,i):console.error("React Router caught the following error during render",a)}render(){let a=this.state.error;if(this.context&&typeof a=="object"&&a&&"digest"in a&&typeof a.digest=="string"){const r=L1(a.digest);r&&(a=r)}let i=a!==void 0?C.createElement(Vn.Provider,{value:this.props.routeContext},C.createElement(Jc.Provider,{value:a,children:this.props.component})):this.props.children;return this.context?C.createElement(G1,{error:a},i):i}};Op.contextType=_p;var Sc=new WeakMap;function G1({children:a,error:i}){let{basename:r}=C.useContext(dn);if(typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){let u=U1(i.digest);if(u){let c=Sc.get(i);if(c)throw c;let f=cp(u.location,r);if(op&&!Sc.get(i))if(f.isExternal||u.reloadDocument)window.location.href=f.absoluteURL||f.to;else{const h=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(f.to,{replace:u.replace}));throw Sc.set(i,h),h}return C.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return a}function X1({routeContext:a,match:i,children:r}){let u=C.useContext(wl);return u&&u.static&&u.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(u.staticContext._deepestRenderedBoundaryId=i.route.id),C.createElement(Vn.Provider,{value:a},r)}function k1(a,i=[],r=null,u=null,c=null){if(a==null){if(!r)return null;if(r.errors)a=r.matches;else if(i.length===0&&!r.initialized&&r.matches.length>0)a=r.matches;else return null}let f=a,h=r?.errors;if(h!=null){let E=f.findIndex(p=>p.route.id&&h?.[p.route.id]!==void 0);Ce(E>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(h).join(",")}`),f=f.slice(0,Math.min(f.length,E+1))}let m=!1,g=-1;if(r)for(let E=0;E<f.length;E++){let p=f[E];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(g=E),p.route.id){let{loaderData:R,errors:D}=r,H=p.route.loader&&!R.hasOwnProperty(p.route.id)&&(!D||D[p.route.id]===void 0);if(p.route.lazy||H){m=!0,g>=0?f=f.slice(0,g+1):f=[f[0]];break}}}let y=r&&u?(E,p)=>{u(E,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:vr(r.matches),errorInfo:p})}:void 0;return f.reduceRight((E,p,R)=>{let D,H=!1,V=null,K=null;r&&(D=h&&p.route.id?h[p.route.id]:void 0,V=p.route.errorElement||V1,m&&(g<0&&R===0?(Ap("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),H=!0,K=null):g===R&&(H=!0,K=p.route.hydrateFallbackElement||null)));let G=i.concat(f.slice(0,R+1)),Z=()=>{let P;return D?P=V:H?P=K:p.route.Component?P=C.createElement(p.route.Component,null):p.route.element?P=p.route.element:P=E,C.createElement(X1,{match:p,routeContext:{outlet:E,matches:G,isDataRoute:r!=null},children:P})};return r&&(p.route.ErrorBoundary||p.route.errorElement||R===0)?C.createElement(Op,{location:r.location,revalidation:r.revalidation,component:V,error:D,children:Z(),routeContext:{outlet:null,matches:G,isDataRoute:!0},onError:y}):Z()},null)}function $c(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function K1(a){let i=C.useContext(wl);return Ce(i,$c(a)),i}function Z1(a){let i=C.useContext(gr);return Ce(i,$c(a)),i}function J1(a){let i=C.useContext(Vn);return Ce(i,$c(a)),i}function Wc(a){let i=J1(a),r=i.matches[i.matches.length-1];return Ce(r.route.id,`${a} can only be used on routes that contain a unique "id"`),r.route.id}function F1(){return Wc("useRouteId")}function $1(){let a=C.useContext(Jc),i=Z1("useRouteError"),r=Wc("useRouteError");return a!==void 0?a:i.errors?.[r]}function W1(){let{router:a}=K1("useNavigate"),i=Wc("useNavigate"),r=C.useRef(!1);return xp(()=>{r.current=!0}),C.useCallback(async(c,f={})=>{bt(r.current,Rp),r.current&&(typeof c=="number"?await a.navigate(c):await a.navigate(c,{fromRouteId:i,...f}))},[a,i])}var Uy={};function Ap(a,i,r){!i&&!Uy[a]&&(Uy[a]=!0,bt(!1,r))}var Ly={};function By(a,i){!a&&!Ly[i]&&(Ly[i]=!0,console.warn(i))}var P1="useOptimistic",Hy=s0[P1],I1=()=>{};function eS(a){return Hy?Hy(a):[a,I1]}function tS(a){let i={hasErrorBoundary:a.hasErrorBoundary||a.ErrorBoundary!=null||a.errorElement!=null};return a.Component&&(a.element&&bt(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(i,{element:C.createElement(a.Component),Component:void 0})),a.HydrateFallback&&(a.hydrateFallbackElement&&bt(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(i,{hydrateFallbackElement:C.createElement(a.HydrateFallback),HydrateFallback:void 0})),a.ErrorBoundary&&(a.errorElement&&bt(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(i,{errorElement:C.createElement(a.ErrorBoundary),ErrorBoundary:void 0})),i}var nS=["HydrateFallback","hydrateFallbackElement"],aS=class{constructor(){this.status="pending",this.promise=new Promise((a,i)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",a(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",i(r))}})}};function lS({router:a,flushSync:i,onError:r,unstable_useTransitions:u}){u=D1()||u;let[f,h]=C.useState(a.state),[m,g]=eS(f),[y,E]=C.useState(),[p,R]=C.useState({isTransitioning:!1}),[D,H]=C.useState(),[V,K]=C.useState(),[G,Z]=C.useState(),P=C.useRef(new Map),ge=C.useCallback((ae,{deletedFetchers:Ee,newErrors:ze,flushSync:Oe,viewTransitionOpts:Ae})=>{ze&&r&&Object.values(ze).forEach(Qe=>r(Qe,{location:ae.location,params:ae.matches[0]?.params??{},unstable_pattern:vr(ae.matches)})),ae.fetchers.forEach((Qe,_e)=>{Qe.data!==void 0&&P.current.set(_e,Qe.data)}),Ee.forEach(Qe=>P.current.delete(Qe)),By(Oe===!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 Ke=a.window!=null&&a.window.document!=null&&typeof a.window.document.startViewTransition=="function";if(By(Ae==null||Ke,"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."),!Ae||!Ke){i&&Oe?i(()=>h(ae)):u===!1?h(ae):C.startTransition(()=>{u===!0&&g(Qe=>jy(Qe,ae)),h(ae)});return}if(i&&Oe){i(()=>{V&&(D?.resolve(),V.skipTransition()),R({isTransitioning:!0,flushSync:!0,currentLocation:Ae.currentLocation,nextLocation:Ae.nextLocation})});let Qe=a.window.document.startViewTransition(()=>{i(()=>h(ae))});Qe.finished.finally(()=>{i(()=>{H(void 0),K(void 0),E(void 0),R({isTransitioning:!1})})}),i(()=>K(Qe));return}V?(D?.resolve(),V.skipTransition(),Z({state:ae,currentLocation:Ae.currentLocation,nextLocation:Ae.nextLocation})):(E(ae),R({isTransitioning:!0,flushSync:!1,currentLocation:Ae.currentLocation,nextLocation:Ae.nextLocation}))},[a.window,i,V,D,u,g,r]);C.useLayoutEffect(()=>a.subscribe(ge),[a,ge]),C.useEffect(()=>{p.isTransitioning&&!p.flushSync&&H(new aS)},[p]),C.useEffect(()=>{if(D&&y&&a.window){let ae=y,Ee=D.promise,ze=a.window.document.startViewTransition(async()=>{u===!1?h(ae):C.startTransition(()=>{u===!0&&g(Oe=>jy(Oe,ae)),h(ae)}),await Ee});ze.finished.finally(()=>{H(void 0),K(void 0),E(void 0),R({isTransitioning:!1})}),K(ze)}},[y,D,a.window,u,g]),C.useEffect(()=>{D&&y&&m.location.key===y.location.key&&D.resolve()},[D,V,m.location,y]),C.useEffect(()=>{!p.isTransitioning&&G&&(E(G.state),R({isTransitioning:!0,flushSync:!1,currentLocation:G.currentLocation,nextLocation:G.nextLocation}),Z(void 0))},[p.isTransitioning,G]);let pe=C.useMemo(()=>({createHref:a.createHref,encodeLocation:a.encodeLocation,go:ae=>a.navigate(ae),push:(ae,Ee,ze)=>a.navigate(ae,{state:Ee,preventScrollReset:ze?.preventScrollReset}),replace:(ae,Ee,ze)=>a.navigate(ae,{replace:!0,state:Ee,preventScrollReset:ze?.preventScrollReset})}),[a]),ye=a.basename||"/",A=C.useMemo(()=>({router:a,navigator:pe,static:!1,basename:ye,onError:r}),[a,pe,ye,r]);return C.createElement(C.Fragment,null,C.createElement(wl.Provider,{value:A},C.createElement(gr.Provider,{value:m},C.createElement(Tp.Provider,{value:P.current},C.createElement(Zc.Provider,{value:p},C.createElement(uS,{basename:ye,location:m.location,navigationType:m.historyAction,navigator:pe,unstable_useTransitions:u},C.createElement(iS,{routes:a.routes,future:a.future,state:m,onError:r})))))),null)}function jy(a,i){return{...a,navigation:i.navigation.state!=="idle"?i.navigation:a.navigation,revalidation:i.revalidation!=="idle"?i.revalidation:a.revalidation,actionData:i.navigation.state!=="submitting"?i.actionData:a.actionData,fetchers:i.fetchers}}var iS=C.memo(rS);function rS({routes:a,future:i,state:r,onError:u}){return Y1(a,void 0,r,u,i)}function sS({to:a,replace:i,state:r,relative:u}){Ce(ci(),"<Navigate> may be used only in the context of a <Router> component.");let{static:c}=C.useContext(dn);bt(!c,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:f}=C.useContext(Vn),{pathname:h}=Pa(),m=Fc(),g=Ps(a,Ws(f),h,u==="path"),y=JSON.stringify(g);return C.useEffect(()=>{m(JSON.parse(y),{replace:i,state:r,relative:u})},[m,y,u,i,r]),null}function Cp(a){return q1(a.context)}function uS({basename:a="/",children:i=null,location:r,navigationType:u="POP",navigator:c,static:f=!1,unstable_useTransitions:h}){Ce(!ci(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let m=a.replace(/^\/*/,"/"),g=C.useMemo(()=>({basename:m,navigator:c,static:f,unstable_useTransitions:h,future:{}}),[m,c,f,h]);typeof r=="string"&&(r=Wa(r));let{pathname:y="/",search:E="",hash:p="",state:R=null,key:D="default"}=r,H=C.useMemo(()=>{let V=Cn(y,m);return V==null?null:{location:{pathname:V,search:E,hash:p,state:R,key:D},navigationType:u}},[m,y,E,p,R,D,u]);return bt(H!=null,`<Router basename="${m}"> is not able to match the URL "${y}${E}${p}" because it does not start with the basename, so the <Router> won't render anything.`),H==null?null:C.createElement(dn.Provider,{value:g},C.createElement(Is.Provider,{children:i,value:H}))}var Ys="get",Qs="application/x-www-form-urlencoded";function eu(a){return typeof HTMLElement<"u"&&a instanceof HTMLElement}function oS(a){return eu(a)&&a.tagName.toLowerCase()==="button"}function cS(a){return eu(a)&&a.tagName.toLowerCase()==="form"}function fS(a){return eu(a)&&a.tagName.toLowerCase()==="input"}function dS(a){return!!(a.metaKey||a.altKey||a.ctrlKey||a.shiftKey)}function hS(a,i){return a.button===0&&(!i||i==="_self")&&!dS(a)}var Ls=null;function mS(){if(Ls===null)try{new FormData(document.createElement("form"),0),Ls=!1}catch{Ls=!0}return Ls}var yS=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Ec(a){return a!=null&&!yS.has(a)?(bt(!1,`"${a}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Qs}"`),null):a}function pS(a,i){let r,u,c,f,h;if(cS(a)){let m=a.getAttribute("action");u=m?Cn(m,i):null,r=a.getAttribute("method")||Ys,c=Ec(a.getAttribute("enctype"))||Qs,f=new FormData(a)}else if(oS(a)||fS(a)&&(a.type==="submit"||a.type==="image")){let m=a.form;if(m==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let g=a.getAttribute("formaction")||m.getAttribute("action");if(u=g?Cn(g,i):null,r=a.getAttribute("formmethod")||m.getAttribute("method")||Ys,c=Ec(a.getAttribute("formenctype"))||Ec(m.getAttribute("enctype"))||Qs,f=new FormData(m,a),!mS()){let{name:y,type:E,value:p}=a;if(E==="image"){let R=y?`${y}.`:"";f.append(`${R}x`,"0"),f.append(`${R}y`,"0")}else y&&f.append(y,p)}}else{if(eu(a))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Ys,u=null,c=Qs,h=a}return f&&c==="text/plain"&&(h=f,f=void 0),{action:u,method:r.toLowerCase(),encType:c,formData:f,body:h}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Pc(a,i){if(a===!1||a===null||typeof a>"u")throw new Error(i)}function vS(a,i,r,u){let c=typeof a=="string"?new URL(a,typeof window>"u"?"server://singlefetch/":window.location.origin):a;return r?c.pathname.endsWith("/")?c.pathname=`${c.pathname}_.${u}`:c.pathname=`${c.pathname}.${u}`:c.pathname==="/"?c.pathname=`_root.${u}`:i&&Cn(c.pathname,i)==="/"?c.pathname=`${i.replace(/\/$/,"")}/_root.${u}`:c.pathname=`${c.pathname.replace(/\/$/,"")}.${u}`,c}async function gS(a,i){if(a.id in i)return i[a.id];try{let r=await import(a.module);return i[a.id]=r,r}catch(r){return console.error(`Error loading route module \`${a.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function bS(a){return a==null?!1:a.href==null?a.rel==="preload"&&typeof a.imageSrcSet=="string"&&typeof a.imageSizes=="string":typeof a.rel=="string"&&typeof a.href=="string"}async function SS(a,i,r){let u=await Promise.all(a.map(async c=>{let f=i.routes[c.route.id];if(f){let h=await gS(f,r);return h.links?h.links():[]}return[]}));return wS(u.flat(1).filter(bS).filter(c=>c.rel==="stylesheet"||c.rel==="preload").map(c=>c.rel==="stylesheet"?{...c,rel:"prefetch",as:"style"}:{...c,rel:"prefetch"}))}function qy(a,i,r,u,c,f){let h=(g,y)=>r[y]?g.route.id!==r[y].route.id:!0,m=(g,y)=>r[y].pathname!==g.pathname||r[y].route.path?.endsWith("*")&&r[y].params["*"]!==g.params["*"];return f==="assets"?i.filter((g,y)=>h(g,y)||m(g,y)):f==="data"?i.filter((g,y)=>{let E=u.routes[g.route.id];if(!E||!E.hasLoader)return!1;if(h(g,y)||m(g,y))return!0;if(g.route.shouldRevalidate){let p=g.route.shouldRevalidate({currentUrl:new URL(c.pathname+c.search+c.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(a,window.origin),nextParams:g.params,defaultShouldRevalidate:!0});if(typeof p=="boolean")return p}return!0}):[]}function ES(a,i,{includeHydrateFallback:r}={}){return _S(a.map(u=>{let c=i.routes[u.route.id];if(!c)return[];let f=[c.module];return c.clientActionModule&&(f=f.concat(c.clientActionModule)),c.clientLoaderModule&&(f=f.concat(c.clientLoaderModule)),r&&c.hydrateFallbackModule&&(f=f.concat(c.hydrateFallbackModule)),c.imports&&(f=f.concat(c.imports)),f}).flat(1))}function _S(a){return[...new Set(a)]}function TS(a){let i={},r=Object.keys(a).sort();for(let u of r)i[u]=a[u];return i}function wS(a,i){let r=new Set;return new Set(i),a.reduce((u,c)=>{let f=JSON.stringify(TS(c));return r.has(f)||(r.add(f),u.push({key:f,link:c})),u},[])}function Dp(){let a=C.useContext(wl);return Pc(a,"You must render this element inside a <DataRouterContext.Provider> element"),a}function RS(){let a=C.useContext(gr);return Pc(a,"You must render this element inside a <DataRouterStateContext.Provider> element"),a}var Ic=C.createContext(void 0);Ic.displayName="FrameworkContext";function Mp(){let a=C.useContext(Ic);return Pc(a,"You must render this element inside a <HydratedRouter> element"),a}function xS(a,i){let r=C.useContext(Ic),[u,c]=C.useState(!1),[f,h]=C.useState(!1),{onFocus:m,onBlur:g,onMouseEnter:y,onMouseLeave:E,onTouchStart:p}=i,R=C.useRef(null);C.useEffect(()=>{if(a==="render"&&h(!0),a==="viewport"){let V=G=>{G.forEach(Z=>{h(Z.isIntersecting)})},K=new IntersectionObserver(V,{threshold:.5});return R.current&&K.observe(R.current),()=>{K.disconnect()}}},[a]),C.useEffect(()=>{if(u){let V=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(V)}}},[u]);let D=()=>{c(!0)},H=()=>{c(!1),h(!1)};return r?a!=="intent"?[f,R,{}]:[f,R,{onFocus:lr(m,D),onBlur:lr(g,H),onMouseEnter:lr(y,D),onMouseLeave:lr(E,H),onTouchStart:lr(p,D)}]:[!1,R,{}]}function lr(a,i){return r=>{a&&a(r),r.defaultPrevented||i(r)}}function OS({page:a,...i}){let{router:r}=Dp(),u=C.useMemo(()=>Za(r.routes,a,r.basename),[r.routes,a,r.basename]);return u?C.createElement(CS,{page:a,matches:u,...i}):null}function AS(a){let{manifest:i,routeModules:r}=Mp(),[u,c]=C.useState([]);return C.useEffect(()=>{let f=!1;return SS(a,i,r).then(h=>{f||c(h)}),()=>{f=!0}},[a,i,r]),u}function CS({page:a,matches:i,...r}){let u=Pa(),{future:c,manifest:f,routeModules:h}=Mp(),{basename:m}=Dp(),{loaderData:g,matches:y}=RS(),E=C.useMemo(()=>qy(a,i,y,f,u,"data"),[a,i,y,f,u]),p=C.useMemo(()=>qy(a,i,y,f,u,"assets"),[a,i,y,f,u]),R=C.useMemo(()=>{if(a===u.pathname+u.search+u.hash)return[];let V=new Set,K=!1;if(i.forEach(Z=>{let P=f.routes[Z.route.id];!P||!P.hasLoader||(!E.some(ge=>ge.route.id===Z.route.id)&&Z.route.id in g&&h[Z.route.id]?.shouldRevalidate||P.hasClientLoader?K=!0:V.add(Z.route.id))}),V.size===0)return[];let G=vS(a,m,c.unstable_trailingSlashAwareDataRequests,"data");return K&&V.size>0&&G.searchParams.set("_routes",i.filter(Z=>V.has(Z.route.id)).map(Z=>Z.route.id).join(",")),[G.pathname+G.search]},[m,c.unstable_trailingSlashAwareDataRequests,g,u,f,E,i,a,h]),D=C.useMemo(()=>ES(p,f),[p,f]),H=AS(p);return C.createElement(C.Fragment,null,R.map(V=>C.createElement("link",{key:V,rel:"prefetch",as:"fetch",href:V,...r})),D.map(V=>C.createElement("link",{key:V,rel:"modulepreload",href:V,...r})),H.map(({key:V,link:K})=>C.createElement("link",{key:V,nonce:r.nonce,...K,crossOrigin:K.crossOrigin??r.crossOrigin})))}function DS(...a){return i=>{a.forEach(r=>{typeof r=="function"?r(i):r!=null&&(r.current=i)})}}var MS=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{MS&&(window.__reactRouterVersion="7.13.0")}catch{}function zS(a,i){return i1({basename:i?.basename,getContext:i?.getContext,future:i?.future,history:Eb({window:i?.window}),hydrationData:NS(),routes:a,mapRouteProperties:tS,hydrationRouteProperties:nS,dataStrategy:i?.dataStrategy,patchRoutesOnNavigation:i?.patchRoutesOnNavigation,window:i?.window,unstable_instrumentations:i?.unstable_instrumentations}).initialize()}function NS(){let a=window?.__staticRouterHydrationData;return a&&a.errors&&(a={...a,errors:US(a.errors)}),a}function US(a){if(!a)return null;let i=Object.entries(a),r={};for(let[u,c]of i)if(c&&c.__type==="RouteErrorResponse")r[u]=new pr(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 h=new f(c.message);h.stack="",r[u]=h}catch{}}if(r[u]==null){let f=new Error(c.message);f.stack="",r[u]=f}}else r[u]=c;return r}var zp=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Np=C.forwardRef(function({onClick:i,discover:r="render",prefetch:u="none",relative:c,reloadDocument:f,replace:h,state:m,target:g,to:y,preventScrollReset:E,viewTransition:p,unstable_defaultShouldRevalidate:R,...D},H){let{basename:V,unstable_useTransitions:K}=C.useContext(dn),G=typeof y=="string"&&zp.test(y),Z=cp(y,V);y=Z.to;let P=B1(y,{relative:c}),[ge,pe,ye]=xS(u,D),A=HS(y,{replace:h,state:m,target:g,preventScrollReset:E,relative:c,viewTransition:p,unstable_defaultShouldRevalidate:R,unstable_useTransitions:K});function ae(ze){i&&i(ze),ze.defaultPrevented||A(ze)}let Ee=C.createElement("a",{...D,...ye,href:Z.absoluteURL||P,onClick:Z.isExternal||f?i:ae,ref:DS(H,pe),target:g,"data-discover":!G&&r==="render"?"true":void 0});return ge&&!G?C.createElement(C.Fragment,null,Ee,C.createElement(OS,{page:P})):Ee});Np.displayName="Link";var Up=C.forwardRef(function({"aria-current":i="page",caseSensitive:r=!1,className:u="",end:c=!1,style:f,to:h,viewTransition:m,children:g,...y},E){let p=br(h,{relative:y.relative}),R=Pa(),D=C.useContext(gr),{navigator:H,basename:V}=C.useContext(dn),K=D!=null&&VS(p)&&m===!0,G=H.encodeLocation?H.encodeLocation(p).pathname:p.pathname,Z=R.pathname,P=D&&D.navigation&&D.navigation.location?D.navigation.location.pathname:null;r||(Z=Z.toLowerCase(),P=P?P.toLowerCase():null,G=G.toLowerCase()),P&&V&&(P=Cn(P,V)||P);const ge=G!=="/"&&G.endsWith("/")?G.length-1:G.length;let pe=Z===G||!c&&Z.startsWith(G)&&Z.charAt(ge)==="/",ye=P!=null&&(P===G||!c&&P.startsWith(G)&&P.charAt(G.length)==="/"),A={isActive:pe,isPending:ye,isTransitioning:K},ae=pe?i:void 0,Ee;typeof u=="function"?Ee=u(A):Ee=[u,pe?"active":null,ye?"pending":null,K?"transitioning":null].filter(Boolean).join(" ");let ze=typeof f=="function"?f(A):f;return C.createElement(Np,{...y,"aria-current":ae,className:Ee,ref:E,style:ze,to:h,viewTransition:m},typeof g=="function"?g(A):g)});Up.displayName="NavLink";var LS=C.forwardRef(({discover:a="render",fetcherKey:i,navigate:r,reloadDocument:u,replace:c,state:f,method:h=Ys,action:m,onSubmit:g,relative:y,preventScrollReset:E,viewTransition:p,unstable_defaultShouldRevalidate:R,...D},H)=>{let{unstable_useTransitions:V}=C.useContext(dn),K=YS(),G=QS(m,{relative:y}),Z=h.toLowerCase()==="get"?"get":"post",P=typeof m=="string"&&zp.test(m),ge=pe=>{if(g&&g(pe),pe.defaultPrevented)return;pe.preventDefault();let ye=pe.nativeEvent.submitter,A=ye?.getAttribute("formmethod")||h,ae=()=>K(ye||pe.currentTarget,{fetcherKey:i,method:A,navigate:r,replace:c,state:f,relative:y,preventScrollReset:E,viewTransition:p,unstable_defaultShouldRevalidate:R});V&&r!==!1?C.startTransition(()=>ae()):ae()};return C.createElement("form",{ref:H,method:Z,action:G,onSubmit:u?g:ge,...D,"data-discover":!P&&a==="render"?"true":void 0})});LS.displayName="Form";function BS(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Lp(a){let i=C.useContext(wl);return Ce(i,BS(a)),i}function HS(a,{target:i,replace:r,state:u,preventScrollReset:c,relative:f,viewTransition:h,unstable_defaultShouldRevalidate:m,unstable_useTransitions:g}={}){let y=Fc(),E=Pa(),p=br(a,{relative:f});return C.useCallback(R=>{if(hS(R,i)){R.preventDefault();let D=r!==void 0?r:Wn(E)===Wn(p),H=()=>y(a,{replace:D,state:u,preventScrollReset:c,relative:f,viewTransition:h,unstable_defaultShouldRevalidate:m});g?C.startTransition(()=>H()):H()}},[E,y,p,r,u,i,a,c,f,h,m,g])}var jS=0,qS=()=>`__${String(++jS)}__`;function YS(){let{router:a}=Lp("useSubmit"),{basename:i}=C.useContext(dn),r=F1(),u=a.fetch,c=a.navigate;return C.useCallback(async(f,h={})=>{let{action:m,method:g,encType:y,formData:E,body:p}=pS(f,i);if(h.navigate===!1){let R=h.fetcherKey||qS();await u(R,r,h.action||m,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:E,body:p,formMethod:h.method||g,formEncType:h.encType||y,flushSync:h.flushSync})}else await c(h.action||m,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:E,body:p,formMethod:h.method||g,formEncType:h.encType||y,replace:h.replace,state:h.state,fromRouteId:r,flushSync:h.flushSync,viewTransition:h.viewTransition})},[u,c,i,r])}function QS(a,{relative:i}={}){let{basename:r}=C.useContext(dn),u=C.useContext(Vn);Ce(u,"useFormAction must be used inside a RouteContext");let[c]=u.matches.slice(-1),f={...br(a||".",{relative:i})},h=Pa();if(a==null){f.search=h.search;let m=new URLSearchParams(f.search),g=m.getAll("index");if(g.some(E=>E==="")){m.delete("index"),g.filter(p=>p).forEach(p=>m.append("index",p));let E=m.toString();f.search=E?`?${E}`:""}}return(!a||a===".")&&c.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(f.pathname=f.pathname==="/"?r:$n([r,f.pathname])),Wn(f)}function VS(a,{relative:i}={}){let r=C.useContext(Zc);Ce(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:u}=Lp("useViewTransitionState"),c=br(a,{relative:i});if(!r.isTransitioning)return!1;let f=Cn(r.currentLocation.pathname,u)||r.currentLocation.pathname,h=Cn(r.nextLocation.pathname,u)||r.nextLocation.pathname;return Js(c.pathname,h)!=null||Js(c.pathname,f)!=null}function GS(a){return C.createElement(lS,{flushSync:np.flushSync,...a})}function XS(){return be.jsx("div",{className:"min-h-screen bg-background text-foreground",children:be.jsx(Cp,{})})}const Bp=(...a)=>a.filter((i,r,u)=>!!i&&i.trim()!==""&&u.indexOf(i)===r).join(" ").trim();const kS=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const KS=a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,r,u)=>u?u.toUpperCase():r.toLowerCase());const Yy=a=>{const i=KS(a);return i.charAt(0).toUpperCase()+i.slice(1)};var ZS={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 JS=a=>{for(const i in a)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1};const FS=C.forwardRef(({color:a="currentColor",size:i=24,strokeWidth:r=2,absoluteStrokeWidth:u,className:c="",children:f,iconNode:h,...m},g)=>C.createElement("svg",{ref:g,...ZS,width:i,height:i,stroke:a,strokeWidth:u?Number(r)*24/Number(i):r,className:Bp("lucide",c),...!f&&!JS(m)&&{"aria-hidden":"true"},...m},[...h.map(([y,E])=>C.createElement(y,E)),...Array.isArray(f)?f:[f]]));const ef=(a,i)=>{const r=C.forwardRef(({className:u,...c},f)=>C.createElement(FS,{ref:f,iconNode:i,className:Bp(`lucide-${kS(Yy(a))}`,`lucide-${a}`,u),...c}));return r.displayName=Yy(a),r};const $S=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],WS=ef("arrow-left",$S);const PS=[["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"}]],IS=ef("bell",PS);const eE=[["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"}]],tE=ef("cpu",eE),nE=[{to:"/settings/agents",label:"Agent 配置",icon:tE},{to:"/settings/notifications",label:"通知",icon:IS}],aE=be.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"text-neutral-900",children:[be.jsx("path",{d:"M12 2L2 7L12 12L22 7L12 2Z",fill:"currentColor"}),be.jsx("path",{d:"M2 17L12 22L22 17",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),be.jsx("path",{d:"M2 12L12 17L22 12",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]});function lE(){const a=Fc();return be.jsxs("div",{className:"h-screen flex flex-col bg-white",children:[be.jsxs("header",{className:"h-12 flex items-center justify-between px-4 border-b border-neutral-100 bg-white shrink-0 z-30",children:[be.jsxs("div",{className:"flex items-center gap-2.5",children:[aE,be.jsx("span",{className:"text-sm font-bold tracking-tight text-neutral-900",children:"Agent Tower"}),be.jsx("span",{className:"text-neutral-200 text-sm",children:"/"}),be.jsx("span",{className:"text-sm text-neutral-500",children:"设置"})]}),be.jsxs("button",{onClick:()=>a("/"),className:"flex items-center gap-1.5 text-xs text-neutral-400 hover:text-neutral-900 transition-colors",children:[be.jsx(WS,{size:14}),be.jsx("span",{children:"返回"})]})]}),be.jsxs("div",{className:"flex-1 flex overflow-hidden",children:[be.jsx("nav",{className:"w-48 border-r border-neutral-100 pt-3 px-2 shrink-0",children:nE.map(i=>be.jsxs(Up,{to:i.to,className:({isActive:r})=>`flex items-center gap-2 px-3 py-1.5 rounded-md text-[13px] transition-colors ${r?"bg-neutral-100 text-neutral-900 font-medium":"text-neutral-500 hover:text-neutral-900 hover:bg-neutral-50"}`,children:[be.jsx(i.icon,{size:14}),be.jsx("span",{children:i.label})]},i.to))}),be.jsx("div",{className:"flex-1 overflow-y-auto",children:be.jsx(Cp,{})})]})]})}const iE=C.lazy(()=>yr(()=>import("./ProjectKanbanPage-BmlRVfzo.js").then(a=>a.P),__vite__mapDeps([0,1,2,3,4,5,6,7])).then(a=>({default:a.ProjectKanbanPage}))),rE=C.lazy(()=>yr(()=>import("./DemoPage-C4Z_ftHI.js"),__vite__mapDeps([8,3])).then(a=>({default:a.DemoPage}))),sE=C.lazy(()=>yr(()=>import("./AgentDemoPage-WdWEQtyU.js"),__vite__mapDeps([9,3,2,4,10,1])).then(a=>({default:a.AgentDemoPage}))),uE=C.lazy(()=>yr(()=>import("./ProfileSettingsPage-Cs93rTRr.js"),__vite__mapDeps([11,10,1,3,5])).then(a=>({default:a.ProfileSettingsPage}))),oE=C.lazy(()=>yr(()=>import("./NotificationSettingsPage-FrLfgt9y.js"),__vite__mapDeps([12,1,3,6,13])).then(a=>({default:a.NotificationSettingsPage}))),cE=zS([{path:"/",element:be.jsx(XS,{}),children:[{index:!0,element:be.jsx(C.Suspense,{fallback:be.jsx("div",{className:"p-8",children:"Loading..."}),children:be.jsx(iE,{})})},{path:"demo",element:be.jsx(C.Suspense,{fallback:be.jsx("div",{className:"p-8",children:"Loading..."}),children:be.jsx(rE,{})})},{path:"agent-demo",element:be.jsx(C.Suspense,{fallback:be.jsx("div",{className:"p-8",children:"Loading..."}),children:be.jsx(sE,{})})},{path:"settings",element:be.jsx(lE,{}),children:[{index:!0,element:be.jsx(sS,{to:"agents",replace:!0})},{path:"agents",element:be.jsx(C.Suspense,{fallback:be.jsx("div",{className:"p-8",children:"Loading..."}),children:be.jsx(uE,{})})},{path:"notifications",element:be.jsx(C.Suspense,{fallback:be.jsx("div",{className:"p-8",children:"Loading..."}),children:be.jsx(oE,{})})}]}]}]);function fE(){return be.jsx(GS,{router:cE})}const Pn=Object.create(null);Pn.open="0";Pn.close="1";Pn.ping="2";Pn.pong="3";Pn.message="4";Pn.upgrade="5";Pn.noop="6";const Vs=Object.create(null);Object.keys(Pn).forEach(a=>{Vs[Pn[a]]=a});const Uc={type:"error",data:"parser error"},Hp=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",jp=typeof ArrayBuffer=="function",qp=a=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(a):a&&a.buffer instanceof ArrayBuffer,tf=({type:a,data:i},r,u)=>Hp&&i instanceof Blob?r?u(i):Qy(i,u):jp&&(i instanceof ArrayBuffer||qp(i))?r?u(i):Qy(new Blob([i]),u):u(Pn[a]+(i||"")),Qy=(a,i)=>{const r=new FileReader;return r.onload=function(){const u=r.result.split(",")[1];i("b"+(u||""))},r.readAsDataURL(a)};function Vy(a){return a instanceof Uint8Array?a:a instanceof ArrayBuffer?new Uint8Array(a):new Uint8Array(a.buffer,a.byteOffset,a.byteLength)}let _c;function dE(a,i){if(Hp&&a.data instanceof Blob)return a.data.arrayBuffer().then(Vy).then(i);if(jp&&(a.data instanceof ArrayBuffer||qp(a.data)))return i(Vy(a.data));tf(a,!1,r=>{_c||(_c=new TextEncoder),i(_c.encode(r))})}const Gy="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ur=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let a=0;a<Gy.length;a++)ur[Gy.charCodeAt(a)]=a;const hE=a=>{let i=a.length*.75,r=a.length,u,c=0,f,h,m,g;a[a.length-1]==="="&&(i--,a[a.length-2]==="="&&i--);const y=new ArrayBuffer(i),E=new Uint8Array(y);for(u=0;u<r;u+=4)f=ur[a.charCodeAt(u)],h=ur[a.charCodeAt(u+1)],m=ur[a.charCodeAt(u+2)],g=ur[a.charCodeAt(u+3)],E[c++]=f<<2|h>>4,E[c++]=(h&15)<<4|m>>2,E[c++]=(m&3)<<6|g&63;return y},mE=typeof ArrayBuffer=="function",nf=(a,i)=>{if(typeof a!="string")return{type:"message",data:Yp(a,i)};const r=a.charAt(0);return r==="b"?{type:"message",data:yE(a.substring(1),i)}:Vs[r]?a.length>1?{type:Vs[r],data:a.substring(1)}:{type:Vs[r]}:Uc},yE=(a,i)=>{if(mE){const r=hE(a);return Yp(r,i)}else return{base64:!0,data:a}},Yp=(a,i)=>i==="blob"?a instanceof Blob?a:new Blob([a]):a instanceof ArrayBuffer?a:a.buffer,Qp="",pE=(a,i)=>{const r=a.length,u=new Array(r);let c=0;a.forEach((f,h)=>{tf(f,!1,m=>{u[h]=m,++c===r&&i(u.join(Qp))})})},vE=(a,i)=>{const r=a.split(Qp),u=[];for(let c=0;c<r.length;c++){const f=nf(r[c],i);if(u.push(f),f.type==="error")break}return u};function gE(){return new TransformStream({transform(a,i){dE(a,r=>{const u=r.length;let c;if(u<126)c=new Uint8Array(1),new DataView(c.buffer).setUint8(0,u);else if(u<65536){c=new Uint8Array(3);const f=new DataView(c.buffer);f.setUint8(0,126),f.setUint16(1,u)}else{c=new Uint8Array(9);const f=new DataView(c.buffer);f.setUint8(0,127),f.setBigUint64(1,BigInt(u))}a.data&&typeof a.data!="string"&&(c[0]|=128),i.enqueue(c),i.enqueue(r)})}})}let Tc;function Bs(a){return a.reduce((i,r)=>i+r.length,0)}function Hs(a,i){if(a[0].length===i)return a.shift();const r=new Uint8Array(i);let u=0;for(let c=0;c<i;c++)r[c]=a[0][u++],u===a[0].length&&(a.shift(),u=0);return a.length&&u<a[0].length&&(a[0]=a[0].slice(u)),r}function bE(a,i){Tc||(Tc=new TextDecoder);const r=[];let u=0,c=-1,f=!1;return new TransformStream({transform(h,m){for(r.push(h);;){if(u===0){if(Bs(r)<1)break;const g=Hs(r,1);f=(g[0]&128)===128,c=g[0]&127,c<126?u=3:c===126?u=1:u=2}else if(u===1){if(Bs(r)<2)break;const g=Hs(r,2);c=new DataView(g.buffer,g.byteOffset,g.length).getUint16(0),u=3}else if(u===2){if(Bs(r)<8)break;const g=Hs(r,8),y=new DataView(g.buffer,g.byteOffset,g.length),E=y.getUint32(0);if(E>Math.pow(2,21)-1){m.enqueue(Uc);break}c=E*Math.pow(2,32)+y.getUint32(4),u=3}else{if(Bs(r)<c)break;const g=Hs(r,c);m.enqueue(nf(f?g:Tc.decode(g),i)),u=0}if(c===0||c>a){m.enqueue(Uc);break}}}})}const Vp=4;function wt(a){if(a)return SE(a)}function SE(a){for(var i in wt.prototype)a[i]=wt.prototype[i];return a}wt.prototype.on=wt.prototype.addEventListener=function(a,i){return this._callbacks=this._callbacks||{},(this._callbacks["$"+a]=this._callbacks["$"+a]||[]).push(i),this};wt.prototype.once=function(a,i){function r(){this.off(a,r),i.apply(this,arguments)}return r.fn=i,this.on(a,r),this};wt.prototype.off=wt.prototype.removeListener=wt.prototype.removeAllListeners=wt.prototype.removeEventListener=function(a,i){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+a];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+a],this;for(var u,c=0;c<r.length;c++)if(u=r[c],u===i||u.fn===i){r.splice(c,1);break}return r.length===0&&delete this._callbacks["$"+a],this};wt.prototype.emit=function(a){this._callbacks=this._callbacks||{};for(var i=new Array(arguments.length-1),r=this._callbacks["$"+a],u=1;u<arguments.length;u++)i[u-1]=arguments[u];if(r){r=r.slice(0);for(var u=0,c=r.length;u<c;++u)r[u].apply(this,i)}return this};wt.prototype.emitReserved=wt.prototype.emit;wt.prototype.listeners=function(a){return this._callbacks=this._callbacks||{},this._callbacks["$"+a]||[]};wt.prototype.hasListeners=function(a){return!!this.listeners(a).length};const tu=typeof Promise=="function"&&typeof Promise.resolve=="function"?i=>Promise.resolve().then(i):(i,r)=>r(i,0),An=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),EE="arraybuffer";function Gp(a,...i){return i.reduce((r,u)=>(a.hasOwnProperty(u)&&(r[u]=a[u]),r),{})}const _E=An.setTimeout,TE=An.clearTimeout;function nu(a,i){i.useNativeTimers?(a.setTimeoutFn=_E.bind(An),a.clearTimeoutFn=TE.bind(An)):(a.setTimeoutFn=An.setTimeout.bind(An),a.clearTimeoutFn=An.clearTimeout.bind(An))}const wE=1.33;function RE(a){return typeof a=="string"?xE(a):Math.ceil((a.byteLength||a.size)*wE)}function xE(a){let i=0,r=0;for(let u=0,c=a.length;u<c;u++)i=a.charCodeAt(u),i<128?r+=1:i<2048?r+=2:i<55296||i>=57344?r+=3:(u++,r+=4);return r}function Xp(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function OE(a){let i="";for(let r in a)a.hasOwnProperty(r)&&(i.length&&(i+="&"),i+=encodeURIComponent(r)+"="+encodeURIComponent(a[r]));return i}function AE(a){let i={},r=a.split("&");for(let u=0,c=r.length;u<c;u++){let f=r[u].split("=");i[decodeURIComponent(f[0])]=decodeURIComponent(f[1])}return i}class CE extends Error{constructor(i,r,u){super(i),this.description=r,this.context=u,this.type="TransportError"}}class af extends wt{constructor(i){super(),this.writable=!1,nu(this,i),this.opts=i,this.query=i.query,this.socket=i.socket,this.supportsBinary=!i.forceBase64}onError(i,r,u){return super.emitReserved("error",new CE(i,r,u)),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 r=nf(i,this.socket.binaryType);this.onPacket(r)}onPacket(i){super.emitReserved("packet",i)}onClose(i){this.readyState="closed",super.emitReserved("close",i)}pause(i){}createUri(i,r={}){return i+"://"+this._hostname()+this._port()+this.opts.path+this._query(r)}_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 r=OE(i);return r.length?"?"+r:""}}class DE extends af{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(i){this.readyState="pausing";const r=()=>{this.readyState="paused",i()};if(this._polling||!this.writable){let u=0;this._polling&&(u++,this.once("pollComplete",function(){--u||r()})),this.writable||(u++,this.once("drain",function(){--u||r()}))}else r()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(i){const r=u=>{if(this.readyState==="opening"&&u.type==="open"&&this.onOpen(),u.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(u)};vE(i,this.socket.binaryType).forEach(r),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,pE(i,r=>{this.doWrite(r,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const i=this.opts.secure?"https":"http",r=this.query||{};return this.opts.timestampRequests!==!1&&(r[this.opts.timestampParam]=Xp()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(i,r)}}let kp=!1;try{kp=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const ME=kp;function zE(){}class NE extends DE{constructor(i){if(super(i),typeof location<"u"){const r=location.protocol==="https:";let u=location.port;u||(u=r?"443":"80"),this.xd=typeof location<"u"&&i.hostname!==location.hostname||u!==i.port}}doWrite(i,r){const u=this.request({method:"POST",data:i});u.on("success",r),u.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",(r,u)=>{this.onError("xhr poll error",r,u)}),this.pollXhr=i}}let oi=class Gs extends wt{constructor(i,r,u){super(),this.createRequest=i,nu(this,u),this._opts=u,this._method=u.method||"GET",this._uri=r,this._data=u.data!==void 0?u.data:null,this._create()}_create(){var i;const r=Gp(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this._opts.xd;const u=this._xhr=this.createRequest(r);try{u.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){u.setDisableHeaderCheck&&u.setDisableHeaderCheck(!0);for(let c in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(c)&&u.setRequestHeader(c,this._opts.extraHeaders[c])}}catch{}if(this._method==="POST")try{u.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{u.setRequestHeader("Accept","*/*")}catch{}(i=this._opts.cookieJar)===null||i===void 0||i.addCookies(u),"withCredentials"in u&&(u.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(u.timeout=this._opts.requestTimeout),u.onreadystatechange=()=>{var c;u.readyState===3&&((c=this._opts.cookieJar)===null||c===void 0||c.parseCookies(u.getResponseHeader("set-cookie"))),u.readyState===4&&(u.status===200||u.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof u.status=="number"?u.status:0)},0))},u.send(this._data)}catch(c){this.setTimeoutFn(()=>{this._onError(c)},0);return}typeof document<"u"&&(this._index=Gs.requestsCount++,Gs.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=zE,i)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Gs.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()}};oi.requestsCount=0;oi.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Xy);else if(typeof addEventListener=="function"){const a="onpagehide"in An?"pagehide":"unload";addEventListener(a,Xy,!1)}}function Xy(){for(let a in oi.requests)oi.requests.hasOwnProperty(a)&&oi.requests[a].abort()}const UE=(function(){const a=Kp({xdomain:!1});return a&&a.responseType!==null})();class LE extends NE{constructor(i){super(i);const r=i&&i.forceBase64;this.supportsBinary=UE&&!r}request(i={}){return Object.assign(i,{xd:this.xd},this.opts),new oi(Kp,this.uri(),i)}}function Kp(a){const i=a.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!i||ME))return new XMLHttpRequest}catch{}if(!i)try{return new An[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const Zp=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class BE extends af{get name(){return"websocket"}doOpen(){const i=this.uri(),r=this.opts.protocols,u=Zp?{}:Gp(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(u.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(i,r,u)}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 r=0;r<i.length;r++){const u=i[r],c=r===i.length-1;tf(u,this.supportsBinary,f=>{try{this.doWrite(u,f)}catch{}c&&tu(()=>{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",r=this.query||{};return this.opts.timestampRequests&&(r[this.opts.timestampParam]=Xp()),this.supportsBinary||(r.b64=1),this.createUri(i,r)}}const wc=An.WebSocket||An.MozWebSocket;class HE extends BE{createSocket(i,r,u){return Zp?new wc(i,r,u):r?new wc(i,r):new wc(i)}doWrite(i,r){this.ws.send(r)}}class jE extends af{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 r=bE(Number.MAX_SAFE_INTEGER,this.socket.binaryType),u=i.readable.pipeThrough(r).getReader(),c=gE();c.readable.pipeTo(i.writable),this._writer=c.writable.getWriter();const f=()=>{u.read().then(({done:m,value:g})=>{m||(this.onPacket(g),f())}).catch(m=>{})};f();const h={type:"open"};this.query.sid&&(h.data=`{"sid":"${this.query.sid}"}`),this._writer.write(h).then(()=>this.onOpen())})})}write(i){this.writable=!1;for(let r=0;r<i.length;r++){const u=i[r],c=r===i.length-1;this._writer.write(u).then(()=>{c&&tu(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var i;(i=this._transport)===null||i===void 0||i.close()}}const qE={websocket:HE,webtransport:jE,polling:LE},YE=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,QE=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Lc(a){if(a.length>8e3)throw"URI too long";const i=a,r=a.indexOf("["),u=a.indexOf("]");r!=-1&&u!=-1&&(a=a.substring(0,r)+a.substring(r,u).replace(/:/g,";")+a.substring(u,a.length));let c=YE.exec(a||""),f={},h=14;for(;h--;)f[QE[h]]=c[h]||"";return r!=-1&&u!=-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=VE(f,f.path),f.queryKey=GE(f,f.query),f}function VE(a,i){const r=/\/{2,9}/g,u=i.replace(r,"/").split("/");return(i.slice(0,1)=="/"||i.length===0)&&u.splice(0,1),i.slice(-1)=="/"&&u.splice(u.length-1,1),u}function GE(a,i){const r={};return i.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(u,c,f){c&&(r[c]=f)}),r}const Bc=typeof addEventListener=="function"&&typeof removeEventListener=="function",Xs=[];Bc&&addEventListener("offline",()=>{Xs.forEach(a=>a())},!1);class $a extends wt{constructor(i,r){if(super(),this.binaryType=EE,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,i&&typeof i=="object"&&(r=i,i=null),i){const u=Lc(i);r.hostname=u.host,r.secure=u.protocol==="https"||u.protocol==="wss",r.port=u.port,u.query&&(r.query=u.query)}else r.host&&(r.hostname=Lc(r.host).host);nu(this,r),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},r.transports.forEach(u=>{const c=u.prototype.name;this.transports.push(c),this._transportsByName[c]=u}),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},r),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=AE(this.opts.query)),Bc&&(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"})},Xs.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(i){const r=Object.assign({},this.opts.query);r.EIO=Vp,r.transport=i,this.id&&(r.sid=this.id);const u=Object.assign({},this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[i]);return new this._transportsByName[i](u)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const i=this.opts.rememberUpgrade&&$a.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const r=this.createTransport(i);r.open(),this.setTransport(r)}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",r=>this._onClose("transport close",r))}onOpen(){this.readyState="open",$a.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 r=new Error("server error");r.code=i.data,this._onError(r);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 r=1;for(let u=0;u<this.writeBuffer.length;u++){const c=this.writeBuffer[u].data;if(c&&(r+=RE(c)),u>0&&r>this._maxPayload)return this.writeBuffer.slice(0,u);r+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const i=Date.now()>this._pingTimeoutTime;return i&&(this._pingTimeoutTime=0,tu(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),i}write(i,r,u){return this._sendPacket("message",i,r,u),this}send(i,r,u){return this._sendPacket("message",i,r,u),this}_sendPacket(i,r,u,c){if(typeof r=="function"&&(c=r,r=void 0),typeof u=="function"&&(c=u,u=null),this.readyState==="closing"||this.readyState==="closed")return;u=u||{},u.compress=u.compress!==!1;const f={type:i,data:r,options:u};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()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),i()},u=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?u():i()}):this.upgrading?u():i()),this}_onError(i){if($a.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,r){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(),Bc&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const u=Xs.indexOf(this._offlineEventListener);u!==-1&&Xs.splice(u,1)}this.readyState="closed",this.id=null,this.emitReserved("close",i,r),this.writeBuffer=[],this._prevBufferLen=0}}}$a.protocol=Vp;class XE extends $a{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 r=this.createTransport(i),u=!1;$a.priorWebsocketSuccess=!1;const c=()=>{u||(r.send([{type:"ping",data:"probe"}]),r.once("packet",p=>{if(!u)if(p.type==="pong"&&p.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;$a.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{u||this.readyState!=="closed"&&(E(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{const R=new Error("probe error");R.transport=r.name,this.emitReserved("upgradeError",R)}}))};function f(){u||(u=!0,E(),r.close(),r=null)}const h=p=>{const R=new Error("probe error: "+p);R.transport=r.name,f(),this.emitReserved("upgradeError",R)};function m(){h("transport closed")}function g(){h("socket closed")}function y(p){r&&p.name!==r.name&&f()}const E=()=>{r.removeListener("open",c),r.removeListener("error",h),r.removeListener("close",m),this.off("close",g),this.off("upgrading",y)};r.once("open",c),r.once("error",h),r.once("close",m),this.once("close",g),this.once("upgrading",y),this._upgrades.indexOf("webtransport")!==-1&&i!=="webtransport"?this.setTimeoutFn(()=>{u||r.open()},200):r.open()}onHandshake(i){this._upgrades=this._filterUpgrades(i.upgrades),super.onHandshake(i)}_filterUpgrades(i){const r=[];for(let u=0;u<i.length;u++)~this.transports.indexOf(i[u])&&r.push(i[u]);return r}}let kE=class extends XE{constructor(i,r={}){const u=typeof i=="object"?i:r;(!u.transports||u.transports&&typeof u.transports[0]=="string")&&(u.transports=(u.transports||["polling","websocket","webtransport"]).map(c=>qE[c]).filter(c=>!!c)),super(i,u)}};function KE(a,i="",r){let u=a;r=r||typeof location<"u"&&location,a==null&&(a=r.protocol+"//"+r.host),typeof a=="string"&&(a.charAt(0)==="/"&&(a.charAt(1)==="/"?a=r.protocol+a:a=r.host+a),/^(https?|wss?):\/\//.test(a)||(typeof r<"u"?a=r.protocol+"//"+a:a="https://"+a),u=Lc(a)),u.port||(/^(http|ws)$/.test(u.protocol)?u.port="80":/^(http|ws)s$/.test(u.protocol)&&(u.port="443")),u.path=u.path||"/";const f=u.host.indexOf(":")!==-1?"["+u.host+"]":u.host;return u.id=u.protocol+"://"+f+":"+u.port+i,u.href=u.protocol+"://"+f+(r&&r.port===u.port?"":":"+u.port),u}const ZE=typeof ArrayBuffer=="function",JE=a=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(a):a.buffer instanceof ArrayBuffer,Jp=Object.prototype.toString,FE=typeof Blob=="function"||typeof Blob<"u"&&Jp.call(Blob)==="[object BlobConstructor]",$E=typeof File=="function"||typeof File<"u"&&Jp.call(File)==="[object FileConstructor]";function lf(a){return ZE&&(a instanceof ArrayBuffer||JE(a))||FE&&a instanceof Blob||$E&&a instanceof File}function ks(a,i){if(!a||typeof a!="object")return!1;if(Array.isArray(a)){for(let r=0,u=a.length;r<u;r++)if(ks(a[r]))return!0;return!1}if(lf(a))return!0;if(a.toJSON&&typeof a.toJSON=="function"&&arguments.length===1)return ks(a.toJSON(),!0);for(const r in a)if(Object.prototype.hasOwnProperty.call(a,r)&&ks(a[r]))return!0;return!1}function WE(a){const i=[],r=a.data,u=a;return u.data=Hc(r,i),u.attachments=i.length,{packet:u,buffers:i}}function Hc(a,i){if(!a)return a;if(lf(a)){const r={_placeholder:!0,num:i.length};return i.push(a),r}else if(Array.isArray(a)){const r=new Array(a.length);for(let u=0;u<a.length;u++)r[u]=Hc(a[u],i);return r}else if(typeof a=="object"&&!(a instanceof Date)){const r={};for(const u in a)Object.prototype.hasOwnProperty.call(a,u)&&(r[u]=Hc(a[u],i));return r}return a}function PE(a,i){return a.data=jc(a.data,i),delete a.attachments,a}function jc(a,i){if(!a)return a;if(a&&a._placeholder===!0){if(typeof a.num=="number"&&a.num>=0&&a.num<i.length)return i[a.num];throw new Error("illegal attachments")}else if(Array.isArray(a))for(let r=0;r<a.length;r++)a[r]=jc(a[r],i);else if(typeof a=="object")for(const r in a)Object.prototype.hasOwnProperty.call(a,r)&&(a[r]=jc(a[r],i));return a}const IE=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var Ye;(function(a){a[a.CONNECT=0]="CONNECT",a[a.DISCONNECT=1]="DISCONNECT",a[a.EVENT=2]="EVENT",a[a.ACK=3]="ACK",a[a.CONNECT_ERROR=4]="CONNECT_ERROR",a[a.BINARY_EVENT=5]="BINARY_EVENT",a[a.BINARY_ACK=6]="BINARY_ACK"})(Ye||(Ye={}));class e2{constructor(i){this.replacer=i}encode(i){return(i.type===Ye.EVENT||i.type===Ye.ACK)&&ks(i)?this.encodeAsBinary({type:i.type===Ye.EVENT?Ye.BINARY_EVENT:Ye.BINARY_ACK,nsp:i.nsp,data:i.data,id:i.id}):[this.encodeAsString(i)]}encodeAsString(i){let r=""+i.type;return(i.type===Ye.BINARY_EVENT||i.type===Ye.BINARY_ACK)&&(r+=i.attachments+"-"),i.nsp&&i.nsp!=="/"&&(r+=i.nsp+","),i.id!=null&&(r+=i.id),i.data!=null&&(r+=JSON.stringify(i.data,this.replacer)),r}encodeAsBinary(i){const r=WE(i),u=this.encodeAsString(r.packet),c=r.buffers;return c.unshift(u),c}}class rf extends wt{constructor(i){super(),this.reviver=i}add(i){let r;if(typeof i=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");r=this.decodeString(i);const u=r.type===Ye.BINARY_EVENT;u||r.type===Ye.BINARY_ACK?(r.type=u?Ye.EVENT:Ye.ACK,this.reconstructor=new t2(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(lf(i)||i.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(i),r&&(this.reconstructor=null,super.emitReserved("decoded",r));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+i)}decodeString(i){let r=0;const u={type:Number(i.charAt(0))};if(Ye[u.type]===void 0)throw new Error("unknown packet type "+u.type);if(u.type===Ye.BINARY_EVENT||u.type===Ye.BINARY_ACK){const f=r+1;for(;i.charAt(++r)!=="-"&&r!=i.length;);const h=i.substring(f,r);if(h!=Number(h)||i.charAt(r)!=="-")throw new Error("Illegal attachments");u.attachments=Number(h)}if(i.charAt(r+1)==="/"){const f=r+1;for(;++r&&!(i.charAt(r)===","||r===i.length););u.nsp=i.substring(f,r)}else u.nsp="/";const c=i.charAt(r+1);if(c!==""&&Number(c)==c){const f=r+1;for(;++r;){const h=i.charAt(r);if(h==null||Number(h)!=h){--r;break}if(r===i.length)break}u.id=Number(i.substring(f,r+1))}if(i.charAt(++r)){const f=this.tryParse(i.substr(r));if(rf.isPayloadValid(u.type,f))u.data=f;else throw new Error("invalid payload")}return u}tryParse(i){try{return JSON.parse(i,this.reviver)}catch{return!1}}static isPayloadValid(i,r){switch(i){case Ye.CONNECT:return ky(r);case Ye.DISCONNECT:return r===void 0;case Ye.CONNECT_ERROR:return typeof r=="string"||ky(r);case Ye.EVENT:case Ye.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&IE.indexOf(r[0])===-1);case Ye.ACK:case Ye.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class t2{constructor(i){this.packet=i,this.buffers=[],this.reconPack=i}takeBinaryData(i){if(this.buffers.push(i),this.buffers.length===this.reconPack.attachments){const r=PE(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function ky(a){return Object.prototype.toString.call(a)==="[object Object]"}const n2=Object.freeze(Object.defineProperty({__proto__:null,Decoder:rf,Encoder:e2,get PacketType(){return Ye}},Symbol.toStringTag,{value:"Module"}));function Qn(a,i,r){return a.on(i,r),function(){a.off(i,r)}}const a2=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Fp extends wt{constructor(i,r,u){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=r,u&&u.auth&&(this.auth=u.auth),this._opts=Object.assign({},u),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const i=this.io;this.subs=[Qn(i,"open",this.onopen.bind(this)),Qn(i,"packet",this.onpacket.bind(this)),Qn(i,"error",this.onerror.bind(this)),Qn(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,...r){var u,c,f;if(a2.hasOwnProperty(i))throw new Error('"'+i.toString()+'" is a reserved event name');if(r.unshift(i),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(r),this;const h={type:Ye.EVENT,data:r};if(h.options={},h.options.compress=this.flags.compress!==!1,typeof r[r.length-1]=="function"){const E=this.ids++,p=r.pop();this._registerAckCallback(E,p),h.id=E}const m=(c=(u=this.io.engine)===null||u===void 0?void 0:u.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&&!m||(g?(this.notifyOutgoingListeners(h),this.packet(h)):this.sendBuffer.push(h)),this.flags={},this}_registerAckCallback(i,r){var u;const c=(u=this.flags.timeout)!==null&&u!==void 0?u:this._opts.ackTimeout;if(c===void 0){this.acks[i]=r;return}const f=this.io.setTimeoutFn(()=>{delete this.acks[i];for(let m=0;m<this.sendBuffer.length;m++)this.sendBuffer[m].id===i&&this.sendBuffer.splice(m,1);r.call(this,new Error("operation has timed out"))},c),h=(...m)=>{this.io.clearTimeoutFn(f),r.apply(this,m)};h.withError=!0,this.acks[i]=h}emitWithAck(i,...r){return new Promise((u,c)=>{const f=(h,m)=>h?c(h):u(m);f.withError=!0,r.push(f),this.emit(i,...r)})}_addToQueue(i){let r;typeof i[i.length-1]=="function"&&(r=i.pop());const u={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?u.tryCount>this._opts.retries&&(this._queue.shift(),r&&r(c)):(this._queue.shift(),r&&r(null,...f)),u.pending=!1,this._drainQueue())),this._queue.push(u),this._drainQueue()}_drainQueue(i=!1){if(!this.connected||this._queue.length===0)return;const r=this._queue[0];r.pending&&!i||(r.pending=!0,r.tryCount++,this.flags=r.flags,this.emit.apply(this,r.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:Ye.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,r){this.connected=!1,delete this.id,this.emitReserved("disconnect",i,r),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(i=>{if(!this.sendBuffer.some(u=>String(u.id)===i)){const u=this.acks[i];delete this.acks[i],u.withError&&u.call(this,new Error("socket has been disconnected"))}})}onpacket(i){if(i.nsp===this.nsp)switch(i.type){case Ye.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 Ye.EVENT:case Ye.BINARY_EVENT:this.onevent(i);break;case Ye.ACK:case Ye.BINARY_ACK:this.onack(i);break;case Ye.DISCONNECT:this.ondisconnect();break;case Ye.CONNECT_ERROR:this.destroy();const u=new Error(i.data.message);u.data=i.data.data,this.emitReserved("connect_error",u);break}}onevent(i){const r=i.data||[];i.id!=null&&r.push(this.ack(i.id)),this.connected?this.emitEvent(r):this.receiveBuffer.push(Object.freeze(r))}emitEvent(i){if(this._anyListeners&&this._anyListeners.length){const r=this._anyListeners.slice();for(const u of r)u.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 r=this;let u=!1;return function(...c){u||(u=!0,r.packet({type:Ye.ACK,id:i,data:c}))}}onack(i){const r=this.acks[i.id];typeof r=="function"&&(delete this.acks[i.id],r.withError&&i.data.unshift(null),r.apply(this,i.data))}onconnect(i,r){this.id=i,this.recovered=r&&this._pid===r,this._pid=r,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:Ye.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 r=this._anyListeners;for(let u=0;u<r.length;u++)if(i===r[u])return r.splice(u,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 r=this._anyOutgoingListeners;for(let u=0;u<r.length;u++)if(i===r[u])return r.splice(u,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(i){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const r=this._anyOutgoingListeners.slice();for(const u of r)u.apply(this,i.data)}}}function fi(a){a=a||{},this.ms=a.min||100,this.max=a.max||1e4,this.factor=a.factor||2,this.jitter=a.jitter>0&&a.jitter<=1?a.jitter:0,this.attempts=0}fi.prototype.duration=function(){var a=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var i=Math.random(),r=Math.floor(i*this.jitter*a);a=(Math.floor(i*10)&1)==0?a-r:a+r}return Math.min(a,this.max)|0};fi.prototype.reset=function(){this.attempts=0};fi.prototype.setMin=function(a){this.ms=a};fi.prototype.setMax=function(a){this.max=a};fi.prototype.setJitter=function(a){this.jitter=a};class qc extends wt{constructor(i,r){var u;super(),this.nsps={},this.subs=[],i&&typeof i=="object"&&(r=i,i=void 0),r=r||{},r.path=r.path||"/socket.io",this.opts=r,nu(this,r),this.reconnection(r.reconnection!==!1),this.reconnectionAttempts(r.reconnectionAttempts||1/0),this.reconnectionDelay(r.reconnectionDelay||1e3),this.reconnectionDelayMax(r.reconnectionDelayMax||5e3),this.randomizationFactor((u=r.randomizationFactor)!==null&&u!==void 0?u:.5),this.backoff=new fi({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState="closed",this.uri=i;const c=r.parser||n2;this.encoder=new c.Encoder,this.decoder=new c.Decoder,this._autoConnect=r.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 r;return i===void 0?this._reconnectionDelay:(this._reconnectionDelay=i,(r=this.backoff)===null||r===void 0||r.setMin(i),this)}randomizationFactor(i){var r;return i===void 0?this._randomizationFactor:(this._randomizationFactor=i,(r=this.backoff)===null||r===void 0||r.setJitter(i),this)}reconnectionDelayMax(i){var r;return i===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=i,(r=this.backoff)===null||r===void 0||r.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 kE(this.uri,this.opts);const r=this.engine,u=this;this._readyState="opening",this.skipReconnect=!1;const c=Qn(r,"open",function(){u.onopen(),i&&i()}),f=m=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",m),i?i(m):this.maybeReconnectOnOpen()},h=Qn(r,"error",f);if(this._timeout!==!1){const m=this._timeout,g=this.setTimeoutFn(()=>{c(),f(new Error("timeout")),r.close()},m);this.opts.autoUnref&&g.unref(),this.subs.push(()=>{this.clearTimeoutFn(g)})}return this.subs.push(c),this.subs.push(h),this}connect(i){return this.open(i)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const i=this.engine;this.subs.push(Qn(i,"ping",this.onping.bind(this)),Qn(i,"data",this.ondata.bind(this)),Qn(i,"error",this.onerror.bind(this)),Qn(i,"close",this.onclose.bind(this)),Qn(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(i){try{this.decoder.add(i)}catch(r){this.onclose("parse error",r)}}ondecoded(i){tu(()=>{this.emitReserved("packet",i)},this.setTimeoutFn)}onerror(i){this.emitReserved("error",i)}socket(i,r){let u=this.nsps[i];return u?this._autoConnect&&!u.active&&u.connect():(u=new Fp(this,i,r),this.nsps[i]=u),u}_destroy(i){const r=Object.keys(this.nsps);for(const u of r)if(this.nsps[u].active)return;this._close()}_packet(i){const r=this.encoder.encode(i);for(let u=0;u<r.length;u++)this.engine.write(r[u],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,r){var u;this.cleanup(),(u=this.engine)===null||u===void 0||u.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",i,r),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 r=this.backoff.duration();this._reconnecting=!0;const u=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()}))},r);this.opts.autoUnref&&u.unref(),this.subs.push(()=>{this.clearTimeoutFn(u)})}}onreconnect(){const i=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",i)}}const ir={};function Ks(a,i){typeof a=="object"&&(i=a,a=void 0),i=i||{};const r=KE(a,i.path||"/socket.io"),u=r.source,c=r.id,f=r.path,h=ir[c]&&f in ir[c].nsps,m=i.forceNew||i["force new connection"]||i.multiplex===!1||h;let g;return m?g=new qc(u,i):(ir[c]||(ir[c]=new qc(u,i)),g=ir[c]),r.query&&!i.query&&(i.query=r.queryKey),g.socket(r.path,i)}Object.assign(Ks,{Manager:qc,Socket:Fp,io:Ks,connect:Ks});const js="/events",m2={SUBSCRIBE:"subscribe",UNSUBSCRIBE:"unsubscribe",INPUT:"input",RESIZE:"resize",TERMINAL_INPUT:"terminal:input",TERMINAL_RESIZE:"terminal:resize"},y2={SESSION_SUBSCRIBED:"session:subscribed",SESSION_UNSUBSCRIBED:"session:unsubscribed",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"},$p="agent-tower-tunnel-token";function l2(){const i=new URLSearchParams(window.location.search).get("token");if(i){sessionStorage.setItem($p,i);const r=new URL(window.location.href);r.searchParams.delete("token"),window.history.replaceState({},"",r.toString())}}function i2(){return sessionStorage.getItem($p)}function r2(){const a=window.location.hostname;return a!=="localhost"&&a!=="127.0.0.1"}class s2{socket=null;baseUrl;constructor(){this.baseUrl=""}getSocket(){if(!this.socket){const i={};if(r2()){const r=i2();r&&(i.token=r)}this.socket=Ks(`${this.baseUrl}${js}`,{auth:i,autoConnect:!1,transports:["websocket"],reconnection:!0,reconnectionAttempts:1/0,reconnectionDelay:1e3,reconnectionDelayMax:1e4}),this.socket.on("connect",()=>{console.log(`[Socket] Connected to ${js} t=${Date.now()}`)}),this.socket.on("disconnect",r=>{console.log(`[Socket] Disconnected from ${js}: t=${Date.now()}`,r)}),this.socket.on("connect_error",r=>{console.error(`[Socket] Connection error on ${js}: t=${Date.now()}`,r.message)})}return this.socket}connect(){const i=this.getSocket();return i.connected||i.connect(),i}disconnect(){this.socket&&(this.socket.disconnect(),this.socket=null)}isConnected(){return this.socket?.connected??!1}}const Ky=new s2;function u2(){return C.useEffect(()=>(Ky.connect(),()=>Ky.disconnect()),[]),be.jsxs(Q0,{client:pb,children:[be.jsx(fE,{}),be.jsx(yb,{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"}}})]})}l2();h0.createRoot(document.getElementById("root")).render(be.jsx(C.StrictMode,{children:be.jsx(u2,{})}));export{WS as A,d2 as B,m2 as C,Zy as D,Np as L,W as R,y2 as S,yr as _,Fs as a,S0 as b,ef as c,o2 as d,xc as e,$s as f,i2 as g,g0 as h,r2 as i,be as j,Rc as k,Wy as l,U0 as m,Yn as n,T0 as o,A0 as p,Vt as q,C as r,Ky as s,b0 as t,f2 as u,cr as v,H0 as w,c2 as x,Fy as y,np as z};
13
+ Please change the parent <Route path="${Z}"> to <Route path="${Z==="/"?"*":`${Z}/*`}">.`)}let R=Wa(),D;D=R;let H=D.pathname||"/",V=H;if(E!=="/"){let Z=E.replace(/^\//,"").split("/");V="/"+H.replace(/^\//,"").split("/").slice(Z.length).join("/")}let K=Za(a,{pathname:V});return bt(p||K!=null,`No routes matched location "${D.pathname}${D.search}${D.hash}" `),bt(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 "${D.pathname}${D.search}${D.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.`),k1(K&&K.map(Z=>Object.assign({},Z,{params:Object.assign({},g,Z.params),pathname:$n([E,f.encodeLocation?f.encodeLocation(Z.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:Z.pathname]),pathnameBase:Z.pathnameBase==="/"?E:$n([E,f.encodeLocation?f.encodeLocation(Z.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:Z.pathnameBase])})),h,r,u,c)}function Q1(){let a=$1(),i=yr(a)?`${a.status} ${a.statusText}`:a instanceof Error?a.message:JSON.stringify(a),r=a instanceof Error?a.stack:null,u="rgba(200,200,200, 0.5)",c={padding:"0.5rem",backgroundColor:u},f={padding:"2px 4px",backgroundColor:u},h=null;return console.error("Error handled by React Router default ErrorBoundary:",a),h=M.createElement(M.Fragment,null,M.createElement("p",null,"💿 Hey developer 👋"),M.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",M.createElement("code",{style:f},"ErrorBoundary")," or"," ",M.createElement("code",{style:f},"errorElement")," prop on your route.")),M.createElement(M.Fragment,null,M.createElement("h2",null,"Unexpected Application Error!"),M.createElement("h3",{style:{fontStyle:"italic"}},i),r?M.createElement("pre",{style:c},r):null,h)}var V1=M.createElement(Q1,null),Op=class extends M.Component{constructor(a){super(a),this.state={location:a.location,revalidation:a.revalidation,error:a.error}}static getDerivedStateFromError(a){return{error:a}}static getDerivedStateFromProps(a,i){return i.location!==a.location||i.revalidation!=="idle"&&a.revalidation==="idle"?{error:a.error,location:a.location,revalidation:a.revalidation}:{error:a.error!==void 0?a.error:i.error,location:i.location,revalidation:a.revalidation||i.revalidation}}componentDidCatch(a,i){this.props.onError?this.props.onError(a,i):console.error("React Router caught the following error during render",a)}render(){let a=this.state.error;if(this.context&&typeof a=="object"&&a&&"digest"in a&&typeof a.digest=="string"){const r=L1(a.digest);r&&(a=r)}let i=a!==void 0?M.createElement(Vn.Provider,{value:this.props.routeContext},M.createElement(Fc.Provider,{value:a,children:this.props.component})):this.props.children;return this.context?M.createElement(G1,{error:a},i):i}};Op.contextType=_p;var Ec=new WeakMap;function G1({children:a,error:i}){let{basename:r}=M.useContext(dn);if(typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){let u=U1(i.digest);if(u){let c=Ec.get(i);if(c)throw c;let f=cp(u.location,r);if(op&&!Ec.get(i))if(f.isExternal||u.reloadDocument)window.location.href=f.absoluteURL||f.to;else{const h=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(f.to,{replace:u.replace}));throw Ec.set(i,h),h}return M.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return a}function X1({routeContext:a,match:i,children:r}){let u=M.useContext(wl);return u&&u.static&&u.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(u.staticContext._deepestRenderedBoundaryId=i.route.id),M.createElement(Vn.Provider,{value:a},r)}function k1(a,i=[],r=null,u=null,c=null){if(a==null){if(!r)return null;if(r.errors)a=r.matches;else if(i.length===0&&!r.initialized&&r.matches.length>0)a=r.matches;else return null}let f=a,h=r?.errors;if(h!=null){let E=f.findIndex(p=>p.route.id&&h?.[p.route.id]!==void 0);Me(E>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(h).join(",")}`),f=f.slice(0,Math.min(f.length,E+1))}let m=!1,g=-1;if(r)for(let E=0;E<f.length;E++){let p=f[E];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(g=E),p.route.id){let{loaderData:R,errors:D}=r,H=p.route.loader&&!R.hasOwnProperty(p.route.id)&&(!D||D[p.route.id]===void 0);if(p.route.lazy||H){m=!0,g>=0?f=f.slice(0,g+1):f=[f[0]];break}}}let y=r&&u?(E,p)=>{u(E,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:vr(r.matches),errorInfo:p})}:void 0;return f.reduceRight((E,p,R)=>{let D,H=!1,V=null,K=null;r&&(D=h&&p.route.id?h[p.route.id]:void 0,V=p.route.errorElement||V1,m&&(g<0&&R===0?(Ap("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),H=!0,K=null):g===R&&(H=!0,K=p.route.hydrateFallbackElement||null)));let G=i.concat(f.slice(0,R+1)),Z=()=>{let W;return D?W=V:H?W=K:p.route.Component?W=M.createElement(p.route.Component,null):p.route.element?W=p.route.element:W=E,M.createElement(X1,{match:p,routeContext:{outlet:E,matches:G,isDataRoute:r!=null},children:W})};return r&&(p.route.ErrorBoundary||p.route.errorElement||R===0)?M.createElement(Op,{location:r.location,revalidation:r.revalidation,component:V,error:D,children:Z(),routeContext:{outlet:null,matches:G,isDataRoute:!0},onError:y}):Z()},null)}function Pc(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function K1(a){let i=M.useContext(wl);return Me(i,Pc(a)),i}function Z1(a){let i=M.useContext(gr);return Me(i,Pc(a)),i}function J1(a){let i=M.useContext(Vn);return Me(i,Pc(a)),i}function Wc(a){let i=J1(a),r=i.matches[i.matches.length-1];return Me(r.route.id,`${a} can only be used on routes that contain a unique "id"`),r.route.id}function F1(){return Wc("useRouteId")}function $1(){let a=M.useContext(Fc),i=Z1("useRouteError"),r=Wc("useRouteError");return a!==void 0?a:i.errors?.[r]}function P1(){let{router:a}=K1("useNavigate"),i=Wc("useNavigate"),r=M.useRef(!1);return xp(()=>{r.current=!0}),M.useCallback(async(c,f={})=>{bt(r.current,Rp),r.current&&(typeof c=="number"?await a.navigate(c):await a.navigate(c,{fromRouteId:i,...f}))},[a,i])}var Uy={};function Ap(a,i,r){!i&&!Uy[a]&&(Uy[a]=!0,bt(!1,r))}var Ly={};function By(a,i){!a&&!Ly[i]&&(Ly[i]=!0,console.warn(i))}var W1="useOptimistic",Hy=s0[W1],I1=()=>{};function eS(a){return Hy?Hy(a):[a,I1]}function tS(a){let i={hasErrorBoundary:a.hasErrorBoundary||a.ErrorBoundary!=null||a.errorElement!=null};return a.Component&&(a.element&&bt(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(i,{element:M.createElement(a.Component),Component:void 0})),a.HydrateFallback&&(a.hydrateFallbackElement&&bt(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(i,{hydrateFallbackElement:M.createElement(a.HydrateFallback),HydrateFallback:void 0})),a.ErrorBoundary&&(a.errorElement&&bt(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(i,{errorElement:M.createElement(a.ErrorBoundary),ErrorBoundary:void 0})),i}var nS=["HydrateFallback","hydrateFallbackElement"],aS=class{constructor(){this.status="pending",this.promise=new Promise((a,i)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",a(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",i(r))}})}};function lS({router:a,flushSync:i,onError:r,unstable_useTransitions:u}){u=D1()||u;let[f,h]=M.useState(a.state),[m,g]=eS(f),[y,E]=M.useState(),[p,R]=M.useState({isTransitioning:!1}),[D,H]=M.useState(),[V,K]=M.useState(),[G,Z]=M.useState(),W=M.useRef(new Map),be=M.useCallback((ae,{deletedFetchers:Ee,newErrors:ze,flushSync:Oe,viewTransitionOpts:Ae})=>{ze&&r&&Object.values(ze).forEach(Qe=>r(Qe,{location:ae.location,params:ae.matches[0]?.params??{},unstable_pattern:vr(ae.matches)})),ae.fetchers.forEach((Qe,_e)=>{Qe.data!==void 0&&W.current.set(_e,Qe.data)}),Ee.forEach(Qe=>W.current.delete(Qe)),By(Oe===!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 Ke=a.window!=null&&a.window.document!=null&&typeof a.window.document.startViewTransition=="function";if(By(Ae==null||Ke,"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."),!Ae||!Ke){i&&Oe?i(()=>h(ae)):u===!1?h(ae):M.startTransition(()=>{u===!0&&g(Qe=>jy(Qe,ae)),h(ae)});return}if(i&&Oe){i(()=>{V&&(D?.resolve(),V.skipTransition()),R({isTransitioning:!0,flushSync:!0,currentLocation:Ae.currentLocation,nextLocation:Ae.nextLocation})});let Qe=a.window.document.startViewTransition(()=>{i(()=>h(ae))});Qe.finished.finally(()=>{i(()=>{H(void 0),K(void 0),E(void 0),R({isTransitioning:!1})})}),i(()=>K(Qe));return}V?(D?.resolve(),V.skipTransition(),Z({state:ae,currentLocation:Ae.currentLocation,nextLocation:Ae.nextLocation})):(E(ae),R({isTransitioning:!0,flushSync:!1,currentLocation:Ae.currentLocation,nextLocation:Ae.nextLocation}))},[a.window,i,V,D,u,g,r]);M.useLayoutEffect(()=>a.subscribe(be),[a,be]),M.useEffect(()=>{p.isTransitioning&&!p.flushSync&&H(new aS)},[p]),M.useEffect(()=>{if(D&&y&&a.window){let ae=y,Ee=D.promise,ze=a.window.document.startViewTransition(async()=>{u===!1?h(ae):M.startTransition(()=>{u===!0&&g(Oe=>jy(Oe,ae)),h(ae)}),await Ee});ze.finished.finally(()=>{H(void 0),K(void 0),E(void 0),R({isTransitioning:!1})}),K(ze)}},[y,D,a.window,u,g]),M.useEffect(()=>{D&&y&&m.location.key===y.location.key&&D.resolve()},[D,V,m.location,y]),M.useEffect(()=>{!p.isTransitioning&&G&&(E(G.state),R({isTransitioning:!0,flushSync:!1,currentLocation:G.currentLocation,nextLocation:G.nextLocation}),Z(void 0))},[p.isTransitioning,G]);let ve=M.useMemo(()=>({createHref:a.createHref,encodeLocation:a.encodeLocation,go:ae=>a.navigate(ae),push:(ae,Ee,ze)=>a.navigate(ae,{state:Ee,preventScrollReset:ze?.preventScrollReset}),replace:(ae,Ee,ze)=>a.navigate(ae,{replace:!0,state:Ee,preventScrollReset:ze?.preventScrollReset})}),[a]),ye=a.basename||"/",A=M.useMemo(()=>({router:a,navigator:ve,static:!1,basename:ye,onError:r}),[a,ve,ye,r]);return M.createElement(M.Fragment,null,M.createElement(wl.Provider,{value:A},M.createElement(gr.Provider,{value:m},M.createElement(Tp.Provider,{value:W.current},M.createElement(Jc.Provider,{value:p},M.createElement(uS,{basename:ye,location:m.location,navigationType:m.historyAction,navigator:ve,unstable_useTransitions:u},M.createElement(iS,{routes:a.routes,future:a.future,state:m,onError:r})))))),null)}function jy(a,i){return{...a,navigation:i.navigation.state!=="idle"?i.navigation:a.navigation,revalidation:i.revalidation!=="idle"?i.revalidation:a.revalidation,actionData:i.navigation.state!=="submitting"?i.actionData:a.actionData,fetchers:i.fetchers}}var iS=M.memo(rS);function rS({routes:a,future:i,state:r,onError:u}){return Y1(a,void 0,r,u,i)}function sS({to:a,replace:i,state:r,relative:u}){Me(fi(),"<Navigate> may be used only in the context of a <Router> component.");let{static:c}=M.useContext(dn);bt(!c,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:f}=M.useContext(Vn),{pathname:h}=Wa(),m=$c(),g=Ws(a,Ps(f),h,u==="path"),y=JSON.stringify(g);return M.useEffect(()=>{m(JSON.parse(y),{replace:i,state:r,relative:u})},[m,y,u,i,r]),null}function Mp(a){return q1(a.context)}function uS({basename:a="/",children:i=null,location:r,navigationType:u="POP",navigator:c,static:f=!1,unstable_useTransitions:h}){Me(!fi(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let m=a.replace(/^\/*/,"/"),g=M.useMemo(()=>({basename:m,navigator:c,static:f,unstable_useTransitions:h,future:{}}),[m,c,f,h]);typeof r=="string"&&(r=Pa(r));let{pathname:y="/",search:E="",hash:p="",state:R=null,key:D="default"}=r,H=M.useMemo(()=>{let V=Mn(y,m);return V==null?null:{location:{pathname:V,search:E,hash:p,state:R,key:D},navigationType:u}},[m,y,E,p,R,D,u]);return bt(H!=null,`<Router basename="${m}"> is not able to match the URL "${y}${E}${p}" because it does not start with the basename, so the <Router> won't render anything.`),H==null?null:M.createElement(dn.Provider,{value:g},M.createElement(Is.Provider,{children:i,value:H}))}var Ys="get",Qs="application/x-www-form-urlencoded";function eu(a){return typeof HTMLElement<"u"&&a instanceof HTMLElement}function oS(a){return eu(a)&&a.tagName.toLowerCase()==="button"}function cS(a){return eu(a)&&a.tagName.toLowerCase()==="form"}function fS(a){return eu(a)&&a.tagName.toLowerCase()==="input"}function dS(a){return!!(a.metaKey||a.altKey||a.ctrlKey||a.shiftKey)}function hS(a,i){return a.button===0&&(!i||i==="_self")&&!dS(a)}var Ls=null;function mS(){if(Ls===null)try{new FormData(document.createElement("form"),0),Ls=!1}catch{Ls=!0}return Ls}var yS=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function _c(a){return a!=null&&!yS.has(a)?(bt(!1,`"${a}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Qs}"`),null):a}function pS(a,i){let r,u,c,f,h;if(cS(a)){let m=a.getAttribute("action");u=m?Mn(m,i):null,r=a.getAttribute("method")||Ys,c=_c(a.getAttribute("enctype"))||Qs,f=new FormData(a)}else if(oS(a)||fS(a)&&(a.type==="submit"||a.type==="image")){let m=a.form;if(m==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let g=a.getAttribute("formaction")||m.getAttribute("action");if(u=g?Mn(g,i):null,r=a.getAttribute("formmethod")||m.getAttribute("method")||Ys,c=_c(a.getAttribute("formenctype"))||_c(m.getAttribute("enctype"))||Qs,f=new FormData(m,a),!mS()){let{name:y,type:E,value:p}=a;if(E==="image"){let R=y?`${y}.`:"";f.append(`${R}x`,"0"),f.append(`${R}y`,"0")}else y&&f.append(y,p)}}else{if(eu(a))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Ys,u=null,c=Qs,h=a}return f&&c==="text/plain"&&(h=f,f=void 0),{action:u,method:r.toLowerCase(),encType:c,formData:f,body:h}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Ic(a,i){if(a===!1||a===null||typeof a>"u")throw new Error(i)}function vS(a,i,r,u){let c=typeof a=="string"?new URL(a,typeof window>"u"?"server://singlefetch/":window.location.origin):a;return r?c.pathname.endsWith("/")?c.pathname=`${c.pathname}_.${u}`:c.pathname=`${c.pathname}.${u}`:c.pathname==="/"?c.pathname=`_root.${u}`:i&&Mn(c.pathname,i)==="/"?c.pathname=`${i.replace(/\/$/,"")}/_root.${u}`:c.pathname=`${c.pathname.replace(/\/$/,"")}.${u}`,c}async function gS(a,i){if(a.id in i)return i[a.id];try{let r=await import(a.module);return i[a.id]=r,r}catch(r){return console.error(`Error loading route module \`${a.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function bS(a){return a==null?!1:a.href==null?a.rel==="preload"&&typeof a.imageSrcSet=="string"&&typeof a.imageSizes=="string":typeof a.rel=="string"&&typeof a.href=="string"}async function SS(a,i,r){let u=await Promise.all(a.map(async c=>{let f=i.routes[c.route.id];if(f){let h=await gS(f,r);return h.links?h.links():[]}return[]}));return wS(u.flat(1).filter(bS).filter(c=>c.rel==="stylesheet"||c.rel==="preload").map(c=>c.rel==="stylesheet"?{...c,rel:"prefetch",as:"style"}:{...c,rel:"prefetch"}))}function qy(a,i,r,u,c,f){let h=(g,y)=>r[y]?g.route.id!==r[y].route.id:!0,m=(g,y)=>r[y].pathname!==g.pathname||r[y].route.path?.endsWith("*")&&r[y].params["*"]!==g.params["*"];return f==="assets"?i.filter((g,y)=>h(g,y)||m(g,y)):f==="data"?i.filter((g,y)=>{let E=u.routes[g.route.id];if(!E||!E.hasLoader)return!1;if(h(g,y)||m(g,y))return!0;if(g.route.shouldRevalidate){let p=g.route.shouldRevalidate({currentUrl:new URL(c.pathname+c.search+c.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(a,window.origin),nextParams:g.params,defaultShouldRevalidate:!0});if(typeof p=="boolean")return p}return!0}):[]}function ES(a,i,{includeHydrateFallback:r}={}){return _S(a.map(u=>{let c=i.routes[u.route.id];if(!c)return[];let f=[c.module];return c.clientActionModule&&(f=f.concat(c.clientActionModule)),c.clientLoaderModule&&(f=f.concat(c.clientLoaderModule)),r&&c.hydrateFallbackModule&&(f=f.concat(c.hydrateFallbackModule)),c.imports&&(f=f.concat(c.imports)),f}).flat(1))}function _S(a){return[...new Set(a)]}function TS(a){let i={},r=Object.keys(a).sort();for(let u of r)i[u]=a[u];return i}function wS(a,i){let r=new Set;return new Set(i),a.reduce((u,c)=>{let f=JSON.stringify(TS(c));return r.has(f)||(r.add(f),u.push({key:f,link:c})),u},[])}function Dp(){let a=M.useContext(wl);return Ic(a,"You must render this element inside a <DataRouterContext.Provider> element"),a}function RS(){let a=M.useContext(gr);return Ic(a,"You must render this element inside a <DataRouterStateContext.Provider> element"),a}var ef=M.createContext(void 0);ef.displayName="FrameworkContext";function Cp(){let a=M.useContext(ef);return Ic(a,"You must render this element inside a <HydratedRouter> element"),a}function xS(a,i){let r=M.useContext(ef),[u,c]=M.useState(!1),[f,h]=M.useState(!1),{onFocus:m,onBlur:g,onMouseEnter:y,onMouseLeave:E,onTouchStart:p}=i,R=M.useRef(null);M.useEffect(()=>{if(a==="render"&&h(!0),a==="viewport"){let V=G=>{G.forEach(Z=>{h(Z.isIntersecting)})},K=new IntersectionObserver(V,{threshold:.5});return R.current&&K.observe(R.current),()=>{K.disconnect()}}},[a]),M.useEffect(()=>{if(u){let V=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(V)}}},[u]);let D=()=>{c(!0)},H=()=>{c(!1),h(!1)};return r?a!=="intent"?[f,R,{}]:[f,R,{onFocus:ir(m,D),onBlur:ir(g,H),onMouseEnter:ir(y,D),onMouseLeave:ir(E,H),onTouchStart:ir(p,D)}]:[!1,R,{}]}function ir(a,i){return r=>{a&&a(r),r.defaultPrevented||i(r)}}function OS({page:a,...i}){let{router:r}=Dp(),u=M.useMemo(()=>Za(r.routes,a,r.basename),[r.routes,a,r.basename]);return u?M.createElement(MS,{page:a,matches:u,...i}):null}function AS(a){let{manifest:i,routeModules:r}=Cp(),[u,c]=M.useState([]);return M.useEffect(()=>{let f=!1;return SS(a,i,r).then(h=>{f||c(h)}),()=>{f=!0}},[a,i,r]),u}function MS({page:a,matches:i,...r}){let u=Wa(),{future:c,manifest:f,routeModules:h}=Cp(),{basename:m}=Dp(),{loaderData:g,matches:y}=RS(),E=M.useMemo(()=>qy(a,i,y,f,u,"data"),[a,i,y,f,u]),p=M.useMemo(()=>qy(a,i,y,f,u,"assets"),[a,i,y,f,u]),R=M.useMemo(()=>{if(a===u.pathname+u.search+u.hash)return[];let V=new Set,K=!1;if(i.forEach(Z=>{let W=f.routes[Z.route.id];!W||!W.hasLoader||(!E.some(be=>be.route.id===Z.route.id)&&Z.route.id in g&&h[Z.route.id]?.shouldRevalidate||W.hasClientLoader?K=!0:V.add(Z.route.id))}),V.size===0)return[];let G=vS(a,m,c.unstable_trailingSlashAwareDataRequests,"data");return K&&V.size>0&&G.searchParams.set("_routes",i.filter(Z=>V.has(Z.route.id)).map(Z=>Z.route.id).join(",")),[G.pathname+G.search]},[m,c.unstable_trailingSlashAwareDataRequests,g,u,f,E,i,a,h]),D=M.useMemo(()=>ES(p,f),[p,f]),H=AS(p);return M.createElement(M.Fragment,null,R.map(V=>M.createElement("link",{key:V,rel:"prefetch",as:"fetch",href:V,...r})),D.map(V=>M.createElement("link",{key:V,rel:"modulepreload",href:V,...r})),H.map(({key:V,link:K})=>M.createElement("link",{key:V,nonce:r.nonce,...K,crossOrigin:K.crossOrigin??r.crossOrigin})))}function DS(...a){return i=>{a.forEach(r=>{typeof r=="function"?r(i):r!=null&&(r.current=i)})}}var CS=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{CS&&(window.__reactRouterVersion="7.13.0")}catch{}function zS(a,i){return i1({basename:i?.basename,getContext:i?.getContext,future:i?.future,history:Eb({window:i?.window}),hydrationData:NS(),routes:a,mapRouteProperties:tS,hydrationRouteProperties:nS,dataStrategy:i?.dataStrategy,patchRoutesOnNavigation:i?.patchRoutesOnNavigation,window:i?.window,unstable_instrumentations:i?.unstable_instrumentations}).initialize()}function NS(){let a=window?.__staticRouterHydrationData;return a&&a.errors&&(a={...a,errors:US(a.errors)}),a}function US(a){if(!a)return null;let i=Object.entries(a),r={};for(let[u,c]of i)if(c&&c.__type==="RouteErrorResponse")r[u]=new pr(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 h=new f(c.message);h.stack="",r[u]=h}catch{}}if(r[u]==null){let f=new Error(c.message);f.stack="",r[u]=f}}else r[u]=c;return r}var zp=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Np=M.forwardRef(function({onClick:i,discover:r="render",prefetch:u="none",relative:c,reloadDocument:f,replace:h,state:m,target:g,to:y,preventScrollReset:E,viewTransition:p,unstable_defaultShouldRevalidate:R,...D},H){let{basename:V,unstable_useTransitions:K}=M.useContext(dn),G=typeof y=="string"&&zp.test(y),Z=cp(y,V);y=Z.to;let W=B1(y,{relative:c}),[be,ve,ye]=xS(u,D),A=HS(y,{replace:h,state:m,target:g,preventScrollReset:E,relative:c,viewTransition:p,unstable_defaultShouldRevalidate:R,unstable_useTransitions:K});function ae(ze){i&&i(ze),ze.defaultPrevented||A(ze)}let Ee=M.createElement("a",{...D,...ye,href:Z.absoluteURL||W,onClick:Z.isExternal||f?i:ae,ref:DS(H,ve),target:g,"data-discover":!G&&r==="render"?"true":void 0});return be&&!G?M.createElement(M.Fragment,null,Ee,M.createElement(OS,{page:W})):Ee});Np.displayName="Link";var Up=M.forwardRef(function({"aria-current":i="page",caseSensitive:r=!1,className:u="",end:c=!1,style:f,to:h,viewTransition:m,children:g,...y},E){let p=br(h,{relative:y.relative}),R=Wa(),D=M.useContext(gr),{navigator:H,basename:V}=M.useContext(dn),K=D!=null&&VS(p)&&m===!0,G=H.encodeLocation?H.encodeLocation(p).pathname:p.pathname,Z=R.pathname,W=D&&D.navigation&&D.navigation.location?D.navigation.location.pathname:null;r||(Z=Z.toLowerCase(),W=W?W.toLowerCase():null,G=G.toLowerCase()),W&&V&&(W=Mn(W,V)||W);const be=G!=="/"&&G.endsWith("/")?G.length-1:G.length;let ve=Z===G||!c&&Z.startsWith(G)&&Z.charAt(be)==="/",ye=W!=null&&(W===G||!c&&W.startsWith(G)&&W.charAt(G.length)==="/"),A={isActive:ve,isPending:ye,isTransitioning:K},ae=ve?i:void 0,Ee;typeof u=="function"?Ee=u(A):Ee=[u,ve?"active":null,ye?"pending":null,K?"transitioning":null].filter(Boolean).join(" ");let ze=typeof f=="function"?f(A):f;return M.createElement(Np,{...y,"aria-current":ae,className:Ee,ref:E,style:ze,to:h,viewTransition:m},typeof g=="function"?g(A):g)});Up.displayName="NavLink";var LS=M.forwardRef(({discover:a="render",fetcherKey:i,navigate:r,reloadDocument:u,replace:c,state:f,method:h=Ys,action:m,onSubmit:g,relative:y,preventScrollReset:E,viewTransition:p,unstable_defaultShouldRevalidate:R,...D},H)=>{let{unstable_useTransitions:V}=M.useContext(dn),K=YS(),G=QS(m,{relative:y}),Z=h.toLowerCase()==="get"?"get":"post",W=typeof m=="string"&&zp.test(m),be=ve=>{if(g&&g(ve),ve.defaultPrevented)return;ve.preventDefault();let ye=ve.nativeEvent.submitter,A=ye?.getAttribute("formmethod")||h,ae=()=>K(ye||ve.currentTarget,{fetcherKey:i,method:A,navigate:r,replace:c,state:f,relative:y,preventScrollReset:E,viewTransition:p,unstable_defaultShouldRevalidate:R});V&&r!==!1?M.startTransition(()=>ae()):ae()};return M.createElement("form",{ref:H,method:Z,action:G,onSubmit:u?g:be,...D,"data-discover":!W&&a==="render"?"true":void 0})});LS.displayName="Form";function BS(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Lp(a){let i=M.useContext(wl);return Me(i,BS(a)),i}function HS(a,{target:i,replace:r,state:u,preventScrollReset:c,relative:f,viewTransition:h,unstable_defaultShouldRevalidate:m,unstable_useTransitions:g}={}){let y=$c(),E=Wa(),p=br(a,{relative:f});return M.useCallback(R=>{if(hS(R,i)){R.preventDefault();let D=r!==void 0?r:Pn(E)===Pn(p),H=()=>y(a,{replace:D,state:u,preventScrollReset:c,relative:f,viewTransition:h,unstable_defaultShouldRevalidate:m});g?M.startTransition(()=>H()):H()}},[E,y,p,r,u,i,a,c,f,h,m,g])}var jS=0,qS=()=>`__${String(++jS)}__`;function YS(){let{router:a}=Lp("useSubmit"),{basename:i}=M.useContext(dn),r=F1(),u=a.fetch,c=a.navigate;return M.useCallback(async(f,h={})=>{let{action:m,method:g,encType:y,formData:E,body:p}=pS(f,i);if(h.navigate===!1){let R=h.fetcherKey||qS();await u(R,r,h.action||m,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:E,body:p,formMethod:h.method||g,formEncType:h.encType||y,flushSync:h.flushSync})}else await c(h.action||m,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:E,body:p,formMethod:h.method||g,formEncType:h.encType||y,replace:h.replace,state:h.state,fromRouteId:r,flushSync:h.flushSync,viewTransition:h.viewTransition})},[u,c,i,r])}function QS(a,{relative:i}={}){let{basename:r}=M.useContext(dn),u=M.useContext(Vn);Me(u,"useFormAction must be used inside a RouteContext");let[c]=u.matches.slice(-1),f={...br(a||".",{relative:i})},h=Wa();if(a==null){f.search=h.search;let m=new URLSearchParams(f.search),g=m.getAll("index");if(g.some(E=>E==="")){m.delete("index"),g.filter(p=>p).forEach(p=>m.append("index",p));let E=m.toString();f.search=E?`?${E}`:""}}return(!a||a===".")&&c.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(f.pathname=f.pathname==="/"?r:$n([r,f.pathname])),Pn(f)}function VS(a,{relative:i}={}){let r=M.useContext(Jc);Me(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:u}=Lp("useViewTransitionState"),c=br(a,{relative:i});if(!r.isTransitioning)return!1;let f=Mn(r.currentLocation.pathname,u)||r.currentLocation.pathname,h=Mn(r.nextLocation.pathname,u)||r.nextLocation.pathname;return Js(c.pathname,h)!=null||Js(c.pathname,f)!=null}function GS(a){return M.createElement(lS,{flushSync:np.flushSync,...a})}function XS(){return pe.jsx("div",{className:"min-h-screen bg-background text-foreground",children:pe.jsx(Mp,{})})}const Bp=(...a)=>a.filter((i,r,u)=>!!i&&i.trim()!==""&&u.indexOf(i)===r).join(" ").trim();const kS=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const KS=a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,r,u)=>u?u.toUpperCase():r.toLowerCase());const Yy=a=>{const i=KS(a);return i.charAt(0).toUpperCase()+i.slice(1)};var ZS={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 JS=a=>{for(const i in a)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1};const FS=M.forwardRef(({color:a="currentColor",size:i=24,strokeWidth:r=2,absoluteStrokeWidth:u,className:c="",children:f,iconNode:h,...m},g)=>M.createElement("svg",{ref:g,...ZS,width:i,height:i,stroke:a,strokeWidth:u?Number(r)*24/Number(i):r,className:Bp("lucide",c),...!f&&!JS(m)&&{"aria-hidden":"true"},...m},[...h.map(([y,E])=>M.createElement(y,E)),...Array.isArray(f)?f:[f]]));const tu=(a,i)=>{const r=M.forwardRef(({className:u,...c},f)=>M.createElement(FS,{ref:f,iconNode:i,className:Bp(`lucide-${kS(Yy(a))}`,`lucide-${a}`,u),...c}));return r.displayName=Yy(a),r};const $S=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],PS=tu("arrow-left",$S);const WS=[["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"}]],IS=tu("bell",WS);const eE=[["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"}]],tE=tu("cpu",eE);const nE=[["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"}]],aE=tu("folder-git-2",nE),lE=[{to:"/settings/agents",label:"Agent 配置",icon:tE},{to:"/settings/projects",label:"项目配置",icon:aE},{to:"/settings/notifications",label:"通知",icon:IS}],iE=pe.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"text-neutral-900",children:[pe.jsx("path",{d:"M12 2L2 7L12 12L22 7L12 2Z",fill:"currentColor"}),pe.jsx("path",{d:"M2 17L12 22L22 17",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),pe.jsx("path",{d:"M2 12L12 17L22 12",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]});function rE(){const a=$c();return pe.jsxs("div",{className:"h-screen flex flex-col bg-white",children:[pe.jsxs("header",{className:"h-12 flex items-center justify-between px-4 border-b border-neutral-100 bg-white shrink-0 z-30",children:[pe.jsxs("div",{className:"flex items-center gap-2.5",children:[iE,pe.jsx("span",{className:"text-sm font-bold tracking-tight text-neutral-900",children:"Agent Tower"}),pe.jsx("span",{className:"text-neutral-200 text-sm",children:"/"}),pe.jsx("span",{className:"text-sm text-neutral-500",children:"设置"})]}),pe.jsxs("button",{onClick:()=>a("/"),className:"flex items-center gap-1.5 text-xs text-neutral-400 hover:text-neutral-900 transition-colors",children:[pe.jsx(PS,{size:14}),pe.jsx("span",{children:"返回"})]})]}),pe.jsxs("div",{className:"flex-1 flex overflow-hidden",children:[pe.jsx("nav",{className:"w-48 border-r border-neutral-100 pt-3 px-2 shrink-0",children:lE.map(i=>pe.jsxs(Up,{to:i.to,className:({isActive:r})=>`flex items-center gap-2 px-3 py-1.5 rounded-md text-[13px] transition-colors ${r?"bg-neutral-100 text-neutral-900 font-medium":"text-neutral-500 hover:text-neutral-900 hover:bg-neutral-50"}`,children:[pe.jsx(i.icon,{size:14}),pe.jsx("span",{children:i.label})]},i.to))}),pe.jsx("div",{className:"flex-1 overflow-y-auto",children:pe.jsx(Mp,{})})]})]})}const sE=M.lazy(()=>ci(()=>import("./ProjectKanbanPage-DsCdIAOu.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11])).then(a=>({default:a.ProjectKanbanPage}))),uE=M.lazy(()=>ci(()=>import("./DemoPage-BuI7acbi.js"),__vite__mapDeps([12,4])).then(a=>({default:a.DemoPage}))),oE=M.lazy(()=>ci(()=>import("./AgentDemoPage-CHlsAeGt.js"),__vite__mapDeps([13,4,2,3,5,14,1])).then(a=>({default:a.AgentDemoPage}))),cE=M.lazy(()=>ci(()=>import("./ProfileSettingsPage-DuWWMW-Z.js"),__vite__mapDeps([15,14,1,4,9,6])).then(a=>({default:a.ProfileSettingsPage}))),fE=M.lazy(()=>ci(()=>import("./NotificationSettingsPage-BGoKo6r7.js"),__vite__mapDeps([16,1,4,10,3,8,17])).then(a=>({default:a.NotificationSettingsPage}))),dE=M.lazy(()=>ci(()=>import("./ProjectSettingsPage-CE8pGEMA.js"),__vite__mapDeps([18,7,1,4,10,3,6])).then(a=>({default:a.ProjectSettingsPage}))),hE=zS([{path:"/",element:pe.jsx(XS,{}),children:[{index:!0,element:pe.jsx(M.Suspense,{fallback:pe.jsx("div",{className:"p-8",children:"Loading..."}),children:pe.jsx(sE,{})})},{path:"demo",element:pe.jsx(M.Suspense,{fallback:pe.jsx("div",{className:"p-8",children:"Loading..."}),children:pe.jsx(uE,{})})},{path:"agent-demo",element:pe.jsx(M.Suspense,{fallback:pe.jsx("div",{className:"p-8",children:"Loading..."}),children:pe.jsx(oE,{})})},{path:"settings",element:pe.jsx(rE,{}),children:[{index:!0,element:pe.jsx(sS,{to:"agents",replace:!0})},{path:"agents",element:pe.jsx(M.Suspense,{fallback:pe.jsx("div",{className:"p-8",children:"Loading..."}),children:pe.jsx(cE,{})})},{path:"notifications",element:pe.jsx(M.Suspense,{fallback:pe.jsx("div",{className:"p-8",children:"Loading..."}),children:pe.jsx(fE,{})})},{path:"projects",element:pe.jsx(M.Suspense,{fallback:pe.jsx("div",{className:"p-8",children:"Loading..."}),children:pe.jsx(dE,{})})}]}]}]);function mE(){return pe.jsx(GS,{router:hE})}const Wn=Object.create(null);Wn.open="0";Wn.close="1";Wn.ping="2";Wn.pong="3";Wn.message="4";Wn.upgrade="5";Wn.noop="6";const Vs=Object.create(null);Object.keys(Wn).forEach(a=>{Vs[Wn[a]]=a});const Lc={type:"error",data:"parser error"},Hp=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",jp=typeof ArrayBuffer=="function",qp=a=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(a):a&&a.buffer instanceof ArrayBuffer,tf=({type:a,data:i},r,u)=>Hp&&i instanceof Blob?r?u(i):Qy(i,u):jp&&(i instanceof ArrayBuffer||qp(i))?r?u(i):Qy(new Blob([i]),u):u(Wn[a]+(i||"")),Qy=(a,i)=>{const r=new FileReader;return r.onload=function(){const u=r.result.split(",")[1];i("b"+(u||""))},r.readAsDataURL(a)};function Vy(a){return a instanceof Uint8Array?a:a instanceof ArrayBuffer?new Uint8Array(a):new Uint8Array(a.buffer,a.byteOffset,a.byteLength)}let Tc;function yE(a,i){if(Hp&&a.data instanceof Blob)return a.data.arrayBuffer().then(Vy).then(i);if(jp&&(a.data instanceof ArrayBuffer||qp(a.data)))return i(Vy(a.data));tf(a,!1,r=>{Tc||(Tc=new TextEncoder),i(Tc.encode(r))})}const Gy="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",or=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let a=0;a<Gy.length;a++)or[Gy.charCodeAt(a)]=a;const pE=a=>{let i=a.length*.75,r=a.length,u,c=0,f,h,m,g;a[a.length-1]==="="&&(i--,a[a.length-2]==="="&&i--);const y=new ArrayBuffer(i),E=new Uint8Array(y);for(u=0;u<r;u+=4)f=or[a.charCodeAt(u)],h=or[a.charCodeAt(u+1)],m=or[a.charCodeAt(u+2)],g=or[a.charCodeAt(u+3)],E[c++]=f<<2|h>>4,E[c++]=(h&15)<<4|m>>2,E[c++]=(m&3)<<6|g&63;return y},vE=typeof ArrayBuffer=="function",nf=(a,i)=>{if(typeof a!="string")return{type:"message",data:Yp(a,i)};const r=a.charAt(0);return r==="b"?{type:"message",data:gE(a.substring(1),i)}:Vs[r]?a.length>1?{type:Vs[r],data:a.substring(1)}:{type:Vs[r]}:Lc},gE=(a,i)=>{if(vE){const r=pE(a);return Yp(r,i)}else return{base64:!0,data:a}},Yp=(a,i)=>i==="blob"?a instanceof Blob?a:new Blob([a]):a instanceof ArrayBuffer?a:a.buffer,Qp="",bE=(a,i)=>{const r=a.length,u=new Array(r);let c=0;a.forEach((f,h)=>{tf(f,!1,m=>{u[h]=m,++c===r&&i(u.join(Qp))})})},SE=(a,i)=>{const r=a.split(Qp),u=[];for(let c=0;c<r.length;c++){const f=nf(r[c],i);if(u.push(f),f.type==="error")break}return u};function EE(){return new TransformStream({transform(a,i){yE(a,r=>{const u=r.length;let c;if(u<126)c=new Uint8Array(1),new DataView(c.buffer).setUint8(0,u);else if(u<65536){c=new Uint8Array(3);const f=new DataView(c.buffer);f.setUint8(0,126),f.setUint16(1,u)}else{c=new Uint8Array(9);const f=new DataView(c.buffer);f.setUint8(0,127),f.setBigUint64(1,BigInt(u))}a.data&&typeof a.data!="string"&&(c[0]|=128),i.enqueue(c),i.enqueue(r)})}})}let wc;function Bs(a){return a.reduce((i,r)=>i+r.length,0)}function Hs(a,i){if(a[0].length===i)return a.shift();const r=new Uint8Array(i);let u=0;for(let c=0;c<i;c++)r[c]=a[0][u++],u===a[0].length&&(a.shift(),u=0);return a.length&&u<a[0].length&&(a[0]=a[0].slice(u)),r}function _E(a,i){wc||(wc=new TextDecoder);const r=[];let u=0,c=-1,f=!1;return new TransformStream({transform(h,m){for(r.push(h);;){if(u===0){if(Bs(r)<1)break;const g=Hs(r,1);f=(g[0]&128)===128,c=g[0]&127,c<126?u=3:c===126?u=1:u=2}else if(u===1){if(Bs(r)<2)break;const g=Hs(r,2);c=new DataView(g.buffer,g.byteOffset,g.length).getUint16(0),u=3}else if(u===2){if(Bs(r)<8)break;const g=Hs(r,8),y=new DataView(g.buffer,g.byteOffset,g.length),E=y.getUint32(0);if(E>Math.pow(2,21)-1){m.enqueue(Lc);break}c=E*Math.pow(2,32)+y.getUint32(4),u=3}else{if(Bs(r)<c)break;const g=Hs(r,c);m.enqueue(nf(f?g:wc.decode(g),i)),u=0}if(c===0||c>a){m.enqueue(Lc);break}}}})}const Vp=4;function wt(a){if(a)return TE(a)}function TE(a){for(var i in wt.prototype)a[i]=wt.prototype[i];return a}wt.prototype.on=wt.prototype.addEventListener=function(a,i){return this._callbacks=this._callbacks||{},(this._callbacks["$"+a]=this._callbacks["$"+a]||[]).push(i),this};wt.prototype.once=function(a,i){function r(){this.off(a,r),i.apply(this,arguments)}return r.fn=i,this.on(a,r),this};wt.prototype.off=wt.prototype.removeListener=wt.prototype.removeAllListeners=wt.prototype.removeEventListener=function(a,i){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+a];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+a],this;for(var u,c=0;c<r.length;c++)if(u=r[c],u===i||u.fn===i){r.splice(c,1);break}return r.length===0&&delete this._callbacks["$"+a],this};wt.prototype.emit=function(a){this._callbacks=this._callbacks||{};for(var i=new Array(arguments.length-1),r=this._callbacks["$"+a],u=1;u<arguments.length;u++)i[u-1]=arguments[u];if(r){r=r.slice(0);for(var u=0,c=r.length;u<c;++u)r[u].apply(this,i)}return this};wt.prototype.emitReserved=wt.prototype.emit;wt.prototype.listeners=function(a){return this._callbacks=this._callbacks||{},this._callbacks["$"+a]||[]};wt.prototype.hasListeners=function(a){return!!this.listeners(a).length};const nu=typeof Promise=="function"&&typeof Promise.resolve=="function"?i=>Promise.resolve().then(i):(i,r)=>r(i,0),An=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),wE="arraybuffer";function Gp(a,...i){return i.reduce((r,u)=>(a.hasOwnProperty(u)&&(r[u]=a[u]),r),{})}const RE=An.setTimeout,xE=An.clearTimeout;function au(a,i){i.useNativeTimers?(a.setTimeoutFn=RE.bind(An),a.clearTimeoutFn=xE.bind(An)):(a.setTimeoutFn=An.setTimeout.bind(An),a.clearTimeoutFn=An.clearTimeout.bind(An))}const OE=1.33;function AE(a){return typeof a=="string"?ME(a):Math.ceil((a.byteLength||a.size)*OE)}function ME(a){let i=0,r=0;for(let u=0,c=a.length;u<c;u++)i=a.charCodeAt(u),i<128?r+=1:i<2048?r+=2:i<55296||i>=57344?r+=3:(u++,r+=4);return r}function Xp(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function DE(a){let i="";for(let r in a)a.hasOwnProperty(r)&&(i.length&&(i+="&"),i+=encodeURIComponent(r)+"="+encodeURIComponent(a[r]));return i}function CE(a){let i={},r=a.split("&");for(let u=0,c=r.length;u<c;u++){let f=r[u].split("=");i[decodeURIComponent(f[0])]=decodeURIComponent(f[1])}return i}class zE extends Error{constructor(i,r,u){super(i),this.description=r,this.context=u,this.type="TransportError"}}class af extends wt{constructor(i){super(),this.writable=!1,au(this,i),this.opts=i,this.query=i.query,this.socket=i.socket,this.supportsBinary=!i.forceBase64}onError(i,r,u){return super.emitReserved("error",new zE(i,r,u)),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 r=nf(i,this.socket.binaryType);this.onPacket(r)}onPacket(i){super.emitReserved("packet",i)}onClose(i){this.readyState="closed",super.emitReserved("close",i)}pause(i){}createUri(i,r={}){return i+"://"+this._hostname()+this._port()+this.opts.path+this._query(r)}_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 r=DE(i);return r.length?"?"+r:""}}class NE extends af{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(i){this.readyState="pausing";const r=()=>{this.readyState="paused",i()};if(this._polling||!this.writable){let u=0;this._polling&&(u++,this.once("pollComplete",function(){--u||r()})),this.writable||(u++,this.once("drain",function(){--u||r()}))}else r()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(i){const r=u=>{if(this.readyState==="opening"&&u.type==="open"&&this.onOpen(),u.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(u)};SE(i,this.socket.binaryType).forEach(r),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,bE(i,r=>{this.doWrite(r,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const i=this.opts.secure?"https":"http",r=this.query||{};return this.opts.timestampRequests!==!1&&(r[this.opts.timestampParam]=Xp()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(i,r)}}let kp=!1;try{kp=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const UE=kp;function LE(){}class BE extends NE{constructor(i){if(super(i),typeof location<"u"){const r=location.protocol==="https:";let u=location.port;u||(u=r?"443":"80"),this.xd=typeof location<"u"&&i.hostname!==location.hostname||u!==i.port}}doWrite(i,r){const u=this.request({method:"POST",data:i});u.on("success",r),u.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",(r,u)=>{this.onError("xhr poll error",r,u)}),this.pollXhr=i}}let oi=class Gs extends wt{constructor(i,r,u){super(),this.createRequest=i,au(this,u),this._opts=u,this._method=u.method||"GET",this._uri=r,this._data=u.data!==void 0?u.data:null,this._create()}_create(){var i;const r=Gp(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this._opts.xd;const u=this._xhr=this.createRequest(r);try{u.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){u.setDisableHeaderCheck&&u.setDisableHeaderCheck(!0);for(let c in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(c)&&u.setRequestHeader(c,this._opts.extraHeaders[c])}}catch{}if(this._method==="POST")try{u.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{u.setRequestHeader("Accept","*/*")}catch{}(i=this._opts.cookieJar)===null||i===void 0||i.addCookies(u),"withCredentials"in u&&(u.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(u.timeout=this._opts.requestTimeout),u.onreadystatechange=()=>{var c;u.readyState===3&&((c=this._opts.cookieJar)===null||c===void 0||c.parseCookies(u.getResponseHeader("set-cookie"))),u.readyState===4&&(u.status===200||u.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof u.status=="number"?u.status:0)},0))},u.send(this._data)}catch(c){this.setTimeoutFn(()=>{this._onError(c)},0);return}typeof document<"u"&&(this._index=Gs.requestsCount++,Gs.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=LE,i)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Gs.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()}};oi.requestsCount=0;oi.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Xy);else if(typeof addEventListener=="function"){const a="onpagehide"in An?"pagehide":"unload";addEventListener(a,Xy,!1)}}function Xy(){for(let a in oi.requests)oi.requests.hasOwnProperty(a)&&oi.requests[a].abort()}const HE=(function(){const a=Kp({xdomain:!1});return a&&a.responseType!==null})();class jE extends BE{constructor(i){super(i);const r=i&&i.forceBase64;this.supportsBinary=HE&&!r}request(i={}){return Object.assign(i,{xd:this.xd},this.opts),new oi(Kp,this.uri(),i)}}function Kp(a){const i=a.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!i||UE))return new XMLHttpRequest}catch{}if(!i)try{return new An[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const Zp=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class qE extends af{get name(){return"websocket"}doOpen(){const i=this.uri(),r=this.opts.protocols,u=Zp?{}:Gp(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(u.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(i,r,u)}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 r=0;r<i.length;r++){const u=i[r],c=r===i.length-1;tf(u,this.supportsBinary,f=>{try{this.doWrite(u,f)}catch{}c&&nu(()=>{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",r=this.query||{};return this.opts.timestampRequests&&(r[this.opts.timestampParam]=Xp()),this.supportsBinary||(r.b64=1),this.createUri(i,r)}}const Rc=An.WebSocket||An.MozWebSocket;class YE extends qE{createSocket(i,r,u){return Zp?new Rc(i,r,u):r?new Rc(i,r):new Rc(i)}doWrite(i,r){this.ws.send(r)}}class QE extends af{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 r=_E(Number.MAX_SAFE_INTEGER,this.socket.binaryType),u=i.readable.pipeThrough(r).getReader(),c=EE();c.readable.pipeTo(i.writable),this._writer=c.writable.getWriter();const f=()=>{u.read().then(({done:m,value:g})=>{m||(this.onPacket(g),f())}).catch(m=>{})};f();const h={type:"open"};this.query.sid&&(h.data=`{"sid":"${this.query.sid}"}`),this._writer.write(h).then(()=>this.onOpen())})})}write(i){this.writable=!1;for(let r=0;r<i.length;r++){const u=i[r],c=r===i.length-1;this._writer.write(u).then(()=>{c&&nu(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var i;(i=this._transport)===null||i===void 0||i.close()}}const VE={websocket:YE,webtransport:QE,polling:jE},GE=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,XE=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Bc(a){if(a.length>8e3)throw"URI too long";const i=a,r=a.indexOf("["),u=a.indexOf("]");r!=-1&&u!=-1&&(a=a.substring(0,r)+a.substring(r,u).replace(/:/g,";")+a.substring(u,a.length));let c=GE.exec(a||""),f={},h=14;for(;h--;)f[XE[h]]=c[h]||"";return r!=-1&&u!=-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=kE(f,f.path),f.queryKey=KE(f,f.query),f}function kE(a,i){const r=/\/{2,9}/g,u=i.replace(r,"/").split("/");return(i.slice(0,1)=="/"||i.length===0)&&u.splice(0,1),i.slice(-1)=="/"&&u.splice(u.length-1,1),u}function KE(a,i){const r={};return i.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(u,c,f){c&&(r[c]=f)}),r}const Hc=typeof addEventListener=="function"&&typeof removeEventListener=="function",Xs=[];Hc&&addEventListener("offline",()=>{Xs.forEach(a=>a())},!1);class $a extends wt{constructor(i,r){if(super(),this.binaryType=wE,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,i&&typeof i=="object"&&(r=i,i=null),i){const u=Bc(i);r.hostname=u.host,r.secure=u.protocol==="https"||u.protocol==="wss",r.port=u.port,u.query&&(r.query=u.query)}else r.host&&(r.hostname=Bc(r.host).host);au(this,r),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},r.transports.forEach(u=>{const c=u.prototype.name;this.transports.push(c),this._transportsByName[c]=u}),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},r),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=CE(this.opts.query)),Hc&&(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"})},Xs.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(i){const r=Object.assign({},this.opts.query);r.EIO=Vp,r.transport=i,this.id&&(r.sid=this.id);const u=Object.assign({},this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[i]);return new this._transportsByName[i](u)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const i=this.opts.rememberUpgrade&&$a.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const r=this.createTransport(i);r.open(),this.setTransport(r)}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",r=>this._onClose("transport close",r))}onOpen(){this.readyState="open",$a.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 r=new Error("server error");r.code=i.data,this._onError(r);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 r=1;for(let u=0;u<this.writeBuffer.length;u++){const c=this.writeBuffer[u].data;if(c&&(r+=AE(c)),u>0&&r>this._maxPayload)return this.writeBuffer.slice(0,u);r+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const i=Date.now()>this._pingTimeoutTime;return i&&(this._pingTimeoutTime=0,nu(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),i}write(i,r,u){return this._sendPacket("message",i,r,u),this}send(i,r,u){return this._sendPacket("message",i,r,u),this}_sendPacket(i,r,u,c){if(typeof r=="function"&&(c=r,r=void 0),typeof u=="function"&&(c=u,u=null),this.readyState==="closing"||this.readyState==="closed")return;u=u||{},u.compress=u.compress!==!1;const f={type:i,data:r,options:u};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()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),i()},u=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?u():i()}):this.upgrading?u():i()),this}_onError(i){if($a.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,r){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(),Hc&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const u=Xs.indexOf(this._offlineEventListener);u!==-1&&Xs.splice(u,1)}this.readyState="closed",this.id=null,this.emitReserved("close",i,r),this.writeBuffer=[],this._prevBufferLen=0}}}$a.protocol=Vp;class ZE extends $a{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 r=this.createTransport(i),u=!1;$a.priorWebsocketSuccess=!1;const c=()=>{u||(r.send([{type:"ping",data:"probe"}]),r.once("packet",p=>{if(!u)if(p.type==="pong"&&p.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;$a.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{u||this.readyState!=="closed"&&(E(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{const R=new Error("probe error");R.transport=r.name,this.emitReserved("upgradeError",R)}}))};function f(){u||(u=!0,E(),r.close(),r=null)}const h=p=>{const R=new Error("probe error: "+p);R.transport=r.name,f(),this.emitReserved("upgradeError",R)};function m(){h("transport closed")}function g(){h("socket closed")}function y(p){r&&p.name!==r.name&&f()}const E=()=>{r.removeListener("open",c),r.removeListener("error",h),r.removeListener("close",m),this.off("close",g),this.off("upgrading",y)};r.once("open",c),r.once("error",h),r.once("close",m),this.once("close",g),this.once("upgrading",y),this._upgrades.indexOf("webtransport")!==-1&&i!=="webtransport"?this.setTimeoutFn(()=>{u||r.open()},200):r.open()}onHandshake(i){this._upgrades=this._filterUpgrades(i.upgrades),super.onHandshake(i)}_filterUpgrades(i){const r=[];for(let u=0;u<i.length;u++)~this.transports.indexOf(i[u])&&r.push(i[u]);return r}}let JE=class extends ZE{constructor(i,r={}){const u=typeof i=="object"?i:r;(!u.transports||u.transports&&typeof u.transports[0]=="string")&&(u.transports=(u.transports||["polling","websocket","webtransport"]).map(c=>VE[c]).filter(c=>!!c)),super(i,u)}};function FE(a,i="",r){let u=a;r=r||typeof location<"u"&&location,a==null&&(a=r.protocol+"//"+r.host),typeof a=="string"&&(a.charAt(0)==="/"&&(a.charAt(1)==="/"?a=r.protocol+a:a=r.host+a),/^(https?|wss?):\/\//.test(a)||(typeof r<"u"?a=r.protocol+"//"+a:a="https://"+a),u=Bc(a)),u.port||(/^(http|ws)$/.test(u.protocol)?u.port="80":/^(http|ws)s$/.test(u.protocol)&&(u.port="443")),u.path=u.path||"/";const f=u.host.indexOf(":")!==-1?"["+u.host+"]":u.host;return u.id=u.protocol+"://"+f+":"+u.port+i,u.href=u.protocol+"://"+f+(r&&r.port===u.port?"":":"+u.port),u}const $E=typeof ArrayBuffer=="function",PE=a=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(a):a.buffer instanceof ArrayBuffer,Jp=Object.prototype.toString,WE=typeof Blob=="function"||typeof Blob<"u"&&Jp.call(Blob)==="[object BlobConstructor]",IE=typeof File=="function"||typeof File<"u"&&Jp.call(File)==="[object FileConstructor]";function lf(a){return $E&&(a instanceof ArrayBuffer||PE(a))||WE&&a instanceof Blob||IE&&a instanceof File}function ks(a,i){if(!a||typeof a!="object")return!1;if(Array.isArray(a)){for(let r=0,u=a.length;r<u;r++)if(ks(a[r]))return!0;return!1}if(lf(a))return!0;if(a.toJSON&&typeof a.toJSON=="function"&&arguments.length===1)return ks(a.toJSON(),!0);for(const r in a)if(Object.prototype.hasOwnProperty.call(a,r)&&ks(a[r]))return!0;return!1}function e2(a){const i=[],r=a.data,u=a;return u.data=jc(r,i),u.attachments=i.length,{packet:u,buffers:i}}function jc(a,i){if(!a)return a;if(lf(a)){const r={_placeholder:!0,num:i.length};return i.push(a),r}else if(Array.isArray(a)){const r=new Array(a.length);for(let u=0;u<a.length;u++)r[u]=jc(a[u],i);return r}else if(typeof a=="object"&&!(a instanceof Date)){const r={};for(const u in a)Object.prototype.hasOwnProperty.call(a,u)&&(r[u]=jc(a[u],i));return r}return a}function t2(a,i){return a.data=qc(a.data,i),delete a.attachments,a}function qc(a,i){if(!a)return a;if(a&&a._placeholder===!0){if(typeof a.num=="number"&&a.num>=0&&a.num<i.length)return i[a.num];throw new Error("illegal attachments")}else if(Array.isArray(a))for(let r=0;r<a.length;r++)a[r]=qc(a[r],i);else if(typeof a=="object")for(const r in a)Object.prototype.hasOwnProperty.call(a,r)&&(a[r]=qc(a[r],i));return a}const n2=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var Ye;(function(a){a[a.CONNECT=0]="CONNECT",a[a.DISCONNECT=1]="DISCONNECT",a[a.EVENT=2]="EVENT",a[a.ACK=3]="ACK",a[a.CONNECT_ERROR=4]="CONNECT_ERROR",a[a.BINARY_EVENT=5]="BINARY_EVENT",a[a.BINARY_ACK=6]="BINARY_ACK"})(Ye||(Ye={}));class a2{constructor(i){this.replacer=i}encode(i){return(i.type===Ye.EVENT||i.type===Ye.ACK)&&ks(i)?this.encodeAsBinary({type:i.type===Ye.EVENT?Ye.BINARY_EVENT:Ye.BINARY_ACK,nsp:i.nsp,data:i.data,id:i.id}):[this.encodeAsString(i)]}encodeAsString(i){let r=""+i.type;return(i.type===Ye.BINARY_EVENT||i.type===Ye.BINARY_ACK)&&(r+=i.attachments+"-"),i.nsp&&i.nsp!=="/"&&(r+=i.nsp+","),i.id!=null&&(r+=i.id),i.data!=null&&(r+=JSON.stringify(i.data,this.replacer)),r}encodeAsBinary(i){const r=e2(i),u=this.encodeAsString(r.packet),c=r.buffers;return c.unshift(u),c}}class rf extends wt{constructor(i){super(),this.reviver=i}add(i){let r;if(typeof i=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");r=this.decodeString(i);const u=r.type===Ye.BINARY_EVENT;u||r.type===Ye.BINARY_ACK?(r.type=u?Ye.EVENT:Ye.ACK,this.reconstructor=new l2(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(lf(i)||i.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(i),r&&(this.reconstructor=null,super.emitReserved("decoded",r));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+i)}decodeString(i){let r=0;const u={type:Number(i.charAt(0))};if(Ye[u.type]===void 0)throw new Error("unknown packet type "+u.type);if(u.type===Ye.BINARY_EVENT||u.type===Ye.BINARY_ACK){const f=r+1;for(;i.charAt(++r)!=="-"&&r!=i.length;);const h=i.substring(f,r);if(h!=Number(h)||i.charAt(r)!=="-")throw new Error("Illegal attachments");u.attachments=Number(h)}if(i.charAt(r+1)==="/"){const f=r+1;for(;++r&&!(i.charAt(r)===","||r===i.length););u.nsp=i.substring(f,r)}else u.nsp="/";const c=i.charAt(r+1);if(c!==""&&Number(c)==c){const f=r+1;for(;++r;){const h=i.charAt(r);if(h==null||Number(h)!=h){--r;break}if(r===i.length)break}u.id=Number(i.substring(f,r+1))}if(i.charAt(++r)){const f=this.tryParse(i.substr(r));if(rf.isPayloadValid(u.type,f))u.data=f;else throw new Error("invalid payload")}return u}tryParse(i){try{return JSON.parse(i,this.reviver)}catch{return!1}}static isPayloadValid(i,r){switch(i){case Ye.CONNECT:return ky(r);case Ye.DISCONNECT:return r===void 0;case Ye.CONNECT_ERROR:return typeof r=="string"||ky(r);case Ye.EVENT:case Ye.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&n2.indexOf(r[0])===-1);case Ye.ACK:case Ye.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class l2{constructor(i){this.packet=i,this.buffers=[],this.reconPack=i}takeBinaryData(i){if(this.buffers.push(i),this.buffers.length===this.reconPack.attachments){const r=t2(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function ky(a){return Object.prototype.toString.call(a)==="[object Object]"}const i2=Object.freeze(Object.defineProperty({__proto__:null,Decoder:rf,Encoder:a2,get PacketType(){return Ye}},Symbol.toStringTag,{value:"Module"}));function Qn(a,i,r){return a.on(i,r),function(){a.off(i,r)}}const r2=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Fp extends wt{constructor(i,r,u){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=r,u&&u.auth&&(this.auth=u.auth),this._opts=Object.assign({},u),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const i=this.io;this.subs=[Qn(i,"open",this.onopen.bind(this)),Qn(i,"packet",this.onpacket.bind(this)),Qn(i,"error",this.onerror.bind(this)),Qn(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,...r){var u,c,f;if(r2.hasOwnProperty(i))throw new Error('"'+i.toString()+'" is a reserved event name');if(r.unshift(i),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(r),this;const h={type:Ye.EVENT,data:r};if(h.options={},h.options.compress=this.flags.compress!==!1,typeof r[r.length-1]=="function"){const E=this.ids++,p=r.pop();this._registerAckCallback(E,p),h.id=E}const m=(c=(u=this.io.engine)===null||u===void 0?void 0:u.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&&!m||(g?(this.notifyOutgoingListeners(h),this.packet(h)):this.sendBuffer.push(h)),this.flags={},this}_registerAckCallback(i,r){var u;const c=(u=this.flags.timeout)!==null&&u!==void 0?u:this._opts.ackTimeout;if(c===void 0){this.acks[i]=r;return}const f=this.io.setTimeoutFn(()=>{delete this.acks[i];for(let m=0;m<this.sendBuffer.length;m++)this.sendBuffer[m].id===i&&this.sendBuffer.splice(m,1);r.call(this,new Error("operation has timed out"))},c),h=(...m)=>{this.io.clearTimeoutFn(f),r.apply(this,m)};h.withError=!0,this.acks[i]=h}emitWithAck(i,...r){return new Promise((u,c)=>{const f=(h,m)=>h?c(h):u(m);f.withError=!0,r.push(f),this.emit(i,...r)})}_addToQueue(i){let r;typeof i[i.length-1]=="function"&&(r=i.pop());const u={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?u.tryCount>this._opts.retries&&(this._queue.shift(),r&&r(c)):(this._queue.shift(),r&&r(null,...f)),u.pending=!1,this._drainQueue())),this._queue.push(u),this._drainQueue()}_drainQueue(i=!1){if(!this.connected||this._queue.length===0)return;const r=this._queue[0];r.pending&&!i||(r.pending=!0,r.tryCount++,this.flags=r.flags,this.emit.apply(this,r.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:Ye.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,r){this.connected=!1,delete this.id,this.emitReserved("disconnect",i,r),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(i=>{if(!this.sendBuffer.some(u=>String(u.id)===i)){const u=this.acks[i];delete this.acks[i],u.withError&&u.call(this,new Error("socket has been disconnected"))}})}onpacket(i){if(i.nsp===this.nsp)switch(i.type){case Ye.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 Ye.EVENT:case Ye.BINARY_EVENT:this.onevent(i);break;case Ye.ACK:case Ye.BINARY_ACK:this.onack(i);break;case Ye.DISCONNECT:this.ondisconnect();break;case Ye.CONNECT_ERROR:this.destroy();const u=new Error(i.data.message);u.data=i.data.data,this.emitReserved("connect_error",u);break}}onevent(i){const r=i.data||[];i.id!=null&&r.push(this.ack(i.id)),this.connected?this.emitEvent(r):this.receiveBuffer.push(Object.freeze(r))}emitEvent(i){if(this._anyListeners&&this._anyListeners.length){const r=this._anyListeners.slice();for(const u of r)u.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 r=this;let u=!1;return function(...c){u||(u=!0,r.packet({type:Ye.ACK,id:i,data:c}))}}onack(i){const r=this.acks[i.id];typeof r=="function"&&(delete this.acks[i.id],r.withError&&i.data.unshift(null),r.apply(this,i.data))}onconnect(i,r){this.id=i,this.recovered=r&&this._pid===r,this._pid=r,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:Ye.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 r=this._anyListeners;for(let u=0;u<r.length;u++)if(i===r[u])return r.splice(u,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 r=this._anyOutgoingListeners;for(let u=0;u<r.length;u++)if(i===r[u])return r.splice(u,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(i){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const r=this._anyOutgoingListeners.slice();for(const u of r)u.apply(this,i.data)}}}function di(a){a=a||{},this.ms=a.min||100,this.max=a.max||1e4,this.factor=a.factor||2,this.jitter=a.jitter>0&&a.jitter<=1?a.jitter:0,this.attempts=0}di.prototype.duration=function(){var a=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var i=Math.random(),r=Math.floor(i*this.jitter*a);a=(Math.floor(i*10)&1)==0?a-r:a+r}return Math.min(a,this.max)|0};di.prototype.reset=function(){this.attempts=0};di.prototype.setMin=function(a){this.ms=a};di.prototype.setMax=function(a){this.max=a};di.prototype.setJitter=function(a){this.jitter=a};class Yc extends wt{constructor(i,r){var u;super(),this.nsps={},this.subs=[],i&&typeof i=="object"&&(r=i,i=void 0),r=r||{},r.path=r.path||"/socket.io",this.opts=r,au(this,r),this.reconnection(r.reconnection!==!1),this.reconnectionAttempts(r.reconnectionAttempts||1/0),this.reconnectionDelay(r.reconnectionDelay||1e3),this.reconnectionDelayMax(r.reconnectionDelayMax||5e3),this.randomizationFactor((u=r.randomizationFactor)!==null&&u!==void 0?u:.5),this.backoff=new di({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState="closed",this.uri=i;const c=r.parser||i2;this.encoder=new c.Encoder,this.decoder=new c.Decoder,this._autoConnect=r.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 r;return i===void 0?this._reconnectionDelay:(this._reconnectionDelay=i,(r=this.backoff)===null||r===void 0||r.setMin(i),this)}randomizationFactor(i){var r;return i===void 0?this._randomizationFactor:(this._randomizationFactor=i,(r=this.backoff)===null||r===void 0||r.setJitter(i),this)}reconnectionDelayMax(i){var r;return i===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=i,(r=this.backoff)===null||r===void 0||r.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 JE(this.uri,this.opts);const r=this.engine,u=this;this._readyState="opening",this.skipReconnect=!1;const c=Qn(r,"open",function(){u.onopen(),i&&i()}),f=m=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",m),i?i(m):this.maybeReconnectOnOpen()},h=Qn(r,"error",f);if(this._timeout!==!1){const m=this._timeout,g=this.setTimeoutFn(()=>{c(),f(new Error("timeout")),r.close()},m);this.opts.autoUnref&&g.unref(),this.subs.push(()=>{this.clearTimeoutFn(g)})}return this.subs.push(c),this.subs.push(h),this}connect(i){return this.open(i)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const i=this.engine;this.subs.push(Qn(i,"ping",this.onping.bind(this)),Qn(i,"data",this.ondata.bind(this)),Qn(i,"error",this.onerror.bind(this)),Qn(i,"close",this.onclose.bind(this)),Qn(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(i){try{this.decoder.add(i)}catch(r){this.onclose("parse error",r)}}ondecoded(i){nu(()=>{this.emitReserved("packet",i)},this.setTimeoutFn)}onerror(i){this.emitReserved("error",i)}socket(i,r){let u=this.nsps[i];return u?this._autoConnect&&!u.active&&u.connect():(u=new Fp(this,i,r),this.nsps[i]=u),u}_destroy(i){const r=Object.keys(this.nsps);for(const u of r)if(this.nsps[u].active)return;this._close()}_packet(i){const r=this.encoder.encode(i);for(let u=0;u<r.length;u++)this.engine.write(r[u],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,r){var u;this.cleanup(),(u=this.engine)===null||u===void 0||u.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",i,r),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 r=this.backoff.duration();this._reconnecting=!0;const u=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()}))},r);this.opts.autoUnref&&u.unref(),this.subs.push(()=>{this.clearTimeoutFn(u)})}}onreconnect(){const i=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",i)}}const rr={};function Ks(a,i){typeof a=="object"&&(i=a,a=void 0),i=i||{};const r=FE(a,i.path||"/socket.io"),u=r.source,c=r.id,f=r.path,h=rr[c]&&f in rr[c].nsps,m=i.forceNew||i["force new connection"]||i.multiplex===!1||h;let g;return m?g=new Yc(u,i):(rr[c]||(rr[c]=new Yc(u,i)),g=rr[c]),r.query&&!i.query&&(i.query=r.queryKey),g.socket(r.path,i)}Object.assign(Ks,{Manager:Yc,Socket:Fp,io:Ks,connect:Ks});const js="/events",v2={SUBSCRIBE:"subscribe",UNSUBSCRIBE:"unsubscribe",INPUT:"input",RESIZE:"resize",TERMINAL_INPUT:"terminal:input",TERMINAL_RESIZE:"terminal:resize"},g2={SESSION_SUBSCRIBED:"session:subscribed",SESSION_UNSUBSCRIBED:"session:unsubscribed",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"},$p="agent-tower-tunnel-token";function s2(){const i=new URLSearchParams(window.location.search).get("token");if(i){sessionStorage.setItem($p,i);const r=new URL(window.location.href);r.searchParams.delete("token"),window.history.replaceState({},"",r.toString())}}function u2(){return sessionStorage.getItem($p)}function o2(){const a=window.location.hostname;return a!=="localhost"&&a!=="127.0.0.1"}class c2{socket=null;baseUrl;constructor(){this.baseUrl=""}getSocket(){if(!this.socket){const i={};if(o2()){const r=u2();r&&(i.token=r)}this.socket=Ks(`${this.baseUrl}${js}`,{auth:i,autoConnect:!1,transports:["websocket"],reconnection:!0,reconnectionAttempts:1/0,reconnectionDelay:1e3,reconnectionDelayMax:1e4}),this.socket.on("connect",()=>{console.log(`[Socket] Connected to ${js} t=${Date.now()}`)}),this.socket.on("disconnect",r=>{console.log(`[Socket] Disconnected from ${js}: t=${Date.now()}`,r)}),this.socket.on("connect_error",r=>{console.error(`[Socket] Connection error on ${js}: t=${Date.now()}`,r.message)})}return this.socket}connect(){const i=this.getSocket();return i.connected||i.connect(),i}disconnect(){this.socket&&(this.socket.disconnect(),this.socket=null)}isConnected(){return this.socket?.connected??!1}}const Ky=new c2;function f2(){return M.useEffect(()=>(Ky.connect(),()=>Ky.disconnect()),[]),pe.jsxs(Q0,{client:pb,children:[pe.jsx(mE,{}),pe.jsx(yb,{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"}}})]})}s2();h0.createRoot(document.getElementById("root")).render(pe.jsx(M.StrictMode,{children:pe.jsx(f2,{})}));export{PS as A,y2 as B,v2 as C,Zy as D,aE as F,Np as L,P as R,g2 as S,ci as _,Fs as a,S0 as b,tu as c,d2 as d,Oc as e,$s as f,u2 as g,g0 as h,o2 as i,pe as j,xc as k,Py as l,U0 as m,Yn as n,T0 as o,A0 as p,Vt as q,M as r,Ky as s,b0 as t,m2 as u,fr as v,H0 as w,h2 as x,Fy as y,np as z};