@hasna/contacts 0.6.32 → 0.6.34

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 (205) hide show
  1. package/THIRD_PARTY_NOTICES.md +5 -0
  2. package/dist/cli/index.js +22033 -5522
  3. package/dist/index.js +3 -0
  4. package/dist/mcp/index.js +27401 -11286
  5. package/dist/server/cloud-index.js +9187 -0
  6. package/dist/server/index.js +198 -60
  7. package/migrations/0013_remote_delete_tombstones.sql +15 -0
  8. package/migrations/0014_contact_tag_filter_index.sql +9 -0
  9. package/package.json +9 -4
  10. package/vendor/fast-uri/LICENSE +30 -0
  11. package/dashboard/dist/assets/index-0l6aQb1t.css +0 -1
  12. package/dashboard/dist/assets/index-opnZdkVD.js +0 -229
  13. package/dashboard/dist/index.html +0 -13
  14. package/dist/cli/commands/advanced.d.ts +0 -3
  15. package/dist/cli/commands/advanced.d.ts.map +0 -1
  16. package/dist/cli/commands/audience.d.ts +0 -18
  17. package/dist/cli/commands/audience.d.ts.map +0 -1
  18. package/dist/cli/commands/core.d.ts +0 -3
  19. package/dist/cli/commands/core.d.ts.map +0 -1
  20. package/dist/cli/commands/crm.d.ts +0 -3
  21. package/dist/cli/commands/crm.d.ts.map +0 -1
  22. package/dist/cli/index.d.ts +0 -3
  23. package/dist/cli/index.d.ts.map +0 -1
  24. package/dist/cli/storage.d.ts +0 -3
  25. package/dist/cli/storage.d.ts.map +0 -1
  26. package/dist/cli/utils.d.ts +0 -10
  27. package/dist/cli/utils.d.ts.map +0 -1
  28. package/dist/cloud/http-storage.d.ts +0 -88
  29. package/dist/cloud/http-storage.d.ts.map +0 -1
  30. package/dist/db/activity.d.ts +0 -15
  31. package/dist/db/activity.d.ts.map +0 -1
  32. package/dist/db/applications.d.ts +0 -10
  33. package/dist/db/applications.d.ts.map +0 -1
  34. package/dist/db/audiences.d.ts +0 -51
  35. package/dist/db/audiences.d.ts.map +0 -1
  36. package/dist/db/companies.d.ts +0 -19
  37. package/dist/db/companies.d.ts.map +0 -1
  38. package/dist/db/contact-tasks.d.ts +0 -19
  39. package/dist/db/contact-tasks.d.ts.map +0 -1
  40. package/dist/db/contacts.d.ts +0 -30
  41. package/dist/db/contacts.d.ts.map +0 -1
  42. package/dist/db/coordination.d.ts +0 -30
  43. package/dist/db/coordination.d.ts.map +0 -1
  44. package/dist/db/database.d.ts +0 -8
  45. package/dist/db/database.d.ts.map +0 -1
  46. package/dist/db/deals.d.ts +0 -14
  47. package/dist/db/deals.d.ts.map +0 -1
  48. package/dist/db/documents.d.ts +0 -38
  49. package/dist/db/documents.d.ts.map +0 -1
  50. package/dist/db/events.d.ts +0 -14
  51. package/dist/db/events.d.ts.map +0 -1
  52. package/dist/db/field-history.d.ts +0 -17
  53. package/dist/db/field-history.d.ts.map +0 -1
  54. package/dist/db/freshness.d.ts +0 -24
  55. package/dist/db/freshness.d.ts.map +0 -1
  56. package/dist/db/graph.d.ts +0 -21
  57. package/dist/db/graph.d.ts.map +0 -1
  58. package/dist/db/groups.d.ts +0 -22
  59. package/dist/db/groups.d.ts.map +0 -1
  60. package/dist/db/health.d.ts +0 -40
  61. package/dist/db/health.d.ts.map +0 -1
  62. package/dist/db/identity.d.ts +0 -32
  63. package/dist/db/identity.d.ts.map +0 -1
  64. package/dist/db/job-history.d.ts +0 -29
  65. package/dist/db/job-history.d.ts.map +0 -1
  66. package/dist/db/learnings.d.ts +0 -43
  67. package/dist/db/learnings.d.ts.map +0 -1
  68. package/dist/db/notes.d.ts +0 -8
  69. package/dist/db/notes.d.ts.map +0 -1
  70. package/dist/db/org-chart.d.ts +0 -37
  71. package/dist/db/org-chart.d.ts.map +0 -1
  72. package/dist/db/org-members.d.ts +0 -9
  73. package/dist/db/org-members.d.ts.map +0 -1
  74. package/dist/db/paths.d.ts +0 -3
  75. package/dist/db/paths.d.ts.map +0 -1
  76. package/dist/db/pg-migrations.d.ts +0 -8
  77. package/dist/db/pg-migrations.d.ts.map +0 -1
  78. package/dist/db/relationships.d.ts +0 -30
  79. package/dist/db/relationships.d.ts.map +0 -1
  80. package/dist/db/signals.d.ts +0 -18
  81. package/dist/db/signals.d.ts.map +0 -1
  82. package/dist/db/sqlite-adapter.d.ts +0 -15
  83. package/dist/db/sqlite-adapter.d.ts.map +0 -1
  84. package/dist/db/storage.d.ts +0 -15
  85. package/dist/db/storage.d.ts.map +0 -1
  86. package/dist/db/tags.d.ts +0 -14
  87. package/dist/db/tags.d.ts.map +0 -1
  88. package/dist/db/tombstones.d.ts +0 -19
  89. package/dist/db/tombstones.d.ts.map +0 -1
  90. package/dist/db/vendor-comms.d.ts +0 -15
  91. package/dist/db/vendor-comms.d.ts.map +0 -1
  92. package/dist/generated/storage-kit/health.d.ts +0 -20
  93. package/dist/generated/storage-kit/health.d.ts.map +0 -1
  94. package/dist/generated/storage-kit/index.d.ts +0 -8
  95. package/dist/generated/storage-kit/index.d.ts.map +0 -1
  96. package/dist/generated/storage-kit/migrations.d.ts +0 -48
  97. package/dist/generated/storage-kit/migrations.d.ts.map +0 -1
  98. package/dist/generated/storage-kit/mode.d.ts +0 -48
  99. package/dist/generated/storage-kit/mode.d.ts.map +0 -1
  100. package/dist/generated/storage-kit/pool.d.ts +0 -34
  101. package/dist/generated/storage-kit/pool.d.ts.map +0 -1
  102. package/dist/generated/storage-kit/query.d.ts +0 -36
  103. package/dist/generated/storage-kit/query.d.ts.map +0 -1
  104. package/dist/generated/storage-kit/tls.d.ts +0 -26
  105. package/dist/generated/storage-kit/tls.d.ts.map +0 -1
  106. package/dist/index.d.ts +0 -7
  107. package/dist/index.d.ts.map +0 -1
  108. package/dist/lib/apple-contacts.d.ts +0 -3
  109. package/dist/lib/apple-contacts.d.ts.map +0 -1
  110. package/dist/lib/audience-contract.d.ts +0 -215
  111. package/dist/lib/audience-contract.d.ts.map +0 -1
  112. package/dist/lib/audit.d.ts +0 -12
  113. package/dist/lib/audit.d.ts.map +0 -1
  114. package/dist/lib/brief.d.ts +0 -3
  115. package/dist/lib/brief.d.ts.map +0 -1
  116. package/dist/lib/config.d.ts +0 -7
  117. package/dist/lib/config.d.ts.map +0 -1
  118. package/dist/lib/connector.d.ts +0 -44
  119. package/dist/lib/connector.d.ts.map +0 -1
  120. package/dist/lib/context.d.ts +0 -5
  121. package/dist/lib/context.d.ts.map +0 -1
  122. package/dist/lib/dedup.d.ts +0 -10
  123. package/dist/lib/dedup.d.ts.map +0 -1
  124. package/dist/lib/document-scanner.d.ts +0 -8
  125. package/dist/lib/document-scanner.d.ts.map +0 -1
  126. package/dist/lib/embeddings.d.ts +0 -9
  127. package/dist/lib/embeddings.d.ts.map +0 -1
  128. package/dist/lib/export.d.ts +0 -8
  129. package/dist/lib/export.d.ts.map +0 -1
  130. package/dist/lib/freshness.d.ts +0 -19
  131. package/dist/lib/freshness.d.ts.map +0 -1
  132. package/dist/lib/gmail-import.d.ts +0 -51
  133. package/dist/lib/gmail-import.d.ts.map +0 -1
  134. package/dist/lib/google-contacts.d.ts +0 -115
  135. package/dist/lib/google-contacts.d.ts.map +0 -1
  136. package/dist/lib/images.d.ts +0 -30
  137. package/dist/lib/images.d.ts.map +0 -1
  138. package/dist/lib/import.d.ts +0 -10
  139. package/dist/lib/import.d.ts.map +0 -1
  140. package/dist/lib/learning-maintenance.d.ts +0 -8
  141. package/dist/lib/learning-maintenance.d.ts.map +0 -1
  142. package/dist/lib/mailery-sync.d.ts +0 -46
  143. package/dist/lib/mailery-sync.d.ts.map +0 -1
  144. package/dist/lib/meeting-capture.d.ts +0 -15
  145. package/dist/lib/meeting-capture.d.ts.map +0 -1
  146. package/dist/lib/package-version.d.ts +0 -6
  147. package/dist/lib/package-version.d.ts.map +0 -1
  148. package/dist/lib/signals.d.ts +0 -9
  149. package/dist/lib/signals.d.ts.map +0 -1
  150. package/dist/lib/signature-parser.d.ts +0 -36
  151. package/dist/lib/signature-parser.d.ts.map +0 -1
  152. package/dist/lib/stats.d.ts +0 -24
  153. package/dist/lib/stats.d.ts.map +0 -1
  154. package/dist/lib/timeline.d.ts +0 -11
  155. package/dist/lib/timeline.d.ts.map +0 -1
  156. package/dist/lib/upcoming.d.ts +0 -14
  157. package/dist/lib/upcoming.d.ts.map +0 -1
  158. package/dist/lib/vault.d.ts +0 -24
  159. package/dist/lib/vault.d.ts.map +0 -1
  160. package/dist/mcp/handlers/advanced.d.ts +0 -14
  161. package/dist/mcp/handlers/advanced.d.ts.map +0 -1
  162. package/dist/mcp/handlers/audience.d.ts +0 -9
  163. package/dist/mcp/handlers/audience.d.ts.map +0 -1
  164. package/dist/mcp/handlers/core.d.ts +0 -10
  165. package/dist/mcp/handlers/core.d.ts.map +0 -1
  166. package/dist/mcp/handlers/crm.d.ts +0 -14
  167. package/dist/mcp/handlers/crm.d.ts.map +0 -1
  168. package/dist/mcp/handlers/index.d.ts +0 -4
  169. package/dist/mcp/handlers/index.d.ts.map +0 -1
  170. package/dist/mcp/handlers/types.d.ts +0 -10
  171. package/dist/mcp/handlers/types.d.ts.map +0 -1
  172. package/dist/mcp/http.d.ts +0 -17
  173. package/dist/mcp/http.d.ts.map +0 -1
  174. package/dist/mcp/index.d.ts +0 -4
  175. package/dist/mcp/index.d.ts.map +0 -1
  176. package/dist/mcp/register-tools.d.ts +0 -3
  177. package/dist/mcp/register-tools.d.ts.map +0 -1
  178. package/dist/mcp/schema.d.ts +0 -3
  179. package/dist/mcp/schema.d.ts.map +0 -1
  180. package/dist/mcp/storage-tools.d.ts +0 -3
  181. package/dist/mcp/storage-tools.d.ts.map +0 -1
  182. package/dist/mcp/tools.d.ts +0 -3799
  183. package/dist/mcp/tools.d.ts.map +0 -1
  184. package/dist/sdk/index.d.ts +0 -16
  185. package/dist/sdk/index.d.ts.map +0 -1
  186. package/dist/sdk/v1.generated.d.ts +0 -203
  187. package/dist/sdk/v1.generated.d.ts.map +0 -1
  188. package/dist/server/cloud.d.ts +0 -51
  189. package/dist/server/cloud.d.ts.map +0 -1
  190. package/dist/server/index.d.ts +0 -3
  191. package/dist/server/index.d.ts.map +0 -1
  192. package/dist/server/openapi.d.ts +0 -765
  193. package/dist/server/openapi.d.ts.map +0 -1
  194. package/dist/server/pg-store.d.ts +0 -861
  195. package/dist/server/pg-store.d.ts.map +0 -1
  196. package/dist/server/security.d.ts +0 -24
  197. package/dist/server/security.d.ts.map +0 -1
  198. package/dist/server/serve.d.ts +0 -9
  199. package/dist/server/serve.d.ts.map +0 -1
  200. package/dist/server/v1.d.ts +0 -6
  201. package/dist/server/v1.d.ts.map +0 -1
  202. package/dist/store/index.d.ts +0 -383
  203. package/dist/store/index.d.ts.map +0 -1
  204. package/dist/types/index.d.ts +0 -856
  205. package/dist/types/index.d.ts.map +0 -1
@@ -1,229 +0,0 @@
1
- function sb(a,r){for(var o=0;o<r.length;o++){const c=r[o];if(typeof c!="string"&&!Array.isArray(c)){for(const f in c)if(f!=="default"&&!(f in a)){const m=Object.getOwnPropertyDescriptor(c,f);m&&Object.defineProperty(a,f,m.get?m:{enumerable:!0,get:()=>c[f]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))c(f);new MutationObserver(f=>{for(const m of f)if(m.type==="childList")for(const h of m.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&c(h)}).observe(document,{childList:!0,subtree:!0});function o(f){const m={};return f.integrity&&(m.integrity=f.integrity),f.referrerPolicy&&(m.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?m.credentials="include":f.crossOrigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function c(f){if(f.ep)return;f.ep=!0;const m=o(f);fetch(f.href,m)}})();function Hv(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Wc={exports:{}},Ni={};/**
2
- * @license React
3
- * react-jsx-runtime.production.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var Zh;function fb(){if(Zh)return Ni;Zh=1;var a=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(c,f,m){var h=null;if(m!==void 0&&(h=""+m),f.key!==void 0&&(h=""+f.key),"key"in f){m={};for(var v in f)v!=="key"&&(m[v]=f[v])}else m=f;return f=m.ref,{$$typeof:a,type:c,key:h,ref:f!==void 0?f:null,props:m}}return Ni.Fragment=r,Ni.jsx=o,Ni.jsxs=o,Ni}var Kh;function db(){return Kh||(Kh=1,Wc.exports=fb()),Wc.exports}var d=db(),$c={exports:{}},xe={};/**
10
- * @license React
11
- * react.production.js
12
- *
13
- * Copyright (c) Meta Platforms, Inc. and affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var Jh;function mb(){if(Jh)return xe;Jh=1;var a=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),h=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),C=Symbol.iterator;function M(N){return N===null||typeof N!="object"?null:(N=C&&N[C]||N["@@iterator"],typeof N=="function"?N:null)}var R={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T=Object.assign,z={};function H(N,G,I){this.props=N,this.context=G,this.refs=z,this.updater=I||R}H.prototype.isReactComponent={},H.prototype.setState=function(N,G){if(typeof N!="object"&&typeof N!="function"&&N!=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,N,G,"setState")},H.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function J(){}J.prototype=H.prototype;function Y(N,G,I){this.props=N,this.context=G,this.refs=z,this.updater=I||R}var U=Y.prototype=new J;U.constructor=Y,T(U,H.prototype),U.isPureReactComponent=!0;var $=Array.isArray;function W(){}var Z={H:null,A:null,T:null,S:null},K=Object.prototype.hasOwnProperty;function ue(N,G,I){var ee=I.ref;return{$$typeof:a,type:N,key:G,ref:ee!==void 0?ee:null,props:I}}function de(N,G){return ue(N.type,G,N.props)}function ve(N){return typeof N=="object"&&N!==null&&N.$$typeof===a}function me(N){var G={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(I){return G[I]})}var ge=/\/+/g;function he(N,G){return typeof N=="object"&&N!==null&&N.key!=null?me(""+N.key):G.toString(36)}function ye(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(W,W):(N.status="pending",N.then(function(G){N.status==="pending"&&(N.status="fulfilled",N.value=G)},function(G){N.status==="pending"&&(N.status="rejected",N.reason=G)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function w(N,G,I,ee,te){var ae=typeof N;(ae==="undefined"||ae==="boolean")&&(N=null);var pe=!1;if(N===null)pe=!0;else switch(ae){case"bigint":case"string":case"number":pe=!0;break;case"object":switch(N.$$typeof){case a:case r:pe=!0;break;case S:return pe=N._init,w(pe(N._payload),G,I,ee,te)}}if(pe)return te=te(N),pe=ee===""?"."+he(N,0):ee,$(te)?(I="",pe!=null&&(I=pe.replace(ge,"$&/")+"/"),w(te,G,I,"",function(ct){return ct})):te!=null&&(ve(te)&&(te=de(te,I+(te.key==null||N&&N.key===te.key?"":(""+te.key).replace(ge,"$&/")+"/")+pe)),G.push(te)),1;pe=0;var Ge=ee===""?".":ee+":";if($(N))for(var ce=0;ce<N.length;ce++)ee=N[ce],ae=Ge+he(ee,ce),pe+=w(ee,G,I,ae,te);else if(ce=M(N),typeof ce=="function")for(N=ce.call(N),ce=0;!(ee=N.next()).done;)ee=ee.value,ae=Ge+he(ee,ce++),pe+=w(ee,G,I,ae,te);else if(ae==="object"){if(typeof N.then=="function")return w(ye(N),G,I,ee,te);throw G=String(N),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return pe}function B(N,G,I){if(N==null)return N;var ee=[],te=0;return w(N,ee,"","",function(ae){return G.call(I,ae,te++)}),ee}function k(N){if(N._status===-1){var G=N._result;G=G(),G.then(function(I){(N._status===0||N._status===-1)&&(N._status=1,N._result=I)},function(I){(N._status===0||N._status===-1)&&(N._status=2,N._result=I)}),N._status===-1&&(N._status=0,N._result=G)}if(N._status===1)return N._result.default;throw N._result}var X=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N),error:N});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)},F={map:B,forEach:function(N,G,I){B(N,function(){G.apply(this,arguments)},I)},count:function(N){var G=0;return B(N,function(){G++}),G},toArray:function(N){return B(N,function(G){return G})||[]},only:function(N){if(!ve(N))throw Error("React.Children.only expected to receive a single React element child.");return N}};return xe.Activity=y,xe.Children=F,xe.Component=H,xe.Fragment=o,xe.Profiler=f,xe.PureComponent=Y,xe.StrictMode=c,xe.Suspense=b,xe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Z,xe.__COMPILER_RUNTIME={__proto__:null,c:function(N){return Z.H.useMemoCache(N)}},xe.cache=function(N){return function(){return N.apply(null,arguments)}},xe.cacheSignal=function(){return null},xe.cloneElement=function(N,G,I){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var ee=T({},N.props),te=N.key;if(G!=null)for(ae in G.key!==void 0&&(te=""+G.key),G)!K.call(G,ae)||ae==="key"||ae==="__self"||ae==="__source"||ae==="ref"&&G.ref===void 0||(ee[ae]=G[ae]);var ae=arguments.length-2;if(ae===1)ee.children=I;else if(1<ae){for(var pe=Array(ae),Ge=0;Ge<ae;Ge++)pe[Ge]=arguments[Ge+2];ee.children=pe}return ue(N.type,te,ee)},xe.createContext=function(N){return N={$$typeof:h,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:m,_context:N},N},xe.createElement=function(N,G,I){var ee,te={},ae=null;if(G!=null)for(ee in G.key!==void 0&&(ae=""+G.key),G)K.call(G,ee)&&ee!=="key"&&ee!=="__self"&&ee!=="__source"&&(te[ee]=G[ee]);var pe=arguments.length-2;if(pe===1)te.children=I;else if(1<pe){for(var Ge=Array(pe),ce=0;ce<pe;ce++)Ge[ce]=arguments[ce+2];te.children=Ge}if(N&&N.defaultProps)for(ee in pe=N.defaultProps,pe)te[ee]===void 0&&(te[ee]=pe[ee]);return ue(N,ae,te)},xe.createRef=function(){return{current:null}},xe.forwardRef=function(N){return{$$typeof:v,render:N}},xe.isValidElement=ve,xe.lazy=function(N){return{$$typeof:S,_payload:{_status:-1,_result:N},_init:k}},xe.memo=function(N,G){return{$$typeof:p,type:N,compare:G===void 0?null:G}},xe.startTransition=function(N){var G=Z.T,I={};Z.T=I;try{var ee=N(),te=Z.S;te!==null&&te(I,ee),typeof ee=="object"&&ee!==null&&typeof ee.then=="function"&&ee.then(W,X)}catch(ae){X(ae)}finally{G!==null&&I.types!==null&&(G.types=I.types),Z.T=G}},xe.unstable_useCacheRefresh=function(){return Z.H.useCacheRefresh()},xe.use=function(N){return Z.H.use(N)},xe.useActionState=function(N,G,I){return Z.H.useActionState(N,G,I)},xe.useCallback=function(N,G){return Z.H.useCallback(N,G)},xe.useContext=function(N){return Z.H.useContext(N)},xe.useDebugValue=function(){},xe.useDeferredValue=function(N,G){return Z.H.useDeferredValue(N,G)},xe.useEffect=function(N,G){return Z.H.useEffect(N,G)},xe.useEffectEvent=function(N){return Z.H.useEffectEvent(N)},xe.useId=function(){return Z.H.useId()},xe.useImperativeHandle=function(N,G,I){return Z.H.useImperativeHandle(N,G,I)},xe.useInsertionEffect=function(N,G){return Z.H.useInsertionEffect(N,G)},xe.useLayoutEffect=function(N,G){return Z.H.useLayoutEffect(N,G)},xe.useMemo=function(N,G){return Z.H.useMemo(N,G)},xe.useOptimistic=function(N,G){return Z.H.useOptimistic(N,G)},xe.useReducer=function(N,G,I){return Z.H.useReducer(N,G,I)},xe.useRef=function(N){return Z.H.useRef(N)},xe.useState=function(N){return Z.H.useState(N)},xe.useSyncExternalStore=function(N,G,I){return Z.H.useSyncExternalStore(N,G,I)},xe.useTransition=function(){return Z.H.useTransition()},xe.version="19.2.4",xe}var Fh;function As(){return Fh||(Fh=1,$c.exports=mb()),$c.exports}var x=As();const ul=Hv(x),Bv=sb({__proto__:null,default:ul},[x]);var Ic={exports:{}},Ai={},Pc={exports:{}},es={};/**
18
- * @license React
19
- * scheduler.production.js
20
- *
21
- * Copyright (c) Meta Platforms, Inc. and affiliates.
22
- *
23
- * This source code is licensed under the MIT license found in the
24
- * LICENSE file in the root directory of this source tree.
25
- */var Wh;function hb(){return Wh||(Wh=1,(function(a){function r(w,B){var k=w.length;w.push(B);e:for(;0<k;){var X=k-1>>>1,F=w[X];if(0<f(F,B))w[X]=B,w[k]=F,k=X;else break e}}function o(w){return w.length===0?null:w[0]}function c(w){if(w.length===0)return null;var B=w[0],k=w.pop();if(k!==B){w[0]=k;e:for(var X=0,F=w.length,N=F>>>1;X<N;){var G=2*(X+1)-1,I=w[G],ee=G+1,te=w[ee];if(0>f(I,k))ee<F&&0>f(te,I)?(w[X]=te,w[ee]=k,X=ee):(w[X]=I,w[G]=k,X=G);else if(ee<F&&0>f(te,k))w[X]=te,w[ee]=k,X=ee;else break e}}return B}function f(w,B){var k=w.sortIndex-B.sortIndex;return k!==0?k:w.id-B.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;a.unstable_now=function(){return m.now()}}else{var h=Date,v=h.now();a.unstable_now=function(){return h.now()-v}}var b=[],p=[],S=1,y=null,C=3,M=!1,R=!1,T=!1,z=!1,H=typeof setTimeout=="function"?setTimeout:null,J=typeof clearTimeout=="function"?clearTimeout:null,Y=typeof setImmediate<"u"?setImmediate:null;function U(w){for(var B=o(p);B!==null;){if(B.callback===null)c(p);else if(B.startTime<=w)c(p),B.sortIndex=B.expirationTime,r(b,B);else break;B=o(p)}}function $(w){if(T=!1,U(w),!R)if(o(b)!==null)R=!0,W||(W=!0,me());else{var B=o(p);B!==null&&ye($,B.startTime-w)}}var W=!1,Z=-1,K=5,ue=-1;function de(){return z?!0:!(a.unstable_now()-ue<K)}function ve(){if(z=!1,W){var w=a.unstable_now();ue=w;var B=!0;try{e:{R=!1,T&&(T=!1,J(Z),Z=-1),M=!0;var k=C;try{t:{for(U(w),y=o(b);y!==null&&!(y.expirationTime>w&&de());){var X=y.callback;if(typeof X=="function"){y.callback=null,C=y.priorityLevel;var F=X(y.expirationTime<=w);if(w=a.unstable_now(),typeof F=="function"){y.callback=F,U(w),B=!0;break t}y===o(b)&&c(b),U(w)}else c(b);y=o(b)}if(y!==null)B=!0;else{var N=o(p);N!==null&&ye($,N.startTime-w),B=!1}}break e}finally{y=null,C=k,M=!1}B=void 0}}finally{B?me():W=!1}}}var me;if(typeof Y=="function")me=function(){Y(ve)};else if(typeof MessageChannel<"u"){var ge=new MessageChannel,he=ge.port2;ge.port1.onmessage=ve,me=function(){he.postMessage(null)}}else me=function(){H(ve,0)};function ye(w,B){Z=H(function(){w(a.unstable_now())},B)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(w){w.callback=null},a.unstable_forceFrameRate=function(w){0>w||125<w?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):K=0<w?Math.floor(1e3/w):5},a.unstable_getCurrentPriorityLevel=function(){return C},a.unstable_next=function(w){switch(C){case 1:case 2:case 3:var B=3;break;default:B=C}var k=C;C=B;try{return w()}finally{C=k}},a.unstable_requestPaint=function(){z=!0},a.unstable_runWithPriority=function(w,B){switch(w){case 1:case 2:case 3:case 4:case 5:break;default:w=3}var k=C;C=w;try{return B()}finally{C=k}},a.unstable_scheduleCallback=function(w,B,k){var X=a.unstable_now();switch(typeof k=="object"&&k!==null?(k=k.delay,k=typeof k=="number"&&0<k?X+k:X):k=X,w){case 1:var F=-1;break;case 2:F=250;break;case 5:F=1073741823;break;case 4:F=1e4;break;default:F=5e3}return F=k+F,w={id:S++,callback:B,priorityLevel:w,startTime:k,expirationTime:F,sortIndex:-1},k>X?(w.sortIndex=k,r(p,w),o(b)===null&&w===o(p)&&(T?(J(Z),Z=-1):T=!0,ye($,k-X))):(w.sortIndex=F,r(b,w),R||M||(R=!0,W||(W=!0,me()))),w},a.unstable_shouldYield=de,a.unstable_wrapCallback=function(w){var B=C;return function(){var k=C;C=B;try{return w.apply(this,arguments)}finally{C=k}}}})(es)),es}var $h;function vb(){return $h||($h=1,Pc.exports=hb()),Pc.exports}var ts={exports:{}},st={};/**
26
- * @license React
27
- * react-dom.production.js
28
- *
29
- * Copyright (c) Meta Platforms, Inc. and affiliates.
30
- *
31
- * This source code is licensed under the MIT license found in the
32
- * LICENSE file in the root directory of this source tree.
33
- */var Ih;function pb(){if(Ih)return st;Ih=1;var a=As();function r(b){var p="https://react.dev/errors/"+b;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var S=2;S<arguments.length;S++)p+="&args[]="+encodeURIComponent(arguments[S])}return"Minified React error #"+b+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var c={d:{f:o,r:function(){throw Error(r(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},f=Symbol.for("react.portal");function m(b,p,S){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:f,key:y==null?null:""+y,children:b,containerInfo:p,implementation:S}}var h=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function v(b,p){if(b==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return st.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,st.createPortal=function(b,p){var S=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(r(299));return m(b,p,null,S)},st.flushSync=function(b){var p=h.T,S=c.p;try{if(h.T=null,c.p=2,b)return b()}finally{h.T=p,c.p=S,c.d.f()}},st.preconnect=function(b,p){typeof b=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,c.d.C(b,p))},st.prefetchDNS=function(b){typeof b=="string"&&c.d.D(b)},st.preinit=function(b,p){if(typeof b=="string"&&p&&typeof p.as=="string"){var S=p.as,y=v(S,p.crossOrigin),C=typeof p.integrity=="string"?p.integrity:void 0,M=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;S==="style"?c.d.S(b,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:y,integrity:C,fetchPriority:M}):S==="script"&&c.d.X(b,{crossOrigin:y,integrity:C,fetchPriority:M,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},st.preinitModule=function(b,p){if(typeof b=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var S=v(p.as,p.crossOrigin);c.d.M(b,{crossOrigin:S,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&c.d.M(b)},st.preload=function(b,p){if(typeof b=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var S=p.as,y=v(S,p.crossOrigin);c.d.L(b,S,{crossOrigin:y,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})}},st.preloadModule=function(b,p){if(typeof b=="string")if(p){var S=v(p.as,p.crossOrigin);c.d.m(b,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:S,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else c.d.m(b)},st.requestFormReset=function(b){c.d.r(b)},st.unstable_batchedUpdates=function(b,p){return b(p)},st.useFormState=function(b,p,S){return h.H.useFormState(b,p,S)},st.useFormStatus=function(){return h.H.useHostTransitionStatus()},st.version="19.2.4",st}var Ph;function Gv(){if(Ph)return ts.exports;Ph=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(r){console.error(r)}}return a(),ts.exports=pb(),ts.exports}/**
34
- * @license React
35
- * react-dom-client.production.js
36
- *
37
- * Copyright (c) Meta Platforms, Inc. and affiliates.
38
- *
39
- * This source code is licensed under the MIT license found in the
40
- * LICENSE file in the root directory of this source tree.
41
- */var ev;function gb(){if(ev)return Ai;ev=1;var a=vb(),r=As(),o=Gv();function c(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 f(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function m(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function v(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 b(e){if(m(e)!==e)throw Error(c(188))}function p(e){var t=e.alternate;if(!t){if(t=m(e),t===null)throw Error(c(188));return t!==e?null:e}for(var n=e,l=t;;){var i=n.return;if(i===null)break;var u=i.alternate;if(u===null){if(l=i.return,l!==null){n=l;continue}break}if(i.child===u.child){for(u=i.child;u;){if(u===n)return b(i),e;if(u===l)return b(i),t;u=u.sibling}throw Error(c(188))}if(n.return!==l.return)n=i,l=u;else{for(var s=!1,g=i.child;g;){if(g===n){s=!0,n=i,l=u;break}if(g===l){s=!0,l=i,n=u;break}g=g.sibling}if(!s){for(g=u.child;g;){if(g===n){s=!0,n=u,l=i;break}if(g===l){s=!0,l=u,n=i;break}g=g.sibling}if(!s)throw Error(c(189))}}if(n.alternate!==l)throw Error(c(190))}if(n.tag!==3)throw Error(c(188));return n.stateNode.current===n?e:t}function S(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=S(e),t!==null)return t;e=e.sibling}return null}var y=Object.assign,C=Symbol.for("react.element"),M=Symbol.for("react.transitional.element"),R=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),z=Symbol.for("react.strict_mode"),H=Symbol.for("react.profiler"),J=Symbol.for("react.consumer"),Y=Symbol.for("react.context"),U=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),W=Symbol.for("react.suspense_list"),Z=Symbol.for("react.memo"),K=Symbol.for("react.lazy"),ue=Symbol.for("react.activity"),de=Symbol.for("react.memo_cache_sentinel"),ve=Symbol.iterator;function me(e){return e===null||typeof e!="object"?null:(e=ve&&e[ve]||e["@@iterator"],typeof e=="function"?e:null)}var ge=Symbol.for("react.client.reference");function he(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 T:return"Fragment";case H:return"Profiler";case z:return"StrictMode";case $:return"Suspense";case W:return"SuspenseList";case ue:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case R:return"Portal";case Y:return e.displayName||"Context";case J:return(e._context.displayName||"Context")+".Consumer";case U:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Z:return t=e.displayName||null,t!==null?t:he(e.type)||"Memo";case K:t=e._payload,e=e._init;try{return he(e(t))}catch{}}return null}var ye=Array.isArray,w=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,k={pending:!1,data:null,method:null,action:null},X=[],F=-1;function N(e){return{current:e}}function G(e){0>F||(e.current=X[F],X[F]=null,F--)}function I(e,t){F++,X[F]=e.current,e.current=t}var ee=N(null),te=N(null),ae=N(null),pe=N(null);function Ge(e,t){switch(I(ae,t),I(te,e),I(ee,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?vh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=vh(t),e=ph(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}G(ee),I(ee,e)}function ce(){G(ee),G(te),G(ae)}function ct(e){e.memoizedState!==null&&I(pe,e);var t=ee.current,n=ph(t,e.type);t!==n&&(I(te,e),I(ee,n))}function re(e){te.current===e&&(G(ee),G(te)),pe.current===e&&(G(pe),Si._currentValue=k)}var P,be;function ze(e){if(P===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);P=t&&t[1]||"",be=-1<n.stack.indexOf(`
42
- at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+P+e+be}var dl=!1;function Oa(e,t){if(!e||dl)return"";dl=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var Q=function(){throw Error()};if(Object.defineProperty(Q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Q,[])}catch(L){var D=L}Reflect.construct(e,[],Q)}else{try{Q.call()}catch(L){D=L}e.call(Q.prototype)}}else{try{throw Error()}catch(L){D=L}(Q=e())&&typeof Q.catch=="function"&&Q.catch(function(){})}}catch(L){if(L&&D&&typeof L.stack=="string")return[L.stack,D.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=l.DetermineComponentFrameRoot(),s=u[0],g=u[1];if(s&&g){var E=s.split(`
44
- `),O=g.split(`
45
- `);for(i=l=0;l<E.length&&!E[l].includes("DetermineComponentFrameRoot");)l++;for(;i<O.length&&!O[i].includes("DetermineComponentFrameRoot");)i++;if(l===E.length||i===O.length)for(l=E.length-1,i=O.length-1;1<=l&&0<=i&&E[l]!==O[i];)i--;for(;1<=l&&0<=i;l--,i--)if(E[l]!==O[i]){if(l!==1||i!==1)do if(l--,i--,0>i||E[l]!==O[i]){var q=`
46
- `+E[l].replace(" at new "," at ");return e.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",e.displayName)),q}while(1<=l&&0<=i);break}}}finally{dl=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?ze(n):""}function Dr(e,t){switch(e.tag){case 26:case 27:case 5:return ze(e.type);case 16:return ze("Lazy");case 13:return e.child!==t&&t!==null?ze("Suspense Fallback"):ze("Suspense");case 19:return ze("SuspenseList");case 0:case 15:return Oa(e.type,!1);case 11:return Oa(e.type.render,!1);case 1:return Oa(e.type,!0);case 31:return ze("Activity");default:return""}}function Gi(e){try{var t="",n=null;do t+=Dr(e,n),n=e,e=e.return;while(e);return t}catch(l){return`
47
- Error generating stack: `+l.message+`
48
- `+l.stack}}var On=Object.prototype.hasOwnProperty,Ur=a.unstable_scheduleCallback,Lr=a.unstable_cancelCallback,Yg=a.unstable_shouldYield,Xg=a.unstable_requestPaint,wt=a.unstable_now,Vg=a.unstable_getCurrentPriorityLevel,Zs=a.unstable_ImmediatePriority,Ks=a.unstable_UserBlockingPriority,qi=a.unstable_NormalPriority,Qg=a.unstable_LowPriority,Js=a.unstable_IdlePriority,Zg=a.log,Kg=a.unstable_setDisableYieldValue,Ra=null,Nt=null;function Rn(e){if(typeof Zg=="function"&&Kg(e),Nt&&typeof Nt.setStrictMode=="function")try{Nt.setStrictMode(Ra,e)}catch{}}var At=Math.clz32?Math.clz32:Wg,Jg=Math.log,Fg=Math.LN2;function Wg(e){return e>>>=0,e===0?32:31-(Jg(e)/Fg|0)|0}var Yi=256,Xi=262144,Vi=4194304;function ml(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 Qi(e,t,n){var l=e.pendingLanes;if(l===0)return 0;var i=0,u=e.suspendedLanes,s=e.pingedLanes;e=e.warmLanes;var g=l&134217727;return g!==0?(l=g&~u,l!==0?i=ml(l):(s&=g,s!==0?i=ml(s):n||(n=g&~e,n!==0&&(i=ml(n))))):(g=l&~u,g!==0?i=ml(g):s!==0?i=ml(s):n||(n=l&~e,n!==0&&(i=ml(n)))),i===0?0:t!==0&&t!==i&&(t&u)===0&&(u=i&-i,n=t&-t,u>=n||u===32&&(n&4194048)!==0)?t:i}function Da(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function $g(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 Fs(){var e=Vi;return Vi<<=1,(Vi&62914560)===0&&(Vi=4194304),e}function kr(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ua(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ig(e,t,n,l,i,u){var s=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 g=e.entanglements,E=e.expirationTimes,O=e.hiddenUpdates;for(n=s&~n;0<n;){var q=31-At(n),Q=1<<q;g[q]=0,E[q]=-1;var D=O[q];if(D!==null)for(O[q]=null,q=0;q<D.length;q++){var L=D[q];L!==null&&(L.lane&=-536870913)}n&=~Q}l!==0&&Ws(e,l,0),u!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=u&~(s&~t))}function Ws(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-At(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|n&261930}function $s(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var l=31-At(n),i=1<<l;i&t|e[l]&t&&(e[l]|=t),n&=~i}}function Is(e,t){var n=t&-t;return n=(n&42)!==0?1:Hr(n),(n&(e.suspendedLanes|t))!==0?0:n}function Hr(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 Br(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Ps(){var e=B.p;return e!==0?e:(e=window.event,e===void 0?32:Bh(e.type))}function ef(e,t){var n=B.p;try{return B.p=e,t()}finally{B.p=n}}var Dn=Math.random().toString(36).slice(2),at="__reactFiber$"+Dn,vt="__reactProps$"+Dn,Gl="__reactContainer$"+Dn,Gr="__reactEvents$"+Dn,Pg="__reactListeners$"+Dn,ey="__reactHandles$"+Dn,tf="__reactResources$"+Dn,La="__reactMarker$"+Dn;function qr(e){delete e[at],delete e[vt],delete e[Gr],delete e[Pg],delete e[ey]}function ql(e){var t=e[at];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Gl]||n[at]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Ch(e);e!==null;){if(n=e[at])return n;e=Ch(e)}return t}e=n,n=e.parentNode}return null}function Yl(e){if(e=e[at]||e[Gl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ka(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(c(33))}function Xl(e){var t=e[tf];return t||(t=e[tf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function nt(e){e[La]=!0}var nf=new Set,lf={};function hl(e,t){Vl(e,t),Vl(e+"Capture",t)}function Vl(e,t){for(lf[e]=t,e=0;e<t.length;e++)nf.add(t[e])}var ty=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]*$"),af={},uf={};function ny(e){return On.call(uf,e)?!0:On.call(af,e)?!1:ty.test(e)?uf[e]=!0:(af[e]=!0,!1)}function Zi(e,t,n){if(ny(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Ki(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 cn(e,t,n,l){if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+l)}}function Lt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function rf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ly(e,t,n){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var i=l.get,u=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){n=""+s,u.call(this,s)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(s){n=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Yr(e){if(!e._valueTracker){var t=rf(e)?"checked":"value";e._valueTracker=ly(e,t,""+e[t])}}function of(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),l="";return e&&(l=rf(e)?e.checked?"true":"false":e.value),e=l,e!==n?(t.setValue(e),!0):!1}function Ji(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 ay=/[\n"\\]/g;function kt(e){return e.replace(ay,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Xr(e,t,n,l,i,u,s,g){e.name="",s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?e.type=s:e.removeAttribute("type"),t!=null?s==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Lt(t)):e.value!==""+Lt(t)&&(e.value=""+Lt(t)):s!=="submit"&&s!=="reset"||e.removeAttribute("value"),t!=null?Vr(e,s,Lt(t)):n!=null?Vr(e,s,Lt(n)):l!=null&&e.removeAttribute("value"),i==null&&u!=null&&(e.defaultChecked=!!u),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.name=""+Lt(g):e.removeAttribute("name")}function cf(e,t,n,l,i,u,s,g){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||n!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){Yr(e);return}n=n!=null?""+Lt(n):"",t=t!=null?""+Lt(t):n,g||t===e.value||(e.value=t),e.defaultValue=t}l=l??i,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=g?e.checked:!!l,e.defaultChecked=!!l,s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.name=s),Yr(e)}function Vr(e,t,n){t==="number"&&Ji(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Ql(e,t,n,l){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&l&&(e[n].defaultSelected=!0)}else{for(n=""+Lt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,l&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function sf(e,t,n){if(t!=null&&(t=""+Lt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Lt(n):""}function ff(e,t,n,l){if(t==null){if(l!=null){if(n!=null)throw Error(c(92));if(ye(l)){if(1<l.length)throw Error(c(93));l=l[0]}n=l}n==null&&(n=""),t=n}n=Lt(t),e.defaultValue=n,l=e.textContent,l===n&&l!==""&&l!==null&&(e.value=l),Yr(e)}function Zl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var iy=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 df(e,t,n){var l=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,n):typeof n!="number"||n===0||iy.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function mf(e,t,n){if(t!=null&&typeof t!="object")throw Error(c(62));if(e=e.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var i in t)l=t[i],t.hasOwnProperty(i)&&n[i]!==l&&df(e,i,l)}else for(var u in t)t.hasOwnProperty(u)&&df(e,u,t[u])}function Qr(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 uy=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"]]),ry=/^[\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 Fi(e){return ry.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function sn(){}var Zr=null;function Kr(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Kl=null,Jl=null;function hf(e){var t=Yl(e);if(t&&(e=t.stateNode)){var n=e[vt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Xr(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="'+kt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var l=n[t];if(l!==e&&l.form===e.form){var i=l[vt]||null;if(!i)throw Error(c(90));Xr(l,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)l=n[t],l.form===e.form&&of(l)}break e;case"textarea":sf(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Ql(e,!!n.multiple,t,!1)}}}var Jr=!1;function vf(e,t,n){if(Jr)return e(t,n);Jr=!0;try{var l=e(t);return l}finally{if(Jr=!1,(Kl!==null||Jl!==null)&&(Lu(),Kl&&(t=Kl,e=Jl,Jl=Kl=null,hf(t),e)))for(t=0;t<e.length;t++)hf(e[t])}}function Ha(e,t){var n=e.stateNode;if(n===null)return null;var l=n[vt]||null;if(l===null)return null;n=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(c(231,t,typeof n));return n}var fn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Fr=!1;if(fn)try{var Ba={};Object.defineProperty(Ba,"passive",{get:function(){Fr=!0}}),window.addEventListener("test",Ba,Ba),window.removeEventListener("test",Ba,Ba)}catch{Fr=!1}var Un=null,Wr=null,Wi=null;function pf(){if(Wi)return Wi;var e,t=Wr,n=t.length,l,i="value"in Un?Un.value:Un.textContent,u=i.length;for(e=0;e<n&&t[e]===i[e];e++);var s=n-e;for(l=1;l<=s&&t[n-l]===i[u-l];l++);return Wi=i.slice(e,1<l?1-l:void 0)}function $i(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 Ii(){return!0}function gf(){return!1}function pt(e){function t(n,l,i,u,s){this._reactName=n,this._targetInst=i,this.type=l,this.nativeEvent=u,this.target=s,this.currentTarget=null;for(var g in e)e.hasOwnProperty(g)&&(n=e[g],this[g]=n?n(u):u[g]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Ii:gf,this.isPropagationStopped=gf,this}return y(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Ii)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ii)},persist:function(){},isPersistent:Ii}),t}var vl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Pi=pt(vl),Ga=y({},vl,{view:0,detail:0}),oy=pt(Ga),$r,Ir,qa,eu=y({},Ga,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:eo,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!==qa&&(qa&&e.type==="mousemove"?($r=e.screenX-qa.screenX,Ir=e.screenY-qa.screenY):Ir=$r=0,qa=e),$r)},movementY:function(e){return"movementY"in e?e.movementY:Ir}}),yf=pt(eu),cy=y({},eu,{dataTransfer:0}),sy=pt(cy),fy=y({},Ga,{relatedTarget:0}),Pr=pt(fy),dy=y({},vl,{animationName:0,elapsedTime:0,pseudoElement:0}),my=pt(dy),hy=y({},vl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),vy=pt(hy),py=y({},vl,{data:0}),bf=pt(py),gy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},yy={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"},by={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function xy(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=by[e])?!!t[e]:!1}function eo(){return xy}var Sy=y({},Ga,{key:function(e){if(e.key){var t=gy[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=$i(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?yy[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:eo,charCode:function(e){return e.type==="keypress"?$i(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?$i(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Ey=pt(Sy),Cy=y({},eu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),xf=pt(Cy),wy=y({},Ga,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:eo}),Ny=pt(wy),Ay=y({},vl,{propertyName:0,elapsedTime:0,pseudoElement:0}),My=pt(Ay),Ty=y({},eu,{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}),jy=pt(Ty),zy=y({},vl,{newState:0,oldState:0}),_y=pt(zy),Oy=[9,13,27,32],to=fn&&"CompositionEvent"in window,Ya=null;fn&&"documentMode"in document&&(Ya=document.documentMode);var Ry=fn&&"TextEvent"in window&&!Ya,Sf=fn&&(!to||Ya&&8<Ya&&11>=Ya),Ef=" ",Cf=!1;function wf(e,t){switch(e){case"keyup":return Oy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Nf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Fl=!1;function Dy(e,t){switch(e){case"compositionend":return Nf(t);case"keypress":return t.which!==32?null:(Cf=!0,Ef);case"textInput":return e=t.data,e===Ef&&Cf?null:e;default:return null}}function Uy(e,t){if(Fl)return e==="compositionend"||!to&&wf(e,t)?(e=pf(),Wi=Wr=Un=null,Fl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Sf&&t.locale!=="ko"?null:t.data;default:return null}}var Ly={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 Af(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Ly[e.type]:t==="textarea"}function Mf(e,t,n,l){Kl?Jl?Jl.push(l):Jl=[l]:Kl=l,t=Xu(t,"onChange"),0<t.length&&(n=new Pi("onChange","change",null,n,l),e.push({event:n,listeners:t}))}var Xa=null,Va=null;function ky(e){ch(e,0)}function tu(e){var t=ka(e);if(of(t))return e}function Tf(e,t){if(e==="change")return t}var jf=!1;if(fn){var no;if(fn){var lo="oninput"in document;if(!lo){var zf=document.createElement("div");zf.setAttribute("oninput","return;"),lo=typeof zf.oninput=="function"}no=lo}else no=!1;jf=no&&(!document.documentMode||9<document.documentMode)}function _f(){Xa&&(Xa.detachEvent("onpropertychange",Of),Va=Xa=null)}function Of(e){if(e.propertyName==="value"&&tu(Va)){var t=[];Mf(t,Va,e,Kr(e)),vf(ky,t)}}function Hy(e,t,n){e==="focusin"?(_f(),Xa=t,Va=n,Xa.attachEvent("onpropertychange",Of)):e==="focusout"&&_f()}function By(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return tu(Va)}function Gy(e,t){if(e==="click")return tu(t)}function qy(e,t){if(e==="input"||e==="change")return tu(t)}function Yy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Mt=typeof Object.is=="function"?Object.is:Yy;function Qa(e,t){if(Mt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),l=Object.keys(t);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var i=n[l];if(!On.call(t,i)||!Mt(e[i],t[i]))return!1}return!0}function Rf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Df(e,t){var n=Rf(e);e=0;for(var l;n;){if(n.nodeType===3){if(l=e+n.textContent.length,e<=t&&l>=t)return{node:n,offset:t-e};e=l}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Rf(n)}}function Uf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Uf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Lf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ji(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=Ji(e.document)}return t}function ao(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 Xy=fn&&"documentMode"in document&&11>=document.documentMode,Wl=null,io=null,Za=null,uo=!1;function kf(e,t,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;uo||Wl==null||Wl!==Ji(l)||(l=Wl,"selectionStart"in l&&ao(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Za&&Qa(Za,l)||(Za=l,l=Xu(io,"onSelect"),0<l.length&&(t=new Pi("onSelect","select",null,t,n),e.push({event:t,listeners:l}),t.target=Wl)))}function pl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var $l={animationend:pl("Animation","AnimationEnd"),animationiteration:pl("Animation","AnimationIteration"),animationstart:pl("Animation","AnimationStart"),transitionrun:pl("Transition","TransitionRun"),transitionstart:pl("Transition","TransitionStart"),transitioncancel:pl("Transition","TransitionCancel"),transitionend:pl("Transition","TransitionEnd")},ro={},Hf={};fn&&(Hf=document.createElement("div").style,"AnimationEvent"in window||(delete $l.animationend.animation,delete $l.animationiteration.animation,delete $l.animationstart.animation),"TransitionEvent"in window||delete $l.transitionend.transition);function gl(e){if(ro[e])return ro[e];if(!$l[e])return e;var t=$l[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Hf)return ro[e]=t[n];return e}var Bf=gl("animationend"),Gf=gl("animationiteration"),qf=gl("animationstart"),Vy=gl("transitionrun"),Qy=gl("transitionstart"),Zy=gl("transitioncancel"),Yf=gl("transitionend"),Xf=new Map,oo="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(" ");oo.push("scrollEnd");function Kt(e,t){Xf.set(e,t),hl(t,[e])}var nu=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=[],Il=0,co=0;function lu(){for(var e=Il,t=co=Il=0;t<e;){var n=Ht[t];Ht[t++]=null;var l=Ht[t];Ht[t++]=null;var i=Ht[t];Ht[t++]=null;var u=Ht[t];if(Ht[t++]=null,l!==null&&i!==null){var s=l.pending;s===null?i.next=i:(i.next=s.next,s.next=i),l.pending=i}u!==0&&Vf(n,i,u)}}function au(e,t,n,l){Ht[Il++]=e,Ht[Il++]=t,Ht[Il++]=n,Ht[Il++]=l,co|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function so(e,t,n,l){return au(e,t,n,l),iu(e)}function yl(e,t){return au(e,null,null,t),iu(e)}function Vf(e,t,n){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n);for(var i=!1,u=e.return;u!==null;)u.childLanes|=n,l=u.alternate,l!==null&&(l.childLanes|=n),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(i=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,i&&t!==null&&(i=31-At(n),e=u.hiddenUpdates,l=e[i],l===null?e[i]=[t]:l.push(t),t.lane=n|536870912),u):null}function iu(e){if(50<hi)throw hi=0,xc=null,Error(c(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Pl={};function Ky(e,t,n,l){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Tt(e,t,n,l){return new Ky(e,t,n,l)}function fo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function dn(e,t){var n=e.alternate;return n===null?(n=Tt(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 Qf(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 uu(e,t,n,l,i,u){var s=0;if(l=e,typeof e=="function")fo(e)&&(s=1);else if(typeof e=="string")s=I0(e,n,ee.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ue:return e=Tt(31,n,t,i),e.elementType=ue,e.lanes=u,e;case T:return bl(n.children,i,u,t);case z:s=8,i|=24;break;case H:return e=Tt(12,n,t,i|2),e.elementType=H,e.lanes=u,e;case $:return e=Tt(13,n,t,i),e.elementType=$,e.lanes=u,e;case W:return e=Tt(19,n,t,i),e.elementType=W,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Y:s=10;break e;case J:s=9;break e;case U:s=11;break e;case Z:s=14;break e;case K:s=16,l=null;break e}s=29,n=Error(c(130,e===null?"null":typeof e,"")),l=null}return t=Tt(s,n,t,i),t.elementType=e,t.type=l,t.lanes=u,t}function bl(e,t,n,l){return e=Tt(7,e,l,t),e.lanes=n,e}function mo(e,t,n){return e=Tt(6,e,null,t),e.lanes=n,e}function Zf(e){var t=Tt(18,null,null,0);return t.stateNode=e,t}function ho(e,t,n){return t=Tt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Kf=new WeakMap;function Bt(e,t){if(typeof e=="object"&&e!==null){var n=Kf.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Gi(t)},Kf.set(e,t),t)}return{value:e,source:t,stack:Gi(t)}}var ea=[],ta=0,ru=null,Ka=0,Gt=[],qt=0,Ln=null,Pt=1,en="";function mn(e,t){ea[ta++]=Ka,ea[ta++]=ru,ru=e,Ka=t}function Jf(e,t,n){Gt[qt++]=Pt,Gt[qt++]=en,Gt[qt++]=Ln,Ln=e;var l=Pt;e=en;var i=32-At(l)-1;l&=~(1<<i),n+=1;var u=32-At(t)+i;if(30<u){var s=i-i%5;u=(l&(1<<s)-1).toString(32),l>>=s,i-=s,Pt=1<<32-At(t)+i|n<<i|l,en=u+e}else Pt=1<<u|n<<i|l,en=e}function vo(e){e.return!==null&&(mn(e,1),Jf(e,1,0))}function po(e){for(;e===ru;)ru=ea[--ta],ea[ta]=null,Ka=ea[--ta],ea[ta]=null;for(;e===Ln;)Ln=Gt[--qt],Gt[qt]=null,en=Gt[--qt],Gt[qt]=null,Pt=Gt[--qt],Gt[qt]=null}function Ff(e,t){Gt[qt++]=Pt,Gt[qt++]=en,Gt[qt++]=Ln,Pt=t.id,en=t.overflow,Ln=e}var it=null,qe=null,Te=!1,kn=null,Yt=!1,go=Error(c(519));function Hn(e){var t=Error(c(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ja(Bt(t,e)),go}function Wf(e){var t=e.stateNode,n=e.type,l=e.memoizedProps;switch(t[at]=e,t[vt]=l,n){case"dialog":Ne("cancel",t),Ne("close",t);break;case"iframe":case"object":case"embed":Ne("load",t);break;case"video":case"audio":for(n=0;n<pi.length;n++)Ne(pi[n],t);break;case"source":Ne("error",t);break;case"img":case"image":case"link":Ne("error",t),Ne("load",t);break;case"details":Ne("toggle",t);break;case"input":Ne("invalid",t),cf(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":Ne("invalid",t);break;case"textarea":Ne("invalid",t),ff(t,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||l.suppressHydrationWarning===!0||mh(t.textContent,n)?(l.popover!=null&&(Ne("beforetoggle",t),Ne("toggle",t)),l.onScroll!=null&&Ne("scroll",t),l.onScrollEnd!=null&&Ne("scrollend",t),l.onClick!=null&&(t.onclick=sn),t=!0):t=!1,t||Hn(e,!0)}function $f(e){for(it=e.return;it;)switch(it.tag){case 5:case 31:case 13:Yt=!1;return;case 27:case 3:Yt=!0;return;default:it=it.return}}function na(e){if(e!==it)return!1;if(!Te)return $f(e),Te=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Uc(e.type,e.memoizedProps)),n=!n),n&&qe&&Hn(e),$f(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));qe=Eh(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));qe=Eh(e)}else t===27?(t=qe,In(e.type)?(e=Gc,Gc=null,qe=e):qe=t):qe=it?Vt(e.stateNode.nextSibling):null;return!0}function xl(){qe=it=null,Te=!1}function yo(){var e=kn;return e!==null&&(xt===null?xt=e:xt.push.apply(xt,e),kn=null),e}function Ja(e){kn===null?kn=[e]:kn.push(e)}var bo=N(null),Sl=null,hn=null;function Bn(e,t,n){I(bo,t._currentValue),t._currentValue=n}function vn(e){e._currentValue=bo.current,G(bo)}function xo(e,t,n){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===n)break;e=e.return}}function So(e,t,n,l){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var u=i.dependencies;if(u!==null){var s=i.child;u=u.firstContext;e:for(;u!==null;){var g=u;u=i;for(var E=0;E<t.length;E++)if(g.context===t[E]){u.lanes|=n,g=u.alternate,g!==null&&(g.lanes|=n),xo(u.return,n,e),l||(s=null);break e}u=g.next}}else if(i.tag===18){if(s=i.return,s===null)throw Error(c(341));s.lanes|=n,u=s.alternate,u!==null&&(u.lanes|=n),xo(s,n,e),s=null}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===e){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}}function la(e,t,n,l){e=null;for(var i=t,u=!1;i!==null;){if(!u){if((i.flags&524288)!==0)u=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var s=i.alternate;if(s===null)throw Error(c(387));if(s=s.memoizedProps,s!==null){var g=i.type;Mt(i.pendingProps.value,s.value)||(e!==null?e.push(g):e=[g])}}else if(i===pe.current){if(s=i.alternate,s===null)throw Error(c(387));s.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(Si):e=[Si])}i=i.return}e!==null&&So(t,e,n,l),t.flags|=262144}function ou(e){for(e=e.firstContext;e!==null;){if(!Mt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function El(e){Sl=e,hn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ut(e){return If(Sl,e)}function cu(e,t){return Sl===null&&El(e),If(e,t)}function If(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},hn===null){if(e===null)throw Error(c(308));hn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else hn=hn.next=t;return n}var Jy=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},Fy=a.unstable_scheduleCallback,Wy=a.unstable_NormalPriority,We={$$typeof:Y,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Eo(){return{controller:new Jy,data:new Map,refCount:0}}function Fa(e){e.refCount--,e.refCount===0&&Fy(Wy,function(){e.controller.abort()})}var Wa=null,Co=0,aa=0,ia=null;function $y(e,t){if(Wa===null){var n=Wa=[];Co=0,aa=Ac(),ia={status:"pending",value:void 0,then:function(l){n.push(l)}}}return Co++,t.then(Pf,Pf),t}function Pf(){if(--Co===0&&Wa!==null){ia!==null&&(ia.status="fulfilled");var e=Wa;Wa=null,aa=0,ia=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Iy(e,t){var n=[],l={status:"pending",value:null,reason:null,then:function(i){n.push(i)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var i=0;i<n.length;i++)(0,n[i])(t)},function(i){for(l.status="rejected",l.reason=i,i=0;i<n.length;i++)(0,n[i])(void 0)}),l}var ed=w.S;w.S=function(e,t){km=wt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&$y(e,t),ed!==null&&ed(e,t)};var Cl=N(null);function wo(){var e=Cl.current;return e!==null?e:Be.pooledCache}function su(e,t){t===null?I(Cl,Cl.current):I(Cl,t.pool)}function td(){var e=wo();return e===null?null:{parent:We._currentValue,pool:e}}var ua=Error(c(460)),No=Error(c(474)),fu=Error(c(542)),du={then:function(){}};function nd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function ld(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(sn,sn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,id(e),e;default:if(typeof t.status=="string")t.then(sn,sn);else{if(e=Be,e!==null&&100<e.shellSuspendCounter)throw Error(c(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=l}},function(l){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,id(e),e}throw Nl=t,ua}}function wl(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Nl=n,ua):n}}var Nl=null;function ad(){if(Nl===null)throw Error(c(459));var e=Nl;return Nl=null,e}function id(e){if(e===ua||e===fu)throw Error(c(483))}var ra=null,$a=0;function mu(e){var t=$a;return $a+=1,ra===null&&(ra=[]),ld(ra,e,t)}function Ia(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function hu(e,t){throw t.$$typeof===C?Error(c(525)):(e=Object.prototype.toString.call(t),Error(c(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function ud(e){function t(j,A){if(e){var _=j.deletions;_===null?(j.deletions=[A],j.flags|=16):_.push(A)}}function n(j,A){if(!e)return null;for(;A!==null;)t(j,A),A=A.sibling;return null}function l(j){for(var A=new Map;j!==null;)j.key!==null?A.set(j.key,j):A.set(j.index,j),j=j.sibling;return A}function i(j,A){return j=dn(j,A),j.index=0,j.sibling=null,j}function u(j,A,_){return j.index=_,e?(_=j.alternate,_!==null?(_=_.index,_<A?(j.flags|=67108866,A):_):(j.flags|=67108866,A)):(j.flags|=1048576,A)}function s(j){return e&&j.alternate===null&&(j.flags|=67108866),j}function g(j,A,_,V){return A===null||A.tag!==6?(A=mo(_,j.mode,V),A.return=j,A):(A=i(A,_),A.return=j,A)}function E(j,A,_,V){var se=_.type;return se===T?q(j,A,_.props.children,V,_.key):A!==null&&(A.elementType===se||typeof se=="object"&&se!==null&&se.$$typeof===K&&wl(se)===A.type)?(A=i(A,_.props),Ia(A,_),A.return=j,A):(A=uu(_.type,_.key,_.props,null,j.mode,V),Ia(A,_),A.return=j,A)}function O(j,A,_,V){return A===null||A.tag!==4||A.stateNode.containerInfo!==_.containerInfo||A.stateNode.implementation!==_.implementation?(A=ho(_,j.mode,V),A.return=j,A):(A=i(A,_.children||[]),A.return=j,A)}function q(j,A,_,V,se){return A===null||A.tag!==7?(A=bl(_,j.mode,V,se),A.return=j,A):(A=i(A,_),A.return=j,A)}function Q(j,A,_){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=mo(""+A,j.mode,_),A.return=j,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case M:return _=uu(A.type,A.key,A.props,null,j.mode,_),Ia(_,A),_.return=j,_;case R:return A=ho(A,j.mode,_),A.return=j,A;case K:return A=wl(A),Q(j,A,_)}if(ye(A)||me(A))return A=bl(A,j.mode,_,null),A.return=j,A;if(typeof A.then=="function")return Q(j,mu(A),_);if(A.$$typeof===Y)return Q(j,cu(j,A),_);hu(j,A)}return null}function D(j,A,_,V){var se=A!==null?A.key:null;if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return se!==null?null:g(j,A,""+_,V);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case M:return _.key===se?E(j,A,_,V):null;case R:return _.key===se?O(j,A,_,V):null;case K:return _=wl(_),D(j,A,_,V)}if(ye(_)||me(_))return se!==null?null:q(j,A,_,V,null);if(typeof _.then=="function")return D(j,A,mu(_),V);if(_.$$typeof===Y)return D(j,A,cu(j,_),V);hu(j,_)}return null}function L(j,A,_,V,se){if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return j=j.get(_)||null,g(A,j,""+V,se);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case M:return j=j.get(V.key===null?_:V.key)||null,E(A,j,V,se);case R:return j=j.get(V.key===null?_:V.key)||null,O(A,j,V,se);case K:return V=wl(V),L(j,A,_,V,se)}if(ye(V)||me(V))return j=j.get(_)||null,q(A,j,V,se,null);if(typeof V.then=="function")return L(j,A,_,mu(V),se);if(V.$$typeof===Y)return L(j,A,_,cu(A,V),se);hu(A,V)}return null}function ne(j,A,_,V){for(var se=null,_e=null,oe=A,Ee=A=0,Me=null;oe!==null&&Ee<_.length;Ee++){oe.index>Ee?(Me=oe,oe=null):Me=oe.sibling;var Oe=D(j,oe,_[Ee],V);if(Oe===null){oe===null&&(oe=Me);break}e&&oe&&Oe.alternate===null&&t(j,oe),A=u(Oe,A,Ee),_e===null?se=Oe:_e.sibling=Oe,_e=Oe,oe=Me}if(Ee===_.length)return n(j,oe),Te&&mn(j,Ee),se;if(oe===null){for(;Ee<_.length;Ee++)oe=Q(j,_[Ee],V),oe!==null&&(A=u(oe,A,Ee),_e===null?se=oe:_e.sibling=oe,_e=oe);return Te&&mn(j,Ee),se}for(oe=l(oe);Ee<_.length;Ee++)Me=L(oe,j,Ee,_[Ee],V),Me!==null&&(e&&Me.alternate!==null&&oe.delete(Me.key===null?Ee:Me.key),A=u(Me,A,Ee),_e===null?se=Me:_e.sibling=Me,_e=Me);return e&&oe.forEach(function(ll){return t(j,ll)}),Te&&mn(j,Ee),se}function fe(j,A,_,V){if(_==null)throw Error(c(151));for(var se=null,_e=null,oe=A,Ee=A=0,Me=null,Oe=_.next();oe!==null&&!Oe.done;Ee++,Oe=_.next()){oe.index>Ee?(Me=oe,oe=null):Me=oe.sibling;var ll=D(j,oe,Oe.value,V);if(ll===null){oe===null&&(oe=Me);break}e&&oe&&ll.alternate===null&&t(j,oe),A=u(ll,A,Ee),_e===null?se=ll:_e.sibling=ll,_e=ll,oe=Me}if(Oe.done)return n(j,oe),Te&&mn(j,Ee),se;if(oe===null){for(;!Oe.done;Ee++,Oe=_.next())Oe=Q(j,Oe.value,V),Oe!==null&&(A=u(Oe,A,Ee),_e===null?se=Oe:_e.sibling=Oe,_e=Oe);return Te&&mn(j,Ee),se}for(oe=l(oe);!Oe.done;Ee++,Oe=_.next())Oe=L(oe,j,Ee,Oe.value,V),Oe!==null&&(e&&Oe.alternate!==null&&oe.delete(Oe.key===null?Ee:Oe.key),A=u(Oe,A,Ee),_e===null?se=Oe:_e.sibling=Oe,_e=Oe);return e&&oe.forEach(function(cb){return t(j,cb)}),Te&&mn(j,Ee),se}function He(j,A,_,V){if(typeof _=="object"&&_!==null&&_.type===T&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case M:e:{for(var se=_.key;A!==null;){if(A.key===se){if(se=_.type,se===T){if(A.tag===7){n(j,A.sibling),V=i(A,_.props.children),V.return=j,j=V;break e}}else if(A.elementType===se||typeof se=="object"&&se!==null&&se.$$typeof===K&&wl(se)===A.type){n(j,A.sibling),V=i(A,_.props),Ia(V,_),V.return=j,j=V;break e}n(j,A);break}else t(j,A);A=A.sibling}_.type===T?(V=bl(_.props.children,j.mode,V,_.key),V.return=j,j=V):(V=uu(_.type,_.key,_.props,null,j.mode,V),Ia(V,_),V.return=j,j=V)}return s(j);case R:e:{for(se=_.key;A!==null;){if(A.key===se)if(A.tag===4&&A.stateNode.containerInfo===_.containerInfo&&A.stateNode.implementation===_.implementation){n(j,A.sibling),V=i(A,_.children||[]),V.return=j,j=V;break e}else{n(j,A);break}else t(j,A);A=A.sibling}V=ho(_,j.mode,V),V.return=j,j=V}return s(j);case K:return _=wl(_),He(j,A,_,V)}if(ye(_))return ne(j,A,_,V);if(me(_)){if(se=me(_),typeof se!="function")throw Error(c(150));return _=se.call(_),fe(j,A,_,V)}if(typeof _.then=="function")return He(j,A,mu(_),V);if(_.$$typeof===Y)return He(j,A,cu(j,_),V);hu(j,_)}return typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint"?(_=""+_,A!==null&&A.tag===6?(n(j,A.sibling),V=i(A,_),V.return=j,j=V):(n(j,A),V=mo(_,j.mode,V),V.return=j,j=V),s(j)):n(j,A)}return function(j,A,_,V){try{$a=0;var se=He(j,A,_,V);return ra=null,se}catch(oe){if(oe===ua||oe===fu)throw oe;var _e=Tt(29,oe,null,j.mode);return _e.lanes=V,_e.return=j,_e}finally{}}}var Al=ud(!0),rd=ud(!1),Gn=!1;function Ao(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Mo(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 qn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Yn(e,t,n){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Re&2)!==0){var i=l.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),l.pending=t,t=iu(e),Vf(e,null,n),t}return au(e,l,t,n),iu(e)}function Pa(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,$s(e,n)}}function To(e,t){var n=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var i=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var s={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};u===null?i=u=s:u=u.next=s,n=n.next}while(n!==null);u===null?i=u=t:u=u.next=t}else i=u=t;n={baseState:l.baseState,firstBaseUpdate:i,lastBaseUpdate:u,shared:l.shared,callbacks:l.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var jo=!1;function ei(){if(jo){var e=ia;if(e!==null)throw e}}function ti(e,t,n,l){jo=!1;var i=e.updateQueue;Gn=!1;var u=i.firstBaseUpdate,s=i.lastBaseUpdate,g=i.shared.pending;if(g!==null){i.shared.pending=null;var E=g,O=E.next;E.next=null,s===null?u=O:s.next=O,s=E;var q=e.alternate;q!==null&&(q=q.updateQueue,g=q.lastBaseUpdate,g!==s&&(g===null?q.firstBaseUpdate=O:g.next=O,q.lastBaseUpdate=E))}if(u!==null){var Q=i.baseState;s=0,q=O=E=null,g=u;do{var D=g.lane&-536870913,L=D!==g.lane;if(L?(Ae&D)===D:(l&D)===D){D!==0&&D===aa&&(jo=!0),q!==null&&(q=q.next={lane:0,tag:g.tag,payload:g.payload,callback:null,next:null});e:{var ne=e,fe=g;D=t;var He=n;switch(fe.tag){case 1:if(ne=fe.payload,typeof ne=="function"){Q=ne.call(He,Q,D);break e}Q=ne;break e;case 3:ne.flags=ne.flags&-65537|128;case 0:if(ne=fe.payload,D=typeof ne=="function"?ne.call(He,Q,D):ne,D==null)break e;Q=y({},Q,D);break e;case 2:Gn=!0}}D=g.callback,D!==null&&(e.flags|=64,L&&(e.flags|=8192),L=i.callbacks,L===null?i.callbacks=[D]:L.push(D))}else L={lane:D,tag:g.tag,payload:g.payload,callback:g.callback,next:null},q===null?(O=q=L,E=Q):q=q.next=L,s|=D;if(g=g.next,g===null){if(g=i.shared.pending,g===null)break;L=g,g=L.next,L.next=null,i.lastBaseUpdate=L,i.shared.pending=null}}while(!0);q===null&&(E=Q),i.baseState=E,i.firstBaseUpdate=O,i.lastBaseUpdate=q,u===null&&(i.shared.lanes=0),Kn|=s,e.lanes=s,e.memoizedState=Q}}function od(e,t){if(typeof e!="function")throw Error(c(191,e));e.call(t)}function cd(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)od(n[e],t)}var oa=N(null),vu=N(0);function sd(e,t){e=wn,I(vu,e),I(oa,t),wn=e|t.baseLanes}function zo(){I(vu,wn),I(oa,oa.current)}function _o(){wn=vu.current,G(oa),G(vu)}var jt=N(null),Xt=null;function Xn(e){var t=e.alternate;I(Je,Je.current&1),I(jt,e),Xt===null&&(t===null||oa.current!==null||t.memoizedState!==null)&&(Xt=e)}function Oo(e){I(Je,Je.current),I(jt,e),Xt===null&&(Xt=e)}function fd(e){e.tag===22?(I(Je,Je.current),I(jt,e),Xt===null&&(Xt=e)):Vn()}function Vn(){I(Je,Je.current),I(jt,jt.current)}function zt(e){G(jt),Xt===e&&(Xt=null),G(Je)}var Je=N(0);function pu(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Hc(n)||Bc(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var pn=0,Se=null,Le=null,$e=null,gu=!1,ca=!1,Ml=!1,yu=0,ni=0,sa=null,Py=0;function Ze(){throw Error(c(321))}function Ro(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Mt(e[n],t[n]))return!1;return!0}function Do(e,t,n,l,i,u){return pn=u,Se=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,w.H=e===null||e.memoizedState===null?Jd:Fo,Ml=!1,u=n(l,i),Ml=!1,ca&&(u=md(t,n,l,i)),dd(e),u}function dd(e){w.H=ii;var t=Le!==null&&Le.next!==null;if(pn=0,$e=Le=Se=null,gu=!1,ni=0,sa=null,t)throw Error(c(300));e===null||Ie||(e=e.dependencies,e!==null&&ou(e)&&(Ie=!0))}function md(e,t,n,l){Se=e;var i=0;do{if(ca&&(sa=null),ni=0,ca=!1,25<=i)throw Error(c(301));if(i+=1,$e=Le=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}w.H=Fd,u=t(n,l)}while(ca);return u}function e0(){var e=w.H,t=e.useState()[0];return t=typeof t.then=="function"?li(t):t,e=e.useState()[0],(Le!==null?Le.memoizedState:null)!==e&&(Se.flags|=1024),t}function Uo(){var e=yu!==0;return yu=0,e}function Lo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function ko(e){if(gu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}gu=!1}pn=0,$e=Le=Se=null,ca=!1,ni=yu=0,sa=null}function dt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return $e===null?Se.memoizedState=$e=e:$e=$e.next=e,$e}function Fe(){if(Le===null){var e=Se.alternate;e=e!==null?e.memoizedState:null}else e=Le.next;var t=$e===null?Se.memoizedState:$e.next;if(t!==null)$e=t,Le=e;else{if(e===null)throw Se.alternate===null?Error(c(467)):Error(c(310));Le=e,e={memoizedState:Le.memoizedState,baseState:Le.baseState,baseQueue:Le.baseQueue,queue:Le.queue,next:null},$e===null?Se.memoizedState=$e=e:$e=$e.next=e}return $e}function bu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function li(e){var t=ni;return ni+=1,sa===null&&(sa=[]),e=ld(sa,e,t),t=Se,($e===null?t.memoizedState:$e.next)===null&&(t=t.alternate,w.H=t===null||t.memoizedState===null?Jd:Fo),e}function xu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return li(e);if(e.$$typeof===Y)return ut(e)}throw Error(c(438,String(e)))}function Ho(e){var t=null,n=Se.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var l=Se.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=bu(),Se.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),l=0;l<e;l++)n[l]=de;return t.index++,n}function gn(e,t){return typeof t=="function"?t(e):t}function Su(e){var t=Fe();return Bo(t,Le,e)}function Bo(e,t,n){var l=e.queue;if(l===null)throw Error(c(311));l.lastRenderedReducer=n;var i=e.baseQueue,u=l.pending;if(u!==null){if(i!==null){var s=i.next;i.next=u.next,u.next=s}t.baseQueue=i=u,l.pending=null}if(u=e.baseState,i===null)e.memoizedState=u;else{t=i.next;var g=s=null,E=null,O=t,q=!1;do{var Q=O.lane&-536870913;if(Q!==O.lane?(Ae&Q)===Q:(pn&Q)===Q){var D=O.revertLane;if(D===0)E!==null&&(E=E.next={lane:0,revertLane:0,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null}),Q===aa&&(q=!0);else if((pn&D)===D){O=O.next,D===aa&&(q=!0);continue}else Q={lane:0,revertLane:O.revertLane,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},E===null?(g=E=Q,s=u):E=E.next=Q,Se.lanes|=D,Kn|=D;Q=O.action,Ml&&n(u,Q),u=O.hasEagerState?O.eagerState:n(u,Q)}else D={lane:Q,revertLane:O.revertLane,gesture:O.gesture,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},E===null?(g=E=D,s=u):E=E.next=D,Se.lanes|=Q,Kn|=Q;O=O.next}while(O!==null&&O!==t);if(E===null?s=u:E.next=g,!Mt(u,e.memoizedState)&&(Ie=!0,q&&(n=ia,n!==null)))throw n;e.memoizedState=u,e.baseState=s,e.baseQueue=E,l.lastRenderedState=u}return i===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Go(e){var t=Fe(),n=t.queue;if(n===null)throw Error(c(311));n.lastRenderedReducer=e;var l=n.dispatch,i=n.pending,u=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do u=e(u,s.action),s=s.next;while(s!==i);Mt(u,t.memoizedState)||(Ie=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),n.lastRenderedState=u}return[u,l]}function hd(e,t,n){var l=Se,i=Fe(),u=Te;if(u){if(n===void 0)throw Error(c(407));n=n()}else n=t();var s=!Mt((Le||i).memoizedState,n);if(s&&(i.memoizedState=n,Ie=!0),i=i.queue,Xo(gd.bind(null,l,i,e),[e]),i.getSnapshot!==t||s||$e!==null&&$e.memoizedState.tag&1){if(l.flags|=2048,fa(9,{destroy:void 0},pd.bind(null,l,i,n,t),null),Be===null)throw Error(c(349));u||(pn&127)!==0||vd(l,t,n)}return n}function vd(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Se.updateQueue,t===null?(t=bu(),Se.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function pd(e,t,n,l){t.value=n,t.getSnapshot=l,yd(t)&&bd(e)}function gd(e,t,n){return n(function(){yd(t)&&bd(e)})}function yd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Mt(e,n)}catch{return!0}}function bd(e){var t=yl(e,2);t!==null&&St(t,e,2)}function qo(e){var t=dt();if(typeof e=="function"){var n=e;if(e=n(),Ml){Rn(!0);try{n()}finally{Rn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:gn,lastRenderedState:e},t}function xd(e,t,n,l){return e.baseState=n,Bo(e,Le,typeof l=="function"?l:gn)}function t0(e,t,n,l,i){if(wu(e))throw Error(c(485));if(e=t.action,e!==null){var u={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(s){u.listeners.push(s)}};w.T!==null?n(!0):u.isTransition=!1,l(u),n=t.pending,n===null?(u.next=t.pending=u,Sd(t,u)):(u.next=n.next,t.pending=n.next=u)}}function Sd(e,t){var n=t.action,l=t.payload,i=e.state;if(t.isTransition){var u=w.T,s={};w.T=s;try{var g=n(i,l),E=w.S;E!==null&&E(s,g),Ed(e,t,g)}catch(O){Yo(e,t,O)}finally{u!==null&&s.types!==null&&(u.types=s.types),w.T=u}}else try{u=n(i,l),Ed(e,t,u)}catch(O){Yo(e,t,O)}}function Ed(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){Cd(e,t,l)},function(l){return Yo(e,t,l)}):Cd(e,t,n)}function Cd(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,Sd(e,n)))}function Yo(e,t,n){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=n,wd(t),t=t.next;while(t!==l)}e.action=null}function wd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Nd(e,t){return t}function Ad(e,t){if(Te){var n=Be.formState;if(n!==null){e:{var l=Se;if(Te){if(qe){t:{for(var i=qe,u=Yt;i.nodeType!==8;){if(!u){i=null;break t}if(i=Vt(i.nextSibling),i===null){i=null;break t}}u=i.data,i=u==="F!"||u==="F"?i:null}if(i){qe=Vt(i.nextSibling),l=i.data==="F!";break e}}Hn(l)}l=!1}l&&(t=n[0])}}return n=dt(),n.memoizedState=n.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nd,lastRenderedState:t},n.queue=l,n=Qd.bind(null,Se,l),l.dispatch=n,l=qo(!1),u=Jo.bind(null,Se,!1,l.queue),l=dt(),i={state:t,dispatch:null,action:e,pending:null},l.queue=i,n=t0.bind(null,Se,i,u,n),i.dispatch=n,l.memoizedState=e,[t,n,!1]}function Md(e){var t=Fe();return Td(t,Le,e)}function Td(e,t,n){if(t=Bo(e,t,Nd)[0],e=Su(gn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=li(t)}catch(s){throw s===ua?fu:s}else l=t;t=Fe();var i=t.queue,u=i.dispatch;return n!==t.memoizedState&&(Se.flags|=2048,fa(9,{destroy:void 0},n0.bind(null,i,n),null)),[l,u,e]}function n0(e,t){e.action=t}function jd(e){var t=Fe(),n=Le;if(n!==null)return Td(t,n,e);Fe(),t=t.memoizedState,n=Fe();var l=n.queue.dispatch;return n.memoizedState=e,[t,l,!1]}function fa(e,t,n,l){return e={tag:e,create:n,deps:l,inst:t,next:null},t=Se.updateQueue,t===null&&(t=bu(),Se.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(l=n.next,n.next=e,e.next=l,t.lastEffect=e),e}function zd(){return Fe().memoizedState}function Eu(e,t,n,l){var i=dt();Se.flags|=e,i.memoizedState=fa(1|t,{destroy:void 0},n,l===void 0?null:l)}function Cu(e,t,n,l){var i=Fe();l=l===void 0?null:l;var u=i.memoizedState.inst;Le!==null&&l!==null&&Ro(l,Le.memoizedState.deps)?i.memoizedState=fa(t,u,n,l):(Se.flags|=e,i.memoizedState=fa(1|t,u,n,l))}function _d(e,t){Eu(8390656,8,e,t)}function Xo(e,t){Cu(2048,8,e,t)}function l0(e){Se.flags|=4;var t=Se.updateQueue;if(t===null)t=bu(),Se.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Od(e){var t=Fe().memoizedState;return l0({ref:t,nextImpl:e}),function(){if((Re&2)!==0)throw Error(c(440));return t.impl.apply(void 0,arguments)}}function Rd(e,t){return Cu(4,2,e,t)}function Dd(e,t){return Cu(4,4,e,t)}function Ud(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Ld(e,t,n){n=n!=null?n.concat([e]):null,Cu(4,4,Ud.bind(null,t,e),n)}function Vo(){}function kd(e,t){var n=Fe();t=t===void 0?null:t;var l=n.memoizedState;return t!==null&&Ro(t,l[1])?l[0]:(n.memoizedState=[e,t],e)}function Hd(e,t){var n=Fe();t=t===void 0?null:t;var l=n.memoizedState;if(t!==null&&Ro(t,l[1]))return l[0];if(l=e(),Ml){Rn(!0);try{e()}finally{Rn(!1)}}return n.memoizedState=[l,t],l}function Qo(e,t,n){return n===void 0||(pn&1073741824)!==0&&(Ae&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Bm(),Se.lanes|=e,Kn|=e,n)}function Bd(e,t,n,l){return Mt(n,t)?n:oa.current!==null?(e=Qo(e,n,l),Mt(e,t)||(Ie=!0),e):(pn&42)===0||(pn&1073741824)!==0&&(Ae&261930)===0?(Ie=!0,e.memoizedState=n):(e=Bm(),Se.lanes|=e,Kn|=e,t)}function Gd(e,t,n,l,i){var u=B.p;B.p=u!==0&&8>u?u:8;var s=w.T,g={};w.T=g,Jo(e,!1,t,n);try{var E=i(),O=w.S;if(O!==null&&O(g,E),E!==null&&typeof E=="object"&&typeof E.then=="function"){var q=Iy(E,l);ai(e,t,q,Rt(e))}else ai(e,t,l,Rt(e))}catch(Q){ai(e,t,{then:function(){},status:"rejected",reason:Q},Rt())}finally{B.p=u,s!==null&&g.types!==null&&(s.types=g.types),w.T=s}}function a0(){}function Zo(e,t,n,l){if(e.tag!==5)throw Error(c(476));var i=qd(e).queue;Gd(e,i,t,k,n===null?a0:function(){return Yd(e),n(l)})}function qd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:k,baseState:k,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:gn,lastRenderedState:k},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:gn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Yd(e){var t=qd(e);t.next===null&&(t=e.alternate.memoizedState),ai(e,t.next.queue,{},Rt())}function Ko(){return ut(Si)}function Xd(){return Fe().memoizedState}function Vd(){return Fe().memoizedState}function i0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Rt();e=qn(n);var l=Yn(t,e,n);l!==null&&(St(l,t,n),Pa(l,t,n)),t={cache:Eo()},e.payload=t;return}t=t.return}}function u0(e,t,n){var l=Rt();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},wu(e)?Zd(t,n):(n=so(e,t,n,l),n!==null&&(St(n,e,l),Kd(n,t,l)))}function Qd(e,t,n){var l=Rt();ai(e,t,n,l)}function ai(e,t,n,l){var i={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(wu(e))Zd(t,i);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var s=t.lastRenderedState,g=u(s,n);if(i.hasEagerState=!0,i.eagerState=g,Mt(g,s))return au(e,t,i,0),Be===null&&lu(),!1}catch{}finally{}if(n=so(e,t,i,l),n!==null)return St(n,e,l),Kd(n,t,l),!0}return!1}function Jo(e,t,n,l){if(l={lane:2,revertLane:Ac(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},wu(e)){if(t)throw Error(c(479))}else t=so(e,n,l,2),t!==null&&St(t,e,2)}function wu(e){var t=e.alternate;return e===Se||t!==null&&t===Se}function Zd(e,t){ca=gu=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Kd(e,t,n){if((n&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,$s(e,n)}}var ii={readContext:ut,use:xu,useCallback:Ze,useContext:Ze,useEffect:Ze,useImperativeHandle:Ze,useLayoutEffect:Ze,useInsertionEffect:Ze,useMemo:Ze,useReducer:Ze,useRef:Ze,useState:Ze,useDebugValue:Ze,useDeferredValue:Ze,useTransition:Ze,useSyncExternalStore:Ze,useId:Ze,useHostTransitionStatus:Ze,useFormState:Ze,useActionState:Ze,useOptimistic:Ze,useMemoCache:Ze,useCacheRefresh:Ze};ii.useEffectEvent=Ze;var Jd={readContext:ut,use:xu,useCallback:function(e,t){return dt().memoizedState=[e,t===void 0?null:t],e},useContext:ut,useEffect:_d,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Eu(4194308,4,Ud.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Eu(4194308,4,e,t)},useInsertionEffect:function(e,t){Eu(4,2,e,t)},useMemo:function(e,t){var n=dt();t=t===void 0?null:t;var l=e();if(Ml){Rn(!0);try{e()}finally{Rn(!1)}}return n.memoizedState=[l,t],l},useReducer:function(e,t,n){var l=dt();if(n!==void 0){var i=n(t);if(Ml){Rn(!0);try{n(t)}finally{Rn(!1)}}}else i=t;return l.memoizedState=l.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},l.queue=e,e=e.dispatch=u0.bind(null,Se,e),[l.memoizedState,e]},useRef:function(e){var t=dt();return e={current:e},t.memoizedState=e},useState:function(e){e=qo(e);var t=e.queue,n=Qd.bind(null,Se,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Vo,useDeferredValue:function(e,t){var n=dt();return Qo(n,e,t)},useTransition:function(){var e=qo(!1);return e=Gd.bind(null,Se,e.queue,!0,!1),dt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var l=Se,i=dt();if(Te){if(n===void 0)throw Error(c(407));n=n()}else{if(n=t(),Be===null)throw Error(c(349));(Ae&127)!==0||vd(l,t,n)}i.memoizedState=n;var u={value:n,getSnapshot:t};return i.queue=u,_d(gd.bind(null,l,u,e),[e]),l.flags|=2048,fa(9,{destroy:void 0},pd.bind(null,l,u,n,t),null),n},useId:function(){var e=dt(),t=Be.identifierPrefix;if(Te){var n=en,l=Pt;n=(l&~(1<<32-At(l)-1)).toString(32)+n,t="_"+t+"R_"+n,n=yu++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=Py++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Ko,useFormState:Ad,useActionState:Ad,useOptimistic:function(e){var t=dt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Jo.bind(null,Se,!0,n),n.dispatch=t,[e,t]},useMemoCache:Ho,useCacheRefresh:function(){return dt().memoizedState=i0.bind(null,Se)},useEffectEvent:function(e){var t=dt(),n={impl:e};return t.memoizedState=n,function(){if((Re&2)!==0)throw Error(c(440));return n.impl.apply(void 0,arguments)}}},Fo={readContext:ut,use:xu,useCallback:kd,useContext:ut,useEffect:Xo,useImperativeHandle:Ld,useInsertionEffect:Rd,useLayoutEffect:Dd,useMemo:Hd,useReducer:Su,useRef:zd,useState:function(){return Su(gn)},useDebugValue:Vo,useDeferredValue:function(e,t){var n=Fe();return Bd(n,Le.memoizedState,e,t)},useTransition:function(){var e=Su(gn)[0],t=Fe().memoizedState;return[typeof e=="boolean"?e:li(e),t]},useSyncExternalStore:hd,useId:Xd,useHostTransitionStatus:Ko,useFormState:Md,useActionState:Md,useOptimistic:function(e,t){var n=Fe();return xd(n,Le,e,t)},useMemoCache:Ho,useCacheRefresh:Vd};Fo.useEffectEvent=Od;var Fd={readContext:ut,use:xu,useCallback:kd,useContext:ut,useEffect:Xo,useImperativeHandle:Ld,useInsertionEffect:Rd,useLayoutEffect:Dd,useMemo:Hd,useReducer:Go,useRef:zd,useState:function(){return Go(gn)},useDebugValue:Vo,useDeferredValue:function(e,t){var n=Fe();return Le===null?Qo(n,e,t):Bd(n,Le.memoizedState,e,t)},useTransition:function(){var e=Go(gn)[0],t=Fe().memoizedState;return[typeof e=="boolean"?e:li(e),t]},useSyncExternalStore:hd,useId:Xd,useHostTransitionStatus:Ko,useFormState:jd,useActionState:jd,useOptimistic:function(e,t){var n=Fe();return Le!==null?xd(n,Le,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Ho,useCacheRefresh:Vd};Fd.useEffectEvent=Od;function Wo(e,t,n,l){t=e.memoizedState,n=n(l,t),n=n==null?t:y({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var $o={enqueueSetState:function(e,t,n){e=e._reactInternals;var l=Rt(),i=qn(l);i.payload=t,n!=null&&(i.callback=n),t=Yn(e,i,l),t!==null&&(St(t,e,l),Pa(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var l=Rt(),i=qn(l);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Yn(e,i,l),t!==null&&(St(t,e,l),Pa(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Rt(),l=qn(n);l.tag=2,t!=null&&(l.callback=t),t=Yn(e,l,n),t!==null&&(St(t,e,n),Pa(t,e,n))}};function Wd(e,t,n,l,i,u,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,u,s):t.prototype&&t.prototype.isPureReactComponent?!Qa(n,l)||!Qa(i,u):!0}function $d(e,t,n,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,l),t.state!==e&&$o.enqueueReplaceState(t,t.state,null)}function Tl(e,t){var n=t;if("ref"in t){n={};for(var l in t)l!=="ref"&&(n[l]=t[l])}if(e=e.defaultProps){n===t&&(n=y({},n));for(var i in e)n[i]===void 0&&(n[i]=e[i])}return n}function Id(e){nu(e)}function Pd(e){console.error(e)}function em(e){nu(e)}function Nu(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function tm(e,t,n){try{var l=e.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function Io(e,t,n){return n=qn(n),n.tag=3,n.payload={element:null},n.callback=function(){Nu(e,t)},n}function nm(e){return e=qn(e),e.tag=3,e}function lm(e,t,n,l){var i=n.type.getDerivedStateFromError;if(typeof i=="function"){var u=l.value;e.payload=function(){return i(u)},e.callback=function(){tm(t,n,l)}}var s=n.stateNode;s!==null&&typeof s.componentDidCatch=="function"&&(e.callback=function(){tm(t,n,l),typeof i!="function"&&(Jn===null?Jn=new Set([this]):Jn.add(this));var g=l.stack;this.componentDidCatch(l.value,{componentStack:g!==null?g:""})})}function r0(e,t,n,l,i){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=n.alternate,t!==null&&la(t,n,i,!0),n=jt.current,n!==null){switch(n.tag){case 31:case 13:return Xt===null?ku():n.alternate===null&&Ke===0&&(Ke=3),n.flags&=-257,n.flags|=65536,n.lanes=i,l===du?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([l]):t.add(l),Cc(e,l,i)),!1;case 22:return n.flags|=65536,l===du?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([l]):n.add(l)),Cc(e,l,i)),!1}throw Error(c(435,n.tag))}return Cc(e,l,i),ku(),!1}if(Te)return t=jt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,l!==go&&(e=Error(c(422),{cause:l}),Ja(Bt(e,n)))):(l!==go&&(t=Error(c(423),{cause:l}),Ja(Bt(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,l=Bt(l,n),i=Io(e.stateNode,l,i),To(e,i),Ke!==4&&(Ke=2)),!1;var u=Error(c(520),{cause:l});if(u=Bt(u,n),mi===null?mi=[u]:mi.push(u),Ke!==4&&(Ke=2),t===null)return!0;l=Bt(l,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=Io(n.stateNode,l,e),To(n,e),!1;case 1:if(t=n.type,u=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Jn===null||!Jn.has(u))))return n.flags|=65536,i&=-i,n.lanes|=i,i=nm(i),lm(i,e,n,l),To(n,i),!1}n=n.return}while(n!==null);return!1}var Po=Error(c(461)),Ie=!1;function rt(e,t,n,l){t.child=e===null?rd(t,null,n,l):Al(t,e.child,n,l)}function am(e,t,n,l,i){n=n.render;var u=t.ref;if("ref"in l){var s={};for(var g in l)g!=="ref"&&(s[g]=l[g])}else s=l;return El(t),l=Do(e,t,n,s,u,i),g=Uo(),e!==null&&!Ie?(Lo(e,t,i),yn(e,t,i)):(Te&&g&&vo(t),t.flags|=1,rt(e,t,l,i),t.child)}function im(e,t,n,l,i){if(e===null){var u=n.type;return typeof u=="function"&&!fo(u)&&u.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=u,um(e,t,u,l,i)):(e=uu(n.type,null,l,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!rc(e,i)){var s=u.memoizedProps;if(n=n.compare,n=n!==null?n:Qa,n(s,l)&&e.ref===t.ref)return yn(e,t,i)}return t.flags|=1,e=dn(u,l),e.ref=t.ref,e.return=t,t.child=e}function um(e,t,n,l,i){if(e!==null){var u=e.memoizedProps;if(Qa(u,l)&&e.ref===t.ref)if(Ie=!1,t.pendingProps=l=u,rc(e,i))(e.flags&131072)!==0&&(Ie=!0);else return t.lanes=e.lanes,yn(e,t,i)}return ec(e,t,n,l,i)}function rm(e,t,n,l){var i=l.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|n:n,e!==null){for(l=t.child=e.child,i=0;l!==null;)i=i|l.lanes|l.childLanes,l=l.sibling;l=i&~u}else l=0,t.child=null;return om(e,t,u,n,l)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&su(t,u!==null?u.cachePool:null),u!==null?sd(t,u):zo(),fd(t);else return l=t.lanes=536870912,om(e,t,u!==null?u.baseLanes|n:n,n,l)}else u!==null?(su(t,u.cachePool),sd(t,u),Vn(),t.memoizedState=null):(e!==null&&su(t,null),zo(),Vn());return rt(e,t,i,n),t.child}function ui(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function om(e,t,n,l,i){var u=wo();return u=u===null?null:{parent:We._currentValue,pool:u},t.memoizedState={baseLanes:n,cachePool:u},e!==null&&su(t,null),zo(),fd(t),e!==null&&la(e,t,l,!0),t.childLanes=i,null}function Au(e,t){return t=Tu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function cm(e,t,n){return Al(t,e.child,null,n),e=Au(t,t.pendingProps),e.flags|=2,zt(t),t.memoizedState=null,e}function o0(e,t,n){var l=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Te){if(l.mode==="hidden")return e=Au(t,l),t.lanes=536870912,ui(null,e);if(Oo(t),(e=qe)?(e=Sh(e,Yt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ln!==null?{id:Pt,overflow:en}:null,retryLane:536870912,hydrationErrors:null},n=Zf(e),n.return=t,t.child=n,it=t,qe=null)):e=null,e===null)throw Hn(t);return t.lanes=536870912,null}return Au(t,l)}var u=e.memoizedState;if(u!==null){var s=u.dehydrated;if(Oo(t),i)if(t.flags&256)t.flags&=-257,t=cm(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(c(558));else if(Ie||la(e,t,n,!1),i=(n&e.childLanes)!==0,Ie||i){if(l=Be,l!==null&&(s=Is(l,n),s!==0&&s!==u.retryLane))throw u.retryLane=s,yl(e,s),St(l,e,s),Po;ku(),t=cm(e,t,n)}else e=u.treeContext,qe=Vt(s.nextSibling),it=t,Te=!0,kn=null,Yt=!1,e!==null&&Ff(t,e),t=Au(t,l),t.flags|=4096;return t}return e=dn(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Mu(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(c(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function ec(e,t,n,l,i){return El(t),n=Do(e,t,n,l,void 0,i),l=Uo(),e!==null&&!Ie?(Lo(e,t,i),yn(e,t,i)):(Te&&l&&vo(t),t.flags|=1,rt(e,t,n,i),t.child)}function sm(e,t,n,l,i,u){return El(t),t.updateQueue=null,n=md(t,l,n,i),dd(e),l=Uo(),e!==null&&!Ie?(Lo(e,t,u),yn(e,t,u)):(Te&&l&&vo(t),t.flags|=1,rt(e,t,n,u),t.child)}function fm(e,t,n,l,i){if(El(t),t.stateNode===null){var u=Pl,s=n.contextType;typeof s=="object"&&s!==null&&(u=ut(s)),u=new n(l,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=$o,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=l,u.state=t.memoizedState,u.refs={},Ao(t),s=n.contextType,u.context=typeof s=="object"&&s!==null?ut(s):Pl,u.state=t.memoizedState,s=n.getDerivedStateFromProps,typeof s=="function"&&(Wo(t,n,s,l),u.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(s=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),s!==u.state&&$o.enqueueReplaceState(u,u.state,null),ti(t,l,u,i),ei(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){u=t.stateNode;var g=t.memoizedProps,E=Tl(n,g);u.props=E;var O=u.context,q=n.contextType;s=Pl,typeof q=="object"&&q!==null&&(s=ut(q));var Q=n.getDerivedStateFromProps;q=typeof Q=="function"||typeof u.getSnapshotBeforeUpdate=="function",g=t.pendingProps!==g,q||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(g||O!==s)&&$d(t,u,l,s),Gn=!1;var D=t.memoizedState;u.state=D,ti(t,l,u,i),ei(),O=t.memoizedState,g||D!==O||Gn?(typeof Q=="function"&&(Wo(t,n,Q,l),O=t.memoizedState),(E=Gn||Wd(t,n,E,l,D,O,s))?(q||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=O),u.props=l,u.state=O,u.context=s,l=E):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{u=t.stateNode,Mo(e,t),s=t.memoizedProps,q=Tl(n,s),u.props=q,Q=t.pendingProps,D=u.context,O=n.contextType,E=Pl,typeof O=="object"&&O!==null&&(E=ut(O)),g=n.getDerivedStateFromProps,(O=typeof g=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(s!==Q||D!==E)&&$d(t,u,l,E),Gn=!1,D=t.memoizedState,u.state=D,ti(t,l,u,i),ei();var L=t.memoizedState;s!==Q||D!==L||Gn||e!==null&&e.dependencies!==null&&ou(e.dependencies)?(typeof g=="function"&&(Wo(t,n,g,l),L=t.memoizedState),(q=Gn||Wd(t,n,q,l,D,L,E)||e!==null&&e.dependencies!==null&&ou(e.dependencies))?(O||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(l,L,E),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(l,L,E)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||s===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=L),u.props=l,u.state=L,u.context=E,l=q):(typeof u.componentDidUpdate!="function"||s===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),l=!1)}return u=l,Mu(e,t),l=(t.flags&128)!==0,u||l?(u=t.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&l?(t.child=Al(t,e.child,null,i),t.child=Al(t,null,n,i)):rt(e,t,n,i),t.memoizedState=u.state,e=t.child):e=yn(e,t,i),e}function dm(e,t,n,l){return xl(),t.flags|=256,rt(e,t,n,l),t.child}var tc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function nc(e){return{baseLanes:e,cachePool:td()}}function lc(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Ot),e}function mm(e,t,n){var l=t.pendingProps,i=!1,u=(t.flags&128)!==0,s;if((s=u)||(s=e!==null&&e.memoizedState===null?!1:(Je.current&2)!==0),s&&(i=!0,t.flags&=-129),s=(t.flags&32)!==0,t.flags&=-33,e===null){if(Te){if(i?Xn(t):Vn(),(e=qe)?(e=Sh(e,Yt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ln!==null?{id:Pt,overflow:en}:null,retryLane:536870912,hydrationErrors:null},n=Zf(e),n.return=t,t.child=n,it=t,qe=null)):e=null,e===null)throw Hn(t);return Bc(e)?t.lanes=32:t.lanes=536870912,null}var g=l.children;return l=l.fallback,i?(Vn(),i=t.mode,g=Tu({mode:"hidden",children:g},i),l=bl(l,i,n,null),g.return=t,l.return=t,g.sibling=l,t.child=g,l=t.child,l.memoizedState=nc(n),l.childLanes=lc(e,s,n),t.memoizedState=tc,ui(null,l)):(Xn(t),ac(t,g))}var E=e.memoizedState;if(E!==null&&(g=E.dehydrated,g!==null)){if(u)t.flags&256?(Xn(t),t.flags&=-257,t=ic(e,t,n)):t.memoizedState!==null?(Vn(),t.child=e.child,t.flags|=128,t=null):(Vn(),g=l.fallback,i=t.mode,l=Tu({mode:"visible",children:l.children},i),g=bl(g,i,n,null),g.flags|=2,l.return=t,g.return=t,l.sibling=g,t.child=l,Al(t,e.child,null,n),l=t.child,l.memoizedState=nc(n),l.childLanes=lc(e,s,n),t.memoizedState=tc,t=ui(null,l));else if(Xn(t),Bc(g)){if(s=g.nextSibling&&g.nextSibling.dataset,s)var O=s.dgst;s=O,l=Error(c(419)),l.stack="",l.digest=s,Ja({value:l,source:null,stack:null}),t=ic(e,t,n)}else if(Ie||la(e,t,n,!1),s=(n&e.childLanes)!==0,Ie||s){if(s=Be,s!==null&&(l=Is(s,n),l!==0&&l!==E.retryLane))throw E.retryLane=l,yl(e,l),St(s,e,l),Po;Hc(g)||ku(),t=ic(e,t,n)}else Hc(g)?(t.flags|=192,t.child=e.child,t=null):(e=E.treeContext,qe=Vt(g.nextSibling),it=t,Te=!0,kn=null,Yt=!1,e!==null&&Ff(t,e),t=ac(t,l.children),t.flags|=4096);return t}return i?(Vn(),g=l.fallback,i=t.mode,E=e.child,O=E.sibling,l=dn(E,{mode:"hidden",children:l.children}),l.subtreeFlags=E.subtreeFlags&65011712,O!==null?g=dn(O,g):(g=bl(g,i,n,null),g.flags|=2),g.return=t,l.return=t,l.sibling=g,t.child=l,ui(null,l),l=t.child,g=e.child.memoizedState,g===null?g=nc(n):(i=g.cachePool,i!==null?(E=We._currentValue,i=i.parent!==E?{parent:E,pool:E}:i):i=td(),g={baseLanes:g.baseLanes|n,cachePool:i}),l.memoizedState=g,l.childLanes=lc(e,s,n),t.memoizedState=tc,ui(e.child,l)):(Xn(t),n=e.child,e=n.sibling,n=dn(n,{mode:"visible",children:l.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function ac(e,t){return t=Tu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Tu(e,t){return e=Tt(22,e,null,t),e.lanes=0,e}function ic(e,t,n){return Al(t,e.child,null,n),e=ac(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function hm(e,t,n){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),xo(e.return,t,n)}function uc(e,t,n,l,i,u){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:i,treeForkCount:u}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=l,s.tail=n,s.tailMode=i,s.treeForkCount=u)}function vm(e,t,n){var l=t.pendingProps,i=l.revealOrder,u=l.tail;l=l.children;var s=Je.current,g=(s&2)!==0;if(g?(s=s&1|2,t.flags|=128):s&=1,I(Je,s),rt(e,t,l,n),l=Te?Ka:0,!g&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&hm(e,n,t);else if(e.tag===19)hm(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(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&pu(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),uc(t,!1,i,n,u,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&pu(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}uc(t,!0,n,null,u,l);break;case"together":uc(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function yn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Kn|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(la(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(c(153));if(t.child!==null){for(e=t.child,n=dn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=dn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function rc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ou(e)))}function c0(e,t,n){switch(t.tag){case 3:Ge(t,t.stateNode.containerInfo),Bn(t,We,e.memoizedState.cache),xl();break;case 27:case 5:ct(t);break;case 4:Ge(t,t.stateNode.containerInfo);break;case 10:Bn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Oo(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Xn(t),t.flags|=128,null):(n&t.child.childLanes)!==0?mm(e,t,n):(Xn(t),e=yn(e,t,n),e!==null?e.sibling:null);Xn(t);break;case 19:var i=(e.flags&128)!==0;if(l=(n&t.childLanes)!==0,l||(la(e,t,n,!1),l=(n&t.childLanes)!==0),i){if(l)return vm(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),I(Je,Je.current),l)break;return null;case 22:return t.lanes=0,rm(e,t,n,t.pendingProps);case 24:Bn(t,We,e.memoizedState.cache)}return yn(e,t,n)}function pm(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ie=!0;else{if(!rc(e,n)&&(t.flags&128)===0)return Ie=!1,c0(e,t,n);Ie=(e.flags&131072)!==0}else Ie=!1,Te&&(t.flags&1048576)!==0&&Jf(t,Ka,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=wl(t.elementType),t.type=e,typeof e=="function")fo(e)?(l=Tl(e,l),t.tag=1,t=fm(null,t,e,l,n)):(t.tag=0,t=ec(null,t,e,l,n));else{if(e!=null){var i=e.$$typeof;if(i===U){t.tag=11,t=am(null,t,e,l,n);break e}else if(i===Z){t.tag=14,t=im(null,t,e,l,n);break e}}throw t=he(e)||e,Error(c(306,t,""))}}return t;case 0:return ec(e,t,t.type,t.pendingProps,n);case 1:return l=t.type,i=Tl(l,t.pendingProps),fm(e,t,l,i,n);case 3:e:{if(Ge(t,t.stateNode.containerInfo),e===null)throw Error(c(387));l=t.pendingProps;var u=t.memoizedState;i=u.element,Mo(e,t),ti(t,l,null,n);var s=t.memoizedState;if(l=s.cache,Bn(t,We,l),l!==u.cache&&So(t,[We],n,!0),ei(),l=s.element,u.isDehydrated)if(u={element:l,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=dm(e,t,l,n);break e}else if(l!==i){i=Bt(Error(c(424)),t),Ja(i),t=dm(e,t,l,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=Vt(e.firstChild),it=t,Te=!0,kn=null,Yt=!0,n=rd(t,null,l,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(xl(),l===i){t=yn(e,t,n);break e}rt(e,t,l,n)}t=t.child}return t;case 26:return Mu(e,t),e===null?(n=Mh(t.type,null,t.pendingProps,null))?t.memoizedState=n:Te||(n=t.type,e=t.pendingProps,l=Vu(ae.current).createElement(n),l[at]=t,l[vt]=e,ot(l,n,e),nt(l),t.stateNode=l):t.memoizedState=Mh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ct(t),e===null&&Te&&(l=t.stateNode=wh(t.type,t.pendingProps,ae.current),it=t,Yt=!0,i=qe,In(t.type)?(Gc=i,qe=Vt(l.firstChild)):qe=i),rt(e,t,t.pendingProps.children,n),Mu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Te&&((i=l=qe)&&(l=B0(l,t.type,t.pendingProps,Yt),l!==null?(t.stateNode=l,it=t,qe=Vt(l.firstChild),Yt=!1,i=!0):i=!1),i||Hn(t)),ct(t),i=t.type,u=t.pendingProps,s=e!==null?e.memoizedProps:null,l=u.children,Uc(i,u)?l=null:s!==null&&Uc(i,s)&&(t.flags|=32),t.memoizedState!==null&&(i=Do(e,t,e0,null,null,n),Si._currentValue=i),Mu(e,t),rt(e,t,l,n),t.child;case 6:return e===null&&Te&&((e=n=qe)&&(n=G0(n,t.pendingProps,Yt),n!==null?(t.stateNode=n,it=t,qe=null,e=!0):e=!1),e||Hn(t)),null;case 13:return mm(e,t,n);case 4:return Ge(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Al(t,null,l,n):rt(e,t,l,n),t.child;case 11:return am(e,t,t.type,t.pendingProps,n);case 7:return rt(e,t,t.pendingProps,n),t.child;case 8:return rt(e,t,t.pendingProps.children,n),t.child;case 12:return rt(e,t,t.pendingProps.children,n),t.child;case 10:return l=t.pendingProps,Bn(t,t.type,l.value),rt(e,t,l.children,n),t.child;case 9:return i=t.type._context,l=t.pendingProps.children,El(t),i=ut(i),l=l(i),t.flags|=1,rt(e,t,l,n),t.child;case 14:return im(e,t,t.type,t.pendingProps,n);case 15:return um(e,t,t.type,t.pendingProps,n);case 19:return vm(e,t,n);case 31:return o0(e,t,n);case 22:return rm(e,t,n,t.pendingProps);case 24:return El(t),l=ut(We),e===null?(i=wo(),i===null&&(i=Be,u=Eo(),i.pooledCache=u,u.refCount++,u!==null&&(i.pooledCacheLanes|=n),i=u),t.memoizedState={parent:l,cache:i},Ao(t),Bn(t,We,i)):((e.lanes&n)!==0&&(Mo(e,t),ti(t,null,null,n),ei()),i=e.memoizedState,u=t.memoizedState,i.parent!==l?(i={parent:l,cache:l},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),Bn(t,We,l)):(l=u.cache,Bn(t,We,l),l!==i.cache&&So(t,[We],n,!0))),rt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(c(156,t.tag))}function bn(e){e.flags|=4}function oc(e,t,n,l,i){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Xm())e.flags|=8192;else throw Nl=du,No}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,!Oh(t))if(Xm())e.flags|=8192;else throw Nl=du,No}function ju(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Fs():536870912,e.lanes|=t,va|=t)}function ri(e,t){if(!Te)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Ye(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,l=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,l|=i.subtreeFlags&65011712,l|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,l|=i.subtreeFlags,l|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=l,e.childLanes=n,t}function s0(e,t,n){var l=t.pendingProps;switch(po(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,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),vn(We),ce(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(na(t)?bn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,yo())),Ye(t),null;case 26:var i=t.type,u=t.memoizedState;return e===null?(bn(t),u!==null?(Ye(t),gm(t,u)):(Ye(t),oc(t,i,null,l,n))):u?u!==e.memoizedState?(bn(t),Ye(t),gm(t,u)):(Ye(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&bn(t),Ye(t),oc(t,i,e,l,n)),null;case 27:if(re(t),n=ae.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&bn(t);else{if(!l){if(t.stateNode===null)throw Error(c(166));return Ye(t),null}e=ee.current,na(t)?Wf(t):(e=wh(i,l,n),t.stateNode=e,bn(t))}return Ye(t),null;case 5:if(re(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&bn(t);else{if(!l){if(t.stateNode===null)throw Error(c(166));return Ye(t),null}if(u=ee.current,na(t))Wf(t);else{var s=Vu(ae.current);switch(u){case 1:u=s.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:u=s.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":u=s.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":u=s.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":u=s.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof l.is=="string"?s.createElement("select",{is:l.is}):s.createElement("select"),l.multiple?u.multiple=!0:l.size&&(u.size=l.size);break;default:u=typeof l.is=="string"?s.createElement(i,{is:l.is}):s.createElement(i)}}u[at]=t,u[vt]=l;e:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)u.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break e;for(;s.sibling===null;){if(s.return===null||s.return===t)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=u;e:switch(ot(u,i,l),i){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&bn(t)}}return Ye(t),oc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&bn(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(c(166));if(e=ae.current,na(t)){if(e=t.stateNode,n=t.memoizedProps,l=null,i=it,i!==null)switch(i.tag){case 27:case 5:l=i.memoizedProps}e[at]=t,e=!!(e.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||mh(e.nodeValue,n)),e||Hn(t,!0)}else e=Vu(e).createTextNode(l),e[at]=t,t.stateNode=e}return Ye(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(l=na(t),n!==null){if(e===null){if(!l)throw Error(c(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(557));e[at]=t}else xl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ye(t),e=!1}else n=yo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(zt(t),t):(zt(t),null);if((t.flags&128)!==0)throw Error(c(558))}return Ye(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=na(t),l!==null&&l.dehydrated!==null){if(e===null){if(!i)throw Error(c(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(c(317));i[at]=t}else xl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ye(t),i=!1}else i=yo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(zt(t),t):(zt(t),null)}return zt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=l!==null,e=e!==null&&e.memoizedState!==null,n&&(l=t.child,i=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(i=l.alternate.memoizedState.cachePool.pool),u=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(u=l.memoizedState.cachePool.pool),u!==i&&(l.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),ju(t,t.updateQueue),Ye(t),null);case 4:return ce(),e===null&&zc(t.stateNode.containerInfo),Ye(t),null;case 10:return vn(t.type),Ye(t),null;case 19:if(G(Je),l=t.memoizedState,l===null)return Ye(t),null;if(i=(t.flags&128)!==0,u=l.rendering,u===null)if(i)ri(l,!1);else{if(Ke!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=pu(e),u!==null){for(t.flags|=128,ri(l,!1),e=u.updateQueue,t.updateQueue=e,ju(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Qf(n,e),n=n.sibling;return I(Je,Je.current&1|2),Te&&mn(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&wt()>Du&&(t.flags|=128,i=!0,ri(l,!1),t.lanes=4194304)}else{if(!i)if(e=pu(u),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,ju(t,e),ri(l,!0),l.tail===null&&l.tailMode==="hidden"&&!u.alternate&&!Te)return Ye(t),null}else 2*wt()-l.renderingStartTime>Du&&n!==536870912&&(t.flags|=128,i=!0,ri(l,!1),t.lanes=4194304);l.isBackwards?(u.sibling=t.child,t.child=u):(e=l.last,e!==null?e.sibling=u:t.child=u,l.last=u)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=wt(),e.sibling=null,n=Je.current,I(Je,i?n&1|2:n&1),Te&&mn(t,l.treeForkCount),e):(Ye(t),null);case 22:case 23:return zt(t),_o(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(n&536870912)!==0&&(t.flags&128)===0&&(Ye(t),t.subtreeFlags&6&&(t.flags|=8192)):Ye(t),n=t.updateQueue,n!==null&&ju(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==n&&(t.flags|=2048),e!==null&&G(Cl),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),vn(We),Ye(t),null;case 25:return null;case 30:return null}throw Error(c(156,t.tag))}function f0(e,t){switch(po(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return vn(We),ce(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return re(t),null;case 31:if(t.memoizedState!==null){if(zt(t),t.alternate===null)throw Error(c(340));xl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(zt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(c(340));xl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return G(Je),null;case 4:return ce(),null;case 10:return vn(t.type),null;case 22:case 23:return zt(t),_o(),e!==null&&G(Cl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return vn(We),null;case 25:return null;default:return null}}function ym(e,t){switch(po(t),t.tag){case 3:vn(We),ce();break;case 26:case 27:case 5:re(t);break;case 4:ce();break;case 31:t.memoizedState!==null&&zt(t);break;case 13:zt(t);break;case 19:G(Je);break;case 10:vn(t.type);break;case 22:case 23:zt(t),_o(),e!==null&&G(Cl);break;case 24:vn(We)}}function oi(e,t){try{var n=t.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var i=l.next;n=i;do{if((n.tag&e)===e){l=void 0;var u=n.create,s=n.inst;l=u(),s.destroy=l}n=n.next}while(n!==i)}}catch(g){Ue(t,t.return,g)}}function Qn(e,t,n){try{var l=t.updateQueue,i=l!==null?l.lastEffect:null;if(i!==null){var u=i.next;l=u;do{if((l.tag&e)===e){var s=l.inst,g=s.destroy;if(g!==void 0){s.destroy=void 0,i=t;var E=n,O=g;try{O()}catch(q){Ue(i,E,q)}}}l=l.next}while(l!==u)}}catch(q){Ue(t,t.return,q)}}function bm(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{cd(t,n)}catch(l){Ue(e,e.return,l)}}}function xm(e,t,n){n.props=Tl(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(l){Ue(e,t,l)}}function ci(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof n=="function"?e.refCleanup=n(l):n.current=l}}catch(i){Ue(e,t,i)}}function tn(e,t){var n=e.ref,l=e.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(i){Ue(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(i){Ue(e,t,i)}else n.current=null}function Sm(e){var t=e.type,n=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break e;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(i){Ue(e,e.return,i)}}function cc(e,t,n){try{var l=e.stateNode;R0(l,e.type,n,t),l[vt]=t}catch(i){Ue(e,e.return,i)}}function Em(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&In(e.type)||e.tag===4}function sc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Em(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&&In(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 fc(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=sn));else if(l!==4&&(l===27&&In(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(fc(e,t,n),e=e.sibling;e!==null;)fc(e,t,n),e=e.sibling}function zu(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(l!==4&&(l===27&&In(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(zu(e,t,n),e=e.sibling;e!==null;)zu(e,t,n),e=e.sibling}function Cm(e){var t=e.stateNode,n=e.memoizedProps;try{for(var l=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);ot(t,l,n),t[at]=e,t[vt]=n}catch(u){Ue(e,e.return,u)}}var xn=!1,Pe=!1,dc=!1,wm=typeof WeakSet=="function"?WeakSet:Set,lt=null;function d0(e,t){if(e=e.containerInfo,Rc=$u,e=Lf(e),ao(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var i=l.anchorOffset,u=l.focusNode;l=l.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var s=0,g=-1,E=-1,O=0,q=0,Q=e,D=null;t:for(;;){for(var L;Q!==n||i!==0&&Q.nodeType!==3||(g=s+i),Q!==u||l!==0&&Q.nodeType!==3||(E=s+l),Q.nodeType===3&&(s+=Q.nodeValue.length),(L=Q.firstChild)!==null;)D=Q,Q=L;for(;;){if(Q===e)break t;if(D===n&&++O===i&&(g=s),D===u&&++q===l&&(E=s),(L=Q.nextSibling)!==null)break;Q=D,D=Q.parentNode}Q=L}n=g===-1||E===-1?null:{start:g,end:E}}else n=null}n=n||{start:0,end:0}}else n=null;for(Dc={focusedElem:e,selectionRange:n},$u=!1,lt=t;lt!==null;)if(t=lt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,lt=e;else for(;lt!==null;){switch(t=lt,u=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)i=e[n],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,n=t,i=u.memoizedProps,u=u.memoizedState,l=n.stateNode;try{var ne=Tl(n.type,i);e=l.getSnapshotBeforeUpdate(ne,u),l.__reactInternalSnapshotBeforeUpdate=e}catch(fe){Ue(n,n.return,fe)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)kc(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":kc(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(c(163))}if(e=t.sibling,e!==null){e.return=t.return,lt=e;break}lt=t.return}}function Nm(e,t,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:En(e,n),l&4&&oi(5,n);break;case 1:if(En(e,n),l&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(s){Ue(n,n.return,s)}else{var i=Tl(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(s){Ue(n,n.return,s)}}l&64&&bm(n),l&512&&ci(n,n.return);break;case 3:if(En(e,n),l&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{cd(e,t)}catch(s){Ue(n,n.return,s)}}break;case 27:t===null&&l&4&&Cm(n);case 26:case 5:En(e,n),t===null&&l&4&&Sm(n),l&512&&ci(n,n.return);break;case 12:En(e,n);break;case 31:En(e,n),l&4&&Tm(e,n);break;case 13:En(e,n),l&4&&jm(e,n),l&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=S0.bind(null,n),q0(e,n))));break;case 22:if(l=n.memoizedState!==null||xn,!l){t=t!==null&&t.memoizedState!==null||Pe,i=xn;var u=Pe;xn=l,(Pe=t)&&!u?Cn(e,n,(n.subtreeFlags&8772)!==0):En(e,n),xn=i,Pe=u}break;case 30:break;default:En(e,n)}}function Am(e){var t=e.alternate;t!==null&&(e.alternate=null,Am(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&qr(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 Xe=null,gt=!1;function Sn(e,t,n){for(n=n.child;n!==null;)Mm(e,t,n),n=n.sibling}function Mm(e,t,n){if(Nt&&typeof Nt.onCommitFiberUnmount=="function")try{Nt.onCommitFiberUnmount(Ra,n)}catch{}switch(n.tag){case 26:Pe||tn(n,t),Sn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Pe||tn(n,t);var l=Xe,i=gt;In(n.type)&&(Xe=n.stateNode,gt=!1),Sn(e,t,n),yi(n.stateNode),Xe=l,gt=i;break;case 5:Pe||tn(n,t);case 6:if(l=Xe,i=gt,Xe=null,Sn(e,t,n),Xe=l,gt=i,Xe!==null)if(gt)try{(Xe.nodeType===9?Xe.body:Xe.nodeName==="HTML"?Xe.ownerDocument.body:Xe).removeChild(n.stateNode)}catch(u){Ue(n,t,u)}else try{Xe.removeChild(n.stateNode)}catch(u){Ue(n,t,u)}break;case 18:Xe!==null&&(gt?(e=Xe,bh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Ca(e)):bh(Xe,n.stateNode));break;case 4:l=Xe,i=gt,Xe=n.stateNode.containerInfo,gt=!0,Sn(e,t,n),Xe=l,gt=i;break;case 0:case 11:case 14:case 15:Qn(2,n,t),Pe||Qn(4,n,t),Sn(e,t,n);break;case 1:Pe||(tn(n,t),l=n.stateNode,typeof l.componentWillUnmount=="function"&&xm(n,t,l)),Sn(e,t,n);break;case 21:Sn(e,t,n);break;case 22:Pe=(l=Pe)||n.memoizedState!==null,Sn(e,t,n),Pe=l;break;default:Sn(e,t,n)}}function Tm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ca(e)}catch(n){Ue(t,t.return,n)}}}function jm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ca(e)}catch(n){Ue(t,t.return,n)}}function m0(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new wm),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new wm),t;default:throw Error(c(435,e.tag))}}function _u(e,t){var n=m0(e);t.forEach(function(l){if(!n.has(l)){n.add(l);var i=E0.bind(null,e,l);l.then(i,i)}})}function yt(e,t){var n=t.deletions;if(n!==null)for(var l=0;l<n.length;l++){var i=n[l],u=e,s=t,g=s;e:for(;g!==null;){switch(g.tag){case 27:if(In(g.type)){Xe=g.stateNode,gt=!1;break e}break;case 5:Xe=g.stateNode,gt=!1;break e;case 3:case 4:Xe=g.stateNode.containerInfo,gt=!0;break e}g=g.return}if(Xe===null)throw Error(c(160));Mm(u,s,i),Xe=null,gt=!1,u=i.alternate,u!==null&&(u.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)zm(t,e),t=t.sibling}var Jt=null;function zm(e,t){var n=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:yt(t,e),bt(e),l&4&&(Qn(3,e,e.return),oi(3,e),Qn(5,e,e.return));break;case 1:yt(t,e),bt(e),l&512&&(Pe||n===null||tn(n,n.return)),l&64&&xn&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var i=Jt;if(yt(t,e),bt(e),l&512&&(Pe||n===null||tn(n,n.return)),l&4){var u=n!==null?n.memoizedState:null;if(l=e.memoizedState,n===null)if(l===null)if(e.stateNode===null){e:{l=e.type,n=e.memoizedProps,i=i.ownerDocument||i;t:switch(l){case"title":u=i.getElementsByTagName("title")[0],(!u||u[La]||u[at]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=i.createElement(l),i.head.insertBefore(u,i.querySelector("head > title"))),ot(u,l,n),u[at]=e,nt(u),l=u;break e;case"link":var s=zh("link","href",i).get(l+(n.href||""));if(s){for(var g=0;g<s.length;g++)if(u=s[g],u.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&u.getAttribute("rel")===(n.rel==null?null:n.rel)&&u.getAttribute("title")===(n.title==null?null:n.title)&&u.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(g,1);break t}}u=i.createElement(l),ot(u,l,n),i.head.appendChild(u);break;case"meta":if(s=zh("meta","content",i).get(l+(n.content||""))){for(g=0;g<s.length;g++)if(u=s[g],u.getAttribute("content")===(n.content==null?null:""+n.content)&&u.getAttribute("name")===(n.name==null?null:n.name)&&u.getAttribute("property")===(n.property==null?null:n.property)&&u.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&u.getAttribute("charset")===(n.charSet==null?null:n.charSet)){s.splice(g,1);break t}}u=i.createElement(l),ot(u,l,n),i.head.appendChild(u);break;default:throw Error(c(468,l))}u[at]=e,nt(u),l=u}e.stateNode=l}else _h(i,e.type,e.stateNode);else e.stateNode=jh(i,l,e.memoizedProps);else u!==l?(u===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):u.count--,l===null?_h(i,e.type,e.stateNode):jh(i,l,e.memoizedProps)):l===null&&e.stateNode!==null&&cc(e,e.memoizedProps,n.memoizedProps)}break;case 27:yt(t,e),bt(e),l&512&&(Pe||n===null||tn(n,n.return)),n!==null&&l&4&&cc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(yt(t,e),bt(e),l&512&&(Pe||n===null||tn(n,n.return)),e.flags&32){i=e.stateNode;try{Zl(i,"")}catch(ne){Ue(e,e.return,ne)}}l&4&&e.stateNode!=null&&(i=e.memoizedProps,cc(e,i,n!==null?n.memoizedProps:i)),l&1024&&(dc=!0);break;case 6:if(yt(t,e),bt(e),l&4){if(e.stateNode===null)throw Error(c(162));l=e.memoizedProps,n=e.stateNode;try{n.nodeValue=l}catch(ne){Ue(e,e.return,ne)}}break;case 3:if(Ku=null,i=Jt,Jt=Qu(t.containerInfo),yt(t,e),Jt=i,bt(e),l&4&&n!==null&&n.memoizedState.isDehydrated)try{Ca(t.containerInfo)}catch(ne){Ue(e,e.return,ne)}dc&&(dc=!1,_m(e));break;case 4:l=Jt,Jt=Qu(e.stateNode.containerInfo),yt(t,e),bt(e),Jt=l;break;case 12:yt(t,e),bt(e);break;case 31:yt(t,e),bt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,_u(e,l)));break;case 13:yt(t,e),bt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Ru=wt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,_u(e,l)));break;case 22:i=e.memoizedState!==null;var E=n!==null&&n.memoizedState!==null,O=xn,q=Pe;if(xn=O||i,Pe=q||E,yt(t,e),Pe=q,xn=O,bt(e),l&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(n===null||E||xn||Pe||jl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){E=n=t;try{if(u=E.stateNode,i)s=u.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none";else{g=E.stateNode;var Q=E.memoizedProps.style,D=Q!=null&&Q.hasOwnProperty("display")?Q.display:null;g.style.display=D==null||typeof D=="boolean"?"":(""+D).trim()}}catch(ne){Ue(E,E.return,ne)}}}else if(t.tag===6){if(n===null){E=t;try{E.stateNode.nodeValue=i?"":E.memoizedProps}catch(ne){Ue(E,E.return,ne)}}}else if(t.tag===18){if(n===null){E=t;try{var L=E.stateNode;i?xh(L,!0):xh(E.stateNode,!1)}catch(ne){Ue(E,E.return,ne)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,_u(e,n))));break;case 19:yt(t,e),bt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,_u(e,l)));break;case 30:break;case 21:break;default:yt(t,e),bt(e)}}function bt(e){var t=e.flags;if(t&2){try{for(var n,l=e.return;l!==null;){if(Em(l)){n=l;break}l=l.return}if(n==null)throw Error(c(160));switch(n.tag){case 27:var i=n.stateNode,u=sc(e);zu(e,u,i);break;case 5:var s=n.stateNode;n.flags&32&&(Zl(s,""),n.flags&=-33);var g=sc(e);zu(e,g,s);break;case 3:case 4:var E=n.stateNode.containerInfo,O=sc(e);fc(e,O,E);break;default:throw Error(c(161))}}catch(q){Ue(e,e.return,q)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function _m(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;_m(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function En(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Nm(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:Qn(4,t,t.return),jl(t);break;case 1:tn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&xm(t,t.return,n),jl(t);break;case 27:yi(t.stateNode);case 26:case 5:tn(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 Cn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,i=e,u=t,s=u.flags;switch(u.tag){case 0:case 11:case 15:Cn(i,u,n),oi(4,u);break;case 1:if(Cn(i,u,n),l=u,i=l.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(O){Ue(l,l.return,O)}if(l=u,i=l.updateQueue,i!==null){var g=l.stateNode;try{var E=i.shared.hiddenCallbacks;if(E!==null)for(i.shared.hiddenCallbacks=null,i=0;i<E.length;i++)od(E[i],g)}catch(O){Ue(l,l.return,O)}}n&&s&64&&bm(u),ci(u,u.return);break;case 27:Cm(u);case 26:case 5:Cn(i,u,n),n&&l===null&&s&4&&Sm(u),ci(u,u.return);break;case 12:Cn(i,u,n);break;case 31:Cn(i,u,n),n&&s&4&&Tm(i,u);break;case 13:Cn(i,u,n),n&&s&4&&jm(i,u);break;case 22:u.memoizedState===null&&Cn(i,u,n),ci(u,u.return);break;case 30:break;default:Cn(i,u,n)}t=t.sibling}}function mc(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&&Fa(n))}function hc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Fa(e))}function Ft(e,t,n,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Om(e,t,n,l),t=t.sibling}function Om(e,t,n,l){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Ft(e,t,n,l),i&2048&&oi(9,t);break;case 1:Ft(e,t,n,l);break;case 3:Ft(e,t,n,l),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Fa(e)));break;case 12:if(i&2048){Ft(e,t,n,l),e=t.stateNode;try{var u=t.memoizedProps,s=u.id,g=u.onPostCommit;typeof g=="function"&&g(s,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(E){Ue(t,t.return,E)}}else Ft(e,t,n,l);break;case 31:Ft(e,t,n,l);break;case 13:Ft(e,t,n,l);break;case 23:break;case 22:u=t.stateNode,s=t.alternate,t.memoizedState!==null?u._visibility&2?Ft(e,t,n,l):si(e,t):u._visibility&2?Ft(e,t,n,l):(u._visibility|=2,da(e,t,n,l,(t.subtreeFlags&10256)!==0||!1)),i&2048&&mc(s,t);break;case 24:Ft(e,t,n,l),i&2048&&hc(t.alternate,t);break;default:Ft(e,t,n,l)}}function da(e,t,n,l,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,s=t,g=n,E=l,O=s.flags;switch(s.tag){case 0:case 11:case 15:da(u,s,g,E,i),oi(8,s);break;case 23:break;case 22:var q=s.stateNode;s.memoizedState!==null?q._visibility&2?da(u,s,g,E,i):si(u,s):(q._visibility|=2,da(u,s,g,E,i)),i&&O&2048&&mc(s.alternate,s);break;case 24:da(u,s,g,E,i),i&&O&2048&&hc(s.alternate,s);break;default:da(u,s,g,E,i)}t=t.sibling}}function si(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,l=t,i=l.flags;switch(l.tag){case 22:si(n,l),i&2048&&mc(l.alternate,l);break;case 24:si(n,l),i&2048&&hc(l.alternate,l);break;default:si(n,l)}t=t.sibling}}var fi=8192;function ma(e,t,n){if(e.subtreeFlags&fi)for(e=e.child;e!==null;)Rm(e,t,n),e=e.sibling}function Rm(e,t,n){switch(e.tag){case 26:ma(e,t,n),e.flags&fi&&e.memoizedState!==null&&P0(n,Jt,e.memoizedState,e.memoizedProps);break;case 5:ma(e,t,n);break;case 3:case 4:var l=Jt;Jt=Qu(e.stateNode.containerInfo),ma(e,t,n),Jt=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=fi,fi=16777216,ma(e,t,n),fi=l):ma(e,t,n));break;default:ma(e,t,n)}}function Dm(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 di(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];lt=l,Lm(l,e)}Dm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Um(e),e=e.sibling}function Um(e){switch(e.tag){case 0:case 11:case 15:di(e),e.flags&2048&&Qn(9,e,e.return);break;case 3:di(e);break;case 12:di(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ou(e)):di(e);break;default:di(e)}}function Ou(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];lt=l,Lm(l,e)}Dm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Qn(8,t,t.return),Ou(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Ou(t));break;default:Ou(t)}e=e.sibling}}function Lm(e,t){for(;lt!==null;){var n=lt;switch(n.tag){case 0:case 11:case 15:Qn(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Fa(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,lt=l;else e:for(n=e;lt!==null;){l=lt;var i=l.sibling,u=l.return;if(Am(l),l===n){lt=null;break e}if(i!==null){i.return=u,lt=i;break e}lt=u}}}var h0={getCacheForType:function(e){var t=ut(We),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ut(We).controller.signal}},v0=typeof WeakMap=="function"?WeakMap:Map,Re=0,Be=null,we=null,Ae=0,De=0,_t=null,Zn=!1,ha=!1,vc=!1,wn=0,Ke=0,Kn=0,zl=0,pc=0,Ot=0,va=0,mi=null,xt=null,gc=!1,Ru=0,km=0,Du=1/0,Uu=null,Jn=null,et=0,Fn=null,pa=null,Nn=0,yc=0,bc=null,Hm=null,hi=0,xc=null;function Rt(){return(Re&2)!==0&&Ae!==0?Ae&-Ae:w.T!==null?Ac():Ps()}function Bm(){if(Ot===0)if((Ae&536870912)===0||Te){var e=Xi;Xi<<=1,(Xi&3932160)===0&&(Xi=262144),Ot=e}else Ot=536870912;return e=jt.current,e!==null&&(e.flags|=32),Ot}function St(e,t,n){(e===Be&&(De===2||De===9)||e.cancelPendingCommit!==null)&&(ga(e,0),Wn(e,Ae,Ot,!1)),Ua(e,n),((Re&2)===0||e!==Be)&&(e===Be&&((Re&2)===0&&(zl|=n),Ke===4&&Wn(e,Ae,Ot,!1)),nn(e))}function Gm(e,t,n){if((Re&6)!==0)throw Error(c(327));var l=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Da(e,t),i=l?y0(e,t):Ec(e,t,!0),u=l;do{if(i===0){ha&&!l&&Wn(e,t,0,!1);break}else{if(n=e.current.alternate,u&&!p0(n)){i=Ec(e,t,!1),u=!1;continue}if(i===2){if(u=t,e.errorRecoveryDisabledLanes&u)var s=0;else s=e.pendingLanes&-536870913,s=s!==0?s:s&536870912?536870912:0;if(s!==0){t=s;e:{var g=e;i=mi;var E=g.current.memoizedState.isDehydrated;if(E&&(ga(g,s).flags|=256),s=Ec(g,s,!1),s!==2){if(vc&&!E){g.errorRecoveryDisabledLanes|=u,zl|=u,i=4;break e}u=xt,xt=i,u!==null&&(xt===null?xt=u:xt.push.apply(xt,u))}i=s}if(u=!1,i!==2)continue}}if(i===1){ga(e,0),Wn(e,t,0,!0);break}e:{switch(l=e,u=i,u){case 0:case 1:throw Error(c(345));case 4:if((t&4194048)!==t)break;case 6:Wn(l,t,Ot,!Zn);break e;case 2:xt=null;break;case 3:case 5:break;default:throw Error(c(329))}if((t&62914560)===t&&(i=Ru+300-wt(),10<i)){if(Wn(l,t,Ot,!Zn),Qi(l,0,!0)!==0)break e;Nn=t,l.timeoutHandle=gh(qm.bind(null,l,n,xt,Uu,gc,t,Ot,zl,va,Zn,u,"Throttled",-0,0),i);break e}qm(l,n,xt,Uu,gc,t,Ot,zl,va,Zn,u,null,-0,0)}}break}while(!0);nn(e)}function qm(e,t,n,l,i,u,s,g,E,O,q,Q,D,L){if(e.timeoutHandle=-1,Q=t.subtreeFlags,Q&8192||(Q&16785408)===16785408){Q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:sn},Rm(t,u,Q);var ne=(u&62914560)===u?Ru-wt():(u&4194048)===u?km-wt():0;if(ne=eb(Q,ne),ne!==null){Nn=u,e.cancelPendingCommit=ne(Fm.bind(null,e,t,u,n,l,i,s,g,E,q,Q,null,D,L)),Wn(e,u,s,!O);return}}Fm(e,t,u,n,l,i,s,g,E)}function p0(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var i=n[l],u=i.getSnapshot;i=i.value;try{if(!Mt(u(),i))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 Wn(e,t,n,l){t&=~pc,t&=~zl,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var i=t;0<i;){var u=31-At(i),s=1<<u;l[u]=-1,i&=~s}n!==0&&Ws(e,n,t)}function Lu(){return(Re&6)===0?(vi(0),!1):!0}function Sc(){if(we!==null){if(De===0)var e=we.return;else e=we,hn=Sl=null,ko(e),ra=null,$a=0,e=we;for(;e!==null;)ym(e.alternate,e),e=e.return;we=null}}function ga(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,L0(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Nn=0,Sc(),Be=e,we=n=dn(e.current,null),Ae=t,De=0,_t=null,Zn=!1,ha=Da(e,t),vc=!1,va=Ot=pc=zl=Kn=Ke=0,xt=mi=null,gc=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var i=31-At(l),u=1<<i;t|=e[i],l&=~u}return wn=t,lu(),n}function Ym(e,t){Se=null,w.H=ii,t===ua||t===fu?(t=ad(),De=3):t===No?(t=ad(),De=4):De=t===Po?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,_t=t,we===null&&(Ke=1,Nu(e,Bt(t,e.current)))}function Xm(){var e=jt.current;return e===null?!0:(Ae&4194048)===Ae?Xt===null:(Ae&62914560)===Ae||(Ae&536870912)!==0?e===Xt:!1}function Vm(){var e=w.H;return w.H=ii,e===null?ii:e}function Qm(){var e=w.A;return w.A=h0,e}function ku(){Ke=4,Zn||(Ae&4194048)!==Ae&&jt.current!==null||(ha=!0),(Kn&134217727)===0&&(zl&134217727)===0||Be===null||Wn(Be,Ae,Ot,!1)}function Ec(e,t,n){var l=Re;Re|=2;var i=Vm(),u=Qm();(Be!==e||Ae!==t)&&(Uu=null,ga(e,t)),t=!1;var s=Ke;e:do try{if(De!==0&&we!==null){var g=we,E=_t;switch(De){case 8:Sc(),s=6;break e;case 3:case 2:case 9:case 6:jt.current===null&&(t=!0);var O=De;if(De=0,_t=null,ya(e,g,E,O),n&&ha){s=0;break e}break;default:O=De,De=0,_t=null,ya(e,g,E,O)}}g0(),s=Ke;break}catch(q){Ym(e,q)}while(!0);return t&&e.shellSuspendCounter++,hn=Sl=null,Re=l,w.H=i,w.A=u,we===null&&(Be=null,Ae=0,lu()),s}function g0(){for(;we!==null;)Zm(we)}function y0(e,t){var n=Re;Re|=2;var l=Vm(),i=Qm();Be!==e||Ae!==t?(Uu=null,Du=wt()+500,ga(e,t)):ha=Da(e,t);e:do try{if(De!==0&&we!==null){t=we;var u=_t;t:switch(De){case 1:De=0,_t=null,ya(e,t,u,1);break;case 2:case 9:if(nd(u)){De=0,_t=null,Km(t);break}t=function(){De!==2&&De!==9||Be!==e||(De=7),nn(e)},u.then(t,t);break e;case 3:De=7;break e;case 4:De=5;break e;case 7:nd(u)?(De=0,_t=null,Km(t)):(De=0,_t=null,ya(e,t,u,7));break;case 5:var s=null;switch(we.tag){case 26:s=we.memoizedState;case 5:case 27:var g=we;if(s?Oh(s):g.stateNode.complete){De=0,_t=null;var E=g.sibling;if(E!==null)we=E;else{var O=g.return;O!==null?(we=O,Hu(O)):we=null}break t}}De=0,_t=null,ya(e,t,u,5);break;case 6:De=0,_t=null,ya(e,t,u,6);break;case 8:Sc(),Ke=6;break e;default:throw Error(c(462))}}b0();break}catch(q){Ym(e,q)}while(!0);return hn=Sl=null,w.H=l,w.A=i,Re=n,we!==null?0:(Be=null,Ae=0,lu(),Ke)}function b0(){for(;we!==null&&!Yg();)Zm(we)}function Zm(e){var t=pm(e.alternate,e,wn);e.memoizedProps=e.pendingProps,t===null?Hu(e):we=t}function Km(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=sm(n,t,t.pendingProps,t.type,void 0,Ae);break;case 11:t=sm(n,t,t.pendingProps,t.type.render,t.ref,Ae);break;case 5:ko(t);default:ym(n,t),t=we=Qf(t,wn),t=pm(n,t,wn)}e.memoizedProps=e.pendingProps,t===null?Hu(e):we=t}function ya(e,t,n,l){hn=Sl=null,ko(t),ra=null,$a=0;var i=t.return;try{if(r0(e,i,t,n,Ae)){Ke=1,Nu(e,Bt(n,e.current)),we=null;return}}catch(u){if(i!==null)throw we=i,u;Ke=1,Nu(e,Bt(n,e.current)),we=null;return}t.flags&32768?(Te||l===1?e=!0:ha||(Ae&536870912)!==0?e=!1:(Zn=e=!0,(l===2||l===9||l===3||l===6)&&(l=jt.current,l!==null&&l.tag===13&&(l.flags|=16384))),Jm(t,e)):Hu(t)}function Hu(e){var t=e;do{if((t.flags&32768)!==0){Jm(t,Zn);return}e=t.return;var n=s0(t.alternate,t,wn);if(n!==null){we=n;return}if(t=t.sibling,t!==null){we=t;return}we=t=e}while(t!==null);Ke===0&&(Ke=5)}function Jm(e,t){do{var n=f0(e.alternate,e);if(n!==null){n.flags&=32767,we=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){we=e;return}we=e=n}while(e!==null);Ke=6,we=null}function Fm(e,t,n,l,i,u,s,g,E){e.cancelPendingCommit=null;do Bu();while(et!==0);if((Re&6)!==0)throw Error(c(327));if(t!==null){if(t===e.current)throw Error(c(177));if(u=t.lanes|t.childLanes,u|=co,Ig(e,n,u,s,g,E),e===Be&&(we=Be=null,Ae=0),pa=t,Fn=e,Nn=n,yc=u,bc=i,Hm=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,C0(qi,function(){return eh(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=w.T,w.T=null,i=B.p,B.p=2,s=Re,Re|=4;try{d0(e,t,n)}finally{Re=s,B.p=i,w.T=l}}et=1,Wm(),$m(),Im()}}function Wm(){if(et===1){et=0;var e=Fn,t=pa,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=w.T,w.T=null;var l=B.p;B.p=2;var i=Re;Re|=4;try{zm(t,e);var u=Dc,s=Lf(e.containerInfo),g=u.focusedElem,E=u.selectionRange;if(s!==g&&g&&g.ownerDocument&&Uf(g.ownerDocument.documentElement,g)){if(E!==null&&ao(g)){var O=E.start,q=E.end;if(q===void 0&&(q=O),"selectionStart"in g)g.selectionStart=O,g.selectionEnd=Math.min(q,g.value.length);else{var Q=g.ownerDocument||document,D=Q&&Q.defaultView||window;if(D.getSelection){var L=D.getSelection(),ne=g.textContent.length,fe=Math.min(E.start,ne),He=E.end===void 0?fe:Math.min(E.end,ne);!L.extend&&fe>He&&(s=He,He=fe,fe=s);var j=Df(g,fe),A=Df(g,He);if(j&&A&&(L.rangeCount!==1||L.anchorNode!==j.node||L.anchorOffset!==j.offset||L.focusNode!==A.node||L.focusOffset!==A.offset)){var _=Q.createRange();_.setStart(j.node,j.offset),L.removeAllRanges(),fe>He?(L.addRange(_),L.extend(A.node,A.offset)):(_.setEnd(A.node,A.offset),L.addRange(_))}}}}for(Q=[],L=g;L=L.parentNode;)L.nodeType===1&&Q.push({element:L,left:L.scrollLeft,top:L.scrollTop});for(typeof g.focus=="function"&&g.focus(),g=0;g<Q.length;g++){var V=Q[g];V.element.scrollLeft=V.left,V.element.scrollTop=V.top}}$u=!!Rc,Dc=Rc=null}finally{Re=i,B.p=l,w.T=n}}e.current=t,et=2}}function $m(){if(et===2){et=0;var e=Fn,t=pa,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=w.T,w.T=null;var l=B.p;B.p=2;var i=Re;Re|=4;try{Nm(e,t.alternate,t)}finally{Re=i,B.p=l,w.T=n}}et=3}}function Im(){if(et===4||et===3){et=0,Xg();var e=Fn,t=pa,n=Nn,l=Hm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?et=5:(et=0,pa=Fn=null,Pm(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(Jn=null),Br(n),t=t.stateNode,Nt&&typeof Nt.onCommitFiberRoot=="function")try{Nt.onCommitFiberRoot(Ra,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=w.T,i=B.p,B.p=2,w.T=null;try{for(var u=e.onRecoverableError,s=0;s<l.length;s++){var g=l[s];u(g.value,{componentStack:g.stack})}}finally{w.T=t,B.p=i}}(Nn&3)!==0&&Bu(),nn(e),i=e.pendingLanes,(n&261930)!==0&&(i&42)!==0?e===xc?hi++:(hi=0,xc=e):hi=0,vi(0)}}function Pm(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Fa(t)))}function Bu(){return Wm(),$m(),Im(),eh()}function eh(){if(et!==5)return!1;var e=Fn,t=yc;yc=0;var n=Br(Nn),l=w.T,i=B.p;try{B.p=32>n?32:n,w.T=null,n=bc,bc=null;var u=Fn,s=Nn;if(et=0,pa=Fn=null,Nn=0,(Re&6)!==0)throw Error(c(331));var g=Re;if(Re|=4,Um(u.current),Om(u,u.current,s,n),Re=g,vi(0,!1),Nt&&typeof Nt.onPostCommitFiberRoot=="function")try{Nt.onPostCommitFiberRoot(Ra,u)}catch{}return!0}finally{B.p=i,w.T=l,Pm(e,t)}}function th(e,t,n){t=Bt(n,t),t=Io(e.stateNode,t,2),e=Yn(e,t,2),e!==null&&(Ua(e,2),nn(e))}function Ue(e,t,n){if(e.tag===3)th(e,e,n);else for(;t!==null;){if(t.tag===3){th(t,e,n);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Jn===null||!Jn.has(l))){e=Bt(n,e),n=nm(2),l=Yn(t,n,2),l!==null&&(lm(n,l,t,e),Ua(l,2),nn(l));break}}t=t.return}}function Cc(e,t,n){var l=e.pingCache;if(l===null){l=e.pingCache=new v0;var i=new Set;l.set(t,i)}else i=l.get(t),i===void 0&&(i=new Set,l.set(t,i));i.has(n)||(vc=!0,i.add(n),e=x0.bind(null,e,t,n),t.then(e,e))}function x0(e,t,n){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Be===e&&(Ae&n)===n&&(Ke===4||Ke===3&&(Ae&62914560)===Ae&&300>wt()-Ru?(Re&2)===0&&ga(e,0):pc|=n,va===Ae&&(va=0)),nn(e)}function nh(e,t){t===0&&(t=Fs()),e=yl(e,t),e!==null&&(Ua(e,t),nn(e))}function S0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),nh(e,n)}function E0(e,t){var n=0;switch(e.tag){case 31:case 13:var l=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(c(314))}l!==null&&l.delete(t),nh(e,n)}function C0(e,t){return Ur(e,t)}var Gu=null,ba=null,wc=!1,qu=!1,Nc=!1,$n=0;function nn(e){e!==ba&&e.next===null&&(ba===null?Gu=ba=e:ba=ba.next=e),qu=!0,wc||(wc=!0,N0())}function vi(e,t){if(!Nc&&qu){Nc=!0;do for(var n=!1,l=Gu;l!==null;){if(e!==0){var i=l.pendingLanes;if(i===0)var u=0;else{var s=l.suspendedLanes,g=l.pingedLanes;u=(1<<31-At(42|e)+1)-1,u&=i&~(s&~g),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(n=!0,uh(l,u))}else u=Ae,u=Qi(l,l===Be?u:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(u&3)===0||Da(l,u)||(n=!0,uh(l,u));l=l.next}while(n);Nc=!1}}function w0(){lh()}function lh(){qu=wc=!1;var e=0;$n!==0&&U0()&&(e=$n);for(var t=wt(),n=null,l=Gu;l!==null;){var i=l.next,u=ah(l,t);u===0?(l.next=null,n===null?Gu=i:n.next=i,i===null&&(ba=n)):(n=l,(e!==0||(u&3)!==0)&&(qu=!0)),l=i}et!==0&&et!==5||vi(e),$n!==0&&($n=0)}function ah(e,t){for(var n=e.suspendedLanes,l=e.pingedLanes,i=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var s=31-At(u),g=1<<s,E=i[s];E===-1?((g&n)===0||(g&l)!==0)&&(i[s]=$g(g,t)):E<=t&&(e.expiredLanes|=g),u&=~g}if(t=Be,n=Ae,n=Qi(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,n===0||e===t&&(De===2||De===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Lr(l),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Da(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(l!==null&&Lr(l),Br(n)){case 2:case 8:n=Ks;break;case 32:n=qi;break;case 268435456:n=Js;break;default:n=qi}return l=ih.bind(null,e),n=Ur(n,l),e.callbackPriority=t,e.callbackNode=n,t}return l!==null&&l!==null&&Lr(l),e.callbackPriority=2,e.callbackNode=null,2}function ih(e,t){if(et!==0&&et!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Bu()&&e.callbackNode!==n)return null;var l=Ae;return l=Qi(e,e===Be?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Gm(e,l,t),ah(e,wt()),e.callbackNode!=null&&e.callbackNode===n?ih.bind(null,e):null)}function uh(e,t){if(Bu())return null;Gm(e,t,!0)}function N0(){k0(function(){(Re&6)!==0?Ur(Zs,w0):lh()})}function Ac(){if($n===0){var e=aa;e===0&&(e=Yi,Yi<<=1,(Yi&261888)===0&&(Yi=256)),$n=e}return $n}function rh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Fi(""+e)}function oh(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 A0(e,t,n,l,i){if(t==="submit"&&n&&n.stateNode===i){var u=rh((i[vt]||null).action),s=l.submitter;s&&(t=(t=s[vt]||null)?rh(t.formAction):s.getAttribute("formAction"),t!==null&&(u=t,s=null));var g=new Pi("action","action",null,l,i);e.push({event:g,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if($n!==0){var E=s?oh(i,s):new FormData(i);Zo(n,{pending:!0,data:E,method:i.method,action:u},null,E)}}else typeof u=="function"&&(g.preventDefault(),E=s?oh(i,s):new FormData(i),Zo(n,{pending:!0,data:E,method:i.method,action:u},u,E))},currentTarget:i}]})}}for(var Mc=0;Mc<oo.length;Mc++){var Tc=oo[Mc],M0=Tc.toLowerCase(),T0=Tc[0].toUpperCase()+Tc.slice(1);Kt(M0,"on"+T0)}Kt(Bf,"onAnimationEnd"),Kt(Gf,"onAnimationIteration"),Kt(qf,"onAnimationStart"),Kt("dblclick","onDoubleClick"),Kt("focusin","onFocus"),Kt("focusout","onBlur"),Kt(Vy,"onTransitionRun"),Kt(Qy,"onTransitionStart"),Kt(Zy,"onTransitionCancel"),Kt(Yf,"onTransitionEnd"),Vl("onMouseEnter",["mouseout","mouseover"]),Vl("onMouseLeave",["mouseout","mouseover"]),Vl("onPointerEnter",["pointerout","pointerover"]),Vl("onPointerLeave",["pointerout","pointerover"]),hl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),hl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),hl("onBeforeInput",["compositionend","keypress","textInput","paste"]),hl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),hl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),hl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var pi="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(" "),j0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(pi));function ch(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var l=e[n],i=l.event;l=l.listeners;e:{var u=void 0;if(t)for(var s=l.length-1;0<=s;s--){var g=l[s],E=g.instance,O=g.currentTarget;if(g=g.listener,E!==u&&i.isPropagationStopped())break e;u=g,i.currentTarget=O;try{u(i)}catch(q){nu(q)}i.currentTarget=null,u=E}else for(s=0;s<l.length;s++){if(g=l[s],E=g.instance,O=g.currentTarget,g=g.listener,E!==u&&i.isPropagationStopped())break e;u=g,i.currentTarget=O;try{u(i)}catch(q){nu(q)}i.currentTarget=null,u=E}}}}function Ne(e,t){var n=t[Gr];n===void 0&&(n=t[Gr]=new Set);var l=e+"__bubble";n.has(l)||(sh(t,e,2,!1),n.add(l))}function jc(e,t,n){var l=0;t&&(l|=4),sh(n,e,l,t)}var Yu="_reactListening"+Math.random().toString(36).slice(2);function zc(e){if(!e[Yu]){e[Yu]=!0,nf.forEach(function(n){n!=="selectionchange"&&(j0.has(n)||jc(n,!1,e),jc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Yu]||(t[Yu]=!0,jc("selectionchange",!1,t))}}function sh(e,t,n,l){switch(Bh(t)){case 2:var i=lb;break;case 8:i=ab;break;default:i=Qc}n=i.bind(null,t,n,e),i=void 0,!Fr||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),l?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function _c(e,t,n,l,i){var u=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var s=l.tag;if(s===3||s===4){var g=l.stateNode.containerInfo;if(g===i)break;if(s===4)for(s=l.return;s!==null;){var E=s.tag;if((E===3||E===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;g!==null;){if(s=ql(g),s===null)return;if(E=s.tag,E===5||E===6||E===26||E===27){l=u=s;continue e}g=g.parentNode}}l=l.return}vf(function(){var O=u,q=Kr(n),Q=[];e:{var D=Xf.get(e);if(D!==void 0){var L=Pi,ne=e;switch(e){case"keypress":if($i(n)===0)break e;case"keydown":case"keyup":L=Ey;break;case"focusin":ne="focus",L=Pr;break;case"focusout":ne="blur",L=Pr;break;case"beforeblur":case"afterblur":L=Pr;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":L=yf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":L=sy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":L=Ny;break;case Bf:case Gf:case qf:L=my;break;case Yf:L=My;break;case"scroll":case"scrollend":L=oy;break;case"wheel":L=jy;break;case"copy":case"cut":case"paste":L=vy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":L=xf;break;case"toggle":case"beforetoggle":L=_y}var fe=(t&4)!==0,He=!fe&&(e==="scroll"||e==="scrollend"),j=fe?D!==null?D+"Capture":null:D;fe=[];for(var A=O,_;A!==null;){var V=A;if(_=V.stateNode,V=V.tag,V!==5&&V!==26&&V!==27||_===null||j===null||(V=Ha(A,j),V!=null&&fe.push(gi(A,V,_))),He)break;A=A.return}0<fe.length&&(D=new L(D,ne,null,n,q),Q.push({event:D,listeners:fe}))}}if((t&7)===0){e:{if(D=e==="mouseover"||e==="pointerover",L=e==="mouseout"||e==="pointerout",D&&n!==Zr&&(ne=n.relatedTarget||n.fromElement)&&(ql(ne)||ne[Gl]))break e;if((L||D)&&(D=q.window===q?q:(D=q.ownerDocument)?D.defaultView||D.parentWindow:window,L?(ne=n.relatedTarget||n.toElement,L=O,ne=ne?ql(ne):null,ne!==null&&(He=m(ne),fe=ne.tag,ne!==He||fe!==5&&fe!==27&&fe!==6)&&(ne=null)):(L=null,ne=O),L!==ne)){if(fe=yf,V="onMouseLeave",j="onMouseEnter",A="mouse",(e==="pointerout"||e==="pointerover")&&(fe=xf,V="onPointerLeave",j="onPointerEnter",A="pointer"),He=L==null?D:ka(L),_=ne==null?D:ka(ne),D=new fe(V,A+"leave",L,n,q),D.target=He,D.relatedTarget=_,V=null,ql(q)===O&&(fe=new fe(j,A+"enter",ne,n,q),fe.target=_,fe.relatedTarget=He,V=fe),He=V,L&&ne)t:{for(fe=z0,j=L,A=ne,_=0,V=j;V;V=fe(V))_++;V=0;for(var se=A;se;se=fe(se))V++;for(;0<_-V;)j=fe(j),_--;for(;0<V-_;)A=fe(A),V--;for(;_--;){if(j===A||A!==null&&j===A.alternate){fe=j;break t}j=fe(j),A=fe(A)}fe=null}else fe=null;L!==null&&fh(Q,D,L,fe,!1),ne!==null&&He!==null&&fh(Q,He,ne,fe,!0)}}e:{if(D=O?ka(O):window,L=D.nodeName&&D.nodeName.toLowerCase(),L==="select"||L==="input"&&D.type==="file")var _e=Tf;else if(Af(D))if(jf)_e=qy;else{_e=By;var oe=Hy}else L=D.nodeName,!L||L.toLowerCase()!=="input"||D.type!=="checkbox"&&D.type!=="radio"?O&&Qr(O.elementType)&&(_e=Tf):_e=Gy;if(_e&&(_e=_e(e,O))){Mf(Q,_e,n,q);break e}oe&&oe(e,D,O),e==="focusout"&&O&&D.type==="number"&&O.memoizedProps.value!=null&&Vr(D,"number",D.value)}switch(oe=O?ka(O):window,e){case"focusin":(Af(oe)||oe.contentEditable==="true")&&(Wl=oe,io=O,Za=null);break;case"focusout":Za=io=Wl=null;break;case"mousedown":uo=!0;break;case"contextmenu":case"mouseup":case"dragend":uo=!1,kf(Q,n,q);break;case"selectionchange":if(Xy)break;case"keydown":case"keyup":kf(Q,n,q)}var Ee;if(to)e:{switch(e){case"compositionstart":var Me="onCompositionStart";break e;case"compositionend":Me="onCompositionEnd";break e;case"compositionupdate":Me="onCompositionUpdate";break e}Me=void 0}else Fl?wf(e,n)&&(Me="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Me="onCompositionStart");Me&&(Sf&&n.locale!=="ko"&&(Fl||Me!=="onCompositionStart"?Me==="onCompositionEnd"&&Fl&&(Ee=pf()):(Un=q,Wr="value"in Un?Un.value:Un.textContent,Fl=!0)),oe=Xu(O,Me),0<oe.length&&(Me=new bf(Me,e,null,n,q),Q.push({event:Me,listeners:oe}),Ee?Me.data=Ee:(Ee=Nf(n),Ee!==null&&(Me.data=Ee)))),(Ee=Ry?Dy(e,n):Uy(e,n))&&(Me=Xu(O,"onBeforeInput"),0<Me.length&&(oe=new bf("onBeforeInput","beforeinput",null,n,q),Q.push({event:oe,listeners:Me}),oe.data=Ee)),A0(Q,e,O,n,q)}ch(Q,t)})}function gi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Xu(e,t){for(var n=t+"Capture",l=[];e!==null;){var i=e,u=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||u===null||(i=Ha(e,n),i!=null&&l.unshift(gi(e,i,u)),i=Ha(e,t),i!=null&&l.push(gi(e,i,u))),e.tag===3)return l;e=e.return}return[]}function z0(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function fh(e,t,n,l,i){for(var u=t._reactName,s=[];n!==null&&n!==l;){var g=n,E=g.alternate,O=g.stateNode;if(g=g.tag,E!==null&&E===l)break;g!==5&&g!==26&&g!==27||O===null||(E=O,i?(O=Ha(n,u),O!=null&&s.unshift(gi(n,O,E))):i||(O=Ha(n,u),O!=null&&s.push(gi(n,O,E)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var _0=/\r\n?/g,O0=/\u0000|\uFFFD/g;function dh(e){return(typeof e=="string"?e:""+e).replace(_0,`
49
- `).replace(O0,"")}function mh(e,t){return t=dh(t),dh(e)===t}function ke(e,t,n,l,i,u){switch(n){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Zl(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Zl(e,""+l);break;case"className":Ki(e,"class",l);break;case"tabIndex":Ki(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Ki(e,n,l);break;case"style":mf(e,l,u);break;case"data":if(t!=="object"){Ki(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=Fi(""+l),e.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(n==="formAction"?(t!=="input"&&ke(e,t,"name",i.name,i,null),ke(e,t,"formEncType",i.formEncType,i,null),ke(e,t,"formMethod",i.formMethod,i,null),ke(e,t,"formTarget",i.formTarget,i,null)):(ke(e,t,"encType",i.encType,i,null),ke(e,t,"method",i.method,i,null),ke(e,t,"target",i.target,i,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=Fi(""+l),e.setAttribute(n,l);break;case"onClick":l!=null&&(e.onclick=sn);break;case"onScroll":l!=null&&Ne("scroll",e);break;case"onScrollEnd":l!=null&&Ne("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(c(61));if(n=l.__html,n!=null){if(i.children!=null)throw Error(c(60));e.innerHTML=n}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}n=Fi(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""+l):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":l===!0?e.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,l):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(n,l):e.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(n):e.setAttribute(n,l);break;case"popover":Ne("beforetoggle",e),Ne("toggle",e),Zi(e,"popover",l);break;case"xlinkActuate":cn(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":cn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":cn(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":cn(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":cn(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":cn(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":cn(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":cn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":cn(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Zi(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=uy.get(n)||n,Zi(e,n,l))}}function Oc(e,t,n,l,i,u){switch(n){case"style":mf(e,l,u);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(c(61));if(n=l.__html,n!=null){if(i.children!=null)throw Error(c(60));e.innerHTML=n}}break;case"children":typeof l=="string"?Zl(e,l):(typeof l=="number"||typeof l=="bigint")&&Zl(e,""+l);break;case"onScroll":l!=null&&Ne("scroll",e);break;case"onScrollEnd":l!=null&&Ne("scrollend",e);break;case"onClick":l!=null&&(e.onclick=sn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!lf.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(i=n.endsWith("Capture"),t=n.slice(2,i?n.length-7:void 0),u=e[vt]||null,u=u!=null?u[n]:null,typeof u=="function"&&e.removeEventListener(t,u,i),typeof l=="function")){typeof u!="function"&&u!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,l,i);break e}n in e?e[n]=l:l===!0?e.setAttribute(n,""):Zi(e,n,l)}}}function ot(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ne("error",e),Ne("load",e);var l=!1,i=!1,u;for(u in n)if(n.hasOwnProperty(u)){var s=n[u];if(s!=null)switch(u){case"src":l=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:ke(e,t,u,s,n,null)}}i&&ke(e,t,"srcSet",n.srcSet,n,null),l&&ke(e,t,"src",n.src,n,null);return;case"input":Ne("invalid",e);var g=u=s=i=null,E=null,O=null;for(l in n)if(n.hasOwnProperty(l)){var q=n[l];if(q!=null)switch(l){case"name":i=q;break;case"type":s=q;break;case"checked":E=q;break;case"defaultChecked":O=q;break;case"value":u=q;break;case"defaultValue":g=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(c(137,t));break;default:ke(e,t,l,q,n,null)}}cf(e,u,g,E,O,s,i,!1);return;case"select":Ne("invalid",e),l=s=u=null;for(i in n)if(n.hasOwnProperty(i)&&(g=n[i],g!=null))switch(i){case"value":u=g;break;case"defaultValue":s=g;break;case"multiple":l=g;default:ke(e,t,i,g,n,null)}t=u,n=s,e.multiple=!!l,t!=null?Ql(e,!!l,t,!1):n!=null&&Ql(e,!!l,n,!0);return;case"textarea":Ne("invalid",e),u=i=l=null;for(s in n)if(n.hasOwnProperty(s)&&(g=n[s],g!=null))switch(s){case"value":l=g;break;case"defaultValue":i=g;break;case"children":u=g;break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(c(91));break;default:ke(e,t,s,g,n,null)}ff(e,l,i,u);return;case"option":for(E in n)if(n.hasOwnProperty(E)&&(l=n[E],l!=null))switch(E){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:ke(e,t,E,l,n,null)}return;case"dialog":Ne("beforetoggle",e),Ne("toggle",e),Ne("cancel",e),Ne("close",e);break;case"iframe":case"object":Ne("load",e);break;case"video":case"audio":for(l=0;l<pi.length;l++)Ne(pi[l],e);break;case"image":Ne("error",e),Ne("load",e);break;case"details":Ne("toggle",e);break;case"embed":case"source":case"link":Ne("error",e),Ne("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(O in n)if(n.hasOwnProperty(O)&&(l=n[O],l!=null))switch(O){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:ke(e,t,O,l,n,null)}return;default:if(Qr(t)){for(q in n)n.hasOwnProperty(q)&&(l=n[q],l!==void 0&&Oc(e,t,q,l,n,void 0));return}}for(g in n)n.hasOwnProperty(g)&&(l=n[g],l!=null&&ke(e,t,g,l,n,null))}function R0(e,t,n,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,u=null,s=null,g=null,E=null,O=null,q=null;for(L in n){var Q=n[L];if(n.hasOwnProperty(L)&&Q!=null)switch(L){case"checked":break;case"value":break;case"defaultValue":E=Q;default:l.hasOwnProperty(L)||ke(e,t,L,null,l,Q)}}for(var D in l){var L=l[D];if(Q=n[D],l.hasOwnProperty(D)&&(L!=null||Q!=null))switch(D){case"type":u=L;break;case"name":i=L;break;case"checked":O=L;break;case"defaultChecked":q=L;break;case"value":s=L;break;case"defaultValue":g=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(c(137,t));break;default:L!==Q&&ke(e,t,D,L,l,Q)}}Xr(e,s,g,E,O,q,u,i);return;case"select":L=s=g=D=null;for(u in n)if(E=n[u],n.hasOwnProperty(u)&&E!=null)switch(u){case"value":break;case"multiple":L=E;default:l.hasOwnProperty(u)||ke(e,t,u,null,l,E)}for(i in l)if(u=l[i],E=n[i],l.hasOwnProperty(i)&&(u!=null||E!=null))switch(i){case"value":D=u;break;case"defaultValue":g=u;break;case"multiple":s=u;default:u!==E&&ke(e,t,i,u,l,E)}t=g,n=s,l=L,D!=null?Ql(e,!!n,D,!1):!!l!=!!n&&(t!=null?Ql(e,!!n,t,!0):Ql(e,!!n,n?[]:"",!1));return;case"textarea":L=D=null;for(g in n)if(i=n[g],n.hasOwnProperty(g)&&i!=null&&!l.hasOwnProperty(g))switch(g){case"value":break;case"children":break;default:ke(e,t,g,null,l,i)}for(s in l)if(i=l[s],u=n[s],l.hasOwnProperty(s)&&(i!=null||u!=null))switch(s){case"value":D=i;break;case"defaultValue":L=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(c(91));break;default:i!==u&&ke(e,t,s,i,l,u)}sf(e,D,L);return;case"option":for(var ne in n)if(D=n[ne],n.hasOwnProperty(ne)&&D!=null&&!l.hasOwnProperty(ne))switch(ne){case"selected":e.selected=!1;break;default:ke(e,t,ne,null,l,D)}for(E in l)if(D=l[E],L=n[E],l.hasOwnProperty(E)&&D!==L&&(D!=null||L!=null))switch(E){case"selected":e.selected=D&&typeof D!="function"&&typeof D!="symbol";break;default:ke(e,t,E,D,l,L)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var fe in n)D=n[fe],n.hasOwnProperty(fe)&&D!=null&&!l.hasOwnProperty(fe)&&ke(e,t,fe,null,l,D);for(O in l)if(D=l[O],L=n[O],l.hasOwnProperty(O)&&D!==L&&(D!=null||L!=null))switch(O){case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(c(137,t));break;default:ke(e,t,O,D,l,L)}return;default:if(Qr(t)){for(var He in n)D=n[He],n.hasOwnProperty(He)&&D!==void 0&&!l.hasOwnProperty(He)&&Oc(e,t,He,void 0,l,D);for(q in l)D=l[q],L=n[q],!l.hasOwnProperty(q)||D===L||D===void 0&&L===void 0||Oc(e,t,q,D,l,L);return}}for(var j in n)D=n[j],n.hasOwnProperty(j)&&D!=null&&!l.hasOwnProperty(j)&&ke(e,t,j,null,l,D);for(Q in l)D=l[Q],L=n[Q],!l.hasOwnProperty(Q)||D===L||D==null&&L==null||ke(e,t,Q,D,l,L)}function hh(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function D0(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var i=n[l],u=i.transferSize,s=i.initiatorType,g=i.duration;if(u&&g&&hh(s)){for(s=0,g=i.responseEnd,l+=1;l<n.length;l++){var E=n[l],O=E.startTime;if(O>g)break;var q=E.transferSize,Q=E.initiatorType;q&&hh(Q)&&(E=E.responseEnd,s+=q*(E<g?1:(g-O)/(E-O)))}if(--l,t+=8*(u+s)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Rc=null,Dc=null;function Vu(e){return e.nodeType===9?e:e.ownerDocument}function vh(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 ph(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 Uc(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 Lc=null;function U0(){var e=window.event;return e&&e.type==="popstate"?e===Lc?!1:(Lc=e,!0):(Lc=null,!1)}var gh=typeof setTimeout=="function"?setTimeout:void 0,L0=typeof clearTimeout=="function"?clearTimeout:void 0,yh=typeof Promise=="function"?Promise:void 0,k0=typeof queueMicrotask=="function"?queueMicrotask:typeof yh<"u"?function(e){return yh.resolve(null).then(e).catch(H0)}:gh;function H0(e){setTimeout(function(){throw e})}function In(e){return e==="head"}function bh(e,t){var n=t,l=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"||n==="/&"){if(l===0){e.removeChild(i),Ca(t);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")yi(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,yi(n);for(var u=n.firstChild;u;){var s=u.nextSibling,g=u.nodeName;u[La]||g==="SCRIPT"||g==="STYLE"||g==="LINK"&&u.rel.toLowerCase()==="stylesheet"||n.removeChild(u),u=s}}else n==="body"&&yi(e.ownerDocument.body);n=i}while(n);Ca(t)}function xh(e,t){var n=e;e=0;do{var l=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=l}while(n)}function kc(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":kc(n),qr(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function B0(e,t,n,l){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[La])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=Vt(e.nextSibling),e===null)break}return null}function G0(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Vt(e.nextSibling),e===null))return null;return e}function Sh(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Vt(e.nextSibling),e===null))return null;return e}function Hc(e){return e.data==="$?"||e.data==="$~"}function Bc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function q0(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var l=function(){t(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Vt(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 Gc=null;function Eh(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Vt(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Ch(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=Vu(n),e){case"html":if(e=t.documentElement,!e)throw Error(c(452));return e;case"head":if(e=t.head,!e)throw Error(c(453));return e;case"body":if(e=t.body,!e)throw Error(c(454));return e;default:throw Error(c(451))}}function yi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);qr(e)}var Qt=new Map,Nh=new Set;function Qu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var An=B.d;B.d={f:Y0,r:X0,D:V0,C:Q0,L:Z0,m:K0,X:F0,S:J0,M:W0};function Y0(){var e=An.f(),t=Lu();return e||t}function X0(e){var t=Yl(e);t!==null&&t.tag===5&&t.type==="form"?Yd(t):An.r(e)}var xa=typeof document>"u"?null:document;function Ah(e,t,n){var l=xa;if(l&&typeof t=="string"&&t){var i=kt(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof n=="string"&&(i+='[crossorigin="'+n+'"]'),Nh.has(i)||(Nh.add(i),e={rel:e,crossOrigin:n,href:t},l.querySelector(i)===null&&(t=l.createElement("link"),ot(t,"link",e),nt(t),l.head.appendChild(t)))}}function V0(e){An.D(e),Ah("dns-prefetch",e,null)}function Q0(e,t){An.C(e,t),Ah("preconnect",e,t)}function Z0(e,t,n){An.L(e,t,n);var l=xa;if(l&&e&&t){var i='link[rel="preload"][as="'+kt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(i+='[imagesrcset="'+kt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(i+='[imagesizes="'+kt(n.imageSizes)+'"]')):i+='[href="'+kt(e)+'"]';var u=i;switch(t){case"style":u=Sa(e);break;case"script":u=Ea(e)}Qt.has(u)||(e=y({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Qt.set(u,e),l.querySelector(i)!==null||t==="style"&&l.querySelector(bi(u))||t==="script"&&l.querySelector(xi(u))||(t=l.createElement("link"),ot(t,"link",e),nt(t),l.head.appendChild(t)))}}function K0(e,t){An.m(e,t);var n=xa;if(n&&e){var l=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+kt(l)+'"][href="'+kt(e)+'"]',u=i;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Ea(e)}if(!Qt.has(u)&&(e=y({rel:"modulepreload",href:e},t),Qt.set(u,e),n.querySelector(i)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(xi(u)))return}l=n.createElement("link"),ot(l,"link",e),nt(l),n.head.appendChild(l)}}}function J0(e,t,n){An.S(e,t,n);var l=xa;if(l&&e){var i=Xl(l).hoistableStyles,u=Sa(e);t=t||"default";var s=i.get(u);if(!s){var g={loading:0,preload:null};if(s=l.querySelector(bi(u)))g.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Qt.get(u))&&qc(e,n);var E=s=l.createElement("link");nt(E),ot(E,"link",e),E._p=new Promise(function(O,q){E.onload=O,E.onerror=q}),E.addEventListener("load",function(){g.loading|=1}),E.addEventListener("error",function(){g.loading|=2}),g.loading|=4,Zu(s,t,l)}s={type:"stylesheet",instance:s,count:1,state:g},i.set(u,s)}}}function F0(e,t){An.X(e,t);var n=xa;if(n&&e){var l=Xl(n).hoistableScripts,i=Ea(e),u=l.get(i);u||(u=n.querySelector(xi(i)),u||(e=y({src:e,async:!0},t),(t=Qt.get(i))&&Yc(e,t),u=n.createElement("script"),nt(u),ot(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(i,u))}}function W0(e,t){An.M(e,t);var n=xa;if(n&&e){var l=Xl(n).hoistableScripts,i=Ea(e),u=l.get(i);u||(u=n.querySelector(xi(i)),u||(e=y({src:e,async:!0,type:"module"},t),(t=Qt.get(i))&&Yc(e,t),u=n.createElement("script"),nt(u),ot(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(i,u))}}function Mh(e,t,n,l){var i=(i=ae.current)?Qu(i):null;if(!i)throw Error(c(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Sa(n.href),n=Xl(i).hoistableStyles,l=n.get(t),l||(l={type:"style",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Sa(n.href);var u=Xl(i).hoistableStyles,s=u.get(e);if(s||(i=i.ownerDocument||i,s={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,s),(u=i.querySelector(bi(e)))&&!u._p&&(s.instance=u,s.state.loading=5),Qt.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},Qt.set(e,n),u||$0(i,e,n,s.state))),t&&l===null)throw Error(c(528,""));return s}if(t&&l!==null)throw Error(c(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ea(n),n=Xl(i).hoistableScripts,l=n.get(t),l||(l={type:"script",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,e))}}function Sa(e){return'href="'+kt(e)+'"'}function bi(e){return'link[rel="stylesheet"]['+e+"]"}function Th(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function $0(e,t,n,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),ot(t,"link",n),nt(t),e.head.appendChild(t))}function Ea(e){return'[src="'+kt(e)+'"]'}function xi(e){return"script[async]"+e}function jh(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+kt(n.href)+'"]');if(l)return t.instance=l,nt(l),l;var i=y({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),nt(l),ot(l,"style",i),Zu(l,n.precedence,e),t.instance=l;case"stylesheet":i=Sa(n.href);var u=e.querySelector(bi(i));if(u)return t.state.loading|=4,t.instance=u,nt(u),u;l=Th(n),(i=Qt.get(i))&&qc(l,i),u=(e.ownerDocument||e).createElement("link"),nt(u);var s=u;return s._p=new Promise(function(g,E){s.onload=g,s.onerror=E}),ot(u,"link",l),t.state.loading|=4,Zu(u,n.precedence,e),t.instance=u;case"script":return u=Ea(n.src),(i=e.querySelector(xi(u)))?(t.instance=i,nt(i),i):(l=n,(i=Qt.get(u))&&(l=y({},n),Yc(l,i)),e=e.ownerDocument||e,i=e.createElement("script"),nt(i),ot(i,"link",l),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(c(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,Zu(l,n.precedence,e));return t.instance}function Zu(e,t,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=l.length?l[l.length-1]:null,u=i,s=0;s<l.length;s++){var g=l[s];if(g.dataset.precedence===t)u=g;else if(u!==i)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function qc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Yc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Ku=null;function zh(e,t,n){if(Ku===null){var l=new Map,i=Ku=new Map;i.set(n,l)}else i=Ku,l=i.get(n),l||(l=new Map,i.set(n,l));if(l.has(e))return l;for(l.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var u=n[i];if(!(u[La]||u[at]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var s=u.getAttribute(t)||"";s=e+s;var g=l.get(s);g?g.push(u):l.set(s,[u])}}return l}function _h(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function I0(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 Oh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function P0(e,t,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var i=Sa(l.href),u=t.querySelector(bi(i));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ju.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=u,nt(u);return}u=t.ownerDocument||t,l=Th(l),(i=Qt.get(i))&&qc(l,i),u=u.createElement("link"),nt(u);var s=u;s._p=new Promise(function(g,E){s.onload=g,s.onerror=E}),ot(u,"link",l),n.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Ju.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Xc=0;function eb(e,t){return e.stylesheets&&e.count===0&&Wu(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var l=setTimeout(function(){if(e.stylesheets&&Wu(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&Xc===0&&(Xc=62500*D0());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Wu(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>Xc?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(i)}}:null}function Ju(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Wu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Fu=null;function Wu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Fu=new Map,t.forEach(tb,e),Fu=null,Ju.call(e))}function tb(e,t){if(!(t.state.loading&4)){var n=Fu.get(e);if(n)var l=n.get(null);else{n=new Map,Fu.set(e,n);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<i.length;u++){var s=i[u];(s.nodeName==="LINK"||s.getAttribute("media")!=="not all")&&(n.set(s.dataset.precedence,s),l=s)}l&&n.set(null,l)}i=t.instance,s=i.getAttribute("data-precedence"),u=n.get(s)||l,u===l&&n.set(null,i),n.set(s,i),this.count++,l=Ju.bind(this),i.addEventListener("load",l),i.addEventListener("error",l),u?u.parentNode.insertBefore(i,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Si={$$typeof:Y,Provider:null,Consumer:null,_currentValue:k,_currentValue2:k,_threadCount:0};function nb(e,t,n,l,i,u,s,g,E){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=kr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=kr(0),this.hiddenUpdates=kr(null),this.identifierPrefix=l,this.onUncaughtError=i,this.onCaughtError=u,this.onRecoverableError=s,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=E,this.incompleteTransitions=new Map}function Rh(e,t,n,l,i,u,s,g,E,O,q,Q){return e=new nb(e,t,n,s,E,O,q,Q,g),t=1,u===!0&&(t|=24),u=Tt(3,null,null,t),e.current=u,u.stateNode=e,t=Eo(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:l,isDehydrated:n,cache:t},Ao(u),e}function Dh(e){return e?(e=Pl,e):Pl}function Uh(e,t,n,l,i,u){i=Dh(i),l.context===null?l.context=i:l.pendingContext=i,l=qn(t),l.payload={element:n},u=u===void 0?null:u,u!==null&&(l.callback=u),n=Yn(e,l,t),n!==null&&(St(n,e,t),Pa(n,e,t))}function Lh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Vc(e,t){Lh(e,t),(e=e.alternate)&&Lh(e,t)}function kh(e){if(e.tag===13||e.tag===31){var t=yl(e,67108864);t!==null&&St(t,e,67108864),Vc(e,67108864)}}function Hh(e){if(e.tag===13||e.tag===31){var t=Rt();t=Hr(t);var n=yl(e,t);n!==null&&St(n,e,t),Vc(e,t)}}var $u=!0;function lb(e,t,n,l){var i=w.T;w.T=null;var u=B.p;try{B.p=2,Qc(e,t,n,l)}finally{B.p=u,w.T=i}}function ab(e,t,n,l){var i=w.T;w.T=null;var u=B.p;try{B.p=8,Qc(e,t,n,l)}finally{B.p=u,w.T=i}}function Qc(e,t,n,l){if($u){var i=Zc(l);if(i===null)_c(e,t,l,Iu,n),Gh(e,l);else if(ub(i,e,t,n,l))l.stopPropagation();else if(Gh(e,l),t&4&&-1<ib.indexOf(e)){for(;i!==null;){var u=Yl(i);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var s=ml(u.pendingLanes);if(s!==0){var g=u;for(g.pendingLanes|=2,g.entangledLanes|=2;s;){var E=1<<31-At(s);g.entanglements[1]|=E,s&=~E}nn(u),(Re&6)===0&&(Du=wt()+500,vi(0))}}break;case 31:case 13:g=yl(u,2),g!==null&&St(g,u,2),Lu(),Vc(u,2)}if(u=Zc(l),u===null&&_c(e,t,l,Iu,n),u===i)break;i=u}i!==null&&l.stopPropagation()}else _c(e,t,l,null,n)}}function Zc(e){return e=Kr(e),Kc(e)}var Iu=null;function Kc(e){if(Iu=null,e=ql(e),e!==null){var t=m(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=h(t),e!==null)return e;e=null}else if(n===31){if(e=v(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 Iu=e,null}function Bh(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(Vg()){case Zs:return 2;case Ks:return 8;case qi:case Qg:return 32;case Js:return 268435456;default:return 32}default:return 32}}var Jc=!1,Pn=null,el=null,tl=null,Ei=new Map,Ci=new Map,nl=[],ib="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 Gh(e,t){switch(e){case"focusin":case"focusout":Pn=null;break;case"dragenter":case"dragleave":el=null;break;case"mouseover":case"mouseout":tl=null;break;case"pointerover":case"pointerout":Ei.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ci.delete(t.pointerId)}}function wi(e,t,n,l,i,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:n,eventSystemFlags:l,nativeEvent:u,targetContainers:[i]},t!==null&&(t=Yl(t),t!==null&&kh(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function ub(e,t,n,l,i){switch(t){case"focusin":return Pn=wi(Pn,e,t,n,l,i),!0;case"dragenter":return el=wi(el,e,t,n,l,i),!0;case"mouseover":return tl=wi(tl,e,t,n,l,i),!0;case"pointerover":var u=i.pointerId;return Ei.set(u,wi(Ei.get(u)||null,e,t,n,l,i)),!0;case"gotpointercapture":return u=i.pointerId,Ci.set(u,wi(Ci.get(u)||null,e,t,n,l,i)),!0}return!1}function qh(e){var t=ql(e.target);if(t!==null){var n=m(t);if(n!==null){if(t=n.tag,t===13){if(t=h(n),t!==null){e.blockedOn=t,ef(e.priority,function(){Hh(n)});return}}else if(t===31){if(t=v(n),t!==null){e.blockedOn=t,ef(e.priority,function(){Hh(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 Pu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Zc(e.nativeEvent);if(n===null){n=e.nativeEvent;var l=new n.constructor(n.type,n);Zr=l,n.target.dispatchEvent(l),Zr=null}else return t=Yl(n),t!==null&&kh(t),e.blockedOn=n,!1;t.shift()}return!0}function Yh(e,t,n){Pu(e)&&n.delete(t)}function rb(){Jc=!1,Pn!==null&&Pu(Pn)&&(Pn=null),el!==null&&Pu(el)&&(el=null),tl!==null&&Pu(tl)&&(tl=null),Ei.forEach(Yh),Ci.forEach(Yh)}function er(e,t){e.blockedOn===t&&(e.blockedOn=null,Jc||(Jc=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,rb)))}var tr=null;function Xh(e){tr!==e&&(tr=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){tr===e&&(tr=null);for(var t=0;t<e.length;t+=3){var n=e[t],l=e[t+1],i=e[t+2];if(typeof l!="function"){if(Kc(l||n)===null)continue;break}var u=Yl(n);u!==null&&(e.splice(t,3),t-=3,Zo(u,{pending:!0,data:i,method:n.method,action:l},l,i))}}))}function Ca(e){function t(E){return er(E,e)}Pn!==null&&er(Pn,e),el!==null&&er(el,e),tl!==null&&er(tl,e),Ei.forEach(t),Ci.forEach(t);for(var n=0;n<nl.length;n++){var l=nl[n];l.blockedOn===e&&(l.blockedOn=null)}for(;0<nl.length&&(n=nl[0],n.blockedOn===null);)qh(n),n.blockedOn===null&&nl.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var i=n[l],u=n[l+1],s=i[vt]||null;if(typeof u=="function")s||Xh(n);else if(s){var g=null;if(u&&u.hasAttribute("formAction")){if(i=u,s=u[vt]||null)g=s.formAction;else if(Kc(i)!==null)continue}else g=s.action;typeof g=="function"?n[l+1]=g:(n.splice(l,3),l-=3),Xh(n)}}}function Vh(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(s){return i=s})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),i!==null&&(i(),i=null)}}}function Fc(e){this._internalRoot=e}nr.prototype.render=Fc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(c(409));var n=t.current,l=Rt();Uh(n,l,e,t,null,null)},nr.prototype.unmount=Fc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Uh(e.current,2,null,e,null,null),Lu(),t[Gl]=null}};function nr(e){this._internalRoot=e}nr.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ps();e={blockedOn:null,target:e,priority:t};for(var n=0;n<nl.length&&t!==0&&t<nl[n].priority;n++);nl.splice(n,0,e),n===0&&qh(e)}};var Qh=r.version;if(Qh!=="19.2.4")throw Error(c(527,Qh,"19.2.4"));B.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(c(188)):(e=Object.keys(e).join(","),Error(c(268,e)));return e=p(t),e=e!==null?S(e):null,e=e===null?null:e.stateNode,e};var ob={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:w,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var lr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!lr.isDisabled&&lr.supportsFiber)try{Ra=lr.inject(ob),Nt=lr}catch{}}return Ai.createRoot=function(e,t){if(!f(e))throw Error(c(299));var n=!1,l="",i=Id,u=Pd,s=em;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=Rh(e,1,!1,null,null,n,l,null,i,u,s,Vh),e[Gl]=t.current,zc(e),new Fc(t)},Ai.hydrateRoot=function(e,t,n){if(!f(e))throw Error(c(299));var l=!1,i="",u=Id,s=Pd,g=em,E=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(s=n.onCaughtError),n.onRecoverableError!==void 0&&(g=n.onRecoverableError),n.formState!==void 0&&(E=n.formState)),t=Rh(e,1,!0,t,n??null,l,i,E,u,s,g,Vh),t.context=Dh(null),n=t.current,l=Rt(),l=Hr(l),i=qn(l),i.callback=null,Yn(n,i,l),n=l,t.current.lanes=n,Ua(t,n),nn(t),e[Gl]=t.current,zc(e),new nr(t)},Ai.version="19.2.4",Ai}var tv;function yb(){if(tv)return Ic.exports;tv=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(r){console.error(r)}}return a(),Ic.exports=gb(),Ic.exports}var bb=yb();const qv=x.createContext({theme:"system",setTheme:()=>null});function xb({children:a,defaultTheme:r="system",storageKey:o="todos-dashboard-theme",...c}){const[f,m]=x.useState(()=>localStorage.getItem(o)||r);x.useEffect(()=>{const v=window.document.documentElement;if(v.classList.remove("light","dark"),f==="system"){const b=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";v.classList.add(b);return}v.classList.add(f)},[f]);const h={theme:f,setTheme:v=>{localStorage.setItem(o,v),m(v)}};return d.jsx(qv.Provider,{...c,value:h,children:a})}const Sb=()=>{const a=x.useContext(qv);if(a===void 0)throw new Error("useTheme must be used within a ThemeProvider");return a};/**
50
- * @license lucide-react v0.468.0 - ISC
51
- *
52
- * This source code is licensed under the ISC license.
53
- * See the LICENSE file in the root directory of this source tree.
54
- */const Eb=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Yv=(...a)=>a.filter((r,o,c)=>!!r&&r.trim()!==""&&c.indexOf(r)===o).join(" ").trim();/**
55
- * @license lucide-react v0.468.0 - ISC
56
- *
57
- * This source code is licensed under the ISC license.
58
- * See the LICENSE file in the root directory of this source tree.
59
- */var Cb={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"};/**
60
- * @license lucide-react v0.468.0 - ISC
61
- *
62
- * This source code is licensed under the ISC license.
63
- * See the LICENSE file in the root directory of this source tree.
64
- */const wb=x.forwardRef(({color:a="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:c,className:f="",children:m,iconNode:h,...v},b)=>x.createElement("svg",{ref:b,...Cb,width:r,height:r,stroke:a,strokeWidth:c?Number(o)*24/Number(r):o,className:Yv("lucide",f),...v},[...h.map(([p,S])=>x.createElement(p,S)),...Array.isArray(m)?m:[m]]));/**
65
- * @license lucide-react v0.468.0 - ISC
66
- *
67
- * This source code is licensed under the ISC license.
68
- * See the LICENSE file in the root directory of this source tree.
69
- */const Ve=(a,r)=>{const o=x.forwardRef(({className:c,...f},m)=>x.createElement(wb,{ref:m,iconNode:r,className:Yv(`lucide-${Eb(a)}`,c),...f}));return o.displayName=`${a}`,o};/**
70
- * @license lucide-react v0.468.0 - ISC
71
- *
72
- * This source code is licensed under the ISC license.
73
- * See the LICENSE file in the root directory of this source tree.
74
- */const Nb=Ve("ArrowUpDown",[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]]);/**
75
- * @license lucide-react v0.468.0 - ISC
76
- *
77
- * This source code is licensed under the ISC license.
78
- * See the LICENSE file in the root directory of this source tree.
79
- */const Ms=Ve("Building",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["path",{d:"M9 22v-4h6v4",key:"r93iot"}],["path",{d:"M8 6h.01",key:"1dz90k"}],["path",{d:"M16 6h.01",key:"1x0f13"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M8 14h.01",key:"6423bh"}]]);/**
80
- * @license lucide-react v0.468.0 - ISC
81
- *
82
- * This source code is licensed under the ISC license.
83
- * See the LICENSE file in the root directory of this source tree.
84
- */const Ab=Ve("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/**
85
- * @license lucide-react v0.468.0 - ISC
86
- *
87
- * This source code is licensed under the ISC license.
88
- * See the LICENSE file in the root directory of this source tree.
89
- */const Mb=Ve("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
90
- * @license lucide-react v0.468.0 - ISC
91
- *
92
- * This source code is licensed under the ISC license.
93
- * See the LICENSE file in the root directory of this source tree.
94
- */const nv=Ve("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
95
- * @license lucide-react v0.468.0 - ISC
96
- *
97
- * This source code is licensed under the ISC license.
98
- * See the LICENSE file in the root directory of this source tree.
99
- */const Tb=Ve("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
100
- * @license lucide-react v0.468.0 - ISC
101
- *
102
- * This source code is licensed under the ISC license.
103
- * See the LICENSE file in the root directory of this source tree.
104
- */const jb=Ve("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
105
- * @license lucide-react v0.468.0 - ISC
106
- *
107
- * This source code is licensed under the ISC license.
108
- * See the LICENSE file in the root directory of this source tree.
109
- */const Xv=Ve("Link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);/**
110
- * @license lucide-react v0.468.0 - ISC
111
- *
112
- * This source code is licensed under the ISC license.
113
- * See the LICENSE file in the root directory of this source tree.
114
- */const Vv=Ve("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
115
- * @license lucide-react v0.468.0 - ISC
116
- *
117
- * This source code is licensed under the ISC license.
118
- * See the LICENSE file in the root directory of this source tree.
119
- */const Qv=Ve("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/**
120
- * @license lucide-react v0.468.0 - ISC
121
- *
122
- * This source code is licensed under the ISC license.
123
- * See the LICENSE file in the root directory of this source tree.
124
- */const zb=Ve("Monitor",[["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"}]]);/**
125
- * @license lucide-react v0.468.0 - ISC
126
- *
127
- * This source code is licensed under the ISC license.
128
- * See the LICENSE file in the root directory of this source tree.
129
- */const lv=Ve("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
130
- * @license lucide-react v0.468.0 - ISC
131
- *
132
- * This source code is licensed under the ISC license.
133
- * See the LICENSE file in the root directory of this source tree.
134
- */const Zv=Ve("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/**
135
- * @license lucide-react v0.468.0 - ISC
136
- *
137
- * This source code is licensed under the ISC license.
138
- * See the LICENSE file in the root directory of this source tree.
139
- */const Kv=Ve("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/**
140
- * @license lucide-react v0.468.0 - ISC
141
- *
142
- * This source code is licensed under the ISC license.
143
- * See the LICENSE file in the root directory of this source tree.
144
- */const Ul=Ve("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
145
- * @license lucide-react v0.468.0 - ISC
146
- *
147
- * This source code is licensed under the ISC license.
148
- * See the LICENSE file in the root directory of this source tree.
149
- */const _b=Ve("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
150
- * @license lucide-react v0.468.0 - ISC
151
- *
152
- * This source code is licensed under the ISC license.
153
- * See the LICENSE file in the root directory of this source tree.
154
- */const Ob=Ve("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
155
- * @license lucide-react v0.468.0 - ISC
156
- *
157
- * This source code is licensed under the ISC license.
158
- * See the LICENSE file in the root directory of this source tree.
159
- */const av=Ve("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
160
- * @license lucide-react v0.468.0 - ISC
161
- *
162
- * This source code is licensed under the ISC license.
163
- * See the LICENSE file in the root directory of this source tree.
164
- */const wr=Ve("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);/**
165
- * @license lucide-react v0.468.0 - ISC
166
- *
167
- * This source code is licensed under the ISC license.
168
- * See the LICENSE file in the root directory of this source tree.
169
- */const ji=Ve("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
170
- * @license lucide-react v0.468.0 - ISC
171
- *
172
- * This source code is licensed under the ISC license.
173
- * See the LICENSE file in the root directory of this source tree.
174
- */const Rb=Ve("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/**
175
- * @license lucide-react v0.468.0 - ISC
176
- *
177
- * This source code is licensed under the ISC license.
178
- * See the LICENSE file in the root directory of this source tree.
179
- */const Db=Ve("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
180
- * @license lucide-react v0.468.0 - ISC
181
- *
182
- * This source code is licensed under the ISC license.
183
- * See the LICENSE file in the root directory of this source tree.
184
- */const ps=Ve("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
185
- * @license lucide-react v0.468.0 - ISC
186
- *
187
- * This source code is licensed under the ISC license.
188
- * See the LICENSE file in the root directory of this source tree.
189
- */const Ri=Ve("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function Jv(a){var r,o,c="";if(typeof a=="string"||typeof a=="number")c+=a;else if(typeof a=="object")if(Array.isArray(a)){var f=a.length;for(r=0;r<f;r++)a[r]&&(o=Jv(a[r]))&&(c&&(c+=" "),c+=o)}else for(o in a)a[o]&&(c&&(c+=" "),c+=o);return c}function Fv(){for(var a,r,o=0,c="",f=arguments.length;o<f;o++)(a=arguments[o])&&(r=Jv(a))&&(c&&(c+=" "),c+=r);return c}const iv=a=>typeof a=="boolean"?`${a}`:a===0?"0":a,uv=Fv,Wv=(a,r)=>o=>{var c;if((r==null?void 0:r.variants)==null)return uv(a,o==null?void 0:o.class,o==null?void 0:o.className);const{variants:f,defaultVariants:m}=r,h=Object.keys(f).map(p=>{const S=o==null?void 0:o[p],y=m==null?void 0:m[p];if(S===null)return null;const C=iv(S)||iv(y);return f[p][C]}),v=o&&Object.entries(o).reduce((p,S)=>{let[y,C]=S;return C===void 0||(p[y]=C),p},{}),b=r==null||(c=r.compoundVariants)===null||c===void 0?void 0:c.reduce((p,S)=>{let{class:y,className:C,...M}=S;return Object.entries(M).every(R=>{let[T,z]=R;return Array.isArray(z)?z.includes({...m,...v}[T]):{...m,...v}[T]===z})?[...p,y,C]:p},[]);return uv(a,h,b,o==null?void 0:o.class,o==null?void 0:o.className)},Ub=(a,r)=>{const o=new Array(a.length+r.length);for(let c=0;c<a.length;c++)o[c]=a[c];for(let c=0;c<r.length;c++)o[a.length+c]=r[c];return o},Lb=(a,r)=>({classGroupId:a,validator:r}),$v=(a=new Map,r=null,o)=>({nextPart:a,validators:r,classGroupId:o}),pr="-",rv=[],kb="arbitrary..",Hb=a=>{const r=Gb(a),{conflictingClassGroups:o,conflictingClassGroupModifiers:c}=a;return{getClassGroupId:h=>{if(h.startsWith("[")&&h.endsWith("]"))return Bb(h);const v=h.split(pr),b=v[0]===""&&v.length>1?1:0;return Iv(v,b,r)},getConflictingClassGroupIds:(h,v)=>{if(v){const b=c[h],p=o[h];return b?p?Ub(p,b):b:p||rv}return o[h]||rv}}},Iv=(a,r,o)=>{if(a.length-r===0)return o.classGroupId;const f=a[r],m=o.nextPart.get(f);if(m){const p=Iv(a,r+1,m);if(p)return p}const h=o.validators;if(h===null)return;const v=r===0?a.join(pr):a.slice(r).join(pr),b=h.length;for(let p=0;p<b;p++){const S=h[p];if(S.validator(v))return S.classGroupId}},Bb=a=>a.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const r=a.slice(1,-1),o=r.indexOf(":"),c=r.slice(0,o);return c?kb+c:void 0})(),Gb=a=>{const{theme:r,classGroups:o}=a;return qb(o,r)},qb=(a,r)=>{const o=$v();for(const c in a){const f=a[c];Ts(f,o,c,r)}return o},Ts=(a,r,o,c)=>{const f=a.length;for(let m=0;m<f;m++){const h=a[m];Yb(h,r,o,c)}},Yb=(a,r,o,c)=>{if(typeof a=="string"){Xb(a,r,o);return}if(typeof a=="function"){Vb(a,r,o,c);return}Qb(a,r,o,c)},Xb=(a,r,o)=>{const c=a===""?r:Pv(r,a);c.classGroupId=o},Vb=(a,r,o,c)=>{if(Zb(a)){Ts(a(c),r,o,c);return}r.validators===null&&(r.validators=[]),r.validators.push(Lb(o,a))},Qb=(a,r,o,c)=>{const f=Object.entries(a),m=f.length;for(let h=0;h<m;h++){const[v,b]=f[h];Ts(b,Pv(r,v),o,c)}},Pv=(a,r)=>{let o=a;const c=r.split(pr),f=c.length;for(let m=0;m<f;m++){const h=c[m];let v=o.nextPart.get(h);v||(v=$v(),o.nextPart.set(h,v)),o=v}return o},Zb=a=>"isThemeGetter"in a&&a.isThemeGetter===!0,Kb=a=>{if(a<1)return{get:()=>{},set:()=>{}};let r=0,o=Object.create(null),c=Object.create(null);const f=(m,h)=>{o[m]=h,r++,r>a&&(r=0,c=o,o=Object.create(null))};return{get(m){let h=o[m];if(h!==void 0)return h;if((h=c[m])!==void 0)return f(m,h),h},set(m,h){m in o?o[m]=h:f(m,h)}}},gs="!",ov=":",Jb=[],cv=(a,r,o,c,f)=>({modifiers:a,hasImportantModifier:r,baseClassName:o,maybePostfixModifierPosition:c,isExternal:f}),Fb=a=>{const{prefix:r,experimentalParseClassName:o}=a;let c=f=>{const m=[];let h=0,v=0,b=0,p;const S=f.length;for(let T=0;T<S;T++){const z=f[T];if(h===0&&v===0){if(z===ov){m.push(f.slice(b,T)),b=T+1;continue}if(z==="/"){p=T;continue}}z==="["?h++:z==="]"?h--:z==="("?v++:z===")"&&v--}const y=m.length===0?f:f.slice(b);let C=y,M=!1;y.endsWith(gs)?(C=y.slice(0,-1),M=!0):y.startsWith(gs)&&(C=y.slice(1),M=!0);const R=p&&p>b?p-b:void 0;return cv(m,M,C,R)};if(r){const f=r+ov,m=c;c=h=>h.startsWith(f)?m(h.slice(f.length)):cv(Jb,!1,h,void 0,!0)}if(o){const f=c;c=m=>o({className:m,parseClassName:f})}return c},Wb=a=>{const r=new Map;return a.orderSensitiveModifiers.forEach((o,c)=>{r.set(o,1e6+c)}),o=>{const c=[];let f=[];for(let m=0;m<o.length;m++){const h=o[m],v=h[0]==="[",b=r.has(h);v||b?(f.length>0&&(f.sort(),c.push(...f),f=[]),c.push(h)):f.push(h)}return f.length>0&&(f.sort(),c.push(...f)),c}},$b=a=>({cache:Kb(a.cacheSize),parseClassName:Fb(a),sortModifiers:Wb(a),...Hb(a)}),Ib=/\s+/,Pb=(a,r)=>{const{parseClassName:o,getClassGroupId:c,getConflictingClassGroupIds:f,sortModifiers:m}=r,h=[],v=a.trim().split(Ib);let b="";for(let p=v.length-1;p>=0;p-=1){const S=v[p],{isExternal:y,modifiers:C,hasImportantModifier:M,baseClassName:R,maybePostfixModifierPosition:T}=o(S);if(y){b=S+(b.length>0?" "+b:b);continue}let z=!!T,H=c(z?R.substring(0,T):R);if(!H){if(!z){b=S+(b.length>0?" "+b:b);continue}if(H=c(R),!H){b=S+(b.length>0?" "+b:b);continue}z=!1}const J=C.length===0?"":C.length===1?C[0]:m(C).join(":"),Y=M?J+gs:J,U=Y+H;if(h.indexOf(U)>-1)continue;h.push(U);const $=f(H,z);for(let W=0;W<$.length;++W){const Z=$[W];h.push(Y+Z)}b=S+(b.length>0?" "+b:b)}return b},ex=(...a)=>{let r=0,o,c,f="";for(;r<a.length;)(o=a[r++])&&(c=ep(o))&&(f&&(f+=" "),f+=c);return f},ep=a=>{if(typeof a=="string")return a;let r,o="";for(let c=0;c<a.length;c++)a[c]&&(r=ep(a[c]))&&(o&&(o+=" "),o+=r);return o},tx=(a,...r)=>{let o,c,f,m;const h=b=>{const p=r.reduce((S,y)=>y(S),a());return o=$b(p),c=o.cache.get,f=o.cache.set,m=v,v(b)},v=b=>{const p=c(b);if(p)return p;const S=Pb(b,o);return f(b,S),S};return m=h,(...b)=>m(ex(...b))},nx=[],tt=a=>{const r=o=>o[a]||nx;return r.isThemeGetter=!0,r},tp=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,np=/^\((?:(\w[\w-]*):)?(.+)\)$/i,lx=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,ax=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ix=/\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$/,ux=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,rx=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ox=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,al=a=>lx.test(a),Ce=a=>!!a&&!Number.isNaN(Number(a)),il=a=>!!a&&Number.isInteger(Number(a)),ns=a=>a.endsWith("%")&&Ce(a.slice(0,-1)),Mn=a=>ax.test(a),lp=()=>!0,cx=a=>ix.test(a)&&!ux.test(a),js=()=>!1,sx=a=>rx.test(a),fx=a=>ox.test(a),dx=a=>!le(a)&&!ie(a),mx=a=>fl(a,up,js),le=a=>tp.test(a),_l=a=>fl(a,rp,cx),sv=a=>fl(a,Sx,Ce),hx=a=>fl(a,cp,lp),vx=a=>fl(a,op,js),fv=a=>fl(a,ap,js),px=a=>fl(a,ip,fx),ar=a=>fl(a,sp,sx),ie=a=>np.test(a),Mi=a=>kl(a,rp),gx=a=>kl(a,op),dv=a=>kl(a,ap),yx=a=>kl(a,up),bx=a=>kl(a,ip),ir=a=>kl(a,sp,!0),xx=a=>kl(a,cp,!0),fl=(a,r,o)=>{const c=tp.exec(a);return c?c[1]?r(c[1]):o(c[2]):!1},kl=(a,r,o=!1)=>{const c=np.exec(a);return c?c[1]?r(c[1]):o:!1},ap=a=>a==="position"||a==="percentage",ip=a=>a==="image"||a==="url",up=a=>a==="length"||a==="size"||a==="bg-size",rp=a=>a==="length",Sx=a=>a==="number",op=a=>a==="family-name",cp=a=>a==="number"||a==="weight",sp=a=>a==="shadow",Ex=()=>{const a=tt("color"),r=tt("font"),o=tt("text"),c=tt("font-weight"),f=tt("tracking"),m=tt("leading"),h=tt("breakpoint"),v=tt("container"),b=tt("spacing"),p=tt("radius"),S=tt("shadow"),y=tt("inset-shadow"),C=tt("text-shadow"),M=tt("drop-shadow"),R=tt("blur"),T=tt("perspective"),z=tt("aspect"),H=tt("ease"),J=tt("animate"),Y=()=>["auto","avoid","all","avoid-page","page","left","right","column"],U=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],$=()=>[...U(),ie,le],W=()=>["auto","hidden","clip","visible","scroll"],Z=()=>["auto","contain","none"],K=()=>[ie,le,b],ue=()=>[al,"full","auto",...K()],de=()=>[il,"none","subgrid",ie,le],ve=()=>["auto",{span:["full",il,ie,le]},il,ie,le],me=()=>[il,"auto",ie,le],ge=()=>["auto","min","max","fr",ie,le],he=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ye=()=>["start","end","center","stretch","center-safe","end-safe"],w=()=>["auto",...K()],B=()=>[al,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...K()],k=()=>[al,"screen","full","dvw","lvw","svw","min","max","fit",...K()],X=()=>[al,"screen","full","lh","dvh","lvh","svh","min","max","fit",...K()],F=()=>[a,ie,le],N=()=>[...U(),dv,fv,{position:[ie,le]}],G=()=>["no-repeat",{repeat:["","x","y","space","round"]}],I=()=>["auto","cover","contain",yx,mx,{size:[ie,le]}],ee=()=>[ns,Mi,_l],te=()=>["","none","full",p,ie,le],ae=()=>["",Ce,Mi,_l],pe=()=>["solid","dashed","dotted","double"],Ge=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ce=()=>[Ce,ns,dv,fv],ct=()=>["","none",R,ie,le],re=()=>["none",Ce,ie,le],P=()=>["none",Ce,ie,le],be=()=>[Ce,ie,le],ze=()=>[al,"full",...K()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Mn],breakpoint:[Mn],color:[lp],container:[Mn],"drop-shadow":[Mn],ease:["in","out","in-out"],font:[dx],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Mn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Mn],shadow:[Mn],spacing:["px",Ce],text:[Mn],"text-shadow":[Mn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",al,le,ie,z]}],container:["container"],columns:[{columns:[Ce,le,ie,v]}],"break-after":[{"break-after":Y()}],"break-before":[{"break-before":Y()}],"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:$()}],overflow:[{overflow:W()}],"overflow-x":[{"overflow-x":W()}],"overflow-y":[{"overflow-y":W()}],overscroll:[{overscroll:Z()}],"overscroll-x":[{"overscroll-x":Z()}],"overscroll-y":[{"overscroll-y":Z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ue()}],"inset-x":[{"inset-x":ue()}],"inset-y":[{"inset-y":ue()}],start:[{"inset-s":ue(),start:ue()}],end:[{"inset-e":ue(),end:ue()}],"inset-bs":[{"inset-bs":ue()}],"inset-be":[{"inset-be":ue()}],top:[{top:ue()}],right:[{right:ue()}],bottom:[{bottom:ue()}],left:[{left:ue()}],visibility:["visible","invisible","collapse"],z:[{z:[il,"auto",ie,le]}],basis:[{basis:[al,"full","auto",v,...K()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ce,al,"auto","initial","none",le]}],grow:[{grow:["",Ce,ie,le]}],shrink:[{shrink:["",Ce,ie,le]}],order:[{order:[il,"first","last","none",ie,le]}],"grid-cols":[{"grid-cols":de()}],"col-start-end":[{col:ve()}],"col-start":[{"col-start":me()}],"col-end":[{"col-end":me()}],"grid-rows":[{"grid-rows":de()}],"row-start-end":[{row:ve()}],"row-start":[{"row-start":me()}],"row-end":[{"row-end":me()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ge()}],"auto-rows":[{"auto-rows":ge()}],gap:[{gap:K()}],"gap-x":[{"gap-x":K()}],"gap-y":[{"gap-y":K()}],"justify-content":[{justify:[...he(),"normal"]}],"justify-items":[{"justify-items":[...ye(),"normal"]}],"justify-self":[{"justify-self":["auto",...ye()]}],"align-content":[{content:["normal",...he()]}],"align-items":[{items:[...ye(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ye(),{baseline:["","last"]}]}],"place-content":[{"place-content":he()}],"place-items":[{"place-items":[...ye(),"baseline"]}],"place-self":[{"place-self":["auto",...ye()]}],p:[{p:K()}],px:[{px:K()}],py:[{py:K()}],ps:[{ps:K()}],pe:[{pe:K()}],pbs:[{pbs:K()}],pbe:[{pbe:K()}],pt:[{pt:K()}],pr:[{pr:K()}],pb:[{pb:K()}],pl:[{pl:K()}],m:[{m:w()}],mx:[{mx:w()}],my:[{my:w()}],ms:[{ms:w()}],me:[{me:w()}],mbs:[{mbs:w()}],mbe:[{mbe:w()}],mt:[{mt:w()}],mr:[{mr:w()}],mb:[{mb:w()}],ml:[{ml:w()}],"space-x":[{"space-x":K()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":K()}],"space-y-reverse":["space-y-reverse"],size:[{size:B()}],"inline-size":[{inline:["auto",...k()]}],"min-inline-size":[{"min-inline":["auto",...k()]}],"max-inline-size":[{"max-inline":["none",...k()]}],"block-size":[{block:["auto",...X()]}],"min-block-size":[{"min-block":["auto",...X()]}],"max-block-size":[{"max-block":["none",...X()]}],w:[{w:[v,"screen",...B()]}],"min-w":[{"min-w":[v,"screen","none",...B()]}],"max-w":[{"max-w":[v,"screen","none","prose",{screen:[h]},...B()]}],h:[{h:["screen","lh",...B()]}],"min-h":[{"min-h":["screen","lh","none",...B()]}],"max-h":[{"max-h":["screen","lh",...B()]}],"font-size":[{text:["base",o,Mi,_l]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[c,xx,hx]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ns,le]}],"font-family":[{font:[gx,vx,r]}],"font-features":[{"font-features":[le]}],"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:[f,ie,le]}],"line-clamp":[{"line-clamp":[Ce,"none",ie,sv]}],leading:[{leading:[m,...K()]}],"list-image":[{"list-image":["none",ie,le]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ie,le]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:F()}],"text-color":[{text:F()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...pe(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ce,"from-font","auto",ie,_l]}],"text-decoration-color":[{decoration:F()}],"underline-offset":[{"underline-offset":[Ce,"auto",ie,le]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:K()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ie,le]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ie,le]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:N()}],"bg-repeat":[{bg:G()}],"bg-size":[{bg:I()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},il,ie,le],radial:["",ie,le],conic:[il,ie,le]},bx,px]}],"bg-color":[{bg:F()}],"gradient-from-pos":[{from:ee()}],"gradient-via-pos":[{via:ee()}],"gradient-to-pos":[{to:ee()}],"gradient-from":[{from:F()}],"gradient-via":[{via:F()}],"gradient-to":[{to:F()}],rounded:[{rounded:te()}],"rounded-s":[{"rounded-s":te()}],"rounded-e":[{"rounded-e":te()}],"rounded-t":[{"rounded-t":te()}],"rounded-r":[{"rounded-r":te()}],"rounded-b":[{"rounded-b":te()}],"rounded-l":[{"rounded-l":te()}],"rounded-ss":[{"rounded-ss":te()}],"rounded-se":[{"rounded-se":te()}],"rounded-ee":[{"rounded-ee":te()}],"rounded-es":[{"rounded-es":te()}],"rounded-tl":[{"rounded-tl":te()}],"rounded-tr":[{"rounded-tr":te()}],"rounded-br":[{"rounded-br":te()}],"rounded-bl":[{"rounded-bl":te()}],"border-w":[{border:ae()}],"border-w-x":[{"border-x":ae()}],"border-w-y":[{"border-y":ae()}],"border-w-s":[{"border-s":ae()}],"border-w-e":[{"border-e":ae()}],"border-w-bs":[{"border-bs":ae()}],"border-w-be":[{"border-be":ae()}],"border-w-t":[{"border-t":ae()}],"border-w-r":[{"border-r":ae()}],"border-w-b":[{"border-b":ae()}],"border-w-l":[{"border-l":ae()}],"divide-x":[{"divide-x":ae()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ae()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...pe(),"hidden","none"]}],"divide-style":[{divide:[...pe(),"hidden","none"]}],"border-color":[{border:F()}],"border-color-x":[{"border-x":F()}],"border-color-y":[{"border-y":F()}],"border-color-s":[{"border-s":F()}],"border-color-e":[{"border-e":F()}],"border-color-bs":[{"border-bs":F()}],"border-color-be":[{"border-be":F()}],"border-color-t":[{"border-t":F()}],"border-color-r":[{"border-r":F()}],"border-color-b":[{"border-b":F()}],"border-color-l":[{"border-l":F()}],"divide-color":[{divide:F()}],"outline-style":[{outline:[...pe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ce,ie,le]}],"outline-w":[{outline:["",Ce,Mi,_l]}],"outline-color":[{outline:F()}],shadow:[{shadow:["","none",S,ir,ar]}],"shadow-color":[{shadow:F()}],"inset-shadow":[{"inset-shadow":["none",y,ir,ar]}],"inset-shadow-color":[{"inset-shadow":F()}],"ring-w":[{ring:ae()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:F()}],"ring-offset-w":[{"ring-offset":[Ce,_l]}],"ring-offset-color":[{"ring-offset":F()}],"inset-ring-w":[{"inset-ring":ae()}],"inset-ring-color":[{"inset-ring":F()}],"text-shadow":[{"text-shadow":["none",C,ir,ar]}],"text-shadow-color":[{"text-shadow":F()}],opacity:[{opacity:[Ce,ie,le]}],"mix-blend":[{"mix-blend":[...Ge(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ge()}],"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":[Ce]}],"mask-image-linear-from-pos":[{"mask-linear-from":ce()}],"mask-image-linear-to-pos":[{"mask-linear-to":ce()}],"mask-image-linear-from-color":[{"mask-linear-from":F()}],"mask-image-linear-to-color":[{"mask-linear-to":F()}],"mask-image-t-from-pos":[{"mask-t-from":ce()}],"mask-image-t-to-pos":[{"mask-t-to":ce()}],"mask-image-t-from-color":[{"mask-t-from":F()}],"mask-image-t-to-color":[{"mask-t-to":F()}],"mask-image-r-from-pos":[{"mask-r-from":ce()}],"mask-image-r-to-pos":[{"mask-r-to":ce()}],"mask-image-r-from-color":[{"mask-r-from":F()}],"mask-image-r-to-color":[{"mask-r-to":F()}],"mask-image-b-from-pos":[{"mask-b-from":ce()}],"mask-image-b-to-pos":[{"mask-b-to":ce()}],"mask-image-b-from-color":[{"mask-b-from":F()}],"mask-image-b-to-color":[{"mask-b-to":F()}],"mask-image-l-from-pos":[{"mask-l-from":ce()}],"mask-image-l-to-pos":[{"mask-l-to":ce()}],"mask-image-l-from-color":[{"mask-l-from":F()}],"mask-image-l-to-color":[{"mask-l-to":F()}],"mask-image-x-from-pos":[{"mask-x-from":ce()}],"mask-image-x-to-pos":[{"mask-x-to":ce()}],"mask-image-x-from-color":[{"mask-x-from":F()}],"mask-image-x-to-color":[{"mask-x-to":F()}],"mask-image-y-from-pos":[{"mask-y-from":ce()}],"mask-image-y-to-pos":[{"mask-y-to":ce()}],"mask-image-y-from-color":[{"mask-y-from":F()}],"mask-image-y-to-color":[{"mask-y-to":F()}],"mask-image-radial":[{"mask-radial":[ie,le]}],"mask-image-radial-from-pos":[{"mask-radial-from":ce()}],"mask-image-radial-to-pos":[{"mask-radial-to":ce()}],"mask-image-radial-from-color":[{"mask-radial-from":F()}],"mask-image-radial-to-color":[{"mask-radial-to":F()}],"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":U()}],"mask-image-conic-pos":[{"mask-conic":[Ce]}],"mask-image-conic-from-pos":[{"mask-conic-from":ce()}],"mask-image-conic-to-pos":[{"mask-conic-to":ce()}],"mask-image-conic-from-color":[{"mask-conic-from":F()}],"mask-image-conic-to-color":[{"mask-conic-to":F()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:N()}],"mask-repeat":[{mask:G()}],"mask-size":[{mask:I()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ie,le]}],filter:[{filter:["","none",ie,le]}],blur:[{blur:ct()}],brightness:[{brightness:[Ce,ie,le]}],contrast:[{contrast:[Ce,ie,le]}],"drop-shadow":[{"drop-shadow":["","none",M,ir,ar]}],"drop-shadow-color":[{"drop-shadow":F()}],grayscale:[{grayscale:["",Ce,ie,le]}],"hue-rotate":[{"hue-rotate":[Ce,ie,le]}],invert:[{invert:["",Ce,ie,le]}],saturate:[{saturate:[Ce,ie,le]}],sepia:[{sepia:["",Ce,ie,le]}],"backdrop-filter":[{"backdrop-filter":["","none",ie,le]}],"backdrop-blur":[{"backdrop-blur":ct()}],"backdrop-brightness":[{"backdrop-brightness":[Ce,ie,le]}],"backdrop-contrast":[{"backdrop-contrast":[Ce,ie,le]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ce,ie,le]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ce,ie,le]}],"backdrop-invert":[{"backdrop-invert":["",Ce,ie,le]}],"backdrop-opacity":[{"backdrop-opacity":[Ce,ie,le]}],"backdrop-saturate":[{"backdrop-saturate":[Ce,ie,le]}],"backdrop-sepia":[{"backdrop-sepia":["",Ce,ie,le]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":K()}],"border-spacing-x":[{"border-spacing-x":K()}],"border-spacing-y":[{"border-spacing-y":K()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ie,le]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ce,"initial",ie,le]}],ease:[{ease:["linear","initial",H,ie,le]}],delay:[{delay:[Ce,ie,le]}],animate:[{animate:["none",J,ie,le]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[T,ie,le]}],"perspective-origin":[{"perspective-origin":$()}],rotate:[{rotate:re()}],"rotate-x":[{"rotate-x":re()}],"rotate-y":[{"rotate-y":re()}],"rotate-z":[{"rotate-z":re()}],scale:[{scale:P()}],"scale-x":[{"scale-x":P()}],"scale-y":[{"scale-y":P()}],"scale-z":[{"scale-z":P()}],"scale-3d":["scale-3d"],skew:[{skew:be()}],"skew-x":[{"skew-x":be()}],"skew-y":[{"skew-y":be()}],transform:[{transform:[ie,le,"","none","gpu","cpu"]}],"transform-origin":[{origin:$()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ze()}],"translate-x":[{"translate-x":ze()}],"translate-y":[{"translate-y":ze()}],"translate-z":[{"translate-z":ze()}],"translate-none":["translate-none"],accent:[{accent:F()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:F()}],"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",ie,le]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":K()}],"scroll-mx":[{"scroll-mx":K()}],"scroll-my":[{"scroll-my":K()}],"scroll-ms":[{"scroll-ms":K()}],"scroll-me":[{"scroll-me":K()}],"scroll-mbs":[{"scroll-mbs":K()}],"scroll-mbe":[{"scroll-mbe":K()}],"scroll-mt":[{"scroll-mt":K()}],"scroll-mr":[{"scroll-mr":K()}],"scroll-mb":[{"scroll-mb":K()}],"scroll-ml":[{"scroll-ml":K()}],"scroll-p":[{"scroll-p":K()}],"scroll-px":[{"scroll-px":K()}],"scroll-py":[{"scroll-py":K()}],"scroll-ps":[{"scroll-ps":K()}],"scroll-pe":[{"scroll-pe":K()}],"scroll-pbs":[{"scroll-pbs":K()}],"scroll-pbe":[{"scroll-pbe":K()}],"scroll-pt":[{"scroll-pt":K()}],"scroll-pr":[{"scroll-pr":K()}],"scroll-pb":[{"scroll-pb":K()}],"scroll-pl":[{"scroll-pl":K()}],"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",ie,le]}],fill:[{fill:["none",...F()]}],"stroke-w":[{stroke:[Ce,Mi,_l,sv]}],stroke:[{stroke:["none",...F()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Cx=tx(Ex);function It(...a){return Cx(Fv(a))}const wx=Wv("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-white shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Qe=x.forwardRef(({className:a,variant:r,size:o,...c},f)=>d.jsx("button",{className:It(wx({variant:r,size:o,className:a})),ref:f,...c}));Qe.displayName="Button";var zs=Gv();const Nx=Hv(zs);function mv(a,r){if(typeof a=="function")return a(r);a!=null&&(a.current=r)}function Nr(...a){return r=>{let o=!1;const c=a.map(f=>{const m=mv(f,r);return!o&&typeof m=="function"&&(o=!0),m});if(o)return()=>{for(let f=0;f<c.length;f++){const m=c[f];typeof m=="function"?m():mv(a[f],null)}}}}function Et(...a){return x.useCallback(Nr(...a),a)}function gr(a){const r=Ax(a),o=x.forwardRef((c,f)=>{const{children:m,...h}=c,v=x.Children.toArray(m),b=v.find(Tx);if(b){const p=b.props.children,S=v.map(y=>y===b?x.Children.count(p)>1?x.Children.only(null):x.isValidElement(p)?p.props.children:null:y);return d.jsx(r,{...h,ref:f,children:x.isValidElement(p)?x.cloneElement(p,void 0,S):null})}return d.jsx(r,{...h,ref:f,children:m})});return o.displayName=`${a}.Slot`,o}function Ax(a){const r=x.forwardRef((o,c)=>{const{children:f,...m}=o;if(x.isValidElement(f)){const h=zx(f),v=jx(m,f.props);return f.type!==x.Fragment&&(v.ref=c?Nr(c,h):h),x.cloneElement(f,v)}return x.Children.count(f)>1?x.Children.only(null):null});return r.displayName=`${a}.SlotClone`,r}var Mx=Symbol("radix.slottable");function Tx(a){return x.isValidElement(a)&&typeof a.type=="function"&&"__radixId"in a.type&&a.type.__radixId===Mx}function jx(a,r){const o={...r};for(const c in r){const f=a[c],m=r[c];/^on[A-Z]/.test(c)?f&&m?o[c]=(...v)=>{const b=m(...v);return f(...v),b}:f&&(o[c]=f):c==="style"?o[c]={...f,...m}:c==="className"&&(o[c]=[f,m].filter(Boolean).join(" "))}return{...a,...o}}function zx(a){var c,f;let r=(c=Object.getOwnPropertyDescriptor(a.props,"ref"))==null?void 0:c.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?a.ref:(r=(f=Object.getOwnPropertyDescriptor(a,"ref"))==null?void 0:f.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?a.props.ref:a.props.ref||a.ref)}var _x=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],mt=_x.reduce((a,r)=>{const o=gr(`Primitive.${r}`),c=x.forwardRef((f,m)=>{const{asChild:h,...v}=f,b=h?o:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(b,{...v,ref:m})});return c.displayName=`Primitive.${r}`,{...a,[r]:c}},{});function fp(a,r){a&&zs.flushSync(()=>a.dispatchEvent(r))}function Di(a,r=[]){let o=[];function c(m,h){const v=x.createContext(h),b=o.length;o=[...o,h];const p=y=>{var H;const{scope:C,children:M,...R}=y,T=((H=C==null?void 0:C[a])==null?void 0:H[b])||v,z=x.useMemo(()=>R,Object.values(R));return d.jsx(T.Provider,{value:z,children:M})};p.displayName=m+"Provider";function S(y,C){var T;const M=((T=C==null?void 0:C[a])==null?void 0:T[b])||v,R=x.useContext(M);if(R)return R;if(h!==void 0)return h;throw new Error(`\`${y}\` must be used within \`${m}\``)}return[p,S]}const f=()=>{const m=o.map(h=>x.createContext(h));return function(v){const b=(v==null?void 0:v[a])||m;return x.useMemo(()=>({[`__scope${a}`]:{...v,[a]:b}}),[v,b])}};return f.scopeName=a,[c,Ox(f,...r)]}function Ox(...a){const r=a[0];if(a.length===1)return r;const o=()=>{const c=a.map(f=>({useScope:f(),scopeName:f.scopeName}));return function(m){const h=c.reduce((v,{useScope:b,scopeName:p})=>{const y=b(m)[`__scope${p}`];return{...v,...y}},{});return x.useMemo(()=>({[`__scope${r.scopeName}`]:h}),[h])}};return o.scopeName=r.scopeName,o}function dp(a){const r=a+"CollectionProvider",[o,c]=Di(r),[f,m]=o(r,{collectionRef:{current:null},itemMap:new Map}),h=T=>{const{scope:z,children:H}=T,J=ul.useRef(null),Y=ul.useRef(new Map).current;return d.jsx(f,{scope:z,itemMap:Y,collectionRef:J,children:H})};h.displayName=r;const v=a+"CollectionSlot",b=gr(v),p=ul.forwardRef((T,z)=>{const{scope:H,children:J}=T,Y=m(v,H),U=Et(z,Y.collectionRef);return d.jsx(b,{ref:U,children:J})});p.displayName=v;const S=a+"CollectionItemSlot",y="data-radix-collection-item",C=gr(S),M=ul.forwardRef((T,z)=>{const{scope:H,children:J,...Y}=T,U=ul.useRef(null),$=Et(z,U),W=m(S,H);return ul.useEffect(()=>(W.itemMap.set(U,{ref:U,...Y}),()=>void W.itemMap.delete(U))),d.jsx(C,{[y]:"",ref:$,children:J})});M.displayName=S;function R(T){const z=m(a+"CollectionConsumer",T);return ul.useCallback(()=>{const J=z.collectionRef.current;if(!J)return[];const Y=Array.from(J.querySelectorAll(`[${y}]`));return Array.from(z.itemMap.values()).sort((W,Z)=>Y.indexOf(W.ref.current)-Y.indexOf(Z.ref.current))},[z.collectionRef,z.itemMap])}return[{Provider:h,Slot:p,ItemSlot:M},R,c]}function je(a,r,{checkForDefaultPrevented:o=!0}={}){return function(f){if(a==null||a(f),o===!1||!f.defaultPrevented)return r==null?void 0:r(f)}}var ol=globalThis!=null&&globalThis.document?x.useLayoutEffect:()=>{},Rx=Bv[" useInsertionEffect ".trim().toString()]||ol;function mp({prop:a,defaultProp:r,onChange:o=()=>{},caller:c}){const[f,m,h]=Dx({defaultProp:r,onChange:o}),v=a!==void 0,b=v?a:f;{const S=x.useRef(a!==void 0);x.useEffect(()=>{const y=S.current;y!==v&&console.warn(`${c} is changing from ${y?"controlled":"uncontrolled"} to ${v?"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.`),S.current=v},[v,c])}const p=x.useCallback(S=>{var y;if(v){const C=Ux(S)?S(a):S;C!==a&&((y=h.current)==null||y.call(h,C))}else m(S)},[v,a,m,h]);return[b,p]}function Dx({defaultProp:a,onChange:r}){const[o,c]=x.useState(a),f=x.useRef(o),m=x.useRef(r);return Rx(()=>{m.current=r},[r]),x.useEffect(()=>{var h;f.current!==o&&((h=m.current)==null||h.call(m,o),f.current=o)},[o,f]),[o,c,m]}function Ux(a){return typeof a=="function"}function Lx(a,r){return x.useReducer((o,c)=>r[o][c]??o,a)}var Ui=a=>{const{present:r,children:o}=a,c=kx(r),f=typeof o=="function"?o({present:c.isPresent}):x.Children.only(o),m=Et(c.ref,Hx(f));return typeof o=="function"||c.isPresent?x.cloneElement(f,{ref:m}):null};Ui.displayName="Presence";function kx(a){const[r,o]=x.useState(),c=x.useRef(null),f=x.useRef(a),m=x.useRef("none"),h=a?"mounted":"unmounted",[v,b]=Lx(h,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{const p=ur(c.current);m.current=v==="mounted"?p:"none"},[v]),ol(()=>{const p=c.current,S=f.current;if(S!==a){const C=m.current,M=ur(p);a?b("MOUNT"):M==="none"||(p==null?void 0:p.display)==="none"?b("UNMOUNT"):b(S&&C!==M?"ANIMATION_OUT":"UNMOUNT"),f.current=a}},[a,b]),ol(()=>{if(r){let p;const S=r.ownerDocument.defaultView??window,y=M=>{const T=ur(c.current).includes(CSS.escape(M.animationName));if(M.target===r&&T&&(b("ANIMATION_END"),!f.current)){const z=r.style.animationFillMode;r.style.animationFillMode="forwards",p=S.setTimeout(()=>{r.style.animationFillMode==="forwards"&&(r.style.animationFillMode=z)})}},C=M=>{M.target===r&&(m.current=ur(c.current))};return r.addEventListener("animationstart",C),r.addEventListener("animationcancel",y),r.addEventListener("animationend",y),()=>{S.clearTimeout(p),r.removeEventListener("animationstart",C),r.removeEventListener("animationcancel",y),r.removeEventListener("animationend",y)}}else b("ANIMATION_END")},[r,b]),{isPresent:["mounted","unmountSuspended"].includes(v),ref:x.useCallback(p=>{c.current=p?getComputedStyle(p):null,o(p)},[])}}function ur(a){return(a==null?void 0:a.animationName)||"none"}function Hx(a){var c,f;let r=(c=Object.getOwnPropertyDescriptor(a.props,"ref"))==null?void 0:c.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?a.ref:(r=(f=Object.getOwnPropertyDescriptor(a,"ref"))==null?void 0:f.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?a.props.ref:a.props.ref||a.ref)}var Bx=Bv[" useId ".trim().toString()]||(()=>{}),Gx=0;function ys(a){const[r,o]=x.useState(Bx());return ol(()=>{o(c=>c??String(Gx++))},[a]),r?`radix-${r}`:""}var qx=x.createContext(void 0);function hp(a){const r=x.useContext(qx);return a||r||"ltr"}function Tn(a){const r=x.useRef(a);return x.useEffect(()=>{r.current=a}),x.useMemo(()=>(...o)=>{var c;return(c=r.current)==null?void 0:c.call(r,...o)},[])}function Yx(a,r=globalThis==null?void 0:globalThis.document){const o=Tn(a);x.useEffect(()=>{const c=f=>{f.key==="Escape"&&o(f)};return r.addEventListener("keydown",c,{capture:!0}),()=>r.removeEventListener("keydown",c,{capture:!0})},[o,r])}var Xx="DismissableLayer",bs="dismissableLayer.update",Vx="dismissableLayer.pointerDownOutside",Qx="dismissableLayer.focusOutside",hv,vp=x.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),pp=x.forwardRef((a,r)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:m,onInteractOutside:h,onDismiss:v,...b}=a,p=x.useContext(vp),[S,y]=x.useState(null),C=(S==null?void 0:S.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,M]=x.useState({}),R=Et(r,Z=>y(Z)),T=Array.from(p.layers),[z]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),H=T.indexOf(z),J=S?T.indexOf(S):-1,Y=p.layersWithOutsidePointerEventsDisabled.size>0,U=J>=H,$=Jx(Z=>{const K=Z.target,ue=[...p.branches].some(de=>de.contains(K));!U||ue||(f==null||f(Z),h==null||h(Z),Z.defaultPrevented||v==null||v())},C),W=Fx(Z=>{const K=Z.target;[...p.branches].some(de=>de.contains(K))||(m==null||m(Z),h==null||h(Z),Z.defaultPrevented||v==null||v())},C);return Yx(Z=>{J===p.layers.size-1&&(c==null||c(Z),!Z.defaultPrevented&&v&&(Z.preventDefault(),v()))},C),x.useEffect(()=>{if(S)return o&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(hv=C.body.style.pointerEvents,C.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(S)),p.layers.add(S),vv(),()=>{o&&p.layersWithOutsidePointerEventsDisabled.size===1&&(C.body.style.pointerEvents=hv)}},[S,C,o,p]),x.useEffect(()=>()=>{S&&(p.layers.delete(S),p.layersWithOutsidePointerEventsDisabled.delete(S),vv())},[S,p]),x.useEffect(()=>{const Z=()=>M({});return document.addEventListener(bs,Z),()=>document.removeEventListener(bs,Z)},[]),d.jsx(mt.div,{...b,ref:R,style:{pointerEvents:Y?U?"auto":"none":void 0,...a.style},onFocusCapture:je(a.onFocusCapture,W.onFocusCapture),onBlurCapture:je(a.onBlurCapture,W.onBlurCapture),onPointerDownCapture:je(a.onPointerDownCapture,$.onPointerDownCapture)})});pp.displayName=Xx;var Zx="DismissableLayerBranch",Kx=x.forwardRef((a,r)=>{const o=x.useContext(vp),c=x.useRef(null),f=Et(r,c);return x.useEffect(()=>{const m=c.current;if(m)return o.branches.add(m),()=>{o.branches.delete(m)}},[o.branches]),d.jsx(mt.div,{...a,ref:f})});Kx.displayName=Zx;function Jx(a,r=globalThis==null?void 0:globalThis.document){const o=Tn(a),c=x.useRef(!1),f=x.useRef(()=>{});return x.useEffect(()=>{const m=v=>{if(v.target&&!c.current){let b=function(){gp(Vx,o,p,{discrete:!0})};const p={originalEvent:v};v.pointerType==="touch"?(r.removeEventListener("click",f.current),f.current=b,r.addEventListener("click",f.current,{once:!0})):b()}else r.removeEventListener("click",f.current);c.current=!1},h=window.setTimeout(()=>{r.addEventListener("pointerdown",m)},0);return()=>{window.clearTimeout(h),r.removeEventListener("pointerdown",m),r.removeEventListener("click",f.current)}},[r,o]),{onPointerDownCapture:()=>c.current=!0}}function Fx(a,r=globalThis==null?void 0:globalThis.document){const o=Tn(a),c=x.useRef(!1);return x.useEffect(()=>{const f=m=>{m.target&&!c.current&&gp(Qx,o,{originalEvent:m},{discrete:!1})};return r.addEventListener("focusin",f),()=>r.removeEventListener("focusin",f)},[r,o]),{onFocusCapture:()=>c.current=!0,onBlurCapture:()=>c.current=!1}}function vv(){const a=new CustomEvent(bs);document.dispatchEvent(a)}function gp(a,r,o,{discrete:c}){const f=o.originalEvent.target,m=new CustomEvent(a,{bubbles:!1,cancelable:!0,detail:o});r&&f.addEventListener(a,r,{once:!0}),c?fp(f,m):f.dispatchEvent(m)}var ls="focusScope.autoFocusOnMount",as="focusScope.autoFocusOnUnmount",pv={bubbles:!1,cancelable:!0},Wx="FocusScope",yp=x.forwardRef((a,r)=>{const{loop:o=!1,trapped:c=!1,onMountAutoFocus:f,onUnmountAutoFocus:m,...h}=a,[v,b]=x.useState(null),p=Tn(f),S=Tn(m),y=x.useRef(null),C=Et(r,T=>b(T)),M=x.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;x.useEffect(()=>{if(c){let T=function(Y){if(M.paused||!v)return;const U=Y.target;v.contains(U)?y.current=U:rl(y.current,{select:!0})},z=function(Y){if(M.paused||!v)return;const U=Y.relatedTarget;U!==null&&(v.contains(U)||rl(y.current,{select:!0}))},H=function(Y){if(document.activeElement===document.body)for(const $ of Y)$.removedNodes.length>0&&rl(v)};document.addEventListener("focusin",T),document.addEventListener("focusout",z);const J=new MutationObserver(H);return v&&J.observe(v,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",T),document.removeEventListener("focusout",z),J.disconnect()}}},[c,v,M.paused]),x.useEffect(()=>{if(v){yv.add(M);const T=document.activeElement;if(!v.contains(T)){const H=new CustomEvent(ls,pv);v.addEventListener(ls,p),v.dispatchEvent(H),H.defaultPrevented||($x(n1(bp(v)),{select:!0}),document.activeElement===T&&rl(v))}return()=>{v.removeEventListener(ls,p),setTimeout(()=>{const H=new CustomEvent(as,pv);v.addEventListener(as,S),v.dispatchEvent(H),H.defaultPrevented||rl(T??document.body,{select:!0}),v.removeEventListener(as,S),yv.remove(M)},0)}}},[v,p,S,M]);const R=x.useCallback(T=>{if(!o&&!c||M.paused)return;const z=T.key==="Tab"&&!T.altKey&&!T.ctrlKey&&!T.metaKey,H=document.activeElement;if(z&&H){const J=T.currentTarget,[Y,U]=Ix(J);Y&&U?!T.shiftKey&&H===U?(T.preventDefault(),o&&rl(Y,{select:!0})):T.shiftKey&&H===Y&&(T.preventDefault(),o&&rl(U,{select:!0})):H===J&&T.preventDefault()}},[o,c,M.paused]);return d.jsx(mt.div,{tabIndex:-1,...h,ref:C,onKeyDown:R})});yp.displayName=Wx;function $x(a,{select:r=!1}={}){const o=document.activeElement;for(const c of a)if(rl(c,{select:r}),document.activeElement!==o)return}function Ix(a){const r=bp(a),o=gv(r,a),c=gv(r.reverse(),a);return[o,c]}function bp(a){const r=[],o=document.createTreeWalker(a,NodeFilter.SHOW_ELEMENT,{acceptNode:c=>{const f=c.tagName==="INPUT"&&c.type==="hidden";return c.disabled||c.hidden||f?NodeFilter.FILTER_SKIP:c.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)r.push(o.currentNode);return r}function gv(a,r){for(const o of a)if(!Px(o,{upTo:r}))return o}function Px(a,{upTo:r}){if(getComputedStyle(a).visibility==="hidden")return!0;for(;a;){if(r!==void 0&&a===r)return!1;if(getComputedStyle(a).display==="none")return!0;a=a.parentElement}return!1}function e1(a){return a instanceof HTMLInputElement&&"select"in a}function rl(a,{select:r=!1}={}){if(a&&a.focus){const o=document.activeElement;a.focus({preventScroll:!0}),a!==o&&e1(a)&&r&&a.select()}}var yv=t1();function t1(){let a=[];return{add(r){const o=a[0];r!==o&&(o==null||o.pause()),a=bv(a,r),a.unshift(r)},remove(r){var o;a=bv(a,r),(o=a[0])==null||o.resume()}}}function bv(a,r){const o=[...a],c=o.indexOf(r);return c!==-1&&o.splice(c,1),o}function n1(a){return a.filter(r=>r.tagName!=="A")}var l1="Portal",xp=x.forwardRef((a,r)=>{var v;const{container:o,...c}=a,[f,m]=x.useState(!1);ol(()=>m(!0),[]);const h=o||f&&((v=globalThis==null?void 0:globalThis.document)==null?void 0:v.body);return h?Nx.createPortal(d.jsx(mt.div,{...c,ref:r}),h):null});xp.displayName=l1;var is=0;function a1(){x.useEffect(()=>{const a=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",a[0]??xv()),document.body.insertAdjacentElement("beforeend",a[1]??xv()),is++,()=>{is===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),is--}},[])}function xv(){const a=document.createElement("span");return a.setAttribute("data-radix-focus-guard",""),a.tabIndex=0,a.style.outline="none",a.style.opacity="0",a.style.position="fixed",a.style.pointerEvents="none",a}var ln=function(){return ln=Object.assign||function(r){for(var o,c=1,f=arguments.length;c<f;c++){o=arguments[c];for(var m in o)Object.prototype.hasOwnProperty.call(o,m)&&(r[m]=o[m])}return r},ln.apply(this,arguments)};function Sp(a,r){var o={};for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&r.indexOf(c)<0&&(o[c]=a[c]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var f=0,c=Object.getOwnPropertySymbols(a);f<c.length;f++)r.indexOf(c[f])<0&&Object.prototype.propertyIsEnumerable.call(a,c[f])&&(o[c[f]]=a[c[f]]);return o}function i1(a,r,o){if(o||arguments.length===2)for(var c=0,f=r.length,m;c<f;c++)(m||!(c in r))&&(m||(m=Array.prototype.slice.call(r,0,c)),m[c]=r[c]);return a.concat(m||Array.prototype.slice.call(r))}var dr="right-scroll-bar-position",mr="width-before-scroll-bar",u1="with-scroll-bars-hidden",r1="--removed-body-scroll-bar-size";function us(a,r){return typeof a=="function"?a(r):a&&(a.current=r),a}function o1(a,r){var o=x.useState(function(){return{value:a,callback:r,facade:{get current(){return o.value},set current(c){var f=o.value;f!==c&&(o.value=c,o.callback(c,f))}}}})[0];return o.callback=r,o.facade}var c1=typeof window<"u"?x.useLayoutEffect:x.useEffect,Sv=new WeakMap;function s1(a,r){var o=o1(null,function(c){return a.forEach(function(f){return us(f,c)})});return c1(function(){var c=Sv.get(o);if(c){var f=new Set(c),m=new Set(a),h=o.current;f.forEach(function(v){m.has(v)||us(v,null)}),m.forEach(function(v){f.has(v)||us(v,h)})}Sv.set(o,a)},[a]),o}function f1(a){return a}function d1(a,r){r===void 0&&(r=f1);var o=[],c=!1,f={read:function(){if(c)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:a},useMedium:function(m){var h=r(m,c);return o.push(h),function(){o=o.filter(function(v){return v!==h})}},assignSyncMedium:function(m){for(c=!0;o.length;){var h=o;o=[],h.forEach(m)}o={push:function(v){return m(v)},filter:function(){return o}}},assignMedium:function(m){c=!0;var h=[];if(o.length){var v=o;o=[],v.forEach(m),h=o}var b=function(){var S=h;h=[],S.forEach(m)},p=function(){return Promise.resolve().then(b)};p(),o={push:function(S){h.push(S),p()},filter:function(S){return h=h.filter(S),o}}}};return f}function m1(a){a===void 0&&(a={});var r=d1(null);return r.options=ln({async:!0,ssr:!1},a),r}var Ep=function(a){var r=a.sideCar,o=Sp(a,["sideCar"]);if(!r)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var c=r.read();if(!c)throw new Error("Sidecar medium not found");return x.createElement(c,ln({},o))};Ep.isSideCarExport=!0;function h1(a,r){return a.useMedium(r),Ep}var Cp=m1(),rs=function(){},Ar=x.forwardRef(function(a,r){var o=x.useRef(null),c=x.useState({onScrollCapture:rs,onWheelCapture:rs,onTouchMoveCapture:rs}),f=c[0],m=c[1],h=a.forwardProps,v=a.children,b=a.className,p=a.removeScrollBar,S=a.enabled,y=a.shards,C=a.sideCar,M=a.noRelative,R=a.noIsolation,T=a.inert,z=a.allowPinchZoom,H=a.as,J=H===void 0?"div":H,Y=a.gapMode,U=Sp(a,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),$=C,W=s1([o,r]),Z=ln(ln({},U),f);return x.createElement(x.Fragment,null,S&&x.createElement($,{sideCar:Cp,removeScrollBar:p,shards:y,noRelative:M,noIsolation:R,inert:T,setCallbacks:m,allowPinchZoom:!!z,lockRef:o,gapMode:Y}),h?x.cloneElement(x.Children.only(v),ln(ln({},Z),{ref:W})):x.createElement(J,ln({},Z,{className:b,ref:W}),v))});Ar.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ar.classNames={fullWidth:mr,zeroRight:dr};var v1=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function p1(){if(!document)return null;var a=document.createElement("style");a.type="text/css";var r=v1();return r&&a.setAttribute("nonce",r),a}function g1(a,r){a.styleSheet?a.styleSheet.cssText=r:a.appendChild(document.createTextNode(r))}function y1(a){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(a)}var b1=function(){var a=0,r=null;return{add:function(o){a==0&&(r=p1())&&(g1(r,o),y1(r)),a++},remove:function(){a--,!a&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},x1=function(){var a=b1();return function(r,o){x.useEffect(function(){return a.add(r),function(){a.remove()}},[r&&o])}},wp=function(){var a=x1(),r=function(o){var c=o.styles,f=o.dynamic;return a(c,f),null};return r},S1={left:0,top:0,right:0,gap:0},os=function(a){return parseInt(a||"",10)||0},E1=function(a){var r=window.getComputedStyle(document.body),o=r[a==="padding"?"paddingLeft":"marginLeft"],c=r[a==="padding"?"paddingTop":"marginTop"],f=r[a==="padding"?"paddingRight":"marginRight"];return[os(o),os(c),os(f)]},C1=function(a){if(a===void 0&&(a="margin"),typeof window>"u")return S1;var r=E1(a),o=document.documentElement.clientWidth,c=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,c-o+r[2]-r[0])}},w1=wp(),Ma="data-scroll-locked",N1=function(a,r,o,c){var f=a.left,m=a.top,h=a.right,v=a.gap;return o===void 0&&(o="margin"),`
190
- .`.concat(u1,` {
191
- overflow: hidden `).concat(c,`;
192
- padding-right: `).concat(v,"px ").concat(c,`;
193
- }
194
- body[`).concat(Ma,`] {
195
- overflow: hidden `).concat(c,`;
196
- overscroll-behavior: contain;
197
- `).concat([r&&"position: relative ".concat(c,";"),o==="margin"&&`
198
- padding-left: `.concat(f,`px;
199
- padding-top: `).concat(m,`px;
200
- padding-right: `).concat(h,`px;
201
- margin-left:0;
202
- margin-top:0;
203
- margin-right: `).concat(v,"px ").concat(c,`;
204
- `),o==="padding"&&"padding-right: ".concat(v,"px ").concat(c,";")].filter(Boolean).join(""),`
205
- }
206
-
207
- .`).concat(dr,` {
208
- right: `).concat(v,"px ").concat(c,`;
209
- }
210
-
211
- .`).concat(mr,` {
212
- margin-right: `).concat(v,"px ").concat(c,`;
213
- }
214
-
215
- .`).concat(dr," .").concat(dr,` {
216
- right: 0 `).concat(c,`;
217
- }
218
-
219
- .`).concat(mr," .").concat(mr,` {
220
- margin-right: 0 `).concat(c,`;
221
- }
222
-
223
- body[`).concat(Ma,`] {
224
- `).concat(r1,": ").concat(v,`px;
225
- }
226
- `)},Ev=function(){var a=parseInt(document.body.getAttribute(Ma)||"0",10);return isFinite(a)?a:0},A1=function(){x.useEffect(function(){return document.body.setAttribute(Ma,(Ev()+1).toString()),function(){var a=Ev()-1;a<=0?document.body.removeAttribute(Ma):document.body.setAttribute(Ma,a.toString())}},[])},M1=function(a){var r=a.noRelative,o=a.noImportant,c=a.gapMode,f=c===void 0?"margin":c;A1();var m=x.useMemo(function(){return C1(f)},[f]);return x.createElement(w1,{styles:N1(m,!r,f,o?"":"!important")})},xs=!1;if(typeof window<"u")try{var rr=Object.defineProperty({},"passive",{get:function(){return xs=!0,!0}});window.addEventListener("test",rr,rr),window.removeEventListener("test",rr,rr)}catch{xs=!1}var wa=xs?{passive:!1}:!1,T1=function(a){return a.tagName==="TEXTAREA"},Np=function(a,r){if(!(a instanceof Element))return!1;var o=window.getComputedStyle(a);return o[r]!=="hidden"&&!(o.overflowY===o.overflowX&&!T1(a)&&o[r]==="visible")},j1=function(a){return Np(a,"overflowY")},z1=function(a){return Np(a,"overflowX")},Cv=function(a,r){var o=r.ownerDocument,c=r;do{typeof ShadowRoot<"u"&&c instanceof ShadowRoot&&(c=c.host);var f=Ap(a,c);if(f){var m=Mp(a,c),h=m[1],v=m[2];if(h>v)return!0}c=c.parentNode}while(c&&c!==o.body);return!1},_1=function(a){var r=a.scrollTop,o=a.scrollHeight,c=a.clientHeight;return[r,o,c]},O1=function(a){var r=a.scrollLeft,o=a.scrollWidth,c=a.clientWidth;return[r,o,c]},Ap=function(a,r){return a==="v"?j1(r):z1(r)},Mp=function(a,r){return a==="v"?_1(r):O1(r)},R1=function(a,r){return a==="h"&&r==="rtl"?-1:1},D1=function(a,r,o,c,f){var m=R1(a,window.getComputedStyle(r).direction),h=m*c,v=o.target,b=r.contains(v),p=!1,S=h>0,y=0,C=0;do{if(!v)break;var M=Mp(a,v),R=M[0],T=M[1],z=M[2],H=T-z-m*R;(R||H)&&Ap(a,v)&&(y+=H,C+=R);var J=v.parentNode;v=J&&J.nodeType===Node.DOCUMENT_FRAGMENT_NODE?J.host:J}while(!b&&v!==document.body||b&&(r.contains(v)||r===v));return(S&&Math.abs(y)<1||!S&&Math.abs(C)<1)&&(p=!0),p},or=function(a){return"changedTouches"in a?[a.changedTouches[0].clientX,a.changedTouches[0].clientY]:[0,0]},wv=function(a){return[a.deltaX,a.deltaY]},Nv=function(a){return a&&"current"in a?a.current:a},U1=function(a,r){return a[0]===r[0]&&a[1]===r[1]},L1=function(a){return`
227
- .block-interactivity-`.concat(a,` {pointer-events: none;}
228
- .allow-interactivity-`).concat(a,` {pointer-events: all;}
229
- `)},k1=0,Na=[];function H1(a){var r=x.useRef([]),o=x.useRef([0,0]),c=x.useRef(),f=x.useState(k1++)[0],m=x.useState(wp)[0],h=x.useRef(a);x.useEffect(function(){h.current=a},[a]),x.useEffect(function(){if(a.inert){document.body.classList.add("block-interactivity-".concat(f));var T=i1([a.lockRef.current],(a.shards||[]).map(Nv),!0).filter(Boolean);return T.forEach(function(z){return z.classList.add("allow-interactivity-".concat(f))}),function(){document.body.classList.remove("block-interactivity-".concat(f)),T.forEach(function(z){return z.classList.remove("allow-interactivity-".concat(f))})}}},[a.inert,a.lockRef.current,a.shards]);var v=x.useCallback(function(T,z){if("touches"in T&&T.touches.length===2||T.type==="wheel"&&T.ctrlKey)return!h.current.allowPinchZoom;var H=or(T),J=o.current,Y="deltaX"in T?T.deltaX:J[0]-H[0],U="deltaY"in T?T.deltaY:J[1]-H[1],$,W=T.target,Z=Math.abs(Y)>Math.abs(U)?"h":"v";if("touches"in T&&Z==="h"&&W.type==="range")return!1;var K=window.getSelection(),ue=K&&K.anchorNode,de=ue?ue===W||ue.contains(W):!1;if(de)return!1;var ve=Cv(Z,W);if(!ve)return!0;if(ve?$=Z:($=Z==="v"?"h":"v",ve=Cv(Z,W)),!ve)return!1;if(!c.current&&"changedTouches"in T&&(Y||U)&&(c.current=$),!$)return!0;var me=c.current||$;return D1(me,z,T,me==="h"?Y:U)},[]),b=x.useCallback(function(T){var z=T;if(!(!Na.length||Na[Na.length-1]!==m)){var H="deltaY"in z?wv(z):or(z),J=r.current.filter(function($){return $.name===z.type&&($.target===z.target||z.target===$.shadowParent)&&U1($.delta,H)})[0];if(J&&J.should){z.cancelable&&z.preventDefault();return}if(!J){var Y=(h.current.shards||[]).map(Nv).filter(Boolean).filter(function($){return $.contains(z.target)}),U=Y.length>0?v(z,Y[0]):!h.current.noIsolation;U&&z.cancelable&&z.preventDefault()}}},[]),p=x.useCallback(function(T,z,H,J){var Y={name:T,delta:z,target:H,should:J,shadowParent:B1(H)};r.current.push(Y),setTimeout(function(){r.current=r.current.filter(function(U){return U!==Y})},1)},[]),S=x.useCallback(function(T){o.current=or(T),c.current=void 0},[]),y=x.useCallback(function(T){p(T.type,wv(T),T.target,v(T,a.lockRef.current))},[]),C=x.useCallback(function(T){p(T.type,or(T),T.target,v(T,a.lockRef.current))},[]);x.useEffect(function(){return Na.push(m),a.setCallbacks({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:C}),document.addEventListener("wheel",b,wa),document.addEventListener("touchmove",b,wa),document.addEventListener("touchstart",S,wa),function(){Na=Na.filter(function(T){return T!==m}),document.removeEventListener("wheel",b,wa),document.removeEventListener("touchmove",b,wa),document.removeEventListener("touchstart",S,wa)}},[]);var M=a.removeScrollBar,R=a.inert;return x.createElement(x.Fragment,null,R?x.createElement(m,{styles:L1(f)}):null,M?x.createElement(M1,{noRelative:a.noRelative,gapMode:a.gapMode}):null)}function B1(a){for(var r=null;a!==null;)a instanceof ShadowRoot&&(r=a.host,a=a.host),a=a.parentNode;return r}const G1=h1(Cp,H1);var Tp=x.forwardRef(function(a,r){return x.createElement(Ar,ln({},a,{ref:r,sideCar:G1}))});Tp.classNames=Ar.classNames;var q1=function(a){if(typeof document>"u")return null;var r=Array.isArray(a)?a[0]:a;return r.ownerDocument.body},Aa=new WeakMap,cr=new WeakMap,sr={},cs=0,jp=function(a){return a&&(a.host||jp(a.parentNode))},Y1=function(a,r){return r.map(function(o){if(a.contains(o))return o;var c=jp(o);return c&&a.contains(c)?c:(console.error("aria-hidden",o,"in not contained inside",a,". Doing nothing"),null)}).filter(function(o){return!!o})},X1=function(a,r,o,c){var f=Y1(r,Array.isArray(a)?a:[a]);sr[o]||(sr[o]=new WeakMap);var m=sr[o],h=[],v=new Set,b=new Set(f),p=function(y){!y||v.has(y)||(v.add(y),p(y.parentNode))};f.forEach(p);var S=function(y){!y||b.has(y)||Array.prototype.forEach.call(y.children,function(C){if(v.has(C))S(C);else try{var M=C.getAttribute(c),R=M!==null&&M!=="false",T=(Aa.get(C)||0)+1,z=(m.get(C)||0)+1;Aa.set(C,T),m.set(C,z),h.push(C),T===1&&R&&cr.set(C,!0),z===1&&C.setAttribute(o,"true"),R||C.setAttribute(c,"true")}catch(H){console.error("aria-hidden: cannot operate on ",C,H)}})};return S(r),v.clear(),cs++,function(){h.forEach(function(y){var C=Aa.get(y)-1,M=m.get(y)-1;Aa.set(y,C),m.set(y,M),C||(cr.has(y)||y.removeAttribute(c),cr.delete(y)),M||y.removeAttribute(o)}),cs--,cs||(Aa=new WeakMap,Aa=new WeakMap,cr=new WeakMap,sr={})}},V1=function(a,r,o){o===void 0&&(o="data-aria-hidden");var c=Array.from(Array.isArray(a)?a:[a]),f=q1(a);return f?(c.push.apply(c,Array.from(f.querySelectorAll("[aria-live], script"))),X1(c,f,o,"aria-hidden")):function(){return null}};function Q1(a){const[r,o]=x.useState(void 0);return ol(()=>{if(a){o({width:a.offsetWidth,height:a.offsetHeight});const c=new ResizeObserver(f=>{if(!Array.isArray(f)||!f.length)return;const m=f[0];let h,v;if("borderBoxSize"in m){const b=m.borderBoxSize,p=Array.isArray(b)?b[0]:b;h=p.inlineSize,v=p.blockSize}else h=a.offsetWidth,v=a.offsetHeight;o({width:h,height:v})});return c.observe(a,{box:"border-box"}),()=>c.unobserve(a)}else o(void 0)},[a]),r}const Z1=["top","right","bottom","left"],cl=Math.min,Dt=Math.max,yr=Math.round,fr=Math.floor,rn=a=>({x:a,y:a}),K1={left:"right",right:"left",bottom:"top",top:"bottom"};function Ss(a,r,o){return Dt(a,cl(r,o))}function jn(a,r){return typeof a=="function"?a(r):a}function zn(a){return a.split("-")[0]}function za(a){return a.split("-")[1]}function _s(a){return a==="x"?"y":"x"}function Os(a){return a==="y"?"height":"width"}function un(a){const r=a[0];return r==="t"||r==="b"?"y":"x"}function Rs(a){return _s(un(a))}function J1(a,r,o){o===void 0&&(o=!1);const c=za(a),f=Rs(a),m=Os(f);let h=f==="x"?c===(o?"end":"start")?"right":"left":c==="start"?"bottom":"top";return r.reference[m]>r.floating[m]&&(h=br(h)),[h,br(h)]}function F1(a){const r=br(a);return[Es(a),r,Es(r)]}function Es(a){return a.includes("start")?a.replace("start","end"):a.replace("end","start")}const Av=["left","right"],Mv=["right","left"],W1=["top","bottom"],$1=["bottom","top"];function I1(a,r,o){switch(a){case"top":case"bottom":return o?r?Mv:Av:r?Av:Mv;case"left":case"right":return r?W1:$1;default:return[]}}function P1(a,r,o,c){const f=za(a);let m=I1(zn(a),o==="start",c);return f&&(m=m.map(h=>h+"-"+f),r&&(m=m.concat(m.map(Es)))),m}function br(a){const r=zn(a);return K1[r]+a.slice(r.length)}function eS(a){return{top:0,right:0,bottom:0,left:0,...a}}function zp(a){return typeof a!="number"?eS(a):{top:a,right:a,bottom:a,left:a}}function xr(a){const{x:r,y:o,width:c,height:f}=a;return{width:c,height:f,top:o,left:r,right:r+c,bottom:o+f,x:r,y:o}}function Tv(a,r,o){let{reference:c,floating:f}=a;const m=un(r),h=Rs(r),v=Os(h),b=zn(r),p=m==="y",S=c.x+c.width/2-f.width/2,y=c.y+c.height/2-f.height/2,C=c[v]/2-f[v]/2;let M;switch(b){case"top":M={x:S,y:c.y-f.height};break;case"bottom":M={x:S,y:c.y+c.height};break;case"right":M={x:c.x+c.width,y};break;case"left":M={x:c.x-f.width,y};break;default:M={x:c.x,y:c.y}}switch(za(r)){case"start":M[h]-=C*(o&&p?-1:1);break;case"end":M[h]+=C*(o&&p?-1:1);break}return M}async function tS(a,r){var o;r===void 0&&(r={});const{x:c,y:f,platform:m,rects:h,elements:v,strategy:b}=a,{boundary:p="clippingAncestors",rootBoundary:S="viewport",elementContext:y="floating",altBoundary:C=!1,padding:M=0}=jn(r,a),R=zp(M),z=v[C?y==="floating"?"reference":"floating":y],H=xr(await m.getClippingRect({element:(o=await(m.isElement==null?void 0:m.isElement(z)))==null||o?z:z.contextElement||await(m.getDocumentElement==null?void 0:m.getDocumentElement(v.floating)),boundary:p,rootBoundary:S,strategy:b})),J=y==="floating"?{x:c,y:f,width:h.floating.width,height:h.floating.height}:h.reference,Y=await(m.getOffsetParent==null?void 0:m.getOffsetParent(v.floating)),U=await(m.isElement==null?void 0:m.isElement(Y))?await(m.getScale==null?void 0:m.getScale(Y))||{x:1,y:1}:{x:1,y:1},$=xr(m.convertOffsetParentRelativeRectToViewportRelativeRect?await m.convertOffsetParentRelativeRectToViewportRelativeRect({elements:v,rect:J,offsetParent:Y,strategy:b}):J);return{top:(H.top-$.top+R.top)/U.y,bottom:($.bottom-H.bottom+R.bottom)/U.y,left:(H.left-$.left+R.left)/U.x,right:($.right-H.right+R.right)/U.x}}const nS=50,lS=async(a,r,o)=>{const{placement:c="bottom",strategy:f="absolute",middleware:m=[],platform:h}=o,v=h.detectOverflow?h:{...h,detectOverflow:tS},b=await(h.isRTL==null?void 0:h.isRTL(r));let p=await h.getElementRects({reference:a,floating:r,strategy:f}),{x:S,y}=Tv(p,c,b),C=c,M=0;const R={};for(let T=0;T<m.length;T++){const z=m[T];if(!z)continue;const{name:H,fn:J}=z,{x:Y,y:U,data:$,reset:W}=await J({x:S,y,initialPlacement:c,placement:C,strategy:f,middlewareData:R,rects:p,platform:v,elements:{reference:a,floating:r}});S=Y??S,y=U??y,R[H]={...R[H],...$},W&&M<nS&&(M++,typeof W=="object"&&(W.placement&&(C=W.placement),W.rects&&(p=W.rects===!0?await h.getElementRects({reference:a,floating:r,strategy:f}):W.rects),{x:S,y}=Tv(p,C,b)),T=-1)}return{x:S,y,placement:C,strategy:f,middlewareData:R}},aS=a=>({name:"arrow",options:a,async fn(r){const{x:o,y:c,placement:f,rects:m,platform:h,elements:v,middlewareData:b}=r,{element:p,padding:S=0}=jn(a,r)||{};if(p==null)return{};const y=zp(S),C={x:o,y:c},M=Rs(f),R=Os(M),T=await h.getDimensions(p),z=M==="y",H=z?"top":"left",J=z?"bottom":"right",Y=z?"clientHeight":"clientWidth",U=m.reference[R]+m.reference[M]-C[M]-m.floating[R],$=C[M]-m.reference[M],W=await(h.getOffsetParent==null?void 0:h.getOffsetParent(p));let Z=W?W[Y]:0;(!Z||!await(h.isElement==null?void 0:h.isElement(W)))&&(Z=v.floating[Y]||m.floating[R]);const K=U/2-$/2,ue=Z/2-T[R]/2-1,de=cl(y[H],ue),ve=cl(y[J],ue),me=de,ge=Z-T[R]-ve,he=Z/2-T[R]/2+K,ye=Ss(me,he,ge),w=!b.arrow&&za(f)!=null&&he!==ye&&m.reference[R]/2-(he<me?de:ve)-T[R]/2<0,B=w?he<me?he-me:he-ge:0;return{[M]:C[M]+B,data:{[M]:ye,centerOffset:he-ye-B,...w&&{alignmentOffset:B}},reset:w}}}),iS=function(a){return a===void 0&&(a={}),{name:"flip",options:a,async fn(r){var o,c;const{placement:f,middlewareData:m,rects:h,initialPlacement:v,platform:b,elements:p}=r,{mainAxis:S=!0,crossAxis:y=!0,fallbackPlacements:C,fallbackStrategy:M="bestFit",fallbackAxisSideDirection:R="none",flipAlignment:T=!0,...z}=jn(a,r);if((o=m.arrow)!=null&&o.alignmentOffset)return{};const H=zn(f),J=un(v),Y=zn(v)===v,U=await(b.isRTL==null?void 0:b.isRTL(p.floating)),$=C||(Y||!T?[br(v)]:F1(v)),W=R!=="none";!C&&W&&$.push(...P1(v,T,R,U));const Z=[v,...$],K=await b.detectOverflow(r,z),ue=[];let de=((c=m.flip)==null?void 0:c.overflows)||[];if(S&&ue.push(K[H]),y){const he=J1(f,h,U);ue.push(K[he[0]],K[he[1]])}if(de=[...de,{placement:f,overflows:ue}],!ue.every(he=>he<=0)){var ve,me;const he=(((ve=m.flip)==null?void 0:ve.index)||0)+1,ye=Z[he];if(ye&&(!(y==="alignment"?J!==un(ye):!1)||de.every(k=>un(k.placement)===J?k.overflows[0]>0:!0)))return{data:{index:he,overflows:de},reset:{placement:ye}};let w=(me=de.filter(B=>B.overflows[0]<=0).sort((B,k)=>B.overflows[1]-k.overflows[1])[0])==null?void 0:me.placement;if(!w)switch(M){case"bestFit":{var ge;const B=(ge=de.filter(k=>{if(W){const X=un(k.placement);return X===J||X==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(X=>X>0).reduce((X,F)=>X+F,0)]).sort((k,X)=>k[1]-X[1])[0])==null?void 0:ge[0];B&&(w=B);break}case"initialPlacement":w=v;break}if(f!==w)return{reset:{placement:w}}}return{}}}};function jv(a,r){return{top:a.top-r.height,right:a.right-r.width,bottom:a.bottom-r.height,left:a.left-r.width}}function zv(a){return Z1.some(r=>a[r]>=0)}const uS=function(a){return a===void 0&&(a={}),{name:"hide",options:a,async fn(r){const{rects:o,platform:c}=r,{strategy:f="referenceHidden",...m}=jn(a,r);switch(f){case"referenceHidden":{const h=await c.detectOverflow(r,{...m,elementContext:"reference"}),v=jv(h,o.reference);return{data:{referenceHiddenOffsets:v,referenceHidden:zv(v)}}}case"escaped":{const h=await c.detectOverflow(r,{...m,altBoundary:!0}),v=jv(h,o.floating);return{data:{escapedOffsets:v,escaped:zv(v)}}}default:return{}}}}},_p=new Set(["left","top"]);async function rS(a,r){const{placement:o,platform:c,elements:f}=a,m=await(c.isRTL==null?void 0:c.isRTL(f.floating)),h=zn(o),v=za(o),b=un(o)==="y",p=_p.has(h)?-1:1,S=m&&b?-1:1,y=jn(r,a);let{mainAxis:C,crossAxis:M,alignmentAxis:R}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return v&&typeof R=="number"&&(M=v==="end"?R*-1:R),b?{x:M*S,y:C*p}:{x:C*p,y:M*S}}const oS=function(a){return a===void 0&&(a=0),{name:"offset",options:a,async fn(r){var o,c;const{x:f,y:m,placement:h,middlewareData:v}=r,b=await rS(r,a);return h===((o=v.offset)==null?void 0:o.placement)&&(c=v.arrow)!=null&&c.alignmentOffset?{}:{x:f+b.x,y:m+b.y,data:{...b,placement:h}}}}},cS=function(a){return a===void 0&&(a={}),{name:"shift",options:a,async fn(r){const{x:o,y:c,placement:f,platform:m}=r,{mainAxis:h=!0,crossAxis:v=!1,limiter:b={fn:H=>{let{x:J,y:Y}=H;return{x:J,y:Y}}},...p}=jn(a,r),S={x:o,y:c},y=await m.detectOverflow(r,p),C=un(zn(f)),M=_s(C);let R=S[M],T=S[C];if(h){const H=M==="y"?"top":"left",J=M==="y"?"bottom":"right",Y=R+y[H],U=R-y[J];R=Ss(Y,R,U)}if(v){const H=C==="y"?"top":"left",J=C==="y"?"bottom":"right",Y=T+y[H],U=T-y[J];T=Ss(Y,T,U)}const z=b.fn({...r,[M]:R,[C]:T});return{...z,data:{x:z.x-o,y:z.y-c,enabled:{[M]:h,[C]:v}}}}}},sS=function(a){return a===void 0&&(a={}),{options:a,fn(r){const{x:o,y:c,placement:f,rects:m,middlewareData:h}=r,{offset:v=0,mainAxis:b=!0,crossAxis:p=!0}=jn(a,r),S={x:o,y:c},y=un(f),C=_s(y);let M=S[C],R=S[y];const T=jn(v,r),z=typeof T=="number"?{mainAxis:T,crossAxis:0}:{mainAxis:0,crossAxis:0,...T};if(b){const Y=C==="y"?"height":"width",U=m.reference[C]-m.floating[Y]+z.mainAxis,$=m.reference[C]+m.reference[Y]-z.mainAxis;M<U?M=U:M>$&&(M=$)}if(p){var H,J;const Y=C==="y"?"width":"height",U=_p.has(zn(f)),$=m.reference[y]-m.floating[Y]+(U&&((H=h.offset)==null?void 0:H[y])||0)+(U?0:z.crossAxis),W=m.reference[y]+m.reference[Y]+(U?0:((J=h.offset)==null?void 0:J[y])||0)-(U?z.crossAxis:0);R<$?R=$:R>W&&(R=W)}return{[C]:M,[y]:R}}}},fS=function(a){return a===void 0&&(a={}),{name:"size",options:a,async fn(r){var o,c;const{placement:f,rects:m,platform:h,elements:v}=r,{apply:b=()=>{},...p}=jn(a,r),S=await h.detectOverflow(r,p),y=zn(f),C=za(f),M=un(f)==="y",{width:R,height:T}=m.floating;let z,H;y==="top"||y==="bottom"?(z=y,H=C===(await(h.isRTL==null?void 0:h.isRTL(v.floating))?"start":"end")?"left":"right"):(H=y,z=C==="end"?"top":"bottom");const J=T-S.top-S.bottom,Y=R-S.left-S.right,U=cl(T-S[z],J),$=cl(R-S[H],Y),W=!r.middlewareData.shift;let Z=U,K=$;if((o=r.middlewareData.shift)!=null&&o.enabled.x&&(K=Y),(c=r.middlewareData.shift)!=null&&c.enabled.y&&(Z=J),W&&!C){const de=Dt(S.left,0),ve=Dt(S.right,0),me=Dt(S.top,0),ge=Dt(S.bottom,0);M?K=R-2*(de!==0||ve!==0?de+ve:Dt(S.left,S.right)):Z=T-2*(me!==0||ge!==0?me+ge:Dt(S.top,S.bottom))}await b({...r,availableWidth:K,availableHeight:Z});const ue=await h.getDimensions(v.floating);return R!==ue.width||T!==ue.height?{reset:{rects:!0}}:{}}}};function Mr(){return typeof window<"u"}function _a(a){return Op(a)?(a.nodeName||"").toLowerCase():"#document"}function Ut(a){var r;return(a==null||(r=a.ownerDocument)==null?void 0:r.defaultView)||window}function on(a){var r;return(r=(Op(a)?a.ownerDocument:a.document)||window.document)==null?void 0:r.documentElement}function Op(a){return Mr()?a instanceof Node||a instanceof Ut(a).Node:!1}function Wt(a){return Mr()?a instanceof Element||a instanceof Ut(a).Element:!1}function _n(a){return Mr()?a instanceof HTMLElement||a instanceof Ut(a).HTMLElement:!1}function _v(a){return!Mr()||typeof ShadowRoot>"u"?!1:a instanceof ShadowRoot||a instanceof Ut(a).ShadowRoot}function Li(a){const{overflow:r,overflowX:o,overflowY:c,display:f}=$t(a);return/auto|scroll|overlay|hidden|clip/.test(r+c+o)&&f!=="inline"&&f!=="contents"}function dS(a){return/^(table|td|th)$/.test(_a(a))}function Tr(a){try{if(a.matches(":popover-open"))return!0}catch{}try{return a.matches(":modal")}catch{return!1}}const mS=/transform|translate|scale|rotate|perspective|filter/,hS=/paint|layout|strict|content/,Ol=a=>!!a&&a!=="none";let ss;function Ds(a){const r=Wt(a)?$t(a):a;return Ol(r.transform)||Ol(r.translate)||Ol(r.scale)||Ol(r.rotate)||Ol(r.perspective)||!Us()&&(Ol(r.backdropFilter)||Ol(r.filter))||mS.test(r.willChange||"")||hS.test(r.contain||"")}function vS(a){let r=sl(a);for(;_n(r)&&!ja(r);){if(Ds(r))return r;if(Tr(r))return null;r=sl(r)}return null}function Us(){return ss==null&&(ss=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),ss}function ja(a){return/^(html|body|#document)$/.test(_a(a))}function $t(a){return Ut(a).getComputedStyle(a)}function jr(a){return Wt(a)?{scrollLeft:a.scrollLeft,scrollTop:a.scrollTop}:{scrollLeft:a.scrollX,scrollTop:a.scrollY}}function sl(a){if(_a(a)==="html")return a;const r=a.assignedSlot||a.parentNode||_v(a)&&a.host||on(a);return _v(r)?r.host:r}function Rp(a){const r=sl(a);return ja(r)?a.ownerDocument?a.ownerDocument.body:a.body:_n(r)&&Li(r)?r:Rp(r)}function zi(a,r,o){var c;r===void 0&&(r=[]),o===void 0&&(o=!0);const f=Rp(a),m=f===((c=a.ownerDocument)==null?void 0:c.body),h=Ut(f);if(m){const v=Cs(h);return r.concat(h,h.visualViewport||[],Li(f)?f:[],v&&o?zi(v):[])}else return r.concat(f,zi(f,[],o))}function Cs(a){return a.parent&&Object.getPrototypeOf(a.parent)?a.frameElement:null}function Dp(a){const r=$t(a);let o=parseFloat(r.width)||0,c=parseFloat(r.height)||0;const f=_n(a),m=f?a.offsetWidth:o,h=f?a.offsetHeight:c,v=yr(o)!==m||yr(c)!==h;return v&&(o=m,c=h),{width:o,height:c,$:v}}function Ls(a){return Wt(a)?a:a.contextElement}function Ta(a){const r=Ls(a);if(!_n(r))return rn(1);const o=r.getBoundingClientRect(),{width:c,height:f,$:m}=Dp(r);let h=(m?yr(o.width):o.width)/c,v=(m?yr(o.height):o.height)/f;return(!h||!Number.isFinite(h))&&(h=1),(!v||!Number.isFinite(v))&&(v=1),{x:h,y:v}}const pS=rn(0);function Up(a){const r=Ut(a);return!Us()||!r.visualViewport?pS:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function gS(a,r,o){return r===void 0&&(r=!1),!o||r&&o!==Ut(a)?!1:r}function Ll(a,r,o,c){r===void 0&&(r=!1),o===void 0&&(o=!1);const f=a.getBoundingClientRect(),m=Ls(a);let h=rn(1);r&&(c?Wt(c)&&(h=Ta(c)):h=Ta(a));const v=gS(m,o,c)?Up(m):rn(0);let b=(f.left+v.x)/h.x,p=(f.top+v.y)/h.y,S=f.width/h.x,y=f.height/h.y;if(m){const C=Ut(m),M=c&&Wt(c)?Ut(c):c;let R=C,T=Cs(R);for(;T&&c&&M!==R;){const z=Ta(T),H=T.getBoundingClientRect(),J=$t(T),Y=H.left+(T.clientLeft+parseFloat(J.paddingLeft))*z.x,U=H.top+(T.clientTop+parseFloat(J.paddingTop))*z.y;b*=z.x,p*=z.y,S*=z.x,y*=z.y,b+=Y,p+=U,R=Ut(T),T=Cs(R)}}return xr({width:S,height:y,x:b,y:p})}function zr(a,r){const o=jr(a).scrollLeft;return r?r.left+o:Ll(on(a)).left+o}function Lp(a,r){const o=a.getBoundingClientRect(),c=o.left+r.scrollLeft-zr(a,o),f=o.top+r.scrollTop;return{x:c,y:f}}function yS(a){let{elements:r,rect:o,offsetParent:c,strategy:f}=a;const m=f==="fixed",h=on(c),v=r?Tr(r.floating):!1;if(c===h||v&&m)return o;let b={scrollLeft:0,scrollTop:0},p=rn(1);const S=rn(0),y=_n(c);if((y||!y&&!m)&&((_a(c)!=="body"||Li(h))&&(b=jr(c)),y)){const M=Ll(c);p=Ta(c),S.x=M.x+c.clientLeft,S.y=M.y+c.clientTop}const C=h&&!y&&!m?Lp(h,b):rn(0);return{width:o.width*p.x,height:o.height*p.y,x:o.x*p.x-b.scrollLeft*p.x+S.x+C.x,y:o.y*p.y-b.scrollTop*p.y+S.y+C.y}}function bS(a){return Array.from(a.getClientRects())}function xS(a){const r=on(a),o=jr(a),c=a.ownerDocument.body,f=Dt(r.scrollWidth,r.clientWidth,c.scrollWidth,c.clientWidth),m=Dt(r.scrollHeight,r.clientHeight,c.scrollHeight,c.clientHeight);let h=-o.scrollLeft+zr(a);const v=-o.scrollTop;return $t(c).direction==="rtl"&&(h+=Dt(r.clientWidth,c.clientWidth)-f),{width:f,height:m,x:h,y:v}}const Ov=25;function SS(a,r){const o=Ut(a),c=on(a),f=o.visualViewport;let m=c.clientWidth,h=c.clientHeight,v=0,b=0;if(f){m=f.width,h=f.height;const S=Us();(!S||S&&r==="fixed")&&(v=f.offsetLeft,b=f.offsetTop)}const p=zr(c);if(p<=0){const S=c.ownerDocument,y=S.body,C=getComputedStyle(y),M=S.compatMode==="CSS1Compat"&&parseFloat(C.marginLeft)+parseFloat(C.marginRight)||0,R=Math.abs(c.clientWidth-y.clientWidth-M);R<=Ov&&(m-=R)}else p<=Ov&&(m+=p);return{width:m,height:h,x:v,y:b}}function ES(a,r){const o=Ll(a,!0,r==="fixed"),c=o.top+a.clientTop,f=o.left+a.clientLeft,m=_n(a)?Ta(a):rn(1),h=a.clientWidth*m.x,v=a.clientHeight*m.y,b=f*m.x,p=c*m.y;return{width:h,height:v,x:b,y:p}}function Rv(a,r,o){let c;if(r==="viewport")c=SS(a,o);else if(r==="document")c=xS(on(a));else if(Wt(r))c=ES(r,o);else{const f=Up(a);c={x:r.x-f.x,y:r.y-f.y,width:r.width,height:r.height}}return xr(c)}function kp(a,r){const o=sl(a);return o===r||!Wt(o)||ja(o)?!1:$t(o).position==="fixed"||kp(o,r)}function CS(a,r){const o=r.get(a);if(o)return o;let c=zi(a,[],!1).filter(v=>Wt(v)&&_a(v)!=="body"),f=null;const m=$t(a).position==="fixed";let h=m?sl(a):a;for(;Wt(h)&&!ja(h);){const v=$t(h),b=Ds(h);!b&&v.position==="fixed"&&(f=null),(m?!b&&!f:!b&&v.position==="static"&&!!f&&(f.position==="absolute"||f.position==="fixed")||Li(h)&&!b&&kp(a,h))?c=c.filter(S=>S!==h):f=v,h=sl(h)}return r.set(a,c),c}function wS(a){let{element:r,boundary:o,rootBoundary:c,strategy:f}=a;const h=[...o==="clippingAncestors"?Tr(r)?[]:CS(r,this._c):[].concat(o),c],v=Rv(r,h[0],f);let b=v.top,p=v.right,S=v.bottom,y=v.left;for(let C=1;C<h.length;C++){const M=Rv(r,h[C],f);b=Dt(M.top,b),p=cl(M.right,p),S=cl(M.bottom,S),y=Dt(M.left,y)}return{width:p-y,height:S-b,x:y,y:b}}function NS(a){const{width:r,height:o}=Dp(a);return{width:r,height:o}}function AS(a,r,o){const c=_n(r),f=on(r),m=o==="fixed",h=Ll(a,!0,m,r);let v={scrollLeft:0,scrollTop:0};const b=rn(0);function p(){b.x=zr(f)}if(c||!c&&!m)if((_a(r)!=="body"||Li(f))&&(v=jr(r)),c){const M=Ll(r,!0,m,r);b.x=M.x+r.clientLeft,b.y=M.y+r.clientTop}else f&&p();m&&!c&&f&&p();const S=f&&!c&&!m?Lp(f,v):rn(0),y=h.left+v.scrollLeft-b.x-S.x,C=h.top+v.scrollTop-b.y-S.y;return{x:y,y:C,width:h.width,height:h.height}}function fs(a){return $t(a).position==="static"}function Dv(a,r){if(!_n(a)||$t(a).position==="fixed")return null;if(r)return r(a);let o=a.offsetParent;return on(a)===o&&(o=o.ownerDocument.body),o}function Hp(a,r){const o=Ut(a);if(Tr(a))return o;if(!_n(a)){let f=sl(a);for(;f&&!ja(f);){if(Wt(f)&&!fs(f))return f;f=sl(f)}return o}let c=Dv(a,r);for(;c&&dS(c)&&fs(c);)c=Dv(c,r);return c&&ja(c)&&fs(c)&&!Ds(c)?o:c||vS(a)||o}const MS=async function(a){const r=this.getOffsetParent||Hp,o=this.getDimensions,c=await o(a.floating);return{reference:AS(a.reference,await r(a.floating),a.strategy),floating:{x:0,y:0,width:c.width,height:c.height}}};function TS(a){return $t(a).direction==="rtl"}const jS={convertOffsetParentRelativeRectToViewportRelativeRect:yS,getDocumentElement:on,getClippingRect:wS,getOffsetParent:Hp,getElementRects:MS,getClientRects:bS,getDimensions:NS,getScale:Ta,isElement:Wt,isRTL:TS};function Bp(a,r){return a.x===r.x&&a.y===r.y&&a.width===r.width&&a.height===r.height}function zS(a,r){let o=null,c;const f=on(a);function m(){var v;clearTimeout(c),(v=o)==null||v.disconnect(),o=null}function h(v,b){v===void 0&&(v=!1),b===void 0&&(b=1),m();const p=a.getBoundingClientRect(),{left:S,top:y,width:C,height:M}=p;if(v||r(),!C||!M)return;const R=fr(y),T=fr(f.clientWidth-(S+C)),z=fr(f.clientHeight-(y+M)),H=fr(S),Y={rootMargin:-R+"px "+-T+"px "+-z+"px "+-H+"px",threshold:Dt(0,cl(1,b))||1};let U=!0;function $(W){const Z=W[0].intersectionRatio;if(Z!==b){if(!U)return h();Z?h(!1,Z):c=setTimeout(()=>{h(!1,1e-7)},1e3)}Z===1&&!Bp(p,a.getBoundingClientRect())&&h(),U=!1}try{o=new IntersectionObserver($,{...Y,root:f.ownerDocument})}catch{o=new IntersectionObserver($,Y)}o.observe(a)}return h(!0),m}function _S(a,r,o,c){c===void 0&&(c={});const{ancestorScroll:f=!0,ancestorResize:m=!0,elementResize:h=typeof ResizeObserver=="function",layoutShift:v=typeof IntersectionObserver=="function",animationFrame:b=!1}=c,p=Ls(a),S=f||m?[...p?zi(p):[],...r?zi(r):[]]:[];S.forEach(H=>{f&&H.addEventListener("scroll",o,{passive:!0}),m&&H.addEventListener("resize",o)});const y=p&&v?zS(p,o):null;let C=-1,M=null;h&&(M=new ResizeObserver(H=>{let[J]=H;J&&J.target===p&&M&&r&&(M.unobserve(r),cancelAnimationFrame(C),C=requestAnimationFrame(()=>{var Y;(Y=M)==null||Y.observe(r)})),o()}),p&&!b&&M.observe(p),r&&M.observe(r));let R,T=b?Ll(a):null;b&&z();function z(){const H=Ll(a);T&&!Bp(T,H)&&o(),T=H,R=requestAnimationFrame(z)}return o(),()=>{var H;S.forEach(J=>{f&&J.removeEventListener("scroll",o),m&&J.removeEventListener("resize",o)}),y==null||y(),(H=M)==null||H.disconnect(),M=null,b&&cancelAnimationFrame(R)}}const OS=oS,RS=cS,DS=iS,US=fS,LS=uS,Uv=aS,kS=sS,HS=(a,r,o)=>{const c=new Map,f={platform:jS,...o},m={...f.platform,_c:c};return lS(a,r,{...f,platform:m})};var BS=typeof document<"u",GS=function(){},hr=BS?x.useLayoutEffect:GS;function Sr(a,r){if(a===r)return!0;if(typeof a!=typeof r)return!1;if(typeof a=="function"&&a.toString()===r.toString())return!0;let o,c,f;if(a&&r&&typeof a=="object"){if(Array.isArray(a)){if(o=a.length,o!==r.length)return!1;for(c=o;c--!==0;)if(!Sr(a[c],r[c]))return!1;return!0}if(f=Object.keys(a),o=f.length,o!==Object.keys(r).length)return!1;for(c=o;c--!==0;)if(!{}.hasOwnProperty.call(r,f[c]))return!1;for(c=o;c--!==0;){const m=f[c];if(!(m==="_owner"&&a.$$typeof)&&!Sr(a[m],r[m]))return!1}return!0}return a!==a&&r!==r}function Gp(a){return typeof window>"u"?1:(a.ownerDocument.defaultView||window).devicePixelRatio||1}function Lv(a,r){const o=Gp(a);return Math.round(r*o)/o}function ds(a){const r=x.useRef(a);return hr(()=>{r.current=a}),r}function qS(a){a===void 0&&(a={});const{placement:r="bottom",strategy:o="absolute",middleware:c=[],platform:f,elements:{reference:m,floating:h}={},transform:v=!0,whileElementsMounted:b,open:p}=a,[S,y]=x.useState({x:0,y:0,strategy:o,placement:r,middlewareData:{},isPositioned:!1}),[C,M]=x.useState(c);Sr(C,c)||M(c);const[R,T]=x.useState(null),[z,H]=x.useState(null),J=x.useCallback(k=>{k!==W.current&&(W.current=k,T(k))},[]),Y=x.useCallback(k=>{k!==Z.current&&(Z.current=k,H(k))},[]),U=m||R,$=h||z,W=x.useRef(null),Z=x.useRef(null),K=x.useRef(S),ue=b!=null,de=ds(b),ve=ds(f),me=ds(p),ge=x.useCallback(()=>{if(!W.current||!Z.current)return;const k={placement:r,strategy:o,middleware:C};ve.current&&(k.platform=ve.current),HS(W.current,Z.current,k).then(X=>{const F={...X,isPositioned:me.current!==!1};he.current&&!Sr(K.current,F)&&(K.current=F,zs.flushSync(()=>{y(F)}))})},[C,r,o,ve,me]);hr(()=>{p===!1&&K.current.isPositioned&&(K.current.isPositioned=!1,y(k=>({...k,isPositioned:!1})))},[p]);const he=x.useRef(!1);hr(()=>(he.current=!0,()=>{he.current=!1}),[]),hr(()=>{if(U&&(W.current=U),$&&(Z.current=$),U&&$){if(de.current)return de.current(U,$,ge);ge()}},[U,$,ge,de,ue]);const ye=x.useMemo(()=>({reference:W,floating:Z,setReference:J,setFloating:Y}),[J,Y]),w=x.useMemo(()=>({reference:U,floating:$}),[U,$]),B=x.useMemo(()=>{const k={position:o,left:0,top:0};if(!w.floating)return k;const X=Lv(w.floating,S.x),F=Lv(w.floating,S.y);return v?{...k,transform:"translate("+X+"px, "+F+"px)",...Gp(w.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:X,top:F}},[o,v,w.floating,S.x,S.y]);return x.useMemo(()=>({...S,update:ge,refs:ye,elements:w,floatingStyles:B}),[S,ge,ye,w,B])}const YS=a=>{function r(o){return{}.hasOwnProperty.call(o,"current")}return{name:"arrow",options:a,fn(o){const{element:c,padding:f}=typeof a=="function"?a(o):a;return c&&r(c)?c.current!=null?Uv({element:c.current,padding:f}).fn(o):{}:c?Uv({element:c,padding:f}).fn(o):{}}}},XS=(a,r)=>{const o=OS(a);return{name:o.name,fn:o.fn,options:[a,r]}},VS=(a,r)=>{const o=RS(a);return{name:o.name,fn:o.fn,options:[a,r]}},QS=(a,r)=>({fn:kS(a).fn,options:[a,r]}),ZS=(a,r)=>{const o=DS(a);return{name:o.name,fn:o.fn,options:[a,r]}},KS=(a,r)=>{const o=US(a);return{name:o.name,fn:o.fn,options:[a,r]}},JS=(a,r)=>{const o=LS(a);return{name:o.name,fn:o.fn,options:[a,r]}},FS=(a,r)=>{const o=YS(a);return{name:o.name,fn:o.fn,options:[a,r]}};var WS="Arrow",qp=x.forwardRef((a,r)=>{const{children:o,width:c=10,height:f=5,...m}=a;return d.jsx(mt.svg,{...m,ref:r,width:c,height:f,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:a.asChild?o:d.jsx("polygon",{points:"0,0 30,0 15,10"})})});qp.displayName=WS;var $S=qp,ks="Popper",[Yp,Xp]=Di(ks),[IS,Vp]=Yp(ks),Qp=a=>{const{__scopePopper:r,children:o}=a,[c,f]=x.useState(null);return d.jsx(IS,{scope:r,anchor:c,onAnchorChange:f,children:o})};Qp.displayName=ks;var Zp="PopperAnchor",Kp=x.forwardRef((a,r)=>{const{__scopePopper:o,virtualRef:c,...f}=a,m=Vp(Zp,o),h=x.useRef(null),v=Et(r,h),b=x.useRef(null);return x.useEffect(()=>{const p=b.current;b.current=(c==null?void 0:c.current)||h.current,p!==b.current&&m.onAnchorChange(b.current)}),c?null:d.jsx(mt.div,{...f,ref:v})});Kp.displayName=Zp;var Hs="PopperContent",[PS,e2]=Yp(Hs),Jp=x.forwardRef((a,r)=>{var pe,Ge,ce,ct,re,P;const{__scopePopper:o,side:c="bottom",sideOffset:f=0,align:m="center",alignOffset:h=0,arrowPadding:v=0,avoidCollisions:b=!0,collisionBoundary:p=[],collisionPadding:S=0,sticky:y="partial",hideWhenDetached:C=!1,updatePositionStrategy:M="optimized",onPlaced:R,...T}=a,z=Vp(Hs,o),[H,J]=x.useState(null),Y=Et(r,be=>J(be)),[U,$]=x.useState(null),W=Q1(U),Z=(W==null?void 0:W.width)??0,K=(W==null?void 0:W.height)??0,ue=c+(m!=="center"?"-"+m:""),de=typeof S=="number"?S:{top:0,right:0,bottom:0,left:0,...S},ve=Array.isArray(p)?p:[p],me=ve.length>0,ge={padding:de,boundary:ve.filter(n2),altBoundary:me},{refs:he,floatingStyles:ye,placement:w,isPositioned:B,middlewareData:k}=qS({strategy:"fixed",placement:ue,whileElementsMounted:(...be)=>_S(...be,{animationFrame:M==="always"}),elements:{reference:z.anchor},middleware:[XS({mainAxis:f+K,alignmentAxis:h}),b&&VS({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?QS():void 0,...ge}),b&&ZS({...ge}),KS({...ge,apply:({elements:be,rects:ze,availableWidth:dl,availableHeight:Oa})=>{const{width:Dr,height:Gi}=ze.reference,On=be.floating.style;On.setProperty("--radix-popper-available-width",`${dl}px`),On.setProperty("--radix-popper-available-height",`${Oa}px`),On.setProperty("--radix-popper-anchor-width",`${Dr}px`),On.setProperty("--radix-popper-anchor-height",`${Gi}px`)}}),U&&FS({element:U,padding:v}),l2({arrowWidth:Z,arrowHeight:K}),C&&JS({strategy:"referenceHidden",...ge})]}),[X,F]=$p(w),N=Tn(R);ol(()=>{B&&(N==null||N())},[B,N]);const G=(pe=k.arrow)==null?void 0:pe.x,I=(Ge=k.arrow)==null?void 0:Ge.y,ee=((ce=k.arrow)==null?void 0:ce.centerOffset)!==0,[te,ae]=x.useState();return ol(()=>{H&&ae(window.getComputedStyle(H).zIndex)},[H]),d.jsx("div",{ref:he.setFloating,"data-radix-popper-content-wrapper":"",style:{...ye,transform:B?ye.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:te,"--radix-popper-transform-origin":[(ct=k.transformOrigin)==null?void 0:ct.x,(re=k.transformOrigin)==null?void 0:re.y].join(" "),...((P=k.hide)==null?void 0:P.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:a.dir,children:d.jsx(PS,{scope:o,placedSide:X,onArrowChange:$,arrowX:G,arrowY:I,shouldHideArrow:ee,children:d.jsx(mt.div,{"data-side":X,"data-align":F,...T,ref:Y,style:{...T.style,animation:B?void 0:"none"}})})})});Jp.displayName=Hs;var Fp="PopperArrow",t2={top:"bottom",right:"left",bottom:"top",left:"right"},Wp=x.forwardRef(function(r,o){const{__scopePopper:c,...f}=r,m=e2(Fp,c),h=t2[m.placedSide];return d.jsx("span",{ref:m.onArrowChange,style:{position:"absolute",left:m.arrowX,top:m.arrowY,[h]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[m.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[m.placedSide],visibility:m.shouldHideArrow?"hidden":void 0},children:d.jsx($S,{...f,ref:o,style:{...f.style,display:"block"}})})});Wp.displayName=Fp;function n2(a){return a!==null}var l2=a=>({name:"transformOrigin",options:a,fn(r){var z,H,J;const{placement:o,rects:c,middlewareData:f}=r,h=((z=f.arrow)==null?void 0:z.centerOffset)!==0,v=h?0:a.arrowWidth,b=h?0:a.arrowHeight,[p,S]=$p(o),y={start:"0%",center:"50%",end:"100%"}[S],C=(((H=f.arrow)==null?void 0:H.x)??0)+v/2,M=(((J=f.arrow)==null?void 0:J.y)??0)+b/2;let R="",T="";return p==="bottom"?(R=h?y:`${C}px`,T=`${-b}px`):p==="top"?(R=h?y:`${C}px`,T=`${c.floating.height+b}px`):p==="right"?(R=`${-b}px`,T=h?y:`${M}px`):p==="left"&&(R=`${c.floating.width+b}px`,T=h?y:`${M}px`),{data:{x:R,y:T}}}});function $p(a){const[r,o="center"]=a.split("-");return[r,o]}var a2=Qp,i2=Kp,u2=Jp,r2=Wp,ms="rovingFocusGroup.onEntryFocus",o2={bubbles:!1,cancelable:!0},ki="RovingFocusGroup",[ws,Ip,c2]=dp(ki),[s2,Pp]=Di(ki,[c2]),[f2,d2]=s2(ki),eg=x.forwardRef((a,r)=>d.jsx(ws.Provider,{scope:a.__scopeRovingFocusGroup,children:d.jsx(ws.Slot,{scope:a.__scopeRovingFocusGroup,children:d.jsx(m2,{...a,ref:r})})}));eg.displayName=ki;var m2=x.forwardRef((a,r)=>{const{__scopeRovingFocusGroup:o,orientation:c,loop:f=!1,dir:m,currentTabStopId:h,defaultCurrentTabStopId:v,onCurrentTabStopIdChange:b,onEntryFocus:p,preventScrollOnEntryFocus:S=!1,...y}=a,C=x.useRef(null),M=Et(r,C),R=hp(m),[T,z]=mp({prop:h,defaultProp:v??null,onChange:b,caller:ki}),[H,J]=x.useState(!1),Y=Tn(p),U=Ip(o),$=x.useRef(!1),[W,Z]=x.useState(0);return x.useEffect(()=>{const K=C.current;if(K)return K.addEventListener(ms,Y),()=>K.removeEventListener(ms,Y)},[Y]),d.jsx(f2,{scope:o,orientation:c,dir:R,loop:f,currentTabStopId:T,onItemFocus:x.useCallback(K=>z(K),[z]),onItemShiftTab:x.useCallback(()=>J(!0),[]),onFocusableItemAdd:x.useCallback(()=>Z(K=>K+1),[]),onFocusableItemRemove:x.useCallback(()=>Z(K=>K-1),[]),children:d.jsx(mt.div,{tabIndex:H||W===0?-1:0,"data-orientation":c,...y,ref:M,style:{outline:"none",...a.style},onMouseDown:je(a.onMouseDown,()=>{$.current=!0}),onFocus:je(a.onFocus,K=>{const ue=!$.current;if(K.target===K.currentTarget&&ue&&!H){const de=new CustomEvent(ms,o2);if(K.currentTarget.dispatchEvent(de),!de.defaultPrevented){const ve=U().filter(w=>w.focusable),me=ve.find(w=>w.active),ge=ve.find(w=>w.id===T),ye=[me,ge,...ve].filter(Boolean).map(w=>w.ref.current);lg(ye,S)}}$.current=!1}),onBlur:je(a.onBlur,()=>J(!1))})})}),tg="RovingFocusGroupItem",ng=x.forwardRef((a,r)=>{const{__scopeRovingFocusGroup:o,focusable:c=!0,active:f=!1,tabStopId:m,children:h,...v}=a,b=ys(),p=m||b,S=d2(tg,o),y=S.currentTabStopId===p,C=Ip(o),{onFocusableItemAdd:M,onFocusableItemRemove:R,currentTabStopId:T}=S;return x.useEffect(()=>{if(c)return M(),()=>R()},[c,M,R]),d.jsx(ws.ItemSlot,{scope:o,id:p,focusable:c,active:f,children:d.jsx(mt.span,{tabIndex:y?0:-1,"data-orientation":S.orientation,...v,ref:r,onMouseDown:je(a.onMouseDown,z=>{c?S.onItemFocus(p):z.preventDefault()}),onFocus:je(a.onFocus,()=>S.onItemFocus(p)),onKeyDown:je(a.onKeyDown,z=>{if(z.key==="Tab"&&z.shiftKey){S.onItemShiftTab();return}if(z.target!==z.currentTarget)return;const H=p2(z,S.orientation,S.dir);if(H!==void 0){if(z.metaKey||z.ctrlKey||z.altKey||z.shiftKey)return;z.preventDefault();let Y=C().filter(U=>U.focusable).map(U=>U.ref.current);if(H==="last")Y.reverse();else if(H==="prev"||H==="next"){H==="prev"&&Y.reverse();const U=Y.indexOf(z.currentTarget);Y=S.loop?g2(Y,U+1):Y.slice(U+1)}setTimeout(()=>lg(Y))}}),children:typeof h=="function"?h({isCurrentTabStop:y,hasTabStop:T!=null}):h})})});ng.displayName=tg;var h2={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function v2(a,r){return r!=="rtl"?a:a==="ArrowLeft"?"ArrowRight":a==="ArrowRight"?"ArrowLeft":a}function p2(a,r,o){const c=v2(a.key,o);if(!(r==="vertical"&&["ArrowLeft","ArrowRight"].includes(c))&&!(r==="horizontal"&&["ArrowUp","ArrowDown"].includes(c)))return h2[c]}function lg(a,r=!1){const o=document.activeElement;for(const c of a)if(c===o||(c.focus({preventScroll:r}),document.activeElement!==o))return}function g2(a,r){return a.map((o,c)=>a[(r+c)%a.length])}var y2=eg,b2=ng,Ns=["Enter"," "],x2=["ArrowDown","PageUp","Home"],ag=["ArrowUp","PageDown","End"],S2=[...x2,...ag],E2={ltr:[...Ns,"ArrowRight"],rtl:[...Ns,"ArrowLeft"]},C2={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Hi="Menu",[_i,w2,N2]=dp(Hi),[Hl,ig]=Di(Hi,[N2,Xp,Pp]),_r=Xp(),ug=Pp(),[A2,Bl]=Hl(Hi),[M2,Bi]=Hl(Hi),rg=a=>{const{__scopeMenu:r,open:o=!1,children:c,dir:f,onOpenChange:m,modal:h=!0}=a,v=_r(r),[b,p]=x.useState(null),S=x.useRef(!1),y=Tn(m),C=hp(f);return x.useEffect(()=>{const M=()=>{S.current=!0,document.addEventListener("pointerdown",R,{capture:!0,once:!0}),document.addEventListener("pointermove",R,{capture:!0,once:!0})},R=()=>S.current=!1;return document.addEventListener("keydown",M,{capture:!0}),()=>{document.removeEventListener("keydown",M,{capture:!0}),document.removeEventListener("pointerdown",R,{capture:!0}),document.removeEventListener("pointermove",R,{capture:!0})}},[]),d.jsx(a2,{...v,children:d.jsx(A2,{scope:r,open:o,onOpenChange:y,content:b,onContentChange:p,children:d.jsx(M2,{scope:r,onClose:x.useCallback(()=>y(!1),[y]),isUsingKeyboardRef:S,dir:C,modal:h,children:c})})})};rg.displayName=Hi;var T2="MenuAnchor",Bs=x.forwardRef((a,r)=>{const{__scopeMenu:o,...c}=a,f=_r(o);return d.jsx(i2,{...f,...c,ref:r})});Bs.displayName=T2;var Gs="MenuPortal",[j2,og]=Hl(Gs,{forceMount:void 0}),cg=a=>{const{__scopeMenu:r,forceMount:o,children:c,container:f}=a,m=Bl(Gs,r);return d.jsx(j2,{scope:r,forceMount:o,children:d.jsx(Ui,{present:o||m.open,children:d.jsx(xp,{asChild:!0,container:f,children:c})})})};cg.displayName=Gs;var Zt="MenuContent",[z2,qs]=Hl(Zt),sg=x.forwardRef((a,r)=>{const o=og(Zt,a.__scopeMenu),{forceMount:c=o.forceMount,...f}=a,m=Bl(Zt,a.__scopeMenu),h=Bi(Zt,a.__scopeMenu);return d.jsx(_i.Provider,{scope:a.__scopeMenu,children:d.jsx(Ui,{present:c||m.open,children:d.jsx(_i.Slot,{scope:a.__scopeMenu,children:h.modal?d.jsx(_2,{...f,ref:r}):d.jsx(O2,{...f,ref:r})})})})}),_2=x.forwardRef((a,r)=>{const o=Bl(Zt,a.__scopeMenu),c=x.useRef(null),f=Et(r,c);return x.useEffect(()=>{const m=c.current;if(m)return V1(m)},[]),d.jsx(Ys,{...a,ref:f,trapFocus:o.open,disableOutsidePointerEvents:o.open,disableOutsideScroll:!0,onFocusOutside:je(a.onFocusOutside,m=>m.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>o.onOpenChange(!1)})}),O2=x.forwardRef((a,r)=>{const o=Bl(Zt,a.__scopeMenu);return d.jsx(Ys,{...a,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>o.onOpenChange(!1)})}),R2=gr("MenuContent.ScrollLock"),Ys=x.forwardRef((a,r)=>{const{__scopeMenu:o,loop:c=!1,trapFocus:f,onOpenAutoFocus:m,onCloseAutoFocus:h,disableOutsidePointerEvents:v,onEntryFocus:b,onEscapeKeyDown:p,onPointerDownOutside:S,onFocusOutside:y,onInteractOutside:C,onDismiss:M,disableOutsideScroll:R,...T}=a,z=Bl(Zt,o),H=Bi(Zt,o),J=_r(o),Y=ug(o),U=w2(o),[$,W]=x.useState(null),Z=x.useRef(null),K=Et(r,Z,z.onContentChange),ue=x.useRef(0),de=x.useRef(""),ve=x.useRef(0),me=x.useRef(null),ge=x.useRef("right"),he=x.useRef(0),ye=R?Tp:x.Fragment,w=R?{as:R2,allowPinchZoom:!0}:void 0,B=X=>{var pe,Ge;const F=de.current+X,N=U().filter(ce=>!ce.disabled),G=document.activeElement,I=(pe=N.find(ce=>ce.ref.current===G))==null?void 0:pe.textValue,ee=N.map(ce=>ce.textValue),te=Q2(ee,F,I),ae=(Ge=N.find(ce=>ce.textValue===te))==null?void 0:Ge.ref.current;(function ce(ct){de.current=ct,window.clearTimeout(ue.current),ct!==""&&(ue.current=window.setTimeout(()=>ce(""),1e3))})(F),ae&&setTimeout(()=>ae.focus())};x.useEffect(()=>()=>window.clearTimeout(ue.current),[]),a1();const k=x.useCallback(X=>{var N,G;return ge.current===((N=me.current)==null?void 0:N.side)&&K2(X,(G=me.current)==null?void 0:G.area)},[]);return d.jsx(z2,{scope:o,searchRef:de,onItemEnter:x.useCallback(X=>{k(X)&&X.preventDefault()},[k]),onItemLeave:x.useCallback(X=>{var F;k(X)||((F=Z.current)==null||F.focus(),W(null))},[k]),onTriggerLeave:x.useCallback(X=>{k(X)&&X.preventDefault()},[k]),pointerGraceTimerRef:ve,onPointerGraceIntentChange:x.useCallback(X=>{me.current=X},[]),children:d.jsx(ye,{...w,children:d.jsx(yp,{asChild:!0,trapped:f,onMountAutoFocus:je(m,X=>{var F;X.preventDefault(),(F=Z.current)==null||F.focus({preventScroll:!0})}),onUnmountAutoFocus:h,children:d.jsx(pp,{asChild:!0,disableOutsidePointerEvents:v,onEscapeKeyDown:p,onPointerDownOutside:S,onFocusOutside:y,onInteractOutside:C,onDismiss:M,children:d.jsx(y2,{asChild:!0,...Y,dir:H.dir,orientation:"vertical",loop:c,currentTabStopId:$,onCurrentTabStopIdChange:W,onEntryFocus:je(b,X=>{H.isUsingKeyboardRef.current||X.preventDefault()}),preventScrollOnEntryFocus:!0,children:d.jsx(u2,{role:"menu","aria-orientation":"vertical","data-state":Ag(z.open),"data-radix-menu-content":"",dir:H.dir,...J,...T,ref:K,style:{outline:"none",...T.style},onKeyDown:je(T.onKeyDown,X=>{const N=X.target.closest("[data-radix-menu-content]")===X.currentTarget,G=X.ctrlKey||X.altKey||X.metaKey,I=X.key.length===1;N&&(X.key==="Tab"&&X.preventDefault(),!G&&I&&B(X.key));const ee=Z.current;if(X.target!==ee||!S2.includes(X.key))return;X.preventDefault();const ae=U().filter(pe=>!pe.disabled).map(pe=>pe.ref.current);ag.includes(X.key)&&ae.reverse(),X2(ae)}),onBlur:je(a.onBlur,X=>{X.currentTarget.contains(X.target)||(window.clearTimeout(ue.current),de.current="")}),onPointerMove:je(a.onPointerMove,Oi(X=>{const F=X.target,N=he.current!==X.clientX;if(X.currentTarget.contains(F)&&N){const G=X.clientX>he.current?"right":"left";ge.current=G,he.current=X.clientX}}))})})})})})})});sg.displayName=Zt;var D2="MenuGroup",Xs=x.forwardRef((a,r)=>{const{__scopeMenu:o,...c}=a;return d.jsx(mt.div,{role:"group",...c,ref:r})});Xs.displayName=D2;var U2="MenuLabel",fg=x.forwardRef((a,r)=>{const{__scopeMenu:o,...c}=a;return d.jsx(mt.div,{...c,ref:r})});fg.displayName=U2;var Er="MenuItem",kv="menu.itemSelect",Or=x.forwardRef((a,r)=>{const{disabled:o=!1,onSelect:c,...f}=a,m=x.useRef(null),h=Bi(Er,a.__scopeMenu),v=qs(Er,a.__scopeMenu),b=Et(r,m),p=x.useRef(!1),S=()=>{const y=m.current;if(!o&&y){const C=new CustomEvent(kv,{bubbles:!0,cancelable:!0});y.addEventListener(kv,M=>c==null?void 0:c(M),{once:!0}),fp(y,C),C.defaultPrevented?p.current=!1:h.onClose()}};return d.jsx(dg,{...f,ref:b,disabled:o,onClick:je(a.onClick,S),onPointerDown:y=>{var C;(C=a.onPointerDown)==null||C.call(a,y),p.current=!0},onPointerUp:je(a.onPointerUp,y=>{var C;p.current||(C=y.currentTarget)==null||C.click()}),onKeyDown:je(a.onKeyDown,y=>{const C=v.searchRef.current!=="";o||C&&y.key===" "||Ns.includes(y.key)&&(y.currentTarget.click(),y.preventDefault())})})});Or.displayName=Er;var dg=x.forwardRef((a,r)=>{const{__scopeMenu:o,disabled:c=!1,textValue:f,...m}=a,h=qs(Er,o),v=ug(o),b=x.useRef(null),p=Et(r,b),[S,y]=x.useState(!1),[C,M]=x.useState("");return x.useEffect(()=>{const R=b.current;R&&M((R.textContent??"").trim())},[m.children]),d.jsx(_i.ItemSlot,{scope:o,disabled:c,textValue:f??C,children:d.jsx(b2,{asChild:!0,...v,focusable:!c,children:d.jsx(mt.div,{role:"menuitem","data-highlighted":S?"":void 0,"aria-disabled":c||void 0,"data-disabled":c?"":void 0,...m,ref:p,onPointerMove:je(a.onPointerMove,Oi(R=>{c?h.onItemLeave(R):(h.onItemEnter(R),R.defaultPrevented||R.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:je(a.onPointerLeave,Oi(R=>h.onItemLeave(R))),onFocus:je(a.onFocus,()=>y(!0)),onBlur:je(a.onBlur,()=>y(!1))})})})}),L2="MenuCheckboxItem",mg=x.forwardRef((a,r)=>{const{checked:o=!1,onCheckedChange:c,...f}=a;return d.jsx(yg,{scope:a.__scopeMenu,checked:o,children:d.jsx(Or,{role:"menuitemcheckbox","aria-checked":Cr(o)?"mixed":o,...f,ref:r,"data-state":Qs(o),onSelect:je(f.onSelect,()=>c==null?void 0:c(Cr(o)?!0:!o),{checkForDefaultPrevented:!1})})})});mg.displayName=L2;var hg="MenuRadioGroup",[k2,H2]=Hl(hg,{value:void 0,onValueChange:()=>{}}),vg=x.forwardRef((a,r)=>{const{value:o,onValueChange:c,...f}=a,m=Tn(c);return d.jsx(k2,{scope:a.__scopeMenu,value:o,onValueChange:m,children:d.jsx(Xs,{...f,ref:r})})});vg.displayName=hg;var pg="MenuRadioItem",gg=x.forwardRef((a,r)=>{const{value:o,...c}=a,f=H2(pg,a.__scopeMenu),m=o===f.value;return d.jsx(yg,{scope:a.__scopeMenu,checked:m,children:d.jsx(Or,{role:"menuitemradio","aria-checked":m,...c,ref:r,"data-state":Qs(m),onSelect:je(c.onSelect,()=>{var h;return(h=f.onValueChange)==null?void 0:h.call(f,o)},{checkForDefaultPrevented:!1})})})});gg.displayName=pg;var Vs="MenuItemIndicator",[yg,B2]=Hl(Vs,{checked:!1}),bg=x.forwardRef((a,r)=>{const{__scopeMenu:o,forceMount:c,...f}=a,m=B2(Vs,o);return d.jsx(Ui,{present:c||Cr(m.checked)||m.checked===!0,children:d.jsx(mt.span,{...f,ref:r,"data-state":Qs(m.checked)})})});bg.displayName=Vs;var G2="MenuSeparator",xg=x.forwardRef((a,r)=>{const{__scopeMenu:o,...c}=a;return d.jsx(mt.div,{role:"separator","aria-orientation":"horizontal",...c,ref:r})});xg.displayName=G2;var q2="MenuArrow",Sg=x.forwardRef((a,r)=>{const{__scopeMenu:o,...c}=a,f=_r(o);return d.jsx(r2,{...f,...c,ref:r})});Sg.displayName=q2;var Y2="MenuSub",[hC,Eg]=Hl(Y2),Ti="MenuSubTrigger",Cg=x.forwardRef((a,r)=>{const o=Bl(Ti,a.__scopeMenu),c=Bi(Ti,a.__scopeMenu),f=Eg(Ti,a.__scopeMenu),m=qs(Ti,a.__scopeMenu),h=x.useRef(null),{pointerGraceTimerRef:v,onPointerGraceIntentChange:b}=m,p={__scopeMenu:a.__scopeMenu},S=x.useCallback(()=>{h.current&&window.clearTimeout(h.current),h.current=null},[]);return x.useEffect(()=>S,[S]),x.useEffect(()=>{const y=v.current;return()=>{window.clearTimeout(y),b(null)}},[v,b]),d.jsx(Bs,{asChild:!0,...p,children:d.jsx(dg,{id:f.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":f.contentId,"data-state":Ag(o.open),...a,ref:Nr(r,f.onTriggerChange),onClick:y=>{var C;(C=a.onClick)==null||C.call(a,y),!(a.disabled||y.defaultPrevented)&&(y.currentTarget.focus(),o.open||o.onOpenChange(!0))},onPointerMove:je(a.onPointerMove,Oi(y=>{m.onItemEnter(y),!y.defaultPrevented&&!a.disabled&&!o.open&&!h.current&&(m.onPointerGraceIntentChange(null),h.current=window.setTimeout(()=>{o.onOpenChange(!0),S()},100))})),onPointerLeave:je(a.onPointerLeave,Oi(y=>{var M,R;S();const C=(M=o.content)==null?void 0:M.getBoundingClientRect();if(C){const T=(R=o.content)==null?void 0:R.dataset.side,z=T==="right",H=z?-5:5,J=C[z?"left":"right"],Y=C[z?"right":"left"];m.onPointerGraceIntentChange({area:[{x:y.clientX+H,y:y.clientY},{x:J,y:C.top},{x:Y,y:C.top},{x:Y,y:C.bottom},{x:J,y:C.bottom}],side:T}),window.clearTimeout(v.current),v.current=window.setTimeout(()=>m.onPointerGraceIntentChange(null),300)}else{if(m.onTriggerLeave(y),y.defaultPrevented)return;m.onPointerGraceIntentChange(null)}})),onKeyDown:je(a.onKeyDown,y=>{var M;const C=m.searchRef.current!=="";a.disabled||C&&y.key===" "||E2[c.dir].includes(y.key)&&(o.onOpenChange(!0),(M=o.content)==null||M.focus(),y.preventDefault())})})})});Cg.displayName=Ti;var wg="MenuSubContent",Ng=x.forwardRef((a,r)=>{const o=og(Zt,a.__scopeMenu),{forceMount:c=o.forceMount,...f}=a,m=Bl(Zt,a.__scopeMenu),h=Bi(Zt,a.__scopeMenu),v=Eg(wg,a.__scopeMenu),b=x.useRef(null),p=Et(r,b);return d.jsx(_i.Provider,{scope:a.__scopeMenu,children:d.jsx(Ui,{present:c||m.open,children:d.jsx(_i.Slot,{scope:a.__scopeMenu,children:d.jsx(Ys,{id:v.contentId,"aria-labelledby":v.triggerId,...f,ref:p,align:"start",side:h.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:S=>{var y;h.isUsingKeyboardRef.current&&((y=b.current)==null||y.focus()),S.preventDefault()},onCloseAutoFocus:S=>S.preventDefault(),onFocusOutside:je(a.onFocusOutside,S=>{S.target!==v.trigger&&m.onOpenChange(!1)}),onEscapeKeyDown:je(a.onEscapeKeyDown,S=>{h.onClose(),S.preventDefault()}),onKeyDown:je(a.onKeyDown,S=>{var M;const y=S.currentTarget.contains(S.target),C=C2[h.dir].includes(S.key);y&&C&&(m.onOpenChange(!1),(M=v.trigger)==null||M.focus(),S.preventDefault())})})})})})});Ng.displayName=wg;function Ag(a){return a?"open":"closed"}function Cr(a){return a==="indeterminate"}function Qs(a){return Cr(a)?"indeterminate":a?"checked":"unchecked"}function X2(a){const r=document.activeElement;for(const o of a)if(o===r||(o.focus(),document.activeElement!==r))return}function V2(a,r){return a.map((o,c)=>a[(r+c)%a.length])}function Q2(a,r,o){const f=r.length>1&&Array.from(r).every(p=>p===r[0])?r[0]:r,m=o?a.indexOf(o):-1;let h=V2(a,Math.max(m,0));f.length===1&&(h=h.filter(p=>p!==o));const b=h.find(p=>p.toLowerCase().startsWith(f.toLowerCase()));return b!==o?b:void 0}function Z2(a,r){const{x:o,y:c}=a;let f=!1;for(let m=0,h=r.length-1;m<r.length;h=m++){const v=r[m],b=r[h],p=v.x,S=v.y,y=b.x,C=b.y;S>c!=C>c&&o<(y-p)*(c-S)/(C-S)+p&&(f=!f)}return f}function K2(a,r){if(!r)return!1;const o={x:a.clientX,y:a.clientY};return Z2(o,r)}function Oi(a){return r=>r.pointerType==="mouse"?a(r):void 0}var J2=rg,F2=Bs,W2=cg,$2=sg,I2=Xs,P2=fg,eE=Or,tE=mg,nE=vg,lE=gg,aE=bg,iE=xg,uE=Sg,rE=Cg,oE=Ng,Rr="DropdownMenu",[cE]=Di(Rr,[ig]),ht=ig(),[sE,Mg]=cE(Rr),Tg=a=>{const{__scopeDropdownMenu:r,children:o,dir:c,open:f,defaultOpen:m,onOpenChange:h,modal:v=!0}=a,b=ht(r),p=x.useRef(null),[S,y]=mp({prop:f,defaultProp:m??!1,onChange:h,caller:Rr});return d.jsx(sE,{scope:r,triggerId:ys(),triggerRef:p,contentId:ys(),open:S,onOpenChange:y,onOpenToggle:x.useCallback(()=>y(C=>!C),[y]),modal:v,children:d.jsx(J2,{...b,open:S,onOpenChange:y,dir:c,modal:v,children:o})})};Tg.displayName=Rr;var jg="DropdownMenuTrigger",zg=x.forwardRef((a,r)=>{const{__scopeDropdownMenu:o,disabled:c=!1,...f}=a,m=Mg(jg,o),h=ht(o);return d.jsx(F2,{asChild:!0,...h,children:d.jsx(mt.button,{type:"button",id:m.triggerId,"aria-haspopup":"menu","aria-expanded":m.open,"aria-controls":m.open?m.contentId:void 0,"data-state":m.open?"open":"closed","data-disabled":c?"":void 0,disabled:c,...f,ref:Nr(r,m.triggerRef),onPointerDown:je(a.onPointerDown,v=>{!c&&v.button===0&&v.ctrlKey===!1&&(m.onOpenToggle(),m.open||v.preventDefault())}),onKeyDown:je(a.onKeyDown,v=>{c||(["Enter"," "].includes(v.key)&&m.onOpenToggle(),v.key==="ArrowDown"&&m.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(v.key)&&v.preventDefault())})})})});zg.displayName=jg;var fE="DropdownMenuPortal",_g=a=>{const{__scopeDropdownMenu:r,...o}=a,c=ht(r);return d.jsx(W2,{...c,...o})};_g.displayName=fE;var Og="DropdownMenuContent",Rg=x.forwardRef((a,r)=>{const{__scopeDropdownMenu:o,...c}=a,f=Mg(Og,o),m=ht(o),h=x.useRef(!1);return d.jsx($2,{id:f.contentId,"aria-labelledby":f.triggerId,...m,...c,ref:r,onCloseAutoFocus:je(a.onCloseAutoFocus,v=>{var b;h.current||(b=f.triggerRef.current)==null||b.focus(),h.current=!1,v.preventDefault()}),onInteractOutside:je(a.onInteractOutside,v=>{const b=v.detail.originalEvent,p=b.button===0&&b.ctrlKey===!0,S=b.button===2||p;(!f.modal||S)&&(h.current=!0)}),style:{...a.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Rg.displayName=Og;var dE="DropdownMenuGroup",mE=x.forwardRef((a,r)=>{const{__scopeDropdownMenu:o,...c}=a,f=ht(o);return d.jsx(I2,{...f,...c,ref:r})});mE.displayName=dE;var hE="DropdownMenuLabel",Dg=x.forwardRef((a,r)=>{const{__scopeDropdownMenu:o,...c}=a,f=ht(o);return d.jsx(P2,{...f,...c,ref:r})});Dg.displayName=hE;var vE="DropdownMenuItem",Ug=x.forwardRef((a,r)=>{const{__scopeDropdownMenu:o,...c}=a,f=ht(o);return d.jsx(eE,{...f,...c,ref:r})});Ug.displayName=vE;var pE="DropdownMenuCheckboxItem",Lg=x.forwardRef((a,r)=>{const{__scopeDropdownMenu:o,...c}=a,f=ht(o);return d.jsx(tE,{...f,...c,ref:r})});Lg.displayName=pE;var gE="DropdownMenuRadioGroup",yE=x.forwardRef((a,r)=>{const{__scopeDropdownMenu:o,...c}=a,f=ht(o);return d.jsx(nE,{...f,...c,ref:r})});yE.displayName=gE;var bE="DropdownMenuRadioItem",xE=x.forwardRef((a,r)=>{const{__scopeDropdownMenu:o,...c}=a,f=ht(o);return d.jsx(lE,{...f,...c,ref:r})});xE.displayName=bE;var SE="DropdownMenuItemIndicator",kg=x.forwardRef((a,r)=>{const{__scopeDropdownMenu:o,...c}=a,f=ht(o);return d.jsx(aE,{...f,...c,ref:r})});kg.displayName=SE;var EE="DropdownMenuSeparator",Hg=x.forwardRef((a,r)=>{const{__scopeDropdownMenu:o,...c}=a,f=ht(o);return d.jsx(iE,{...f,...c,ref:r})});Hg.displayName=EE;var CE="DropdownMenuArrow",wE=x.forwardRef((a,r)=>{const{__scopeDropdownMenu:o,...c}=a,f=ht(o);return d.jsx(uE,{...f,...c,ref:r})});wE.displayName=CE;var NE="DropdownMenuSubTrigger",AE=x.forwardRef((a,r)=>{const{__scopeDropdownMenu:o,...c}=a,f=ht(o);return d.jsx(rE,{...f,...c,ref:r})});AE.displayName=NE;var ME="DropdownMenuSubContent",TE=x.forwardRef((a,r)=>{const{__scopeDropdownMenu:o,...c}=a,f=ht(o);return d.jsx(oE,{...f,...c,ref:r,style:{...a.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});TE.displayName=ME;var jE=Tg,zE=zg,_E=_g,OE=Rg,RE=Dg,DE=Ug,UE=Lg,LE=kg,kE=Hg;const HE=jE,BE=zE,Bg=x.forwardRef(({className:a,sideOffset:r=4,...o},c)=>d.jsx(_E,{children:d.jsx(OE,{ref:c,sideOffset:r,className:It("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md animate-in",a),...o})}));Bg.displayName="DropdownMenuContent";const vr=x.forwardRef(({className:a,inset:r,...o},c)=>d.jsx(DE,{ref:c,className:It("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",r&&"pl-8",a),...o}));vr.displayName="DropdownMenuItem";const GE=x.forwardRef(({className:a,children:r,checked:o,...c},f)=>d.jsxs(UE,{ref:f,className:It("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),checked:o,...c,children:[d.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:d.jsx(LE,{children:d.jsx(Mb,{className:"h-4 w-4"})})}),r]}));GE.displayName="DropdownMenuCheckboxItem";const qE=x.forwardRef(({className:a,inset:r,...o},c)=>d.jsx(RE,{ref:c,className:It("px-2 py-1.5 text-sm font-semibold",r&&"pl-8",a),...o}));qE.displayName="DropdownMenuLabel";const YE=x.forwardRef(({className:a,...r},o)=>d.jsx(kE,{ref:o,className:It("-mx-1 my-1 h-px bg-muted",a),...r}));YE.displayName="DropdownMenuSeparator";function XE(){const{setTheme:a}=Sb();return d.jsxs(HE,{children:[d.jsx(BE,{asChild:!0,children:d.jsxs(Qe,{variant:"outline",size:"icon",className:"size-8",children:[d.jsx(av,{className:"h-4 w-4 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),d.jsx(lv,{className:"absolute h-4 w-4 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),d.jsx("span",{className:"sr-only",children:"Toggle theme"})]})}),d.jsxs(Bg,{align:"end",children:[d.jsxs(vr,{onClick:()=>a("light"),children:[d.jsx(av,{className:"mr-2 h-4 w-4"})," Light"]}),d.jsxs(vr,{onClick:()=>a("dark"),children:[d.jsx(lv,{className:"mr-2 h-4 w-4"})," Dark"]}),d.jsxs(vr,{onClick:()=>a("system"),children:[d.jsx(zb,{className:"mr-2 h-4 w-4"})," System"]})]})]})}const VE=Wv("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground",secondary:"border-transparent bg-secondary text-secondary-foreground",destructive:"border-transparent bg-destructive text-white",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function an({className:a,variant:r,...o}){return d.jsx("div",{className:It(VE({variant:r}),a),...o})}const ft=x.forwardRef(({className:a,type:r,...o},c)=>d.jsx("input",{type:r,className:It("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-input/30",a),ref:c,...o}));ft.displayName="Input";function Gg({value:a,onChange:r,placeholder:o="Search...",className:c}){return d.jsxs("div",{className:It("relative flex items-center",c),children:[d.jsx(Ob,{className:"absolute left-3 size-4 text-muted-foreground pointer-events-none"}),d.jsx(ft,{value:a,onChange:f=>r(f.target.value),placeholder:o,className:"pl-9 pr-9"}),a&&d.jsx(Qe,{variant:"ghost",size:"icon",className:"absolute right-1 size-7",onClick:()=>r(""),children:d.jsx(Ri,{className:"size-3"})})]})}function QE({contacts:a,total:r,loading:o,selectedId:c,onSelect:f,onNew:m,onEdit:h,onDelete:v,search:b,onSearchChange:p}){return d.jsxs("div",{className:"flex flex-col h-full",children:[d.jsxs("div",{className:"flex items-center gap-2 p-4 border-b",children:[d.jsx(Gg,{value:b,onChange:p,placeholder:"Search contacts...",className:"flex-1"}),d.jsx(Qe,{size:"icon",onClick:m,title:"New contact",children:d.jsx(Ul,{className:"size-4"})})]}),d.jsx("div",{className:"px-4 py-2 text-xs text-muted-foreground border-b",children:o?"Loading...":`${r} contact${r!==1?"s":""}`}),d.jsxs("div",{className:"flex-1 overflow-y-auto",children:[a.length===0&&!o&&d.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-muted-foreground text-sm gap-2",children:[d.jsx(Db,{className:"size-8 opacity-30"}),d.jsx("span",{children:"No contacts found"}),d.jsxs(Qe,{size:"sm",variant:"outline",onClick:m,children:[d.jsx(Ul,{className:"size-3 mr-1"})," Add contact"]})]}),a.map(S=>d.jsxs("div",{className:It("flex items-start gap-3 px-4 py-3 cursor-pointer hover:bg-accent transition-colors border-b last:border-0 group",c===S.id&&"bg-accent"),onClick:()=>f(S),children:[d.jsx("div",{className:"flex-shrink-0 size-9 rounded-full bg-primary/10 flex items-center justify-center text-sm font-medium text-primary",children:S.display_name.charAt(0).toUpperCase()}),d.jsxs("div",{className:"flex-1 min-w-0",children:[d.jsx("div",{className:"font-medium text-sm truncate",children:S.display_name}),S.job_title&&d.jsx("div",{className:"text-xs text-muted-foreground truncate",children:S.job_title}),S.company&&d.jsx("div",{className:"text-xs text-muted-foreground truncate",children:S.company.name}),S.tags.length>0&&d.jsx("div",{className:"flex flex-wrap gap-1 mt-1",children:S.tags.slice(0,3).map(y=>d.jsx(an,{variant:"secondary",className:"text-[10px] px-1 py-0",style:{backgroundColor:y.color+"20",color:y.color},children:y.name},y.id))})]}),d.jsxs("div",{className:"flex-shrink-0 flex gap-1 opacity-0 group-hover:opacity-100 transition-opacity",children:[d.jsx(Qe,{size:"icon",variant:"ghost",className:"size-7",onClick:y=>{y.stopPropagation(),h(S)},title:"Edit",children:d.jsx(Zv,{className:"size-3"})}),d.jsx(Qe,{size:"icon",variant:"ghost",className:"size-7 text-destructive hover:text-destructive",onClick:y=>{y.stopPropagation(),v(S.id)},title:"Delete",children:d.jsx(ji,{className:"size-3"})})]})]},S.id))]})]})}function ZE({contact:a,onClose:r}){return d.jsxs("div",{className:"flex flex-col h-full overflow-y-auto",children:[d.jsxs("div",{className:"flex items-start justify-between p-6 border-b",children:[d.jsxs("div",{className:"flex items-start gap-4",children:[d.jsx("div",{className:"size-16 rounded-full bg-primary/10 flex items-center justify-center text-2xl font-semibold text-primary flex-shrink-0",children:a.display_name.charAt(0).toUpperCase()}),d.jsxs("div",{children:[d.jsx("h2",{className:"text-xl font-semibold",children:a.display_name}),a.job_title&&d.jsx("p",{className:"text-sm text-muted-foreground",children:a.job_title}),a.company&&d.jsxs("div",{className:"flex items-center gap-1 text-sm text-muted-foreground mt-1",children:[d.jsx(Ms,{className:"size-3"}),d.jsx("span",{children:a.company.name})]})]})]}),r&&d.jsx("button",{onClick:r,className:"p-1 hover:bg-accent rounded-md transition-colors",children:d.jsx(Ri,{className:"size-4"})})]}),d.jsxs("div",{className:"p-6 space-y-5",children:[a.emails.length>0&&d.jsx(Rl,{icon:d.jsx(Vv,{className:"size-4"}),title:"Email",children:a.emails.map(o=>d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsx("a",{href:`mailto:${o.address}`,className:"text-sm hover:underline text-primary",children:o.address}),d.jsx(an,{variant:"secondary",className:"text-xs capitalize",children:o.type})]},o.id))}),a.phones.length>0&&d.jsx(Rl,{icon:d.jsx(Kv,{className:"size-4"}),title:"Phone",children:a.phones.map(o=>d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsx("a",{href:`tel:${o.number}`,className:"text-sm hover:underline text-primary",children:o.number}),d.jsx(an,{variant:"secondary",className:"text-xs capitalize",children:o.type})]},o.id))}),a.addresses.length>0&&d.jsx(Rl,{icon:d.jsx(Qv,{className:"size-4"}),title:"Address",children:a.addresses.map(o=>d.jsxs("div",{className:"text-sm",children:[[o.street,o.city,o.state,o.zip,o.country].filter(Boolean).join(", "),d.jsx(an,{variant:"secondary",className:"text-xs capitalize ml-2",children:o.type})]},o.id))}),a.social_profiles.length>0&&d.jsx(Rl,{icon:d.jsx(Xv,{className:"size-4"}),title:"Social",children:a.social_profiles.map(o=>d.jsxs("div",{className:"flex items-center justify-between",children:[o.url?d.jsx("a",{href:o.url,target:"_blank",rel:"noreferrer",className:"text-sm hover:underline text-primary truncate",children:o.handle??o.url}):d.jsx("span",{className:"text-sm",children:o.handle}),d.jsx(an,{variant:"secondary",className:"text-xs capitalize",children:o.platform})]},o.id))}),a.tags.length>0&&d.jsx(Rl,{icon:d.jsx(wr,{className:"size-4"}),title:"Tags",children:d.jsx("div",{className:"flex flex-wrap gap-2",children:a.tags.map(o=>d.jsx(an,{variant:"secondary",style:{backgroundColor:o.color+"20",color:o.color},children:o.name},o.id))})}),a.birthday&&d.jsx(Rl,{icon:d.jsx(Ab,{className:"size-4"}),title:"Birthday",children:d.jsx("span",{className:"text-sm",children:a.birthday})}),a.notes&&d.jsx(Rl,{icon:d.jsx("span",{className:"size-4 text-xs leading-none",children:"✎"}),title:"Notes",children:d.jsx("p",{className:"text-sm whitespace-pre-wrap",children:a.notes})}),d.jsxs("div",{className:"text-xs text-muted-foreground pt-2 border-t space-y-1",children:[d.jsxs("div",{children:["Created: ",new Date(a.created_at).toLocaleDateString()]}),d.jsxs("div",{children:["Updated: ",new Date(a.updated_at).toLocaleDateString()]}),d.jsxs("div",{children:["Source: ",a.source]})]})]})]})}function Rl({icon:a,title:r,children:o}){return d.jsxs("div",{className:"space-y-2",children:[d.jsxs("div",{className:"flex items-center gap-2 text-sm font-medium text-muted-foreground",children:[a,d.jsx("span",{children:r})]}),d.jsx("div",{className:"space-y-1.5 pl-6",children:o})]})}function KE({contact:a,companies:r,tags:o,onSave:c,onCancel:f}){var ge,he,ye;const[m,h]=x.useState((a==null?void 0:a.first_name)??""),[v,b]=x.useState((a==null?void 0:a.last_name)??""),[p,S]=x.useState((a==null?void 0:a.display_name)??""),[y,C]=x.useState((a==null?void 0:a.job_title)??""),[M,R]=x.useState((a==null?void 0:a.company_id)??""),[T,z]=x.useState((a==null?void 0:a.notes)??""),[H,J]=x.useState((a==null?void 0:a.birthday)??""),[Y,U]=x.useState(((ge=a==null?void 0:a.emails)==null?void 0:ge.map(w=>({address:w.address,type:w.type})))??[{address:"",type:"work"}]),[$,W]=x.useState(((he=a==null?void 0:a.phones)==null?void 0:he.map(w=>({number:w.number,type:w.type})))??[]),[Z,K]=x.useState(((ye=a==null?void 0:a.tags)==null?void 0:ye.map(w=>w.id))??[]),[ue,de]=x.useState(!1);x.useEffect(()=>{if(!a&&!p){const w=[m,v].filter(Boolean).join(" ");w&&S(w)}},[m,v,a,p]);async function ve(w){w.preventDefault(),de(!0);try{const B={first_name:m||void 0,last_name:v||void 0,display_name:p||[m,v].filter(Boolean).join(" ")||"Unnamed",job_title:y||void 0,company_id:M||void 0,notes:T||void 0,birthday:H||void 0,emails:Y.filter(k=>k.address).map((k,X)=>({address:k.address,type:k.type,is_primary:X===0})),phones:$.filter(k=>k.number).map((k,X)=>({number:k.number,type:k.type,is_primary:X===0})),tag_ids:Z};await c(B)}finally{de(!1)}}function me(w){K(B=>B.includes(w)?B.filter(k=>k!==w):[...B,w])}return d.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",children:d.jsxs("div",{className:"bg-background rounded-lg shadow-xl w-full max-w-lg max-h-[90vh] overflow-y-auto",children:[d.jsxs("div",{className:"flex items-center justify-between p-5 border-b",children:[d.jsx("h2",{className:"font-semibold",children:a?"Edit Contact":"New Contact"}),d.jsx("button",{onClick:f,className:"p-1 hover:bg-accent rounded-md",children:d.jsx(Ri,{className:"size-4"})})]}),d.jsxs("form",{onSubmit:ve,className:"p-5 space-y-4",children:[d.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[d.jsxs("div",{children:[d.jsx("label",{className:"text-xs font-medium text-muted-foreground mb-1 block",children:"First Name"}),d.jsx(ft,{value:m,onChange:w=>h(w.target.value),placeholder:"First name"})]}),d.jsxs("div",{children:[d.jsx("label",{className:"text-xs font-medium text-muted-foreground mb-1 block",children:"Last Name"}),d.jsx(ft,{value:v,onChange:w=>b(w.target.value),placeholder:"Last name"})]})]}),d.jsxs("div",{children:[d.jsx("label",{className:"text-xs font-medium text-muted-foreground mb-1 block",children:"Display Name *"}),d.jsx(ft,{value:p,onChange:w=>S(w.target.value),placeholder:"Display name",required:!0})]}),d.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[d.jsxs("div",{children:[d.jsx("label",{className:"text-xs font-medium text-muted-foreground mb-1 block",children:"Job Title"}),d.jsx(ft,{value:y,onChange:w=>C(w.target.value),placeholder:"Job title"})]}),d.jsxs("div",{children:[d.jsx("label",{className:"text-xs font-medium text-muted-foreground mb-1 block",children:"Company"}),d.jsxs("select",{value:M,onChange:w=>R(w.target.value),className:"flex h-9 w-full rounded-md border border-input bg-background px-3 py-1 text-sm shadow-sm",children:[d.jsx("option",{value:"",children:"— None —"}),r.map(w=>d.jsx("option",{value:w.id,children:w.name},w.id))]})]})]}),d.jsxs("div",{children:[d.jsxs("div",{className:"flex items-center justify-between mb-2",children:[d.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:"Emails"}),d.jsxs(Qe,{type:"button",size:"sm",variant:"ghost",onClick:()=>U([...Y,{address:"",type:"work"}]),children:[d.jsx(Ul,{className:"size-3 mr-1"})," Add"]})]}),d.jsx("div",{className:"space-y-2",children:Y.map((w,B)=>d.jsxs("div",{className:"flex gap-2",children:[d.jsx(ft,{type:"email",value:w.address,onChange:k=>{const X=[...Y];X[B]={...X[B],address:k.target.value},U(X)},placeholder:"email@example.com",className:"flex-1"}),d.jsxs("select",{value:w.type,onChange:k=>{const X=[...Y];X[B]={...X[B],type:k.target.value},U(X)},className:"h-9 rounded-md border border-input bg-background px-2 text-sm",children:[d.jsx("option",{value:"work",children:"Work"}),d.jsx("option",{value:"personal",children:"Personal"}),d.jsx("option",{value:"other",children:"Other"})]}),d.jsx(Qe,{type:"button",size:"icon",variant:"ghost",className:"size-9",onClick:()=>U(Y.filter((k,X)=>X!==B)),children:d.jsx(ji,{className:"size-3"})})]},B))})]}),d.jsxs("div",{children:[d.jsxs("div",{className:"flex items-center justify-between mb-2",children:[d.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:"Phones"}),d.jsxs(Qe,{type:"button",size:"sm",variant:"ghost",onClick:()=>W([...$,{number:"",type:"mobile"}]),children:[d.jsx(Ul,{className:"size-3 mr-1"})," Add"]})]}),d.jsx("div",{className:"space-y-2",children:$.map((w,B)=>d.jsxs("div",{className:"flex gap-2",children:[d.jsx(ft,{value:w.number,onChange:k=>{const X=[...$];X[B]={...X[B],number:k.target.value},W(X)},placeholder:"+1 555 0100",className:"flex-1"}),d.jsxs("select",{value:w.type,onChange:k=>{const X=[...$];X[B]={...X[B],type:k.target.value},W(X)},className:"h-9 rounded-md border border-input bg-background px-2 text-sm",children:[d.jsx("option",{value:"mobile",children:"Mobile"}),d.jsx("option",{value:"work",children:"Work"}),d.jsx("option",{value:"home",children:"Home"}),d.jsx("option",{value:"fax",children:"Fax"}),d.jsx("option",{value:"other",children:"Other"})]}),d.jsx(Qe,{type:"button",size:"icon",variant:"ghost",className:"size-9",onClick:()=>W($.filter((k,X)=>X!==B)),children:d.jsx(ji,{className:"size-3"})})]},B))})]}),o.length>0&&d.jsxs("div",{children:[d.jsx("label",{className:"text-xs font-medium text-muted-foreground mb-2 block",children:"Tags"}),d.jsx("div",{className:"flex flex-wrap gap-2",children:o.map(w=>d.jsx("button",{type:"button",onClick:()=>me(w.id),className:"rounded-full px-3 py-1 text-xs font-medium border transition-all",style:Z.includes(w.id)?{backgroundColor:w.color,color:"white",borderColor:w.color}:{backgroundColor:"transparent",borderColor:w.color+"60",color:w.color},children:w.name},w.id))})]}),d.jsxs("div",{children:[d.jsx("label",{className:"text-xs font-medium text-muted-foreground mb-1 block",children:"Birthday"}),d.jsx(ft,{type:"date",value:H,onChange:w=>J(w.target.value)})]}),d.jsxs("div",{children:[d.jsx("label",{className:"text-xs font-medium text-muted-foreground mb-1 block",children:"Notes"}),d.jsx("textarea",{value:T,onChange:w=>z(w.target.value),placeholder:"Notes...",rows:3,className:"flex w-full rounded-md border border-input bg-background px-3 py-2 text-sm shadow-sm resize-none"})]}),d.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[d.jsx(Qe,{type:"button",variant:"outline",onClick:f,children:"Cancel"}),d.jsx(Qe,{type:"submit",disabled:ue,children:ue?"Saving...":a?"Save Changes":"Create Contact"})]})]})]})})}function JE({companies:a,total:r,loading:o,selectedId:c,onSelect:f,onNew:m,onEdit:h,onDelete:v,search:b,onSearchChange:p}){const S=b?a.filter(y=>y.name.toLowerCase().includes(b.toLowerCase())||(y.industry??"").toLowerCase().includes(b.toLowerCase())):a;return d.jsxs("div",{className:"flex flex-col h-full",children:[d.jsxs("div",{className:"flex items-center gap-2 p-4 border-b",children:[d.jsx(Gg,{value:b,onChange:p,placeholder:"Search companies...",className:"flex-1"}),d.jsx(Qe,{size:"icon",onClick:m,title:"New company",children:d.jsx(Ul,{className:"size-4"})})]}),d.jsx("div",{className:"px-4 py-2 text-xs text-muted-foreground border-b",children:o?"Loading...":`${r} compan${r!==1?"ies":"y"}`}),d.jsxs("div",{className:"flex-1 overflow-y-auto",children:[S.length===0&&!o&&d.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-muted-foreground text-sm gap-2",children:[d.jsx(Ms,{className:"size-8 opacity-30"}),d.jsx("span",{children:"No companies found"}),d.jsxs(Qe,{size:"sm",variant:"outline",onClick:m,children:[d.jsx(Ul,{className:"size-3 mr-1"})," Add company"]})]}),S.map(y=>d.jsxs("div",{className:It("flex items-start gap-3 px-4 py-3 cursor-pointer hover:bg-accent transition-colors border-b last:border-0 group",c===y.id&&"bg-accent"),onClick:()=>f(y),children:[d.jsx("div",{className:"flex-shrink-0 size-9 rounded-md bg-primary/10 flex items-center justify-center text-sm font-medium text-primary",children:y.name.charAt(0).toUpperCase()}),d.jsxs("div",{className:"flex-1 min-w-0",children:[d.jsx("div",{className:"font-medium text-sm truncate",children:y.name}),y.industry&&d.jsx("div",{className:"text-xs text-muted-foreground",children:y.industry}),d.jsxs("div",{className:"text-xs text-muted-foreground",children:[y.employee_count," employee",y.employee_count!==1?"s":""]})]}),d.jsxs("div",{className:"flex-shrink-0 flex gap-1 opacity-0 group-hover:opacity-100 transition-opacity",children:[d.jsx(Qe,{size:"icon",variant:"ghost",className:"size-7",onClick:C=>{C.stopPropagation(),h(y)},title:"Edit",children:d.jsx(Zv,{className:"size-3"})}),d.jsx(Qe,{size:"icon",variant:"ghost",className:"size-7 text-destructive hover:text-destructive",onClick:C=>{C.stopPropagation(),v(y.id)},title:"Delete",children:d.jsx(ji,{className:"size-3"})})]})]},y.id))]})]})}function FE({company:a,onClose:r}){return d.jsxs("div",{className:"flex flex-col h-full overflow-y-auto",children:[d.jsxs("div",{className:"flex items-start justify-between p-6 border-b",children:[d.jsxs("div",{className:"flex items-start gap-4",children:[d.jsx("div",{className:"size-16 rounded-md bg-primary/10 flex items-center justify-center text-2xl font-semibold text-primary flex-shrink-0",children:a.name.charAt(0).toUpperCase()}),d.jsxs("div",{children:[d.jsx("h2",{className:"text-xl font-semibold",children:a.name}),a.industry&&d.jsx("p",{className:"text-sm text-muted-foreground",children:a.industry}),a.domain&&d.jsxs("a",{href:`https://${a.domain}`,target:"_blank",rel:"noreferrer",className:"flex items-center gap-1 text-sm text-primary hover:underline mt-1",children:[d.jsx(jb,{className:"size-3"}),a.domain]})]})]}),r&&d.jsx("button",{onClick:r,className:"p-1 hover:bg-accent rounded-md transition-colors",children:d.jsx(Ri,{className:"size-4"})})]}),d.jsxs("div",{className:"p-6 space-y-5",children:[d.jsxs("div",{className:"flex gap-4",children:[d.jsx(hs,{icon:d.jsx(ps,{className:"size-4"}),label:"Employees",value:String(a.employee_count)}),a.founded_year&&d.jsx(hs,{icon:d.jsx("span",{className:"text-xs",children:"📅"}),label:"Founded",value:String(a.founded_year)}),a.size&&d.jsx(hs,{icon:d.jsx("span",{className:"text-xs",children:"📊"}),label:"Size",value:a.size})]}),a.description&&d.jsx(Dl,{icon:d.jsx("span",{className:"size-4 text-xs",children:"ℹ"}),title:"About",children:d.jsx("p",{className:"text-sm",children:a.description})}),a.emails.length>0&&d.jsx(Dl,{icon:d.jsx(Vv,{className:"size-4"}),title:"Email",children:a.emails.map(o=>d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsx("a",{href:`mailto:${o.address}`,className:"text-sm hover:underline text-primary",children:o.address}),d.jsx(an,{variant:"secondary",className:"text-xs capitalize",children:o.type})]},o.id))}),a.phones.length>0&&d.jsx(Dl,{icon:d.jsx(Kv,{className:"size-4"}),title:"Phone",children:a.phones.map(o=>d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsx("a",{href:`tel:${o.number}`,className:"text-sm hover:underline text-primary",children:o.number}),d.jsx(an,{variant:"secondary",className:"text-xs capitalize",children:o.type})]},o.id))}),a.addresses.length>0&&d.jsx(Dl,{icon:d.jsx(Qv,{className:"size-4"}),title:"Address",children:a.addresses.map(o=>d.jsx("div",{className:"text-sm",children:[o.street,o.city,o.state,o.zip,o.country].filter(Boolean).join(", ")},o.id))}),a.social_profiles.length>0&&d.jsx(Dl,{icon:d.jsx(Xv,{className:"size-4"}),title:"Social",children:a.social_profiles.map(o=>d.jsxs("div",{className:"flex items-center justify-between",children:[o.url?d.jsx("a",{href:o.url,target:"_blank",rel:"noreferrer",className:"text-sm hover:underline text-primary truncate",children:o.handle??o.url}):d.jsx("span",{className:"text-sm",children:o.handle}),d.jsx(an,{variant:"secondary",className:"text-xs capitalize",children:o.platform})]},o.id))}),a.tags.length>0&&d.jsx(Dl,{icon:d.jsx(wr,{className:"size-4"}),title:"Tags",children:d.jsx("div",{className:"flex flex-wrap gap-2",children:a.tags.map(o=>d.jsx(an,{variant:"secondary",style:{backgroundColor:o.color+"20",color:o.color},children:o.name},o.id))})}),a.notes&&d.jsx(Dl,{icon:d.jsx("span",{className:"size-4 text-xs leading-none",children:"✎"}),title:"Notes",children:d.jsx("p",{className:"text-sm whitespace-pre-wrap",children:a.notes})}),d.jsxs("div",{className:"text-xs text-muted-foreground pt-2 border-t space-y-1",children:[d.jsxs("div",{children:["Created: ",new Date(a.created_at).toLocaleDateString()]}),d.jsxs("div",{children:["Updated: ",new Date(a.updated_at).toLocaleDateString()]})]})]})]})}function hs({icon:a,label:r,value:o}){return d.jsxs("div",{className:"flex items-center gap-2 border rounded-md px-3 py-2",children:[d.jsx("span",{className:"text-muted-foreground",children:a}),d.jsxs("div",{children:[d.jsx("div",{className:"text-xs text-muted-foreground",children:r}),d.jsx("div",{className:"text-sm font-medium",children:o})]})]})}function Dl({icon:a,title:r,children:o}){return d.jsxs("div",{className:"space-y-2",children:[d.jsxs("div",{className:"flex items-center gap-2 text-sm font-medium text-muted-foreground",children:[a,d.jsx("span",{children:r})]}),d.jsx("div",{className:"space-y-1.5 pl-6",children:o})]})}function WE({company:a,onSave:r,onCancel:o}){const[c,f]=x.useState((a==null?void 0:a.name)??""),[m,h]=x.useState((a==null?void 0:a.domain)??""),[v,b]=x.useState((a==null?void 0:a.industry)??""),[p,S]=x.useState((a==null?void 0:a.size)??""),[y,C]=x.useState(a!=null&&a.founded_year?String(a.founded_year):""),[M,R]=x.useState((a==null?void 0:a.description)??""),[T,z]=x.useState((a==null?void 0:a.notes)??""),[H,J]=x.useState(!1);async function Y(U){if(U.preventDefault(),!!c.trim()){J(!0);try{await r({name:c.trim(),domain:m||void 0,industry:v||void 0,size:p||void 0,founded_year:y?parseInt(y,10):void 0,description:M||void 0,notes:T||void 0})}finally{J(!1)}}}return d.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",children:d.jsxs("div",{className:"bg-background rounded-lg shadow-xl w-full max-w-md max-h-[90vh] overflow-y-auto",children:[d.jsxs("div",{className:"flex items-center justify-between p-5 border-b",children:[d.jsx("h2",{className:"font-semibold",children:a?"Edit Company":"New Company"}),d.jsx("button",{onClick:o,className:"p-1 hover:bg-accent rounded-md",children:d.jsx(Ri,{className:"size-4"})})]}),d.jsxs("form",{onSubmit:Y,className:"p-5 space-y-4",children:[d.jsxs("div",{children:[d.jsx("label",{className:"text-xs font-medium text-muted-foreground mb-1 block",children:"Company Name *"}),d.jsx(ft,{value:c,onChange:U=>f(U.target.value),placeholder:"Company name",required:!0})]}),d.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[d.jsxs("div",{children:[d.jsx("label",{className:"text-xs font-medium text-muted-foreground mb-1 block",children:"Domain"}),d.jsx(ft,{value:m,onChange:U=>h(U.target.value),placeholder:"example.com"})]}),d.jsxs("div",{children:[d.jsx("label",{className:"text-xs font-medium text-muted-foreground mb-1 block",children:"Industry"}),d.jsx(ft,{value:v,onChange:U=>b(U.target.value),placeholder:"Technology"})]})]}),d.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[d.jsxs("div",{children:[d.jsx("label",{className:"text-xs font-medium text-muted-foreground mb-1 block",children:"Size"}),d.jsx(ft,{value:p,onChange:U=>S(U.target.value),placeholder:"1-10, 11-50, etc."})]}),d.jsxs("div",{children:[d.jsx("label",{className:"text-xs font-medium text-muted-foreground mb-1 block",children:"Founded Year"}),d.jsx(ft,{type:"number",value:y,onChange:U=>C(U.target.value),placeholder:"2020",min:"1800",max:new Date().getFullYear()})]})]}),d.jsxs("div",{children:[d.jsx("label",{className:"text-xs font-medium text-muted-foreground mb-1 block",children:"Description"}),d.jsx("textarea",{value:M,onChange:U=>R(U.target.value),placeholder:"Brief description...",rows:2,className:"flex w-full rounded-md border border-input bg-background px-3 py-2 text-sm shadow-sm resize-none"})]}),d.jsxs("div",{children:[d.jsx("label",{className:"text-xs font-medium text-muted-foreground mb-1 block",children:"Notes"}),d.jsx("textarea",{value:T,onChange:U=>z(U.target.value),placeholder:"Notes...",rows:3,className:"flex w-full rounded-md border border-input bg-background px-3 py-2 text-sm shadow-sm resize-none"})]}),d.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[d.jsx(Qe,{type:"button",variant:"outline",onClick:o,children:"Cancel"}),d.jsx(Qe,{type:"submit",disabled:H||!c.trim(),children:H?"Saving...":a?"Save Changes":"Create Company"})]})]})]})})}const vs=["#6366f1","#ec4899","#f59e0b","#10b981","#3b82f6","#8b5cf6","#ef4444","#06b6d4"];function $E({tags:a,loading:r,onCreate:o,onDelete:c}){const[f,m]=x.useState(""),[h,v]=x.useState(vs[0]),[b,p]=x.useState(""),[S,y]=x.useState(!1);async function C(M){if(M.preventDefault(),!!f.trim()){y(!0);try{await o(f.trim(),h,b.trim()),m(""),p(""),v(vs[0])}finally{y(!1)}}}return d.jsx("div",{className:"space-y-6 p-6 max-w-xl",children:d.jsxs("div",{children:[d.jsx("h2",{className:"text-lg font-semibold mb-4",children:"Tags"}),d.jsxs("form",{onSubmit:C,className:"flex flex-col gap-3 mb-6 p-4 border rounded-lg bg-card",children:[d.jsx("div",{className:"text-sm font-medium",children:"New Tag"}),d.jsxs("div",{className:"flex gap-2",children:[d.jsx(ft,{value:f,onChange:M=>m(M.target.value),placeholder:"Tag name",className:"flex-1"}),d.jsx(ft,{value:b,onChange:M=>p(M.target.value),placeholder:"Description (optional)",className:"flex-1"})]}),d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("span",{className:"text-xs text-muted-foreground",children:"Color:"}),vs.map(M=>d.jsx("button",{type:"button",onClick:()=>v(M),className:`size-5 rounded-full border-2 transition-transform ${h===M?"border-foreground scale-110":"border-transparent"}`,style:{backgroundColor:M}},M)),d.jsx("input",{type:"color",value:h,onChange:M=>v(M.target.value),className:"size-5 rounded cursor-pointer border-0 bg-transparent",title:"Custom color"})]}),d.jsxs(Qe,{type:"submit",size:"sm",disabled:!f.trim()||S,children:[d.jsx(Ul,{className:"size-3 mr-1"}),"Create Tag"]})]}),r&&d.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading tags..."}),!r&&a.length===0&&d.jsxs("div",{className:"flex flex-col items-center justify-center py-8 text-muted-foreground text-sm gap-2",children:[d.jsx(wr,{className:"size-8 opacity-30"}),d.jsx("span",{children:"No tags yet. Create one above."})]}),d.jsx("div",{className:"space-y-2",children:a.map(M=>d.jsxs("div",{className:"flex items-center gap-3 px-3 py-2 border rounded-md hover:bg-accent transition-colors group",children:[d.jsx("div",{className:"size-4 rounded-full flex-shrink-0",style:{backgroundColor:M.color}}),d.jsxs("div",{className:"flex-1 min-w-0",children:[d.jsx("span",{className:"text-sm font-medium",children:M.name}),M.description&&d.jsx("span",{className:"text-xs text-muted-foreground ml-2",children:M.description})]}),d.jsx(Qe,{size:"icon",variant:"ghost",className:"size-7 text-destructive hover:text-destructive opacity-0 group-hover:opacity-100 transition-opacity",onClick:()=>c(M.id),title:"Delete tag",children:d.jsx(ji,{className:"size-3"})})]},M.id))})]})})}const qg="http://localhost:19428/api";async function Ct(a,r){const o=await fetch(`${qg}${a}`,{headers:{"Content-Type":"application/json"},...r});if(!o.ok){const c=await o.json().catch(()=>({error:o.statusText}));throw new Error(c.error??`HTTP ${o.status}`)}return o.json()}function IE(){return Ct("/stats")}function PE(a){const r=new URLSearchParams;a!=null&&a.q&&r.set("q",a.q),a!=null&&a.tag_id&&r.set("tag_id",a.tag_id),a!=null&&a.company_id&&r.set("company_id",a.company_id),r.set("limit",String(a.limit)),(a==null?void 0:a.offset)!=null&&r.set("offset",String(a.offset));const o=r.toString(),c=o?`/contacts?${o}`:"/contacts";return a!=null&&a.q?Ct(`/contacts?q=${encodeURIComponent(a.q)}`).then(f=>({contacts:f,total:f.length})):Ct(c)}function eC(a){return Ct("/contacts",{method:"POST",body:JSON.stringify(a)})}function tC(a,r){return Ct(`/contacts/${a}`,{method:"PATCH",body:JSON.stringify(r)})}function nC(a){return Ct(`/contacts/${a}`,{method:"DELETE"})}function lC(a){const r=new URLSearchParams;a!=null&&a.tag_id&&r.set("tag_id",a.tag_id),a!=null&&a.industry&&r.set("industry",a.industry),r.set("limit",String(a.limit)),(a==null?void 0:a.offset)!=null&&r.set("offset",String(a.offset));const o=r.toString();return Ct(o?`/companies?${o}`:"/companies")}function aC(a){return Ct("/companies",{method:"POST",body:JSON.stringify(a)})}function iC(a,r){return Ct(`/companies/${a}`,{method:"PATCH",body:JSON.stringify(r)})}function uC(a){return Ct(`/companies/${a}`,{method:"DELETE"})}function rC(){return Ct("/tags")}function oC(a){return Ct("/tags",{method:"POST",body:JSON.stringify(a)})}function cC(a){return Ct(`/tags/${a}`,{method:"DELETE"})}function sC(a,r){return Ct("/import",{method:"POST",body:JSON.stringify({format:a,data:r})})}function fC(a){return`${qg}/export?format=${a}`}function dC({onImport:a}){const[r,o]=x.useState(!1),[c,f]=x.useState(null),[m,h]=x.useState(null),v=x.useRef(null);async function b(p){var R,T;const S=(R=p.target.files)==null?void 0:R[0];if(!S)return;const y=(T=S.name.split(".").pop())==null?void 0:T.toLowerCase(),C=y==="json"?"json":y==="csv"?"csv":y==="vcf"||y==="vcard"?"vcf":null;if(!C){h("Unsupported file format. Use .json, .csv, or .vcf");return}const M=await S.text();o(!0),f(null),h(null);try{await a(C,M)}catch(z){h(z instanceof Error?z.message:"Import failed")}finally{o(!1),v.current&&(v.current.value="")}}return d.jsxs("div",{className:"space-y-8 p-6 max-w-xl",children:[d.jsxs("div",{children:[d.jsx("h2",{className:"text-lg font-semibold mb-1",children:"Import & Export"}),d.jsx("p",{className:"text-sm text-muted-foreground",children:"Import contacts from a file or export all contacts."})]}),d.jsxs("div",{className:"border rounded-lg p-5 space-y-4",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(Rb,{className:"size-5 text-primary"}),d.jsx("h3",{className:"font-medium",children:"Import Contacts"})]}),d.jsx("p",{className:"text-sm text-muted-foreground",children:"Supported formats: JSON, CSV (Google Contacts style), vCard (.vcf)"}),d.jsxs("div",{className:"border-2 border-dashed rounded-lg p-8 text-center cursor-pointer hover:border-primary/50 hover:bg-accent/50 transition-colors",onClick:()=>{var p;return(p=v.current)==null?void 0:p.click()},children:[d.jsx(Tb,{className:"size-8 mx-auto mb-2 text-muted-foreground"}),d.jsx("p",{className:"text-sm font-medium",children:"Click to select file"}),d.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:".json, .csv, .vcf, .vcard"})]}),d.jsx("input",{ref:v,type:"file",accept:".json,.csv,.vcf,.vcard",onChange:b,className:"hidden"}),r&&d.jsx("div",{className:"text-sm text-muted-foreground",children:"Importing..."}),c&&d.jsxs("div",{className:`text-sm p-3 rounded-md ${c.errors===0?"bg-green-50 text-green-800 dark:bg-green-950 dark:text-green-200":"bg-yellow-50 text-yellow-800 dark:bg-yellow-950 dark:text-yellow-200"}`,children:["Imported ",c.imported," contact",c.imported!==1?"s":"",".",c.errors>0&&` ${c.errors} error${c.errors!==1?"s":""}.`]}),m&&d.jsx("div",{className:"text-sm p-3 rounded-md bg-red-50 text-red-800 dark:bg-red-950 dark:text-red-200",children:m})]}),d.jsxs("div",{className:"border rounded-lg p-5 space-y-4",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(nv,{className:"size-5 text-primary"}),d.jsx("h3",{className:"font-medium",children:"Export Contacts"})]}),d.jsx("p",{className:"text-sm text-muted-foreground",children:"Download all contacts in your preferred format."}),d.jsx("div",{className:"flex gap-3 flex-wrap",children:["json","csv","vcf"].map(p=>d.jsx("a",{href:fC(p),download:`contacts.${p}`,children:d.jsxs(Qe,{variant:"outline",size:"sm",children:[d.jsx(nv,{className:"size-3 mr-1"}),"Export as .",p.toUpperCase()]})},p))})]})]})}function mC(){const[a,r]=x.useState("contacts"),[o,c]=x.useState([]),[f,m]=x.useState(0),[h,v]=x.useState([]),[b,p]=x.useState(0),[S,y]=x.useState([]),[C,M]=x.useState({contacts:0,companies:0,tags:0}),[R,T]=x.useState(!0),[z,H]=x.useState(""),[J,Y]=x.useState(""),[U,$]=x.useState(null),[W,Z]=x.useState(null),[K,ue]=x.useState(!1),[de,ve]=x.useState(null),[me,ge]=x.useState(!1),[he,ye]=x.useState(null),[w,B]=x.useState(null);function k(re,P){B({message:re,type:P}),setTimeout(()=>B(null),3e3)}const X=x.useCallback(async()=>{T(!0);try{const[re,P,be,ze]=await Promise.all([PE({limit:200}),lC({limit:200}),rC(),IE()]);c(re.contacts),m(re.total),v(P.companies),p(P.total),y(be),M(ze)}catch(re){k(re instanceof Error?re.message:"Failed to load data","error")}finally{T(!1)}},[]);x.useEffect(()=>{X()},[X]);const F=x.useMemo(()=>{if(!z)return o;const re=z.toLowerCase();return o.filter(P=>{var be;return P.display_name.toLowerCase().includes(re)||(P.job_title??"").toLowerCase().includes(re)||(((be=P.company)==null?void 0:be.name)??"").toLowerCase().includes(re)||P.emails.some(ze=>ze.address.toLowerCase().includes(re))||P.tags.some(ze=>ze.name.toLowerCase().includes(re))})},[o,z]);async function N(re){try{const P=await eC(re);c(be=>[P,...be]),m(be=>be+1),ue(!1),k("Contact created","success"),X()}catch(P){throw k(P instanceof Error?P.message:"Failed to create contact","error"),P}}async function G(re){if(de)try{const P=await tC(de.id,re);c(be=>be.map(ze=>ze.id===P.id?P:ze)),(U==null?void 0:U.id)===P.id&&$(P),ve(null),ue(!1),k("Contact updated","success"),X()}catch(P){throw k(P instanceof Error?P.message:"Failed to update contact","error"),P}}async function I(re){if(confirm("Delete this contact?"))try{await nC(re),c(P=>P.filter(be=>be.id!==re)),m(P=>P-1),(U==null?void 0:U.id)===re&&$(null),k("Contact deleted","success")}catch(P){k(P instanceof Error?P.message:"Failed to delete contact","error")}}async function ee(re){try{const P=await aC(re);v(be=>[P,...be]),p(be=>be+1),ge(!1),k("Company created","success"),X()}catch(P){throw k(P instanceof Error?P.message:"Failed to create company","error"),P}}async function te(re){if(he)try{const P=await iC(he.id,re);v(be=>be.map(ze=>ze.id===P.id?P:ze)),(W==null?void 0:W.id)===P.id&&Z(P),ye(null),ge(!1),k("Company updated","success"),X()}catch(P){throw k(P instanceof Error?P.message:"Failed to update company","error"),P}}async function ae(re){if(confirm("Delete this company?"))try{await uC(re),v(P=>P.filter(be=>be.id!==re)),p(P=>P-1),(W==null?void 0:W.id)===re&&Z(null),k("Company deleted","success")}catch(P){k(P instanceof Error?P.message:"Failed to delete company","error")}}async function pe(re,P,be){try{const ze=await oC({name:re,color:P,description:be||void 0});y(dl=>[...dl,ze]),k("Tag created","success")}catch(ze){k(ze instanceof Error?ze.message:"Failed to create tag","error")}}async function Ge(re){if(confirm("Delete this tag?"))try{await cC(re),y(P=>P.filter(be=>be.id!==re)),k("Tag deleted","success")}catch(P){k(P instanceof Error?P.message:"Failed to delete tag","error")}}async function ce(re,P){try{const be=await sC(re,P);k(`Imported ${be.imported} contacts`,be.errors>0?"error":"success"),X()}catch(be){throw k(be instanceof Error?be.message:"Import failed","error"),be}}const ct=[{key:"contacts",label:"Contacts",icon:d.jsx(ps,{className:"size-4"}),count:C.contacts},{key:"companies",label:"Companies",icon:d.jsx(Ms,{className:"size-4"}),count:C.companies},{key:"tags",label:"Tags",icon:d.jsx(wr,{className:"size-4"}),count:C.tags},{key:"import",label:"Import/Export",icon:d.jsx(Nb,{className:"size-4"})}];return d.jsxs("div",{className:"min-h-screen flex flex-col",children:[d.jsx("header",{className:"border-b bg-background",children:d.jsxs("div",{className:"mx-auto flex h-14 max-w-7xl items-center justify-between px-6",children:[d.jsxs("div",{className:"flex items-center gap-4",children:[d.jsxs("button",{className:"flex items-center gap-2 hover:opacity-80 transition-opacity",onClick:()=>r("contacts"),children:[d.jsx("div",{className:"size-7 rounded-md bg-primary flex items-center justify-center",children:d.jsx(ps,{className:"size-4 text-primary-foreground"})}),d.jsxs("h1",{className:"text-base font-semibold",children:["Open ",d.jsx("span",{className:"font-normal text-muted-foreground",children:"Contacts"})]})]}),d.jsx("nav",{className:"flex items-center gap-1",children:ct.map(re=>d.jsxs("button",{onClick:()=>r(re.key),className:`flex items-center gap-2 px-3 py-1.5 rounded-md text-sm transition-colors ${a===re.key?"bg-accent text-accent-foreground font-medium":"text-muted-foreground hover:text-foreground hover:bg-accent/50"}`,children:[re.icon,re.label,re.count!=null&&d.jsxs("span",{className:"text-xs text-muted-foreground tabular-nums",children:["(",re.count,")"]})]},re.key))})]}),d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(Qe,{variant:"outline",size:"icon",className:"size-8",onClick:X,disabled:R,title:"Reload",children:d.jsx(_b,{className:`size-4 ${R?"animate-spin":""}`})}),d.jsx(XE,{})]})]})}),d.jsxs("main",{className:"flex-1 overflow-hidden",children:[a==="contacts"&&d.jsxs("div",{className:"flex h-[calc(100vh-56px)]",children:[d.jsx("div",{className:"w-80 border-r flex-shrink-0",children:d.jsx(QE,{contacts:F,total:f,loading:R,selectedId:(U==null?void 0:U.id)??null,onSelect:$,onNew:()=>{ve(null),ue(!0)},onEdit:re=>{ve(re),ue(!0)},onDelete:I,search:z,onSearchChange:H})}),d.jsx("div",{className:"flex-1 overflow-hidden",children:U?d.jsx(ZE,{contact:U,onClose:()=>$(null)}):d.jsx("div",{className:"flex items-center justify-center h-full text-muted-foreground text-sm",children:"Select a contact to view details"})})]}),a==="companies"&&d.jsxs("div",{className:"flex h-[calc(100vh-56px)]",children:[d.jsx("div",{className:"w-80 border-r flex-shrink-0",children:d.jsx(JE,{companies:h,total:b,loading:R,selectedId:(W==null?void 0:W.id)??null,onSelect:Z,onNew:()=>{ye(null),ge(!0)},onEdit:re=>{ye(re),ge(!0)},onDelete:ae,search:J,onSearchChange:Y})}),d.jsx("div",{className:"flex-1 overflow-hidden",children:W?d.jsx(FE,{company:W,onClose:()=>Z(null)}):d.jsx("div",{className:"flex items-center justify-center h-full text-muted-foreground text-sm",children:"Select a company to view details"})})]}),a==="tags"&&d.jsx("div",{className:"overflow-y-auto h-[calc(100vh-56px)]",children:d.jsx($E,{tags:S,loading:R,onCreate:pe,onDelete:Ge})}),a==="import"&&d.jsx("div",{className:"overflow-y-auto h-[calc(100vh-56px)]",children:d.jsx(dC,{onImport:ce})})]}),K&&d.jsx(KE,{contact:de,companies:h,tags:S,onSave:de?G:N,onCancel:()=>{ue(!1),ve(null)}}),me&&d.jsx(WE,{company:he,onSave:he?te:ee,onCancel:()=>{ge(!1),ye(null)}}),w&&d.jsx("div",{className:`fixed bottom-6 right-6 z-50 rounded-lg border px-4 py-3 text-sm shadow-lg ${w.type==="success"?"border-green-200 bg-green-50 text-green-800 dark:border-green-900 dark:bg-green-950 dark:text-green-200":"border-red-200 bg-red-50 text-red-800 dark:border-red-900 dark:bg-red-950 dark:text-red-200"}`,children:w.message})]})}bb.createRoot(document.getElementById("root")).render(d.jsx(x.StrictMode,{children:d.jsx(xb,{defaultTheme:"light",storageKey:"contacts-dashboard-theme",children:d.jsx(mC,{})})}));