maestro-agent 0.0.1 → 0.0.3

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 (111) hide show
  1. package/README.md +316 -2
  2. package/bin/maestro.ts +5 -0
  3. package/dist/maestro +0 -0
  4. package/dist/web/apple-touch-icon.png +0 -0
  5. package/dist/web/assets/Connections-BMA04Ycg.js +11 -0
  6. package/dist/web/assets/GanttView-DXjh0gxg.js +49 -0
  7. package/dist/web/assets/Home-Ct3Ho0Qt.js +1 -0
  8. package/dist/web/assets/HooksCrons--0kyVJcR.js +11 -0
  9. package/dist/web/assets/ProjectDetail-B_IqEpFu.js +1 -0
  10. package/dist/web/assets/Roles-D1tIQzto.js +24 -0
  11. package/dist/web/assets/Settings-yts4LUmH.js +11 -0
  12. package/dist/web/assets/Skills-DbuNLjIV.js +12 -0
  13. package/dist/web/assets/Wizard-vJol8-Y4.js +11 -0
  14. package/dist/web/assets/WorkspaceChat-DrsLs4m2.js +56 -0
  15. package/dist/web/assets/WorkspaceDashboard-B9vgrd2Z.js +6 -0
  16. package/dist/web/assets/WorkspaceNew-DoNGYHCG.js +1 -0
  17. package/dist/web/assets/WorkspaceProjects-DDp3mUse.js +6 -0
  18. package/dist/web/assets/WorkspaceSchedules-BTjmCbYG.js +1 -0
  19. package/dist/web/assets/WorkspaceTasks-mPU-bhKR.js +41 -0
  20. package/dist/web/assets/activity-CIA8bIA4.js +6 -0
  21. package/dist/web/assets/addon-fit-BlxrFPDK.js +1 -0
  22. package/dist/web/assets/arrow-right-S7ID7nDp.js +6 -0
  23. package/dist/web/assets/badge-DDTUzWIi.js +1 -0
  24. package/dist/web/assets/circle-check-B3P1qK0Z.js +6 -0
  25. package/dist/web/assets/clock-f9aYZox0.js +6 -0
  26. package/dist/web/assets/index-BRo4Du_s.js +11 -0
  27. package/dist/web/assets/index-C7kx39S9.js +196 -0
  28. package/dist/web/assets/index-D6LSdZea.css +1 -0
  29. package/dist/web/assets/plus-BHnOxbns.js +6 -0
  30. package/dist/web/assets/refresh-cw-BWX04Hg3.js +6 -0
  31. package/dist/web/assets/save-BLbb_9xz.js +6 -0
  32. package/dist/web/assets/sparkles-CDr6Dw1e.js +6 -0
  33. package/dist/web/assets/trash-2-9-ThEdey.js +6 -0
  34. package/dist/web/assets/useEventStream-DXt2Hmei.js +1 -0
  35. package/dist/web/assets/x-DVdKPXXy.js +6 -0
  36. package/dist/web/assets/xterm-DYP7pi_n.css +32 -0
  37. package/dist/web/assets/xterm-DlVFs1Kw.js +9 -0
  38. package/dist/web/favicon-512.png +0 -0
  39. package/dist/web/favicon.png +0 -0
  40. package/dist/web/index.html +15 -0
  41. package/package.json +49 -6
  42. package/src/api/agents.ts +76 -0
  43. package/src/api/audit.ts +19 -0
  44. package/src/api/autopilot.ts +73 -0
  45. package/src/api/chat.ts +801 -0
  46. package/src/api/chief.ts +84 -0
  47. package/src/api/config.ts +39 -0
  48. package/src/api/gantt.ts +72 -0
  49. package/src/api/hooks.ts +54 -0
  50. package/src/api/inbox.ts +125 -0
  51. package/src/api/lark.ts +32 -0
  52. package/src/api/memory.ts +37 -0
  53. package/src/api/ops.ts +89 -0
  54. package/src/api/projects.ts +105 -0
  55. package/src/api/roles.ts +123 -0
  56. package/src/api/runtimes.ts +62 -0
  57. package/src/api/scheduled-tasks.ts +203 -0
  58. package/src/api/sessions.ts +479 -0
  59. package/src/api/skills.ts +386 -0
  60. package/src/api/tasks.ts +457 -0
  61. package/src/api/telegram.ts +94 -0
  62. package/src/api/templates.ts +36 -0
  63. package/src/api/webhooks.ts +20 -0
  64. package/src/api/workspaces.ts +150 -0
  65. package/src/bridges/lark/index.ts +213 -0
  66. package/src/bridges/telegram/index.ts +273 -0
  67. package/src/bridges/telegram/polling.ts +185 -0
  68. package/src/chat/index.ts +86 -0
  69. package/src/chief/index.ts +461 -0
  70. package/src/core/cli.ts +333 -0
  71. package/src/core/db.ts +53 -0
  72. package/src/core/event-bus.ts +33 -0
  73. package/src/core/index.ts +6 -0
  74. package/src/core/migrations.ts +303 -0
  75. package/src/core/router.ts +69 -0
  76. package/src/core/schema.sql +232 -0
  77. package/src/core/server.ts +308 -0
  78. package/src/core/validate.ts +22 -0
  79. package/src/discovery/index.ts +194 -0
  80. package/src/gateway/adapters/telegram.ts +148 -0
  81. package/src/gateway/index.ts +31 -0
  82. package/src/gateway/manager.ts +176 -0
  83. package/src/gateway/types.ts +77 -0
  84. package/src/inbox/index.ts +500 -0
  85. package/src/ops/artifact-sync.ts +65 -0
  86. package/src/ops/autopilot.ts +338 -0
  87. package/src/ops/gc.ts +252 -0
  88. package/src/ops/index.ts +226 -0
  89. package/src/ops/project-serial.ts +52 -0
  90. package/src/ops/role-dispatch.ts +111 -0
  91. package/src/ops/runtime-scheduler.ts +447 -0
  92. package/src/ops/task-blocking.ts +65 -0
  93. package/src/ops/task-deps.ts +37 -0
  94. package/src/ops/task-workspace.ts +60 -0
  95. package/src/roles/index.ts +258 -0
  96. package/src/roles/prompt-assembler.ts +85 -0
  97. package/src/roles/workspace-role.ts +155 -0
  98. package/src/scheduler/index.ts +461 -0
  99. package/src/session/output-parser.ts +75 -0
  100. package/src/session/realtime-parser.ts +40 -0
  101. package/src/skills/builtin.ts +155 -0
  102. package/src/skills/skill-extractor.ts +452 -0
  103. package/src/skills/skill-md.ts +282 -0
  104. package/src/transport/http-api.ts +75 -0
  105. package/src/transport/index.ts +4 -0
  106. package/src/transport/local-pty.ts +119 -0
  107. package/src/transport/ssh.ts +176 -0
  108. package/src/transport/types.ts +20 -0
  109. package/src/workflows/index.ts +231 -0
  110. package/index.js +0 -1
  111. package/maestro-agent-0.0.1.tgz +0 -0
@@ -0,0 +1,196 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/WorkspaceDashboard-B9vgrd2Z.js","assets/useEventStream-DXt2Hmei.js","assets/badge-DDTUzWIi.js","assets/WorkspaceProjects-DDp3mUse.js","assets/plus-BHnOxbns.js","assets/circle-check-B3P1qK0Z.js","assets/clock-f9aYZox0.js","assets/arrow-right-S7ID7nDp.js","assets/WorkspaceTasks-mPU-bhKR.js","assets/x-DVdKPXXy.js","assets/GanttView-DXjh0gxg.js","assets/trash-2-9-ThEdey.js","assets/WorkspaceChat-DrsLs4m2.js","assets/ProjectDetail-B_IqEpFu.js","assets/Roles-D1tIQzto.js","assets/refresh-cw-BWX04Hg3.js","assets/save-BLbb_9xz.js","assets/Connections-BMA04Ycg.js","assets/activity-CIA8bIA4.js","assets/HooksCrons--0kyVJcR.js","assets/Settings-yts4LUmH.js","assets/Skills-DbuNLjIV.js","assets/sparkles-CDr6Dw1e.js","assets/Wizard-vJol8-Y4.js"])))=>i.map(i=>d[i]);
2
+ function rS(l,i){for(var u=0;u<i.length;u++){const r=i[u];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in l)){const f=Object.getOwnPropertyDescriptor(r,s);f&&Object.defineProperty(l,s,f.get?f:{enumerable:!0,get:()=>r[s]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const f of s)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&r(d)}).observe(document,{childList:!0,subtree:!0});function u(s){const f={};return s.integrity&&(f.integrity=s.integrity),s.referrerPolicy&&(f.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?f.credentials="include":s.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function r(s){if(s.ep)return;s.ep=!0;const f=u(s);fetch(s.href,f)}})();const oS="modulepreload",uS=function(l){return"/"+l},gp={},Et=function(i,u,r){let s=Promise.resolve();if(u&&u.length>0){let d=function(p){return Promise.all(p.map(b=>Promise.resolve(b).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const h=document.querySelector("meta[property=csp-nonce]"),v=(h==null?void 0:h.nonce)||(h==null?void 0:h.getAttribute("nonce"));s=d(u.map(p=>{if(p=uS(p),p in gp)return;gp[p]=!0;const b=p.endsWith(".css"),g=b?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${g}`))return;const E=document.createElement("link");if(E.rel=b?"stylesheet":oS,b||(E.as="script"),E.crossOrigin="",E.href=p,v&&E.setAttribute("nonce",v),document.head.appendChild(E),b)return new Promise((C,O)=>{E.addEventListener("load",C),E.addEventListener("error",()=>O(new Error(`Unable to preload CSS for ${p}`)))})}))}function f(d){const h=new Event("vite:preloadError",{cancelable:!0});if(h.payload=d,window.dispatchEvent(h),!h.defaultPrevented)throw d}return s.then(d=>{for(const h of d||[])h.status==="rejected"&&f(h.reason);return i().catch(f)})};function Ks(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var cs={exports:{}},Di={};/**
3
+ * @license React
4
+ * react-jsx-runtime.production.js
5
+ *
6
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
7
+ *
8
+ * This source code is licensed under the MIT license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ */var bp;function cS(){if(bp)return Di;bp=1;var l=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function u(r,s,f){var d=null;if(f!==void 0&&(d=""+f),s.key!==void 0&&(d=""+s.key),"key"in s){f={};for(var h in s)h!=="key"&&(f[h]=s[h])}else f=s;return s=f.ref,{$$typeof:l,type:r,key:d,ref:s!==void 0?s:null,props:f}}return Di.Fragment=i,Di.jsx=u,Di.jsxs=u,Di}var Sp;function sS(){return Sp||(Sp=1,cs.exports=cS()),cs.exports}var N=sS(),ss={exports:{}},ye={};/**
11
+ * @license React
12
+ * react.production.js
13
+ *
14
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
15
+ *
16
+ * This source code is licensed under the MIT license found in the
17
+ * LICENSE file in the root directory of this source tree.
18
+ */var xp;function fS(){if(xp)return ye;xp=1;var l=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),E=Symbol.iterator;function C(R){return R===null||typeof R!="object"?null:(R=E&&R[E]||R["@@iterator"],typeof R=="function"?R:null)}var O={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,T={};function _(R,V,P){this.props=R,this.context=V,this.refs=T,this.updater=P||O}_.prototype.isReactComponent={},_.prototype.setState=function(R,V){if(typeof R!="object"&&typeof R!="function"&&R!=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,R,V,"setState")},_.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function M(){}M.prototype=_.prototype;function D(R,V,P){this.props=R,this.context=V,this.refs=T,this.updater=P||O}var q=D.prototype=new M;q.constructor=D,x(q,_.prototype),q.isPureReactComponent=!0;var K=Array.isArray;function W(){}var Y={H:null,A:null,T:null,S:null},X=Object.prototype.hasOwnProperty;function ae(R,V,P){var I=P.ref;return{$$typeof:l,type:R,key:V,ref:I!==void 0?I:null,props:P}}function he(R,V){return ae(R.type,V,R.props)}function pe(R){return typeof R=="object"&&R!==null&&R.$$typeof===l}function de(R){var V={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(P){return V[P]})}var ge=/\/+/g;function me(R,V){return typeof R=="object"&&R!==null&&R.key!=null?de(""+R.key):V.toString(36)}function se(R){switch(R.status){case"fulfilled":return R.value;case"rejected":throw R.reason;default:switch(typeof R.status=="string"?R.then(W,W):(R.status="pending",R.then(function(V){R.status==="pending"&&(R.status="fulfilled",R.value=V)},function(V){R.status==="pending"&&(R.status="rejected",R.reason=V)})),R.status){case"fulfilled":return R.value;case"rejected":throw R.reason}}throw R}function L(R,V,P,I,ne){var ie=typeof R;(ie==="undefined"||ie==="boolean")&&(R=null);var F=!1;if(R===null)F=!0;else switch(ie){case"bigint":case"string":case"number":F=!0;break;case"object":switch(R.$$typeof){case l:case i:F=!0;break;case b:return F=R._init,L(F(R._payload),V,P,I,ne)}}if(F)return ne=ne(R),F=I===""?"."+me(R,0):I,K(ne)?(P="",F!=null&&(P=F.replace(ge,"$&/")+"/"),L(ne,V,P,"",function(_e){return _e})):ne!=null&&(pe(ne)&&(ne=he(ne,P+(ne.key==null||R&&R.key===ne.key?"":(""+ne.key).replace(ge,"$&/")+"/")+F)),V.push(ne)),1;F=0;var ve=I===""?".":I+":";if(K(R))for(var ue=0;ue<R.length;ue++)I=R[ue],ie=ve+me(I,ue),F+=L(I,V,P,ie,ne);else if(ue=C(R),typeof ue=="function")for(R=ue.call(R),ue=0;!(I=R.next()).done;)I=I.value,ie=ve+me(I,ue++),F+=L(I,V,P,ie,ne);else if(ie==="object"){if(typeof R.then=="function")return L(se(R),V,P,I,ne);throw V=String(R),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.")}return F}function Z(R,V,P){if(R==null)return R;var I=[],ne=0;return L(R,I,"","",function(ie){return V.call(P,ie,ne++)}),I}function J(R){if(R._status===-1){var V=R._result;V=V(),V.then(function(P){(R._status===0||R._status===-1)&&(R._status=1,R._result=P)},function(P){(R._status===0||R._status===-1)&&(R._status=2,R._result=P)}),R._status===-1&&(R._status=0,R._result=V)}if(R._status===1)return R._result.default;throw R._result}var oe=typeof reportError=="function"?reportError:function(R){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var V=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof R=="object"&&R!==null&&typeof R.message=="string"?String(R.message):String(R),error:R});if(!window.dispatchEvent(V))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",R);return}console.error(R)},$={map:Z,forEach:function(R,V,P){Z(R,function(){V.apply(this,arguments)},P)},count:function(R){var V=0;return Z(R,function(){V++}),V},toArray:function(R){return Z(R,function(V){return V})||[]},only:function(R){if(!pe(R))throw Error("React.Children.only expected to receive a single React element child.");return R}};return ye.Activity=g,ye.Children=$,ye.Component=_,ye.Fragment=u,ye.Profiler=s,ye.PureComponent=D,ye.StrictMode=r,ye.Suspense=v,ye.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Y,ye.__COMPILER_RUNTIME={__proto__:null,c:function(R){return Y.H.useMemoCache(R)}},ye.cache=function(R){return function(){return R.apply(null,arguments)}},ye.cacheSignal=function(){return null},ye.cloneElement=function(R,V,P){if(R==null)throw Error("The argument must be a React element, but you passed "+R+".");var I=x({},R.props),ne=R.key;if(V!=null)for(ie in V.key!==void 0&&(ne=""+V.key),V)!X.call(V,ie)||ie==="key"||ie==="__self"||ie==="__source"||ie==="ref"&&V.ref===void 0||(I[ie]=V[ie]);var ie=arguments.length-2;if(ie===1)I.children=P;else if(1<ie){for(var F=Array(ie),ve=0;ve<ie;ve++)F[ve]=arguments[ve+2];I.children=F}return ae(R.type,ne,I)},ye.createContext=function(R){return R={$$typeof:d,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null},R.Provider=R,R.Consumer={$$typeof:f,_context:R},R},ye.createElement=function(R,V,P){var I,ne={},ie=null;if(V!=null)for(I in V.key!==void 0&&(ie=""+V.key),V)X.call(V,I)&&I!=="key"&&I!=="__self"&&I!=="__source"&&(ne[I]=V[I]);var F=arguments.length-2;if(F===1)ne.children=P;else if(1<F){for(var ve=Array(F),ue=0;ue<F;ue++)ve[ue]=arguments[ue+2];ne.children=ve}if(R&&R.defaultProps)for(I in F=R.defaultProps,F)ne[I]===void 0&&(ne[I]=F[I]);return ae(R,ie,ne)},ye.createRef=function(){return{current:null}},ye.forwardRef=function(R){return{$$typeof:h,render:R}},ye.isValidElement=pe,ye.lazy=function(R){return{$$typeof:b,_payload:{_status:-1,_result:R},_init:J}},ye.memo=function(R,V){return{$$typeof:p,type:R,compare:V===void 0?null:V}},ye.startTransition=function(R){var V=Y.T,P={};Y.T=P;try{var I=R(),ne=Y.S;ne!==null&&ne(P,I),typeof I=="object"&&I!==null&&typeof I.then=="function"&&I.then(W,oe)}catch(ie){oe(ie)}finally{V!==null&&P.types!==null&&(V.types=P.types),Y.T=V}},ye.unstable_useCacheRefresh=function(){return Y.H.useCacheRefresh()},ye.use=function(R){return Y.H.use(R)},ye.useActionState=function(R,V,P){return Y.H.useActionState(R,V,P)},ye.useCallback=function(R,V){return Y.H.useCallback(R,V)},ye.useContext=function(R){return Y.H.useContext(R)},ye.useDebugValue=function(){},ye.useDeferredValue=function(R,V){return Y.H.useDeferredValue(R,V)},ye.useEffect=function(R,V){return Y.H.useEffect(R,V)},ye.useEffectEvent=function(R){return Y.H.useEffectEvent(R)},ye.useId=function(){return Y.H.useId()},ye.useImperativeHandle=function(R,V,P){return Y.H.useImperativeHandle(R,V,P)},ye.useInsertionEffect=function(R,V){return Y.H.useInsertionEffect(R,V)},ye.useLayoutEffect=function(R,V){return Y.H.useLayoutEffect(R,V)},ye.useMemo=function(R,V){return Y.H.useMemo(R,V)},ye.useOptimistic=function(R,V){return Y.H.useOptimistic(R,V)},ye.useReducer=function(R,V,P){return Y.H.useReducer(R,V,P)},ye.useRef=function(R){return Y.H.useRef(R)},ye.useState=function(R){return Y.H.useState(R)},ye.useSyncExternalStore=function(R,V,P){return Y.H.useSyncExternalStore(R,V,P)},ye.useTransition=function(){return Y.H.useTransition()},ye.version="19.2.6",ye}var Ep;function Js(){return Ep||(Ep=1,ss.exports=fS()),ss.exports}var y=Js();const Un=Ks(y),bv=rS({__proto__:null,default:Un},[y]);var fs={exports:{}},Li={},ds={exports:{}},ms={};/**
19
+ * @license React
20
+ * scheduler.production.js
21
+ *
22
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
23
+ *
24
+ * This source code is licensed under the MIT license found in the
25
+ * LICENSE file in the root directory of this source tree.
26
+ */var wp;function dS(){return wp||(wp=1,(function(l){function i(L,Z){var J=L.length;L.push(Z);e:for(;0<J;){var oe=J-1>>>1,$=L[oe];if(0<s($,Z))L[oe]=Z,L[J]=$,J=oe;else break e}}function u(L){return L.length===0?null:L[0]}function r(L){if(L.length===0)return null;var Z=L[0],J=L.pop();if(J!==Z){L[0]=J;e:for(var oe=0,$=L.length,R=$>>>1;oe<R;){var V=2*(oe+1)-1,P=L[V],I=V+1,ne=L[I];if(0>s(P,J))I<$&&0>s(ne,P)?(L[oe]=ne,L[I]=J,oe=I):(L[oe]=P,L[V]=J,oe=V);else if(I<$&&0>s(ne,J))L[oe]=ne,L[I]=J,oe=I;else break e}}return Z}function s(L,Z){var J=L.sortIndex-Z.sortIndex;return J!==0?J:L.id-Z.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;l.unstable_now=function(){return f.now()}}else{var d=Date,h=d.now();l.unstable_now=function(){return d.now()-h}}var v=[],p=[],b=1,g=null,E=3,C=!1,O=!1,x=!1,T=!1,_=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,D=typeof setImmediate<"u"?setImmediate:null;function q(L){for(var Z=u(p);Z!==null;){if(Z.callback===null)r(p);else if(Z.startTime<=L)r(p),Z.sortIndex=Z.expirationTime,i(v,Z);else break;Z=u(p)}}function K(L){if(x=!1,q(L),!O)if(u(v)!==null)O=!0,W||(W=!0,de());else{var Z=u(p);Z!==null&&se(K,Z.startTime-L)}}var W=!1,Y=-1,X=5,ae=-1;function he(){return T?!0:!(l.unstable_now()-ae<X)}function pe(){if(T=!1,W){var L=l.unstable_now();ae=L;var Z=!0;try{e:{O=!1,x&&(x=!1,M(Y),Y=-1),C=!0;var J=E;try{t:{for(q(L),g=u(v);g!==null&&!(g.expirationTime>L&&he());){var oe=g.callback;if(typeof oe=="function"){g.callback=null,E=g.priorityLevel;var $=oe(g.expirationTime<=L);if(L=l.unstable_now(),typeof $=="function"){g.callback=$,q(L),Z=!0;break t}g===u(v)&&r(v),q(L)}else r(v);g=u(v)}if(g!==null)Z=!0;else{var R=u(p);R!==null&&se(K,R.startTime-L),Z=!1}}break e}finally{g=null,E=J,C=!1}Z=void 0}}finally{Z?de():W=!1}}}var de;if(typeof D=="function")de=function(){D(pe)};else if(typeof MessageChannel<"u"){var ge=new MessageChannel,me=ge.port2;ge.port1.onmessage=pe,de=function(){me.postMessage(null)}}else de=function(){_(pe,0)};function se(L,Z){Y=_(function(){L(l.unstable_now())},Z)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(L){L.callback=null},l.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):X=0<L?Math.floor(1e3/L):5},l.unstable_getCurrentPriorityLevel=function(){return E},l.unstable_next=function(L){switch(E){case 1:case 2:case 3:var Z=3;break;default:Z=E}var J=E;E=Z;try{return L()}finally{E=J}},l.unstable_requestPaint=function(){T=!0},l.unstable_runWithPriority=function(L,Z){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var J=E;E=L;try{return Z()}finally{E=J}},l.unstable_scheduleCallback=function(L,Z,J){var oe=l.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?oe+J:oe):J=oe,L){case 1:var $=-1;break;case 2:$=250;break;case 5:$=1073741823;break;case 4:$=1e4;break;default:$=5e3}return $=J+$,L={id:b++,callback:Z,priorityLevel:L,startTime:J,expirationTime:$,sortIndex:-1},J>oe?(L.sortIndex=J,i(p,L),u(v)===null&&L===u(p)&&(x?(M(Y),Y=-1):x=!0,se(K,J-oe))):(L.sortIndex=$,i(v,L),O||C||(O=!0,W||(W=!0,de()))),L},l.unstable_shouldYield=he,l.unstable_wrapCallback=function(L){var Z=E;return function(){var J=E;E=Z;try{return L.apply(this,arguments)}finally{E=J}}}})(ms)),ms}var Cp;function mS(){return Cp||(Cp=1,ds.exports=dS()),ds.exports}var hs={exports:{}},dt={};/**
27
+ * @license React
28
+ * react-dom.production.js
29
+ *
30
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
31
+ *
32
+ * This source code is licensed under the MIT license found in the
33
+ * LICENSE file in the root directory of this source tree.
34
+ */var Tp;function hS(){if(Tp)return dt;Tp=1;var l=Js();function i(v){var p="https://react.dev/errors/"+v;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)p+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+v+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(){}var r={d:{f:u,r:function(){throw Error(i(522))},D:u,C:u,L:u,m:u,X:u,S:u,M:u},p:0,findDOMNode:null},s=Symbol.for("react.portal");function f(v,p,b){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:g==null?null:""+g,children:v,containerInfo:p,implementation:b}}var d=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(v,p){if(v==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return dt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,dt.createPortal=function(v,p){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(i(299));return f(v,p,null,b)},dt.flushSync=function(v){var p=d.T,b=r.p;try{if(d.T=null,r.p=2,v)return v()}finally{d.T=p,r.p=b,r.d.f()}},dt.preconnect=function(v,p){typeof v=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,r.d.C(v,p))},dt.prefetchDNS=function(v){typeof v=="string"&&r.d.D(v)},dt.preinit=function(v,p){if(typeof v=="string"&&p&&typeof p.as=="string"){var b=p.as,g=h(b,p.crossOrigin),E=typeof p.integrity=="string"?p.integrity:void 0,C=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;b==="style"?r.d.S(v,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:g,integrity:E,fetchPriority:C}):b==="script"&&r.d.X(v,{crossOrigin:g,integrity:E,fetchPriority:C,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},dt.preinitModule=function(v,p){if(typeof v=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var b=h(p.as,p.crossOrigin);r.d.M(v,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&r.d.M(v)},dt.preload=function(v,p){if(typeof v=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var b=p.as,g=h(b,p.crossOrigin);r.d.L(v,b,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},dt.preloadModule=function(v,p){if(typeof v=="string")if(p){var b=h(p.as,p.crossOrigin);r.d.m(v,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else r.d.m(v)},dt.requestFormReset=function(v){r.d.r(v)},dt.unstable_batchedUpdates=function(v,p){return v(p)},dt.useFormState=function(v,p,b){return d.H.useFormState(v,p,b)},dt.useFormStatus=function(){return d.H.useHostTransitionStatus()},dt.version="19.2.6",dt}var Rp;function Sv(){if(Rp)return hs.exports;Rp=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(i){console.error(i)}}return l(),hs.exports=hS(),hs.exports}/**
35
+ * @license React
36
+ * react-dom-client.production.js
37
+ *
38
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
39
+ *
40
+ * This source code is licensed under the MIT license found in the
41
+ * LICENSE file in the root directory of this source tree.
42
+ */var Ap;function pS(){if(Ap)return Li;Ap=1;var l=mS(),i=Js(),u=Sv();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function d(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function h(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 v(e){if(f(e)!==e)throw Error(r(188))}function p(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(r(188));return t!==e?null:e}for(var n=e,a=t;;){var o=n.return;if(o===null)break;var c=o.alternate;if(c===null){if(a=o.return,a!==null){n=a;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===n)return v(o),e;if(c===a)return v(o),t;c=c.sibling}throw Error(r(188))}if(n.return!==a.return)n=o,a=c;else{for(var m=!1,S=o.child;S;){if(S===n){m=!0,n=o,a=c;break}if(S===a){m=!0,a=o,n=c;break}S=S.sibling}if(!m){for(S=c.child;S;){if(S===n){m=!0,n=c,a=o;break}if(S===a){m=!0,a=c,n=o;break}S=S.sibling}if(!m)throw Error(r(189))}}if(n.alternate!==a)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var g=Object.assign,E=Symbol.for("react.element"),C=Symbol.for("react.transitional.element"),O=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),M=Symbol.for("react.consumer"),D=Symbol.for("react.context"),q=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),W=Symbol.for("react.suspense_list"),Y=Symbol.for("react.memo"),X=Symbol.for("react.lazy"),ae=Symbol.for("react.activity"),he=Symbol.for("react.memo_cache_sentinel"),pe=Symbol.iterator;function de(e){return e===null||typeof e!="object"?null:(e=pe&&e[pe]||e["@@iterator"],typeof e=="function"?e:null)}var ge=Symbol.for("react.client.reference");function me(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ge?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case x:return"Fragment";case _:return"Profiler";case T:return"StrictMode";case K:return"Suspense";case W:return"SuspenseList";case ae:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case O:return"Portal";case D:return e.displayName||"Context";case M:return(e._context.displayName||"Context")+".Consumer";case q:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Y:return t=e.displayName||null,t!==null?t:me(e.type)||"Memo";case X:t=e._payload,e=e._init;try{return me(e(t))}catch{}}return null}var se=Array.isArray,L=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J={pending:!1,data:null,method:null,action:null},oe=[],$=-1;function R(e){return{current:e}}function V(e){0>$||(e.current=oe[$],oe[$]=null,$--)}function P(e,t){$++,oe[$]=e.current,e.current=t}var I=R(null),ne=R(null),ie=R(null),F=R(null);function ve(e,t){switch(P(ie,t),P(ne,e),P(I,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Yh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Yh(t),e=Vh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}V(I),P(I,e)}function ue(){V(I),V(ne),V(ie)}function _e(e){e.memoizedState!==null&&P(F,e);var t=I.current,n=Vh(t,e.type);t!==n&&(P(ne,e),P(I,n))}function Ee(e){ne.current===e&&(V(I),V(ne)),F.current===e&&(V(F),Oi._currentValue=J)}var we,We;function Ge(e){if(we===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);we=t&&t[1]||"",We=-1<n.stack.indexOf(`
43
+ at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
44
+ `+we+e+We}var hn=!1;function pn(e,t){if(!e||hn)return"";hn=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={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(B){var H=B}Reflect.construct(e,[],Q)}else{try{Q.call()}catch(B){H=B}e.call(Q.prototype)}}else{try{throw Error()}catch(B){H=B}(Q=e())&&typeof Q.catch=="function"&&Q.catch(function(){})}}catch(B){if(B&&H&&typeof B.stack=="string")return[B.stack,H.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=a.DetermineComponentFrameRoot(),m=c[0],S=c[1];if(m&&S){var w=m.split(`
45
+ `),j=S.split(`
46
+ `);for(o=a=0;a<w.length&&!w[a].includes("DetermineComponentFrameRoot");)a++;for(;o<j.length&&!j[o].includes("DetermineComponentFrameRoot");)o++;if(a===w.length||o===j.length)for(a=w.length-1,o=j.length-1;1<=a&&0<=o&&w[a]!==j[o];)o--;for(;1<=a&&0<=o;a--,o--)if(w[a]!==j[o]){if(a!==1||o!==1)do if(a--,o--,0>o||w[a]!==j[o]){var k=`
47
+ `+w[a].replace(" at new "," at ");return e.displayName&&k.includes("<anonymous>")&&(k=k.replace("<anonymous>",e.displayName)),k}while(1<=a&&0<=o);break}}}finally{hn=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Ge(n):""}function bl(e,t){switch(e.tag){case 26:case 27:case 5:return Ge(e.type);case 16:return Ge("Lazy");case 13:return e.child!==t&&t!==null?Ge("Suspense Fallback"):Ge("Suspense");case 19:return Ge("SuspenseList");case 0:case 15:return pn(e.type,!1);case 11:return pn(e.type.render,!1);case 1:return pn(e.type,!0);case 31:return Ge("Activity");default:return""}}function Zi(e){try{var t="",n=null;do t+=bl(e,n),n=e,e=e.return;while(e);return t}catch(a){return`
48
+ Error generating stack: `+a.message+`
49
+ `+a.stack}}var qn=Object.prototype.hasOwnProperty,$o=l.unstable_scheduleCallback,Wo=l.unstable_cancelCallback,Bg=l.unstable_shouldYield,kg=l.unstable_requestPaint,wt=l.unstable_now,qg=l.unstable_getCurrentPriorityLevel,bf=l.unstable_ImmediatePriority,Sf=l.unstable_UserBlockingPriority,Ki=l.unstable_NormalPriority,Yg=l.unstable_LowPriority,xf=l.unstable_IdlePriority,Vg=l.log,Gg=l.unstable_setDisableYieldValue,Ya=null,Ct=null;function Yn(e){if(typeof Vg=="function"&&Gg(e),Ct&&typeof Ct.setStrictMode=="function")try{Ct.setStrictMode(Ya,e)}catch{}}var Tt=Math.clz32?Math.clz32:Zg,Xg=Math.log,Qg=Math.LN2;function Zg(e){return e>>>=0,e===0?32:31-(Xg(e)/Qg|0)|0}var Ji=256,$i=262144,Wi=4194304;function Sl(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 Pi(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var o=0,c=e.suspendedLanes,m=e.pingedLanes;e=e.warmLanes;var S=a&134217727;return S!==0?(a=S&~c,a!==0?o=Sl(a):(m&=S,m!==0?o=Sl(m):n||(n=S&~e,n!==0&&(o=Sl(n))))):(S=a&~c,S!==0?o=Sl(S):m!==0?o=Sl(m):n||(n=a&~e,n!==0&&(o=Sl(n)))),o===0?0:t!==0&&t!==o&&(t&c)===0&&(c=o&-o,n=t&-t,c>=n||c===32&&(n&4194048)!==0)?t:o}function Va(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Kg(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 Ef(){var e=Wi;return Wi<<=1,(Wi&62914560)===0&&(Wi=4194304),e}function Po(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ga(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Jg(e,t,n,a,o,c){var m=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var S=e.entanglements,w=e.expirationTimes,j=e.hiddenUpdates;for(n=m&~n;0<n;){var k=31-Tt(n),Q=1<<k;S[k]=0,w[k]=-1;var H=j[k];if(H!==null)for(j[k]=null,k=0;k<H.length;k++){var B=H[k];B!==null&&(B.lane&=-536870913)}n&=~Q}a!==0&&wf(e,a,0),c!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=c&~(m&~t))}function wf(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-Tt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function Cf(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-Tt(n),o=1<<a;o&t|e[a]&t&&(e[a]|=t),n&=~o}}function Tf(e,t){var n=t&-t;return n=(n&42)!==0?1:Fo(n),(n&(e.suspendedLanes|t))!==0?0:n}function Fo(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 Io(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Rf(){var e=Z.p;return e!==0?e:(e=window.event,e===void 0?32:fp(e.type))}function Af(e,t){var n=Z.p;try{return Z.p=e,t()}finally{Z.p=n}}var Vn=Math.random().toString(36).slice(2),rt="__reactFiber$"+Vn,pt="__reactProps$"+Vn,Ql="__reactContainer$"+Vn,eu="__reactEvents$"+Vn,$g="__reactListeners$"+Vn,Wg="__reactHandles$"+Vn,_f="__reactResources$"+Vn,Xa="__reactMarker$"+Vn;function tu(e){delete e[rt],delete e[pt],delete e[eu],delete e[$g],delete e[Wg]}function Zl(e){var t=e[rt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ql]||n[rt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=$h(e);e!==null;){if(n=e[rt])return n;e=$h(e)}return t}e=n,n=e.parentNode}return null}function Kl(e){if(e=e[rt]||e[Ql]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Qa(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function Jl(e){var t=e[_f];return t||(t=e[_f]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function at(e){e[Xa]=!0}var Of=new Set,Mf={};function xl(e,t){$l(e,t),$l(e+"Capture",t)}function $l(e,t){for(Mf[e]=t,e=0;e<t.length;e++)Of.add(t[e])}var Pg=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]*$"),zf={},Nf={};function Fg(e){return qn.call(Nf,e)?!0:qn.call(zf,e)?!1:Pg.test(e)?Nf[e]=!0:(zf[e]=!0,!1)}function Fi(e,t,n){if(Fg(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Ii(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 vn(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+a)}}function Ut(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Df(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ig(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var o=a.get,c=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(m){n=""+m,c.call(this,m)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(m){n=""+m},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function nu(e){if(!e._valueTracker){var t=Df(e)?"checked":"value";e._valueTracker=Ig(e,t,""+e[t])}}function Lf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=Df(e)?e.checked?"true":"false":e.value),e=a,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 e0=/[\n"\\]/g;function jt(e){return e.replace(e0,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function lu(e,t,n,a,o,c,m,S){e.name="",m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.type=m:e.removeAttribute("type"),t!=null?m==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Ut(t)):e.value!==""+Ut(t)&&(e.value=""+Ut(t)):m!=="submit"&&m!=="reset"||e.removeAttribute("value"),t!=null?au(e,m,Ut(t)):n!=null?au(e,m,Ut(n)):a!=null&&e.removeAttribute("value"),o==null&&c!=null&&(e.defaultChecked=!!c),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?e.name=""+Ut(S):e.removeAttribute("name")}function Uf(e,t,n,a,o,c,m,S){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||n!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){nu(e);return}n=n!=null?""+Ut(n):"",t=t!=null?""+Ut(t):n,S||t===e.value||(e.value=t),e.defaultValue=t}a=a??o,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=S?e.checked:!!a,e.defaultChecked=!!a,m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(e.name=m),nu(e)}function au(e,t,n){t==="number"&&er(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Wl(e,t,n,a){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&a&&(e[n].defaultSelected=!0)}else{for(n=""+Ut(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,a&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function jf(e,t,n){if(t!=null&&(t=""+Ut(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Ut(n):""}function Hf(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(r(92));if(se(a)){if(1<a.length)throw Error(r(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=Ut(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),nu(e)}function Pl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var t0=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 Bf(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||t0.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function kf(e,t,n){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var o in t)a=t[o],t.hasOwnProperty(o)&&n[o]!==a&&Bf(e,o,a)}else for(var c in t)t.hasOwnProperty(c)&&Bf(e,c,t[c])}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 n0=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"]]),l0=/^[\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 tr(e){return l0.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function yn(){}var ru=null;function ou(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Fl=null,Il=null;function qf(e){var t=Kl(e);if(t&&(e=t.stateNode)){var n=e[pt]||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="'+jt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var o=a[pt]||null;if(!o)throw Error(r(90));lu(a,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&Lf(a)}break e;case"textarea":jf(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Wl(e,!!n.multiple,t,!1)}}}var uu=!1;function Yf(e,t,n){if(uu)return e(t,n);uu=!0;try{var a=e(t);return a}finally{if(uu=!1,(Fl!==null||Il!==null)&&(Vr(),Fl&&(t=Fl,e=Il,Il=Fl=null,qf(t),e)))for(t=0;t<e.length;t++)qf(e[t])}}function Za(e,t){var n=e.stateNode;if(n===null)return null;var a=n[pt]||null;if(a===null)return null;n=a[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":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(r(231,t,typeof n));return n}var gn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),cu=!1;if(gn)try{var Ka={};Object.defineProperty(Ka,"passive",{get:function(){cu=!0}}),window.addEventListener("test",Ka,Ka),window.removeEventListener("test",Ka,Ka)}catch{cu=!1}var Gn=null,su=null,nr=null;function Vf(){if(nr)return nr;var e,t=su,n=t.length,a,o="value"in Gn?Gn.value:Gn.textContent,c=o.length;for(e=0;e<n&&t[e]===o[e];e++);var m=n-e;for(a=1;a<=m&&t[n-a]===o[c-a];a++);return nr=o.slice(e,1<a?1-a:void 0)}function lr(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 ar(){return!0}function Gf(){return!1}function vt(e){function t(n,a,o,c,m){this._reactName=n,this._targetInst=o,this.type=a,this.nativeEvent=c,this.target=m,this.currentTarget=null;for(var S in e)e.hasOwnProperty(S)&&(n=e[S],this[S]=n?n(c):c[S]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?ar:Gf,this.isPropagationStopped=Gf,this}return g(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=ar)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ar)},persist:function(){},isPersistent:ar}),t}var El={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ir=vt(El),Ja=g({},El,{view:0,detail:0}),a0=vt(Ja),fu,du,$a,rr=g({},Ja,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:hu,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!==$a&&($a&&e.type==="mousemove"?(fu=e.screenX-$a.screenX,du=e.screenY-$a.screenY):du=fu=0,$a=e),fu)},movementY:function(e){return"movementY"in e?e.movementY:du}}),Xf=vt(rr),i0=g({},rr,{dataTransfer:0}),r0=vt(i0),o0=g({},Ja,{relatedTarget:0}),mu=vt(o0),u0=g({},El,{animationName:0,elapsedTime:0,pseudoElement:0}),c0=vt(u0),s0=g({},El,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),f0=vt(s0),d0=g({},El,{data:0}),Qf=vt(d0),m0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},h0={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"},p0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function v0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=p0[e])?!!t[e]:!1}function hu(){return v0}var y0=g({},Ja,{key:function(e){if(e.key){var t=m0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=lr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?h0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:hu,charCode:function(e){return e.type==="keypress"?lr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?lr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),g0=vt(y0),b0=g({},rr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Zf=vt(b0),S0=g({},Ja,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:hu}),x0=vt(S0),E0=g({},El,{propertyName:0,elapsedTime:0,pseudoElement:0}),w0=vt(E0),C0=g({},rr,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),T0=vt(C0),R0=g({},El,{newState:0,oldState:0}),A0=vt(R0),_0=[9,13,27,32],pu=gn&&"CompositionEvent"in window,Wa=null;gn&&"documentMode"in document&&(Wa=document.documentMode);var O0=gn&&"TextEvent"in window&&!Wa,Kf=gn&&(!pu||Wa&&8<Wa&&11>=Wa),Jf=" ",$f=!1;function Wf(e,t){switch(e){case"keyup":return _0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Pf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ea=!1;function M0(e,t){switch(e){case"compositionend":return Pf(t);case"keypress":return t.which!==32?null:($f=!0,Jf);case"textInput":return e=t.data,e===Jf&&$f?null:e;default:return null}}function z0(e,t){if(ea)return e==="compositionend"||!pu&&Wf(e,t)?(e=Vf(),nr=su=Gn=null,ea=!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 Kf&&t.locale!=="ko"?null:t.data;default:return null}}var N0={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 Ff(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!N0[e.type]:t==="textarea"}function If(e,t,n,a){Fl?Il?Il.push(a):Il=[a]:Fl=a,t=$r(t,"onChange"),0<t.length&&(n=new ir("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var Pa=null,Fa=null;function D0(e){Uh(e,0)}function or(e){var t=Qa(e);if(Lf(t))return e}function ed(e,t){if(e==="change")return t}var td=!1;if(gn){var vu;if(gn){var yu="oninput"in document;if(!yu){var nd=document.createElement("div");nd.setAttribute("oninput","return;"),yu=typeof nd.oninput=="function"}vu=yu}else vu=!1;td=vu&&(!document.documentMode||9<document.documentMode)}function ld(){Pa&&(Pa.detachEvent("onpropertychange",ad),Fa=Pa=null)}function ad(e){if(e.propertyName==="value"&&or(Fa)){var t=[];If(t,Fa,e,ou(e)),Yf(D0,t)}}function L0(e,t,n){e==="focusin"?(ld(),Pa=t,Fa=n,Pa.attachEvent("onpropertychange",ad)):e==="focusout"&&ld()}function U0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return or(Fa)}function j0(e,t){if(e==="click")return or(t)}function H0(e,t){if(e==="input"||e==="change")return or(t)}function B0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Rt=typeof Object.is=="function"?Object.is:B0;function Ia(e,t){if(Rt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var o=n[a];if(!qn.call(t,o)||!Rt(e[o],t[o]))return!1}return!0}function id(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function rd(e,t){var n=id(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=id(n)}}function od(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?od(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ud(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 k0=gn&&"documentMode"in document&&11>=document.documentMode,ta=null,bu=null,ei=null,Su=!1;function cd(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Su||ta==null||ta!==er(a)||(a=ta,"selectionStart"in a&&gu(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),ei&&Ia(ei,a)||(ei=a,a=$r(bu,"onSelect"),0<a.length&&(t=new ir("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=ta)))}function wl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var na={animationend:wl("Animation","AnimationEnd"),animationiteration:wl("Animation","AnimationIteration"),animationstart:wl("Animation","AnimationStart"),transitionrun:wl("Transition","TransitionRun"),transitionstart:wl("Transition","TransitionStart"),transitioncancel:wl("Transition","TransitionCancel"),transitionend:wl("Transition","TransitionEnd")},xu={},sd={};gn&&(sd=document.createElement("div").style,"AnimationEvent"in window||(delete na.animationend.animation,delete na.animationiteration.animation,delete na.animationstart.animation),"TransitionEvent"in window||delete na.transitionend.transition);function Cl(e){if(xu[e])return xu[e];if(!na[e])return e;var t=na[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in sd)return xu[e]=t[n];return e}var fd=Cl("animationend"),dd=Cl("animationiteration"),md=Cl("animationstart"),q0=Cl("transitionrun"),Y0=Cl("transitionstart"),V0=Cl("transitioncancel"),hd=Cl("transitionend"),pd=new Map,Eu="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(" ");Eu.push("scrollEnd");function Kt(e,t){pd.set(e,t),xl(t,[e])}var ur=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)},Ht=[],la=0,wu=0;function cr(){for(var e=la,t=wu=la=0;t<e;){var n=Ht[t];Ht[t++]=null;var a=Ht[t];Ht[t++]=null;var o=Ht[t];Ht[t++]=null;var c=Ht[t];if(Ht[t++]=null,a!==null&&o!==null){var m=a.pending;m===null?o.next=o:(o.next=m.next,m.next=o),a.pending=o}c!==0&&vd(n,o,c)}}function sr(e,t,n,a){Ht[la++]=e,Ht[la++]=t,Ht[la++]=n,Ht[la++]=a,wu|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Cu(e,t,n,a){return sr(e,t,n,a),fr(e)}function Tl(e,t){return sr(e,null,null,t),fr(e)}function vd(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var o=!1,c=e.return;c!==null;)c.childLanes|=n,a=c.alternate,a!==null&&(a.childLanes|=n),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(o=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,o&&t!==null&&(o=31-Tt(n),e=c.hiddenUpdates,a=e[o],a===null?e[o]=[t]:a.push(t),t.lane=n|536870912),c):null}function fr(e){if(50<Ei)throw Ei=0,Dc=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var aa={};function G0(e,t,n,a){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=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function At(e,t,n,a){return new G0(e,t,n,a)}function Tu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function bn(e,t){var n=e.alternate;return n===null?(n=At(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 yd(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 dr(e,t,n,a,o,c){var m=0;if(a=e,typeof e=="function")Tu(e)&&(m=1);else if(typeof e=="string")m=Jb(e,n,I.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ae:return e=At(31,n,t,o),e.elementType=ae,e.lanes=c,e;case x:return Rl(n.children,o,c,t);case T:m=8,o|=24;break;case _:return e=At(12,n,t,o|2),e.elementType=_,e.lanes=c,e;case K:return e=At(13,n,t,o),e.elementType=K,e.lanes=c,e;case W:return e=At(19,n,t,o),e.elementType=W,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case D:m=10;break e;case M:m=9;break e;case q:m=11;break e;case Y:m=14;break e;case X:m=16,a=null;break e}m=29,n=Error(r(130,e===null?"null":typeof e,"")),a=null}return t=At(m,n,t,o),t.elementType=e,t.type=a,t.lanes=c,t}function Rl(e,t,n,a){return e=At(7,e,a,t),e.lanes=n,e}function Ru(e,t,n){return e=At(6,e,null,t),e.lanes=n,e}function gd(e){var t=At(18,null,null,0);return t.stateNode=e,t}function Au(e,t,n){return t=At(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var bd=new WeakMap;function Bt(e,t){if(typeof e=="object"&&e!==null){var n=bd.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Zi(t)},bd.set(e,t),t)}return{value:e,source:t,stack:Zi(t)}}var ia=[],ra=0,mr=null,ti=0,kt=[],qt=0,Xn=null,an=1,rn="";function Sn(e,t){ia[ra++]=ti,ia[ra++]=mr,mr=e,ti=t}function Sd(e,t,n){kt[qt++]=an,kt[qt++]=rn,kt[qt++]=Xn,Xn=e;var a=an;e=rn;var o=32-Tt(a)-1;a&=~(1<<o),n+=1;var c=32-Tt(t)+o;if(30<c){var m=o-o%5;c=(a&(1<<m)-1).toString(32),a>>=m,o-=m,an=1<<32-Tt(t)+o|n<<o|a,rn=c+e}else an=1<<c|n<<o|a,rn=e}function _u(e){e.return!==null&&(Sn(e,1),Sd(e,1,0))}function Ou(e){for(;e===mr;)mr=ia[--ra],ia[ra]=null,ti=ia[--ra],ia[ra]=null;for(;e===Xn;)Xn=kt[--qt],kt[qt]=null,rn=kt[--qt],kt[qt]=null,an=kt[--qt],kt[qt]=null}function xd(e,t){kt[qt++]=an,kt[qt++]=rn,kt[qt++]=Xn,an=t.id,rn=t.overflow,Xn=e}var ot=null,qe=null,Oe=!1,Qn=null,Yt=!1,Mu=Error(r(519));function Zn(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ni(Bt(t,e)),Mu}function Ed(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[rt]=e,t[pt]=a,n){case"dialog":Te("cancel",t),Te("close",t);break;case"iframe":case"object":case"embed":Te("load",t);break;case"video":case"audio":for(n=0;n<Ci.length;n++)Te(Ci[n],t);break;case"source":Te("error",t);break;case"img":case"image":case"link":Te("error",t),Te("load",t);break;case"details":Te("toggle",t);break;case"input":Te("invalid",t),Uf(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":Te("invalid",t);break;case"textarea":Te("invalid",t),Hf(t,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||kh(t.textContent,n)?(a.popover!=null&&(Te("beforetoggle",t),Te("toggle",t)),a.onScroll!=null&&Te("scroll",t),a.onScrollEnd!=null&&Te("scrollend",t),a.onClick!=null&&(t.onclick=yn),t=!0):t=!1,t||Zn(e,!0)}function wd(e){for(ot=e.return;ot;)switch(ot.tag){case 5:case 31:case 13:Yt=!1;return;case 27:case 3:Yt=!0;return;default:ot=ot.return}}function oa(e){if(e!==ot)return!1;if(!Oe)return wd(e),Oe=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Jc(e.type,e.memoizedProps)),n=!n),n&&qe&&Zn(e),wd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));qe=Jh(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));qe=Jh(e)}else t===27?(t=qe,rl(e.type)?(e=Ic,Ic=null,qe=e):qe=t):qe=ot?Gt(e.stateNode.nextSibling):null;return!0}function Al(){qe=ot=null,Oe=!1}function zu(){var e=Qn;return e!==null&&(St===null?St=e:St.push.apply(St,e),Qn=null),e}function ni(e){Qn===null?Qn=[e]:Qn.push(e)}var Nu=R(null),_l=null,xn=null;function Kn(e,t,n){P(Nu,t._currentValue),t._currentValue=n}function En(e){e._currentValue=Nu.current,V(Nu)}function Du(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function Lu(e,t,n,a){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var c=o.dependencies;if(c!==null){var m=o.child;c=c.firstContext;e:for(;c!==null;){var S=c;c=o;for(var w=0;w<t.length;w++)if(S.context===t[w]){c.lanes|=n,S=c.alternate,S!==null&&(S.lanes|=n),Du(c.return,n,e),a||(m=null);break e}c=S.next}}else if(o.tag===18){if(m=o.return,m===null)throw Error(r(341));m.lanes|=n,c=m.alternate,c!==null&&(c.lanes|=n),Du(m,n,e),m=null}else m=o.child;if(m!==null)m.return=o;else for(m=o;m!==null;){if(m===e){m=null;break}if(o=m.sibling,o!==null){o.return=m.return,m=o;break}m=m.return}o=m}}function ua(e,t,n,a){e=null;for(var o=t,c=!1;o!==null;){if(!c){if((o.flags&524288)!==0)c=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var m=o.alternate;if(m===null)throw Error(r(387));if(m=m.memoizedProps,m!==null){var S=o.type;Rt(o.pendingProps.value,m.value)||(e!==null?e.push(S):e=[S])}}else if(o===F.current){if(m=o.alternate,m===null)throw Error(r(387));m.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(Oi):e=[Oi])}o=o.return}e!==null&&Lu(t,e,n,a),t.flags|=262144}function hr(e){for(e=e.firstContext;e!==null;){if(!Rt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ol(e){_l=e,xn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ut(e){return Cd(_l,e)}function pr(e,t){return _l===null&&Ol(e),Cd(e,t)}function Cd(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},xn===null){if(e===null)throw Error(r(308));xn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else xn=xn.next=t;return n}var X0=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},Q0=l.unstable_scheduleCallback,Z0=l.unstable_NormalPriority,Pe={$$typeof:D,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Uu(){return{controller:new X0,data:new Map,refCount:0}}function li(e){e.refCount--,e.refCount===0&&Q0(Z0,function(){e.controller.abort()})}var ai=null,ju=0,ca=0,sa=null;function K0(e,t){if(ai===null){var n=ai=[];ju=0,ca=kc(),sa={status:"pending",value:void 0,then:function(a){n.push(a)}}}return ju++,t.then(Td,Td),t}function Td(){if(--ju===0&&ai!==null){sa!==null&&(sa.status="fulfilled");var e=ai;ai=null,ca=0,sa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function J0(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(o){n.push(o)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var o=0;o<n.length;o++)(0,n[o])(t)},function(o){for(a.status="rejected",a.reason=o,o=0;o<n.length;o++)(0,n[o])(void 0)}),a}var Rd=L.S;L.S=function(e,t){ch=wt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&K0(e,t),Rd!==null&&Rd(e,t)};var Ml=R(null);function Hu(){var e=Ml.current;return e!==null?e:Be.pooledCache}function vr(e,t){t===null?P(Ml,Ml.current):P(Ml,t.pool)}function Ad(){var e=Hu();return e===null?null:{parent:Pe._currentValue,pool:e}}var fa=Error(r(460)),Bu=Error(r(474)),yr=Error(r(542)),gr={then:function(){}};function _d(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Od(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(yn,yn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,zd(e),e;default:if(typeof t.status=="string")t.then(yn,yn);else{if(e=Be,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=a}},function(a){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,zd(e),e}throw Nl=t,fa}}function zl(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Nl=n,fa):n}}var Nl=null;function Md(){if(Nl===null)throw Error(r(459));var e=Nl;return Nl=null,e}function zd(e){if(e===fa||e===yr)throw Error(r(483))}var da=null,ii=0;function br(e){var t=ii;return ii+=1,da===null&&(da=[]),Od(da,e,t)}function ri(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Sr(e,t){throw t.$$typeof===E?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Nd(e){function t(z,A){if(e){var U=z.deletions;U===null?(z.deletions=[A],z.flags|=16):U.push(A)}}function n(z,A){if(!e)return null;for(;A!==null;)t(z,A),A=A.sibling;return null}function a(z){for(var A=new Map;z!==null;)z.key!==null?A.set(z.key,z):A.set(z.index,z),z=z.sibling;return A}function o(z,A){return z=bn(z,A),z.index=0,z.sibling=null,z}function c(z,A,U){return z.index=U,e?(U=z.alternate,U!==null?(U=U.index,U<A?(z.flags|=67108866,A):U):(z.flags|=67108866,A)):(z.flags|=1048576,A)}function m(z){return e&&z.alternate===null&&(z.flags|=67108866),z}function S(z,A,U,G){return A===null||A.tag!==6?(A=Ru(U,z.mode,G),A.return=z,A):(A=o(A,U),A.return=z,A)}function w(z,A,U,G){var ce=U.type;return ce===x?k(z,A,U.props.children,G,U.key):A!==null&&(A.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===X&&zl(ce)===A.type)?(A=o(A,U.props),ri(A,U),A.return=z,A):(A=dr(U.type,U.key,U.props,null,z.mode,G),ri(A,U),A.return=z,A)}function j(z,A,U,G){return A===null||A.tag!==4||A.stateNode.containerInfo!==U.containerInfo||A.stateNode.implementation!==U.implementation?(A=Au(U,z.mode,G),A.return=z,A):(A=o(A,U.children||[]),A.return=z,A)}function k(z,A,U,G,ce){return A===null||A.tag!==7?(A=Rl(U,z.mode,G,ce),A.return=z,A):(A=o(A,U),A.return=z,A)}function Q(z,A,U){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=Ru(""+A,z.mode,U),A.return=z,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case C:return U=dr(A.type,A.key,A.props,null,z.mode,U),ri(U,A),U.return=z,U;case O:return A=Au(A,z.mode,U),A.return=z,A;case X:return A=zl(A),Q(z,A,U)}if(se(A)||de(A))return A=Rl(A,z.mode,U,null),A.return=z,A;if(typeof A.then=="function")return Q(z,br(A),U);if(A.$$typeof===D)return Q(z,pr(z,A),U);Sr(z,A)}return null}function H(z,A,U,G){var ce=A!==null?A.key:null;if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return ce!==null?null:S(z,A,""+U,G);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case C:return U.key===ce?w(z,A,U,G):null;case O:return U.key===ce?j(z,A,U,G):null;case X:return U=zl(U),H(z,A,U,G)}if(se(U)||de(U))return ce!==null?null:k(z,A,U,G,null);if(typeof U.then=="function")return H(z,A,br(U),G);if(U.$$typeof===D)return H(z,A,pr(z,U),G);Sr(z,U)}return null}function B(z,A,U,G,ce){if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return z=z.get(U)||null,S(A,z,""+G,ce);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case C:return z=z.get(G.key===null?U:G.key)||null,w(A,z,G,ce);case O:return z=z.get(G.key===null?U:G.key)||null,j(A,z,G,ce);case X:return G=zl(G),B(z,A,U,G,ce)}if(se(G)||de(G))return z=z.get(U)||null,k(A,z,G,ce,null);if(typeof G.then=="function")return B(z,A,U,br(G),ce);if(G.$$typeof===D)return B(z,A,U,pr(A,G),ce);Sr(A,G)}return null}function le(z,A,U,G){for(var ce=null,Me=null,re=A,Se=A=0,Ae=null;re!==null&&Se<U.length;Se++){re.index>Se?(Ae=re,re=null):Ae=re.sibling;var ze=H(z,re,U[Se],G);if(ze===null){re===null&&(re=Ae);break}e&&re&&ze.alternate===null&&t(z,re),A=c(ze,A,Se),Me===null?ce=ze:Me.sibling=ze,Me=ze,re=Ae}if(Se===U.length)return n(z,re),Oe&&Sn(z,Se),ce;if(re===null){for(;Se<U.length;Se++)re=Q(z,U[Se],G),re!==null&&(A=c(re,A,Se),Me===null?ce=re:Me.sibling=re,Me=re);return Oe&&Sn(z,Se),ce}for(re=a(re);Se<U.length;Se++)Ae=B(re,z,Se,U[Se],G),Ae!==null&&(e&&Ae.alternate!==null&&re.delete(Ae.key===null?Se:Ae.key),A=c(Ae,A,Se),Me===null?ce=Ae:Me.sibling=Ae,Me=Ae);return e&&re.forEach(function(fl){return t(z,fl)}),Oe&&Sn(z,Se),ce}function fe(z,A,U,G){if(U==null)throw Error(r(151));for(var ce=null,Me=null,re=A,Se=A=0,Ae=null,ze=U.next();re!==null&&!ze.done;Se++,ze=U.next()){re.index>Se?(Ae=re,re=null):Ae=re.sibling;var fl=H(z,re,ze.value,G);if(fl===null){re===null&&(re=Ae);break}e&&re&&fl.alternate===null&&t(z,re),A=c(fl,A,Se),Me===null?ce=fl:Me.sibling=fl,Me=fl,re=Ae}if(ze.done)return n(z,re),Oe&&Sn(z,Se),ce;if(re===null){for(;!ze.done;Se++,ze=U.next())ze=Q(z,ze.value,G),ze!==null&&(A=c(ze,A,Se),Me===null?ce=ze:Me.sibling=ze,Me=ze);return Oe&&Sn(z,Se),ce}for(re=a(re);!ze.done;Se++,ze=U.next())ze=B(re,z,Se,ze.value,G),ze!==null&&(e&&ze.alternate!==null&&re.delete(ze.key===null?Se:ze.key),A=c(ze,A,Se),Me===null?ce=ze:Me.sibling=ze,Me=ze);return e&&re.forEach(function(iS){return t(z,iS)}),Oe&&Sn(z,Se),ce}function He(z,A,U,G){if(typeof U=="object"&&U!==null&&U.type===x&&U.key===null&&(U=U.props.children),typeof U=="object"&&U!==null){switch(U.$$typeof){case C:e:{for(var ce=U.key;A!==null;){if(A.key===ce){if(ce=U.type,ce===x){if(A.tag===7){n(z,A.sibling),G=o(A,U.props.children),G.return=z,z=G;break e}}else if(A.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===X&&zl(ce)===A.type){n(z,A.sibling),G=o(A,U.props),ri(G,U),G.return=z,z=G;break e}n(z,A);break}else t(z,A);A=A.sibling}U.type===x?(G=Rl(U.props.children,z.mode,G,U.key),G.return=z,z=G):(G=dr(U.type,U.key,U.props,null,z.mode,G),ri(G,U),G.return=z,z=G)}return m(z);case O:e:{for(ce=U.key;A!==null;){if(A.key===ce)if(A.tag===4&&A.stateNode.containerInfo===U.containerInfo&&A.stateNode.implementation===U.implementation){n(z,A.sibling),G=o(A,U.children||[]),G.return=z,z=G;break e}else{n(z,A);break}else t(z,A);A=A.sibling}G=Au(U,z.mode,G),G.return=z,z=G}return m(z);case X:return U=zl(U),He(z,A,U,G)}if(se(U))return le(z,A,U,G);if(de(U)){if(ce=de(U),typeof ce!="function")throw Error(r(150));return U=ce.call(U),fe(z,A,U,G)}if(typeof U.then=="function")return He(z,A,br(U),G);if(U.$$typeof===D)return He(z,A,pr(z,U),G);Sr(z,U)}return typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint"?(U=""+U,A!==null&&A.tag===6?(n(z,A.sibling),G=o(A,U),G.return=z,z=G):(n(z,A),G=Ru(U,z.mode,G),G.return=z,z=G),m(z)):n(z,A)}return function(z,A,U,G){try{ii=0;var ce=He(z,A,U,G);return da=null,ce}catch(re){if(re===fa||re===yr)throw re;var Me=At(29,re,null,z.mode);return Me.lanes=G,Me.return=z,Me}finally{}}}var Dl=Nd(!0),Dd=Nd(!1),Jn=!1;function ku(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 $n(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Wn(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Ne&2)!==0){var o=a.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),a.pending=t,t=fr(e),vd(e,null,n),t}return sr(e,a,t,n),fr(e)}function oi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Cf(e,n)}}function Yu(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var o=null,c=null;if(n=n.firstBaseUpdate,n!==null){do{var m={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};c===null?o=c=m:c=c.next=m,n=n.next}while(n!==null);c===null?o=c=t:c=c.next=t}else o=c=t;n={baseState:a.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Vu=!1;function ui(){if(Vu){var e=sa;if(e!==null)throw e}}function ci(e,t,n,a){Vu=!1;var o=e.updateQueue;Jn=!1;var c=o.firstBaseUpdate,m=o.lastBaseUpdate,S=o.shared.pending;if(S!==null){o.shared.pending=null;var w=S,j=w.next;w.next=null,m===null?c=j:m.next=j,m=w;var k=e.alternate;k!==null&&(k=k.updateQueue,S=k.lastBaseUpdate,S!==m&&(S===null?k.firstBaseUpdate=j:S.next=j,k.lastBaseUpdate=w))}if(c!==null){var Q=o.baseState;m=0,k=j=w=null,S=c;do{var H=S.lane&-536870913,B=H!==S.lane;if(B?(Re&H)===H:(a&H)===H){H!==0&&H===ca&&(Vu=!0),k!==null&&(k=k.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var le=e,fe=S;H=t;var He=n;switch(fe.tag){case 1:if(le=fe.payload,typeof le=="function"){Q=le.call(He,Q,H);break e}Q=le;break e;case 3:le.flags=le.flags&-65537|128;case 0:if(le=fe.payload,H=typeof le=="function"?le.call(He,Q,H):le,H==null)break e;Q=g({},Q,H);break e;case 2:Jn=!0}}H=S.callback,H!==null&&(e.flags|=64,B&&(e.flags|=8192),B=o.callbacks,B===null?o.callbacks=[H]:B.push(H))}else B={lane:H,tag:S.tag,payload:S.payload,callback:S.callback,next:null},k===null?(j=k=B,w=Q):k=k.next=B,m|=H;if(S=S.next,S===null){if(S=o.shared.pending,S===null)break;B=S,S=B.next,B.next=null,o.lastBaseUpdate=B,o.shared.pending=null}}while(!0);k===null&&(w=Q),o.baseState=w,o.firstBaseUpdate=j,o.lastBaseUpdate=k,c===null&&(o.shared.lanes=0),tl|=m,e.lanes=m,e.memoizedState=Q}}function Ld(e,t){if(typeof e!="function")throw Error(r(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++)Ld(n[e],t)}var ma=R(null),xr=R(0);function jd(e,t){e=zn,P(xr,e),P(ma,t),zn=e|t.baseLanes}function Gu(){P(xr,zn),P(ma,ma.current)}function Xu(){zn=xr.current,V(ma),V(xr)}var _t=R(null),Vt=null;function Pn(e){var t=e.alternate;P(Je,Je.current&1),P(_t,e),Vt===null&&(t===null||ma.current!==null||t.memoizedState!==null)&&(Vt=e)}function Qu(e){P(Je,Je.current),P(_t,e),Vt===null&&(Vt=e)}function Hd(e){e.tag===22?(P(Je,Je.current),P(_t,e),Vt===null&&(Vt=e)):Fn()}function Fn(){P(Je,Je.current),P(_t,_t.current)}function Ot(e){V(_t),Vt===e&&(Vt=null),V(Je)}var Je=R(0);function Er(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Pc(n)||Fc(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 wn=0,be=null,Ue=null,Fe=null,wr=!1,ha=!1,Ll=!1,Cr=0,si=0,pa=null,$0=0;function Qe(){throw Error(r(321))}function Zu(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Rt(e[n],t[n]))return!1;return!0}function Ku(e,t,n,a,o,c){return wn=c,be=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,L.H=e===null||e.memoizedState===null?Sm:uc,Ll=!1,c=n(a,o),Ll=!1,ha&&(c=kd(t,n,a,o)),Bd(e),c}function Bd(e){L.H=mi;var t=Ue!==null&&Ue.next!==null;if(wn=0,Fe=Ue=be=null,wr=!1,si=0,pa=null,t)throw Error(r(300));e===null||Ie||(e=e.dependencies,e!==null&&hr(e)&&(Ie=!0))}function kd(e,t,n,a){be=e;var o=0;do{if(ha&&(pa=null),si=0,ha=!1,25<=o)throw Error(r(301));if(o+=1,Fe=Ue=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}L.H=xm,c=t(n,a)}while(ha);return c}function W0(){var e=L.H,t=e.useState()[0];return t=typeof t.then=="function"?fi(t):t,e=e.useState()[0],(Ue!==null?Ue.memoizedState:null)!==e&&(be.flags|=1024),t}function Ju(){var e=Cr!==0;return Cr=0,e}function $u(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Wu(e){if(wr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}wr=!1}wn=0,Fe=Ue=be=null,ha=!1,si=Cr=0,pa=null}function ht(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Fe===null?be.memoizedState=Fe=e:Fe=Fe.next=e,Fe}function $e(){if(Ue===null){var e=be.alternate;e=e!==null?e.memoizedState:null}else e=Ue.next;var t=Fe===null?be.memoizedState:Fe.next;if(t!==null)Fe=t,Ue=e;else{if(e===null)throw be.alternate===null?Error(r(467)):Error(r(310));Ue=e,e={memoizedState:Ue.memoizedState,baseState:Ue.baseState,baseQueue:Ue.baseQueue,queue:Ue.queue,next:null},Fe===null?be.memoizedState=Fe=e:Fe=Fe.next=e}return Fe}function Tr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function fi(e){var t=si;return si+=1,pa===null&&(pa=[]),e=Od(pa,e,t),t=be,(Fe===null?t.memoizedState:Fe.next)===null&&(t=t.alternate,L.H=t===null||t.memoizedState===null?Sm:uc),e}function Rr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return fi(e);if(e.$$typeof===D)return ut(e)}throw Error(r(438,String(e)))}function Pu(e){var t=null,n=be.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=be.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Tr(),be.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=he;return t.index++,n}function Cn(e,t){return typeof t=="function"?t(e):t}function Ar(e){var t=$e();return Fu(t,Ue,e)}function Fu(e,t,n){var a=e.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=n;var o=e.baseQueue,c=a.pending;if(c!==null){if(o!==null){var m=o.next;o.next=c.next,c.next=m}t.baseQueue=o=c,a.pending=null}if(c=e.baseState,o===null)e.memoizedState=c;else{t=o.next;var S=m=null,w=null,j=t,k=!1;do{var Q=j.lane&-536870913;if(Q!==j.lane?(Re&Q)===Q:(wn&Q)===Q){var H=j.revertLane;if(H===0)w!==null&&(w=w.next={lane:0,revertLane:0,gesture:null,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null}),Q===ca&&(k=!0);else if((wn&H)===H){j=j.next,H===ca&&(k=!0);continue}else Q={lane:0,revertLane:j.revertLane,gesture:null,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},w===null?(S=w=Q,m=c):w=w.next=Q,be.lanes|=H,tl|=H;Q=j.action,Ll&&n(c,Q),c=j.hasEagerState?j.eagerState:n(c,Q)}else H={lane:Q,revertLane:j.revertLane,gesture:j.gesture,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},w===null?(S=w=H,m=c):w=w.next=H,be.lanes|=Q,tl|=Q;j=j.next}while(j!==null&&j!==t);if(w===null?m=c:w.next=S,!Rt(c,e.memoizedState)&&(Ie=!0,k&&(n=sa,n!==null)))throw n;e.memoizedState=c,e.baseState=m,e.baseQueue=w,a.lastRenderedState=c}return o===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Iu(e){var t=$e(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var a=n.dispatch,o=n.pending,c=t.memoizedState;if(o!==null){n.pending=null;var m=o=o.next;do c=e(c,m.action),m=m.next;while(m!==o);Rt(c,t.memoizedState)||(Ie=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),n.lastRenderedState=c}return[c,a]}function qd(e,t,n){var a=be,o=$e(),c=Oe;if(c){if(n===void 0)throw Error(r(407));n=n()}else n=t();var m=!Rt((Ue||o).memoizedState,n);if(m&&(o.memoizedState=n,Ie=!0),o=o.queue,nc(Gd.bind(null,a,o,e),[e]),o.getSnapshot!==t||m||Fe!==null&&Fe.memoizedState.tag&1){if(a.flags|=2048,va(9,{destroy:void 0},Vd.bind(null,a,o,n,t),null),Be===null)throw Error(r(349));c||(wn&127)!==0||Yd(a,t,n)}return n}function Yd(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=be.updateQueue,t===null?(t=Tr(),be.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Vd(e,t,n,a){t.value=n,t.getSnapshot=a,Xd(t)&&Qd(e)}function Gd(e,t,n){return n(function(){Xd(t)&&Qd(e)})}function Xd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Rt(e,n)}catch{return!0}}function Qd(e){var t=Tl(e,2);t!==null&&xt(t,e,2)}function ec(e){var t=ht();if(typeof e=="function"){var n=e;if(e=n(),Ll){Yn(!0);try{n()}finally{Yn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cn,lastRenderedState:e},t}function Zd(e,t,n,a){return e.baseState=n,Fu(e,Ue,typeof a=="function"?a:Cn)}function P0(e,t,n,a,o){if(Mr(e))throw Error(r(485));if(e=t.action,e!==null){var c={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){c.listeners.push(m)}};L.T!==null?n(!0):c.isTransition=!1,a(c),n=t.pending,n===null?(c.next=t.pending=c,Kd(t,c)):(c.next=n.next,t.pending=n.next=c)}}function Kd(e,t){var n=t.action,a=t.payload,o=e.state;if(t.isTransition){var c=L.T,m={};L.T=m;try{var S=n(o,a),w=L.S;w!==null&&w(m,S),Jd(e,t,S)}catch(j){tc(e,t,j)}finally{c!==null&&m.types!==null&&(c.types=m.types),L.T=c}}else try{c=n(o,a),Jd(e,t,c)}catch(j){tc(e,t,j)}}function Jd(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){$d(e,t,a)},function(a){return tc(e,t,a)}):$d(e,t,n)}function $d(e,t,n){t.status="fulfilled",t.value=n,Wd(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Kd(e,n)))}function tc(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,Wd(t),t=t.next;while(t!==a)}e.action=null}function Wd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Pd(e,t){return t}function Fd(e,t){if(Oe){var n=Be.formState;if(n!==null){e:{var a=be;if(Oe){if(qe){t:{for(var o=qe,c=Yt;o.nodeType!==8;){if(!c){o=null;break t}if(o=Gt(o.nextSibling),o===null){o=null;break t}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){qe=Gt(o.nextSibling),a=o.data==="F!";break e}}Zn(a)}a=!1}a&&(t=n[0])}}return n=ht(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pd,lastRenderedState:t},n.queue=a,n=ym.bind(null,be,a),a.dispatch=n,a=ec(!1),c=oc.bind(null,be,!1,a.queue),a=ht(),o={state:t,dispatch:null,action:e,pending:null},a.queue=o,n=P0.bind(null,be,o,c,n),o.dispatch=n,a.memoizedState=e,[t,n,!1]}function Id(e){var t=$e();return em(t,Ue,e)}function em(e,t,n){if(t=Fu(e,t,Pd)[0],e=Ar(Cn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=fi(t)}catch(m){throw m===fa?yr:m}else a=t;t=$e();var o=t.queue,c=o.dispatch;return n!==t.memoizedState&&(be.flags|=2048,va(9,{destroy:void 0},F0.bind(null,o,n),null)),[a,c,e]}function F0(e,t){e.action=t}function tm(e){var t=$e(),n=Ue;if(n!==null)return em(t,n,e);$e(),t=t.memoizedState,n=$e();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function va(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=be.updateQueue,t===null&&(t=Tr(),be.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function nm(){return $e().memoizedState}function _r(e,t,n,a){var o=ht();be.flags|=e,o.memoizedState=va(1|t,{destroy:void 0},n,a===void 0?null:a)}function Or(e,t,n,a){var o=$e();a=a===void 0?null:a;var c=o.memoizedState.inst;Ue!==null&&a!==null&&Zu(a,Ue.memoizedState.deps)?o.memoizedState=va(t,c,n,a):(be.flags|=e,o.memoizedState=va(1|t,c,n,a))}function lm(e,t){_r(8390656,8,e,t)}function nc(e,t){Or(2048,8,e,t)}function I0(e){be.flags|=4;var t=be.updateQueue;if(t===null)t=Tr(),be.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function am(e){var t=$e().memoizedState;return I0({ref:t,nextImpl:e}),function(){if((Ne&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function im(e,t){return Or(4,2,e,t)}function rm(e,t){return Or(4,4,e,t)}function om(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 um(e,t,n){n=n!=null?n.concat([e]):null,Or(4,4,om.bind(null,t,e),n)}function lc(){}function cm(e,t){var n=$e();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&Zu(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function sm(e,t){var n=$e();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&Zu(t,a[1]))return a[0];if(a=e(),Ll){Yn(!0);try{e()}finally{Yn(!1)}}return n.memoizedState=[a,t],a}function ac(e,t,n){return n===void 0||(wn&1073741824)!==0&&(Re&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=fh(),be.lanes|=e,tl|=e,n)}function fm(e,t,n,a){return Rt(n,t)?n:ma.current!==null?(e=ac(e,n,a),Rt(e,t)||(Ie=!0),e):(wn&42)===0||(wn&1073741824)!==0&&(Re&261930)===0?(Ie=!0,e.memoizedState=n):(e=fh(),be.lanes|=e,tl|=e,t)}function dm(e,t,n,a,o){var c=Z.p;Z.p=c!==0&&8>c?c:8;var m=L.T,S={};L.T=S,oc(e,!1,t,n);try{var w=o(),j=L.S;if(j!==null&&j(S,w),w!==null&&typeof w=="object"&&typeof w.then=="function"){var k=J0(w,a);di(e,t,k,Nt(e))}else di(e,t,a,Nt(e))}catch(Q){di(e,t,{then:function(){},status:"rejected",reason:Q},Nt())}finally{Z.p=c,m!==null&&S.types!==null&&(m.types=S.types),L.T=m}}function eb(){}function ic(e,t,n,a){if(e.tag!==5)throw Error(r(476));var o=mm(e).queue;dm(e,o,t,J,n===null?eb:function(){return hm(e),n(a)})}function mm(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cn,lastRenderedState:J},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function hm(e){var t=mm(e);t.next===null&&(t=e.alternate.memoizedState),di(e,t.next.queue,{},Nt())}function rc(){return ut(Oi)}function pm(){return $e().memoizedState}function vm(){return $e().memoizedState}function tb(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Nt();e=$n(n);var a=Wn(t,e,n);a!==null&&(xt(a,t,n),oi(a,t,n)),t={cache:Uu()},e.payload=t;return}t=t.return}}function nb(e,t,n){var a=Nt();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Mr(e)?gm(t,n):(n=Cu(e,t,n,a),n!==null&&(xt(n,e,a),bm(n,t,a)))}function ym(e,t,n){var a=Nt();di(e,t,n,a)}function di(e,t,n,a){var o={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Mr(e))gm(t,o);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var m=t.lastRenderedState,S=c(m,n);if(o.hasEagerState=!0,o.eagerState=S,Rt(S,m))return sr(e,t,o,0),Be===null&&cr(),!1}catch{}finally{}if(n=Cu(e,t,o,a),n!==null)return xt(n,e,a),bm(n,t,a),!0}return!1}function oc(e,t,n,a){if(a={lane:2,revertLane:kc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Mr(e)){if(t)throw Error(r(479))}else t=Cu(e,n,a,2),t!==null&&xt(t,e,2)}function Mr(e){var t=e.alternate;return e===be||t!==null&&t===be}function gm(e,t){ha=wr=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function bm(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Cf(e,n)}}var mi={readContext:ut,use:Rr,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useLayoutEffect:Qe,useInsertionEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useSyncExternalStore:Qe,useId:Qe,useHostTransitionStatus:Qe,useFormState:Qe,useActionState:Qe,useOptimistic:Qe,useMemoCache:Qe,useCacheRefresh:Qe};mi.useEffectEvent=Qe;var Sm={readContext:ut,use:Rr,useCallback:function(e,t){return ht().memoizedState=[e,t===void 0?null:t],e},useContext:ut,useEffect:lm,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,_r(4194308,4,om.bind(null,t,e),n)},useLayoutEffect:function(e,t){return _r(4194308,4,e,t)},useInsertionEffect:function(e,t){_r(4,2,e,t)},useMemo:function(e,t){var n=ht();t=t===void 0?null:t;var a=e();if(Ll){Yn(!0);try{e()}finally{Yn(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=ht();if(n!==void 0){var o=n(t);if(Ll){Yn(!0);try{n(t)}finally{Yn(!1)}}}else o=t;return a.memoizedState=a.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},a.queue=e,e=e.dispatch=nb.bind(null,be,e),[a.memoizedState,e]},useRef:function(e){var t=ht();return e={current:e},t.memoizedState=e},useState:function(e){e=ec(e);var t=e.queue,n=ym.bind(null,be,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:lc,useDeferredValue:function(e,t){var n=ht();return ac(n,e,t)},useTransition:function(){var e=ec(!1);return e=dm.bind(null,be,e.queue,!0,!1),ht().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=be,o=ht();if(Oe){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),Be===null)throw Error(r(349));(Re&127)!==0||Yd(a,t,n)}o.memoizedState=n;var c={value:n,getSnapshot:t};return o.queue=c,lm(Gd.bind(null,a,c,e),[e]),a.flags|=2048,va(9,{destroy:void 0},Vd.bind(null,a,c,n,t),null),n},useId:function(){var e=ht(),t=Be.identifierPrefix;if(Oe){var n=rn,a=an;n=(a&~(1<<32-Tt(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Cr++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=$0++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:rc,useFormState:Fd,useActionState:Fd,useOptimistic:function(e){var t=ht();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=oc.bind(null,be,!0,n),n.dispatch=t,[e,t]},useMemoCache:Pu,useCacheRefresh:function(){return ht().memoizedState=tb.bind(null,be)},useEffectEvent:function(e){var t=ht(),n={impl:e};return t.memoizedState=n,function(){if((Ne&2)!==0)throw Error(r(440));return n.impl.apply(void 0,arguments)}}},uc={readContext:ut,use:Rr,useCallback:cm,useContext:ut,useEffect:nc,useImperativeHandle:um,useInsertionEffect:im,useLayoutEffect:rm,useMemo:sm,useReducer:Ar,useRef:nm,useState:function(){return Ar(Cn)},useDebugValue:lc,useDeferredValue:function(e,t){var n=$e();return fm(n,Ue.memoizedState,e,t)},useTransition:function(){var e=Ar(Cn)[0],t=$e().memoizedState;return[typeof e=="boolean"?e:fi(e),t]},useSyncExternalStore:qd,useId:pm,useHostTransitionStatus:rc,useFormState:Id,useActionState:Id,useOptimistic:function(e,t){var n=$e();return Zd(n,Ue,e,t)},useMemoCache:Pu,useCacheRefresh:vm};uc.useEffectEvent=am;var xm={readContext:ut,use:Rr,useCallback:cm,useContext:ut,useEffect:nc,useImperativeHandle:um,useInsertionEffect:im,useLayoutEffect:rm,useMemo:sm,useReducer:Iu,useRef:nm,useState:function(){return Iu(Cn)},useDebugValue:lc,useDeferredValue:function(e,t){var n=$e();return Ue===null?ac(n,e,t):fm(n,Ue.memoizedState,e,t)},useTransition:function(){var e=Iu(Cn)[0],t=$e().memoizedState;return[typeof e=="boolean"?e:fi(e),t]},useSyncExternalStore:qd,useId:pm,useHostTransitionStatus:rc,useFormState:tm,useActionState:tm,useOptimistic:function(e,t){var n=$e();return Ue!==null?Zd(n,Ue,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Pu,useCacheRefresh:vm};xm.useEffectEvent=am;function cc(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:g({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var sc={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=Nt(),o=$n(a);o.payload=t,n!=null&&(o.callback=n),t=Wn(e,o,a),t!==null&&(xt(t,e,a),oi(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Nt(),o=$n(a);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Wn(e,o,a),t!==null&&(xt(t,e,a),oi(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Nt(),a=$n(n);a.tag=2,t!=null&&(a.callback=t),t=Wn(e,a,n),t!==null&&(xt(t,e,n),oi(t,e,n))}};function Em(e,t,n,a,o,c,m){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,c,m):t.prototype&&t.prototype.isPureReactComponent?!Ia(n,a)||!Ia(o,c):!0}function wm(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&sc.enqueueReplaceState(t,t.state,null)}function Ul(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=g({},n));for(var o in e)n[o]===void 0&&(n[o]=e[o])}return n}function Cm(e){ur(e)}function Tm(e){console.error(e)}function Rm(e){ur(e)}function zr(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Am(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function fc(e,t,n){return n=$n(n),n.tag=3,n.payload={element:null},n.callback=function(){zr(e,t)},n}function _m(e){return e=$n(e),e.tag=3,e}function Om(e,t,n,a){var o=n.type.getDerivedStateFromError;if(typeof o=="function"){var c=a.value;e.payload=function(){return o(c)},e.callback=function(){Am(t,n,a)}}var m=n.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(e.callback=function(){Am(t,n,a),typeof o!="function"&&(nl===null?nl=new Set([this]):nl.add(this));var S=a.stack;this.componentDidCatch(a.value,{componentStack:S!==null?S:""})})}function lb(e,t,n,a,o){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&ua(t,n,o,!0),n=_t.current,n!==null){switch(n.tag){case 31:case 13:return Vt===null?Gr():n.alternate===null&&Ze===0&&(Ze=3),n.flags&=-257,n.flags|=65536,n.lanes=o,a===gr?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),jc(e,a,o)),!1;case 22:return n.flags|=65536,a===gr?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),jc(e,a,o)),!1}throw Error(r(435,n.tag))}return jc(e,a,o),Gr(),!1}if(Oe)return t=_t.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,a!==Mu&&(e=Error(r(422),{cause:a}),ni(Bt(e,n)))):(a!==Mu&&(t=Error(r(423),{cause:a}),ni(Bt(t,n))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,a=Bt(a,n),o=fc(e.stateNode,a,o),Yu(e,o),Ze!==4&&(Ze=2)),!1;var c=Error(r(520),{cause:a});if(c=Bt(c,n),xi===null?xi=[c]:xi.push(c),Ze!==4&&(Ze=2),t===null)return!0;a=Bt(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,e=fc(n.stateNode,a,e),Yu(n,e),!1;case 1:if(t=n.type,c=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(nl===null||!nl.has(c))))return n.flags|=65536,o&=-o,n.lanes|=o,o=_m(o),Om(o,e,n,a),Yu(n,o),!1}n=n.return}while(n!==null);return!1}var dc=Error(r(461)),Ie=!1;function ct(e,t,n,a){t.child=e===null?Dd(t,null,n,a):Dl(t,e.child,n,a)}function Mm(e,t,n,a,o){n=n.render;var c=t.ref;if("ref"in a){var m={};for(var S in a)S!=="ref"&&(m[S]=a[S])}else m=a;return Ol(t),a=Ku(e,t,n,m,c,o),S=Ju(),e!==null&&!Ie?($u(e,t,o),Tn(e,t,o)):(Oe&&S&&_u(t),t.flags|=1,ct(e,t,a,o),t.child)}function zm(e,t,n,a,o){if(e===null){var c=n.type;return typeof c=="function"&&!Tu(c)&&c.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=c,Nm(e,t,c,a,o)):(e=dr(n.type,null,a,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Sc(e,o)){var m=c.memoizedProps;if(n=n.compare,n=n!==null?n:Ia,n(m,a)&&e.ref===t.ref)return Tn(e,t,o)}return t.flags|=1,e=bn(c,a),e.ref=t.ref,e.return=t,t.child=e}function Nm(e,t,n,a,o){if(e!==null){var c=e.memoizedProps;if(Ia(c,a)&&e.ref===t.ref)if(Ie=!1,t.pendingProps=a=c,Sc(e,o))(e.flags&131072)!==0&&(Ie=!0);else return t.lanes=e.lanes,Tn(e,t,o)}return mc(e,t,n,a,o)}function Dm(e,t,n,a){var o=a.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|n:n,e!==null){for(a=t.child=e.child,o=0;a!==null;)o=o|a.lanes|a.childLanes,a=a.sibling;a=o&~c}else a=0,t.child=null;return Lm(e,t,c,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&vr(t,c!==null?c.cachePool:null),c!==null?jd(t,c):Gu(),Hd(t);else return a=t.lanes=536870912,Lm(e,t,c!==null?c.baseLanes|n:n,n,a)}else c!==null?(vr(t,c.cachePool),jd(t,c),Fn(),t.memoizedState=null):(e!==null&&vr(t,null),Gu(),Fn());return ct(e,t,o,n),t.child}function hi(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Lm(e,t,n,a,o){var c=Hu();return c=c===null?null:{parent:Pe._currentValue,pool:c},t.memoizedState={baseLanes:n,cachePool:c},e!==null&&vr(t,null),Gu(),Hd(t),e!==null&&ua(e,t,a,!0),t.childLanes=o,null}function Nr(e,t){return t=Lr({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Um(e,t,n){return Dl(t,e.child,null,n),e=Nr(t,t.pendingProps),e.flags|=2,Ot(t),t.memoizedState=null,e}function ab(e,t,n){var a=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Oe){if(a.mode==="hidden")return e=Nr(t,a),t.lanes=536870912,hi(null,e);if(Qu(t),(e=qe)?(e=Kh(e,Yt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Xn!==null?{id:an,overflow:rn}:null,retryLane:536870912,hydrationErrors:null},n=gd(e),n.return=t,t.child=n,ot=t,qe=null)):e=null,e===null)throw Zn(t);return t.lanes=536870912,null}return Nr(t,a)}var c=e.memoizedState;if(c!==null){var m=c.dehydrated;if(Qu(t),o)if(t.flags&256)t.flags&=-257,t=Um(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(Ie||ua(e,t,n,!1),o=(n&e.childLanes)!==0,Ie||o){if(a=Be,a!==null&&(m=Tf(a,n),m!==0&&m!==c.retryLane))throw c.retryLane=m,Tl(e,m),xt(a,e,m),dc;Gr(),t=Um(e,t,n)}else e=c.treeContext,qe=Gt(m.nextSibling),ot=t,Oe=!0,Qn=null,Yt=!1,e!==null&&xd(t,e),t=Nr(t,a),t.flags|=4096;return t}return e=bn(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Dr(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(r(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function mc(e,t,n,a,o){return Ol(t),n=Ku(e,t,n,a,void 0,o),a=Ju(),e!==null&&!Ie?($u(e,t,o),Tn(e,t,o)):(Oe&&a&&_u(t),t.flags|=1,ct(e,t,n,o),t.child)}function jm(e,t,n,a,o,c){return Ol(t),t.updateQueue=null,n=kd(t,a,n,o),Bd(e),a=Ju(),e!==null&&!Ie?($u(e,t,c),Tn(e,t,c)):(Oe&&a&&_u(t),t.flags|=1,ct(e,t,n,c),t.child)}function Hm(e,t,n,a,o){if(Ol(t),t.stateNode===null){var c=aa,m=n.contextType;typeof m=="object"&&m!==null&&(c=ut(m)),c=new n(a,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=sc,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=a,c.state=t.memoizedState,c.refs={},ku(t),m=n.contextType,c.context=typeof m=="object"&&m!==null?ut(m):aa,c.state=t.memoizedState,m=n.getDerivedStateFromProps,typeof m=="function"&&(cc(t,n,m,a),c.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(m=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),m!==c.state&&sc.enqueueReplaceState(c,c.state,null),ci(t,a,c,o),ui(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){c=t.stateNode;var S=t.memoizedProps,w=Ul(n,S);c.props=w;var j=c.context,k=n.contextType;m=aa,typeof k=="object"&&k!==null&&(m=ut(k));var Q=n.getDerivedStateFromProps;k=typeof Q=="function"||typeof c.getSnapshotBeforeUpdate=="function",S=t.pendingProps!==S,k||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(S||j!==m)&&wm(t,c,a,m),Jn=!1;var H=t.memoizedState;c.state=H,ci(t,a,c,o),ui(),j=t.memoizedState,S||H!==j||Jn?(typeof Q=="function"&&(cc(t,n,Q,a),j=t.memoizedState),(w=Jn||Em(t,n,w,a,H,j,m))?(k||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=j),c.props=a,c.state=j,c.context=m,a=w):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{c=t.stateNode,qu(e,t),m=t.memoizedProps,k=Ul(n,m),c.props=k,Q=t.pendingProps,H=c.context,j=n.contextType,w=aa,typeof j=="object"&&j!==null&&(w=ut(j)),S=n.getDerivedStateFromProps,(j=typeof S=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(m!==Q||H!==w)&&wm(t,c,a,w),Jn=!1,H=t.memoizedState,c.state=H,ci(t,a,c,o),ui();var B=t.memoizedState;m!==Q||H!==B||Jn||e!==null&&e.dependencies!==null&&hr(e.dependencies)?(typeof S=="function"&&(cc(t,n,S,a),B=t.memoizedState),(k=Jn||Em(t,n,k,a,H,B,w)||e!==null&&e.dependencies!==null&&hr(e.dependencies))?(j||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(a,B,w),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(a,B,w)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||m===e.memoizedProps&&H===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&H===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=B),c.props=a,c.state=B,c.context=w,a=k):(typeof c.componentDidUpdate!="function"||m===e.memoizedProps&&H===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&H===e.memoizedState||(t.flags|=1024),a=!1)}return c=a,Dr(e,t),a=(t.flags&128)!==0,c||a?(c=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&a?(t.child=Dl(t,e.child,null,o),t.child=Dl(t,null,n,o)):ct(e,t,n,o),t.memoizedState=c.state,e=t.child):e=Tn(e,t,o),e}function Bm(e,t,n,a){return Al(),t.flags|=256,ct(e,t,n,a),t.child}var hc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function pc(e){return{baseLanes:e,cachePool:Ad()}}function vc(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=zt),e}function km(e,t,n){var a=t.pendingProps,o=!1,c=(t.flags&128)!==0,m;if((m=c)||(m=e!==null&&e.memoizedState===null?!1:(Je.current&2)!==0),m&&(o=!0,t.flags&=-129),m=(t.flags&32)!==0,t.flags&=-33,e===null){if(Oe){if(o?Pn(t):Fn(),(e=qe)?(e=Kh(e,Yt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Xn!==null?{id:an,overflow:rn}:null,retryLane:536870912,hydrationErrors:null},n=gd(e),n.return=t,t.child=n,ot=t,qe=null)):e=null,e===null)throw Zn(t);return Fc(e)?t.lanes=32:t.lanes=536870912,null}var S=a.children;return a=a.fallback,o?(Fn(),o=t.mode,S=Lr({mode:"hidden",children:S},o),a=Rl(a,o,n,null),S.return=t,a.return=t,S.sibling=a,t.child=S,a=t.child,a.memoizedState=pc(n),a.childLanes=vc(e,m,n),t.memoizedState=hc,hi(null,a)):(Pn(t),yc(t,S))}var w=e.memoizedState;if(w!==null&&(S=w.dehydrated,S!==null)){if(c)t.flags&256?(Pn(t),t.flags&=-257,t=gc(e,t,n)):t.memoizedState!==null?(Fn(),t.child=e.child,t.flags|=128,t=null):(Fn(),S=a.fallback,o=t.mode,a=Lr({mode:"visible",children:a.children},o),S=Rl(S,o,n,null),S.flags|=2,a.return=t,S.return=t,a.sibling=S,t.child=a,Dl(t,e.child,null,n),a=t.child,a.memoizedState=pc(n),a.childLanes=vc(e,m,n),t.memoizedState=hc,t=hi(null,a));else if(Pn(t),Fc(S)){if(m=S.nextSibling&&S.nextSibling.dataset,m)var j=m.dgst;m=j,a=Error(r(419)),a.stack="",a.digest=m,ni({value:a,source:null,stack:null}),t=gc(e,t,n)}else if(Ie||ua(e,t,n,!1),m=(n&e.childLanes)!==0,Ie||m){if(m=Be,m!==null&&(a=Tf(m,n),a!==0&&a!==w.retryLane))throw w.retryLane=a,Tl(e,a),xt(m,e,a),dc;Pc(S)||Gr(),t=gc(e,t,n)}else Pc(S)?(t.flags|=192,t.child=e.child,t=null):(e=w.treeContext,qe=Gt(S.nextSibling),ot=t,Oe=!0,Qn=null,Yt=!1,e!==null&&xd(t,e),t=yc(t,a.children),t.flags|=4096);return t}return o?(Fn(),S=a.fallback,o=t.mode,w=e.child,j=w.sibling,a=bn(w,{mode:"hidden",children:a.children}),a.subtreeFlags=w.subtreeFlags&65011712,j!==null?S=bn(j,S):(S=Rl(S,o,n,null),S.flags|=2),S.return=t,a.return=t,a.sibling=S,t.child=a,hi(null,a),a=t.child,S=e.child.memoizedState,S===null?S=pc(n):(o=S.cachePool,o!==null?(w=Pe._currentValue,o=o.parent!==w?{parent:w,pool:w}:o):o=Ad(),S={baseLanes:S.baseLanes|n,cachePool:o}),a.memoizedState=S,a.childLanes=vc(e,m,n),t.memoizedState=hc,hi(e.child,a)):(Pn(t),n=e.child,e=n.sibling,n=bn(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(m=t.deletions,m===null?(t.deletions=[e],t.flags|=16):m.push(e)),t.child=n,t.memoizedState=null,n)}function yc(e,t){return t=Lr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Lr(e,t){return e=At(22,e,null,t),e.lanes=0,e}function gc(e,t,n){return Dl(t,e.child,null,n),e=yc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function qm(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Du(e.return,t,n)}function bc(e,t,n,a,o,c){var m=e.memoizedState;m===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:o,treeForkCount:c}:(m.isBackwards=t,m.rendering=null,m.renderingStartTime=0,m.last=a,m.tail=n,m.tailMode=o,m.treeForkCount=c)}function Ym(e,t,n){var a=t.pendingProps,o=a.revealOrder,c=a.tail;a=a.children;var m=Je.current,S=(m&2)!==0;if(S?(m=m&1|2,t.flags|=128):m&=1,P(Je,m),ct(e,t,a,n),a=Oe?ti:0,!S&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&qm(e,n,t);else if(e.tag===19)qm(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(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Er(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),bc(t,!1,o,n,c,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Er(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}bc(t,!0,n,null,c,a);break;case"together":bc(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function Tn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),tl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(ua(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,n=bn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=bn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Sc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&hr(e)))}function ib(e,t,n){switch(t.tag){case 3:ve(t,t.stateNode.containerInfo),Kn(t,Pe,e.memoizedState.cache),Al();break;case 27:case 5:_e(t);break;case 4:ve(t,t.stateNode.containerInfo);break;case 10:Kn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Qu(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(Pn(t),t.flags|=128,null):(n&t.child.childLanes)!==0?km(e,t,n):(Pn(t),e=Tn(e,t,n),e!==null?e.sibling:null);Pn(t);break;case 19:var o=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(ua(e,t,n,!1),a=(n&t.childLanes)!==0),o){if(a)return Ym(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),P(Je,Je.current),a)break;return null;case 22:return t.lanes=0,Dm(e,t,n,t.pendingProps);case 24:Kn(t,Pe,e.memoizedState.cache)}return Tn(e,t,n)}function Vm(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ie=!0;else{if(!Sc(e,n)&&(t.flags&128)===0)return Ie=!1,ib(e,t,n);Ie=(e.flags&131072)!==0}else Ie=!1,Oe&&(t.flags&1048576)!==0&&Sd(t,ti,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=zl(t.elementType),t.type=e,typeof e=="function")Tu(e)?(a=Ul(e,a),t.tag=1,t=Hm(null,t,e,a,n)):(t.tag=0,t=mc(null,t,e,a,n));else{if(e!=null){var o=e.$$typeof;if(o===q){t.tag=11,t=Mm(null,t,e,a,n);break e}else if(o===Y){t.tag=14,t=zm(null,t,e,a,n);break e}}throw t=me(e)||e,Error(r(306,t,""))}}return t;case 0:return mc(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,o=Ul(a,t.pendingProps),Hm(e,t,a,o,n);case 3:e:{if(ve(t,t.stateNode.containerInfo),e===null)throw Error(r(387));a=t.pendingProps;var c=t.memoizedState;o=c.element,qu(e,t),ci(t,a,null,n);var m=t.memoizedState;if(a=m.cache,Kn(t,Pe,a),a!==c.cache&&Lu(t,[Pe],n,!0),ui(),a=m.element,c.isDehydrated)if(c={element:a,isDehydrated:!1,cache:m.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=Bm(e,t,a,n);break e}else if(a!==o){o=Bt(Error(r(424)),t),ni(o),t=Bm(e,t,a,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(qe=Gt(e.firstChild),ot=t,Oe=!0,Qn=null,Yt=!0,n=Dd(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Al(),a===o){t=Tn(e,t,n);break e}ct(e,t,a,n)}t=t.child}return t;case 26:return Dr(e,t),e===null?(n=Ih(t.type,null,t.pendingProps,null))?t.memoizedState=n:Oe||(n=t.type,e=t.pendingProps,a=Wr(ie.current).createElement(n),a[rt]=t,a[pt]=e,st(a,n,e),at(a),t.stateNode=a):t.memoizedState=Ih(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return _e(t),e===null&&Oe&&(a=t.stateNode=Wh(t.type,t.pendingProps,ie.current),ot=t,Yt=!0,o=qe,rl(t.type)?(Ic=o,qe=Gt(a.firstChild)):qe=o),ct(e,t,t.pendingProps.children,n),Dr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Oe&&((o=a=qe)&&(a=Ub(a,t.type,t.pendingProps,Yt),a!==null?(t.stateNode=a,ot=t,qe=Gt(a.firstChild),Yt=!1,o=!0):o=!1),o||Zn(t)),_e(t),o=t.type,c=t.pendingProps,m=e!==null?e.memoizedProps:null,a=c.children,Jc(o,c)?a=null:m!==null&&Jc(o,m)&&(t.flags|=32),t.memoizedState!==null&&(o=Ku(e,t,W0,null,null,n),Oi._currentValue=o),Dr(e,t),ct(e,t,a,n),t.child;case 6:return e===null&&Oe&&((e=n=qe)&&(n=jb(n,t.pendingProps,Yt),n!==null?(t.stateNode=n,ot=t,qe=null,e=!0):e=!1),e||Zn(t)),null;case 13:return km(e,t,n);case 4:return ve(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Dl(t,null,a,n):ct(e,t,a,n),t.child;case 11:return Mm(e,t,t.type,t.pendingProps,n);case 7:return ct(e,t,t.pendingProps,n),t.child;case 8:return ct(e,t,t.pendingProps.children,n),t.child;case 12:return ct(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,Kn(t,t.type,a.value),ct(e,t,a.children,n),t.child;case 9:return o=t.type._context,a=t.pendingProps.children,Ol(t),o=ut(o),a=a(o),t.flags|=1,ct(e,t,a,n),t.child;case 14:return zm(e,t,t.type,t.pendingProps,n);case 15:return Nm(e,t,t.type,t.pendingProps,n);case 19:return Ym(e,t,n);case 31:return ab(e,t,n);case 22:return Dm(e,t,n,t.pendingProps);case 24:return Ol(t),a=ut(Pe),e===null?(o=Hu(),o===null&&(o=Be,c=Uu(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=n),o=c),t.memoizedState={parent:a,cache:o},ku(t),Kn(t,Pe,o)):((e.lanes&n)!==0&&(qu(e,t),ci(t,null,null,n),ui()),o=e.memoizedState,c=t.memoizedState,o.parent!==a?(o={parent:a,cache:a},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),Kn(t,Pe,a)):(a=c.cache,Kn(t,Pe,a),a!==o.cache&&Lu(t,[Pe],n,!0))),ct(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function Rn(e){e.flags|=4}function xc(e,t,n,a,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(ph())e.flags|=8192;else throw Nl=gr,Bu}else e.flags&=-16777217}function Gm(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!ap(t))if(ph())e.flags|=8192;else throw Nl=gr,Bu}function Ur(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Ef():536870912,e.lanes|=t,Sa|=t)}function pi(e,t){if(!Oe)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 a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Ye(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,a|=o.subtreeFlags&65011712,a|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,a|=o.subtreeFlags,a|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function rb(e,t,n){var a=t.pendingProps;switch(Ou(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ye(t),null;case 1:return Ye(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),En(Pe),ue(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(oa(t)?Rn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,zu())),Ye(t),null;case 26:var o=t.type,c=t.memoizedState;return e===null?(Rn(t),c!==null?(Ye(t),Gm(t,c)):(Ye(t),xc(t,o,null,a,n))):c?c!==e.memoizedState?(Rn(t),Ye(t),Gm(t,c)):(Ye(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&Rn(t),Ye(t),xc(t,o,e,a,n)),null;case 27:if(Ee(t),n=ie.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Rn(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Ye(t),null}e=I.current,oa(t)?Ed(t):(e=Wh(o,a,n),t.stateNode=e,Rn(t))}return Ye(t),null;case 5:if(Ee(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Rn(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Ye(t),null}if(c=I.current,oa(t))Ed(t);else{var m=Wr(ie.current);switch(c){case 1:c=m.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:c=m.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":c=m.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":c=m.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":c=m.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof a.is=="string"?m.createElement("select",{is:a.is}):m.createElement("select"),a.multiple?c.multiple=!0:a.size&&(c.size=a.size);break;default:c=typeof a.is=="string"?m.createElement(o,{is:a.is}):m.createElement(o)}}c[rt]=t,c[pt]=a;e:for(m=t.child;m!==null;){if(m.tag===5||m.tag===6)c.appendChild(m.stateNode);else if(m.tag!==4&&m.tag!==27&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===t)break e;for(;m.sibling===null;){if(m.return===null||m.return===t)break e;m=m.return}m.sibling.return=m.return,m=m.sibling}t.stateNode=c;e:switch(st(c,o,a),o){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Rn(t)}}return Ye(t),xc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Rn(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(r(166));if(e=ie.current,oa(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,o=ot,o!==null)switch(o.tag){case 27:case 5:a=o.memoizedProps}e[rt]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||kh(e.nodeValue,n)),e||Zn(t,!0)}else e=Wr(e).createTextNode(a),e[rt]=t,t.stateNode=e}return Ye(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=oa(t),n!==null){if(e===null){if(!a)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[rt]=t}else Al(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ye(t),e=!1}else n=zu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Ot(t),t):(Ot(t),null);if((t.flags&128)!==0)throw Error(r(558))}return Ye(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=oa(t),a!==null&&a.dehydrated!==null){if(e===null){if(!o)throw Error(r(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));o[rt]=t}else Al(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ye(t),o=!1}else o=zu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(Ot(t),t):(Ot(t),null)}return Ot(t),(t.flags&128)!==0?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,o=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(o=a.alternate.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==o&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Ur(t,t.updateQueue),Ye(t),null);case 4:return ue(),e===null&&Gc(t.stateNode.containerInfo),Ye(t),null;case 10:return En(t.type),Ye(t),null;case 19:if(V(Je),a=t.memoizedState,a===null)return Ye(t),null;if(o=(t.flags&128)!==0,c=a.rendering,c===null)if(o)pi(a,!1);else{if(Ze!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=Er(e),c!==null){for(t.flags|=128,pi(a,!1),e=c.updateQueue,t.updateQueue=e,Ur(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)yd(n,e),n=n.sibling;return P(Je,Je.current&1|2),Oe&&Sn(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&wt()>qr&&(t.flags|=128,o=!0,pi(a,!1),t.lanes=4194304)}else{if(!o)if(e=Er(c),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,Ur(t,e),pi(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!Oe)return Ye(t),null}else 2*wt()-a.renderingStartTime>qr&&n!==536870912&&(t.flags|=128,o=!0,pi(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(e=a.last,e!==null?e.sibling=c:t.child=c,a.last=c)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=wt(),e.sibling=null,n=Je.current,P(Je,o?n&1|2:n&1),Oe&&Sn(t,a.treeForkCount),e):(Ye(t),null);case 22:case 23:return Ot(t),Xu(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(Ye(t),t.subtreeFlags&6&&(t.flags|=8192)):Ye(t),n=t.updateQueue,n!==null&&Ur(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&V(Ml),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),En(Pe),Ye(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function ob(e,t){switch(Ou(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return En(Pe),ue(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ee(t),null;case 31:if(t.memoizedState!==null){if(Ot(t),t.alternate===null)throw Error(r(340));Al()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Ot(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Al()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return V(Je),null;case 4:return ue(),null;case 10:return En(t.type),null;case 22:case 23:return Ot(t),Xu(),e!==null&&V(Ml),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return En(Pe),null;case 25:return null;default:return null}}function Xm(e,t){switch(Ou(t),t.tag){case 3:En(Pe),ue();break;case 26:case 27:case 5:Ee(t);break;case 4:ue();break;case 31:t.memoizedState!==null&&Ot(t);break;case 13:Ot(t);break;case 19:V(Je);break;case 10:En(t.type);break;case 22:case 23:Ot(t),Xu(),e!==null&&V(Ml);break;case 24:En(Pe)}}function vi(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var o=a.next;n=o;do{if((n.tag&e)===e){a=void 0;var c=n.create,m=n.inst;a=c(),m.destroy=a}n=n.next}while(n!==o)}}catch(S){Le(t,t.return,S)}}function In(e,t,n){try{var a=t.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var c=o.next;a=c;do{if((a.tag&e)===e){var m=a.inst,S=m.destroy;if(S!==void 0){m.destroy=void 0,o=t;var w=n,j=S;try{j()}catch(k){Le(o,w,k)}}}a=a.next}while(a!==c)}}catch(k){Le(t,t.return,k)}}function Qm(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ud(t,n)}catch(a){Le(e,e.return,a)}}}function Zm(e,t,n){n.props=Ul(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){Le(e,t,a)}}function yi(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(o){Le(e,t,o)}}function on(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(o){Le(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(o){Le(e,t,o)}else n.current=null}function Km(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(o){Le(e,e.return,o)}}function Ec(e,t,n){try{var a=e.stateNode;Ob(a,e.type,n,t),a[pt]=t}catch(o){Le(e,e.return,o)}}function Jm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&rl(e.type)||e.tag===4}function wc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Jm(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&&rl(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 Cc(e,t,n){var a=e.tag;if(a===5||a===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=yn));else if(a!==4&&(a===27&&rl(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Cc(e,t,n),e=e.sibling;e!==null;)Cc(e,t,n),e=e.sibling}function jr(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&rl(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(jr(e,t,n),e=e.sibling;e!==null;)jr(e,t,n),e=e.sibling}function $m(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);st(t,a,n),t[rt]=e,t[pt]=n}catch(c){Le(e,e.return,c)}}var An=!1,et=!1,Tc=!1,Wm=typeof WeakSet=="function"?WeakSet:Set,it=null;function ub(e,t){if(e=e.containerInfo,Zc=lo,e=ud(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 a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var o=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break e}var m=0,S=-1,w=-1,j=0,k=0,Q=e,H=null;t:for(;;){for(var B;Q!==n||o!==0&&Q.nodeType!==3||(S=m+o),Q!==c||a!==0&&Q.nodeType!==3||(w=m+a),Q.nodeType===3&&(m+=Q.nodeValue.length),(B=Q.firstChild)!==null;)H=Q,Q=B;for(;;){if(Q===e)break t;if(H===n&&++j===o&&(S=m),H===c&&++k===a&&(w=m),(B=Q.nextSibling)!==null)break;Q=H,H=Q.parentNode}Q=B}n=S===-1||w===-1?null:{start:S,end:w}}else n=null}n=n||{start:0,end:0}}else n=null;for(Kc={focusedElem:e,selectionRange:n},lo=!1,it=t;it!==null;)if(t=it,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,it=e;else for(;it!==null;){switch(t=it,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)o=e[n],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,n=t,o=c.memoizedProps,c=c.memoizedState,a=n.stateNode;try{var le=Ul(n.type,o);e=a.getSnapshotBeforeUpdate(le,c),a.__reactInternalSnapshotBeforeUpdate=e}catch(fe){Le(n,n.return,fe)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Wc(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Wc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=t.sibling,e!==null){e.return=t.return,it=e;break}it=t.return}}function Pm(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:On(e,n),a&4&&vi(5,n);break;case 1:if(On(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(m){Le(n,n.return,m)}else{var o=Ul(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(m){Le(n,n.return,m)}}a&64&&Qm(n),a&512&&yi(n,n.return);break;case 3:if(On(e,n),a&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(m){Le(n,n.return,m)}}break;case 27:t===null&&a&4&&$m(n);case 26:case 5:On(e,n),t===null&&a&4&&Km(n),a&512&&yi(n,n.return);break;case 12:On(e,n);break;case 31:On(e,n),a&4&&eh(e,n);break;case 13:On(e,n),a&4&&th(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=yb.bind(null,n),Hb(e,n))));break;case 22:if(a=n.memoizedState!==null||An,!a){t=t!==null&&t.memoizedState!==null||et,o=An;var c=et;An=a,(et=t)&&!c?Mn(e,n,(n.subtreeFlags&8772)!==0):On(e,n),An=o,et=c}break;case 30:break;default:On(e,n)}}function Fm(e){var t=e.alternate;t!==null&&(e.alternate=null,Fm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&tu(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ve=null,yt=!1;function _n(e,t,n){for(n=n.child;n!==null;)Im(e,t,n),n=n.sibling}function Im(e,t,n){if(Ct&&typeof Ct.onCommitFiberUnmount=="function")try{Ct.onCommitFiberUnmount(Ya,n)}catch{}switch(n.tag){case 26:et||on(n,t),_n(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:et||on(n,t);var a=Ve,o=yt;rl(n.type)&&(Ve=n.stateNode,yt=!1),_n(e,t,n),Ri(n.stateNode),Ve=a,yt=o;break;case 5:et||on(n,t);case 6:if(a=Ve,o=yt,Ve=null,_n(e,t,n),Ve=a,yt=o,Ve!==null)if(yt)try{(Ve.nodeType===9?Ve.body:Ve.nodeName==="HTML"?Ve.ownerDocument.body:Ve).removeChild(n.stateNode)}catch(c){Le(n,t,c)}else try{Ve.removeChild(n.stateNode)}catch(c){Le(n,t,c)}break;case 18:Ve!==null&&(yt?(e=Ve,Qh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),_a(e)):Qh(Ve,n.stateNode));break;case 4:a=Ve,o=yt,Ve=n.stateNode.containerInfo,yt=!0,_n(e,t,n),Ve=a,yt=o;break;case 0:case 11:case 14:case 15:In(2,n,t),et||In(4,n,t),_n(e,t,n);break;case 1:et||(on(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&Zm(n,t,a)),_n(e,t,n);break;case 21:_n(e,t,n);break;case 22:et=(a=et)||n.memoizedState!==null,_n(e,t,n),et=a;break;default:_n(e,t,n)}}function eh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{_a(e)}catch(n){Le(t,t.return,n)}}}function th(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{_a(e)}catch(n){Le(t,t.return,n)}}function cb(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Wm),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Wm),t;default:throw Error(r(435,e.tag))}}function Hr(e,t){var n=cb(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var o=gb.bind(null,e,a);a.then(o,o)}})}function gt(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var o=n[a],c=e,m=t,S=m;e:for(;S!==null;){switch(S.tag){case 27:if(rl(S.type)){Ve=S.stateNode,yt=!1;break e}break;case 5:Ve=S.stateNode,yt=!1;break e;case 3:case 4:Ve=S.stateNode.containerInfo,yt=!0;break e}S=S.return}if(Ve===null)throw Error(r(160));Im(c,m,o),Ve=null,yt=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)nh(t,e),t=t.sibling}var Jt=null;function nh(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:gt(t,e),bt(e),a&4&&(In(3,e,e.return),vi(3,e),In(5,e,e.return));break;case 1:gt(t,e),bt(e),a&512&&(et||n===null||on(n,n.return)),a&64&&An&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var o=Jt;if(gt(t,e),bt(e),a&512&&(et||n===null||on(n,n.return)),a&4){var c=n!==null?n.memoizedState:null;if(a=e.memoizedState,n===null)if(a===null)if(e.stateNode===null){e:{a=e.type,n=e.memoizedProps,o=o.ownerDocument||o;t:switch(a){case"title":c=o.getElementsByTagName("title")[0],(!c||c[Xa]||c[rt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(a),o.head.insertBefore(c,o.querySelector("head > title"))),st(c,a,n),c[rt]=e,at(c),a=c;break e;case"link":var m=np("link","href",o).get(a+(n.href||""));if(m){for(var S=0;S<m.length;S++)if(c=m[S],c.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&c.getAttribute("rel")===(n.rel==null?null:n.rel)&&c.getAttribute("title")===(n.title==null?null:n.title)&&c.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){m.splice(S,1);break t}}c=o.createElement(a),st(c,a,n),o.head.appendChild(c);break;case"meta":if(m=np("meta","content",o).get(a+(n.content||""))){for(S=0;S<m.length;S++)if(c=m[S],c.getAttribute("content")===(n.content==null?null:""+n.content)&&c.getAttribute("name")===(n.name==null?null:n.name)&&c.getAttribute("property")===(n.property==null?null:n.property)&&c.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&c.getAttribute("charset")===(n.charSet==null?null:n.charSet)){m.splice(S,1);break t}}c=o.createElement(a),st(c,a,n),o.head.appendChild(c);break;default:throw Error(r(468,a))}c[rt]=e,at(c),a=c}e.stateNode=a}else lp(o,e.type,e.stateNode);else e.stateNode=tp(o,a,e.memoizedProps);else c!==a?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,a===null?lp(o,e.type,e.stateNode):tp(o,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Ec(e,e.memoizedProps,n.memoizedProps)}break;case 27:gt(t,e),bt(e),a&512&&(et||n===null||on(n,n.return)),n!==null&&a&4&&Ec(e,e.memoizedProps,n.memoizedProps);break;case 5:if(gt(t,e),bt(e),a&512&&(et||n===null||on(n,n.return)),e.flags&32){o=e.stateNode;try{Pl(o,"")}catch(le){Le(e,e.return,le)}}a&4&&e.stateNode!=null&&(o=e.memoizedProps,Ec(e,o,n!==null?n.memoizedProps:o)),a&1024&&(Tc=!0);break;case 6:if(gt(t,e),bt(e),a&4){if(e.stateNode===null)throw Error(r(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(le){Le(e,e.return,le)}}break;case 3:if(Ir=null,o=Jt,Jt=Pr(t.containerInfo),gt(t,e),Jt=o,bt(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{_a(t.containerInfo)}catch(le){Le(e,e.return,le)}Tc&&(Tc=!1,lh(e));break;case 4:a=Jt,Jt=Pr(e.stateNode.containerInfo),gt(t,e),bt(e),Jt=a;break;case 12:gt(t,e),bt(e);break;case 31:gt(t,e),bt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Hr(e,a)));break;case 13:gt(t,e),bt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(kr=wt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Hr(e,a)));break;case 22:o=e.memoizedState!==null;var w=n!==null&&n.memoizedState!==null,j=An,k=et;if(An=j||o,et=k||w,gt(t,e),et=k,An=j,bt(e),a&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(n===null||w||An||et||jl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){w=n=t;try{if(c=w.stateNode,o)m=c.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none";else{S=w.stateNode;var Q=w.memoizedProps.style,H=Q!=null&&Q.hasOwnProperty("display")?Q.display:null;S.style.display=H==null||typeof H=="boolean"?"":(""+H).trim()}}catch(le){Le(w,w.return,le)}}}else if(t.tag===6){if(n===null){w=t;try{w.stateNode.nodeValue=o?"":w.memoizedProps}catch(le){Le(w,w.return,le)}}}else if(t.tag===18){if(n===null){w=t;try{var B=w.stateNode;o?Zh(B,!0):Zh(w.stateNode,!1)}catch(le){Le(w,w.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}a&4&&(a=e.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,Hr(e,n))));break;case 19:gt(t,e),bt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Hr(e,a)));break;case 30:break;case 21:break;default:gt(t,e),bt(e)}}function bt(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(Jm(a)){n=a;break}a=a.return}if(n==null)throw Error(r(160));switch(n.tag){case 27:var o=n.stateNode,c=wc(e);jr(e,c,o);break;case 5:var m=n.stateNode;n.flags&32&&(Pl(m,""),n.flags&=-33);var S=wc(e);jr(e,S,m);break;case 3:case 4:var w=n.stateNode.containerInfo,j=wc(e);Cc(e,j,w);break;default:throw Error(r(161))}}catch(k){Le(e,e.return,k)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function lh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;lh(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function On(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Pm(e,t.alternate,t),t=t.sibling}function jl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:In(4,t,t.return),jl(t);break;case 1:on(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&Zm(t,t.return,n),jl(t);break;case 27:Ri(t.stateNode);case 26:case 5:on(t,t.return),jl(t);break;case 22:t.memoizedState===null&&jl(t);break;case 30:jl(t);break;default:jl(t)}e=e.sibling}}function Mn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,o=e,c=t,m=c.flags;switch(c.tag){case 0:case 11:case 15:Mn(o,c,n),vi(4,c);break;case 1:if(Mn(o,c,n),a=c,o=a.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(j){Le(a,a.return,j)}if(a=c,o=a.updateQueue,o!==null){var S=a.stateNode;try{var w=o.shared.hiddenCallbacks;if(w!==null)for(o.shared.hiddenCallbacks=null,o=0;o<w.length;o++)Ld(w[o],S)}catch(j){Le(a,a.return,j)}}n&&m&64&&Qm(c),yi(c,c.return);break;case 27:$m(c);case 26:case 5:Mn(o,c,n),n&&a===null&&m&4&&Km(c),yi(c,c.return);break;case 12:Mn(o,c,n);break;case 31:Mn(o,c,n),n&&m&4&&eh(o,c);break;case 13:Mn(o,c,n),n&&m&4&&th(o,c);break;case 22:c.memoizedState===null&&Mn(o,c,n),yi(c,c.return);break;case 30:break;default:Mn(o,c,n)}t=t.sibling}}function Rc(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&&li(n))}function Ac(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&li(e))}function $t(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)ah(e,t,n,a),t=t.sibling}function ah(e,t,n,a){var o=t.flags;switch(t.tag){case 0:case 11:case 15:$t(e,t,n,a),o&2048&&vi(9,t);break;case 1:$t(e,t,n,a);break;case 3:$t(e,t,n,a),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&li(e)));break;case 12:if(o&2048){$t(e,t,n,a),e=t.stateNode;try{var c=t.memoizedProps,m=c.id,S=c.onPostCommit;typeof S=="function"&&S(m,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(w){Le(t,t.return,w)}}else $t(e,t,n,a);break;case 31:$t(e,t,n,a);break;case 13:$t(e,t,n,a);break;case 23:break;case 22:c=t.stateNode,m=t.alternate,t.memoizedState!==null?c._visibility&2?$t(e,t,n,a):gi(e,t):c._visibility&2?$t(e,t,n,a):(c._visibility|=2,ya(e,t,n,a,(t.subtreeFlags&10256)!==0||!1)),o&2048&&Rc(m,t);break;case 24:$t(e,t,n,a),o&2048&&Ac(t.alternate,t);break;default:$t(e,t,n,a)}}function ya(e,t,n,a,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,m=t,S=n,w=a,j=m.flags;switch(m.tag){case 0:case 11:case 15:ya(c,m,S,w,o),vi(8,m);break;case 23:break;case 22:var k=m.stateNode;m.memoizedState!==null?k._visibility&2?ya(c,m,S,w,o):gi(c,m):(k._visibility|=2,ya(c,m,S,w,o)),o&&j&2048&&Rc(m.alternate,m);break;case 24:ya(c,m,S,w,o),o&&j&2048&&Ac(m.alternate,m);break;default:ya(c,m,S,w,o)}t=t.sibling}}function gi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,o=a.flags;switch(a.tag){case 22:gi(n,a),o&2048&&Rc(a.alternate,a);break;case 24:gi(n,a),o&2048&&Ac(a.alternate,a);break;default:gi(n,a)}t=t.sibling}}var bi=8192;function ga(e,t,n){if(e.subtreeFlags&bi)for(e=e.child;e!==null;)ih(e,t,n),e=e.sibling}function ih(e,t,n){switch(e.tag){case 26:ga(e,t,n),e.flags&bi&&e.memoizedState!==null&&$b(n,Jt,e.memoizedState,e.memoizedProps);break;case 5:ga(e,t,n);break;case 3:case 4:var a=Jt;Jt=Pr(e.stateNode.containerInfo),ga(e,t,n),Jt=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=bi,bi=16777216,ga(e,t,n),bi=a):ga(e,t,n));break;default:ga(e,t,n)}}function rh(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 Si(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];it=a,uh(a,e)}rh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)oh(e),e=e.sibling}function oh(e){switch(e.tag){case 0:case 11:case 15:Si(e),e.flags&2048&&In(9,e,e.return);break;case 3:Si(e);break;case 12:Si(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Br(e)):Si(e);break;default:Si(e)}}function Br(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];it=a,uh(a,e)}rh(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:In(8,t,t.return),Br(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Br(t));break;default:Br(t)}e=e.sibling}}function uh(e,t){for(;it!==null;){var n=it;switch(n.tag){case 0:case 11:case 15:In(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:li(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,it=a;else e:for(n=e;it!==null;){a=it;var o=a.sibling,c=a.return;if(Fm(a),a===n){it=null;break e}if(o!==null){o.return=c,it=o;break e}it=c}}}var sb={getCacheForType:function(e){var t=ut(Pe),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ut(Pe).controller.signal}},fb=typeof WeakMap=="function"?WeakMap:Map,Ne=0,Be=null,Ce=null,Re=0,De=0,Mt=null,el=!1,ba=!1,_c=!1,zn=0,Ze=0,tl=0,Hl=0,Oc=0,zt=0,Sa=0,xi=null,St=null,Mc=!1,kr=0,ch=0,qr=1/0,Yr=null,nl=null,nt=0,ll=null,xa=null,Nn=0,zc=0,Nc=null,sh=null,Ei=0,Dc=null;function Nt(){return(Ne&2)!==0&&Re!==0?Re&-Re:L.T!==null?kc():Rf()}function fh(){if(zt===0)if((Re&536870912)===0||Oe){var e=$i;$i<<=1,($i&3932160)===0&&($i=262144),zt=e}else zt=536870912;return e=_t.current,e!==null&&(e.flags|=32),zt}function xt(e,t,n){(e===Be&&(De===2||De===9)||e.cancelPendingCommit!==null)&&(Ea(e,0),al(e,Re,zt,!1)),Ga(e,n),((Ne&2)===0||e!==Be)&&(e===Be&&((Ne&2)===0&&(Hl|=n),Ze===4&&al(e,Re,zt,!1)),un(e))}function dh(e,t,n){if((Ne&6)!==0)throw Error(r(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Va(e,t),o=a?hb(e,t):Uc(e,t,!0),c=a;do{if(o===0){ba&&!a&&al(e,t,0,!1);break}else{if(n=e.current.alternate,c&&!db(n)){o=Uc(e,t,!1),c=!1;continue}if(o===2){if(c=t,e.errorRecoveryDisabledLanes&c)var m=0;else m=e.pendingLanes&-536870913,m=m!==0?m:m&536870912?536870912:0;if(m!==0){t=m;e:{var S=e;o=xi;var w=S.current.memoizedState.isDehydrated;if(w&&(Ea(S,m).flags|=256),m=Uc(S,m,!1),m!==2){if(_c&&!w){S.errorRecoveryDisabledLanes|=c,Hl|=c,o=4;break e}c=St,St=o,c!==null&&(St===null?St=c:St.push.apply(St,c))}o=m}if(c=!1,o!==2)continue}}if(o===1){Ea(e,0),al(e,t,0,!0);break}e:{switch(a=e,c=o,c){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:al(a,t,zt,!el);break e;case 2:St=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(o=kr+300-wt(),10<o)){if(al(a,t,zt,!el),Pi(a,0,!0)!==0)break e;Nn=t,a.timeoutHandle=Gh(mh.bind(null,a,n,St,Yr,Mc,t,zt,Hl,Sa,el,c,"Throttled",-0,0),o);break e}mh(a,n,St,Yr,Mc,t,zt,Hl,Sa,el,c,null,-0,0)}}break}while(!0);un(e)}function mh(e,t,n,a,o,c,m,S,w,j,k,Q,H,B){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:yn},ih(t,c,Q);var le=(c&62914560)===c?kr-wt():(c&4194048)===c?ch-wt():0;if(le=Wb(Q,le),le!==null){Nn=c,e.cancelPendingCommit=le(xh.bind(null,e,t,c,n,a,o,m,S,w,k,Q,null,H,B)),al(e,c,m,!j);return}}xh(e,t,c,n,a,o,m,S,w)}function db(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 a=0;a<n.length;a++){var o=n[a],c=o.getSnapshot;o=o.value;try{if(!Rt(c(),o))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 al(e,t,n,a){t&=~Oc,t&=~Hl,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var o=t;0<o;){var c=31-Tt(o),m=1<<c;a[c]=-1,o&=~m}n!==0&&wf(e,n,t)}function Vr(){return(Ne&6)===0?(wi(0),!1):!0}function Lc(){if(Ce!==null){if(De===0)var e=Ce.return;else e=Ce,xn=_l=null,Wu(e),da=null,ii=0,e=Ce;for(;e!==null;)Xm(e.alternate,e),e=e.return;Ce=null}}function Ea(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Nb(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Nn=0,Lc(),Be=e,Ce=n=bn(e.current,null),Re=t,De=0,Mt=null,el=!1,ba=Va(e,t),_c=!1,Sa=zt=Oc=Hl=tl=Ze=0,St=xi=null,Mc=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var o=31-Tt(a),c=1<<o;t|=e[o],a&=~c}return zn=t,cr(),n}function hh(e,t){be=null,L.H=mi,t===fa||t===yr?(t=Md(),De=3):t===Bu?(t=Md(),De=4):De=t===dc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Mt=t,Ce===null&&(Ze=1,zr(e,Bt(t,e.current)))}function ph(){var e=_t.current;return e===null?!0:(Re&4194048)===Re?Vt===null:(Re&62914560)===Re||(Re&536870912)!==0?e===Vt:!1}function vh(){var e=L.H;return L.H=mi,e===null?mi:e}function yh(){var e=L.A;return L.A=sb,e}function Gr(){Ze=4,el||(Re&4194048)!==Re&&_t.current!==null||(ba=!0),(tl&134217727)===0&&(Hl&134217727)===0||Be===null||al(Be,Re,zt,!1)}function Uc(e,t,n){var a=Ne;Ne|=2;var o=vh(),c=yh();(Be!==e||Re!==t)&&(Yr=null,Ea(e,t)),t=!1;var m=Ze;e:do try{if(De!==0&&Ce!==null){var S=Ce,w=Mt;switch(De){case 8:Lc(),m=6;break e;case 3:case 2:case 9:case 6:_t.current===null&&(t=!0);var j=De;if(De=0,Mt=null,wa(e,S,w,j),n&&ba){m=0;break e}break;default:j=De,De=0,Mt=null,wa(e,S,w,j)}}mb(),m=Ze;break}catch(k){hh(e,k)}while(!0);return t&&e.shellSuspendCounter++,xn=_l=null,Ne=a,L.H=o,L.A=c,Ce===null&&(Be=null,Re=0,cr()),m}function mb(){for(;Ce!==null;)gh(Ce)}function hb(e,t){var n=Ne;Ne|=2;var a=vh(),o=yh();Be!==e||Re!==t?(Yr=null,qr=wt()+500,Ea(e,t)):ba=Va(e,t);e:do try{if(De!==0&&Ce!==null){t=Ce;var c=Mt;t:switch(De){case 1:De=0,Mt=null,wa(e,t,c,1);break;case 2:case 9:if(_d(c)){De=0,Mt=null,bh(t);break}t=function(){De!==2&&De!==9||Be!==e||(De=7),un(e)},c.then(t,t);break e;case 3:De=7;break e;case 4:De=5;break e;case 7:_d(c)?(De=0,Mt=null,bh(t)):(De=0,Mt=null,wa(e,t,c,7));break;case 5:var m=null;switch(Ce.tag){case 26:m=Ce.memoizedState;case 5:case 27:var S=Ce;if(m?ap(m):S.stateNode.complete){De=0,Mt=null;var w=S.sibling;if(w!==null)Ce=w;else{var j=S.return;j!==null?(Ce=j,Xr(j)):Ce=null}break t}}De=0,Mt=null,wa(e,t,c,5);break;case 6:De=0,Mt=null,wa(e,t,c,6);break;case 8:Lc(),Ze=6;break e;default:throw Error(r(462))}}pb();break}catch(k){hh(e,k)}while(!0);return xn=_l=null,L.H=a,L.A=o,Ne=n,Ce!==null?0:(Be=null,Re=0,cr(),Ze)}function pb(){for(;Ce!==null&&!Bg();)gh(Ce)}function gh(e){var t=Vm(e.alternate,e,zn);e.memoizedProps=e.pendingProps,t===null?Xr(e):Ce=t}function bh(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=jm(n,t,t.pendingProps,t.type,void 0,Re);break;case 11:t=jm(n,t,t.pendingProps,t.type.render,t.ref,Re);break;case 5:Wu(t);default:Xm(n,t),t=Ce=yd(t,zn),t=Vm(n,t,zn)}e.memoizedProps=e.pendingProps,t===null?Xr(e):Ce=t}function wa(e,t,n,a){xn=_l=null,Wu(t),da=null,ii=0;var o=t.return;try{if(lb(e,o,t,n,Re)){Ze=1,zr(e,Bt(n,e.current)),Ce=null;return}}catch(c){if(o!==null)throw Ce=o,c;Ze=1,zr(e,Bt(n,e.current)),Ce=null;return}t.flags&32768?(Oe||a===1?e=!0:ba||(Re&536870912)!==0?e=!1:(el=e=!0,(a===2||a===9||a===3||a===6)&&(a=_t.current,a!==null&&a.tag===13&&(a.flags|=16384))),Sh(t,e)):Xr(t)}function Xr(e){var t=e;do{if((t.flags&32768)!==0){Sh(t,el);return}e=t.return;var n=rb(t.alternate,t,zn);if(n!==null){Ce=n;return}if(t=t.sibling,t!==null){Ce=t;return}Ce=t=e}while(t!==null);Ze===0&&(Ze=5)}function Sh(e,t){do{var n=ob(e.alternate,e);if(n!==null){n.flags&=32767,Ce=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Ce=e;return}Ce=e=n}while(e!==null);Ze=6,Ce=null}function xh(e,t,n,a,o,c,m,S,w){e.cancelPendingCommit=null;do Qr();while(nt!==0);if((Ne&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(c=t.lanes|t.childLanes,c|=wu,Jg(e,n,c,m,S,w),e===Be&&(Ce=Be=null,Re=0),xa=t,ll=e,Nn=n,zc=c,Nc=o,sh=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,bb(Ki,function(){return Rh(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=L.T,L.T=null,o=Z.p,Z.p=2,m=Ne,Ne|=4;try{ub(e,t,n)}finally{Ne=m,Z.p=o,L.T=a}}nt=1,Eh(),wh(),Ch()}}function Eh(){if(nt===1){nt=0;var e=ll,t=xa,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=L.T,L.T=null;var a=Z.p;Z.p=2;var o=Ne;Ne|=4;try{nh(t,e);var c=Kc,m=ud(e.containerInfo),S=c.focusedElem,w=c.selectionRange;if(m!==S&&S&&S.ownerDocument&&od(S.ownerDocument.documentElement,S)){if(w!==null&&gu(S)){var j=w.start,k=w.end;if(k===void 0&&(k=j),"selectionStart"in S)S.selectionStart=j,S.selectionEnd=Math.min(k,S.value.length);else{var Q=S.ownerDocument||document,H=Q&&Q.defaultView||window;if(H.getSelection){var B=H.getSelection(),le=S.textContent.length,fe=Math.min(w.start,le),He=w.end===void 0?fe:Math.min(w.end,le);!B.extend&&fe>He&&(m=He,He=fe,fe=m);var z=rd(S,fe),A=rd(S,He);if(z&&A&&(B.rangeCount!==1||B.anchorNode!==z.node||B.anchorOffset!==z.offset||B.focusNode!==A.node||B.focusOffset!==A.offset)){var U=Q.createRange();U.setStart(z.node,z.offset),B.removeAllRanges(),fe>He?(B.addRange(U),B.extend(A.node,A.offset)):(U.setEnd(A.node,A.offset),B.addRange(U))}}}}for(Q=[],B=S;B=B.parentNode;)B.nodeType===1&&Q.push({element:B,left:B.scrollLeft,top:B.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<Q.length;S++){var G=Q[S];G.element.scrollLeft=G.left,G.element.scrollTop=G.top}}lo=!!Zc,Kc=Zc=null}finally{Ne=o,Z.p=a,L.T=n}}e.current=t,nt=2}}function wh(){if(nt===2){nt=0;var e=ll,t=xa,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=L.T,L.T=null;var a=Z.p;Z.p=2;var o=Ne;Ne|=4;try{Pm(e,t.alternate,t)}finally{Ne=o,Z.p=a,L.T=n}}nt=3}}function Ch(){if(nt===4||nt===3){nt=0,kg();var e=ll,t=xa,n=Nn,a=sh;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?nt=5:(nt=0,xa=ll=null,Th(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(nl=null),Io(n),t=t.stateNode,Ct&&typeof Ct.onCommitFiberRoot=="function")try{Ct.onCommitFiberRoot(Ya,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=L.T,o=Z.p,Z.p=2,L.T=null;try{for(var c=e.onRecoverableError,m=0;m<a.length;m++){var S=a[m];c(S.value,{componentStack:S.stack})}}finally{L.T=t,Z.p=o}}(Nn&3)!==0&&Qr(),un(e),o=e.pendingLanes,(n&261930)!==0&&(o&42)!==0?e===Dc?Ei++:(Ei=0,Dc=e):Ei=0,wi(0)}}function Th(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,li(t)))}function Qr(){return Eh(),wh(),Ch(),Rh()}function Rh(){if(nt!==5)return!1;var e=ll,t=zc;zc=0;var n=Io(Nn),a=L.T,o=Z.p;try{Z.p=32>n?32:n,L.T=null,n=Nc,Nc=null;var c=ll,m=Nn;if(nt=0,xa=ll=null,Nn=0,(Ne&6)!==0)throw Error(r(331));var S=Ne;if(Ne|=4,oh(c.current),ah(c,c.current,m,n),Ne=S,wi(0,!1),Ct&&typeof Ct.onPostCommitFiberRoot=="function")try{Ct.onPostCommitFiberRoot(Ya,c)}catch{}return!0}finally{Z.p=o,L.T=a,Th(e,t)}}function Ah(e,t,n){t=Bt(n,t),t=fc(e.stateNode,t,2),e=Wn(e,t,2),e!==null&&(Ga(e,2),un(e))}function Le(e,t,n){if(e.tag===3)Ah(e,e,n);else for(;t!==null;){if(t.tag===3){Ah(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(nl===null||!nl.has(a))){e=Bt(n,e),n=_m(2),a=Wn(t,n,2),a!==null&&(Om(n,a,t,e),Ga(a,2),un(a));break}}t=t.return}}function jc(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new fb;var o=new Set;a.set(t,o)}else o=a.get(t),o===void 0&&(o=new Set,a.set(t,o));o.has(n)||(_c=!0,o.add(n),e=vb.bind(null,e,t,n),t.then(e,e))}function vb(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Be===e&&(Re&n)===n&&(Ze===4||Ze===3&&(Re&62914560)===Re&&300>wt()-kr?(Ne&2)===0&&Ea(e,0):Oc|=n,Sa===Re&&(Sa=0)),un(e)}function _h(e,t){t===0&&(t=Ef()),e=Tl(e,t),e!==null&&(Ga(e,t),un(e))}function yb(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),_h(e,n)}function gb(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(r(314))}a!==null&&a.delete(t),_h(e,n)}function bb(e,t){return $o(e,t)}var Zr=null,Ca=null,Hc=!1,Kr=!1,Bc=!1,il=0;function un(e){e!==Ca&&e.next===null&&(Ca===null?Zr=Ca=e:Ca=Ca.next=e),Kr=!0,Hc||(Hc=!0,xb())}function wi(e,t){if(!Bc&&Kr){Bc=!0;do for(var n=!1,a=Zr;a!==null;){if(e!==0){var o=a.pendingLanes;if(o===0)var c=0;else{var m=a.suspendedLanes,S=a.pingedLanes;c=(1<<31-Tt(42|e)+1)-1,c&=o&~(m&~S),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,Nh(a,c))}else c=Re,c=Pi(a,a===Be?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||Va(a,c)||(n=!0,Nh(a,c));a=a.next}while(n);Bc=!1}}function Sb(){Oh()}function Oh(){Kr=Hc=!1;var e=0;il!==0&&zb()&&(e=il);for(var t=wt(),n=null,a=Zr;a!==null;){var o=a.next,c=Mh(a,t);c===0?(a.next=null,n===null?Zr=o:n.next=o,o===null&&(Ca=n)):(n=a,(e!==0||(c&3)!==0)&&(Kr=!0)),a=o}nt!==0&&nt!==5||wi(e),il!==0&&(il=0)}function Mh(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var m=31-Tt(c),S=1<<m,w=o[m];w===-1?((S&n)===0||(S&a)!==0)&&(o[m]=Kg(S,t)):w<=t&&(e.expiredLanes|=S),c&=~S}if(t=Be,n=Re,n=Pi(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(De===2||De===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Wo(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Va(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&Wo(a),Io(n)){case 2:case 8:n=Sf;break;case 32:n=Ki;break;case 268435456:n=xf;break;default:n=Ki}return a=zh.bind(null,e),n=$o(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&Wo(a),e.callbackPriority=2,e.callbackNode=null,2}function zh(e,t){if(nt!==0&&nt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Qr()&&e.callbackNode!==n)return null;var a=Re;return a=Pi(e,e===Be?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(dh(e,a,t),Mh(e,wt()),e.callbackNode!=null&&e.callbackNode===n?zh.bind(null,e):null)}function Nh(e,t){if(Qr())return null;dh(e,t,!0)}function xb(){Db(function(){(Ne&6)!==0?$o(bf,Sb):Oh()})}function kc(){if(il===0){var e=ca;e===0&&(e=Ji,Ji<<=1,(Ji&261888)===0&&(Ji=256)),il=e}return il}function Dh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:tr(""+e)}function Lh(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 Eb(e,t,n,a,o){if(t==="submit"&&n&&n.stateNode===o){var c=Dh((o[pt]||null).action),m=a.submitter;m&&(t=(t=m[pt]||null)?Dh(t.formAction):m.getAttribute("formAction"),t!==null&&(c=t,m=null));var S=new ir("action","action",null,a,o);e.push({event:S,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(il!==0){var w=m?Lh(o,m):new FormData(o);ic(n,{pending:!0,data:w,method:o.method,action:c},null,w)}}else typeof c=="function"&&(S.preventDefault(),w=m?Lh(o,m):new FormData(o),ic(n,{pending:!0,data:w,method:o.method,action:c},c,w))},currentTarget:o}]})}}for(var qc=0;qc<Eu.length;qc++){var Yc=Eu[qc],wb=Yc.toLowerCase(),Cb=Yc[0].toUpperCase()+Yc.slice(1);Kt(wb,"on"+Cb)}Kt(fd,"onAnimationEnd"),Kt(dd,"onAnimationIteration"),Kt(md,"onAnimationStart"),Kt("dblclick","onDoubleClick"),Kt("focusin","onFocus"),Kt("focusout","onBlur"),Kt(q0,"onTransitionRun"),Kt(Y0,"onTransitionStart"),Kt(V0,"onTransitionCancel"),Kt(hd,"onTransitionEnd"),$l("onMouseEnter",["mouseout","mouseover"]),$l("onMouseLeave",["mouseout","mouseover"]),$l("onPointerEnter",["pointerout","pointerover"]),$l("onPointerLeave",["pointerout","pointerover"]),xl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),xl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),xl("onBeforeInput",["compositionend","keypress","textInput","paste"]),xl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),xl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),xl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ci="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Tb=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ci));function Uh(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],o=a.event;a=a.listeners;e:{var c=void 0;if(t)for(var m=a.length-1;0<=m;m--){var S=a[m],w=S.instance,j=S.currentTarget;if(S=S.listener,w!==c&&o.isPropagationStopped())break e;c=S,o.currentTarget=j;try{c(o)}catch(k){ur(k)}o.currentTarget=null,c=w}else for(m=0;m<a.length;m++){if(S=a[m],w=S.instance,j=S.currentTarget,S=S.listener,w!==c&&o.isPropagationStopped())break e;c=S,o.currentTarget=j;try{c(o)}catch(k){ur(k)}o.currentTarget=null,c=w}}}}function Te(e,t){var n=t[eu];n===void 0&&(n=t[eu]=new Set);var a=e+"__bubble";n.has(a)||(jh(t,e,2,!1),n.add(a))}function Vc(e,t,n){var a=0;t&&(a|=4),jh(n,e,a,t)}var Jr="_reactListening"+Math.random().toString(36).slice(2);function Gc(e){if(!e[Jr]){e[Jr]=!0,Of.forEach(function(n){n!=="selectionchange"&&(Tb.has(n)||Vc(n,!1,e),Vc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Jr]||(t[Jr]=!0,Vc("selectionchange",!1,t))}}function jh(e,t,n,a){switch(fp(t)){case 2:var o=Ib;break;case 8:o=eS;break;default:o=as}n=o.bind(null,t,n,e),o=void 0,!cu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),a?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Xc(e,t,n,a,o){var c=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var m=a.tag;if(m===3||m===4){var S=a.stateNode.containerInfo;if(S===o)break;if(m===4)for(m=a.return;m!==null;){var w=m.tag;if((w===3||w===4)&&m.stateNode.containerInfo===o)return;m=m.return}for(;S!==null;){if(m=Zl(S),m===null)return;if(w=m.tag,w===5||w===6||w===26||w===27){a=c=m;continue e}S=S.parentNode}}a=a.return}Yf(function(){var j=c,k=ou(n),Q=[];e:{var H=pd.get(e);if(H!==void 0){var B=ir,le=e;switch(e){case"keypress":if(lr(n)===0)break e;case"keydown":case"keyup":B=g0;break;case"focusin":le="focus",B=mu;break;case"focusout":le="blur",B=mu;break;case"beforeblur":case"afterblur":B=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":B=Xf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":B=r0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":B=x0;break;case fd:case dd:case md:B=c0;break;case hd:B=w0;break;case"scroll":case"scrollend":B=a0;break;case"wheel":B=T0;break;case"copy":case"cut":case"paste":B=f0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":B=Zf;break;case"toggle":case"beforetoggle":B=A0}var fe=(t&4)!==0,He=!fe&&(e==="scroll"||e==="scrollend"),z=fe?H!==null?H+"Capture":null:H;fe=[];for(var A=j,U;A!==null;){var G=A;if(U=G.stateNode,G=G.tag,G!==5&&G!==26&&G!==27||U===null||z===null||(G=Za(A,z),G!=null&&fe.push(Ti(A,G,U))),He)break;A=A.return}0<fe.length&&(H=new B(H,le,null,n,k),Q.push({event:H,listeners:fe}))}}if((t&7)===0){e:{if(H=e==="mouseover"||e==="pointerover",B=e==="mouseout"||e==="pointerout",H&&n!==ru&&(le=n.relatedTarget||n.fromElement)&&(Zl(le)||le[Ql]))break e;if((B||H)&&(H=k.window===k?k:(H=k.ownerDocument)?H.defaultView||H.parentWindow:window,B?(le=n.relatedTarget||n.toElement,B=j,le=le?Zl(le):null,le!==null&&(He=f(le),fe=le.tag,le!==He||fe!==5&&fe!==27&&fe!==6)&&(le=null)):(B=null,le=j),B!==le)){if(fe=Xf,G="onMouseLeave",z="onMouseEnter",A="mouse",(e==="pointerout"||e==="pointerover")&&(fe=Zf,G="onPointerLeave",z="onPointerEnter",A="pointer"),He=B==null?H:Qa(B),U=le==null?H:Qa(le),H=new fe(G,A+"leave",B,n,k),H.target=He,H.relatedTarget=U,G=null,Zl(k)===j&&(fe=new fe(z,A+"enter",le,n,k),fe.target=U,fe.relatedTarget=He,G=fe),He=G,B&&le)t:{for(fe=Rb,z=B,A=le,U=0,G=z;G;G=fe(G))U++;G=0;for(var ce=A;ce;ce=fe(ce))G++;for(;0<U-G;)z=fe(z),U--;for(;0<G-U;)A=fe(A),G--;for(;U--;){if(z===A||A!==null&&z===A.alternate){fe=z;break t}z=fe(z),A=fe(A)}fe=null}else fe=null;B!==null&&Hh(Q,H,B,fe,!1),le!==null&&He!==null&&Hh(Q,He,le,fe,!0)}}e:{if(H=j?Qa(j):window,B=H.nodeName&&H.nodeName.toLowerCase(),B==="select"||B==="input"&&H.type==="file")var Me=ed;else if(Ff(H))if(td)Me=H0;else{Me=U0;var re=L0}else B=H.nodeName,!B||B.toLowerCase()!=="input"||H.type!=="checkbox"&&H.type!=="radio"?j&&iu(j.elementType)&&(Me=ed):Me=j0;if(Me&&(Me=Me(e,j))){If(Q,Me,n,k);break e}re&&re(e,H,j),e==="focusout"&&j&&H.type==="number"&&j.memoizedProps.value!=null&&au(H,"number",H.value)}switch(re=j?Qa(j):window,e){case"focusin":(Ff(re)||re.contentEditable==="true")&&(ta=re,bu=j,ei=null);break;case"focusout":ei=bu=ta=null;break;case"mousedown":Su=!0;break;case"contextmenu":case"mouseup":case"dragend":Su=!1,cd(Q,n,k);break;case"selectionchange":if(k0)break;case"keydown":case"keyup":cd(Q,n,k)}var Se;if(pu)e:{switch(e){case"compositionstart":var Ae="onCompositionStart";break e;case"compositionend":Ae="onCompositionEnd";break e;case"compositionupdate":Ae="onCompositionUpdate";break e}Ae=void 0}else ea?Wf(e,n)&&(Ae="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Ae="onCompositionStart");Ae&&(Kf&&n.locale!=="ko"&&(ea||Ae!=="onCompositionStart"?Ae==="onCompositionEnd"&&ea&&(Se=Vf()):(Gn=k,su="value"in Gn?Gn.value:Gn.textContent,ea=!0)),re=$r(j,Ae),0<re.length&&(Ae=new Qf(Ae,e,null,n,k),Q.push({event:Ae,listeners:re}),Se?Ae.data=Se:(Se=Pf(n),Se!==null&&(Ae.data=Se)))),(Se=O0?M0(e,n):z0(e,n))&&(Ae=$r(j,"onBeforeInput"),0<Ae.length&&(re=new Qf("onBeforeInput","beforeinput",null,n,k),Q.push({event:re,listeners:Ae}),re.data=Se)),Eb(Q,e,j,n,k)}Uh(Q,t)})}function Ti(e,t,n){return{instance:e,listener:t,currentTarget:n}}function $r(e,t){for(var n=t+"Capture",a=[];e!==null;){var o=e,c=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||c===null||(o=Za(e,n),o!=null&&a.unshift(Ti(e,o,c)),o=Za(e,t),o!=null&&a.push(Ti(e,o,c))),e.tag===3)return a;e=e.return}return[]}function Rb(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Hh(e,t,n,a,o){for(var c=t._reactName,m=[];n!==null&&n!==a;){var S=n,w=S.alternate,j=S.stateNode;if(S=S.tag,w!==null&&w===a)break;S!==5&&S!==26&&S!==27||j===null||(w=j,o?(j=Za(n,c),j!=null&&m.unshift(Ti(n,j,w))):o||(j=Za(n,c),j!=null&&m.push(Ti(n,j,w)))),n=n.return}m.length!==0&&e.push({event:t,listeners:m})}var Ab=/\r\n?/g,_b=/\u0000|\uFFFD/g;function Bh(e){return(typeof e=="string"?e:""+e).replace(Ab,`
50
+ `).replace(_b,"")}function kh(e,t){return t=Bh(t),Bh(e)===t}function je(e,t,n,a,o,c){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||Pl(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&Pl(e,""+a);break;case"className":Ii(e,"class",a);break;case"tabIndex":Ii(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Ii(e,n,a);break;case"style":kf(e,a,c);break;case"data":if(t!=="object"){Ii(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=tr(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="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 c=="function"&&(n==="formAction"?(t!=="input"&&je(e,t,"name",o.name,o,null),je(e,t,"formEncType",o.formEncType,o,null),je(e,t,"formMethod",o.formMethod,o,null),je(e,t,"formTarget",o.formTarget,o,null)):(je(e,t,"encType",o.encType,o,null),je(e,t,"method",o.method,o,null),je(e,t,"target",o.target,o,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=tr(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=yn);break;case"onScroll":a!=null&&Te("scroll",e);break;case"onScrollEnd":a!=null&&Te("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(n=a.__html,n!=null){if(o.children!=null)throw Error(r(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}n=tr(""+a),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":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""+a):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":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":Te("beforetoggle",e),Te("toggle",e),Fi(e,"popover",a);break;case"xlinkActuate":vn(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":vn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":vn(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":vn(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":vn(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":vn(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":vn(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":vn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":vn(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Fi(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=n0.get(n)||n,Fi(e,n,a))}}function Qc(e,t,n,a,o,c){switch(n){case"style":kf(e,a,c);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(n=a.__html,n!=null){if(o.children!=null)throw Error(r(60));e.innerHTML=n}}break;case"children":typeof a=="string"?Pl(e,a):(typeof a=="number"||typeof a=="bigint")&&Pl(e,""+a);break;case"onScroll":a!=null&&Te("scroll",e);break;case"onScrollEnd":a!=null&&Te("scrollend",e);break;case"onClick":a!=null&&(e.onclick=yn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Mf.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(o=n.endsWith("Capture"),t=n.slice(2,o?n.length-7:void 0),c=e[pt]||null,c=c!=null?c[n]:null,typeof c=="function"&&e.removeEventListener(t,c,o),typeof a=="function")){typeof c!="function"&&c!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,o);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):Fi(e,n,a)}}}function st(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Te("error",e),Te("load",e);var a=!1,o=!1,c;for(c in n)if(n.hasOwnProperty(c)){var m=n[c];if(m!=null)switch(c){case"src":a=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:je(e,t,c,m,n,null)}}o&&je(e,t,"srcSet",n.srcSet,n,null),a&&je(e,t,"src",n.src,n,null);return;case"input":Te("invalid",e);var S=c=m=o=null,w=null,j=null;for(a in n)if(n.hasOwnProperty(a)){var k=n[a];if(k!=null)switch(a){case"name":o=k;break;case"type":m=k;break;case"checked":w=k;break;case"defaultChecked":j=k;break;case"value":c=k;break;case"defaultValue":S=k;break;case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(r(137,t));break;default:je(e,t,a,k,n,null)}}Uf(e,c,S,w,j,m,o,!1);return;case"select":Te("invalid",e),a=m=c=null;for(o in n)if(n.hasOwnProperty(o)&&(S=n[o],S!=null))switch(o){case"value":c=S;break;case"defaultValue":m=S;break;case"multiple":a=S;default:je(e,t,o,S,n,null)}t=c,n=m,e.multiple=!!a,t!=null?Wl(e,!!a,t,!1):n!=null&&Wl(e,!!a,n,!0);return;case"textarea":Te("invalid",e),c=o=a=null;for(m in n)if(n.hasOwnProperty(m)&&(S=n[m],S!=null))switch(m){case"value":a=S;break;case"defaultValue":o=S;break;case"children":c=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(r(91));break;default:je(e,t,m,S,n,null)}Hf(e,a,o,c);return;case"option":for(w in n)if(n.hasOwnProperty(w)&&(a=n[w],a!=null))switch(w){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:je(e,t,w,a,n,null)}return;case"dialog":Te("beforetoggle",e),Te("toggle",e),Te("cancel",e),Te("close",e);break;case"iframe":case"object":Te("load",e);break;case"video":case"audio":for(a=0;a<Ci.length;a++)Te(Ci[a],e);break;case"image":Te("error",e),Te("load",e);break;case"details":Te("toggle",e);break;case"embed":case"source":case"link":Te("error",e),Te("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(j in n)if(n.hasOwnProperty(j)&&(a=n[j],a!=null))switch(j){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:je(e,t,j,a,n,null)}return;default:if(iu(t)){for(k in n)n.hasOwnProperty(k)&&(a=n[k],a!==void 0&&Qc(e,t,k,a,n,void 0));return}}for(S in n)n.hasOwnProperty(S)&&(a=n[S],a!=null&&je(e,t,S,a,n,null))}function Ob(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,c=null,m=null,S=null,w=null,j=null,k=null;for(B in n){var Q=n[B];if(n.hasOwnProperty(B)&&Q!=null)switch(B){case"checked":break;case"value":break;case"defaultValue":w=Q;default:a.hasOwnProperty(B)||je(e,t,B,null,a,Q)}}for(var H in a){var B=a[H];if(Q=n[H],a.hasOwnProperty(H)&&(B!=null||Q!=null))switch(H){case"type":c=B;break;case"name":o=B;break;case"checked":j=B;break;case"defaultChecked":k=B;break;case"value":m=B;break;case"defaultValue":S=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(r(137,t));break;default:B!==Q&&je(e,t,H,B,a,Q)}}lu(e,m,S,w,j,k,c,o);return;case"select":B=m=S=H=null;for(c in n)if(w=n[c],n.hasOwnProperty(c)&&w!=null)switch(c){case"value":break;case"multiple":B=w;default:a.hasOwnProperty(c)||je(e,t,c,null,a,w)}for(o in a)if(c=a[o],w=n[o],a.hasOwnProperty(o)&&(c!=null||w!=null))switch(o){case"value":H=c;break;case"defaultValue":S=c;break;case"multiple":m=c;default:c!==w&&je(e,t,o,c,a,w)}t=S,n=m,a=B,H!=null?Wl(e,!!n,H,!1):!!a!=!!n&&(t!=null?Wl(e,!!n,t,!0):Wl(e,!!n,n?[]:"",!1));return;case"textarea":B=H=null;for(S in n)if(o=n[S],n.hasOwnProperty(S)&&o!=null&&!a.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:je(e,t,S,null,a,o)}for(m in a)if(o=a[m],c=n[m],a.hasOwnProperty(m)&&(o!=null||c!=null))switch(m){case"value":H=o;break;case"defaultValue":B=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(r(91));break;default:o!==c&&je(e,t,m,o,a,c)}jf(e,H,B);return;case"option":for(var le in n)if(H=n[le],n.hasOwnProperty(le)&&H!=null&&!a.hasOwnProperty(le))switch(le){case"selected":e.selected=!1;break;default:je(e,t,le,null,a,H)}for(w in a)if(H=a[w],B=n[w],a.hasOwnProperty(w)&&H!==B&&(H!=null||B!=null))switch(w){case"selected":e.selected=H&&typeof H!="function"&&typeof H!="symbol";break;default:je(e,t,w,H,a,B)}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 fe in n)H=n[fe],n.hasOwnProperty(fe)&&H!=null&&!a.hasOwnProperty(fe)&&je(e,t,fe,null,a,H);for(j in a)if(H=a[j],B=n[j],a.hasOwnProperty(j)&&H!==B&&(H!=null||B!=null))switch(j){case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(r(137,t));break;default:je(e,t,j,H,a,B)}return;default:if(iu(t)){for(var He in n)H=n[He],n.hasOwnProperty(He)&&H!==void 0&&!a.hasOwnProperty(He)&&Qc(e,t,He,void 0,a,H);for(k in a)H=a[k],B=n[k],!a.hasOwnProperty(k)||H===B||H===void 0&&B===void 0||Qc(e,t,k,H,a,B);return}}for(var z in n)H=n[z],n.hasOwnProperty(z)&&H!=null&&!a.hasOwnProperty(z)&&je(e,t,z,null,a,H);for(Q in a)H=a[Q],B=n[Q],!a.hasOwnProperty(Q)||H===B||H==null&&B==null||je(e,t,Q,H,a,B)}function qh(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Mb(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var o=n[a],c=o.transferSize,m=o.initiatorType,S=o.duration;if(c&&S&&qh(m)){for(m=0,S=o.responseEnd,a+=1;a<n.length;a++){var w=n[a],j=w.startTime;if(j>S)break;var k=w.transferSize,Q=w.initiatorType;k&&qh(Q)&&(w=w.responseEnd,m+=k*(w<S?1:(S-j)/(w-j)))}if(--a,t+=8*(c+m)/(o.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Zc=null,Kc=null;function Wr(e){return e.nodeType===9?e:e.ownerDocument}function Yh(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 Vh(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 Jc(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 $c=null;function zb(){var e=window.event;return e&&e.type==="popstate"?e===$c?!1:($c=e,!0):($c=null,!1)}var Gh=typeof setTimeout=="function"?setTimeout:void 0,Nb=typeof clearTimeout=="function"?clearTimeout:void 0,Xh=typeof Promise=="function"?Promise:void 0,Db=typeof queueMicrotask=="function"?queueMicrotask:typeof Xh<"u"?function(e){return Xh.resolve(null).then(e).catch(Lb)}:Gh;function Lb(e){setTimeout(function(){throw e})}function rl(e){return e==="head"}function Qh(e,t){var n=t,a=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"||n==="/&"){if(a===0){e.removeChild(o),_a(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")Ri(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Ri(n);for(var c=n.firstChild;c;){var m=c.nextSibling,S=c.nodeName;c[Xa]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=m}}else n==="body"&&Ri(e.ownerDocument.body);n=o}while(n);_a(t)}function Zh(e,t){var n=e;e=0;do{var a=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||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=a}while(n)}function Wc(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":Wc(n),tu(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function Ub(e,t,n,a){for(;e.nodeType===1;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Xa])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=Gt(e.nextSibling),e===null)break}return null}function jb(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Gt(e.nextSibling),e===null))return null;return e}function Kh(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Gt(e.nextSibling),e===null))return null;return e}function Pc(e){return e.data==="$?"||e.data==="$~"}function Fc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Hb(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Gt(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 Ic=null;function Jh(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Gt(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function $h(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 Wh(e,t,n){switch(t=Wr(n),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function Ri(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);tu(e)}var Xt=new Map,Ph=new Set;function Pr(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Dn=Z.d;Z.d={f:Bb,r:kb,D:qb,C:Yb,L:Vb,m:Gb,X:Qb,S:Xb,M:Zb};function Bb(){var e=Dn.f(),t=Vr();return e||t}function kb(e){var t=Kl(e);t!==null&&t.tag===5&&t.type==="form"?hm(t):Dn.r(e)}var Ta=typeof document>"u"?null:document;function Fh(e,t,n){var a=Ta;if(a&&typeof t=="string"&&t){var o=jt(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof n=="string"&&(o+='[crossorigin="'+n+'"]'),Ph.has(o)||(Ph.add(o),e={rel:e,crossOrigin:n,href:t},a.querySelector(o)===null&&(t=a.createElement("link"),st(t,"link",e),at(t),a.head.appendChild(t)))}}function qb(e){Dn.D(e),Fh("dns-prefetch",e,null)}function Yb(e,t){Dn.C(e,t),Fh("preconnect",e,t)}function Vb(e,t,n){Dn.L(e,t,n);var a=Ta;if(a&&e&&t){var o='link[rel="preload"][as="'+jt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(o+='[imagesrcset="'+jt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(o+='[imagesizes="'+jt(n.imageSizes)+'"]')):o+='[href="'+jt(e)+'"]';var c=o;switch(t){case"style":c=Ra(e);break;case"script":c=Aa(e)}Xt.has(c)||(e=g({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Xt.set(c,e),a.querySelector(o)!==null||t==="style"&&a.querySelector(Ai(c))||t==="script"&&a.querySelector(_i(c))||(t=a.createElement("link"),st(t,"link",e),at(t),a.head.appendChild(t)))}}function Gb(e,t){Dn.m(e,t);var n=Ta;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+jt(a)+'"][href="'+jt(e)+'"]',c=o;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Aa(e)}if(!Xt.has(c)&&(e=g({rel:"modulepreload",href:e},t),Xt.set(c,e),n.querySelector(o)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(_i(c)))return}a=n.createElement("link"),st(a,"link",e),at(a),n.head.appendChild(a)}}}function Xb(e,t,n){Dn.S(e,t,n);var a=Ta;if(a&&e){var o=Jl(a).hoistableStyles,c=Ra(e);t=t||"default";var m=o.get(c);if(!m){var S={loading:0,preload:null};if(m=a.querySelector(Ai(c)))S.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Xt.get(c))&&es(e,n);var w=m=a.createElement("link");at(w),st(w,"link",e),w._p=new Promise(function(j,k){w.onload=j,w.onerror=k}),w.addEventListener("load",function(){S.loading|=1}),w.addEventListener("error",function(){S.loading|=2}),S.loading|=4,Fr(m,t,a)}m={type:"stylesheet",instance:m,count:1,state:S},o.set(c,m)}}}function Qb(e,t){Dn.X(e,t);var n=Ta;if(n&&e){var a=Jl(n).hoistableScripts,o=Aa(e),c=a.get(o);c||(c=n.querySelector(_i(o)),c||(e=g({src:e,async:!0},t),(t=Xt.get(o))&&ts(e,t),c=n.createElement("script"),at(c),st(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(o,c))}}function Zb(e,t){Dn.M(e,t);var n=Ta;if(n&&e){var a=Jl(n).hoistableScripts,o=Aa(e),c=a.get(o);c||(c=n.querySelector(_i(o)),c||(e=g({src:e,async:!0,type:"module"},t),(t=Xt.get(o))&&ts(e,t),c=n.createElement("script"),at(c),st(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(o,c))}}function Ih(e,t,n,a){var o=(o=ie.current)?Pr(o):null;if(!o)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Ra(n.href),n=Jl(o).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Ra(n.href);var c=Jl(o).hoistableStyles,m=c.get(e);if(m||(o=o.ownerDocument||o,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,m),(c=o.querySelector(Ai(e)))&&!c._p&&(m.instance=c,m.state.loading=5),Xt.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},Xt.set(e,n),c||Kb(o,e,n,m.state))),t&&a===null)throw Error(r(528,""));return m}if(t&&a!==null)throw Error(r(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Aa(n),n=Jl(o).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Ra(e){return'href="'+jt(e)+'"'}function Ai(e){return'link[rel="stylesheet"]['+e+"]"}function ep(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function Kb(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),st(t,"link",n),at(t),e.head.appendChild(t))}function Aa(e){return'[src="'+jt(e)+'"]'}function _i(e){return"script[async]"+e}function tp(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+jt(n.href)+'"]');if(a)return t.instance=a,at(a),a;var o=g({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),at(a),st(a,"style",o),Fr(a,n.precedence,e),t.instance=a;case"stylesheet":o=Ra(n.href);var c=e.querySelector(Ai(o));if(c)return t.state.loading|=4,t.instance=c,at(c),c;a=ep(n),(o=Xt.get(o))&&es(a,o),c=(e.ownerDocument||e).createElement("link"),at(c);var m=c;return m._p=new Promise(function(S,w){m.onload=S,m.onerror=w}),st(c,"link",a),t.state.loading|=4,Fr(c,n.precedence,e),t.instance=c;case"script":return c=Aa(n.src),(o=e.querySelector(_i(c)))?(t.instance=o,at(o),o):(a=n,(o=Xt.get(c))&&(a=g({},n),ts(a,o)),e=e.ownerDocument||e,o=e.createElement("script"),at(o),st(o,"link",a),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Fr(a,n.precedence,e));return t.instance}function Fr(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=a.length?a[a.length-1]:null,c=o,m=0;m<a.length;m++){var S=a[m];if(S.dataset.precedence===t)c=S;else if(c!==o)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function es(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function ts(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Ir=null;function np(e,t,n){if(Ir===null){var a=new Map,o=Ir=new Map;o.set(n,a)}else o=Ir,a=o.get(n),a||(a=new Map,o.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var c=n[o];if(!(c[Xa]||c[rt]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var m=c.getAttribute(t)||"";m=e+m;var S=a.get(m);S?S.push(c):a.set(m,[c])}}return a}function lp(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function Jb(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function ap(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function $b(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var o=Ra(a.href),c=t.querySelector(Ai(o));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=eo.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=c,at(c);return}c=t.ownerDocument||t,a=ep(a),(o=Xt.get(o))&&es(a,o),c=c.createElement("link"),at(c);var m=c;m._p=new Promise(function(S,w){m.onload=S,m.onerror=w}),st(c,"link",a),n.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=eo.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var ns=0;function Wb(e,t){return e.stylesheets&&e.count===0&&no(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&no(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&ns===0&&(ns=62500*Mb());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&no(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>ns?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(o)}}:null}function eo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)no(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var to=null;function no(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,to=new Map,t.forEach(Pb,e),to=null,eo.call(e))}function Pb(e,t){if(!(t.state.loading&4)){var n=to.get(e);if(n)var a=n.get(null);else{n=new Map,to.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<o.length;c++){var m=o[c];(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")&&(n.set(m.dataset.precedence,m),a=m)}a&&n.set(null,a)}o=t.instance,m=o.getAttribute("data-precedence"),c=n.get(m)||a,c===a&&n.set(null,o),n.set(m,o),this.count++,a=eo.bind(this),o.addEventListener("load",a),o.addEventListener("error",a),c?c.parentNode.insertBefore(o,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var Oi={$$typeof:D,Provider:null,Consumer:null,_currentValue:J,_currentValue2:J,_threadCount:0};function Fb(e,t,n,a,o,c,m,S,w){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Po(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Po(0),this.hiddenUpdates=Po(null),this.identifierPrefix=a,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=w,this.incompleteTransitions=new Map}function ip(e,t,n,a,o,c,m,S,w,j,k,Q){return e=new Fb(e,t,n,m,w,j,k,Q,S),t=1,c===!0&&(t|=24),c=At(3,null,null,t),e.current=c,c.stateNode=e,t=Uu(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:a,isDehydrated:n,cache:t},ku(c),e}function rp(e){return e?(e=aa,e):aa}function op(e,t,n,a,o,c){o=rp(o),a.context===null?a.context=o:a.pendingContext=o,a=$n(t),a.payload={element:n},c=c===void 0?null:c,c!==null&&(a.callback=c),n=Wn(e,a,t),n!==null&&(xt(n,e,t),oi(n,e,t))}function up(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ls(e,t){up(e,t),(e=e.alternate)&&up(e,t)}function cp(e){if(e.tag===13||e.tag===31){var t=Tl(e,67108864);t!==null&&xt(t,e,67108864),ls(e,67108864)}}function sp(e){if(e.tag===13||e.tag===31){var t=Nt();t=Fo(t);var n=Tl(e,t);n!==null&&xt(n,e,t),ls(e,t)}}var lo=!0;function Ib(e,t,n,a){var o=L.T;L.T=null;var c=Z.p;try{Z.p=2,as(e,t,n,a)}finally{Z.p=c,L.T=o}}function eS(e,t,n,a){var o=L.T;L.T=null;var c=Z.p;try{Z.p=8,as(e,t,n,a)}finally{Z.p=c,L.T=o}}function as(e,t,n,a){if(lo){var o=is(a);if(o===null)Xc(e,t,a,ao,n),dp(e,a);else if(nS(o,e,t,n,a))a.stopPropagation();else if(dp(e,a),t&4&&-1<tS.indexOf(e)){for(;o!==null;){var c=Kl(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var m=Sl(c.pendingLanes);if(m!==0){var S=c;for(S.pendingLanes|=2,S.entangledLanes|=2;m;){var w=1<<31-Tt(m);S.entanglements[1]|=w,m&=~w}un(c),(Ne&6)===0&&(qr=wt()+500,wi(0))}}break;case 31:case 13:S=Tl(c,2),S!==null&&xt(S,c,2),Vr(),ls(c,2)}if(c=is(a),c===null&&Xc(e,t,a,ao,n),c===o)break;o=c}o!==null&&a.stopPropagation()}else Xc(e,t,a,null,n)}}function is(e){return e=ou(e),rs(e)}var ao=null;function rs(e){if(ao=null,e=Zl(e),e!==null){var t=f(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=d(t),e!==null)return e;e=null}else if(n===31){if(e=h(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 ao=e,null}function fp(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(qg()){case bf:return 2;case Sf:return 8;case Ki:case Yg:return 32;case xf:return 268435456;default:return 32}default:return 32}}var os=!1,ol=null,ul=null,cl=null,Mi=new Map,zi=new Map,sl=[],tS="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 dp(e,t){switch(e){case"focusin":case"focusout":ol=null;break;case"dragenter":case"dragleave":ul=null;break;case"mouseover":case"mouseout":cl=null;break;case"pointerover":case"pointerout":Mi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":zi.delete(t.pointerId)}}function Ni(e,t,n,a,o,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:c,targetContainers:[o]},t!==null&&(t=Kl(t),t!==null&&cp(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function nS(e,t,n,a,o){switch(t){case"focusin":return ol=Ni(ol,e,t,n,a,o),!0;case"dragenter":return ul=Ni(ul,e,t,n,a,o),!0;case"mouseover":return cl=Ni(cl,e,t,n,a,o),!0;case"pointerover":var c=o.pointerId;return Mi.set(c,Ni(Mi.get(c)||null,e,t,n,a,o)),!0;case"gotpointercapture":return c=o.pointerId,zi.set(c,Ni(zi.get(c)||null,e,t,n,a,o)),!0}return!1}function mp(e){var t=Zl(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=d(n),t!==null){e.blockedOn=t,Af(e.priority,function(){sp(n)});return}}else if(t===31){if(t=h(n),t!==null){e.blockedOn=t,Af(e.priority,function(){sp(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 io(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=is(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);ru=a,n.target.dispatchEvent(a),ru=null}else return t=Kl(n),t!==null&&cp(t),e.blockedOn=n,!1;t.shift()}return!0}function hp(e,t,n){io(e)&&n.delete(t)}function lS(){os=!1,ol!==null&&io(ol)&&(ol=null),ul!==null&&io(ul)&&(ul=null),cl!==null&&io(cl)&&(cl=null),Mi.forEach(hp),zi.forEach(hp)}function ro(e,t){e.blockedOn===t&&(e.blockedOn=null,os||(os=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,lS)))}var oo=null;function pp(e){oo!==e&&(oo=e,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){oo===e&&(oo=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],o=e[t+2];if(typeof a!="function"){if(rs(a||n)===null)continue;break}var c=Kl(n);c!==null&&(e.splice(t,3),t-=3,ic(c,{pending:!0,data:o,method:n.method,action:a},a,o))}}))}function _a(e){function t(w){return ro(w,e)}ol!==null&&ro(ol,e),ul!==null&&ro(ul,e),cl!==null&&ro(cl,e),Mi.forEach(t),zi.forEach(t);for(var n=0;n<sl.length;n++){var a=sl[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<sl.length&&(n=sl[0],n.blockedOn===null);)mp(n),n.blockedOn===null&&sl.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var o=n[a],c=n[a+1],m=o[pt]||null;if(typeof c=="function")m||pp(n);else if(m){var S=null;if(c&&c.hasAttribute("formAction")){if(o=c,m=c[pt]||null)S=m.formAction;else if(rs(o)!==null)continue}else S=m.action;typeof S=="function"?n[a+1]=S:(n.splice(a,3),a-=3),pp(n)}}}function vp(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(m){return o=m})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function us(e){this._internalRoot=e}uo.prototype.render=us.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var n=t.current,a=Nt();op(n,a,e,t,null,null)},uo.prototype.unmount=us.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;op(e.current,2,null,e,null,null),Vr(),t[Ql]=null}};function uo(e){this._internalRoot=e}uo.prototype.unstable_scheduleHydration=function(e){if(e){var t=Rf();e={blockedOn:null,target:e,priority:t};for(var n=0;n<sl.length&&t!==0&&t<sl[n].priority;n++);sl.splice(n,0,e),n===0&&mp(e)}};var yp=i.version;if(yp!=="19.2.6")throw Error(r(527,yp,"19.2.6"));Z.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=p(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var aS={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var co=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!co.isDisabled&&co.supportsFiber)try{Ya=co.inject(aS),Ct=co}catch{}}return Li.createRoot=function(e,t){if(!s(e))throw Error(r(299));var n=!1,a="",o=Cm,c=Tm,m=Rm;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(m=t.onRecoverableError)),t=ip(e,1,!1,null,null,n,a,null,o,c,m,vp),e[Ql]=t.current,Gc(e),new us(t)},Li.hydrateRoot=function(e,t,n){if(!s(e))throw Error(r(299));var a=!1,o="",c=Cm,m=Tm,S=Rm,w=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(m=n.onCaughtError),n.onRecoverableError!==void 0&&(S=n.onRecoverableError),n.formState!==void 0&&(w=n.formState)),t=ip(e,1,!0,t,n??null,a,o,w,c,m,S,vp),t.context=rp(null),n=t.current,a=Nt(),a=Fo(a),o=$n(a),o.callback=null,Wn(n,o,a),n=a,t.current.lanes=n,Ga(t,n),un(t),e[Ql]=t.current,Gc(e),new uo(t)},Li.version="19.2.6",Li}var _p;function vS(){if(_p)return fs.exports;_p=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(i){console.error(i)}}return l(),fs.exports=pS(),fs.exports}var yS=vS();const gS=Ks(yS);/**
51
+ * react-router v7.15.1
52
+ *
53
+ * Copyright (c) Remix Software Inc.
54
+ *
55
+ * This source code is licensed under the MIT license found in the
56
+ * LICENSE.md file in the root directory of this source tree.
57
+ *
58
+ * @license MIT
59
+ */var Op="popstate";function Mp(l){return typeof l=="object"&&l!=null&&"pathname"in l&&"search"in l&&"hash"in l&&"state"in l&&"key"in l}function bS(l={}){function i(r,s){var p;let f=(p=s.state)==null?void 0:p.masked,{pathname:d,search:h,hash:v}=f||r.location;return Ms("",{pathname:d,search:h,hash:v},s.state&&s.state.usr||null,s.state&&s.state.key||"default",f?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function u(r,s){return typeof s=="string"?s:Bi(s)}return xS(i,u,null,l)}function Xe(l,i){if(l===!1||l===null||typeof l>"u")throw new Error(i)}function Ft(l,i){if(!l){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function SS(){return Math.random().toString(36).substring(2,10)}function zp(l,i){return{usr:l.state,key:l.key,idx:i,masked:l.mask?{pathname:l.pathname,search:l.search,hash:l.hash}:void 0}}function Ms(l,i,u=null,r,s){return{pathname:typeof l=="string"?l:l.pathname,search:"",hash:"",...typeof i=="string"?ja(i):i,state:u,key:i&&i.key||r||SS(),mask:s}}function Bi({pathname:l="/",search:i="",hash:u=""}){return i&&i!=="?"&&(l+=i.charAt(0)==="?"?i:"?"+i),u&&u!=="#"&&(l+=u.charAt(0)==="#"?u:"#"+u),l}function ja(l){let i={};if(l){let u=l.indexOf("#");u>=0&&(i.hash=l.substring(u),l=l.substring(0,u));let r=l.indexOf("?");r>=0&&(i.search=l.substring(r),l=l.substring(0,r)),l&&(i.pathname=l)}return i}function xS(l,i,u,r={}){let{window:s=document.defaultView,v5Compat:f=!1}=r,d=s.history,h="POP",v=null,p=b();p==null&&(p=0,d.replaceState({...d.state,idx:p},""));function b(){return(d.state||{idx:null}).idx}function g(){h="POP";let T=b(),_=T==null?null:T-p;p=T,v&&v({action:h,location:x.location,delta:_})}function E(T,_){h="PUSH";let M=Mp(T)?T:Ms(x.location,T,_);p=b()+1;let D=zp(M,p),q=x.createHref(M.mask||M);try{d.pushState(D,"",q)}catch(K){if(K instanceof DOMException&&K.name==="DataCloneError")throw K;s.location.assign(q)}f&&v&&v({action:h,location:x.location,delta:1})}function C(T,_){h="REPLACE";let M=Mp(T)?T:Ms(x.location,T,_);p=b();let D=zp(M,p),q=x.createHref(M.mask||M);d.replaceState(D,"",q),f&&v&&v({action:h,location:x.location,delta:0})}function O(T){return ES(T)}let x={get action(){return h},get location(){return l(s,d)},listen(T){if(v)throw new Error("A history only accepts one active listener");return s.addEventListener(Op,g),v=T,()=>{s.removeEventListener(Op,g),v=null}},createHref(T){return i(s,T)},createURL:O,encodeLocation(T){let _=O(T);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:E,replace:C,go(T){return d.go(T)}};return x}function ES(l,i=!1){let u="http://localhost";typeof window<"u"&&(u=window.location.origin!=="null"?window.location.origin:window.location.href),Xe(u,"No window.location.(origin|href) available to create URL");let r=typeof l=="string"?l:Bi(l);return r=r.replace(/ $/,"%20"),!i&&r.startsWith("//")&&(r=u+r),new URL(r,u)}function xv(l,i,u="/"){return wS(l,i,u,!1)}function wS(l,i,u,r,s){let f=typeof i=="string"?ja(i):i,d=jn(f.pathname||"/",u);if(d==null)return null;let h=CS(l),v=null,p=jS(d);for(let b=0;v==null&&b<h.length;++b)v=LS(h[b],p,r);return v}function CS(l){let i=Ev(l);return TS(i),i}function Ev(l,i=[],u=[],r="",s=!1){let f=(d,h,v=s,p)=>{let b={relativePath:p===void 0?d.path||"":p,caseSensitive:d.caseSensitive===!0,childrenIndex:h,route:d};if(b.relativePath.startsWith("/")){if(!b.relativePath.startsWith(r)&&v)return;Xe(b.relativePath.startsWith(r),`Absolute route path "${b.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),b.relativePath=b.relativePath.slice(r.length)}let g=Pt([r,b.relativePath]),E=u.concat(b);d.children&&d.children.length>0&&(Xe(d.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),Ev(d.children,i,E,g,v)),!(d.path==null&&!d.index)&&i.push({path:g,score:NS(g,d.index),routesMeta:E})};return l.forEach((d,h)=>{var v;if(d.path===""||!((v=d.path)!=null&&v.includes("?")))f(d,h);else for(let p of wv(d.path))f(d,h,!0,p)}),i}function wv(l){let i=l.split("/");if(i.length===0)return[];let[u,...r]=i,s=u.endsWith("?"),f=u.replace(/\?$/,"");if(r.length===0)return s?[f,""]:[f];let d=wv(r.join("/")),h=[];return h.push(...d.map(v=>v===""?f:[f,v].join("/"))),s&&h.push(...d),h.map(v=>l.startsWith("/")&&v===""?"/":v)}function TS(l){l.sort((i,u)=>i.score!==u.score?u.score-i.score:DS(i.routesMeta.map(r=>r.childrenIndex),u.routesMeta.map(r=>r.childrenIndex)))}var RS=/^:[\w-]+$/,AS=3,_S=2,OS=1,MS=10,zS=-2,Np=l=>l==="*";function NS(l,i){let u=l.split("/"),r=u.length;return u.some(Np)&&(r+=zS),i&&(r+=_S),u.filter(s=>!Np(s)).reduce((s,f)=>s+(RS.test(f)?AS:f===""?OS:MS),r)}function DS(l,i){return l.length===i.length&&l.slice(0,-1).every((r,s)=>r===i[s])?l[l.length-1]-i[i.length-1]:0}function LS(l,i,u=!1){let{routesMeta:r}=l,s={},f="/",d=[];for(let h=0;h<r.length;++h){let v=r[h],p=h===r.length-1,b=f==="/"?i:i.slice(f.length)||"/",g=Ro({path:v.relativePath,caseSensitive:v.caseSensitive,end:p},b),E=v.route;if(!g&&p&&u&&!r[r.length-1].route.index&&(g=Ro({path:v.relativePath,caseSensitive:v.caseSensitive,end:!1},b)),!g)return null;Object.assign(s,g.params),d.push({params:s,pathname:Pt([f,g.pathname]),pathnameBase:qS(Pt([f,g.pathnameBase])),route:E}),g.pathnameBase!=="/"&&(f=Pt([f,g.pathnameBase]))}return d}function Ro(l,i){typeof l=="string"&&(l={path:l,caseSensitive:!1,end:!0});let[u,r]=US(l.path,l.caseSensitive,l.end),s=i.match(u);if(!s)return null;let f=s[0],d=f.replace(/(.)\/+$/,"$1"),h=s.slice(1);return{params:r.reduce((p,{paramName:b,isOptional:g},E)=>{if(b==="*"){let O=h[E]||"";d=f.slice(0,f.length-O.length).replace(/(.)\/+$/,"$1")}const C=h[E];return g&&!C?p[b]=void 0:p[b]=(C||"").replace(/%2F/g,"/"),p},{}),pathname:f,pathnameBase:d,pattern:l}}function US(l,i=!1,u=!0){Ft(l==="*"||!l.endsWith("*")||l.endsWith("/*"),`Route path "${l}" will be treated as if it were "${l.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${l.replace(/\*$/,"/*")}".`);let r=[],s="^"+l.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,h,v,p,b)=>{if(r.push({paramName:h,isOptional:v!=null}),v){let g=b.charAt(p+d.length);return g&&g!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return l.endsWith("*")?(r.push({paramName:"*"}),s+=l==="*"||l==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):u?s+="\\/*$":l!==""&&l!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,i?void 0:"i"),r]}function jS(l){try{return l.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return Ft(!1,`The URL path "${l}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),l}}function jn(l,i){if(i==="/")return l;if(!l.toLowerCase().startsWith(i.toLowerCase()))return null;let u=i.endsWith("/")?i.length-1:i.length,r=l.charAt(u);return r&&r!=="/"?null:l.slice(u)||"/"}var HS=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function BS(l,i="/"){let{pathname:u,search:r="",hash:s=""}=typeof l=="string"?ja(l):l,f;return u?(u=Tv(u),u.startsWith("/")?f=Dp(u.substring(1),"/"):f=Dp(u,i)):f=i,{pathname:f,search:YS(r),hash:VS(s)}}function Dp(l,i){let u=Ao(i).split("/");return l.split("/").forEach(s=>{s===".."?u.length>1&&u.pop():s!=="."&&u.push(s)}),u.length>1?u.join("/"):"/"}function ps(l,i,u,r){return`Cannot include a '${l}' character in a manually specified \`to.${i}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${u}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function kS(l){return l.filter((i,u)=>u===0||i.route.path&&i.route.path.length>0)}function Cv(l){let i=kS(l);return i.map((u,r)=>r===i.length-1?u.pathname:u.pathnameBase)}function $s(l,i,u,r=!1){let s;typeof l=="string"?s=ja(l):(s={...l},Xe(!s.pathname||!s.pathname.includes("?"),ps("?","pathname","search",s)),Xe(!s.pathname||!s.pathname.includes("#"),ps("#","pathname","hash",s)),Xe(!s.search||!s.search.includes("#"),ps("#","search","hash",s)));let f=l===""||s.pathname==="",d=f?"/":s.pathname,h;if(d==null)h=u;else{let g=i.length-1;if(!r&&d.startsWith("..")){let E=d.split("/");for(;E[0]==="..";)E.shift(),g-=1;s.pathname=E.join("/")}h=g>=0?i[g]:"/"}let v=BS(s,h),p=d&&d!=="/"&&d.endsWith("/"),b=(f||d===".")&&u.endsWith("/");return!v.pathname.endsWith("/")&&(p||b)&&(v.pathname+="/"),v}var Tv=l=>l.replace(/\/\/+/g,"/"),Pt=l=>Tv(l.join("/")),Ao=l=>l.replace(/\/+$/,""),qS=l=>Ao(l).replace(/^\/*/,"/"),YS=l=>!l||l==="?"?"":l.startsWith("?")?l:"?"+l,VS=l=>!l||l==="#"?"":l.startsWith("#")?l:"#"+l,GS=class{constructor(l,i,u,r=!1){this.status=l,this.statusText=i||"",this.internal=r,u instanceof Error?(this.data=u.toString(),this.error=u):this.data=u}};function XS(l){return l!=null&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.internal=="boolean"&&"data"in l}function QS(l){let i=l.map(u=>u.route.path).filter(Boolean);return Pt(i)||"/"}var Rv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Av(l,i){let u=l;if(typeof u!="string"||!HS.test(u))return{absoluteURL:void 0,isExternal:!1,to:u};let r=u,s=!1;if(Rv)try{let f=new URL(window.location.href),d=u.startsWith("//")?new URL(f.protocol+u):new URL(u),h=jn(d.pathname,i);d.origin===f.origin&&h!=null?u=h+d.search+d.hash:s=!0}catch{Ft(!1,`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:s,to:u}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var _v=["POST","PUT","PATCH","DELETE"];new Set(_v);var ZS=["GET",..._v];new Set(ZS);var Ha=y.createContext(null);Ha.displayName="DataRouter";var Lo=y.createContext(null);Lo.displayName="DataRouterState";var Ov=y.createContext(!1);function KS(){return y.useContext(Ov)}var Mv=y.createContext({isTransitioning:!1});Mv.displayName="ViewTransition";var JS=y.createContext(new Map);JS.displayName="Fetchers";var $S=y.createContext(null);$S.displayName="Await";var Qt=y.createContext(null);Qt.displayName="Navigation";var qi=y.createContext(null);qi.displayName="Location";var nn=y.createContext({outlet:null,matches:[],isDataRoute:!1});nn.displayName="Route";var Ws=y.createContext(null);Ws.displayName="RouteError";var zv="REACT_ROUTER_ERROR",WS="REDIRECT",PS="ROUTE_ERROR_RESPONSE";function FS(l){if(l.startsWith(`${zv}:${WS}:{`))try{let i=JSON.parse(l.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 IS(l){if(l.startsWith(`${zv}:${PS}:{`))try{let i=JSON.parse(l.slice(40));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string")return new GS(i.status,i.statusText,i.data)}catch{}}function e1(l,{relative:i}={}){Xe(Yi(),"useHref() may be used only in the context of a <Router> component.");let{basename:u,navigator:r}=y.useContext(Qt),{hash:s,pathname:f,search:d}=Vi(l,{relative:i}),h=f;return u!=="/"&&(h=f==="/"?u:Pt([u,f])),r.createHref({pathname:h,search:d,hash:s})}function Yi(){return y.useContext(qi)!=null}function ln(){return Xe(Yi(),"useLocation() may be used only in the context of a <Router> component."),y.useContext(qi).location}var Nv="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Dv(l){y.useContext(Qt).static||y.useLayoutEffect(l)}function Ps(){let{isDataRoute:l}=y.useContext(nn);return l?p1():t1()}function t1(){Xe(Yi(),"useNavigate() may be used only in the context of a <Router> component.");let l=y.useContext(Ha),{basename:i,navigator:u}=y.useContext(Qt),{matches:r}=y.useContext(nn),{pathname:s}=ln(),f=JSON.stringify(Cv(r)),d=y.useRef(!1);return Dv(()=>{d.current=!0}),y.useCallback((v,p={})=>{if(Ft(d.current,Nv),!d.current)return;if(typeof v=="number"){u.go(v);return}let b=$s(v,JSON.parse(f),s,p.relative==="path");l==null&&i!=="/"&&(b.pathname=b.pathname==="/"?i:Pt([i,b.pathname])),(p.replace?u.replace:u.push)(b,p.state,p)},[i,u,f,s,l])}var n1=y.createContext(null);function l1(l){let i=y.useContext(nn).outlet;return y.useMemo(()=>i&&y.createElement(n1.Provider,{value:l},i),[i,l])}function DT(){let{matches:l}=y.useContext(nn),i=l[l.length-1];return(i==null?void 0:i.params)??{}}function Vi(l,{relative:i}={}){let{matches:u}=y.useContext(nn),{pathname:r}=ln(),s=JSON.stringify(Cv(u));return y.useMemo(()=>$s(l,JSON.parse(s),r,i==="path"),[l,s,r,i])}function a1(l,i){return Lv(l,i)}function Lv(l,i,u){var T;Xe(Yi(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=y.useContext(Qt),{matches:s}=y.useContext(nn),f=s[s.length-1],d=f?f.params:{},h=f?f.pathname:"/",v=f?f.pathnameBase:"/",p=f&&f.route;{let _=p&&p.path||"";jv(h,!p||_.endsWith("*")||_.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${_}">) 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.
60
+
61
+ Please change the parent <Route path="${_}"> to <Route path="${_==="/"?"*":`${_}/*`}">.`)}let b=ln(),g;if(i){let _=typeof i=="string"?ja(i):i;Xe(v==="/"||((T=_.pathname)==null?void 0:T.startsWith(v)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${v}" but pathname "${_.pathname}" was given in the \`location\` prop.`),g=_}else g=b;let E=g.pathname||"/",C=E;if(v!=="/"){let _=v.replace(/^\//,"").split("/");C="/"+E.replace(/^\//,"").split("/").slice(_.length).join("/")}let O=u&&u.state.matches.length?u.state.matches.map(_=>Object.assign(_,{route:u.manifest[_.route.id]||_.route})):xv(l,{pathname:C});Ft(p||O!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),Ft(O==null||O[O.length-1].route.element!==void 0||O[O.length-1].route.Component!==void 0||O[O.length-1].route.lazy!==void 0,`Matched leaf route at location "${g.pathname}${g.search}${g.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let x=c1(O&&O.map(_=>Object.assign({},_,{params:Object.assign({},d,_.params),pathname:Pt([v,r.encodeLocation?r.encodeLocation(_.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:_.pathname]),pathnameBase:_.pathnameBase==="/"?v:Pt([v,r.encodeLocation?r.encodeLocation(_.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:_.pathnameBase])})),s,u);return i&&x?y.createElement(qi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...g},navigationType:"POP"}},x):x}function i1(){let l=h1(),i=XS(l)?`${l.status} ${l.statusText}`:l instanceof Error?l.message:JSON.stringify(l),u=l instanceof Error?l.stack:null,r="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:r},f={padding:"2px 4px",backgroundColor:r},d=null;return console.error("Error handled by React Router default ErrorBoundary:",l),d=y.createElement(y.Fragment,null,y.createElement("p",null,"💿 Hey developer 👋"),y.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",y.createElement("code",{style:f},"ErrorBoundary")," or"," ",y.createElement("code",{style:f},"errorElement")," prop on your route.")),y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},i),u?y.createElement("pre",{style:s},u):null,d)}var r1=y.createElement(i1,null),Uv=class extends y.Component{constructor(l){super(l),this.state={location:l.location,revalidation:l.revalidation,error:l.error}}static getDerivedStateFromError(l){return{error:l}}static getDerivedStateFromProps(l,i){return i.location!==l.location||i.revalidation!=="idle"&&l.revalidation==="idle"?{error:l.error,location:l.location,revalidation:l.revalidation}:{error:l.error!==void 0?l.error:i.error,location:i.location,revalidation:l.revalidation||i.revalidation}}componentDidCatch(l,i){this.props.onError?this.props.onError(l,i):console.error("React Router caught the following error during render",l)}render(){let l=this.state.error;if(this.context&&typeof l=="object"&&l&&"digest"in l&&typeof l.digest=="string"){const u=IS(l.digest);u&&(l=u)}let i=l!==void 0?y.createElement(nn.Provider,{value:this.props.routeContext},y.createElement(Ws.Provider,{value:l,children:this.props.component})):this.props.children;return this.context?y.createElement(o1,{error:l},i):i}};Uv.contextType=Ov;var vs=new WeakMap;function o1({children:l,error:i}){let{basename:u}=y.useContext(Qt);if(typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){let r=FS(i.digest);if(r){let s=vs.get(i);if(s)throw s;let f=Av(r.location,u);if(Rv&&!vs.get(i))if(f.isExternal||r.reloadDocument)window.location.href=f.absoluteURL||f.to;else{const d=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(f.to,{replace:r.replace}));throw vs.set(i,d),d}return y.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return l}function u1({routeContext:l,match:i,children:u}){let r=y.useContext(Ha);return r&&r.static&&r.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=i.route.id),y.createElement(nn.Provider,{value:l},u)}function c1(l,i=[],u){let r=u==null?void 0:u.state;if(l==null){if(!r)return null;if(r.errors)l=r.matches;else if(i.length===0&&!r.initialized&&r.matches.length>0)l=r.matches;else return null}let s=l,f=r==null?void 0:r.errors;if(f!=null){let b=s.findIndex(g=>g.route.id&&(f==null?void 0:f[g.route.id])!==void 0);Xe(b>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),s=s.slice(0,Math.min(s.length,b+1))}let d=!1,h=-1;if(u&&r){d=r.renderFallback;for(let b=0;b<s.length;b++){let g=s[b];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(h=b),g.route.id){let{loaderData:E,errors:C}=r,O=g.route.loader&&!E.hasOwnProperty(g.route.id)&&(!C||C[g.route.id]===void 0);if(g.route.lazy||O){u.isStatic&&(d=!0),h>=0?s=s.slice(0,h+1):s=[s[0]];break}}}}let v=u==null?void 0:u.onError,p=r&&v?(b,g)=>{var E,C;v(b,{location:r.location,params:((C=(E=r.matches)==null?void 0:E[0])==null?void 0:C.params)??{},pattern:QS(r.matches),errorInfo:g})}:void 0;return s.reduceRight((b,g,E)=>{let C,O=!1,x=null,T=null;r&&(C=f&&g.route.id?f[g.route.id]:void 0,x=g.route.errorElement||r1,d&&(h<0&&E===0?(jv("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),O=!0,T=null):h===E&&(O=!0,T=g.route.hydrateFallbackElement||null)));let _=i.concat(s.slice(0,E+1)),M=()=>{let D;return C?D=x:O?D=T:g.route.Component?D=y.createElement(g.route.Component,null):g.route.element?D=g.route.element:D=b,y.createElement(u1,{match:g,routeContext:{outlet:b,matches:_,isDataRoute:r!=null},children:D})};return r&&(g.route.ErrorBoundary||g.route.errorElement||E===0)?y.createElement(Uv,{location:r.location,revalidation:r.revalidation,component:x,error:C,children:M(),routeContext:{outlet:null,matches:_,isDataRoute:!0},onError:p}):M()},null)}function Fs(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function s1(l){let i=y.useContext(Ha);return Xe(i,Fs(l)),i}function f1(l){let i=y.useContext(Lo);return Xe(i,Fs(l)),i}function d1(l){let i=y.useContext(nn);return Xe(i,Fs(l)),i}function Is(l){let i=d1(l),u=i.matches[i.matches.length-1];return Xe(u.route.id,`${l} can only be used on routes that contain a unique "id"`),u.route.id}function m1(){return Is("useRouteId")}function h1(){var r;let l=y.useContext(Ws),i=f1("useRouteError"),u=Is("useRouteError");return l!==void 0?l:(r=i.errors)==null?void 0:r[u]}function p1(){let{router:l}=s1("useNavigate"),i=Is("useNavigate"),u=y.useRef(!1);return Dv(()=>{u.current=!0}),y.useCallback(async(s,f={})=>{Ft(u.current,Nv),u.current&&(typeof s=="number"?await l.navigate(s):await l.navigate(s,{fromRouteId:i,...f}))},[l,i])}var Lp={};function jv(l,i,u){!i&&!Lp[l]&&(Lp[l]=!0,Ft(!1,u))}y.memo(v1);function v1({routes:l,manifest:i,future:u,state:r,isStatic:s,onError:f}){return Lv(l,void 0,{manifest:i,state:r,isStatic:s,onError:f})}function Up(l){return l1(l.context)}function ft(l){Xe(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function y1({basename:l="/",children:i=null,location:u,navigationType:r="POP",navigator:s,static:f=!1,useTransitions:d}){Xe(!Yi(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let h=l.replace(/^\/*/,"/"),v=y.useMemo(()=>({basename:h,navigator:s,static:f,useTransitions:d,future:{}}),[h,s,f,d]);typeof u=="string"&&(u=ja(u));let{pathname:p="/",search:b="",hash:g="",state:E=null,key:C="default",mask:O}=u,x=y.useMemo(()=>{let T=jn(p,h);return T==null?null:{location:{pathname:T,search:b,hash:g,state:E,key:C,mask:O},navigationType:r}},[h,p,b,g,E,C,r,O]);return Ft(x!=null,`<Router basename="${h}"> is not able to match the URL "${p}${b}${g}" because it does not start with the basename, so the <Router> won't render anything.`),x==null?null:y.createElement(Qt.Provider,{value:v},y.createElement(qi.Provider,{children:i,value:x}))}function g1({children:l,location:i}){return a1(zs(l),i)}function zs(l,i=[]){let u=[];return y.Children.forEach(l,(r,s)=>{if(!y.isValidElement(r))return;let f=[...i,s];if(r.type===y.Fragment){u.push.apply(u,zs(r.props.children,f));return}Xe(r.type===ft,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Xe(!r.props.index||!r.props.children,"An index route cannot have child routes.");let d={id:r.props.id||f.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(d.children=zs(r.props.children,f)),u.push(d)}),u}var xo="get",Eo="application/x-www-form-urlencoded";function Uo(l){return typeof HTMLElement<"u"&&l instanceof HTMLElement}function b1(l){return Uo(l)&&l.tagName.toLowerCase()==="button"}function S1(l){return Uo(l)&&l.tagName.toLowerCase()==="form"}function x1(l){return Uo(l)&&l.tagName.toLowerCase()==="input"}function E1(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}function w1(l,i){return l.button===0&&(!i||i==="_self")&&!E1(l)}function Ns(l=""){return new URLSearchParams(typeof l=="string"||Array.isArray(l)||l instanceof URLSearchParams?l:Object.keys(l).reduce((i,u)=>{let r=l[u];return i.concat(Array.isArray(r)?r.map(s=>[u,s]):[[u,r]])},[]))}function C1(l,i){let u=Ns(l);return i&&i.forEach((r,s)=>{u.has(s)||i.getAll(s).forEach(f=>{u.append(s,f)})}),u}var so=null;function T1(){if(so===null)try{new FormData(document.createElement("form"),0),so=!1}catch{so=!0}return so}var R1=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ys(l){return l!=null&&!R1.has(l)?(Ft(!1,`"${l}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Eo}"`),null):l}function A1(l,i){let u,r,s,f,d;if(S1(l)){let h=l.getAttribute("action");r=h?jn(h,i):null,u=l.getAttribute("method")||xo,s=ys(l.getAttribute("enctype"))||Eo,f=new FormData(l)}else if(b1(l)||x1(l)&&(l.type==="submit"||l.type==="image")){let h=l.form;if(h==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let v=l.getAttribute("formaction")||h.getAttribute("action");if(r=v?jn(v,i):null,u=l.getAttribute("formmethod")||h.getAttribute("method")||xo,s=ys(l.getAttribute("formenctype"))||ys(h.getAttribute("enctype"))||Eo,f=new FormData(h,l),!T1()){let{name:p,type:b,value:g}=l;if(b==="image"){let E=p?`${p}.`:"";f.append(`${E}x`,"0"),f.append(`${E}y`,"0")}else p&&f.append(p,g)}}else{if(Uo(l))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');u=xo,r=null,s=Eo,d=l}return f&&s==="text/plain"&&(d=f,f=void 0),{action:r,method:u.toLowerCase(),encType:s,formData:f,body:d}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function ef(l,i){if(l===!1||l===null||typeof l>"u")throw new Error(i)}function Hv(l,i,u,r){let s=typeof l=="string"?new URL(l,typeof window>"u"?"server://singlefetch/":window.location.origin):l;return u?s.pathname.endsWith("/")?s.pathname=`${s.pathname}_.${r}`:s.pathname=`${s.pathname}.${r}`:s.pathname==="/"?s.pathname=`_root.${r}`:i&&jn(s.pathname,i)==="/"?s.pathname=`${Ao(i)}/_root.${r}`:s.pathname=`${Ao(s.pathname)}.${r}`,s}async function _1(l,i){if(l.id in i)return i[l.id];try{let u=await import(l.module);return i[l.id]=u,u}catch(u){return console.error(`Error loading route module \`${l.module}\`, reloading page...`),console.error(u),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function O1(l){return l==null?!1:l.href==null?l.rel==="preload"&&typeof l.imageSrcSet=="string"&&typeof l.imageSizes=="string":typeof l.rel=="string"&&typeof l.href=="string"}async function M1(l,i,u){let r=await Promise.all(l.map(async s=>{let f=i.routes[s.route.id];if(f){let d=await _1(f,u);return d.links?d.links():[]}return[]}));return L1(r.flat(1).filter(O1).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function jp(l,i,u,r,s,f){let d=(v,p)=>u[p]?v.route.id!==u[p].route.id:!0,h=(v,p)=>{var b;return u[p].pathname!==v.pathname||((b=u[p].route.path)==null?void 0:b.endsWith("*"))&&u[p].params["*"]!==v.params["*"]};return f==="assets"?i.filter((v,p)=>d(v,p)||h(v,p)):f==="data"?i.filter((v,p)=>{var g;let b=r.routes[v.route.id];if(!b||!b.hasLoader)return!1;if(d(v,p)||h(v,p))return!0;if(v.route.shouldRevalidate){let E=v.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:((g=u[0])==null?void 0:g.params)||{},nextUrl:new URL(l,window.origin),nextParams:v.params,defaultShouldRevalidate:!0});if(typeof E=="boolean")return E}return!0}):[]}function z1(l,i,{includeHydrateFallback:u}={}){return N1(l.map(r=>{let s=i.routes[r.route.id];if(!s)return[];let f=[s.module];return s.clientActionModule&&(f=f.concat(s.clientActionModule)),s.clientLoaderModule&&(f=f.concat(s.clientLoaderModule)),u&&s.hydrateFallbackModule&&(f=f.concat(s.hydrateFallbackModule)),s.imports&&(f=f.concat(s.imports)),f}).flat(1))}function N1(l){return[...new Set(l)]}function D1(l){let i={},u=Object.keys(l).sort();for(let r of u)i[r]=l[r];return i}function L1(l,i){let u=new Set;return new Set(i),l.reduce((r,s)=>{let f=JSON.stringify(D1(s));return u.has(f)||(u.add(f),r.push({key:f,link:s})),r},[])}function tf(){let l=y.useContext(Ha);return ef(l,"You must render this element inside a <DataRouterContext.Provider> element"),l}function U1(){let l=y.useContext(Lo);return ef(l,"You must render this element inside a <DataRouterStateContext.Provider> element"),l}var nf=y.createContext(void 0);nf.displayName="FrameworkContext";function lf(){let l=y.useContext(nf);return ef(l,"You must render this element inside a <HydratedRouter> element"),l}function j1(l,i){let u=y.useContext(nf),[r,s]=y.useState(!1),[f,d]=y.useState(!1),{onFocus:h,onBlur:v,onMouseEnter:p,onMouseLeave:b,onTouchStart:g}=i,E=y.useRef(null);y.useEffect(()=>{if(l==="render"&&d(!0),l==="viewport"){let x=_=>{_.forEach(M=>{d(M.isIntersecting)})},T=new IntersectionObserver(x,{threshold:.5});return E.current&&T.observe(E.current),()=>{T.disconnect()}}},[l]),y.useEffect(()=>{if(r){let x=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(x)}}},[r]);let C=()=>{s(!0)},O=()=>{s(!1),d(!1)};return u?l!=="intent"?[f,E,{}]:[f,E,{onFocus:Ui(h,C),onBlur:Ui(v,O),onMouseEnter:Ui(p,C),onMouseLeave:Ui(b,O),onTouchStart:Ui(g,C)}]:[!1,E,{}]}function Ui(l,i){return u=>{l&&l(u),u.defaultPrevented||i(u)}}function H1({page:l,...i}){let u=KS(),{router:r}=tf(),s=y.useMemo(()=>xv(r.routes,l,r.basename),[r.routes,l,r.basename]);return s?u?y.createElement(k1,{page:l,matches:s,...i}):y.createElement(q1,{page:l,matches:s,...i}):null}function B1(l){let{manifest:i,routeModules:u}=lf(),[r,s]=y.useState([]);return y.useEffect(()=>{let f=!1;return M1(l,i,u).then(d=>{f||s(d)}),()=>{f=!0}},[l,i,u]),r}function k1({page:l,matches:i,...u}){let r=ln(),{future:s}=lf(),{basename:f}=tf(),d=y.useMemo(()=>{if(l===r.pathname+r.search+r.hash)return[];let h=Hv(l,f,s.unstable_trailingSlashAwareDataRequests,"rsc"),v=!1,p=[];for(let b of i)typeof b.route.shouldRevalidate=="function"?v=!0:p.push(b.route.id);return v&&p.length>0&&h.searchParams.set("_routes",p.join(",")),[h.pathname+h.search]},[f,s.unstable_trailingSlashAwareDataRequests,l,r,i]);return y.createElement(y.Fragment,null,d.map(h=>y.createElement("link",{key:h,rel:"prefetch",as:"fetch",href:h,...u})))}function q1({page:l,matches:i,...u}){let r=ln(),{future:s,manifest:f,routeModules:d}=lf(),{basename:h}=tf(),{loaderData:v,matches:p}=U1(),b=y.useMemo(()=>jp(l,i,p,f,r,"data"),[l,i,p,f,r]),g=y.useMemo(()=>jp(l,i,p,f,r,"assets"),[l,i,p,f,r]),E=y.useMemo(()=>{if(l===r.pathname+r.search+r.hash)return[];let x=new Set,T=!1;if(i.forEach(M=>{var q;let D=f.routes[M.route.id];!D||!D.hasLoader||(!b.some(K=>K.route.id===M.route.id)&&M.route.id in v&&((q=d[M.route.id])!=null&&q.shouldRevalidate)||D.hasClientLoader?T=!0:x.add(M.route.id))}),x.size===0)return[];let _=Hv(l,h,s.unstable_trailingSlashAwareDataRequests,"data");return T&&x.size>0&&_.searchParams.set("_routes",i.filter(M=>x.has(M.route.id)).map(M=>M.route.id).join(",")),[_.pathname+_.search]},[h,s.unstable_trailingSlashAwareDataRequests,v,r,f,b,i,l,d]),C=y.useMemo(()=>z1(g,f),[g,f]),O=B1(g);return y.createElement(y.Fragment,null,E.map(x=>y.createElement("link",{key:x,rel:"prefetch",as:"fetch",href:x,...u})),C.map(x=>y.createElement("link",{key:x,rel:"modulepreload",href:x,...u})),O.map(({key:x,link:T})=>y.createElement("link",{key:x,nonce:u.nonce,...T,crossOrigin:T.crossOrigin??u.crossOrigin})))}function Y1(...l){return i=>{l.forEach(u=>{typeof u=="function"?u(i):u!=null&&(u.current=i)})}}var V1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{V1&&(window.__reactRouterVersion="7.15.1")}catch{}function G1({basename:l,children:i,useTransitions:u,window:r}){let s=y.useRef();s.current==null&&(s.current=bS({window:r,v5Compat:!0}));let f=s.current,[d,h]=y.useState({action:f.action,location:f.location}),v=y.useCallback(p=>{u===!1?h(p):y.startTransition(()=>h(p))},[u]);return y.useLayoutEffect(()=>f.listen(v),[f,v]),y.createElement(y1,{basename:l,children:i,location:d.location,navigationType:d.action,navigator:f,useTransitions:u})}var Bv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,kv=y.forwardRef(function({onClick:i,discover:u="render",prefetch:r="none",relative:s,reloadDocument:f,replace:d,mask:h,state:v,target:p,to:b,preventScrollReset:g,viewTransition:E,defaultShouldRevalidate:C,...O},x){let{basename:T,navigator:_,useTransitions:M}=y.useContext(Qt),D=typeof b=="string"&&Bv.test(b),q=Av(b,T);b=q.to;let K=e1(b,{relative:s}),W=ln(),Y=null;if(h){let se=$s(h,[],W.mask?W.mask.pathname:"/",!0);T!=="/"&&(se.pathname=se.pathname==="/"?T:Pt([T,se.pathname])),Y=_.createHref(se)}let[X,ae,he]=j1(r,O),pe=Z1(b,{replace:d,mask:h,state:v,target:p,preventScrollReset:g,relative:s,viewTransition:E,defaultShouldRevalidate:C,useTransitions:M});function de(se){i&&i(se),se.defaultPrevented||pe(se)}let ge=!(q.isExternal||f),me=y.createElement("a",{...O,...he,href:(ge?Y:void 0)||q.absoluteURL||K,onClick:ge?de:i,ref:Y1(x,ae),target:p,"data-discover":!D&&u==="render"?"true":void 0});return X&&!D?y.createElement(y.Fragment,null,me,y.createElement(H1,{page:K})):me});kv.displayName="Link";var Ds=y.forwardRef(function({"aria-current":i="page",caseSensitive:u=!1,className:r="",end:s=!1,style:f,to:d,viewTransition:h,children:v,...p},b){let g=Vi(d,{relative:p.relative}),E=ln(),C=y.useContext(Lo),{navigator:O,basename:x}=y.useContext(Qt),T=C!=null&&P1(g)&&h===!0,_=O.encodeLocation?O.encodeLocation(g).pathname:g.pathname,M=E.pathname,D=C&&C.navigation&&C.navigation.location?C.navigation.location.pathname:null;u||(M=M.toLowerCase(),D=D?D.toLowerCase():null,_=_.toLowerCase()),D&&x&&(D=jn(D,x)||D);const q=_!=="/"&&_.endsWith("/")?_.length-1:_.length;let K=M===_||!s&&M.startsWith(_)&&M.charAt(q)==="/",W=D!=null&&(D===_||!s&&D.startsWith(_)&&D.charAt(_.length)==="/"),Y={isActive:K,isPending:W,isTransitioning:T},X=K?i:void 0,ae;typeof r=="function"?ae=r(Y):ae=[r,K?"active":null,W?"pending":null,T?"transitioning":null].filter(Boolean).join(" ");let he=typeof f=="function"?f(Y):f;return y.createElement(kv,{...p,"aria-current":X,className:ae,ref:b,style:he,to:d,viewTransition:h},typeof v=="function"?v(Y):v)});Ds.displayName="NavLink";var X1=y.forwardRef(({discover:l="render",fetcherKey:i,navigate:u,reloadDocument:r,replace:s,state:f,method:d=xo,action:h,onSubmit:v,relative:p,preventScrollReset:b,viewTransition:g,defaultShouldRevalidate:E,...C},O)=>{let{useTransitions:x}=y.useContext(Qt),T=$1(),_=W1(h,{relative:p}),M=d.toLowerCase()==="get"?"get":"post",D=typeof h=="string"&&Bv.test(h),q=K=>{if(v&&v(K),K.defaultPrevented)return;K.preventDefault();let W=K.nativeEvent.submitter,Y=(W==null?void 0:W.getAttribute("formmethod"))||d,X=()=>T(W||K.currentTarget,{fetcherKey:i,method:Y,navigate:u,replace:s,state:f,relative:p,preventScrollReset:b,viewTransition:g,defaultShouldRevalidate:E});x&&u!==!1?y.startTransition(()=>X()):X()};return y.createElement("form",{ref:O,method:M,action:_,onSubmit:r?v:q,...C,"data-discover":!D&&l==="render"?"true":void 0})});X1.displayName="Form";function Q1(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function qv(l){let i=y.useContext(Ha);return Xe(i,Q1(l)),i}function Z1(l,{target:i,replace:u,mask:r,state:s,preventScrollReset:f,relative:d,viewTransition:h,defaultShouldRevalidate:v,useTransitions:p}={}){let b=Ps(),g=ln(),E=Vi(l,{relative:d});return y.useCallback(C=>{if(w1(C,i)){C.preventDefault();let O=u!==void 0?u:Bi(g)===Bi(E),x=()=>b(l,{replace:O,mask:r,state:s,preventScrollReset:f,relative:d,viewTransition:h,defaultShouldRevalidate:v});p?y.startTransition(()=>x()):x()}},[g,b,E,u,r,s,i,l,f,d,h,v,p])}function LT(l){Ft(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let i=y.useRef(Ns(l)),u=y.useRef(!1),r=ln(),s=y.useMemo(()=>C1(r.search,u.current?null:i.current),[r.search]),f=Ps(),d=y.useCallback((h,v)=>{const p=Ns(typeof h=="function"?h(new URLSearchParams(s)):h);u.current=!0,f("?"+p,v)},[f,s]);return[s,d]}var K1=0,J1=()=>`__${String(++K1)}__`;function $1(){let{router:l}=qv("useSubmit"),{basename:i}=y.useContext(Qt),u=m1(),r=l.fetch,s=l.navigate;return y.useCallback(async(f,d={})=>{let{action:h,method:v,encType:p,formData:b,body:g}=A1(f,i);if(d.navigate===!1){let E=d.fetcherKey||J1();await r(E,u,d.action||h,{defaultShouldRevalidate:d.defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:b,body:g,formMethod:d.method||v,formEncType:d.encType||p,flushSync:d.flushSync})}else await s(d.action||h,{defaultShouldRevalidate:d.defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:b,body:g,formMethod:d.method||v,formEncType:d.encType||p,replace:d.replace,state:d.state,fromRouteId:u,flushSync:d.flushSync,viewTransition:d.viewTransition})},[r,s,i,u])}function W1(l,{relative:i}={}){let{basename:u}=y.useContext(Qt),r=y.useContext(nn);Xe(r,"useFormAction must be used inside a RouteContext");let[s]=r.matches.slice(-1),f={...Vi(l||".",{relative:i})},d=ln();if(l==null){f.search=d.search;let h=new URLSearchParams(f.search),v=h.getAll("index");if(v.some(b=>b==="")){h.delete("index"),v.filter(g=>g).forEach(g=>h.append("index",g));let b=h.toString();f.search=b?`?${b}`:""}}return(!l||l===".")&&s.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),u!=="/"&&(f.pathname=f.pathname==="/"?u:Pt([u,f.pathname])),Bi(f)}function P1(l,{relative:i}={}){let u=y.useContext(Mv);Xe(u!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=qv("useViewTransitionState"),s=Vi(l,{relative:i});if(!u.isTransitioning)return!1;let f=jn(u.currentLocation.pathname,r)||u.currentLocation.pathname,d=jn(u.nextLocation.pathname,r)||u.nextLocation.pathname;return Ro(s.pathname,d)!=null||Ro(s.pathname,f)!=null}const F1="/api";async function Gi(l,i){const u=await fetch(`${F1}${l}`,{headers:{"Content-Type":"application/json",...i==null?void 0:i.headers},...i});if(!u.ok){const r=await u.json().catch(()=>({error:u.statusText}));throw new Error(r.error||`HTTP ${u.status}`)}return u.json()}function I1(l){return Gi(l)}function UT(l,i){return Gi(l,{method:"POST",body:JSON.stringify(i)})}function jT(l,i){return Gi(l,{method:"PUT",body:JSON.stringify(i)})}function HT(l,i){return Gi(l,{method:"PATCH",body:JSON.stringify(i)})}function BT(l){return Gi(l,{method:"DELETE"})}function Yv(l){var i,u,r="";if(typeof l=="string"||typeof l=="number")r+=l;else if(typeof l=="object")if(Array.isArray(l)){var s=l.length;for(i=0;i<s;i++)l[i]&&(u=Yv(l[i]))&&(r&&(r+=" "),r+=u)}else for(u in l)l[u]&&(r&&(r+=" "),r+=u);return r}function ex(){for(var l,i,u=0,r="",s=arguments.length;u<s;u++)(l=arguments[u])&&(i=Yv(l))&&(r&&(r+=" "),r+=i);return r}const tx=(l,i)=>{const u=new Array(l.length+i.length);for(let r=0;r<l.length;r++)u[r]=l[r];for(let r=0;r<i.length;r++)u[l.length+r]=i[r];return u},nx=(l,i)=>({classGroupId:l,validator:i}),Vv=(l=new Map,i=null,u)=>({nextPart:l,validators:i,classGroupId:u}),_o="-",Hp=[],lx="arbitrary..",ax=l=>{const i=rx(l),{conflictingClassGroups:u,conflictingClassGroupModifiers:r}=l;return{getClassGroupId:d=>{if(d.startsWith("[")&&d.endsWith("]"))return ix(d);const h=d.split(_o),v=h[0]===""&&h.length>1?1:0;return Gv(h,v,i)},getConflictingClassGroupIds:(d,h)=>{if(h){const v=r[d],p=u[d];return v?p?tx(p,v):v:p||Hp}return u[d]||Hp}}},Gv=(l,i,u)=>{if(l.length-i===0)return u.classGroupId;const s=l[i],f=u.nextPart.get(s);if(f){const p=Gv(l,i+1,f);if(p)return p}const d=u.validators;if(d===null)return;const h=i===0?l.join(_o):l.slice(i).join(_o),v=d.length;for(let p=0;p<v;p++){const b=d[p];if(b.validator(h))return b.classGroupId}},ix=l=>l.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const i=l.slice(1,-1),u=i.indexOf(":"),r=i.slice(0,u);return r?lx+r:void 0})(),rx=l=>{const{theme:i,classGroups:u}=l;return ox(u,i)},ox=(l,i)=>{const u=Vv();for(const r in l){const s=l[r];af(s,u,r,i)}return u},af=(l,i,u,r)=>{const s=l.length;for(let f=0;f<s;f++){const d=l[f];ux(d,i,u,r)}},ux=(l,i,u,r)=>{if(typeof l=="string"){cx(l,i,u);return}if(typeof l=="function"){sx(l,i,u,r);return}fx(l,i,u,r)},cx=(l,i,u)=>{const r=l===""?i:Xv(i,l);r.classGroupId=u},sx=(l,i,u,r)=>{if(dx(l)){af(l(r),i,u,r);return}i.validators===null&&(i.validators=[]),i.validators.push(nx(u,l))},fx=(l,i,u,r)=>{const s=Object.entries(l),f=s.length;for(let d=0;d<f;d++){const[h,v]=s[d];af(v,Xv(i,h),u,r)}},Xv=(l,i)=>{let u=l;const r=i.split(_o),s=r.length;for(let f=0;f<s;f++){const d=r[f];let h=u.nextPart.get(d);h||(h=Vv(),u.nextPart.set(d,h)),u=h}return u},dx=l=>"isThemeGetter"in l&&l.isThemeGetter===!0,mx=l=>{if(l<1)return{get:()=>{},set:()=>{}};let i=0,u=Object.create(null),r=Object.create(null);const s=(f,d)=>{u[f]=d,i++,i>l&&(i=0,r=u,u=Object.create(null))};return{get(f){let d=u[f];if(d!==void 0)return d;if((d=r[f])!==void 0)return s(f,d),d},set(f,d){f in u?u[f]=d:s(f,d)}}},Ls="!",Bp=":",hx=[],kp=(l,i,u,r,s)=>({modifiers:l,hasImportantModifier:i,baseClassName:u,maybePostfixModifierPosition:r,isExternal:s}),px=l=>{const{prefix:i,experimentalParseClassName:u}=l;let r=s=>{const f=[];let d=0,h=0,v=0,p;const b=s.length;for(let x=0;x<b;x++){const T=s[x];if(d===0&&h===0){if(T===Bp){f.push(s.slice(v,x)),v=x+1;continue}if(T==="/"){p=x;continue}}T==="["?d++:T==="]"?d--:T==="("?h++:T===")"&&h--}const g=f.length===0?s:s.slice(v);let E=g,C=!1;g.endsWith(Ls)?(E=g.slice(0,-1),C=!0):g.startsWith(Ls)&&(E=g.slice(1),C=!0);const O=p&&p>v?p-v:void 0;return kp(f,C,E,O)};if(i){const s=i+Bp,f=r;r=d=>d.startsWith(s)?f(d.slice(s.length)):kp(hx,!1,d,void 0,!0)}if(u){const s=r;r=f=>u({className:f,parseClassName:s})}return r},vx=l=>{const i=new Map;return l.orderSensitiveModifiers.forEach((u,r)=>{i.set(u,1e6+r)}),u=>{const r=[];let s=[];for(let f=0;f<u.length;f++){const d=u[f],h=d[0]==="[",v=i.has(d);h||v?(s.length>0&&(s.sort(),r.push(...s),s=[]),r.push(d)):s.push(d)}return s.length>0&&(s.sort(),r.push(...s)),r}},yx=l=>({cache:mx(l.cacheSize),parseClassName:px(l),sortModifiers:vx(l),postfixLookupClassGroupIds:gx(l),...ax(l)}),gx=l=>{const i=Object.create(null),u=l.postfixLookupClassGroups;if(u)for(let r=0;r<u.length;r++)i[u[r]]=!0;return i},bx=/\s+/,Sx=(l,i)=>{const{parseClassName:u,getClassGroupId:r,getConflictingClassGroupIds:s,sortModifiers:f,postfixLookupClassGroupIds:d}=i,h=[],v=l.trim().split(bx);let p="";for(let b=v.length-1;b>=0;b-=1){const g=v[b],{isExternal:E,modifiers:C,hasImportantModifier:O,baseClassName:x,maybePostfixModifierPosition:T}=u(g);if(E){p=g+(p.length>0?" "+p:p);continue}let _=!!T,M;if(_){const Y=x.substring(0,T);M=r(Y);const X=M&&d[M]?r(x):void 0;X&&X!==M&&(M=X,_=!1)}else M=r(x);if(!M){if(!_){p=g+(p.length>0?" "+p:p);continue}if(M=r(x),!M){p=g+(p.length>0?" "+p:p);continue}_=!1}const D=C.length===0?"":C.length===1?C[0]:f(C).join(":"),q=O?D+Ls:D,K=q+M;if(h.indexOf(K)>-1)continue;h.push(K);const W=s(M,_);for(let Y=0;Y<W.length;++Y){const X=W[Y];h.push(q+X)}p=g+(p.length>0?" "+p:p)}return p},xx=(...l)=>{let i=0,u,r,s="";for(;i<l.length;)(u=l[i++])&&(r=Qv(u))&&(s&&(s+=" "),s+=r);return s},Qv=l=>{if(typeof l=="string")return l;let i,u="";for(let r=0;r<l.length;r++)l[r]&&(i=Qv(l[r]))&&(u&&(u+=" "),u+=i);return u},Ex=(l,...i)=>{let u,r,s,f;const d=v=>{const p=i.reduce((b,g)=>g(b),l());return u=yx(p),r=u.cache.get,s=u.cache.set,f=h,h(v)},h=v=>{const p=r(v);if(p)return p;const b=Sx(v,u);return s(v,b),b};return f=d,(...v)=>f(xx(...v))},wx=[],lt=l=>{const i=u=>u[l]||wx;return i.isThemeGetter=!0,i},Zv=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Kv=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Cx=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Tx=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Rx=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ax=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,_x=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ox=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,dl=l=>Cx.test(l),xe=l=>!!l&&!Number.isNaN(Number(l)),cn=l=>!!l&&Number.isInteger(Number(l)),gs=l=>l.endsWith("%")&&xe(l.slice(0,-1)),Ln=l=>Tx.test(l),Jv=()=>!0,Mx=l=>Rx.test(l)&&!Ax.test(l),rf=()=>!1,zx=l=>_x.test(l),Nx=l=>Ox.test(l),Dx=l=>!ee(l)&&!te(l),Lx=l=>l.startsWith("@container")&&(l[10]==="/"&&l[11]!==void 0||l[11]==="s"&&l[16]!==void 0&&l.startsWith("-size/",10)||l[11]==="n"&&l[18]!==void 0&&l.startsWith("-normal/",10)),Ux=l=>vl(l,Pv,rf),ee=l=>Zv.test(l),Bl=l=>vl(l,Fv,Mx),qp=l=>vl(l,Gx,xe),jx=l=>vl(l,ey,Jv),Hx=l=>vl(l,Iv,rf),Yp=l=>vl(l,$v,rf),Bx=l=>vl(l,Wv,Nx),fo=l=>vl(l,ty,zx),te=l=>Kv.test(l),ji=l=>Xl(l,Fv),kx=l=>Xl(l,Iv),Vp=l=>Xl(l,$v),qx=l=>Xl(l,Pv),Yx=l=>Xl(l,Wv),mo=l=>Xl(l,ty,!0),Vx=l=>Xl(l,ey,!0),vl=(l,i,u)=>{const r=Zv.exec(l);return r?r[1]?i(r[1]):u(r[2]):!1},Xl=(l,i,u=!1)=>{const r=Kv.exec(l);return r?r[1]?i(r[1]):u:!1},$v=l=>l==="position"||l==="percentage",Wv=l=>l==="image"||l==="url",Pv=l=>l==="length"||l==="size"||l==="bg-size",Fv=l=>l==="length",Gx=l=>l==="number",Iv=l=>l==="family-name",ey=l=>l==="number"||l==="weight",ty=l=>l==="shadow",Xx=()=>{const l=lt("color"),i=lt("font"),u=lt("text"),r=lt("font-weight"),s=lt("tracking"),f=lt("leading"),d=lt("breakpoint"),h=lt("container"),v=lt("spacing"),p=lt("radius"),b=lt("shadow"),g=lt("inset-shadow"),E=lt("text-shadow"),C=lt("drop-shadow"),O=lt("blur"),x=lt("perspective"),T=lt("aspect"),_=lt("ease"),M=lt("animate"),D=()=>["auto","avoid","all","avoid-page","page","left","right","column"],q=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],K=()=>[...q(),te,ee],W=()=>["auto","hidden","clip","visible","scroll"],Y=()=>["auto","contain","none"],X=()=>[te,ee,v],ae=()=>[dl,"full","auto",...X()],he=()=>[cn,"none","subgrid",te,ee],pe=()=>["auto",{span:["full",cn,te,ee]},cn,te,ee],de=()=>[cn,"auto",te,ee],ge=()=>["auto","min","max","fr",te,ee],me=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],se=()=>["start","end","center","stretch","center-safe","end-safe"],L=()=>["auto",...X()],Z=()=>[dl,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...X()],J=()=>[dl,"screen","full","dvw","lvw","svw","min","max","fit",...X()],oe=()=>[dl,"screen","full","lh","dvh","lvh","svh","min","max","fit",...X()],$=()=>[l,te,ee],R=()=>[...q(),Vp,Yp,{position:[te,ee]}],V=()=>["no-repeat",{repeat:["","x","y","space","round"]}],P=()=>["auto","cover","contain",qx,Ux,{size:[te,ee]}],I=()=>[gs,ji,Bl],ne=()=>["","none","full",p,te,ee],ie=()=>["",xe,ji,Bl],F=()=>["solid","dashed","dotted","double"],ve=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ue=()=>[xe,gs,Vp,Yp],_e=()=>["","none",O,te,ee],Ee=()=>["none",xe,te,ee],we=()=>["none",xe,te,ee],We=()=>[xe,te,ee],Ge=()=>[dl,"full",...X()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ln],breakpoint:[Ln],color:[Jv],container:[Ln],"drop-shadow":[Ln],ease:["in","out","in-out"],font:[Dx],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ln],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ln],shadow:[Ln],spacing:["px",xe],text:[Ln],"text-shadow":[Ln],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",dl,ee,te,T]}],container:["container"],"container-type":[{"@container":["","normal","size",te,ee]}],"container-named":[Lx],columns:[{columns:[xe,ee,te,h]}],"break-after":[{"break-after":D()}],"break-before":[{"break-before":D()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:K()}],overflow:[{overflow:W()}],"overflow-x":[{"overflow-x":W()}],"overflow-y":[{"overflow-y":W()}],overscroll:[{overscroll:Y()}],"overscroll-x":[{"overscroll-x":Y()}],"overscroll-y":[{"overscroll-y":Y()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ae()}],"inset-x":[{"inset-x":ae()}],"inset-y":[{"inset-y":ae()}],start:[{"inset-s":ae(),start:ae()}],end:[{"inset-e":ae(),end:ae()}],"inset-bs":[{"inset-bs":ae()}],"inset-be":[{"inset-be":ae()}],top:[{top:ae()}],right:[{right:ae()}],bottom:[{bottom:ae()}],left:[{left:ae()}],visibility:["visible","invisible","collapse"],z:[{z:[cn,"auto",te,ee]}],basis:[{basis:[dl,"full","auto",h,...X()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[xe,dl,"auto","initial","none",ee]}],grow:[{grow:["",xe,te,ee]}],shrink:[{shrink:["",xe,te,ee]}],order:[{order:[cn,"first","last","none",te,ee]}],"grid-cols":[{"grid-cols":he()}],"col-start-end":[{col:pe()}],"col-start":[{"col-start":de()}],"col-end":[{"col-end":de()}],"grid-rows":[{"grid-rows":he()}],"row-start-end":[{row:pe()}],"row-start":[{"row-start":de()}],"row-end":[{"row-end":de()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ge()}],"auto-rows":[{"auto-rows":ge()}],gap:[{gap:X()}],"gap-x":[{"gap-x":X()}],"gap-y":[{"gap-y":X()}],"justify-content":[{justify:[...me(),"normal"]}],"justify-items":[{"justify-items":[...se(),"normal"]}],"justify-self":[{"justify-self":["auto",...se()]}],"align-content":[{content:["normal",...me()]}],"align-items":[{items:[...se(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...se(),{baseline:["","last"]}]}],"place-content":[{"place-content":me()}],"place-items":[{"place-items":[...se(),"baseline"]}],"place-self":[{"place-self":["auto",...se()]}],p:[{p:X()}],px:[{px:X()}],py:[{py:X()}],ps:[{ps:X()}],pe:[{pe:X()}],pbs:[{pbs:X()}],pbe:[{pbe:X()}],pt:[{pt:X()}],pr:[{pr:X()}],pb:[{pb:X()}],pl:[{pl:X()}],m:[{m:L()}],mx:[{mx:L()}],my:[{my:L()}],ms:[{ms:L()}],me:[{me:L()}],mbs:[{mbs:L()}],mbe:[{mbe:L()}],mt:[{mt:L()}],mr:[{mr:L()}],mb:[{mb:L()}],ml:[{ml:L()}],"space-x":[{"space-x":X()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":X()}],"space-y-reverse":["space-y-reverse"],size:[{size:Z()}],"inline-size":[{inline:["auto",...J()]}],"min-inline-size":[{"min-inline":["auto",...J()]}],"max-inline-size":[{"max-inline":["none",...J()]}],"block-size":[{block:["auto",...oe()]}],"min-block-size":[{"min-block":["auto",...oe()]}],"max-block-size":[{"max-block":["none",...oe()]}],w:[{w:[h,"screen",...Z()]}],"min-w":[{"min-w":[h,"screen","none",...Z()]}],"max-w":[{"max-w":[h,"screen","none","prose",{screen:[d]},...Z()]}],h:[{h:["screen","lh",...Z()]}],"min-h":[{"min-h":["screen","lh","none",...Z()]}],"max-h":[{"max-h":["screen","lh",...Z()]}],"font-size":[{text:["base",u,ji,Bl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Vx,jx]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",gs,ee]}],"font-family":[{font:[kx,Hx,i]}],"font-features":[{"font-features":[ee]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,te,ee]}],"line-clamp":[{"line-clamp":[xe,"none",te,qp]}],leading:[{leading:[f,...X()]}],"list-image":[{"list-image":["none",te,ee]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",te,ee]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:$()}],"text-color":[{text:$()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...F(),"wavy"]}],"text-decoration-thickness":[{decoration:[xe,"from-font","auto",te,Bl]}],"text-decoration-color":[{decoration:$()}],"underline-offset":[{"underline-offset":[xe,"auto",te,ee]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:X()}],"tab-size":[{tab:[cn,te,ee]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",te,ee]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",te,ee]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:R()}],"bg-repeat":[{bg:V()}],"bg-size":[{bg:P()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},cn,te,ee],radial:["",te,ee],conic:[cn,te,ee]},Yx,Bx]}],"bg-color":[{bg:$()}],"gradient-from-pos":[{from:I()}],"gradient-via-pos":[{via:I()}],"gradient-to-pos":[{to:I()}],"gradient-from":[{from:$()}],"gradient-via":[{via:$()}],"gradient-to":[{to:$()}],rounded:[{rounded:ne()}],"rounded-s":[{"rounded-s":ne()}],"rounded-e":[{"rounded-e":ne()}],"rounded-t":[{"rounded-t":ne()}],"rounded-r":[{"rounded-r":ne()}],"rounded-b":[{"rounded-b":ne()}],"rounded-l":[{"rounded-l":ne()}],"rounded-ss":[{"rounded-ss":ne()}],"rounded-se":[{"rounded-se":ne()}],"rounded-ee":[{"rounded-ee":ne()}],"rounded-es":[{"rounded-es":ne()}],"rounded-tl":[{"rounded-tl":ne()}],"rounded-tr":[{"rounded-tr":ne()}],"rounded-br":[{"rounded-br":ne()}],"rounded-bl":[{"rounded-bl":ne()}],"border-w":[{border:ie()}],"border-w-x":[{"border-x":ie()}],"border-w-y":[{"border-y":ie()}],"border-w-s":[{"border-s":ie()}],"border-w-e":[{"border-e":ie()}],"border-w-bs":[{"border-bs":ie()}],"border-w-be":[{"border-be":ie()}],"border-w-t":[{"border-t":ie()}],"border-w-r":[{"border-r":ie()}],"border-w-b":[{"border-b":ie()}],"border-w-l":[{"border-l":ie()}],"divide-x":[{"divide-x":ie()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ie()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...F(),"hidden","none"]}],"divide-style":[{divide:[...F(),"hidden","none"]}],"border-color":[{border:$()}],"border-color-x":[{"border-x":$()}],"border-color-y":[{"border-y":$()}],"border-color-s":[{"border-s":$()}],"border-color-e":[{"border-e":$()}],"border-color-bs":[{"border-bs":$()}],"border-color-be":[{"border-be":$()}],"border-color-t":[{"border-t":$()}],"border-color-r":[{"border-r":$()}],"border-color-b":[{"border-b":$()}],"border-color-l":[{"border-l":$()}],"divide-color":[{divide:$()}],"outline-style":[{outline:[...F(),"none","hidden"]}],"outline-offset":[{"outline-offset":[xe,te,ee]}],"outline-w":[{outline:["",xe,ji,Bl]}],"outline-color":[{outline:$()}],shadow:[{shadow:["","none",b,mo,fo]}],"shadow-color":[{shadow:$()}],"inset-shadow":[{"inset-shadow":["none",g,mo,fo]}],"inset-shadow-color":[{"inset-shadow":$()}],"ring-w":[{ring:ie()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:$()}],"ring-offset-w":[{"ring-offset":[xe,Bl]}],"ring-offset-color":[{"ring-offset":$()}],"inset-ring-w":[{"inset-ring":ie()}],"inset-ring-color":[{"inset-ring":$()}],"text-shadow":[{"text-shadow":["none",E,mo,fo]}],"text-shadow-color":[{"text-shadow":$()}],opacity:[{opacity:[xe,te,ee]}],"mix-blend":[{"mix-blend":[...ve(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ve()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[xe]}],"mask-image-linear-from-pos":[{"mask-linear-from":ue()}],"mask-image-linear-to-pos":[{"mask-linear-to":ue()}],"mask-image-linear-from-color":[{"mask-linear-from":$()}],"mask-image-linear-to-color":[{"mask-linear-to":$()}],"mask-image-t-from-pos":[{"mask-t-from":ue()}],"mask-image-t-to-pos":[{"mask-t-to":ue()}],"mask-image-t-from-color":[{"mask-t-from":$()}],"mask-image-t-to-color":[{"mask-t-to":$()}],"mask-image-r-from-pos":[{"mask-r-from":ue()}],"mask-image-r-to-pos":[{"mask-r-to":ue()}],"mask-image-r-from-color":[{"mask-r-from":$()}],"mask-image-r-to-color":[{"mask-r-to":$()}],"mask-image-b-from-pos":[{"mask-b-from":ue()}],"mask-image-b-to-pos":[{"mask-b-to":ue()}],"mask-image-b-from-color":[{"mask-b-from":$()}],"mask-image-b-to-color":[{"mask-b-to":$()}],"mask-image-l-from-pos":[{"mask-l-from":ue()}],"mask-image-l-to-pos":[{"mask-l-to":ue()}],"mask-image-l-from-color":[{"mask-l-from":$()}],"mask-image-l-to-color":[{"mask-l-to":$()}],"mask-image-x-from-pos":[{"mask-x-from":ue()}],"mask-image-x-to-pos":[{"mask-x-to":ue()}],"mask-image-x-from-color":[{"mask-x-from":$()}],"mask-image-x-to-color":[{"mask-x-to":$()}],"mask-image-y-from-pos":[{"mask-y-from":ue()}],"mask-image-y-to-pos":[{"mask-y-to":ue()}],"mask-image-y-from-color":[{"mask-y-from":$()}],"mask-image-y-to-color":[{"mask-y-to":$()}],"mask-image-radial":[{"mask-radial":[te,ee]}],"mask-image-radial-from-pos":[{"mask-radial-from":ue()}],"mask-image-radial-to-pos":[{"mask-radial-to":ue()}],"mask-image-radial-from-color":[{"mask-radial-from":$()}],"mask-image-radial-to-color":[{"mask-radial-to":$()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":q()}],"mask-image-conic-pos":[{"mask-conic":[xe]}],"mask-image-conic-from-pos":[{"mask-conic-from":ue()}],"mask-image-conic-to-pos":[{"mask-conic-to":ue()}],"mask-image-conic-from-color":[{"mask-conic-from":$()}],"mask-image-conic-to-color":[{"mask-conic-to":$()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:R()}],"mask-repeat":[{mask:V()}],"mask-size":[{mask:P()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",te,ee]}],filter:[{filter:["","none",te,ee]}],blur:[{blur:_e()}],brightness:[{brightness:[xe,te,ee]}],contrast:[{contrast:[xe,te,ee]}],"drop-shadow":[{"drop-shadow":["","none",C,mo,fo]}],"drop-shadow-color":[{"drop-shadow":$()}],grayscale:[{grayscale:["",xe,te,ee]}],"hue-rotate":[{"hue-rotate":[xe,te,ee]}],invert:[{invert:["",xe,te,ee]}],saturate:[{saturate:[xe,te,ee]}],sepia:[{sepia:["",xe,te,ee]}],"backdrop-filter":[{"backdrop-filter":["","none",te,ee]}],"backdrop-blur":[{"backdrop-blur":_e()}],"backdrop-brightness":[{"backdrop-brightness":[xe,te,ee]}],"backdrop-contrast":[{"backdrop-contrast":[xe,te,ee]}],"backdrop-grayscale":[{"backdrop-grayscale":["",xe,te,ee]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[xe,te,ee]}],"backdrop-invert":[{"backdrop-invert":["",xe,te,ee]}],"backdrop-opacity":[{"backdrop-opacity":[xe,te,ee]}],"backdrop-saturate":[{"backdrop-saturate":[xe,te,ee]}],"backdrop-sepia":[{"backdrop-sepia":["",xe,te,ee]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":X()}],"border-spacing-x":[{"border-spacing-x":X()}],"border-spacing-y":[{"border-spacing-y":X()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",te,ee]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[xe,"initial",te,ee]}],ease:[{ease:["linear","initial",_,te,ee]}],delay:[{delay:[xe,te,ee]}],animate:[{animate:["none",M,te,ee]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[x,te,ee]}],"perspective-origin":[{"perspective-origin":K()}],rotate:[{rotate:Ee()}],"rotate-x":[{"rotate-x":Ee()}],"rotate-y":[{"rotate-y":Ee()}],"rotate-z":[{"rotate-z":Ee()}],scale:[{scale:we()}],"scale-x":[{"scale-x":we()}],"scale-y":[{"scale-y":we()}],"scale-z":[{"scale-z":we()}],"scale-3d":["scale-3d"],skew:[{skew:We()}],"skew-x":[{"skew-x":We()}],"skew-y":[{"skew-y":We()}],transform:[{transform:[te,ee,"","none","gpu","cpu"]}],"transform-origin":[{origin:K()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ge()}],"translate-x":[{"translate-x":Ge()}],"translate-y":[{"translate-y":Ge()}],"translate-z":[{"translate-z":Ge()}],"translate-none":["translate-none"],zoom:[{zoom:[cn,te,ee]}],accent:[{accent:$()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:$()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",te,ee]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":$()}],"scrollbar-track-color":[{"scrollbar-track":$()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":X()}],"scroll-mx":[{"scroll-mx":X()}],"scroll-my":[{"scroll-my":X()}],"scroll-ms":[{"scroll-ms":X()}],"scroll-me":[{"scroll-me":X()}],"scroll-mbs":[{"scroll-mbs":X()}],"scroll-mbe":[{"scroll-mbe":X()}],"scroll-mt":[{"scroll-mt":X()}],"scroll-mr":[{"scroll-mr":X()}],"scroll-mb":[{"scroll-mb":X()}],"scroll-ml":[{"scroll-ml":X()}],"scroll-p":[{"scroll-p":X()}],"scroll-px":[{"scroll-px":X()}],"scroll-py":[{"scroll-py":X()}],"scroll-ps":[{"scroll-ps":X()}],"scroll-pe":[{"scroll-pe":X()}],"scroll-pbs":[{"scroll-pbs":X()}],"scroll-pbe":[{"scroll-pbe":X()}],"scroll-pt":[{"scroll-pt":X()}],"scroll-pr":[{"scroll-pr":X()}],"scroll-pb":[{"scroll-pb":X()}],"scroll-pl":[{"scroll-pl":X()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",te,ee]}],fill:[{fill:["none",...$()]}],"stroke-w":[{stroke:[xe,ji,Bl,qp]}],stroke:[{stroke:["none",...$()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Qx=Ex(Xx);function It(...l){return Qx(ex(l))}var Xi=Sv();const Zx=Ks(Xi);function Gp(l,[i,u]){return Math.min(u,Math.max(i,l))}function ke(l,i,{checkForDefaultPrevented:u=!0}={}){return function(s){if(l==null||l(s),u===!1||!s.defaultPrevented)return i==null?void 0:i(s)}}function kT(l,i){const u=y.createContext(i),r=f=>{const{children:d,...h}=f,v=y.useMemo(()=>h,Object.values(h));return N.jsx(u.Provider,{value:v,children:d})};r.displayName=l+"Provider";function s(f){const d=y.useContext(u);if(d)return d;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${l}\``)}return[r,s]}function jo(l,i=[]){let u=[];function r(f,d){const h=y.createContext(d),v=u.length;u=[...u,d];const p=g=>{var _;const{scope:E,children:C,...O}=g,x=((_=E==null?void 0:E[l])==null?void 0:_[v])||h,T=y.useMemo(()=>O,Object.values(O));return N.jsx(x.Provider,{value:T,children:C})};p.displayName=f+"Provider";function b(g,E){var x;const C=((x=E==null?void 0:E[l])==null?void 0:x[v])||h,O=y.useContext(C);if(O)return O;if(d!==void 0)return d;throw new Error(`\`${g}\` must be used within \`${f}\``)}return[p,b]}const s=()=>{const f=u.map(d=>y.createContext(d));return function(h){const v=(h==null?void 0:h[l])||f;return y.useMemo(()=>({[`__scope${l}`]:{...h,[l]:v}}),[h,v])}};return s.scopeName=l,[r,Kx(s,...i)]}function Kx(...l){const i=l[0];if(l.length===1)return i;const u=()=>{const r=l.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(f){const d=r.reduce((h,{useScope:v,scopeName:p})=>{const g=v(f)[`__scope${p}`];return{...h,...g}},{});return y.useMemo(()=>({[`__scope${i.scopeName}`]:d}),[d])}};return u.scopeName=i.scopeName,u}function Xp(l,i){if(typeof l=="function")return l(i);l!=null&&(l.current=i)}function Ho(...l){return i=>{let u=!1;const r=l.map(s=>{const f=Xp(s,i);return!u&&typeof f=="function"&&(u=!0),f});if(u)return()=>{for(let s=0;s<r.length;s++){const f=r[s];typeof f=="function"?f():Xp(l[s],null)}}}}function tt(...l){return y.useCallback(Ho(...l),l)}function Qp(l){const i=Jx(l),u=y.forwardRef((r,s)=>{const{children:f,...d}=r,h=y.Children.toArray(f),v=h.find(Wx);if(v){const p=v.props.children,b=h.map(g=>g===v?y.Children.count(p)>1?y.Children.only(null):y.isValidElement(p)?p.props.children:null:g);return N.jsx(i,{...d,ref:s,children:y.isValidElement(p)?y.cloneElement(p,void 0,b):null})}return N.jsx(i,{...d,ref:s,children:f})});return u.displayName=`${l}.Slot`,u}function Jx(l){const i=y.forwardRef((u,r)=>{const{children:s,...f}=u;if(y.isValidElement(s)){const d=Fx(s),h=Px(f,s.props);return s.type!==y.Fragment&&(h.ref=r?Ho(r,d):d),y.cloneElement(s,h)}return y.Children.count(s)>1?y.Children.only(null):null});return i.displayName=`${l}.SlotClone`,i}var $x=Symbol("radix.slottable");function Wx(l){return y.isValidElement(l)&&typeof l.type=="function"&&"__radixId"in l.type&&l.type.__radixId===$x}function Px(l,i){const u={...i};for(const r in i){const s=l[r],f=i[r];/^on[A-Z]/.test(r)?s&&f?u[r]=(...h)=>{const v=f(...h);return s(...h),v}:s&&(u[r]=s):r==="style"?u[r]={...s,...f}:r==="className"&&(u[r]=[s,f].filter(Boolean).join(" "))}return{...l,...u}}function Fx(l){var r,s;let i=(r=Object.getOwnPropertyDescriptor(l.props,"ref"))==null?void 0:r.get,u=i&&"isReactWarning"in i&&i.isReactWarning;return u?l.ref:(i=(s=Object.getOwnPropertyDescriptor(l,"ref"))==null?void 0:s.get,u=i&&"isReactWarning"in i&&i.isReactWarning,u?l.props.ref:l.props.ref||l.ref)}function Ix(l){const i=l+"CollectionProvider",[u,r]=jo(i),[s,f]=u(i,{collectionRef:{current:null},itemMap:new Map}),d=x=>{const{scope:T,children:_}=x,M=Un.useRef(null),D=Un.useRef(new Map).current;return N.jsx(s,{scope:T,itemMap:D,collectionRef:M,children:_})};d.displayName=i;const h=l+"CollectionSlot",v=Qp(h),p=Un.forwardRef((x,T)=>{const{scope:_,children:M}=x,D=f(h,_),q=tt(T,D.collectionRef);return N.jsx(v,{ref:q,children:M})});p.displayName=h;const b=l+"CollectionItemSlot",g="data-radix-collection-item",E=Qp(b),C=Un.forwardRef((x,T)=>{const{scope:_,children:M,...D}=x,q=Un.useRef(null),K=tt(T,q),W=f(b,_);return Un.useEffect(()=>(W.itemMap.set(q,{ref:q,...D}),()=>void W.itemMap.delete(q))),N.jsx(E,{[g]:"",ref:K,children:M})});C.displayName=b;function O(x){const T=f(l+"CollectionConsumer",x);return Un.useCallback(()=>{const M=T.collectionRef.current;if(!M)return[];const D=Array.from(M.querySelectorAll(`[${g}]`));return Array.from(T.itemMap.values()).sort((W,Y)=>D.indexOf(W.ref.current)-D.indexOf(Y.ref.current))},[T.collectionRef,T.itemMap])}return[{Provider:d,Slot:p,ItemSlot:C},O,r]}var eE=y.createContext(void 0);function tE(l){const i=y.useContext(eE);return l||i||"ltr"}function nE(l){const i=lE(l),u=y.forwardRef((r,s)=>{const{children:f,...d}=r,h=y.Children.toArray(f),v=h.find(iE);if(v){const p=v.props.children,b=h.map(g=>g===v?y.Children.count(p)>1?y.Children.only(null):y.isValidElement(p)?p.props.children:null:g);return N.jsx(i,{...d,ref:s,children:y.isValidElement(p)?y.cloneElement(p,void 0,b):null})}return N.jsx(i,{...d,ref:s,children:f})});return u.displayName=`${l}.Slot`,u}function lE(l){const i=y.forwardRef((u,r)=>{const{children:s,...f}=u;if(y.isValidElement(s)){const d=oE(s),h=rE(f,s.props);return s.type!==y.Fragment&&(h.ref=r?Ho(r,d):d),y.cloneElement(s,h)}return y.Children.count(s)>1?y.Children.only(null):null});return i.displayName=`${l}.SlotClone`,i}var aE=Symbol("radix.slottable");function iE(l){return y.isValidElement(l)&&typeof l.type=="function"&&"__radixId"in l.type&&l.type.__radixId===aE}function rE(l,i){const u={...i};for(const r in i){const s=l[r],f=i[r];/^on[A-Z]/.test(r)?s&&f?u[r]=(...h)=>{const v=f(...h);return s(...h),v}:s&&(u[r]=s):r==="style"?u[r]={...s,...f}:r==="className"&&(u[r]=[s,f].filter(Boolean).join(" "))}return{...l,...u}}function oE(l){var r,s;let i=(r=Object.getOwnPropertyDescriptor(l.props,"ref"))==null?void 0:r.get,u=i&&"isReactWarning"in i&&i.isReactWarning;return u?l.ref:(i=(s=Object.getOwnPropertyDescriptor(l,"ref"))==null?void 0:s.get,u=i&&"isReactWarning"in i&&i.isReactWarning,u?l.props.ref:l.props.ref||l.ref)}var uE=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ke=uE.reduce((l,i)=>{const u=nE(`Primitive.${i}`),r=y.forwardRef((s,f)=>{const{asChild:d,...h}=s,v=d?u:i;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),N.jsx(v,{...h,ref:f})});return r.displayName=`Primitive.${i}`,{...l,[i]:r}},{});function cE(l,i){l&&Xi.flushSync(()=>l.dispatchEvent(i))}function ql(l){const i=y.useRef(l);return y.useEffect(()=>{i.current=l}),y.useMemo(()=>(...u)=>{var r;return(r=i.current)==null?void 0:r.call(i,...u)},[])}function sE(l,i=globalThis==null?void 0:globalThis.document){const u=ql(l);y.useEffect(()=>{const r=s=>{s.key==="Escape"&&u(s)};return i.addEventListener("keydown",r,{capture:!0}),()=>i.removeEventListener("keydown",r,{capture:!0})},[u,i])}var fE="DismissableLayer",Us="dismissableLayer.update",dE="dismissableLayer.pointerDownOutside",mE="dismissableLayer.focusOutside",Zp,ny=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),of=y.forwardRef((l,i)=>{const{disableOutsidePointerEvents:u=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:f,onInteractOutside:d,onDismiss:h,...v}=l,p=y.useContext(ny),[b,g]=y.useState(null),E=(b==null?void 0:b.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,C]=y.useState({}),O=tt(i,Y=>g(Y)),x=Array.from(p.layers),[T]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),_=x.indexOf(T),M=b?x.indexOf(b):-1,D=p.layersWithOutsidePointerEventsDisabled.size>0,q=M>=_,K=vE(Y=>{const X=Y.target,ae=[...p.branches].some(he=>he.contains(X));!q||ae||(s==null||s(Y),d==null||d(Y),Y.defaultPrevented||h==null||h())},E),W=yE(Y=>{const X=Y.target;[...p.branches].some(he=>he.contains(X))||(f==null||f(Y),d==null||d(Y),Y.defaultPrevented||h==null||h())},E);return sE(Y=>{M===p.layers.size-1&&(r==null||r(Y),!Y.defaultPrevented&&h&&(Y.preventDefault(),h()))},E),y.useEffect(()=>{if(b)return u&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(Zp=E.body.style.pointerEvents,E.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(b)),p.layers.add(b),Kp(),()=>{u&&p.layersWithOutsidePointerEventsDisabled.size===1&&(E.body.style.pointerEvents=Zp)}},[b,E,u,p]),y.useEffect(()=>()=>{b&&(p.layers.delete(b),p.layersWithOutsidePointerEventsDisabled.delete(b),Kp())},[b,p]),y.useEffect(()=>{const Y=()=>C({});return document.addEventListener(Us,Y),()=>document.removeEventListener(Us,Y)},[]),N.jsx(Ke.div,{...v,ref:O,style:{pointerEvents:D?q?"auto":"none":void 0,...l.style},onFocusCapture:ke(l.onFocusCapture,W.onFocusCapture),onBlurCapture:ke(l.onBlurCapture,W.onBlurCapture),onPointerDownCapture:ke(l.onPointerDownCapture,K.onPointerDownCapture)})});of.displayName=fE;var hE="DismissableLayerBranch",pE=y.forwardRef((l,i)=>{const u=y.useContext(ny),r=y.useRef(null),s=tt(i,r);return y.useEffect(()=>{const f=r.current;if(f)return u.branches.add(f),()=>{u.branches.delete(f)}},[u.branches]),N.jsx(Ke.div,{...l,ref:s})});pE.displayName=hE;function vE(l,i=globalThis==null?void 0:globalThis.document){const u=ql(l),r=y.useRef(!1),s=y.useRef(()=>{});return y.useEffect(()=>{const f=h=>{if(h.target&&!r.current){let v=function(){ly(dE,u,p,{discrete:!0})};const p={originalEvent:h};h.pointerType==="touch"?(i.removeEventListener("click",s.current),s.current=v,i.addEventListener("click",s.current,{once:!0})):v()}else i.removeEventListener("click",s.current);r.current=!1},d=window.setTimeout(()=>{i.addEventListener("pointerdown",f)},0);return()=>{window.clearTimeout(d),i.removeEventListener("pointerdown",f),i.removeEventListener("click",s.current)}},[i,u]),{onPointerDownCapture:()=>r.current=!0}}function yE(l,i=globalThis==null?void 0:globalThis.document){const u=ql(l),r=y.useRef(!1);return y.useEffect(()=>{const s=f=>{f.target&&!r.current&&ly(mE,u,{originalEvent:f},{discrete:!1})};return i.addEventListener("focusin",s),()=>i.removeEventListener("focusin",s)},[i,u]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Kp(){const l=new CustomEvent(Us);document.dispatchEvent(l)}function ly(l,i,u,{discrete:r}){const s=u.originalEvent.target,f=new CustomEvent(l,{bubbles:!1,cancelable:!0,detail:u});i&&s.addEventListener(l,i,{once:!0}),r?cE(s,f):s.dispatchEvent(f)}var bs=0;function gE(){y.useEffect(()=>{const l=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",l[0]??Jp()),document.body.insertAdjacentElement("beforeend",l[1]??Jp()),bs++,()=>{bs===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(i=>i.remove()),bs--}},[])}function Jp(){const l=document.createElement("span");return l.setAttribute("data-radix-focus-guard",""),l.tabIndex=0,l.style.outline="none",l.style.opacity="0",l.style.position="fixed",l.style.pointerEvents="none",l}var Ss="focusScope.autoFocusOnMount",xs="focusScope.autoFocusOnUnmount",$p={bubbles:!1,cancelable:!0},bE="FocusScope",ay=y.forwardRef((l,i)=>{const{loop:u=!1,trapped:r=!1,onMountAutoFocus:s,onUnmountAutoFocus:f,...d}=l,[h,v]=y.useState(null),p=ql(s),b=ql(f),g=y.useRef(null),E=tt(i,x=>v(x)),C=y.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;y.useEffect(()=>{if(r){let x=function(D){if(C.paused||!h)return;const q=D.target;h.contains(q)?g.current=q:ml(g.current,{select:!0})},T=function(D){if(C.paused||!h)return;const q=D.relatedTarget;q!==null&&(h.contains(q)||ml(g.current,{select:!0}))},_=function(D){if(document.activeElement===document.body)for(const K of D)K.removedNodes.length>0&&ml(h)};document.addEventListener("focusin",x),document.addEventListener("focusout",T);const M=new MutationObserver(_);return h&&M.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",x),document.removeEventListener("focusout",T),M.disconnect()}}},[r,h,C.paused]),y.useEffect(()=>{if(h){Pp.add(C);const x=document.activeElement;if(!h.contains(x)){const _=new CustomEvent(Ss,$p);h.addEventListener(Ss,p),h.dispatchEvent(_),_.defaultPrevented||(SE(TE(iy(h)),{select:!0}),document.activeElement===x&&ml(h))}return()=>{h.removeEventListener(Ss,p),setTimeout(()=>{const _=new CustomEvent(xs,$p);h.addEventListener(xs,b),h.dispatchEvent(_),_.defaultPrevented||ml(x??document.body,{select:!0}),h.removeEventListener(xs,b),Pp.remove(C)},0)}}},[h,p,b,C]);const O=y.useCallback(x=>{if(!u&&!r||C.paused)return;const T=x.key==="Tab"&&!x.altKey&&!x.ctrlKey&&!x.metaKey,_=document.activeElement;if(T&&_){const M=x.currentTarget,[D,q]=xE(M);D&&q?!x.shiftKey&&_===q?(x.preventDefault(),u&&ml(D,{select:!0})):x.shiftKey&&_===D&&(x.preventDefault(),u&&ml(q,{select:!0})):_===M&&x.preventDefault()}},[u,r,C.paused]);return N.jsx(Ke.div,{tabIndex:-1,...d,ref:E,onKeyDown:O})});ay.displayName=bE;function SE(l,{select:i=!1}={}){const u=document.activeElement;for(const r of l)if(ml(r,{select:i}),document.activeElement!==u)return}function xE(l){const i=iy(l),u=Wp(i,l),r=Wp(i.reverse(),l);return[u,r]}function iy(l){const i=[],u=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;u.nextNode();)i.push(u.currentNode);return i}function Wp(l,i){for(const u of l)if(!EE(u,{upTo:i}))return u}function EE(l,{upTo:i}){if(getComputedStyle(l).visibility==="hidden")return!0;for(;l;){if(i!==void 0&&l===i)return!1;if(getComputedStyle(l).display==="none")return!0;l=l.parentElement}return!1}function wE(l){return l instanceof HTMLInputElement&&"select"in l}function ml(l,{select:i=!1}={}){if(l&&l.focus){const u=document.activeElement;l.focus({preventScroll:!0}),l!==u&&wE(l)&&i&&l.select()}}var Pp=CE();function CE(){let l=[];return{add(i){const u=l[0];i!==u&&(u==null||u.pause()),l=Fp(l,i),l.unshift(i)},remove(i){var u;l=Fp(l,i),(u=l[0])==null||u.resume()}}}function Fp(l,i){const u=[...l],r=u.indexOf(i);return r!==-1&&u.splice(r,1),u}function TE(l){return l.filter(i=>i.tagName!=="A")}var mt=globalThis!=null&&globalThis.document?y.useLayoutEffect:()=>{},RE=bv[" useId ".trim().toString()]||(()=>{}),AE=0;function uf(l){const[i,u]=y.useState(RE());return mt(()=>{u(r=>r??String(AE++))},[l]),i?`radix-${i}`:""}const _E=["top","right","bottom","left"],hl=Math.min,Dt=Math.max,Oo=Math.round,ho=Math.floor,dn=l=>({x:l,y:l}),OE={left:"right",right:"left",bottom:"top",top:"bottom"};function js(l,i,u){return Dt(l,hl(i,u))}function Hn(l,i){return typeof l=="function"?l(i):l}function Bn(l){return l.split("-")[0]}function Ba(l){return l.split("-")[1]}function cf(l){return l==="x"?"y":"x"}function sf(l){return l==="y"?"height":"width"}function fn(l){const i=l[0];return i==="t"||i==="b"?"y":"x"}function ff(l){return cf(fn(l))}function ME(l,i,u){u===void 0&&(u=!1);const r=Ba(l),s=ff(l),f=sf(s);let d=s==="x"?r===(u?"end":"start")?"right":"left":r==="start"?"bottom":"top";return i.reference[f]>i.floating[f]&&(d=Mo(d)),[d,Mo(d)]}function zE(l){const i=Mo(l);return[Hs(l),i,Hs(i)]}function Hs(l){return l.includes("start")?l.replace("start","end"):l.replace("end","start")}const Ip=["left","right"],ev=["right","left"],NE=["top","bottom"],DE=["bottom","top"];function LE(l,i,u){switch(l){case"top":case"bottom":return u?i?ev:Ip:i?Ip:ev;case"left":case"right":return i?NE:DE;default:return[]}}function UE(l,i,u,r){const s=Ba(l);let f=LE(Bn(l),u==="start",r);return s&&(f=f.map(d=>d+"-"+s),i&&(f=f.concat(f.map(Hs)))),f}function Mo(l){const i=Bn(l);return OE[i]+l.slice(i.length)}function jE(l){return{top:0,right:0,bottom:0,left:0,...l}}function ry(l){return typeof l!="number"?jE(l):{top:l,right:l,bottom:l,left:l}}function zo(l){const{x:i,y:u,width:r,height:s}=l;return{width:r,height:s,top:u,left:i,right:i+r,bottom:u+s,x:i,y:u}}function tv(l,i,u){let{reference:r,floating:s}=l;const f=fn(i),d=ff(i),h=sf(d),v=Bn(i),p=f==="y",b=r.x+r.width/2-s.width/2,g=r.y+r.height/2-s.height/2,E=r[h]/2-s[h]/2;let C;switch(v){case"top":C={x:b,y:r.y-s.height};break;case"bottom":C={x:b,y:r.y+r.height};break;case"right":C={x:r.x+r.width,y:g};break;case"left":C={x:r.x-s.width,y:g};break;default:C={x:r.x,y:r.y}}switch(Ba(i)){case"start":C[d]-=E*(u&&p?-1:1);break;case"end":C[d]+=E*(u&&p?-1:1);break}return C}async function HE(l,i){var u;i===void 0&&(i={});const{x:r,y:s,platform:f,rects:d,elements:h,strategy:v}=l,{boundary:p="clippingAncestors",rootBoundary:b="viewport",elementContext:g="floating",altBoundary:E=!1,padding:C=0}=Hn(i,l),O=ry(C),T=h[E?g==="floating"?"reference":"floating":g],_=zo(await f.getClippingRect({element:(u=await(f.isElement==null?void 0:f.isElement(T)))==null||u?T:T.contextElement||await(f.getDocumentElement==null?void 0:f.getDocumentElement(h.floating)),boundary:p,rootBoundary:b,strategy:v})),M=g==="floating"?{x:r,y:s,width:d.floating.width,height:d.floating.height}:d.reference,D=await(f.getOffsetParent==null?void 0:f.getOffsetParent(h.floating)),q=await(f.isElement==null?void 0:f.isElement(D))?await(f.getScale==null?void 0:f.getScale(D))||{x:1,y:1}:{x:1,y:1},K=zo(f.convertOffsetParentRelativeRectToViewportRelativeRect?await f.convertOffsetParentRelativeRectToViewportRelativeRect({elements:h,rect:M,offsetParent:D,strategy:v}):M);return{top:(_.top-K.top+O.top)/q.y,bottom:(K.bottom-_.bottom+O.bottom)/q.y,left:(_.left-K.left+O.left)/q.x,right:(K.right-_.right+O.right)/q.x}}const BE=50,kE=async(l,i,u)=>{const{placement:r="bottom",strategy:s="absolute",middleware:f=[],platform:d}=u,h=d.detectOverflow?d:{...d,detectOverflow:HE},v=await(d.isRTL==null?void 0:d.isRTL(i));let p=await d.getElementRects({reference:l,floating:i,strategy:s}),{x:b,y:g}=tv(p,r,v),E=r,C=0;const O={};for(let x=0;x<f.length;x++){const T=f[x];if(!T)continue;const{name:_,fn:M}=T,{x:D,y:q,data:K,reset:W}=await M({x:b,y:g,initialPlacement:r,placement:E,strategy:s,middlewareData:O,rects:p,platform:h,elements:{reference:l,floating:i}});b=D??b,g=q??g,O[_]={...O[_],...K},W&&C<BE&&(C++,typeof W=="object"&&(W.placement&&(E=W.placement),W.rects&&(p=W.rects===!0?await d.getElementRects({reference:l,floating:i,strategy:s}):W.rects),{x:b,y:g}=tv(p,E,v)),x=-1)}return{x:b,y:g,placement:E,strategy:s,middlewareData:O}},qE=l=>({name:"arrow",options:l,async fn(i){const{x:u,y:r,placement:s,rects:f,platform:d,elements:h,middlewareData:v}=i,{element:p,padding:b=0}=Hn(l,i)||{};if(p==null)return{};const g=ry(b),E={x:u,y:r},C=ff(s),O=sf(C),x=await d.getDimensions(p),T=C==="y",_=T?"top":"left",M=T?"bottom":"right",D=T?"clientHeight":"clientWidth",q=f.reference[O]+f.reference[C]-E[C]-f.floating[O],K=E[C]-f.reference[C],W=await(d.getOffsetParent==null?void 0:d.getOffsetParent(p));let Y=W?W[D]:0;(!Y||!await(d.isElement==null?void 0:d.isElement(W)))&&(Y=h.floating[D]||f.floating[O]);const X=q/2-K/2,ae=Y/2-x[O]/2-1,he=hl(g[_],ae),pe=hl(g[M],ae),de=he,ge=Y-x[O]-pe,me=Y/2-x[O]/2+X,se=js(de,me,ge),L=!v.arrow&&Ba(s)!=null&&me!==se&&f.reference[O]/2-(me<de?he:pe)-x[O]/2<0,Z=L?me<de?me-de:me-ge:0;return{[C]:E[C]+Z,data:{[C]:se,centerOffset:me-se-Z,...L&&{alignmentOffset:Z}},reset:L}}}),YE=function(l){return l===void 0&&(l={}),{name:"flip",options:l,async fn(i){var u,r;const{placement:s,middlewareData:f,rects:d,initialPlacement:h,platform:v,elements:p}=i,{mainAxis:b=!0,crossAxis:g=!0,fallbackPlacements:E,fallbackStrategy:C="bestFit",fallbackAxisSideDirection:O="none",flipAlignment:x=!0,...T}=Hn(l,i);if((u=f.arrow)!=null&&u.alignmentOffset)return{};const _=Bn(s),M=fn(h),D=Bn(h)===h,q=await(v.isRTL==null?void 0:v.isRTL(p.floating)),K=E||(D||!x?[Mo(h)]:zE(h)),W=O!=="none";!E&&W&&K.push(...UE(h,x,O,q));const Y=[h,...K],X=await v.detectOverflow(i,T),ae=[];let he=((r=f.flip)==null?void 0:r.overflows)||[];if(b&&ae.push(X[_]),g){const me=ME(s,d,q);ae.push(X[me[0]],X[me[1]])}if(he=[...he,{placement:s,overflows:ae}],!ae.every(me=>me<=0)){var pe,de;const me=(((pe=f.flip)==null?void 0:pe.index)||0)+1,se=Y[me];if(se&&(!(g==="alignment"?M!==fn(se):!1)||he.every(J=>fn(J.placement)===M?J.overflows[0]>0:!0)))return{data:{index:me,overflows:he},reset:{placement:se}};let L=(de=he.filter(Z=>Z.overflows[0]<=0).sort((Z,J)=>Z.overflows[1]-J.overflows[1])[0])==null?void 0:de.placement;if(!L)switch(C){case"bestFit":{var ge;const Z=(ge=he.filter(J=>{if(W){const oe=fn(J.placement);return oe===M||oe==="y"}return!0}).map(J=>[J.placement,J.overflows.filter(oe=>oe>0).reduce((oe,$)=>oe+$,0)]).sort((J,oe)=>J[1]-oe[1])[0])==null?void 0:ge[0];Z&&(L=Z);break}case"initialPlacement":L=h;break}if(s!==L)return{reset:{placement:L}}}return{}}}};function nv(l,i){return{top:l.top-i.height,right:l.right-i.width,bottom:l.bottom-i.height,left:l.left-i.width}}function lv(l){return _E.some(i=>l[i]>=0)}const VE=function(l){return l===void 0&&(l={}),{name:"hide",options:l,async fn(i){const{rects:u,platform:r}=i,{strategy:s="referenceHidden",...f}=Hn(l,i);switch(s){case"referenceHidden":{const d=await r.detectOverflow(i,{...f,elementContext:"reference"}),h=nv(d,u.reference);return{data:{referenceHiddenOffsets:h,referenceHidden:lv(h)}}}case"escaped":{const d=await r.detectOverflow(i,{...f,altBoundary:!0}),h=nv(d,u.floating);return{data:{escapedOffsets:h,escaped:lv(h)}}}default:return{}}}}},oy=new Set(["left","top"]);async function GE(l,i){const{placement:u,platform:r,elements:s}=l,f=await(r.isRTL==null?void 0:r.isRTL(s.floating)),d=Bn(u),h=Ba(u),v=fn(u)==="y",p=oy.has(d)?-1:1,b=f&&v?-1:1,g=Hn(i,l);let{mainAxis:E,crossAxis:C,alignmentAxis:O}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return h&&typeof O=="number"&&(C=h==="end"?O*-1:O),v?{x:C*b,y:E*p}:{x:E*p,y:C*b}}const XE=function(l){return l===void 0&&(l=0),{name:"offset",options:l,async fn(i){var u,r;const{x:s,y:f,placement:d,middlewareData:h}=i,v=await GE(i,l);return d===((u=h.offset)==null?void 0:u.placement)&&(r=h.arrow)!=null&&r.alignmentOffset?{}:{x:s+v.x,y:f+v.y,data:{...v,placement:d}}}}},QE=function(l){return l===void 0&&(l={}),{name:"shift",options:l,async fn(i){const{x:u,y:r,placement:s,platform:f}=i,{mainAxis:d=!0,crossAxis:h=!1,limiter:v={fn:_=>{let{x:M,y:D}=_;return{x:M,y:D}}},...p}=Hn(l,i),b={x:u,y:r},g=await f.detectOverflow(i,p),E=fn(Bn(s)),C=cf(E);let O=b[C],x=b[E];if(d){const _=C==="y"?"top":"left",M=C==="y"?"bottom":"right",D=O+g[_],q=O-g[M];O=js(D,O,q)}if(h){const _=E==="y"?"top":"left",M=E==="y"?"bottom":"right",D=x+g[_],q=x-g[M];x=js(D,x,q)}const T=v.fn({...i,[C]:O,[E]:x});return{...T,data:{x:T.x-u,y:T.y-r,enabled:{[C]:d,[E]:h}}}}}},ZE=function(l){return l===void 0&&(l={}),{options:l,fn(i){const{x:u,y:r,placement:s,rects:f,middlewareData:d}=i,{offset:h=0,mainAxis:v=!0,crossAxis:p=!0}=Hn(l,i),b={x:u,y:r},g=fn(s),E=cf(g);let C=b[E],O=b[g];const x=Hn(h,i),T=typeof x=="number"?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(v){const D=E==="y"?"height":"width",q=f.reference[E]-f.floating[D]+T.mainAxis,K=f.reference[E]+f.reference[D]-T.mainAxis;C<q?C=q:C>K&&(C=K)}if(p){var _,M;const D=E==="y"?"width":"height",q=oy.has(Bn(s)),K=f.reference[g]-f.floating[D]+(q&&((_=d.offset)==null?void 0:_[g])||0)+(q?0:T.crossAxis),W=f.reference[g]+f.reference[D]+(q?0:((M=d.offset)==null?void 0:M[g])||0)-(q?T.crossAxis:0);O<K?O=K:O>W&&(O=W)}return{[E]:C,[g]:O}}}},KE=function(l){return l===void 0&&(l={}),{name:"size",options:l,async fn(i){var u,r;const{placement:s,rects:f,platform:d,elements:h}=i,{apply:v=()=>{},...p}=Hn(l,i),b=await d.detectOverflow(i,p),g=Bn(s),E=Ba(s),C=fn(s)==="y",{width:O,height:x}=f.floating;let T,_;g==="top"||g==="bottom"?(T=g,_=E===(await(d.isRTL==null?void 0:d.isRTL(h.floating))?"start":"end")?"left":"right"):(_=g,T=E==="end"?"top":"bottom");const M=x-b.top-b.bottom,D=O-b.left-b.right,q=hl(x-b[T],M),K=hl(O-b[_],D),W=!i.middlewareData.shift;let Y=q,X=K;if((u=i.middlewareData.shift)!=null&&u.enabled.x&&(X=D),(r=i.middlewareData.shift)!=null&&r.enabled.y&&(Y=M),W&&!E){const he=Dt(b.left,0),pe=Dt(b.right,0),de=Dt(b.top,0),ge=Dt(b.bottom,0);C?X=O-2*(he!==0||pe!==0?he+pe:Dt(b.left,b.right)):Y=x-2*(de!==0||ge!==0?de+ge:Dt(b.top,b.bottom))}await v({...i,availableWidth:X,availableHeight:Y});const ae=await d.getDimensions(h.floating);return O!==ae.width||x!==ae.height?{reset:{rects:!0}}:{}}}};function Bo(){return typeof window<"u"}function ka(l){return uy(l)?(l.nodeName||"").toLowerCase():"#document"}function Lt(l){var i;return(l==null||(i=l.ownerDocument)==null?void 0:i.defaultView)||window}function mn(l){var i;return(i=(uy(l)?l.ownerDocument:l.document)||window.document)==null?void 0:i.documentElement}function uy(l){return Bo()?l instanceof Node||l instanceof Lt(l).Node:!1}function en(l){return Bo()?l instanceof Element||l instanceof Lt(l).Element:!1}function kn(l){return Bo()?l instanceof HTMLElement||l instanceof Lt(l).HTMLElement:!1}function av(l){return!Bo()||typeof ShadowRoot>"u"?!1:l instanceof ShadowRoot||l instanceof Lt(l).ShadowRoot}function Qi(l){const{overflow:i,overflowX:u,overflowY:r,display:s}=tn(l);return/auto|scroll|overlay|hidden|clip/.test(i+r+u)&&s!=="inline"&&s!=="contents"}function JE(l){return/^(table|td|th)$/.test(ka(l))}function ko(l){try{if(l.matches(":popover-open"))return!0}catch{}try{return l.matches(":modal")}catch{return!1}}const $E=/transform|translate|scale|rotate|perspective|filter/,WE=/paint|layout|strict|content/,kl=l=>!!l&&l!=="none";let Es;function df(l){const i=en(l)?tn(l):l;return kl(i.transform)||kl(i.translate)||kl(i.scale)||kl(i.rotate)||kl(i.perspective)||!mf()&&(kl(i.backdropFilter)||kl(i.filter))||$E.test(i.willChange||"")||WE.test(i.contain||"")}function PE(l){let i=pl(l);for(;kn(i)&&!La(i);){if(df(i))return i;if(ko(i))return null;i=pl(i)}return null}function mf(){return Es==null&&(Es=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Es}function La(l){return/^(html|body|#document)$/.test(ka(l))}function tn(l){return Lt(l).getComputedStyle(l)}function qo(l){return en(l)?{scrollLeft:l.scrollLeft,scrollTop:l.scrollTop}:{scrollLeft:l.scrollX,scrollTop:l.scrollY}}function pl(l){if(ka(l)==="html")return l;const i=l.assignedSlot||l.parentNode||av(l)&&l.host||mn(l);return av(i)?i.host:i}function cy(l){const i=pl(l);return La(i)?l.ownerDocument?l.ownerDocument.body:l.body:kn(i)&&Qi(i)?i:cy(i)}function ki(l,i,u){var r;i===void 0&&(i=[]),u===void 0&&(u=!0);const s=cy(l),f=s===((r=l.ownerDocument)==null?void 0:r.body),d=Lt(s);if(f){const h=Bs(d);return i.concat(d,d.visualViewport||[],Qi(s)?s:[],h&&u?ki(h):[])}else return i.concat(s,ki(s,[],u))}function Bs(l){return l.parent&&Object.getPrototypeOf(l.parent)?l.frameElement:null}function sy(l){const i=tn(l);let u=parseFloat(i.width)||0,r=parseFloat(i.height)||0;const s=kn(l),f=s?l.offsetWidth:u,d=s?l.offsetHeight:r,h=Oo(u)!==f||Oo(r)!==d;return h&&(u=f,r=d),{width:u,height:r,$:h}}function hf(l){return en(l)?l:l.contextElement}function Na(l){const i=hf(l);if(!kn(i))return dn(1);const u=i.getBoundingClientRect(),{width:r,height:s,$:f}=sy(i);let d=(f?Oo(u.width):u.width)/r,h=(f?Oo(u.height):u.height)/s;return(!d||!Number.isFinite(d))&&(d=1),(!h||!Number.isFinite(h))&&(h=1),{x:d,y:h}}const FE=dn(0);function fy(l){const i=Lt(l);return!mf()||!i.visualViewport?FE:{x:i.visualViewport.offsetLeft,y:i.visualViewport.offsetTop}}function IE(l,i,u){return i===void 0&&(i=!1),!u||i&&u!==Lt(l)?!1:i}function Yl(l,i,u,r){i===void 0&&(i=!1),u===void 0&&(u=!1);const s=l.getBoundingClientRect(),f=hf(l);let d=dn(1);i&&(r?en(r)&&(d=Na(r)):d=Na(l));const h=IE(f,u,r)?fy(f):dn(0);let v=(s.left+h.x)/d.x,p=(s.top+h.y)/d.y,b=s.width/d.x,g=s.height/d.y;if(f){const E=Lt(f),C=r&&en(r)?Lt(r):r;let O=E,x=Bs(O);for(;x&&r&&C!==O;){const T=Na(x),_=x.getBoundingClientRect(),M=tn(x),D=_.left+(x.clientLeft+parseFloat(M.paddingLeft))*T.x,q=_.top+(x.clientTop+parseFloat(M.paddingTop))*T.y;v*=T.x,p*=T.y,b*=T.x,g*=T.y,v+=D,p+=q,O=Lt(x),x=Bs(O)}}return zo({width:b,height:g,x:v,y:p})}function Yo(l,i){const u=qo(l).scrollLeft;return i?i.left+u:Yl(mn(l)).left+u}function dy(l,i){const u=l.getBoundingClientRect(),r=u.left+i.scrollLeft-Yo(l,u),s=u.top+i.scrollTop;return{x:r,y:s}}function ew(l){let{elements:i,rect:u,offsetParent:r,strategy:s}=l;const f=s==="fixed",d=mn(r),h=i?ko(i.floating):!1;if(r===d||h&&f)return u;let v={scrollLeft:0,scrollTop:0},p=dn(1);const b=dn(0),g=kn(r);if((g||!g&&!f)&&((ka(r)!=="body"||Qi(d))&&(v=qo(r)),g)){const C=Yl(r);p=Na(r),b.x=C.x+r.clientLeft,b.y=C.y+r.clientTop}const E=d&&!g&&!f?dy(d,v):dn(0);return{width:u.width*p.x,height:u.height*p.y,x:u.x*p.x-v.scrollLeft*p.x+b.x+E.x,y:u.y*p.y-v.scrollTop*p.y+b.y+E.y}}function tw(l){return Array.from(l.getClientRects())}function nw(l){const i=mn(l),u=qo(l),r=l.ownerDocument.body,s=Dt(i.scrollWidth,i.clientWidth,r.scrollWidth,r.clientWidth),f=Dt(i.scrollHeight,i.clientHeight,r.scrollHeight,r.clientHeight);let d=-u.scrollLeft+Yo(l);const h=-u.scrollTop;return tn(r).direction==="rtl"&&(d+=Dt(i.clientWidth,r.clientWidth)-s),{width:s,height:f,x:d,y:h}}const iv=25;function lw(l,i){const u=Lt(l),r=mn(l),s=u.visualViewport;let f=r.clientWidth,d=r.clientHeight,h=0,v=0;if(s){f=s.width,d=s.height;const b=mf();(!b||b&&i==="fixed")&&(h=s.offsetLeft,v=s.offsetTop)}const p=Yo(r);if(p<=0){const b=r.ownerDocument,g=b.body,E=getComputedStyle(g),C=b.compatMode==="CSS1Compat"&&parseFloat(E.marginLeft)+parseFloat(E.marginRight)||0,O=Math.abs(r.clientWidth-g.clientWidth-C);O<=iv&&(f-=O)}else p<=iv&&(f+=p);return{width:f,height:d,x:h,y:v}}function aw(l,i){const u=Yl(l,!0,i==="fixed"),r=u.top+l.clientTop,s=u.left+l.clientLeft,f=kn(l)?Na(l):dn(1),d=l.clientWidth*f.x,h=l.clientHeight*f.y,v=s*f.x,p=r*f.y;return{width:d,height:h,x:v,y:p}}function rv(l,i,u){let r;if(i==="viewport")r=lw(l,u);else if(i==="document")r=nw(mn(l));else if(en(i))r=aw(i,u);else{const s=fy(l);r={x:i.x-s.x,y:i.y-s.y,width:i.width,height:i.height}}return zo(r)}function my(l,i){const u=pl(l);return u===i||!en(u)||La(u)?!1:tn(u).position==="fixed"||my(u,i)}function iw(l,i){const u=i.get(l);if(u)return u;let r=ki(l,[],!1).filter(h=>en(h)&&ka(h)!=="body"),s=null;const f=tn(l).position==="fixed";let d=f?pl(l):l;for(;en(d)&&!La(d);){const h=tn(d),v=df(d);!v&&h.position==="fixed"&&(s=null),(f?!v&&!s:!v&&h.position==="static"&&!!s&&(s.position==="absolute"||s.position==="fixed")||Qi(d)&&!v&&my(l,d))?r=r.filter(b=>b!==d):s=h,d=pl(d)}return i.set(l,r),r}function rw(l){let{element:i,boundary:u,rootBoundary:r,strategy:s}=l;const d=[...u==="clippingAncestors"?ko(i)?[]:iw(i,this._c):[].concat(u),r],h=rv(i,d[0],s);let v=h.top,p=h.right,b=h.bottom,g=h.left;for(let E=1;E<d.length;E++){const C=rv(i,d[E],s);v=Dt(C.top,v),p=hl(C.right,p),b=hl(C.bottom,b),g=Dt(C.left,g)}return{width:p-g,height:b-v,x:g,y:v}}function ow(l){const{width:i,height:u}=sy(l);return{width:i,height:u}}function uw(l,i,u){const r=kn(i),s=mn(i),f=u==="fixed",d=Yl(l,!0,f,i);let h={scrollLeft:0,scrollTop:0};const v=dn(0);function p(){v.x=Yo(s)}if(r||!r&&!f)if((ka(i)!=="body"||Qi(s))&&(h=qo(i)),r){const C=Yl(i,!0,f,i);v.x=C.x+i.clientLeft,v.y=C.y+i.clientTop}else s&&p();f&&!r&&s&&p();const b=s&&!r&&!f?dy(s,h):dn(0),g=d.left+h.scrollLeft-v.x-b.x,E=d.top+h.scrollTop-v.y-b.y;return{x:g,y:E,width:d.width,height:d.height}}function ws(l){return tn(l).position==="static"}function ov(l,i){if(!kn(l)||tn(l).position==="fixed")return null;if(i)return i(l);let u=l.offsetParent;return mn(l)===u&&(u=u.ownerDocument.body),u}function hy(l,i){const u=Lt(l);if(ko(l))return u;if(!kn(l)){let s=pl(l);for(;s&&!La(s);){if(en(s)&&!ws(s))return s;s=pl(s)}return u}let r=ov(l,i);for(;r&&JE(r)&&ws(r);)r=ov(r,i);return r&&La(r)&&ws(r)&&!df(r)?u:r||PE(l)||u}const cw=async function(l){const i=this.getOffsetParent||hy,u=this.getDimensions,r=await u(l.floating);return{reference:uw(l.reference,await i(l.floating),l.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function sw(l){return tn(l).direction==="rtl"}const fw={convertOffsetParentRelativeRectToViewportRelativeRect:ew,getDocumentElement:mn,getClippingRect:rw,getOffsetParent:hy,getElementRects:cw,getClientRects:tw,getDimensions:ow,getScale:Na,isElement:en,isRTL:sw};function py(l,i){return l.x===i.x&&l.y===i.y&&l.width===i.width&&l.height===i.height}function dw(l,i){let u=null,r;const s=mn(l);function f(){var h;clearTimeout(r),(h=u)==null||h.disconnect(),u=null}function d(h,v){h===void 0&&(h=!1),v===void 0&&(v=1),f();const p=l.getBoundingClientRect(),{left:b,top:g,width:E,height:C}=p;if(h||i(),!E||!C)return;const O=ho(g),x=ho(s.clientWidth-(b+E)),T=ho(s.clientHeight-(g+C)),_=ho(b),D={rootMargin:-O+"px "+-x+"px "+-T+"px "+-_+"px",threshold:Dt(0,hl(1,v))||1};let q=!0;function K(W){const Y=W[0].intersectionRatio;if(Y!==v){if(!q)return d();Y?d(!1,Y):r=setTimeout(()=>{d(!1,1e-7)},1e3)}Y===1&&!py(p,l.getBoundingClientRect())&&d(),q=!1}try{u=new IntersectionObserver(K,{...D,root:s.ownerDocument})}catch{u=new IntersectionObserver(K,D)}u.observe(l)}return d(!0),f}function mw(l,i,u,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:f=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:h=typeof IntersectionObserver=="function",animationFrame:v=!1}=r,p=hf(l),b=s||f?[...p?ki(p):[],...i?ki(i):[]]:[];b.forEach(_=>{s&&_.addEventListener("scroll",u,{passive:!0}),f&&_.addEventListener("resize",u)});const g=p&&h?dw(p,u):null;let E=-1,C=null;d&&(C=new ResizeObserver(_=>{let[M]=_;M&&M.target===p&&C&&i&&(C.unobserve(i),cancelAnimationFrame(E),E=requestAnimationFrame(()=>{var D;(D=C)==null||D.observe(i)})),u()}),p&&!v&&C.observe(p),i&&C.observe(i));let O,x=v?Yl(l):null;v&&T();function T(){const _=Yl(l);x&&!py(x,_)&&u(),x=_,O=requestAnimationFrame(T)}return u(),()=>{var _;b.forEach(M=>{s&&M.removeEventListener("scroll",u),f&&M.removeEventListener("resize",u)}),g==null||g(),(_=C)==null||_.disconnect(),C=null,v&&cancelAnimationFrame(O)}}const hw=XE,pw=QE,vw=YE,yw=KE,gw=VE,uv=qE,bw=ZE,Sw=(l,i,u)=>{const r=new Map,s={platform:fw,...u},f={...s.platform,_c:r};return kE(l,i,{...s,platform:f})};var xw=typeof document<"u",Ew=function(){},wo=xw?y.useLayoutEffect:Ew;function No(l,i){if(l===i)return!0;if(typeof l!=typeof i)return!1;if(typeof l=="function"&&l.toString()===i.toString())return!0;let u,r,s;if(l&&i&&typeof l=="object"){if(Array.isArray(l)){if(u=l.length,u!==i.length)return!1;for(r=u;r--!==0;)if(!No(l[r],i[r]))return!1;return!0}if(s=Object.keys(l),u=s.length,u!==Object.keys(i).length)return!1;for(r=u;r--!==0;)if(!{}.hasOwnProperty.call(i,s[r]))return!1;for(r=u;r--!==0;){const f=s[r];if(!(f==="_owner"&&l.$$typeof)&&!No(l[f],i[f]))return!1}return!0}return l!==l&&i!==i}function vy(l){return typeof window>"u"?1:(l.ownerDocument.defaultView||window).devicePixelRatio||1}function cv(l,i){const u=vy(l);return Math.round(i*u)/u}function Cs(l){const i=y.useRef(l);return wo(()=>{i.current=l}),i}function ww(l){l===void 0&&(l={});const{placement:i="bottom",strategy:u="absolute",middleware:r=[],platform:s,elements:{reference:f,floating:d}={},transform:h=!0,whileElementsMounted:v,open:p}=l,[b,g]=y.useState({x:0,y:0,strategy:u,placement:i,middlewareData:{},isPositioned:!1}),[E,C]=y.useState(r);No(E,r)||C(r);const[O,x]=y.useState(null),[T,_]=y.useState(null),M=y.useCallback(J=>{J!==W.current&&(W.current=J,x(J))},[]),D=y.useCallback(J=>{J!==Y.current&&(Y.current=J,_(J))},[]),q=f||O,K=d||T,W=y.useRef(null),Y=y.useRef(null),X=y.useRef(b),ae=v!=null,he=Cs(v),pe=Cs(s),de=Cs(p),ge=y.useCallback(()=>{if(!W.current||!Y.current)return;const J={placement:i,strategy:u,middleware:E};pe.current&&(J.platform=pe.current),Sw(W.current,Y.current,J).then(oe=>{const $={...oe,isPositioned:de.current!==!1};me.current&&!No(X.current,$)&&(X.current=$,Xi.flushSync(()=>{g($)}))})},[E,i,u,pe,de]);wo(()=>{p===!1&&X.current.isPositioned&&(X.current.isPositioned=!1,g(J=>({...J,isPositioned:!1})))},[p]);const me=y.useRef(!1);wo(()=>(me.current=!0,()=>{me.current=!1}),[]),wo(()=>{if(q&&(W.current=q),K&&(Y.current=K),q&&K){if(he.current)return he.current(q,K,ge);ge()}},[q,K,ge,he,ae]);const se=y.useMemo(()=>({reference:W,floating:Y,setReference:M,setFloating:D}),[M,D]),L=y.useMemo(()=>({reference:q,floating:K}),[q,K]),Z=y.useMemo(()=>{const J={position:u,left:0,top:0};if(!L.floating)return J;const oe=cv(L.floating,b.x),$=cv(L.floating,b.y);return h?{...J,transform:"translate("+oe+"px, "+$+"px)",...vy(L.floating)>=1.5&&{willChange:"transform"}}:{position:u,left:oe,top:$}},[u,h,L.floating,b.x,b.y]);return y.useMemo(()=>({...b,update:ge,refs:se,elements:L,floatingStyles:Z}),[b,ge,se,L,Z])}const Cw=l=>{function i(u){return{}.hasOwnProperty.call(u,"current")}return{name:"arrow",options:l,fn(u){const{element:r,padding:s}=typeof l=="function"?l(u):l;return r&&i(r)?r.current!=null?uv({element:r.current,padding:s}).fn(u):{}:r?uv({element:r,padding:s}).fn(u):{}}}},Tw=(l,i)=>{const u=hw(l);return{name:u.name,fn:u.fn,options:[l,i]}},Rw=(l,i)=>{const u=pw(l);return{name:u.name,fn:u.fn,options:[l,i]}},Aw=(l,i)=>({fn:bw(l).fn,options:[l,i]}),_w=(l,i)=>{const u=vw(l);return{name:u.name,fn:u.fn,options:[l,i]}},Ow=(l,i)=>{const u=yw(l);return{name:u.name,fn:u.fn,options:[l,i]}},Mw=(l,i)=>{const u=gw(l);return{name:u.name,fn:u.fn,options:[l,i]}},zw=(l,i)=>{const u=Cw(l);return{name:u.name,fn:u.fn,options:[l,i]}};var Nw="Arrow",yy=y.forwardRef((l,i)=>{const{children:u,width:r=10,height:s=5,...f}=l;return N.jsx(Ke.svg,{...f,ref:i,width:r,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:l.asChild?u:N.jsx("polygon",{points:"0,0 30,0 15,10"})})});yy.displayName=Nw;var Dw=yy;function Lw(l){const[i,u]=y.useState(void 0);return mt(()=>{if(l){u({width:l.offsetWidth,height:l.offsetHeight});const r=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const f=s[0];let d,h;if("borderBoxSize"in f){const v=f.borderBoxSize,p=Array.isArray(v)?v[0]:v;d=p.inlineSize,h=p.blockSize}else d=l.offsetWidth,h=l.offsetHeight;u({width:d,height:h})});return r.observe(l,{box:"border-box"}),()=>r.unobserve(l)}else u(void 0)},[l]),i}var pf="Popper",[gy,Vo]=jo(pf),[Uw,by]=gy(pf),Sy=l=>{const{__scopePopper:i,children:u}=l,[r,s]=y.useState(null);return N.jsx(Uw,{scope:i,anchor:r,onAnchorChange:s,children:u})};Sy.displayName=pf;var xy="PopperAnchor",Ey=y.forwardRef((l,i)=>{const{__scopePopper:u,virtualRef:r,...s}=l,f=by(xy,u),d=y.useRef(null),h=tt(i,d),v=y.useRef(null);return y.useEffect(()=>{const p=v.current;v.current=(r==null?void 0:r.current)||d.current,p!==v.current&&f.onAnchorChange(v.current)}),r?null:N.jsx(Ke.div,{...s,ref:h})});Ey.displayName=xy;var vf="PopperContent",[jw,Hw]=gy(vf),wy=y.forwardRef((l,i)=>{var F,ve,ue,_e,Ee,we;const{__scopePopper:u,side:r="bottom",sideOffset:s=0,align:f="center",alignOffset:d=0,arrowPadding:h=0,avoidCollisions:v=!0,collisionBoundary:p=[],collisionPadding:b=0,sticky:g="partial",hideWhenDetached:E=!1,updatePositionStrategy:C="optimized",onPlaced:O,...x}=l,T=by(vf,u),[_,M]=y.useState(null),D=tt(i,We=>M(We)),[q,K]=y.useState(null),W=Lw(q),Y=(W==null?void 0:W.width)??0,X=(W==null?void 0:W.height)??0,ae=r+(f!=="center"?"-"+f:""),he=typeof b=="number"?b:{top:0,right:0,bottom:0,left:0,...b},pe=Array.isArray(p)?p:[p],de=pe.length>0,ge={padding:he,boundary:pe.filter(kw),altBoundary:de},{refs:me,floatingStyles:se,placement:L,isPositioned:Z,middlewareData:J}=ww({strategy:"fixed",placement:ae,whileElementsMounted:(...We)=>mw(...We,{animationFrame:C==="always"}),elements:{reference:T.anchor},middleware:[Tw({mainAxis:s+X,alignmentAxis:d}),v&&Rw({mainAxis:!0,crossAxis:!1,limiter:g==="partial"?Aw():void 0,...ge}),v&&_w({...ge}),Ow({...ge,apply:({elements:We,rects:Ge,availableWidth:hn,availableHeight:pn})=>{const{width:bl,height:Zi}=Ge.reference,qn=We.floating.style;qn.setProperty("--radix-popper-available-width",`${hn}px`),qn.setProperty("--radix-popper-available-height",`${pn}px`),qn.setProperty("--radix-popper-anchor-width",`${bl}px`),qn.setProperty("--radix-popper-anchor-height",`${Zi}px`)}}),q&&zw({element:q,padding:h}),qw({arrowWidth:Y,arrowHeight:X}),E&&Mw({strategy:"referenceHidden",...ge})]}),[oe,$]=Ry(L),R=ql(O);mt(()=>{Z&&(R==null||R())},[Z,R]);const V=(F=J.arrow)==null?void 0:F.x,P=(ve=J.arrow)==null?void 0:ve.y,I=((ue=J.arrow)==null?void 0:ue.centerOffset)!==0,[ne,ie]=y.useState();return mt(()=>{_&&ie(window.getComputedStyle(_).zIndex)},[_]),N.jsx("div",{ref:me.setFloating,"data-radix-popper-content-wrapper":"",style:{...se,transform:Z?se.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ne,"--radix-popper-transform-origin":[(_e=J.transformOrigin)==null?void 0:_e.x,(Ee=J.transformOrigin)==null?void 0:Ee.y].join(" "),...((we=J.hide)==null?void 0:we.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:l.dir,children:N.jsx(jw,{scope:u,placedSide:oe,onArrowChange:K,arrowX:V,arrowY:P,shouldHideArrow:I,children:N.jsx(Ke.div,{"data-side":oe,"data-align":$,...x,ref:D,style:{...x.style,animation:Z?void 0:"none"}})})})});wy.displayName=vf;var Cy="PopperArrow",Bw={top:"bottom",right:"left",bottom:"top",left:"right"},Ty=y.forwardRef(function(i,u){const{__scopePopper:r,...s}=i,f=Hw(Cy,r),d=Bw[f.placedSide];return N.jsx("span",{ref:f.onArrowChange,style:{position:"absolute",left:f.arrowX,top:f.arrowY,[d]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[f.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[f.placedSide],visibility:f.shouldHideArrow?"hidden":void 0},children:N.jsx(Dw,{...s,ref:u,style:{...s.style,display:"block"}})})});Ty.displayName=Cy;function kw(l){return l!==null}var qw=l=>({name:"transformOrigin",options:l,fn(i){var T,_,M;const{placement:u,rects:r,middlewareData:s}=i,d=((T=s.arrow)==null?void 0:T.centerOffset)!==0,h=d?0:l.arrowWidth,v=d?0:l.arrowHeight,[p,b]=Ry(u),g={start:"0%",center:"50%",end:"100%"}[b],E=(((_=s.arrow)==null?void 0:_.x)??0)+h/2,C=(((M=s.arrow)==null?void 0:M.y)??0)+v/2;let O="",x="";return p==="bottom"?(O=d?g:`${E}px`,x=`${-v}px`):p==="top"?(O=d?g:`${E}px`,x=`${r.floating.height+v}px`):p==="right"?(O=`${-v}px`,x=d?g:`${C}px`):p==="left"&&(O=`${r.floating.width+v}px`,x=d?g:`${C}px`),{data:{x:O,y:x}}}});function Ry(l){const[i,u="center"]=l.split("-");return[i,u]}var Yw=Sy,Ay=Ey,_y=wy,Oy=Ty,Vw="Portal",My=y.forwardRef((l,i)=>{var h;const{container:u,...r}=l,[s,f]=y.useState(!1);mt(()=>f(!0),[]);const d=u||s&&((h=globalThis==null?void 0:globalThis.document)==null?void 0:h.body);return d?Zx.createPortal(N.jsx(Ke.div,{...r,ref:i}),d):null});My.displayName=Vw;function Gw(l){const i=Xw(l),u=y.forwardRef((r,s)=>{const{children:f,...d}=r,h=y.Children.toArray(f),v=h.find(Zw);if(v){const p=v.props.children,b=h.map(g=>g===v?y.Children.count(p)>1?y.Children.only(null):y.isValidElement(p)?p.props.children:null:g);return N.jsx(i,{...d,ref:s,children:y.isValidElement(p)?y.cloneElement(p,void 0,b):null})}return N.jsx(i,{...d,ref:s,children:f})});return u.displayName=`${l}.Slot`,u}function Xw(l){const i=y.forwardRef((u,r)=>{const{children:s,...f}=u;if(y.isValidElement(s)){const d=Jw(s),h=Kw(f,s.props);return s.type!==y.Fragment&&(h.ref=r?Ho(r,d):d),y.cloneElement(s,h)}return y.Children.count(s)>1?y.Children.only(null):null});return i.displayName=`${l}.SlotClone`,i}var Qw=Symbol("radix.slottable");function Zw(l){return y.isValidElement(l)&&typeof l.type=="function"&&"__radixId"in l.type&&l.type.__radixId===Qw}function Kw(l,i){const u={...i};for(const r in i){const s=l[r],f=i[r];/^on[A-Z]/.test(r)?s&&f?u[r]=(...h)=>{const v=f(...h);return s(...h),v}:s&&(u[r]=s):r==="style"?u[r]={...s,...f}:r==="className"&&(u[r]=[s,f].filter(Boolean).join(" "))}return{...l,...u}}function Jw(l){var r,s;let i=(r=Object.getOwnPropertyDescriptor(l.props,"ref"))==null?void 0:r.get,u=i&&"isReactWarning"in i&&i.isReactWarning;return u?l.ref:(i=(s=Object.getOwnPropertyDescriptor(l,"ref"))==null?void 0:s.get,u=i&&"isReactWarning"in i&&i.isReactWarning,u?l.props.ref:l.props.ref||l.ref)}var $w=bv[" useInsertionEffect ".trim().toString()]||mt;function sv({prop:l,defaultProp:i,onChange:u=()=>{},caller:r}){const[s,f,d]=Ww({defaultProp:i,onChange:u}),h=l!==void 0,v=h?l:s;{const b=y.useRef(l!==void 0);y.useEffect(()=>{const g=b.current;g!==h&&console.warn(`${r} is changing from ${g?"controlled":"uncontrolled"} to ${h?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),b.current=h},[h,r])}const p=y.useCallback(b=>{var g;if(h){const E=Pw(b)?b(l):b;E!==l&&((g=d.current)==null||g.call(d,E))}else f(b)},[h,l,f,d]);return[v,p]}function Ww({defaultProp:l,onChange:i}){const[u,r]=y.useState(l),s=y.useRef(u),f=y.useRef(i);return $w(()=>{f.current=i},[i]),y.useEffect(()=>{var d;s.current!==u&&((d=f.current)==null||d.call(f,u),s.current=u)},[u,s]),[u,r,f]}function Pw(l){return typeof l=="function"}function Fw(l){const i=y.useRef({value:l,previous:l});return y.useMemo(()=>(i.current.value!==l&&(i.current.previous=i.current.value,i.current.value=l),i.current.previous),[l])}var zy=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Iw="VisuallyHidden",Ny=y.forwardRef((l,i)=>N.jsx(Ke.span,{...l,ref:i,style:{...zy,...l.style}}));Ny.displayName=Iw;var e2=Ny,t2=function(l){if(typeof document>"u")return null;var i=Array.isArray(l)?l[0]:l;return i.ownerDocument.body},Oa=new WeakMap,po=new WeakMap,vo={},Ts=0,Dy=function(l){return l&&(l.host||Dy(l.parentNode))},n2=function(l,i){return i.map(function(u){if(l.contains(u))return u;var r=Dy(u);return r&&l.contains(r)?r:(console.error("aria-hidden",u,"in not contained inside",l,". Doing nothing"),null)}).filter(function(u){return!!u})},l2=function(l,i,u,r){var s=n2(i,Array.isArray(l)?l:[l]);vo[u]||(vo[u]=new WeakMap);var f=vo[u],d=[],h=new Set,v=new Set(s),p=function(g){!g||h.has(g)||(h.add(g),p(g.parentNode))};s.forEach(p);var b=function(g){!g||v.has(g)||Array.prototype.forEach.call(g.children,function(E){if(h.has(E))b(E);else try{var C=E.getAttribute(r),O=C!==null&&C!=="false",x=(Oa.get(E)||0)+1,T=(f.get(E)||0)+1;Oa.set(E,x),f.set(E,T),d.push(E),x===1&&O&&po.set(E,!0),T===1&&E.setAttribute(u,"true"),O||E.setAttribute(r,"true")}catch(_){console.error("aria-hidden: cannot operate on ",E,_)}})};return b(i),h.clear(),Ts++,function(){d.forEach(function(g){var E=Oa.get(g)-1,C=f.get(g)-1;Oa.set(g,E),f.set(g,C),E||(po.has(g)||g.removeAttribute(r),po.delete(g)),C||g.removeAttribute(u)}),Ts--,Ts||(Oa=new WeakMap,Oa=new WeakMap,po=new WeakMap,vo={})}},a2=function(l,i,u){u===void 0&&(u="data-aria-hidden");var r=Array.from(Array.isArray(l)?l:[l]),s=t2(l);return s?(r.push.apply(r,Array.from(s.querySelectorAll("[aria-live], script"))),l2(r,s,u,"aria-hidden")):function(){return null}},sn=function(){return sn=Object.assign||function(i){for(var u,r=1,s=arguments.length;r<s;r++){u=arguments[r];for(var f in u)Object.prototype.hasOwnProperty.call(u,f)&&(i[f]=u[f])}return i},sn.apply(this,arguments)};function Ly(l,i){var u={};for(var r in l)Object.prototype.hasOwnProperty.call(l,r)&&i.indexOf(r)<0&&(u[r]=l[r]);if(l!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(l);s<r.length;s++)i.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(l,r[s])&&(u[r[s]]=l[r[s]]);return u}function i2(l,i,u){if(u||arguments.length===2)for(var r=0,s=i.length,f;r<s;r++)(f||!(r in i))&&(f||(f=Array.prototype.slice.call(i,0,r)),f[r]=i[r]);return l.concat(f||Array.prototype.slice.call(i))}var Co="right-scroll-bar-position",To="width-before-scroll-bar",r2="with-scroll-bars-hidden",o2="--removed-body-scroll-bar-size";function Rs(l,i){return typeof l=="function"?l(i):l&&(l.current=i),l}function u2(l,i){var u=y.useState(function(){return{value:l,callback:i,facade:{get current(){return u.value},set current(r){var s=u.value;s!==r&&(u.value=r,u.callback(r,s))}}}})[0];return u.callback=i,u.facade}var c2=typeof window<"u"?y.useLayoutEffect:y.useEffect,fv=new WeakMap;function s2(l,i){var u=u2(null,function(r){return l.forEach(function(s){return Rs(s,r)})});return c2(function(){var r=fv.get(u);if(r){var s=new Set(r),f=new Set(l),d=u.current;s.forEach(function(h){f.has(h)||Rs(h,null)}),f.forEach(function(h){s.has(h)||Rs(h,d)})}fv.set(u,l)},[l]),u}function f2(l){return l}function d2(l,i){i===void 0&&(i=f2);var u=[],r=!1,s={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return u.length?u[u.length-1]:l},useMedium:function(f){var d=i(f,r);return u.push(d),function(){u=u.filter(function(h){return h!==d})}},assignSyncMedium:function(f){for(r=!0;u.length;){var d=u;u=[],d.forEach(f)}u={push:function(h){return f(h)},filter:function(){return u}}},assignMedium:function(f){r=!0;var d=[];if(u.length){var h=u;u=[],h.forEach(f),d=u}var v=function(){var b=d;d=[],b.forEach(f)},p=function(){return Promise.resolve().then(v)};p(),u={push:function(b){d.push(b),p()},filter:function(b){return d=d.filter(b),u}}}};return s}function m2(l){l===void 0&&(l={});var i=d2(null);return i.options=sn({async:!0,ssr:!1},l),i}var Uy=function(l){var i=l.sideCar,u=Ly(l,["sideCar"]);if(!i)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=i.read();if(!r)throw new Error("Sidecar medium not found");return y.createElement(r,sn({},u))};Uy.isSideCarExport=!0;function h2(l,i){return l.useMedium(i),Uy}var jy=m2(),As=function(){},Go=y.forwardRef(function(l,i){var u=y.useRef(null),r=y.useState({onScrollCapture:As,onWheelCapture:As,onTouchMoveCapture:As}),s=r[0],f=r[1],d=l.forwardProps,h=l.children,v=l.className,p=l.removeScrollBar,b=l.enabled,g=l.shards,E=l.sideCar,C=l.noRelative,O=l.noIsolation,x=l.inert,T=l.allowPinchZoom,_=l.as,M=_===void 0?"div":_,D=l.gapMode,q=Ly(l,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),K=E,W=s2([u,i]),Y=sn(sn({},q),s);return y.createElement(y.Fragment,null,b&&y.createElement(K,{sideCar:jy,removeScrollBar:p,shards:g,noRelative:C,noIsolation:O,inert:x,setCallbacks:f,allowPinchZoom:!!T,lockRef:u,gapMode:D}),d?y.cloneElement(y.Children.only(h),sn(sn({},Y),{ref:W})):y.createElement(M,sn({},Y,{className:v,ref:W}),h))});Go.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Go.classNames={fullWidth:To,zeroRight:Co};var p2=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function v2(){if(!document)return null;var l=document.createElement("style");l.type="text/css";var i=p2();return i&&l.setAttribute("nonce",i),l}function y2(l,i){l.styleSheet?l.styleSheet.cssText=i:l.appendChild(document.createTextNode(i))}function g2(l){var i=document.head||document.getElementsByTagName("head")[0];i.appendChild(l)}var b2=function(){var l=0,i=null;return{add:function(u){l==0&&(i=v2())&&(y2(i,u),g2(i)),l++},remove:function(){l--,!l&&i&&(i.parentNode&&i.parentNode.removeChild(i),i=null)}}},S2=function(){var l=b2();return function(i,u){y.useEffect(function(){return l.add(i),function(){l.remove()}},[i&&u])}},Hy=function(){var l=S2(),i=function(u){var r=u.styles,s=u.dynamic;return l(r,s),null};return i},x2={left:0,top:0,right:0,gap:0},_s=function(l){return parseInt(l||"",10)||0},E2=function(l){var i=window.getComputedStyle(document.body),u=i[l==="padding"?"paddingLeft":"marginLeft"],r=i[l==="padding"?"paddingTop":"marginTop"],s=i[l==="padding"?"paddingRight":"marginRight"];return[_s(u),_s(r),_s(s)]},w2=function(l){if(l===void 0&&(l="margin"),typeof window>"u")return x2;var i=E2(l),u=document.documentElement.clientWidth,r=window.innerWidth;return{left:i[0],top:i[1],right:i[2],gap:Math.max(0,r-u+i[2]-i[0])}},C2=Hy(),Da="data-scroll-locked",T2=function(l,i,u,r){var s=l.left,f=l.top,d=l.right,h=l.gap;return u===void 0&&(u="margin"),`
62
+ .`.concat(r2,` {
63
+ overflow: hidden `).concat(r,`;
64
+ padding-right: `).concat(h,"px ").concat(r,`;
65
+ }
66
+ body[`).concat(Da,`] {
67
+ overflow: hidden `).concat(r,`;
68
+ overscroll-behavior: contain;
69
+ `).concat([i&&"position: relative ".concat(r,";"),u==="margin"&&`
70
+ padding-left: `.concat(s,`px;
71
+ padding-top: `).concat(f,`px;
72
+ padding-right: `).concat(d,`px;
73
+ margin-left:0;
74
+ margin-top:0;
75
+ margin-right: `).concat(h,"px ").concat(r,`;
76
+ `),u==="padding"&&"padding-right: ".concat(h,"px ").concat(r,";")].filter(Boolean).join(""),`
77
+ }
78
+
79
+ .`).concat(Co,` {
80
+ right: `).concat(h,"px ").concat(r,`;
81
+ }
82
+
83
+ .`).concat(To,` {
84
+ margin-right: `).concat(h,"px ").concat(r,`;
85
+ }
86
+
87
+ .`).concat(Co," .").concat(Co,` {
88
+ right: 0 `).concat(r,`;
89
+ }
90
+
91
+ .`).concat(To," .").concat(To,` {
92
+ margin-right: 0 `).concat(r,`;
93
+ }
94
+
95
+ body[`).concat(Da,`] {
96
+ `).concat(o2,": ").concat(h,`px;
97
+ }
98
+ `)},dv=function(){var l=parseInt(document.body.getAttribute(Da)||"0",10);return isFinite(l)?l:0},R2=function(){y.useEffect(function(){return document.body.setAttribute(Da,(dv()+1).toString()),function(){var l=dv()-1;l<=0?document.body.removeAttribute(Da):document.body.setAttribute(Da,l.toString())}},[])},A2=function(l){var i=l.noRelative,u=l.noImportant,r=l.gapMode,s=r===void 0?"margin":r;R2();var f=y.useMemo(function(){return w2(s)},[s]);return y.createElement(C2,{styles:T2(f,!i,s,u?"":"!important")})},ks=!1;if(typeof window<"u")try{var yo=Object.defineProperty({},"passive",{get:function(){return ks=!0,!0}});window.addEventListener("test",yo,yo),window.removeEventListener("test",yo,yo)}catch{ks=!1}var Ma=ks?{passive:!1}:!1,_2=function(l){return l.tagName==="TEXTAREA"},By=function(l,i){if(!(l instanceof Element))return!1;var u=window.getComputedStyle(l);return u[i]!=="hidden"&&!(u.overflowY===u.overflowX&&!_2(l)&&u[i]==="visible")},O2=function(l){return By(l,"overflowY")},M2=function(l){return By(l,"overflowX")},mv=function(l,i){var u=i.ownerDocument,r=i;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var s=ky(l,r);if(s){var f=qy(l,r),d=f[1],h=f[2];if(d>h)return!0}r=r.parentNode}while(r&&r!==u.body);return!1},z2=function(l){var i=l.scrollTop,u=l.scrollHeight,r=l.clientHeight;return[i,u,r]},N2=function(l){var i=l.scrollLeft,u=l.scrollWidth,r=l.clientWidth;return[i,u,r]},ky=function(l,i){return l==="v"?O2(i):M2(i)},qy=function(l,i){return l==="v"?z2(i):N2(i)},D2=function(l,i){return l==="h"&&i==="rtl"?-1:1},L2=function(l,i,u,r,s){var f=D2(l,window.getComputedStyle(i).direction),d=f*r,h=u.target,v=i.contains(h),p=!1,b=d>0,g=0,E=0;do{if(!h)break;var C=qy(l,h),O=C[0],x=C[1],T=C[2],_=x-T-f*O;(O||_)&&ky(l,h)&&(g+=_,E+=O);var M=h.parentNode;h=M&&M.nodeType===Node.DOCUMENT_FRAGMENT_NODE?M.host:M}while(!v&&h!==document.body||v&&(i.contains(h)||i===h));return(b&&Math.abs(g)<1||!b&&Math.abs(E)<1)&&(p=!0),p},go=function(l){return"changedTouches"in l?[l.changedTouches[0].clientX,l.changedTouches[0].clientY]:[0,0]},hv=function(l){return[l.deltaX,l.deltaY]},pv=function(l){return l&&"current"in l?l.current:l},U2=function(l,i){return l[0]===i[0]&&l[1]===i[1]},j2=function(l){return`
99
+ .block-interactivity-`.concat(l,` {pointer-events: none;}
100
+ .allow-interactivity-`).concat(l,` {pointer-events: all;}
101
+ `)},H2=0,za=[];function B2(l){var i=y.useRef([]),u=y.useRef([0,0]),r=y.useRef(),s=y.useState(H2++)[0],f=y.useState(Hy)[0],d=y.useRef(l);y.useEffect(function(){d.current=l},[l]),y.useEffect(function(){if(l.inert){document.body.classList.add("block-interactivity-".concat(s));var x=i2([l.lockRef.current],(l.shards||[]).map(pv),!0).filter(Boolean);return x.forEach(function(T){return T.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),x.forEach(function(T){return T.classList.remove("allow-interactivity-".concat(s))})}}},[l.inert,l.lockRef.current,l.shards]);var h=y.useCallback(function(x,T){if("touches"in x&&x.touches.length===2||x.type==="wheel"&&x.ctrlKey)return!d.current.allowPinchZoom;var _=go(x),M=u.current,D="deltaX"in x?x.deltaX:M[0]-_[0],q="deltaY"in x?x.deltaY:M[1]-_[1],K,W=x.target,Y=Math.abs(D)>Math.abs(q)?"h":"v";if("touches"in x&&Y==="h"&&W.type==="range")return!1;var X=window.getSelection(),ae=X&&X.anchorNode,he=ae?ae===W||ae.contains(W):!1;if(he)return!1;var pe=mv(Y,W);if(!pe)return!0;if(pe?K=Y:(K=Y==="v"?"h":"v",pe=mv(Y,W)),!pe)return!1;if(!r.current&&"changedTouches"in x&&(D||q)&&(r.current=K),!K)return!0;var de=r.current||K;return L2(de,T,x,de==="h"?D:q)},[]),v=y.useCallback(function(x){var T=x;if(!(!za.length||za[za.length-1]!==f)){var _="deltaY"in T?hv(T):go(T),M=i.current.filter(function(K){return K.name===T.type&&(K.target===T.target||T.target===K.shadowParent)&&U2(K.delta,_)})[0];if(M&&M.should){T.cancelable&&T.preventDefault();return}if(!M){var D=(d.current.shards||[]).map(pv).filter(Boolean).filter(function(K){return K.contains(T.target)}),q=D.length>0?h(T,D[0]):!d.current.noIsolation;q&&T.cancelable&&T.preventDefault()}}},[]),p=y.useCallback(function(x,T,_,M){var D={name:x,delta:T,target:_,should:M,shadowParent:k2(_)};i.current.push(D),setTimeout(function(){i.current=i.current.filter(function(q){return q!==D})},1)},[]),b=y.useCallback(function(x){u.current=go(x),r.current=void 0},[]),g=y.useCallback(function(x){p(x.type,hv(x),x.target,h(x,l.lockRef.current))},[]),E=y.useCallback(function(x){p(x.type,go(x),x.target,h(x,l.lockRef.current))},[]);y.useEffect(function(){return za.push(f),l.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:E}),document.addEventListener("wheel",v,Ma),document.addEventListener("touchmove",v,Ma),document.addEventListener("touchstart",b,Ma),function(){za=za.filter(function(x){return x!==f}),document.removeEventListener("wheel",v,Ma),document.removeEventListener("touchmove",v,Ma),document.removeEventListener("touchstart",b,Ma)}},[]);var C=l.removeScrollBar,O=l.inert;return y.createElement(y.Fragment,null,O?y.createElement(f,{styles:j2(s)}):null,C?y.createElement(A2,{noRelative:l.noRelative,gapMode:l.gapMode}):null)}function k2(l){for(var i=null;l!==null;)l instanceof ShadowRoot&&(i=l.host,l=l.host),l=l.parentNode;return i}const q2=h2(jy,B2);var Yy=y.forwardRef(function(l,i){return y.createElement(Go,sn({},l,{ref:i,sideCar:q2}))});Yy.classNames=Go.classNames;var Y2=[" ","Enter","ArrowUp","ArrowDown"],V2=[" ","Enter"],Vl="Select",[Xo,Qo,G2]=Ix(Vl),[qa]=jo(Vl,[G2,Vo]),Zo=Vo(),[X2,yl]=qa(Vl),[Q2,Z2]=qa(Vl),Vy=l=>{const{__scopeSelect:i,children:u,open:r,defaultOpen:s,onOpenChange:f,value:d,defaultValue:h,onValueChange:v,dir:p,name:b,autoComplete:g,disabled:E,required:C,form:O}=l,x=Zo(i),[T,_]=y.useState(null),[M,D]=y.useState(null),[q,K]=y.useState(!1),W=tE(p),[Y,X]=sv({prop:r,defaultProp:s??!1,onChange:f,caller:Vl}),[ae,he]=sv({prop:d,defaultProp:h,onChange:v,caller:Vl}),pe=y.useRef(null),de=T?O||!!T.closest("form"):!0,[ge,me]=y.useState(new Set),se=Array.from(ge).map(L=>L.props.value).join(";");return N.jsx(Yw,{...x,children:N.jsxs(X2,{required:C,scope:i,trigger:T,onTriggerChange:_,valueNode:M,onValueNodeChange:D,valueNodeHasChildren:q,onValueNodeHasChildrenChange:K,contentId:uf(),value:ae,onValueChange:he,open:Y,onOpenChange:X,dir:W,triggerPointerDownPosRef:pe,disabled:E,children:[N.jsx(Xo.Provider,{scope:i,children:N.jsx(Q2,{scope:l.__scopeSelect,onNativeOptionAdd:y.useCallback(L=>{me(Z=>new Set(Z).add(L))},[]),onNativeOptionRemove:y.useCallback(L=>{me(Z=>{const J=new Set(Z);return J.delete(L),J})},[]),children:u})}),de?N.jsxs(dg,{"aria-hidden":!0,required:C,tabIndex:-1,name:b,autoComplete:g,value:ae,onChange:L=>he(L.target.value),disabled:E,form:O,children:[ae===void 0?N.jsx("option",{value:""}):null,Array.from(ge)]},se):null]})})};Vy.displayName=Vl;var Gy="SelectTrigger",Xy=y.forwardRef((l,i)=>{const{__scopeSelect:u,disabled:r=!1,...s}=l,f=Zo(u),d=yl(Gy,u),h=d.disabled||r,v=tt(i,d.onTriggerChange),p=Qo(u),b=y.useRef("touch"),[g,E,C]=hg(x=>{const T=p().filter(D=>!D.disabled),_=T.find(D=>D.value===d.value),M=pg(T,x,_);M!==void 0&&d.onValueChange(M.value)}),O=x=>{h||(d.onOpenChange(!0),C()),x&&(d.triggerPointerDownPosRef.current={x:Math.round(x.pageX),y:Math.round(x.pageY)})};return N.jsx(Ay,{asChild:!0,...f,children:N.jsx(Ke.button,{type:"button",role:"combobox","aria-controls":d.contentId,"aria-expanded":d.open,"aria-required":d.required,"aria-autocomplete":"none",dir:d.dir,"data-state":d.open?"open":"closed",disabled:h,"data-disabled":h?"":void 0,"data-placeholder":mg(d.value)?"":void 0,...s,ref:v,onClick:ke(s.onClick,x=>{x.currentTarget.focus(),b.current!=="mouse"&&O(x)}),onPointerDown:ke(s.onPointerDown,x=>{b.current=x.pointerType;const T=x.target;T.hasPointerCapture(x.pointerId)&&T.releasePointerCapture(x.pointerId),x.button===0&&x.ctrlKey===!1&&x.pointerType==="mouse"&&(O(x),x.preventDefault())}),onKeyDown:ke(s.onKeyDown,x=>{const T=g.current!=="";!(x.ctrlKey||x.altKey||x.metaKey)&&x.key.length===1&&E(x.key),!(T&&x.key===" ")&&Y2.includes(x.key)&&(O(),x.preventDefault())})})})});Xy.displayName=Gy;var Qy="SelectValue",Zy=y.forwardRef((l,i)=>{const{__scopeSelect:u,className:r,style:s,children:f,placeholder:d="",...h}=l,v=yl(Qy,u),{onValueNodeHasChildrenChange:p}=v,b=f!==void 0,g=tt(i,v.onValueNodeChange);return mt(()=>{p(b)},[p,b]),N.jsx(Ke.span,{...h,ref:g,style:{pointerEvents:"none"},children:mg(v.value)?N.jsx(N.Fragment,{children:d}):f})});Zy.displayName=Qy;var K2="SelectIcon",Ky=y.forwardRef((l,i)=>{const{__scopeSelect:u,children:r,...s}=l;return N.jsx(Ke.span,{"aria-hidden":!0,...s,ref:i,children:r||"▼"})});Ky.displayName=K2;var J2="SelectPortal",Jy=l=>N.jsx(My,{asChild:!0,...l});Jy.displayName=J2;var Gl="SelectContent",$y=y.forwardRef((l,i)=>{const u=yl(Gl,l.__scopeSelect),[r,s]=y.useState();if(mt(()=>{s(new DocumentFragment)},[]),!u.open){const f=r;return f?Xi.createPortal(N.jsx(Wy,{scope:l.__scopeSelect,children:N.jsx(Xo.Slot,{scope:l.__scopeSelect,children:N.jsx("div",{children:l.children})})}),f):null}return N.jsx(Py,{...l,ref:i})});$y.displayName=Gl;var Wt=10,[Wy,gl]=qa(Gl),$2="SelectContentImpl",W2=Gw("SelectContent.RemoveScroll"),Py=y.forwardRef((l,i)=>{const{__scopeSelect:u,position:r="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:f,onPointerDownOutside:d,side:h,sideOffset:v,align:p,alignOffset:b,arrowPadding:g,collisionBoundary:E,collisionPadding:C,sticky:O,hideWhenDetached:x,avoidCollisions:T,..._}=l,M=yl(Gl,u),[D,q]=y.useState(null),[K,W]=y.useState(null),Y=tt(i,F=>q(F)),[X,ae]=y.useState(null),[he,pe]=y.useState(null),de=Qo(u),[ge,me]=y.useState(!1),se=y.useRef(!1);y.useEffect(()=>{if(D)return a2(D)},[D]),gE();const L=y.useCallback(F=>{const[ve,...ue]=de().map(we=>we.ref.current),[_e]=ue.slice(-1),Ee=document.activeElement;for(const we of F)if(we===Ee||(we==null||we.scrollIntoView({block:"nearest"}),we===ve&&K&&(K.scrollTop=0),we===_e&&K&&(K.scrollTop=K.scrollHeight),we==null||we.focus(),document.activeElement!==Ee))return},[de,K]),Z=y.useCallback(()=>L([X,D]),[L,X,D]);y.useEffect(()=>{ge&&Z()},[ge,Z]);const{onOpenChange:J,triggerPointerDownPosRef:oe}=M;y.useEffect(()=>{if(D){let F={x:0,y:0};const ve=_e=>{var Ee,we;F={x:Math.abs(Math.round(_e.pageX)-(((Ee=oe.current)==null?void 0:Ee.x)??0)),y:Math.abs(Math.round(_e.pageY)-(((we=oe.current)==null?void 0:we.y)??0))}},ue=_e=>{F.x<=10&&F.y<=10?_e.preventDefault():D.contains(_e.target)||J(!1),document.removeEventListener("pointermove",ve),oe.current=null};return oe.current!==null&&(document.addEventListener("pointermove",ve),document.addEventListener("pointerup",ue,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ve),document.removeEventListener("pointerup",ue,{capture:!0})}}},[D,J,oe]),y.useEffect(()=>{const F=()=>J(!1);return window.addEventListener("blur",F),window.addEventListener("resize",F),()=>{window.removeEventListener("blur",F),window.removeEventListener("resize",F)}},[J]);const[$,R]=hg(F=>{const ve=de().filter(Ee=>!Ee.disabled),ue=ve.find(Ee=>Ee.ref.current===document.activeElement),_e=pg(ve,F,ue);_e&&setTimeout(()=>_e.ref.current.focus())}),V=y.useCallback((F,ve,ue)=>{const _e=!se.current&&!ue;(M.value!==void 0&&M.value===ve||_e)&&(ae(F),_e&&(se.current=!0))},[M.value]),P=y.useCallback(()=>D==null?void 0:D.focus(),[D]),I=y.useCallback((F,ve,ue)=>{const _e=!se.current&&!ue;(M.value!==void 0&&M.value===ve||_e)&&pe(F)},[M.value]),ne=r==="popper"?qs:Fy,ie=ne===qs?{side:h,sideOffset:v,align:p,alignOffset:b,arrowPadding:g,collisionBoundary:E,collisionPadding:C,sticky:O,hideWhenDetached:x,avoidCollisions:T}:{};return N.jsx(Wy,{scope:u,content:D,viewport:K,onViewportChange:W,itemRefCallback:V,selectedItem:X,onItemLeave:P,itemTextRefCallback:I,focusSelectedItem:Z,selectedItemText:he,position:r,isPositioned:ge,searchRef:$,children:N.jsx(Yy,{as:W2,allowPinchZoom:!0,children:N.jsx(ay,{asChild:!0,trapped:M.open,onMountAutoFocus:F=>{F.preventDefault()},onUnmountAutoFocus:ke(s,F=>{var ve;(ve=M.trigger)==null||ve.focus({preventScroll:!0}),F.preventDefault()}),children:N.jsx(of,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:f,onPointerDownOutside:d,onFocusOutside:F=>F.preventDefault(),onDismiss:()=>M.onOpenChange(!1),children:N.jsx(ne,{role:"listbox",id:M.contentId,"data-state":M.open?"open":"closed",dir:M.dir,onContextMenu:F=>F.preventDefault(),..._,...ie,onPlaced:()=>me(!0),ref:Y,style:{display:"flex",flexDirection:"column",outline:"none",..._.style},onKeyDown:ke(_.onKeyDown,F=>{const ve=F.ctrlKey||F.altKey||F.metaKey;if(F.key==="Tab"&&F.preventDefault(),!ve&&F.key.length===1&&R(F.key),["ArrowUp","ArrowDown","Home","End"].includes(F.key)){let _e=de().filter(Ee=>!Ee.disabled).map(Ee=>Ee.ref.current);if(["ArrowUp","End"].includes(F.key)&&(_e=_e.slice().reverse()),["ArrowUp","ArrowDown"].includes(F.key)){const Ee=F.target,we=_e.indexOf(Ee);_e=_e.slice(we+1)}setTimeout(()=>L(_e)),F.preventDefault()}})})})})})})});Py.displayName=$2;var P2="SelectItemAlignedPosition",Fy=y.forwardRef((l,i)=>{const{__scopeSelect:u,onPlaced:r,...s}=l,f=yl(Gl,u),d=gl(Gl,u),[h,v]=y.useState(null),[p,b]=y.useState(null),g=tt(i,Y=>b(Y)),E=Qo(u),C=y.useRef(!1),O=y.useRef(!0),{viewport:x,selectedItem:T,selectedItemText:_,focusSelectedItem:M}=d,D=y.useCallback(()=>{if(f.trigger&&f.valueNode&&h&&p&&x&&T&&_){const Y=f.trigger.getBoundingClientRect(),X=p.getBoundingClientRect(),ae=f.valueNode.getBoundingClientRect(),he=_.getBoundingClientRect();if(f.dir!=="rtl"){const Ee=he.left-X.left,we=ae.left-Ee,We=Y.left-we,Ge=Y.width+We,hn=Math.max(Ge,X.width),pn=window.innerWidth-Wt,bl=Gp(we,[Wt,Math.max(Wt,pn-hn)]);h.style.minWidth=Ge+"px",h.style.left=bl+"px"}else{const Ee=X.right-he.right,we=window.innerWidth-ae.right-Ee,We=window.innerWidth-Y.right-we,Ge=Y.width+We,hn=Math.max(Ge,X.width),pn=window.innerWidth-Wt,bl=Gp(we,[Wt,Math.max(Wt,pn-hn)]);h.style.minWidth=Ge+"px",h.style.right=bl+"px"}const pe=E(),de=window.innerHeight-Wt*2,ge=x.scrollHeight,me=window.getComputedStyle(p),se=parseInt(me.borderTopWidth,10),L=parseInt(me.paddingTop,10),Z=parseInt(me.borderBottomWidth,10),J=parseInt(me.paddingBottom,10),oe=se+L+ge+J+Z,$=Math.min(T.offsetHeight*5,oe),R=window.getComputedStyle(x),V=parseInt(R.paddingTop,10),P=parseInt(R.paddingBottom,10),I=Y.top+Y.height/2-Wt,ne=de-I,ie=T.offsetHeight/2,F=T.offsetTop+ie,ve=se+L+F,ue=oe-ve;if(ve<=I){const Ee=pe.length>0&&T===pe[pe.length-1].ref.current;h.style.bottom="0px";const we=p.clientHeight-x.offsetTop-x.offsetHeight,We=Math.max(ne,ie+(Ee?P:0)+we+Z),Ge=ve+We;h.style.height=Ge+"px"}else{const Ee=pe.length>0&&T===pe[0].ref.current;h.style.top="0px";const We=Math.max(I,se+x.offsetTop+(Ee?V:0)+ie)+ue;h.style.height=We+"px",x.scrollTop=ve-I+x.offsetTop}h.style.margin=`${Wt}px 0`,h.style.minHeight=$+"px",h.style.maxHeight=de+"px",r==null||r(),requestAnimationFrame(()=>C.current=!0)}},[E,f.trigger,f.valueNode,h,p,x,T,_,f.dir,r]);mt(()=>D(),[D]);const[q,K]=y.useState();mt(()=>{p&&K(window.getComputedStyle(p).zIndex)},[p]);const W=y.useCallback(Y=>{Y&&O.current===!0&&(D(),M==null||M(),O.current=!1)},[D,M]);return N.jsx(I2,{scope:u,contentWrapper:h,shouldExpandOnScrollRef:C,onScrollButtonChange:W,children:N.jsx("div",{ref:v,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:q},children:N.jsx(Ke.div,{...s,ref:g,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});Fy.displayName=P2;var F2="SelectPopperPosition",qs=y.forwardRef((l,i)=>{const{__scopeSelect:u,align:r="start",collisionPadding:s=Wt,...f}=l,d=Zo(u);return N.jsx(_y,{...d,...f,ref:i,align:r,collisionPadding:s,style:{boxSizing:"border-box",...f.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});qs.displayName=F2;var[I2,yf]=qa(Gl,{}),Ys="SelectViewport",Iy=y.forwardRef((l,i)=>{const{__scopeSelect:u,nonce:r,...s}=l,f=gl(Ys,u),d=yf(Ys,u),h=tt(i,f.onViewportChange),v=y.useRef(0);return N.jsxs(N.Fragment,{children:[N.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),N.jsx(Xo.Slot,{scope:u,children:N.jsx(Ke.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:h,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:ke(s.onScroll,p=>{const b=p.currentTarget,{contentWrapper:g,shouldExpandOnScrollRef:E}=d;if(E!=null&&E.current&&g){const C=Math.abs(v.current-b.scrollTop);if(C>0){const O=window.innerHeight-Wt*2,x=parseFloat(g.style.minHeight),T=parseFloat(g.style.height),_=Math.max(x,T);if(_<O){const M=_+C,D=Math.min(O,M),q=M-D;g.style.height=D+"px",g.style.bottom==="0px"&&(b.scrollTop=q>0?q:0,g.style.justifyContent="flex-end")}}}v.current=b.scrollTop})})})]})});Iy.displayName=Ys;var eg="SelectGroup",[eC,tC]=qa(eg),nC=y.forwardRef((l,i)=>{const{__scopeSelect:u,...r}=l,s=uf();return N.jsx(eC,{scope:u,id:s,children:N.jsx(Ke.div,{role:"group","aria-labelledby":s,...r,ref:i})})});nC.displayName=eg;var tg="SelectLabel",ng=y.forwardRef((l,i)=>{const{__scopeSelect:u,...r}=l,s=tC(tg,u);return N.jsx(Ke.div,{id:s.id,...r,ref:i})});ng.displayName=tg;var Do="SelectItem",[lC,lg]=qa(Do),ag=y.forwardRef((l,i)=>{const{__scopeSelect:u,value:r,disabled:s=!1,textValue:f,...d}=l,h=yl(Do,u),v=gl(Do,u),p=h.value===r,[b,g]=y.useState(f??""),[E,C]=y.useState(!1),O=tt(i,M=>{var D;return(D=v.itemRefCallback)==null?void 0:D.call(v,M,r,s)}),x=uf(),T=y.useRef("touch"),_=()=>{s||(h.onValueChange(r),h.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return N.jsx(lC,{scope:u,value:r,disabled:s,textId:x,isSelected:p,onItemTextChange:y.useCallback(M=>{g(D=>D||((M==null?void 0:M.textContent)??"").trim())},[]),children:N.jsx(Xo.ItemSlot,{scope:u,value:r,disabled:s,textValue:b,children:N.jsx(Ke.div,{role:"option","aria-labelledby":x,"data-highlighted":E?"":void 0,"aria-selected":p&&E,"data-state":p?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...d,ref:O,onFocus:ke(d.onFocus,()=>C(!0)),onBlur:ke(d.onBlur,()=>C(!1)),onClick:ke(d.onClick,()=>{T.current!=="mouse"&&_()}),onPointerUp:ke(d.onPointerUp,()=>{T.current==="mouse"&&_()}),onPointerDown:ke(d.onPointerDown,M=>{T.current=M.pointerType}),onPointerMove:ke(d.onPointerMove,M=>{var D;T.current=M.pointerType,s?(D=v.onItemLeave)==null||D.call(v):T.current==="mouse"&&M.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ke(d.onPointerLeave,M=>{var D;M.currentTarget===document.activeElement&&((D=v.onItemLeave)==null||D.call(v))}),onKeyDown:ke(d.onKeyDown,M=>{var q;((q=v.searchRef)==null?void 0:q.current)!==""&&M.key===" "||(V2.includes(M.key)&&_(),M.key===" "&&M.preventDefault())})})})})});ag.displayName=Do;var Hi="SelectItemText",ig=y.forwardRef((l,i)=>{const{__scopeSelect:u,className:r,style:s,...f}=l,d=yl(Hi,u),h=gl(Hi,u),v=lg(Hi,u),p=Z2(Hi,u),[b,g]=y.useState(null),E=tt(i,_=>g(_),v.onItemTextChange,_=>{var M;return(M=h.itemTextRefCallback)==null?void 0:M.call(h,_,v.value,v.disabled)}),C=b==null?void 0:b.textContent,O=y.useMemo(()=>N.jsx("option",{value:v.value,disabled:v.disabled,children:C},v.value),[v.disabled,v.value,C]),{onNativeOptionAdd:x,onNativeOptionRemove:T}=p;return mt(()=>(x(O),()=>T(O)),[x,T,O]),N.jsxs(N.Fragment,{children:[N.jsx(Ke.span,{id:v.textId,...f,ref:E}),v.isSelected&&d.valueNode&&!d.valueNodeHasChildren?Xi.createPortal(f.children,d.valueNode):null]})});ig.displayName=Hi;var rg="SelectItemIndicator",og=y.forwardRef((l,i)=>{const{__scopeSelect:u,...r}=l;return lg(rg,u).isSelected?N.jsx(Ke.span,{"aria-hidden":!0,...r,ref:i}):null});og.displayName=rg;var Vs="SelectScrollUpButton",ug=y.forwardRef((l,i)=>{const u=gl(Vs,l.__scopeSelect),r=yf(Vs,l.__scopeSelect),[s,f]=y.useState(!1),d=tt(i,r.onScrollButtonChange);return mt(()=>{if(u.viewport&&u.isPositioned){let h=function(){const p=v.scrollTop>0;f(p)};const v=u.viewport;return h(),v.addEventListener("scroll",h),()=>v.removeEventListener("scroll",h)}},[u.viewport,u.isPositioned]),s?N.jsx(sg,{...l,ref:d,onAutoScroll:()=>{const{viewport:h,selectedItem:v}=u;h&&v&&(h.scrollTop=h.scrollTop-v.offsetHeight)}}):null});ug.displayName=Vs;var Gs="SelectScrollDownButton",cg=y.forwardRef((l,i)=>{const u=gl(Gs,l.__scopeSelect),r=yf(Gs,l.__scopeSelect),[s,f]=y.useState(!1),d=tt(i,r.onScrollButtonChange);return mt(()=>{if(u.viewport&&u.isPositioned){let h=function(){const p=v.scrollHeight-v.clientHeight,b=Math.ceil(v.scrollTop)<p;f(b)};const v=u.viewport;return h(),v.addEventListener("scroll",h),()=>v.removeEventListener("scroll",h)}},[u.viewport,u.isPositioned]),s?N.jsx(sg,{...l,ref:d,onAutoScroll:()=>{const{viewport:h,selectedItem:v}=u;h&&v&&(h.scrollTop=h.scrollTop+v.offsetHeight)}}):null});cg.displayName=Gs;var sg=y.forwardRef((l,i)=>{const{__scopeSelect:u,onAutoScroll:r,...s}=l,f=gl("SelectScrollButton",u),d=y.useRef(null),h=Qo(u),v=y.useCallback(()=>{d.current!==null&&(window.clearInterval(d.current),d.current=null)},[]);return y.useEffect(()=>()=>v(),[v]),mt(()=>{var b;const p=h().find(g=>g.ref.current===document.activeElement);(b=p==null?void 0:p.ref.current)==null||b.scrollIntoView({block:"nearest"})},[h]),N.jsx(Ke.div,{"aria-hidden":!0,...s,ref:i,style:{flexShrink:0,...s.style},onPointerDown:ke(s.onPointerDown,()=>{d.current===null&&(d.current=window.setInterval(r,50))}),onPointerMove:ke(s.onPointerMove,()=>{var p;(p=f.onItemLeave)==null||p.call(f),d.current===null&&(d.current=window.setInterval(r,50))}),onPointerLeave:ke(s.onPointerLeave,()=>{v()})})}),aC="SelectSeparator",fg=y.forwardRef((l,i)=>{const{__scopeSelect:u,...r}=l;return N.jsx(Ke.div,{"aria-hidden":!0,...r,ref:i})});fg.displayName=aC;var Xs="SelectArrow",iC=y.forwardRef((l,i)=>{const{__scopeSelect:u,...r}=l,s=Zo(u),f=yl(Xs,u),d=gl(Xs,u);return f.open&&d.position==="popper"?N.jsx(Oy,{...s,...r,ref:i}):null});iC.displayName=Xs;var rC="SelectBubbleInput",dg=y.forwardRef(({__scopeSelect:l,value:i,...u},r)=>{const s=y.useRef(null),f=tt(r,s),d=Fw(i);return y.useEffect(()=>{const h=s.current;if(!h)return;const v=window.HTMLSelectElement.prototype,b=Object.getOwnPropertyDescriptor(v,"value").set;if(d!==i&&b){const g=new Event("change",{bubbles:!0});b.call(h,i),h.dispatchEvent(g)}},[d,i]),N.jsx(Ke.select,{...u,style:{...zy,...u.style},ref:f,defaultValue:i})});dg.displayName=rC;function mg(l){return l===""||l===void 0}function hg(l){const i=ql(l),u=y.useRef(""),r=y.useRef(0),s=y.useCallback(d=>{const h=u.current+d;i(h),(function v(p){u.current=p,window.clearTimeout(r.current),p!==""&&(r.current=window.setTimeout(()=>v(""),1e3))})(h)},[i]),f=y.useCallback(()=>{u.current="",window.clearTimeout(r.current)},[]);return y.useEffect(()=>()=>window.clearTimeout(r.current),[]),[u,s,f]}function pg(l,i,u){const s=i.length>1&&Array.from(i).every(p=>p===i[0])?i[0]:i,f=u?l.indexOf(u):-1;let d=oC(l,Math.max(f,0));s.length===1&&(d=d.filter(p=>p!==u));const v=d.find(p=>p.textValue.toLowerCase().startsWith(s.toLowerCase()));return v!==u?v:void 0}function oC(l,i){return l.map((u,r)=>l[(i+r)%l.length])}var uC=Vy,vg=Xy,cC=Zy,sC=Ky,fC=Jy,yg=$y,dC=Iy,gg=ng,bg=ag,mC=ig,hC=og,Sg=ug,xg=cg,Eg=fg;/**
102
+ * @license lucide-react v1.16.0 - ISC
103
+ *
104
+ * This source code is licensed under the ISC license.
105
+ * See the LICENSE file in the root directory of this source tree.
106
+ */const wg=(...l)=>l.filter((i,u,r)=>!!i&&i.trim()!==""&&r.indexOf(i)===u).join(" ").trim();/**
107
+ * @license lucide-react v1.16.0 - ISC
108
+ *
109
+ * This source code is licensed under the ISC license.
110
+ * See the LICENSE file in the root directory of this source tree.
111
+ */const pC=l=>l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
112
+ * @license lucide-react v1.16.0 - ISC
113
+ *
114
+ * This source code is licensed under the ISC license.
115
+ * See the LICENSE file in the root directory of this source tree.
116
+ */const vC=l=>l.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,u,r)=>r?r.toUpperCase():u.toLowerCase());/**
117
+ * @license lucide-react v1.16.0 - ISC
118
+ *
119
+ * This source code is licensed under the ISC license.
120
+ * See the LICENSE file in the root directory of this source tree.
121
+ */const vv=l=>{const i=vC(l);return i.charAt(0).toUpperCase()+i.slice(1)};/**
122
+ * @license lucide-react v1.16.0 - ISC
123
+ *
124
+ * This source code is licensed under the ISC license.
125
+ * See the LICENSE file in the root directory of this source tree.
126
+ */var Os={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"};/**
127
+ * @license lucide-react v1.16.0 - ISC
128
+ *
129
+ * This source code is licensed under the ISC license.
130
+ * See the LICENSE file in the root directory of this source tree.
131
+ */const yC=l=>{for(const i in l)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1},gC=y.createContext({}),bC=()=>y.useContext(gC),SC=y.forwardRef(({color:l,size:i,strokeWidth:u,absoluteStrokeWidth:r,className:s="",children:f,iconNode:d,...h},v)=>{const{size:p=24,strokeWidth:b=2,absoluteStrokeWidth:g=!1,color:E="currentColor",className:C=""}=bC()??{},O=r??g?Number(u??b)*24/Number(i??p):u??b;return y.createElement("svg",{ref:v,...Os,width:i??p??Os.width,height:i??p??Os.height,stroke:l??E,strokeWidth:O,className:wg("lucide",C,s),...!f&&!yC(h)&&{"aria-hidden":"true"},...h},[...d.map(([x,T])=>y.createElement(x,T)),...Array.isArray(f)?f:[f]])});/**
132
+ * @license lucide-react v1.16.0 - ISC
133
+ *
134
+ * This source code is licensed under the ISC license.
135
+ * See the LICENSE file in the root directory of this source tree.
136
+ */const Zt=(l,i)=>{const u=y.forwardRef(({className:r,...s},f)=>y.createElement(SC,{ref:f,iconNode:i,className:wg(`lucide-${pC(vv(l))}`,`lucide-${l}`,r),...s}));return u.displayName=vv(l),u};/**
137
+ * @license lucide-react v1.16.0 - ISC
138
+ *
139
+ * This source code is licensed under the ISC license.
140
+ * See the LICENSE file in the root directory of this source tree.
141
+ */const xC=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],EC=Zt("check",xC);/**
142
+ * @license lucide-react v1.16.0 - ISC
143
+ *
144
+ * This source code is licensed under the ISC license.
145
+ * See the LICENSE file in the root directory of this source tree.
146
+ */const wC=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Cg=Zt("chevron-down",wC);/**
147
+ * @license lucide-react v1.16.0 - ISC
148
+ *
149
+ * This source code is licensed under the ISC license.
150
+ * See the LICENSE file in the root directory of this source tree.
151
+ */const CC=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],TC=Zt("chevron-up",CC);/**
152
+ * @license lucide-react v1.16.0 - ISC
153
+ *
154
+ * This source code is licensed under the ISC license.
155
+ * See the LICENSE file in the root directory of this source tree.
156
+ */const RC=[["path",{d:"M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2Z",key:"1fr9dc"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M12 10v2",key:"hh53o1"}],["path",{d:"M16 10v6",key:"1d6xys"}]],AC=Zt("folder-kanban",RC);/**
157
+ * @license lucide-react v1.16.0 - ISC
158
+ *
159
+ * This source code is licensed under the ISC license.
160
+ * See the LICENSE file in the root directory of this source tree.
161
+ */const _C=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],OC=Zt("layout-dashboard",_C);/**
162
+ * @license lucide-react v1.16.0 - ISC
163
+ *
164
+ * This source code is licensed under the ISC license.
165
+ * See the LICENSE file in the root directory of this source tree.
166
+ */const MC=[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}]],zC=Zt("list-checks",MC);/**
167
+ * @license lucide-react v1.16.0 - ISC
168
+ *
169
+ * This source code is licensed under the ISC license.
170
+ * See the LICENSE file in the root directory of this source tree.
171
+ */const NC=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],DC=Zt("message-square",NC);/**
172
+ * @license lucide-react v1.16.0 - ISC
173
+ *
174
+ * This source code is licensed under the ISC license.
175
+ * See the LICENSE file in the root directory of this source tree.
176
+ */const LC=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],UC=Zt("monitor",LC);/**
177
+ * @license lucide-react v1.16.0 - ISC
178
+ *
179
+ * This source code is licensed under the ISC license.
180
+ * See the LICENSE file in the root directory of this source tree.
181
+ */const jC=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],HC=Zt("settings",jC);/**
182
+ * @license lucide-react v1.16.0 - ISC
183
+ *
184
+ * This source code is licensed under the ISC license.
185
+ * See the LICENSE file in the root directory of this source tree.
186
+ */const BC=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],kC=Zt("users",BC);/**
187
+ * @license lucide-react v1.16.0 - ISC
188
+ *
189
+ * This source code is licensed under the ISC license.
190
+ * See the LICENSE file in the root directory of this source tree.
191
+ */const qC=[["path",{d:"M18 16.98h-5.99c-1.1 0-1.95.94-2.48 1.9A4 4 0 0 1 2 17c.01-.7.2-1.4.57-2",key:"q3hayz"}],["path",{d:"m6 17 3.13-5.78c.53-.97.1-2.18-.5-3.1a4 4 0 1 1 6.89-4.06",key:"1go1hn"}],["path",{d:"m12 6 3.13 5.73C15.66 12.7 16.9 13 18 13a4 4 0 0 1 0 8",key:"qlwsc0"}]],YC=Zt("webhook",qC);/**
192
+ * @license lucide-react v1.16.0 - ISC
193
+ *
194
+ * This source code is licensed under the ISC license.
195
+ * See the LICENSE file in the root directory of this source tree.
196
+ */const VC=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],GC=Zt("zap",VC),XC=uC,QC=cC,Tg=y.forwardRef(({className:l,children:i,...u},r)=>N.jsxs(vg,{ref:r,className:It("flex h-10 w-full items-center justify-between rounded-md border border-[hsl(var(--input))] bg-[hsl(var(--background))] px-3 py-2 text-sm ring-offset-[hsl(var(--background))] placeholder:text-[hsl(var(--muted-foreground))] focus:outline-none focus:ring-2 focus:ring-[hsl(var(--ring))] focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",l),...u,children:[i,N.jsx(sC,{asChild:!0,children:N.jsx(Cg,{className:"h-4 w-4 opacity-50"})})]}));Tg.displayName=vg.displayName;const Rg=y.forwardRef(({className:l,...i},u)=>N.jsx(Sg,{ref:u,className:It("flex cursor-default items-center justify-center py-1",l),...i,children:N.jsx(TC,{className:"h-4 w-4"})}));Rg.displayName=Sg.displayName;const Ag=y.forwardRef(({className:l,...i},u)=>N.jsx(xg,{ref:u,className:It("flex cursor-default items-center justify-center py-1",l),...i,children:N.jsx(Cg,{className:"h-4 w-4"})}));Ag.displayName=xg.displayName;const _g=y.forwardRef(({className:l,children:i,position:u="popper",...r},s)=>N.jsx(fC,{children:N.jsxs(yg,{ref:s,className:It("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-[hsl(var(--border))] bg-[hsl(var(--popover))] text-[hsl(var(--popover-foreground))] shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",u==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",l),position:u,...r,children:[N.jsx(Rg,{}),N.jsx(dC,{className:It("p-1",u==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:i}),N.jsx(Ag,{})]})}));_g.displayName=yg.displayName;const ZC=y.forwardRef(({className:l,...i},u)=>N.jsx(gg,{ref:u,className:It("py-1.5 pl-8 pr-2 text-sm font-semibold",l),...i}));ZC.displayName=gg.displayName;const Qs=y.forwardRef(({className:l,children:i,...u},r)=>N.jsxs(bg,{ref:r,className:It("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-[hsl(var(--accent))] focus:text-[hsl(var(--accent-foreground))] data-[disabled]:pointer-events-none data-[disabled]:opacity-50",l),...u,children:[N.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:N.jsx(hC,{children:N.jsx(EC,{className:"h-4 w-4"})})}),N.jsx(mC,{children:i})]}));Qs.displayName=bg.displayName;const KC=y.forwardRef(({className:l,...i},u)=>N.jsx(Eg,{ref:u,className:It("-mx-1 my-1 h-px bg-[hsl(var(--muted))]",l),...i}));KC.displayName=Eg.displayName;const bo="maestro_last_workspace";function JC(){const[l,i]=y.useState([]),[u,r]=y.useState(""),[s,f]=y.useState(!1),d=Ps(),h=ln();y.useEffect(()=>{I1("/workspaces").then(g=>{i(g),f(!0);const E=localStorage.getItem(bo);E&&g.some(C=>C.id===E)?r(E):g.length>0&&(r(g[0].id),localStorage.setItem(bo,g[0].id))}).catch(()=>f(!0))},[]),y.useEffect(()=>{const g=h.pathname.match(/^\/space\/([^/]+)/);g&&g[1]!=="new"&&(r(g[1]),localStorage.setItem(bo,g[1]))},[h.pathname]);const v=g=>{g==="__new__"?d("/workspaces/new"):(r(g),localStorage.setItem(bo,g),d(`/space/${g}/dashboard`))},p=h.pathname==="/workspaces/new";if(s&&l.length===0&&!p)return d("/workspaces/new",{replace:!0}),null;if(p&&l.length===0)return N.jsx("div",{className:"flex justify-center items-center min-h-screen bg-[hsl(var(--secondary))]",children:N.jsx(Up,{})});const b=u?[{to:`/space/${u}/dashboard`,label:"Dashboard",icon:OC},{to:`/space/${u}/projects`,label:"Projects",icon:AC},{to:`/space/${u}/chat`,label:"Chat",icon:DC},{to:`/space/${u}/tasks`,label:"Tasks",icon:zC},{to:`/space/${u}/roles`,label:"Roles",icon:kC},{to:`/space/${u}/hooks`,label:"Webhooks",icon:YC}]:[];return N.jsxs("div",{className:"flex h-screen",children:[N.jsxs("nav",{className:"w-[220px] bg-[hsl(var(--sidebar-background))] text-[hsl(var(--sidebar-foreground))] flex flex-col shrink-0 overflow-y-auto px-3 py-4",children:[N.jsxs("div",{className:"flex items-center gap-2 px-2.5 mb-6",children:[N.jsx("span",{className:"w-2 h-2 rounded-full bg-emerald-400 animate-pulse"}),N.jsx("span",{className:"font-mono text-[13px] font-bold tracking-[0.12em] text-white",children:"MAESTRO"})]}),N.jsx("div",{className:"mb-5 px-0.5",children:N.jsxs(XC,{value:u,onValueChange:v,children:[N.jsx(Tg,{className:"w-full h-8 text-xs bg-[hsl(var(--sidebar-accent))] border-[hsl(var(--sidebar-border))] text-[hsl(var(--sidebar-foreground))] rounded-md",children:N.jsx(QC,{placeholder:"Select workspace"})}),N.jsxs(_g,{children:[l.map(g=>N.jsx(Qs,{value:g.id,children:g.name},g.id)),N.jsx(Qs,{value:"__new__",children:"+ 新建空间"})]})]})}),N.jsx("div",{className:"px-2.5 mb-1.5 font-mono text-[11px] tracking-[0.06em] uppercase text-[hsl(var(--sidebar-muted-foreground))]",children:"Workspace"}),N.jsx("div",{className:"flex flex-col gap-0.5 mb-auto",children:b.map(g=>{const E=g.icon;return N.jsxs(Ds,{to:g.to,className:({isActive:C})=>It("flex items-center gap-2 text-[13px] px-2.5 py-[7px] rounded-md no-underline transition-colors",C?"bg-[hsl(217,33%,17%)] text-white":"text-[hsl(0,0%,65%)] hover:bg-[hsl(0,0%,15%)] hover:text-[hsl(0,0%,92%)]"),children:[N.jsx(E,{className:"w-4 h-4 opacity-70 shrink-0"}),g.label]},g.to)})}),N.jsxs("div",{className:"mt-6 pt-4 border-t border-[hsl(var(--sidebar-border))]",children:[N.jsx("div",{className:"px-2.5 mb-1.5 font-mono text-[11px] tracking-[0.06em] uppercase text-[hsl(var(--sidebar-muted-foreground))]",children:"Global"}),N.jsx("div",{className:"flex flex-col gap-0.5",children:[{to:"/runtimes",icon:UC,label:"Runtimes"},{to:"/skills",icon:GC,label:"Skills"},{to:"/settings",icon:HC,label:"Settings"}].map(g=>{const E=g.icon;return N.jsxs(Ds,{to:g.to,className:({isActive:C})=>It("flex items-center gap-2 text-[13px] px-2.5 py-[7px] rounded-md no-underline transition-colors",C?"bg-[hsl(217,33%,17%)] text-white":"text-[hsl(0,0%,65%)] hover:bg-[hsl(0,0%,15%)] hover:text-[hsl(0,0%,92%)]"),children:[N.jsx(E,{className:"w-4 h-4 opacity-70 shrink-0"}),g.label]},g.to)})})]})]}),N.jsx("main",{className:"flex-1 overflow-auto",children:N.jsx(Up,{})})]})}function $C(l,i){return y.useReducer((u,r)=>i[u][r]??u,l)}var Og=l=>{const{present:i,children:u}=l,r=WC(i),s=typeof u=="function"?u({present:r.isPresent}):y.Children.only(u),f=tt(r.ref,PC(s));return typeof u=="function"||r.isPresent?y.cloneElement(s,{ref:f}):null};Og.displayName="Presence";function WC(l){const[i,u]=y.useState(),r=y.useRef(null),s=y.useRef(l),f=y.useRef("none"),d=l?"mounted":"unmounted",[h,v]=$C(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const p=So(r.current);f.current=h==="mounted"?p:"none"},[h]),mt(()=>{const p=r.current,b=s.current;if(b!==l){const E=f.current,C=So(p);l?v("MOUNT"):C==="none"||(p==null?void 0:p.display)==="none"?v("UNMOUNT"):v(b&&E!==C?"ANIMATION_OUT":"UNMOUNT"),s.current=l}},[l,v]),mt(()=>{if(i){let p;const b=i.ownerDocument.defaultView??window,g=C=>{const x=So(r.current).includes(CSS.escape(C.animationName));if(C.target===i&&x&&(v("ANIMATION_END"),!s.current)){const T=i.style.animationFillMode;i.style.animationFillMode="forwards",p=b.setTimeout(()=>{i.style.animationFillMode==="forwards"&&(i.style.animationFillMode=T)})}},E=C=>{C.target===i&&(f.current=So(r.current))};return i.addEventListener("animationstart",E),i.addEventListener("animationcancel",g),i.addEventListener("animationend",g),()=>{b.clearTimeout(p),i.removeEventListener("animationstart",E),i.removeEventListener("animationcancel",g),i.removeEventListener("animationend",g)}}else v("ANIMATION_END")},[i,v]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:y.useCallback(p=>{r.current=p?getComputedStyle(p):null,u(p)},[])}}function So(l){return(l==null?void 0:l.animationName)||"none"}function PC(l){var r,s;let i=(r=Object.getOwnPropertyDescriptor(l.props,"ref"))==null?void 0:r.get,u=i&&"isReactWarning"in i&&i.isReactWarning;return u?l.ref:(i=(s=Object.getOwnPropertyDescriptor(l,"ref"))==null?void 0:s.get,u=i&&"isReactWarning"in i&&i.isReactWarning,u?l.props.ref:l.props.ref||l.ref)}var FC=Symbol("radix.slottable");function IC(l){const i=({children:u})=>N.jsx(N.Fragment,{children:u});return i.displayName=`${l}.Slottable`,i.__radixId=FC,i}var[Ko]=jo("Tooltip",[Vo]),gf=Vo(),Mg="TooltipProvider",eT=700,yv="tooltip.open",[tT,zg]=Ko(Mg),Ng=l=>{const{__scopeTooltip:i,delayDuration:u=eT,skipDelayDuration:r=300,disableHoverableContent:s=!1,children:f}=l,d=y.useRef(!0),h=y.useRef(!1),v=y.useRef(0);return y.useEffect(()=>{const p=v.current;return()=>window.clearTimeout(p)},[]),N.jsx(tT,{scope:i,isOpenDelayedRef:d,delayDuration:u,onOpen:y.useCallback(()=>{window.clearTimeout(v.current),d.current=!1},[]),onClose:y.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>d.current=!0,r)},[r]),isPointerInTransitRef:h,onPointerInTransitChange:y.useCallback(p=>{h.current=p},[]),disableHoverableContent:s,children:f})};Ng.displayName=Mg;var Dg="Tooltip",[qT,Jo]=Ko(Dg),Zs="TooltipTrigger",nT=y.forwardRef((l,i)=>{const{__scopeTooltip:u,...r}=l,s=Jo(Zs,u),f=zg(Zs,u),d=gf(u),h=y.useRef(null),v=tt(i,h,s.onTriggerChange),p=y.useRef(!1),b=y.useRef(!1),g=y.useCallback(()=>p.current=!1,[]);return y.useEffect(()=>()=>document.removeEventListener("pointerup",g),[g]),N.jsx(Ay,{asChild:!0,...d,children:N.jsx(Ke.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...r,ref:v,onPointerMove:ke(l.onPointerMove,E=>{E.pointerType!=="touch"&&!b.current&&!f.isPointerInTransitRef.current&&(s.onTriggerEnter(),b.current=!0)}),onPointerLeave:ke(l.onPointerLeave,()=>{s.onTriggerLeave(),b.current=!1}),onPointerDown:ke(l.onPointerDown,()=>{s.open&&s.onClose(),p.current=!0,document.addEventListener("pointerup",g,{once:!0})}),onFocus:ke(l.onFocus,()=>{p.current||s.onOpen()}),onBlur:ke(l.onBlur,s.onClose),onClick:ke(l.onClick,s.onClose)})})});nT.displayName=Zs;var lT="TooltipPortal",[YT,aT]=Ko(lT,{forceMount:void 0}),Ua="TooltipContent",Lg=y.forwardRef((l,i)=>{const u=aT(Ua,l.__scopeTooltip),{forceMount:r=u.forceMount,side:s="top",...f}=l,d=Jo(Ua,l.__scopeTooltip);return N.jsx(Og,{present:r||d.open,children:d.disableHoverableContent?N.jsx(Ug,{side:s,...f,ref:i}):N.jsx(iT,{side:s,...f,ref:i})})}),iT=y.forwardRef((l,i)=>{const u=Jo(Ua,l.__scopeTooltip),r=zg(Ua,l.__scopeTooltip),s=y.useRef(null),f=tt(i,s),[d,h]=y.useState(null),{trigger:v,onClose:p}=u,b=s.current,{onPointerInTransitChange:g}=r,E=y.useCallback(()=>{h(null),g(!1)},[g]),C=y.useCallback((O,x)=>{const T=O.currentTarget,_={x:O.clientX,y:O.clientY},M=sT(_,T.getBoundingClientRect()),D=fT(_,M),q=dT(x.getBoundingClientRect()),K=hT([...D,...q]);h(K),g(!0)},[g]);return y.useEffect(()=>()=>E(),[E]),y.useEffect(()=>{if(v&&b){const O=T=>C(T,b),x=T=>C(T,v);return v.addEventListener("pointerleave",O),b.addEventListener("pointerleave",x),()=>{v.removeEventListener("pointerleave",O),b.removeEventListener("pointerleave",x)}}},[v,b,C,E]),y.useEffect(()=>{if(d){const O=x=>{const T=x.target,_={x:x.clientX,y:x.clientY},M=(v==null?void 0:v.contains(T))||(b==null?void 0:b.contains(T)),D=!mT(_,d);M?E():D&&(E(),p())};return document.addEventListener("pointermove",O),()=>document.removeEventListener("pointermove",O)}},[v,b,d,p,E]),N.jsx(Ug,{...l,ref:f})}),[rT,oT]=Ko(Dg,{isInside:!1}),uT=IC("TooltipContent"),Ug=y.forwardRef((l,i)=>{const{__scopeTooltip:u,children:r,"aria-label":s,onEscapeKeyDown:f,onPointerDownOutside:d,...h}=l,v=Jo(Ua,u),p=gf(u),{onClose:b}=v;return y.useEffect(()=>(document.addEventListener(yv,b),()=>document.removeEventListener(yv,b)),[b]),y.useEffect(()=>{if(v.trigger){const g=E=>{const C=E.target;C!=null&&C.contains(v.trigger)&&b()};return window.addEventListener("scroll",g,{capture:!0}),()=>window.removeEventListener("scroll",g,{capture:!0})}},[v.trigger,b]),N.jsx(of,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:f,onPointerDownOutside:d,onFocusOutside:g=>g.preventDefault(),onDismiss:b,children:N.jsxs(_y,{"data-state":v.stateAttribute,...p,...h,ref:i,style:{...h.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[N.jsx(uT,{children:r}),N.jsx(rT,{scope:u,isInside:!0,children:N.jsx(e2,{id:v.contentId,role:"tooltip",children:s||r})})]})})});Lg.displayName=Ua;var jg="TooltipArrow",cT=y.forwardRef((l,i)=>{const{__scopeTooltip:u,...r}=l,s=gf(u);return oT(jg,u).isInside?null:N.jsx(Oy,{...s,...r,ref:i})});cT.displayName=jg;function sT(l,i){const u=Math.abs(i.top-l.y),r=Math.abs(i.bottom-l.y),s=Math.abs(i.right-l.x),f=Math.abs(i.left-l.x);switch(Math.min(u,r,s,f)){case f:return"left";case s:return"right";case u:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function fT(l,i,u=5){const r=[];switch(i){case"top":r.push({x:l.x-u,y:l.y+u},{x:l.x+u,y:l.y+u});break;case"bottom":r.push({x:l.x-u,y:l.y-u},{x:l.x+u,y:l.y-u});break;case"left":r.push({x:l.x+u,y:l.y-u},{x:l.x+u,y:l.y+u});break;case"right":r.push({x:l.x-u,y:l.y-u},{x:l.x-u,y:l.y+u});break}return r}function dT(l){const{top:i,right:u,bottom:r,left:s}=l;return[{x:s,y:i},{x:u,y:i},{x:u,y:r},{x:s,y:r}]}function mT(l,i){const{x:u,y:r}=l;let s=!1;for(let f=0,d=i.length-1;f<i.length;d=f++){const h=i[f],v=i[d],p=h.x,b=h.y,g=v.x,E=v.y;b>r!=E>r&&u<(g-p)*(r-b)/(E-b)+p&&(s=!s)}return s}function hT(l){const i=l.slice();return i.sort((u,r)=>u.x<r.x?-1:u.x>r.x?1:u.y<r.y?-1:u.y>r.y?1:0),pT(i)}function pT(l){if(l.length<=1)return l.slice();const i=[];for(let r=0;r<l.length;r++){const s=l[r];for(;i.length>=2;){const f=i[i.length-1],d=i[i.length-2];if((f.x-d.x)*(s.y-d.y)>=(f.y-d.y)*(s.x-d.x))i.pop();else break}i.push(s)}i.pop();const u=[];for(let r=l.length-1;r>=0;r--){const s=l[r];for(;u.length>=2;){const f=u[u.length-1],d=u[u.length-2];if((f.x-d.x)*(s.y-d.y)>=(f.y-d.y)*(s.x-d.x))u.pop();else break}u.push(s)}return u.pop(),i.length===1&&u.length===1&&i[0].x===u[0].x&&i[0].y===u[0].y?i:i.concat(u)}var vT=Ng,Hg=Lg;const yT=vT,gT=y.forwardRef(({className:l,sideOffset:i=4,...u},r)=>N.jsx(Hg,{ref:r,sideOffset:i,className:It("z-50 overflow-hidden rounded-md border border-[hsl(var(--border))] bg-[hsl(var(--popover))] px-3 py-1.5 text-sm text-[hsl(var(--popover-foreground))] shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",l),...u}));gT.displayName=Hg.displayName;const bT=y.lazy(()=>Et(()=>import("./Home-Ct3Ho0Qt.js"),[])),ST=y.lazy(()=>Et(()=>import("./WorkspaceNew-DoNGYHCG.js"),[])),gv=y.lazy(()=>Et(()=>import("./WorkspaceDashboard-B9vgrd2Z.js"),__vite__mapDeps([0,1,2]))),xT=y.lazy(()=>Et(()=>import("./WorkspaceProjects-DDp3mUse.js"),__vite__mapDeps([3,4,5,6,7]))),ET=y.lazy(()=>Et(()=>import("./WorkspaceTasks-mPU-bhKR.js"),__vite__mapDeps([8,2,9,10,1,6,4,11]))),wT=y.lazy(()=>Et(()=>import("./WorkspaceSchedules-BTjmCbYG.js"),[])),CT=y.lazy(()=>Et(()=>import("./WorkspaceChat-DrsLs4m2.js"),__vite__mapDeps([12,1]))),TT=y.lazy(()=>Et(()=>import("./ProjectDetail-B_IqEpFu.js"),__vite__mapDeps([13,10,1]))),RT=y.lazy(()=>Et(()=>import("./Roles-D1tIQzto.js"),__vite__mapDeps([14,1,15,4,16]))),AT=y.lazy(()=>Et(()=>import("./Connections-BMA04Ycg.js"),__vite__mapDeps([17,15,18]))),_T=y.lazy(()=>Et(()=>import("./HooksCrons--0kyVJcR.js"),__vite__mapDeps([19,4,11]))),OT=y.lazy(()=>Et(()=>import("./Settings-yts4LUmH.js"),__vite__mapDeps([20,18,15,5]))),MT=y.lazy(()=>Et(()=>import("./Skills-DbuNLjIV.js"),__vite__mapDeps([21,15,4,9,22,11]))),zT=y.lazy(()=>Et(()=>import("./Wizard-vJol8-Y4.js"),__vite__mapDeps([23,7,22,16])));function NT(){return N.jsx("div",{className:"text-sm text-[hsl(var(--muted-foreground))]",children:"Loading page..."})}gS.createRoot(document.getElementById("root")).render(N.jsx(Un.StrictMode,{children:N.jsx(yT,{children:N.jsx(G1,{children:N.jsx(y.Suspense,{fallback:N.jsx(NT,{}),children:N.jsx(g1,{children:N.jsxs(ft,{element:N.jsx(JC,{}),children:[N.jsx(ft,{index:!0,element:N.jsx(bT,{})}),N.jsx(ft,{path:"workspaces/new",element:N.jsx(ST,{})}),N.jsx(ft,{path:"space/:id/dashboard",element:N.jsx(gv,{})}),N.jsx(ft,{path:"space/:id/projects",element:N.jsx(xT,{})}),N.jsx(ft,{path:"space/:id/tasks",element:N.jsx(ET,{})}),N.jsx(ft,{path:"space/:id/schedules",element:N.jsx(wT,{})}),N.jsx(ft,{path:"space/:id/chat",element:N.jsx(CT,{})}),N.jsx(ft,{path:"space/:id/roles",element:N.jsx(RT,{})}),N.jsx(ft,{path:"space/:id/hooks",element:N.jsx(_T,{})}),N.jsx(ft,{path:"space/:id",element:N.jsx(gv,{})}),N.jsx(ft,{path:"projects/:id",element:N.jsx(TT,{})}),N.jsx(ft,{path:"runtimes",element:N.jsx(AT,{})}),N.jsx(ft,{path:"settings",element:N.jsx(OT,{})}),N.jsx(ft,{path:"skills",element:N.jsx(MT,{})}),N.jsx(ft,{path:"wizard/:workspaceId?",element:N.jsx(zT,{})})]})})})})})}));export{Js as A,mS as B,Cg as C,of as D,ql as E,ay as F,tt as G,sv as H,tE as I,gE as J,uf as K,Ps as L,DC as M,DT as N,LT as O,My as P,bv as R,XC as S,kC as U,Un as W,GC as Z,Et as _,UC as a,Og as b,Ke as c,Yy as d,_g as e,Qs as f,Tg as g,QC as h,YC as i,ex as j,It as k,ke as l,Ho as m,Ix as n,kT as o,jo as p,Zt as q,BT as r,I1 as s,Ks as t,a2 as u,N as v,HT as w,UT as x,jT as y,y as z};