@cursor/bdk 0.2.16 → 0.2.18

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 (221) hide show
  1. package/README.md +2 -2
  2. package/dist/bin/agent-serve.js +7 -0
  3. package/dist/channels/runs/index.d.ts +4 -0
  4. package/dist/channels/runs/index.d.ts.map +1 -0
  5. package/dist/channels/runs/index.js +2 -0
  6. package/dist/channels/runs/runs-channel.d.ts +5 -0
  7. package/dist/channels/runs/runs-channel.d.ts.map +1 -0
  8. package/dist/channels/runs/runs-channel.js +34 -0
  9. package/dist/channels/runs/types.d.ts +34 -0
  10. package/dist/channels/runs/types.d.ts.map +1 -0
  11. package/dist/channels/runs/types.js +1 -0
  12. package/dist/channels/slack/agentic-delivery.js +4 -4
  13. package/dist/channels/slack/api.d.ts.map +1 -1
  14. package/dist/channels/slack/api.js +7 -4
  15. package/dist/channels/slack/channel-watch.d.ts +2 -0
  16. package/dist/channels/slack/channel-watch.d.ts.map +1 -1
  17. package/dist/channels/slack/channel-watch.js +7 -3
  18. package/dist/channels/slack/dispatch.d.ts +3 -0
  19. package/dist/channels/slack/dispatch.d.ts.map +1 -1
  20. package/dist/channels/slack/dispatch.js +6 -2
  21. package/dist/channels/slack/thread-context.d.ts.map +1 -1
  22. package/dist/channels/slack/thread-context.js +58 -26
  23. package/dist/channels/slack/types.d.ts +19 -0
  24. package/dist/channels/slack/types.d.ts.map +1 -1
  25. package/dist/docs/404.html +3 -3
  26. package/dist/docs/assets/{app.BSrZkTHD.js → app.CJ-XZTK5.js} +4 -4
  27. package/dist/docs/assets/{building-with-agents.md.Bi9CQ-bR.js → building-with-agents.md.FZXrY8Nk.js} +1 -1
  28. package/dist/docs/assets/chunks/@localSearchIndexroot.ylB4B_Ud.js +1 -0
  29. package/dist/docs/assets/chunks/{VPLocalSearchBox.BxmgcwIX.js → VPLocalSearchBox.CpbYgURZ.js} +1 -1
  30. package/dist/docs/assets/chunks/{arc.CAid9y9R.js → arc.B081PemO.js} +1 -1
  31. package/dist/docs/assets/chunks/{architectureDiagram-Q4EWVU46.kLxg-1A5.js → architectureDiagram-Q4EWVU46.DPaT_hi-.js} +1 -1
  32. package/dist/docs/assets/chunks/{baseUniq.BWvpjFlO.js → baseUniq.Buu61NLg.js} +1 -1
  33. package/dist/docs/assets/chunks/{blockDiagram-DXYQGD6D.DyjX8R7M.js → blockDiagram-DXYQGD6D.C6t63owh.js} +1 -1
  34. package/dist/docs/assets/chunks/{c4Diagram-AHTNJAMY.DBdWlnqr.js → c4Diagram-AHTNJAMY.BtKabdXR.js} +1 -1
  35. package/dist/docs/assets/chunks/channel.BgjgeSqp.js +1 -0
  36. package/dist/docs/assets/chunks/{chunk-4BX2VUAB.T5enPS2D.js → chunk-4BX2VUAB.DQpNaR8N.js} +1 -1
  37. package/dist/docs/assets/chunks/{chunk-4TB4RGXK.D6zswRAS.js → chunk-4TB4RGXK.DrhL-6Rv.js} +1 -1
  38. package/dist/docs/assets/chunks/{chunk-55IACEB6.Bh05N-a3.js → chunk-55IACEB6.DRLIBfNR.js} +1 -1
  39. package/dist/docs/assets/chunks/{chunk-EDXVE4YY.DZv_O-d9.js → chunk-EDXVE4YY.kuUuFkIg.js} +1 -1
  40. package/dist/docs/assets/chunks/{chunk-FMBD7UC4.BY53CZaL.js → chunk-FMBD7UC4.BlrVxprw.js} +1 -1
  41. package/dist/docs/assets/chunks/{chunk-OYMX7WX6.CO5lI2PE.js → chunk-OYMX7WX6.CZCfYeQA.js} +1 -1
  42. package/dist/docs/assets/chunks/{chunk-QZHKN3VN.DMfpW0s4.js → chunk-QZHKN3VN.C7rwVEMV.js} +1 -1
  43. package/dist/docs/assets/chunks/{chunk-YZCP3GAM.COPT56Nr.js → chunk-YZCP3GAM.CGseJtT_.js} +1 -1
  44. package/dist/docs/assets/chunks/classDiagram-6PBFFD2Q.CIVv63wE.js +1 -0
  45. package/dist/docs/assets/chunks/classDiagram-v2-HSJHXN6E.CIVv63wE.js +1 -0
  46. package/dist/docs/assets/chunks/clone.HcW7h-70.js +1 -0
  47. package/dist/docs/assets/chunks/{cose-bilkent-S5V4N54A.BJSj7zzd.js → cose-bilkent-S5V4N54A.BWlczAK4.js} +1 -1
  48. package/dist/docs/assets/chunks/{dagre-KV5264BT.DDv7IQZT.js → dagre-KV5264BT.Cw0tT0bB.js} +1 -1
  49. package/dist/docs/assets/chunks/{diagram-5BDNPKRD.BUoE9HFH.js → diagram-5BDNPKRD.Cm96ah9V.js} +1 -1
  50. package/dist/docs/assets/chunks/{diagram-G4DWMVQ6.BF3JtrnJ.js → diagram-G4DWMVQ6.Cl0AoWYM.js} +1 -1
  51. package/dist/docs/assets/chunks/{diagram-MMDJMWI5.BvuCWc4e.js → diagram-MMDJMWI5.Bp7mlzKs.js} +1 -1
  52. package/dist/docs/assets/chunks/{diagram-TYMM5635._EqUGqFN.js → diagram-TYMM5635.ClVeqpcW.js} +1 -1
  53. package/dist/docs/assets/chunks/{erDiagram-SMLLAGMA.DxNvSdzj.js → erDiagram-SMLLAGMA.Bi8dojF9.js} +1 -1
  54. package/dist/docs/assets/chunks/{flowDiagram-DWJPFMVM.DVtRP546.js → flowDiagram-DWJPFMVM.Bb4urpfG.js} +1 -1
  55. package/dist/docs/assets/chunks/{ganttDiagram-T4ZO3ILL.Bn9vb7xI.js → ganttDiagram-T4ZO3ILL.whR4wFze.js} +1 -1
  56. package/dist/docs/assets/chunks/{gitGraphDiagram-UUTBAWPF.45r6n737.js → gitGraphDiagram-UUTBAWPF.6oVMi6-3.js} +1 -1
  57. package/dist/docs/assets/chunks/{graph.BOkX3Ws_.js → graph.D8AJDOFK.js} +1 -1
  58. package/dist/docs/assets/chunks/{infoDiagram-42DDH7IO.DyBCcxOm.js → infoDiagram-42DDH7IO.nTpsf5Vk.js} +1 -1
  59. package/dist/docs/assets/chunks/{ishikawaDiagram-UXIWVN3A.kg0ywDlx.js → ishikawaDiagram-UXIWVN3A.DhYDOwyB.js} +1 -1
  60. package/dist/docs/assets/chunks/{journeyDiagram-VCZTEJTY.BUfrLnXA.js → journeyDiagram-VCZTEJTY.Bg7Rudw3.js} +1 -1
  61. package/dist/docs/assets/chunks/{kanban-definition-6JOO6SKY.Bn7X35b2.js → kanban-definition-6JOO6SKY.D80D_ZAR.js} +1 -1
  62. package/dist/docs/assets/chunks/{layout.B0QW6d8M.js → layout.e9hmuC-K.js} +1 -1
  63. package/dist/docs/assets/chunks/{linear.C59eCF0D.js → linear.D6hEyqVB.js} +1 -1
  64. package/dist/docs/assets/chunks/{min.BnDl0p08.js → min.BPAdvB9D.js} +1 -1
  65. package/dist/docs/assets/chunks/{mindmap-definition-QFDTVHPH.u2HYLooo.js → mindmap-definition-QFDTVHPH.tm2Sov2Q.js} +1 -1
  66. package/dist/docs/assets/chunks/{pieDiagram-DEJITSTG.CbnIrr9l.js → pieDiagram-DEJITSTG.BKHZ497m.js} +1 -1
  67. package/dist/docs/assets/chunks/{quadrantDiagram-34T5L4WZ.D2zWIixq.js → quadrantDiagram-34T5L4WZ.CPj7gSp6.js} +1 -1
  68. package/dist/docs/assets/chunks/{requirementDiagram-MS252O5E.DvOFa3oO.js → requirementDiagram-MS252O5E._U68yVUd.js} +1 -1
  69. package/dist/docs/assets/chunks/{sankeyDiagram-XADWPNL6.BfKCkH3x.js → sankeyDiagram-XADWPNL6._6jrIQPb.js} +1 -1
  70. package/dist/docs/assets/chunks/{sequenceDiagram-FGHM5R23.CUPKdYN0.js → sequenceDiagram-FGHM5R23.D9UlmB6F.js} +1 -1
  71. package/dist/docs/assets/chunks/{stateDiagram-FHFEXIEX.CimDCRiK.js → stateDiagram-FHFEXIEX.BQSaiJCe.js} +1 -1
  72. package/dist/docs/assets/chunks/stateDiagram-v2-QKLJ7IA2.B5d7jT7E.js +1 -0
  73. package/dist/docs/assets/chunks/{theme.CKht7z82.js → theme.25ZC61Iy.js} +2 -2
  74. package/dist/docs/assets/chunks/{timeline-definition-GMOUNBTQ.BFTd5qKs.js → timeline-definition-GMOUNBTQ.d-17NZ3L.js} +1 -1
  75. package/dist/docs/assets/chunks/{vennDiagram-DHZGUBPP.N6t5MmCb.js → vennDiagram-DHZGUBPP.DE9AGEjG.js} +1 -1
  76. package/dist/docs/assets/chunks/{wardley-RL74JXVD.D2G6Zyds.js → wardley-RL74JXVD.BcY0KddE.js} +1 -1
  77. package/dist/docs/assets/chunks/{wardleyDiagram-NUSXRM2D.BqScALbL.js → wardleyDiagram-NUSXRM2D.D9SDNipV.js} +1 -1
  78. package/dist/docs/assets/chunks/{xychartDiagram-5P7HB3ND.Br0WiDkT.js → xychartDiagram-5P7HB3ND.DM1sIMf8.js} +1 -1
  79. package/dist/docs/assets/{deployment.md.hKKN9I4c.js → deployment.md.ajc3VM0m.js} +1 -1
  80. package/dist/docs/assets/{guides_migrate.md.sCAvvlC6.js → guides_migrate.md.DZBL7dqT.js} +1 -1
  81. package/dist/docs/assets/index.md.CHAFTf6m.js +27 -0
  82. package/dist/docs/assets/index.md.CHAFTf6m.lean.js +1 -0
  83. package/dist/docs/assets/{quickstart.md.CduLGBAB.js → quickstart.md.D8JDfkKO.js} +1 -1
  84. package/dist/docs/assets/{reference_cli.md.2d2Y0O-d.js → reference_cli.md.Bt3sAfat.js} +1 -1
  85. package/dist/docs/assets/{reference_http-api.md.CrqhTv6S.js → reference_http-api.md.Dji-DD_Z.js} +1 -1
  86. package/dist/docs/assets/{reference_project-layout.md.C2JMRh7p.js → reference_project-layout.md.SNzIvnmC.js} +1 -1
  87. package/dist/docs/assets/{reference_skills.md.C2GWh7g8.js → reference_skills.md.Ckddg6KX.js} +3 -3
  88. package/dist/docs/building-with-agents.html +37 -37
  89. package/dist/docs/building-with-agents.md +4 -4
  90. package/dist/docs/deployment.html +37 -37
  91. package/dist/docs/deployment.md +3 -4
  92. package/dist/docs/evals.html +36 -36
  93. package/dist/docs/guides/agent-to-agent.html +36 -36
  94. package/dist/docs/guides/bitbucket.html +36 -36
  95. package/dist/docs/guides/cloud-agents.html +36 -36
  96. package/dist/docs/guides/convert-automation.html +36 -36
  97. package/dist/docs/guides/github.html +36 -36
  98. package/dist/docs/guides/gitlab.html +36 -36
  99. package/dist/docs/guides/grokbot-agents.html +36 -36
  100. package/dist/docs/guides/hooks.html +36 -36
  101. package/dist/docs/guides/improve.html +36 -36
  102. package/dist/docs/guides/jev.html +36 -36
  103. package/dist/docs/guides/mcp-oauth.html +36 -36
  104. package/dist/docs/guides/migrate.html +37 -37
  105. package/dist/docs/guides/migrate.md +3 -3
  106. package/dist/docs/guides/opentelemetry.html +36 -36
  107. package/dist/docs/guides/slack.html +36 -36
  108. package/dist/docs/guides/webhooks.html +36 -36
  109. package/dist/docs/hashmap.json +1 -1
  110. package/dist/docs/hillclimbing.html +36 -36
  111. package/dist/docs/index.html +38 -38
  112. package/dist/docs/index.md +2 -2
  113. package/dist/docs/llms-full.txt +23 -25
  114. package/dist/docs/llms.txt +2 -2
  115. package/dist/docs/quickstart.html +37 -37
  116. package/dist/docs/quickstart.md +3 -3
  117. package/dist/docs/reference/agent-config.html +36 -36
  118. package/dist/docs/reference/artifacts.html +36 -36
  119. package/dist/docs/reference/channels.html +36 -36
  120. package/dist/docs/reference/cli.html +37 -37
  121. package/dist/docs/reference/cli.md +1 -1
  122. package/dist/docs/reference/connections.html +36 -36
  123. package/dist/docs/reference/evals.html +36 -36
  124. package/dist/docs/reference/extensions.html +36 -36
  125. package/dist/docs/reference/hooks.html +36 -36
  126. package/dist/docs/reference/http-api.html +37 -37
  127. package/dist/docs/reference/http-api.md +4 -4
  128. package/dist/docs/reference/instructions.html +36 -36
  129. package/dist/docs/reference/playground.html +36 -36
  130. package/dist/docs/reference/project-layout.html +37 -37
  131. package/dist/docs/reference/project-layout.md +2 -3
  132. package/dist/docs/reference/prompt.html +36 -36
  133. package/dist/docs/reference/schedules.html +36 -36
  134. package/dist/docs/reference/sessions.html +36 -36
  135. package/dist/docs/reference/skills.html +39 -39
  136. package/dist/docs/reference/subagents.html +36 -36
  137. package/dist/docs/reference/tools.html +36 -36
  138. package/dist/docs/templates/agentic-owners.html +36 -36
  139. package/dist/docs/templates/grokbot-agents.html +36 -36
  140. package/dist/docs/templates/security-reviewer.html +36 -36
  141. package/dist/docs/templates/thermo-quality-review.html +36 -36
  142. package/dist/docs/templates/thermo-review.html +36 -36
  143. package/dist/docs/templates/triage.html +36 -36
  144. package/dist/docs/troubleshooting.html +36 -36
  145. package/dist/internal/cli-deploy.d.ts.map +1 -1
  146. package/dist/internal/cli-deploy.js +0 -14
  147. package/dist/internal/cloud-turn-cost.js +2 -2
  148. package/dist/internal/continuation-channel.d.ts.map +1 -1
  149. package/dist/internal/continuation-channel.js +6 -0
  150. package/dist/internal/continuation-identity.d.ts +6 -3
  151. package/dist/internal/continuation-identity.d.ts.map +1 -1
  152. package/dist/internal/continuation-identity.js +43 -0
  153. package/dist/internal/deploy-manifest.d.ts +6 -0
  154. package/dist/internal/deploy-manifest.d.ts.map +1 -1
  155. package/dist/internal/deploy-manifest.js +3 -0
  156. package/dist/internal/http-channel.d.ts.map +1 -1
  157. package/dist/internal/http-channel.js +20 -1
  158. package/dist/internal/http-control-plane-session.d.ts +5 -2
  159. package/dist/internal/http-control-plane-session.d.ts.map +1 -1
  160. package/dist/internal/http-control-plane-session.js +38 -2
  161. package/dist/internal/init-scaffold.js +1 -1
  162. package/dist/internal/model-config.d.ts +7 -0
  163. package/dist/internal/model-config.d.ts.map +1 -0
  164. package/dist/internal/model-config.js +67 -0
  165. package/dist/internal/peer-connections.d.ts +18 -3
  166. package/dist/internal/peer-connections.d.ts.map +1 -1
  167. package/dist/internal/peer-connections.js +46 -6
  168. package/dist/internal/request-error-status.d.ts.map +1 -1
  169. package/dist/internal/request-error-status.js +4 -1
  170. package/dist/internal/resolved-connections.d.ts +4 -1
  171. package/dist/internal/resolved-connections.d.ts.map +1 -1
  172. package/dist/internal/resolved-connections.js +9 -4
  173. package/dist/internal/sdk-runner.d.ts.map +1 -1
  174. package/dist/internal/sdk-runner.js +11 -1
  175. package/dist/internal/server.d.ts.map +1 -1
  176. package/dist/internal/server.js +2 -1
  177. package/dist/internal/session-engine.d.ts +3 -1
  178. package/dist/internal/session-engine.d.ts.map +1 -1
  179. package/dist/internal/session-engine.js +74 -19
  180. package/dist/internal/storage-coordinator.d.ts +9 -9
  181. package/dist/internal/storage-coordinator.d.ts.map +1 -1
  182. package/dist/internal/storage-coordinator.js +116 -36
  183. package/dist/internal/testing/factory-resource-fixtures.d.ts +16 -0
  184. package/dist/internal/testing/factory-resource-fixtures.d.ts.map +1 -1
  185. package/dist/internal/testing/factory-resource-fixtures.js +14 -0
  186. package/dist/internal/turn-cost.d.ts +1 -1
  187. package/dist/internal/turn-cost.d.ts.map +1 -1
  188. package/dist/internal/turn-cost.js +8 -8
  189. package/dist/playground/assets/cursor-icons-16-DBmD_cqy.woff2 +0 -0
  190. package/dist/playground/assets/index-BDPd0Sec.css +1 -0
  191. package/dist/playground/assets/{index-U3TRnwAP.js → index-BrXDwbrN.js} +1 -1
  192. package/dist/playground/index.html +2 -2
  193. package/dist/types.d.ts +44 -0
  194. package/dist/types.d.ts.map +1 -1
  195. package/docs/README.md +4 -4
  196. package/docs/building-with-agents.md +4 -4
  197. package/docs/deployment.md +3 -4
  198. package/docs/guides/migrate.md +3 -3
  199. package/docs/quickstart.md +3 -3
  200. package/docs/reference/cli.md +1 -1
  201. package/docs/reference/http-api.md +4 -4
  202. package/docs/reference/project-layout.md +2 -3
  203. package/package.json +10 -3
  204. package/dist/docs/assets/chunks/@localSearchIndexroot.JUnN1Be1.js +0 -1
  205. package/dist/docs/assets/chunks/channel.CWc3NN9g.js +0 -1
  206. package/dist/docs/assets/chunks/classDiagram-6PBFFD2Q.D5a745iS.js +0 -1
  207. package/dist/docs/assets/chunks/classDiagram-v2-HSJHXN6E.D5a745iS.js +0 -1
  208. package/dist/docs/assets/chunks/clone.CCGVqN_B.js +0 -1
  209. package/dist/docs/assets/chunks/stateDiagram-v2-QKLJ7IA2.ClNUVSTQ.js +0 -1
  210. package/dist/docs/assets/index.md.BIBHIQtU.js +0 -27
  211. package/dist/docs/assets/index.md.BIBHIQtU.lean.js +0 -1
  212. package/dist/playground/assets/cursor-icons-16-4RnoYH3n.woff2 +0 -0
  213. package/dist/playground/assets/index-7fVUOA5l.css +0 -1
  214. /package/dist/docs/assets/{building-with-agents.md.Bi9CQ-bR.lean.js → building-with-agents.md.FZXrY8Nk.lean.js} +0 -0
  215. /package/dist/docs/assets/{deployment.md.hKKN9I4c.lean.js → deployment.md.ajc3VM0m.lean.js} +0 -0
  216. /package/dist/docs/assets/{guides_migrate.md.sCAvvlC6.lean.js → guides_migrate.md.DZBL7dqT.lean.js} +0 -0
  217. /package/dist/docs/assets/{quickstart.md.CduLGBAB.lean.js → quickstart.md.D8JDfkKO.lean.js} +0 -0
  218. /package/dist/docs/assets/{reference_cli.md.2d2Y0O-d.lean.js → reference_cli.md.Bt3sAfat.lean.js} +0 -0
  219. /package/dist/docs/assets/{reference_http-api.md.CrqhTv6S.lean.js → reference_http-api.md.Dji-DD_Z.lean.js} +0 -0
  220. /package/dist/docs/assets/{reference_project-layout.md.C2JMRh7p.lean.js → reference_project-layout.md.SNzIvnmC.lean.js} +0 -0
  221. /package/dist/docs/assets/{reference_skills.md.C2GWh7g8.lean.js → reference_skills.md.Ckddg6KX.lean.js} +0 -0
@@ -6,7 +6,7 @@ function zj(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&
6
6
  `+J[p].replace(" at new "," at ");return i.displayName&&Te.includes("<anonymous>")&&(Te=Te.replace("<anonymous>",i.displayName)),Te}while(1<=p&&0<=x);break}}}finally{Ae=!1,Error.prepareStackTrace=u}return(u=i?i.displayName||i.name:"")?Se(u):""}function xe(i,o){switch(i.tag){case 26:case 27:case 5:return Se(i.type);case 16:return Se("Lazy");case 13:return i.child!==o&&o!==null?Se("Suspense Fallback"):Se("Suspense");case 19:return Se("SuspenseList");case 0:case 15:return ke(i.type,!1);case 11:return ke(i.type.render,!1);case 1:return ke(i.type,!0);case 31:return Se("Activity");default:return""}}function Re(i){try{var o="",u=null;do o+=xe(i,u),u=i,i=i.return;while(i);return o}catch(p){return`
7
7
  Error generating stack: `+p.message+`
8
8
  `+p.stack}}var Me=Object.prototype.hasOwnProperty,ze=e.unstable_scheduleCallback,Fe=e.unstable_cancelCallback,ye=e.unstable_shouldYield,_e=e.unstable_requestPaint,ee=e.unstable_now,fe=e.unstable_getCurrentPriorityLevel,Q=e.unstable_ImmediatePriority,re=e.unstable_UserBlockingPriority,we=e.unstable_NormalPriority,Pe=e.unstable_LowPriority,Ye=e.unstable_IdlePriority,Ze=e.log,bt=e.unstable_setDisableYieldValue,Je=null,xt=null;function St(i){if(typeof Ze=="function"&&bt(i),xt&&typeof xt.setStrictMode=="function")try{xt.setStrictMode(Je,i)}catch{}}var nt=Math.clz32?Math.clz32:it,rt=Math.log,ct=Math.LN2;function it(i){return i>>>=0,i===0?32:31-(rt(i)/ct|0)|0}var ft=256,Lt=262144,Pt=4194304;function At(i){var o=i&42;if(o!==0)return o;switch(i&-i){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 i&261888;case 262144:case 524288:case 1048576:case 2097152:return i&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return i&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return i}}function Z(i,o,u){var p=i.pendingLanes;if(p===0)return 0;var x=0,w=i.suspendedLanes,I=i.pingedLanes;i=i.warmLanes;var G=p&134217727;return G!==0?(p=G&~w,p!==0?x=At(p):(I&=G,I!==0?x=At(I):u||(u=G&~i,u!==0&&(x=At(u))))):(G=p&~w,G!==0?x=At(G):I!==0?x=At(I):u||(u=p&~i,u!==0&&(x=At(u)))),x===0?0:o!==0&&o!==x&&(o&w)===0&&(w=x&-x,u=o&-o,w>=u||w===32&&(u&4194048)!==0)?o:x}function me(i,o){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&o)===0}function Le(i,o){switch(i){case 1:case 2:case 4:case 8:case 64:return o+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 o+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 Xe(){var i=Pt;return Pt<<=1,(Pt&62914560)===0&&(Pt=4194304),i}function Ct(i){for(var o=[],u=0;31>u;u++)o.push(i);return o}function lt(i,o){i.pendingLanes|=o,o!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function He(i,o,u,p,x,w){var I=i.pendingLanes;i.pendingLanes=u,i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0,i.expiredLanes&=u,i.entangledLanes&=u,i.errorRecoveryDisabledLanes&=u,i.shellSuspendCounter=0;var G=i.entanglements,J=i.expirationTimes,pe=i.hiddenUpdates;for(u=I&~u;0<u;){var Te=31-nt(u),Oe=1<<Te;G[Te]=0,J[Te]=-1;var he=pe[Te];if(he!==null)for(pe[Te]=null,Te=0;Te<he.length;Te++){var ve=he[Te];ve!==null&&(ve.lane&=-536870913)}u&=~Oe}p!==0&&qe(i,p,0),w!==0&&x===0&&i.tag!==0&&(i.suspendedLanes|=w&~(I&~o))}function qe(i,o,u){i.pendingLanes|=o,i.suspendedLanes&=~o;var p=31-nt(o);i.entangledLanes|=o,i.entanglements[p]=i.entanglements[p]|1073741824|u&261930}function De(i,o){var u=i.entangledLanes|=o;for(i=i.entanglements;u;){var p=31-nt(u),x=1<<p;x&o|i[p]&o&&(i[p]|=o),u&=~x}}function je(i,o){var u=o&-o;return u=(u&42)!==0?1:Ie(u),(u&(i.suspendedLanes|o))!==0?0:u}function Ie(i){switch(i){case 2:i=1;break;case 8:i=4;break;case 32:i=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:i=128;break;case 268435456:i=134217728;break;default:i=0}return i}function We(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}function dt(){var i=K.p;return i!==0?i:(i=window.event,i===void 0?32:lw(i.type))}function Et(i,o){var u=K.p;try{return K.p=i,o()}finally{K.p=u}}var Ne=Math.random().toString(36).slice(2),Tt="__reactFiber$"+Ne,Qt="__reactProps$"+Ne,rn="__reactContainer$"+Ne,_n="__reactEvents$"+Ne,Yn="__reactListeners$"+Ne,Br="__reactHandles$"+Ne,Fn="__reactResources$"+Ne,ri="__reactMarker$"+Ne;function Fr(i){delete i[Tt],delete i[Qt],delete i[_n],delete i[Yn],delete i[Br]}function tr(i){var o=i[Tt];if(o)return o;for(var u=i.parentNode;u;){if(o=u[rn]||u[Tt]){if(u=o.alternate,o.child!==null||u!==null&&u.child!==null)for(i=G1(i);i!==null;){if(u=i[Tt])return u;i=G1(i)}return o}i=u,u=i.parentNode}return null}function Zi(i){if(i=i[Tt]||i[rn]){var o=i.tag;if(o===5||o===6||o===13||o===31||o===26||o===27||o===3)return i}return null}function js(i){var o=i.tag;if(o===5||o===26||o===27||o===6)return i.stateNode;throw Error(r(33))}function zs(i){var o=i[Fn];return o||(o=i[Fn]={hoistableStyles:new Map,hoistableScripts:new Map}),o}function Un(i){i[ri]=!0}var gf=new Set,Io={};function Qi(i,o){$e(i,o),$e(i+"Capture",o)}function $e(i,o){for(Io[i]=o,i=0;i<o.length;i++)gf.add(o[i])}var at=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]*$"),jt={},on={};function Ln(i){return Me.call(on,i)?!0:Me.call(jt,i)?!1:at.test(i)?on[i]=!0:(jt[i]=!0,!1)}function ur(i,o,u){if(Ln(o))if(u===null)i.removeAttribute(o);else{switch(typeof u){case"undefined":case"function":case"symbol":i.removeAttribute(o);return;case"boolean":var p=o.toLowerCase().slice(0,5);if(p!=="data-"&&p!=="aria-"){i.removeAttribute(o);return}}i.setAttribute(o,""+u)}}function Ur(i,o,u){if(u===null)i.removeAttribute(o);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(o);return}i.setAttribute(o,""+u)}}function Rr(i,o,u,p){if(p===null)i.removeAttribute(u);else{switch(typeof p){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(u);return}i.setAttributeNS(o,u,""+p)}}function Sn(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function qr(i){var o=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function bf(i,o,u){var p=Object.getOwnPropertyDescriptor(i.constructor.prototype,o);if(!i.hasOwnProperty(o)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var x=p.get,w=p.set;return Object.defineProperty(i,o,{configurable:!0,get:function(){return x.call(this)},set:function(I){u=""+I,w.call(this,I)}}),Object.defineProperty(i,o,{enumerable:p.enumerable}),{getValue:function(){return u},setValue:function(I){u=""+I},stopTracking:function(){i._valueTracker=null,delete i[o]}}}}function Ta(i){if(!i._valueTracker){var o=qr(i)?"checked":"value";i._valueTracker=bf(i,o,""+i[o])}}function Yl(i){if(!i)return!1;var o=i._valueTracker;if(!o)return!0;var u=o.getValue(),p="";return i&&(p=qr(i)?i.checked?"true":"false":i.value),i=p,i!==u?(o.setValue(i),!0):!1}function Ra(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}var um=/[\n"\\]/g;function Cr(i){return i.replace(um,function(o){return"\\"+o.charCodeAt(0).toString(16)+" "})}function Xl(i,o,u,p,x,w,I,G){i.name="",I!=null&&typeof I!="function"&&typeof I!="symbol"&&typeof I!="boolean"?i.type=I:i.removeAttribute("type"),o!=null?I==="number"?(o===0&&i.value===""||i.value!=o)&&(i.value=""+Sn(o)):i.value!==""+Sn(o)&&(i.value=""+Sn(o)):I!=="submit"&&I!=="reset"||i.removeAttribute("value"),o!=null?Ca(i,I,Sn(o)):u!=null?Ca(i,I,Sn(u)):p!=null&&i.removeAttribute("value"),x==null&&w!=null&&(i.defaultChecked=!!w),x!=null&&(i.checked=x&&typeof x!="function"&&typeof x!="symbol"),G!=null&&typeof G!="function"&&typeof G!="symbol"&&typeof G!="boolean"?i.name=""+Sn(G):i.removeAttribute("name")}function Mo(i,o,u,p,x,w,I,G){if(w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"&&(i.type=w),o!=null||u!=null){if(!(w!=="submit"&&w!=="reset"||o!=null)){Ta(i);return}u=u!=null?""+Sn(u):"",o=o!=null?""+Sn(o):u,G||o===i.value||(i.value=o),i.defaultValue=o}p=p??x,p=typeof p!="function"&&typeof p!="symbol"&&!!p,i.checked=G?i.checked:!!p,i.defaultChecked=!!p,I!=null&&typeof I!="function"&&typeof I!="symbol"&&typeof I!="boolean"&&(i.name=I),Ta(i)}function Ca(i,o,u){o==="number"&&Ra(i.ownerDocument)===i||i.defaultValue===""+u||(i.defaultValue=""+u)}function nr(i,o,u,p){if(i=i.options,o){o={};for(var x=0;x<u.length;x++)o["$"+u[x]]=!0;for(u=0;u<i.length;u++)x=o.hasOwnProperty("$"+i[u].value),i[u].selected!==x&&(i[u].selected=x),x&&p&&(i[u].defaultSelected=!0)}else{for(u=""+Sn(u),o=null,x=0;x<i.length;x++){if(i[x].value===u){i[x].selected=!0,p&&(i[x].defaultSelected=!0);return}o!==null||i[x].disabled||(o=i[x])}o!==null&&(o.selected=!0)}}function yf(i,o,u){if(o!=null&&(o=""+Sn(o),o!==i.value&&(i.value=o),u==null)){i.defaultValue!==o&&(i.defaultValue=o);return}i.defaultValue=u!=null?""+Sn(u):""}function _a(i,o,u,p){if(o==null){if(p!=null){if(u!=null)throw Error(r(92));if(U(p)){if(1<p.length)throw Error(r(93));p=p[0]}u=p}u==null&&(u=""),o=u}u=Sn(o),i.defaultValue=u,p=i.textContent,p===u&&p!==""&&p!==null&&(i.value=p),Ta(i)}function wt(i,o){if(o){var u=i.firstChild;if(u&&u===i.lastChild&&u.nodeType===3){u.nodeValue=o;return}}i.textContent=o}var vf=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 qn(i,o,u){var p=o.indexOf("--")===0;u==null||typeof u=="boolean"||u===""?p?i.setProperty(o,""):o==="float"?i.cssFloat="":i[o]="":p?i.setProperty(o,u):typeof u!="number"||u===0||vf.has(o)?o==="float"?i.cssFloat=u:i[o]=(""+u).trim():i[o]=u+"px"}function an(i,o,u){if(o!=null&&typeof o!="object")throw Error(r(62));if(i=i.style,u!=null){for(var p in u)!u.hasOwnProperty(p)||o!=null&&o.hasOwnProperty(p)||(p.indexOf("--")===0?i.setProperty(p,""):p==="float"?i.cssFloat="":i[p]="");for(var x in o)p=o[x],o.hasOwnProperty(x)&&u[x]!==p&&qn(i,x,p)}else for(var w in o)o.hasOwnProperty(w)&&qn(i,w,o[w])}function Ps(i){if(i.indexOf("-")===-1)return!1;switch(i){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 Ji=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"]]),Zl=/^[\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 $s(i){return Zl.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}function Ge(){}var st=null;function Nt(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var Ht=null,An=null;function ii(i){var o=Zi(i);if(o&&(i=o.stateNode)){var u=i[Qt]||null;e:switch(i=o.stateNode,o.type){case"input":if(Xl(i,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),o=u.name,u.type==="radio"&&o!=null){for(u=i;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll('input[name="'+Cr(""+o)+'"][type="radio"]'),o=0;o<u.length;o++){var p=u[o];if(p!==i&&p.form===i.form){var x=p[Qt]||null;if(!x)throw Error(r(90));Xl(p,x.value,x.defaultValue,x.defaultValue,x.checked,x.defaultChecked,x.type,x.name)}}for(o=0;o<u.length;o++)p=u[o],p.form===i.form&&Yl(p)}break e;case"textarea":yf(i,u.value,u.defaultValue);break e;case"select":o=u.value,o!=null&&nr(i,!!u.multiple,o,!1)}}}var Ql=!1;function xf(i,o,u){if(Ql)return i(o,u);Ql=!0;try{var p=i(o);return p}finally{if(Ql=!1,(Ht!==null||An!==null)&&(ad(),Ht&&(o=Ht,i=An,An=Ht=null,ii(o),i)))for(o=0;o<i.length;o++)ii(i[o])}}function Jl(i,o){var u=i.stateNode;if(u===null)return null;var p=u[Qt]||null;if(p===null)return null;u=p[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(p=!p.disabled)||(i=i.type,p=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!p;break e;default:i=!1}if(i)return null;if(u&&typeof u!="function")throw Error(r(231,o,typeof u));return u}var es=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),cm=!1;if(es)try{var eu={};Object.defineProperty(eu,"passive",{get:function(){cm=!0}}),window.addEventListener("test",eu,eu),window.removeEventListener("test",eu,eu)}catch{cm=!1}var Bs=null,fm=null,kf=null;function $0(){if(kf)return kf;var i,o=fm,u=o.length,p,x="value"in Bs?Bs.value:Bs.textContent,w=x.length;for(i=0;i<u&&o[i]===x[i];i++);var I=u-i;for(p=1;p<=I&&o[u-p]===x[w-p];p++);return kf=x.slice(i,1<p?1-p:void 0)}function Sf(i){var o=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&o===13&&(i=13)):i=o,i===10&&(i=13),32<=i||i===13?i:0}function wf(){return!0}function B0(){return!1}function _r(i){function o(u,p,x,w,I){this._reactName=u,this._targetInst=x,this.type=p,this.nativeEvent=w,this.target=I,this.currentTarget=null;for(var G in i)i.hasOwnProperty(G)&&(u=i[G],this[G]=u?u(w):w[G]);return this.isDefaultPrevented=(w.defaultPrevented!=null?w.defaultPrevented:w.returnValue===!1)?wf:B0,this.isPropagationStopped=B0,this}return m(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=wf)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=wf)},persist:function(){},isPersistent:wf}),o}var Do={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ef=_r(Do),tu=m({},Do,{view:0,detail:0}),L2=_r(tu),dm,pm,nu,Tf=m({},tu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:mm,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==nu&&(nu&&i.type==="mousemove"?(dm=i.screenX-nu.screenX,pm=i.screenY-nu.screenY):pm=dm=0,nu=i),dm)},movementY:function(i){return"movementY"in i?i.movementY:pm}}),F0=_r(Tf),j2=m({},Tf,{dataTransfer:0}),z2=_r(j2),P2=m({},tu,{relatedTarget:0}),hm=_r(P2),$2=m({},Do,{animationName:0,elapsedTime:0,pseudoElement:0}),B2=_r($2),F2=m({},Do,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),U2=_r(F2),q2=m({},Do,{data:0}),U0=_r(q2),H2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},V2={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"},G2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function W2(i){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(i):(i=G2[i])?!!o[i]:!1}function mm(){return W2}var K2=m({},tu,{key:function(i){if(i.key){var o=H2[i.key]||i.key;if(o!=="Unidentified")return o}return i.type==="keypress"?(i=Sf(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?V2[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:mm,charCode:function(i){return i.type==="keypress"?Sf(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?Sf(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),Y2=_r(K2),X2=m({},Tf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),q0=_r(X2),Z2=m({},tu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:mm}),Q2=_r(Z2),J2=m({},Do,{propertyName:0,elapsedTime:0,pseudoElement:0}),eL=_r(J2),tL=m({},Tf,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),nL=_r(tL),rL=m({},Do,{newState:0,oldState:0}),iL=_r(rL),sL=[9,13,27,32],gm=es&&"CompositionEvent"in window,ru=null;es&&"documentMode"in document&&(ru=document.documentMode);var oL=es&&"TextEvent"in window&&!ru,H0=es&&(!gm||ru&&8<ru&&11>=ru),V0=" ",G0=!1;function W0(i,o){switch(i){case"keyup":return sL.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function K0(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var Aa=!1;function aL(i,o){switch(i){case"compositionend":return K0(o);case"keypress":return o.which!==32?null:(G0=!0,V0);case"textInput":return i=o.data,i===V0&&G0?null:i;default:return null}}function lL(i,o){if(Aa)return i==="compositionend"||!gm&&W0(i,o)?(i=$0(),kf=fm=Bs=null,Aa=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return H0&&o.locale!=="ko"?null:o.data;default:return null}}var uL={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 Y0(i){var o=i&&i.nodeName&&i.nodeName.toLowerCase();return o==="input"?!!uL[i.type]:o==="textarea"}function X0(i,o,u,p){Ht?An?An.push(p):An=[p]:Ht=p,o=hd(o,"onChange"),0<o.length&&(u=new Ef("onChange","change",null,u,p),i.push({event:u,listeners:o}))}var iu=null,su=null;function cL(i){I1(i,0)}function Rf(i){var o=js(i);if(Yl(o))return i}function Z0(i,o){if(i==="change")return o}var Q0=!1;if(es){var bm;if(es){var ym="oninput"in document;if(!ym){var J0=document.createElement("div");J0.setAttribute("oninput","return;"),ym=typeof J0.oninput=="function"}bm=ym}else bm=!1;Q0=bm&&(!document.documentMode||9<document.documentMode)}function ek(){iu&&(iu.detachEvent("onpropertychange",tk),su=iu=null)}function tk(i){if(i.propertyName==="value"&&Rf(su)){var o=[];X0(o,su,i,Nt(i)),xf(cL,o)}}function fL(i,o,u){i==="focusin"?(ek(),iu=o,su=u,iu.attachEvent("onpropertychange",tk)):i==="focusout"&&ek()}function dL(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return Rf(su)}function pL(i,o){if(i==="click")return Rf(o)}function hL(i,o){if(i==="input"||i==="change")return Rf(o)}function mL(i,o){return i===o&&(i!==0||1/i===1/o)||i!==i&&o!==o}var Hr=typeof Object.is=="function"?Object.is:mL;function ou(i,o){if(Hr(i,o))return!0;if(typeof i!="object"||i===null||typeof o!="object"||o===null)return!1;var u=Object.keys(i),p=Object.keys(o);if(u.length!==p.length)return!1;for(p=0;p<u.length;p++){var x=u[p];if(!Me.call(o,x)||!Hr(i[x],o[x]))return!1}return!0}function nk(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function rk(i,o){var u=nk(i);i=0;for(var p;u;){if(u.nodeType===3){if(p=i+u.textContent.length,i<=o&&p>=o)return{node:u,offset:o-i};i=p}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=nk(u)}}function ik(i,o){return i&&o?i===o?!0:i&&i.nodeType===3?!1:o&&o.nodeType===3?ik(i,o.parentNode):"contains"in i?i.contains(o):i.compareDocumentPosition?!!(i.compareDocumentPosition(o)&16):!1:!1}function sk(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var o=Ra(i.document);o instanceof i.HTMLIFrameElement;){try{var u=typeof o.contentWindow.location.href=="string"}catch{u=!1}if(u)i=o.contentWindow;else break;o=Ra(i.document)}return o}function vm(i){var o=i&&i.nodeName&&i.nodeName.toLowerCase();return o&&(o==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||o==="textarea"||i.contentEditable==="true")}var gL=es&&"documentMode"in document&&11>=document.documentMode,Na=null,xm=null,au=null,km=!1;function ok(i,o,u){var p=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;km||Na==null||Na!==Ra(p)||(p=Na,"selectionStart"in p&&vm(p)?p={start:p.selectionStart,end:p.selectionEnd}:(p=(p.ownerDocument&&p.ownerDocument.defaultView||window).getSelection(),p={anchorNode:p.anchorNode,anchorOffset:p.anchorOffset,focusNode:p.focusNode,focusOffset:p.focusOffset}),au&&ou(au,p)||(au=p,p=hd(xm,"onSelect"),0<p.length&&(o=new Ef("onSelect","select",null,o,u),i.push({event:o,listeners:p}),o.target=Na)))}function Lo(i,o){var u={};return u[i.toLowerCase()]=o.toLowerCase(),u["Webkit"+i]="webkit"+o,u["Moz"+i]="moz"+o,u}var Oa={animationend:Lo("Animation","AnimationEnd"),animationiteration:Lo("Animation","AnimationIteration"),animationstart:Lo("Animation","AnimationStart"),transitionrun:Lo("Transition","TransitionRun"),transitionstart:Lo("Transition","TransitionStart"),transitioncancel:Lo("Transition","TransitionCancel"),transitionend:Lo("Transition","TransitionEnd")},Sm={},ak={};es&&(ak=document.createElement("div").style,"AnimationEvent"in window||(delete Oa.animationend.animation,delete Oa.animationiteration.animation,delete Oa.animationstart.animation),"TransitionEvent"in window||delete Oa.transitionend.transition);function jo(i){if(Sm[i])return Sm[i];if(!Oa[i])return i;var o=Oa[i],u;for(u in o)if(o.hasOwnProperty(u)&&u in ak)return Sm[i]=o[u];return i}var lk=jo("animationend"),uk=jo("animationiteration"),ck=jo("animationstart"),bL=jo("transitionrun"),yL=jo("transitionstart"),vL=jo("transitioncancel"),fk=jo("transitionend"),dk=new Map,wm="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(" ");wm.push("scrollEnd");function xi(i,o){dk.set(i,o),Qi(o,[i])}var Cf=typeof reportError=="function"?reportError:function(i){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var o=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof i=="object"&&i!==null&&typeof i.message=="string"?String(i.message):String(i),error:i});if(!window.dispatchEvent(o))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",i);return}console.error(i)},si=[],Ia=0,Em=0;function _f(){for(var i=Ia,o=Em=Ia=0;o<i;){var u=si[o];si[o++]=null;var p=si[o];si[o++]=null;var x=si[o];si[o++]=null;var w=si[o];if(si[o++]=null,p!==null&&x!==null){var I=p.pending;I===null?x.next=x:(x.next=I.next,I.next=x),p.pending=x}w!==0&&pk(u,x,w)}}function Af(i,o,u,p){si[Ia++]=i,si[Ia++]=o,si[Ia++]=u,si[Ia++]=p,Em|=p,i.lanes|=p,i=i.alternate,i!==null&&(i.lanes|=p)}function Tm(i,o,u,p){return Af(i,o,u,p),Nf(i)}function zo(i,o){return Af(i,null,null,o),Nf(i)}function pk(i,o,u){i.lanes|=u;var p=i.alternate;p!==null&&(p.lanes|=u);for(var x=!1,w=i.return;w!==null;)w.childLanes|=u,p=w.alternate,p!==null&&(p.childLanes|=u),w.tag===22&&(i=w.stateNode,i===null||i._visibility&1||(x=!0)),i=w,w=w.return;return i.tag===3?(w=i.stateNode,x&&o!==null&&(x=31-nt(u),i=w.hiddenUpdates,p=i[x],p===null?i[x]=[o]:p.push(o),o.lane=u|536870912),w):null}function Nf(i){if(50<Au)throw Au=0,Dg=null,Error(r(185));for(var o=i.return;o!==null;)i=o,o=i.return;return i.tag===3?i.stateNode:null}var Ma={};function xL(i,o,u,p){this.tag=i,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=p,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Vr(i,o,u,p){return new xL(i,o,u,p)}function Rm(i){return i=i.prototype,!(!i||!i.isReactComponent)}function ts(i,o){var u=i.alternate;return u===null?(u=Vr(i.tag,o,i.key,i.mode),u.elementType=i.elementType,u.type=i.type,u.stateNode=i.stateNode,u.alternate=i,i.alternate=u):(u.pendingProps=o,u.type=i.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=i.flags&65011712,u.childLanes=i.childLanes,u.lanes=i.lanes,u.child=i.child,u.memoizedProps=i.memoizedProps,u.memoizedState=i.memoizedState,u.updateQueue=i.updateQueue,o=i.dependencies,u.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},u.sibling=i.sibling,u.index=i.index,u.ref=i.ref,u.refCleanup=i.refCleanup,u}function hk(i,o){i.flags&=65011714;var u=i.alternate;return u===null?(i.childLanes=0,i.lanes=o,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=u.childLanes,i.lanes=u.lanes,i.child=u.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=u.memoizedProps,i.memoizedState=u.memoizedState,i.updateQueue=u.updateQueue,i.type=u.type,o=u.dependencies,i.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext}),i}function Of(i,o,u,p,x,w){var I=0;if(p=i,typeof i=="function")Rm(i)&&(I=1);else if(typeof i=="string")I=Tj(i,u,X.current)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case P:return i=Vr(31,u,o,x),i.elementType=P,i.lanes=w,i;case S:return Po(u.children,x,w,o);case R:I=8,x|=24;break;case T:return i=Vr(12,u,o,x|2),i.elementType=T,i.lanes=w,i;case D:return i=Vr(13,u,o,x),i.elementType=D,i.lanes=w,i;case A:return i=Vr(19,u,o,x),i.elementType=A,i.lanes=w,i;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case C:I=10;break e;case E:I=9;break e;case _:I=11;break e;case M:I=14;break e;case B:I=16,p=null;break e}I=29,u=Error(r(130,i===null?"null":typeof i,"")),p=null}return o=Vr(I,u,o,x),o.elementType=i,o.type=p,o.lanes=w,o}function Po(i,o,u,p){return i=Vr(7,i,p,o),i.lanes=u,i}function Cm(i,o,u){return i=Vr(6,i,null,o),i.lanes=u,i}function mk(i){var o=Vr(18,null,null,0);return o.stateNode=i,o}function _m(i,o,u){return o=Vr(4,i.children!==null?i.children:[],i.key,o),o.lanes=u,o.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},o}var gk=new WeakMap;function oi(i,o){if(typeof i=="object"&&i!==null){var u=gk.get(i);return u!==void 0?u:(o={value:i,source:o,stack:Re(o)},gk.set(i,o),o)}return{value:i,source:o,stack:Re(o)}}var Da=[],La=0,If=null,lu=0,ai=[],li=0,Fs=null,Li=1,ji="";function ns(i,o){Da[La++]=lu,Da[La++]=If,If=i,lu=o}function bk(i,o,u){ai[li++]=Li,ai[li++]=ji,ai[li++]=Fs,Fs=i;var p=Li;i=ji;var x=32-nt(p)-1;p&=~(1<<x),u+=1;var w=32-nt(o)+x;if(30<w){var I=x-x%5;w=(p&(1<<I)-1).toString(32),p>>=I,x-=I,Li=1<<32-nt(o)+x|u<<x|p,ji=w+i}else Li=1<<w|u<<x|p,ji=i}function Am(i){i.return!==null&&(ns(i,1),bk(i,1,0))}function Nm(i){for(;i===If;)If=Da[--La],Da[La]=null,lu=Da[--La],Da[La]=null;for(;i===Fs;)Fs=ai[--li],ai[li]=null,ji=ai[--li],ai[li]=null,Li=ai[--li],ai[li]=null}function yk(i,o){ai[li++]=Li,ai[li++]=ji,ai[li++]=Fs,Li=o.id,ji=o.overflow,Fs=i}var rr=null,Tn=null,Kt=!1,Us=null,ui=!1,Om=Error(r(519));function qs(i){var o=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw uu(oi(o,i)),Om}function vk(i){var o=i.stateNode,u=i.type,p=i.memoizedProps;switch(o[Tt]=i,o[Qt]=p,u){case"dialog":Bt("cancel",o),Bt("close",o);break;case"iframe":case"object":case"embed":Bt("load",o);break;case"video":case"audio":for(u=0;u<Ou.length;u++)Bt(Ou[u],o);break;case"source":Bt("error",o);break;case"img":case"image":case"link":Bt("error",o),Bt("load",o);break;case"details":Bt("toggle",o);break;case"input":Bt("invalid",o),Mo(o,p.value,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name,!0);break;case"select":Bt("invalid",o);break;case"textarea":Bt("invalid",o),_a(o,p.value,p.defaultValue,p.children)}u=p.children,typeof u!="string"&&typeof u!="number"&&typeof u!="bigint"||o.textContent===""+u||p.suppressHydrationWarning===!0||j1(o.textContent,u)?(p.popover!=null&&(Bt("beforetoggle",o),Bt("toggle",o)),p.onScroll!=null&&Bt("scroll",o),p.onScrollEnd!=null&&Bt("scrollend",o),p.onClick!=null&&(o.onclick=Ge),o=!0):o=!1,o||qs(i,!0)}function xk(i){for(rr=i.return;rr;)switch(rr.tag){case 5:case 31:case 13:ui=!1;return;case 27:case 3:ui=!0;return;default:rr=rr.return}}function ja(i){if(i!==rr)return!1;if(!Kt)return xk(i),Kt=!0,!1;var o=i.tag,u;if((u=o!==3&&o!==27)&&((u=o===5)&&(u=i.type,u=!(u!=="form"&&u!=="button")||Yg(i.type,i.memoizedProps)),u=!u),u&&Tn&&qs(i),xk(i),o===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));Tn=V1(i)}else if(o===31){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));Tn=V1(i)}else o===27?(o=Tn,ro(i.type)?(i=eb,eb=null,Tn=i):Tn=o):Tn=rr?fi(i.stateNode.nextSibling):null;return!0}function $o(){Tn=rr=null,Kt=!1}function Im(){var i=Us;return i!==null&&(Ir===null?Ir=i:Ir.push.apply(Ir,i),Us=null),i}function uu(i){Us===null?Us=[i]:Us.push(i)}var Mm=j(null),Bo=null,rs=null;function Hs(i,o,u){L(Mm,o._currentValue),o._currentValue=u}function is(i){i._currentValue=Mm.current,V(Mm)}function Dm(i,o,u){for(;i!==null;){var p=i.alternate;if((i.childLanes&o)!==o?(i.childLanes|=o,p!==null&&(p.childLanes|=o)):p!==null&&(p.childLanes&o)!==o&&(p.childLanes|=o),i===u)break;i=i.return}}function Lm(i,o,u,p){var x=i.child;for(x!==null&&(x.return=i);x!==null;){var w=x.dependencies;if(w!==null){var I=x.child;w=w.firstContext;e:for(;w!==null;){var G=w;w=x;for(var J=0;J<o.length;J++)if(G.context===o[J]){w.lanes|=u,G=w.alternate,G!==null&&(G.lanes|=u),Dm(w.return,u,i),p||(I=null);break e}w=G.next}}else if(x.tag===18){if(I=x.return,I===null)throw Error(r(341));I.lanes|=u,w=I.alternate,w!==null&&(w.lanes|=u),Dm(I,u,i),I=null}else I=x.child;if(I!==null)I.return=x;else for(I=x;I!==null;){if(I===i){I=null;break}if(x=I.sibling,x!==null){x.return=I.return,I=x;break}I=I.return}x=I}}function za(i,o,u,p){i=null;for(var x=o,w=!1;x!==null;){if(!w){if((x.flags&524288)!==0)w=!0;else if((x.flags&262144)!==0)break}if(x.tag===10){var I=x.alternate;if(I===null)throw Error(r(387));if(I=I.memoizedProps,I!==null){var G=x.type;Hr(x.pendingProps.value,I.value)||(i!==null?i.push(G):i=[G])}}else if(x===oe.current){if(I=x.alternate,I===null)throw Error(r(387));I.memoizedState.memoizedState!==x.memoizedState.memoizedState&&(i!==null?i.push(ju):i=[ju])}x=x.return}i!==null&&Lm(o,i,u,p),o.flags|=262144}function Mf(i){for(i=i.firstContext;i!==null;){if(!Hr(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function Fo(i){Bo=i,rs=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function ir(i){return kk(Bo,i)}function Df(i,o){return Bo===null&&Fo(i),kk(i,o)}function kk(i,o){var u=o._currentValue;if(o={context:o,memoizedValue:u,next:null},rs===null){if(i===null)throw Error(r(308));rs=o,i.dependencies={lanes:0,firstContext:o},i.flags|=524288}else rs=rs.next=o;return u}var kL=typeof AbortController<"u"?AbortController:function(){var i=[],o=this.signal={aborted:!1,addEventListener:function(u,p){i.push(p)}};this.abort=function(){o.aborted=!0,i.forEach(function(u){return u()})}},SL=e.unstable_scheduleCallback,wL=e.unstable_NormalPriority,Hn={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function jm(){return{controller:new kL,data:new Map,refCount:0}}function cu(i){i.refCount--,i.refCount===0&&SL(wL,function(){i.controller.abort()})}var fu=null,zm=0,Pa=0,$a=null;function EL(i,o){if(fu===null){var u=fu=[];zm=0,Pa=Bg(),$a={status:"pending",value:void 0,then:function(p){u.push(p)}}}return zm++,o.then(Sk,Sk),o}function Sk(){if(--zm===0&&fu!==null){$a!==null&&($a.status="fulfilled");var i=fu;fu=null,Pa=0,$a=null;for(var o=0;o<i.length;o++)(0,i[o])()}}function TL(i,o){var u=[],p={status:"pending",value:null,reason:null,then:function(x){u.push(x)}};return i.then(function(){p.status="fulfilled",p.value=o;for(var x=0;x<u.length;x++)(0,u[x])(o)},function(x){for(p.status="rejected",p.reason=x,x=0;x<u.length;x++)(0,u[x])(void 0)}),p}var wk=H.S;H.S=function(i,o){o1=ee(),typeof o=="object"&&o!==null&&typeof o.then=="function"&&EL(i,o),wk!==null&&wk(i,o)};var Uo=j(null);function Pm(){var i=Uo.current;return i!==null?i:yn.pooledCache}function Lf(i,o){o===null?L(Uo,Uo.current):L(Uo,o.pool)}function Ek(){var i=Pm();return i===null?null:{parent:Hn._currentValue,pool:i}}var Ba=Error(r(460)),$m=Error(r(474)),jf=Error(r(542)),zf={then:function(){}};function Tk(i){return i=i.status,i==="fulfilled"||i==="rejected"}function Rk(i,o,u){switch(u=i[u],u===void 0?i.push(o):u!==o&&(o.then(Ge,Ge),o=u),o.status){case"fulfilled":return o.value;case"rejected":throw i=o.reason,_k(i),i;default:if(typeof o.status=="string")o.then(Ge,Ge);else{if(i=yn,i!==null&&100<i.shellSuspendCounter)throw Error(r(482));i=o,i.status="pending",i.then(function(p){if(o.status==="pending"){var x=o;x.status="fulfilled",x.value=p}},function(p){if(o.status==="pending"){var x=o;x.status="rejected",x.reason=p}})}switch(o.status){case"fulfilled":return o.value;case"rejected":throw i=o.reason,_k(i),i}throw Ho=o,Ba}}function qo(i){try{var o=i._init;return o(i._payload)}catch(u){throw u!==null&&typeof u=="object"&&typeof u.then=="function"?(Ho=u,Ba):u}}var Ho=null;function Ck(){if(Ho===null)throw Error(r(459));var i=Ho;return Ho=null,i}function _k(i){if(i===Ba||i===jf)throw Error(r(483))}var Fa=null,du=0;function Pf(i){var o=du;return du+=1,Fa===null&&(Fa=[]),Rk(Fa,i,o)}function pu(i,o){o=o.props.ref,i.ref=o!==void 0?o:null}function $f(i,o){throw o.$$typeof===b?Error(r(525)):(i=Object.prototype.toString.call(o),Error(r(31,i==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":i)))}function Ak(i){function o(ae,ie){if(i){var de=ae.deletions;de===null?(ae.deletions=[ie],ae.flags|=16):de.push(ie)}}function u(ae,ie){if(!i)return null;for(;ie!==null;)o(ae,ie),ie=ie.sibling;return null}function p(ae){for(var ie=new Map;ae!==null;)ae.key!==null?ie.set(ae.key,ae):ie.set(ae.index,ae),ae=ae.sibling;return ie}function x(ae,ie){return ae=ts(ae,ie),ae.index=0,ae.sibling=null,ae}function w(ae,ie,de){return ae.index=de,i?(de=ae.alternate,de!==null?(de=de.index,de<ie?(ae.flags|=67108866,ie):de):(ae.flags|=67108866,ie)):(ae.flags|=1048576,ie)}function I(ae){return i&&ae.alternate===null&&(ae.flags|=67108866),ae}function G(ae,ie,de,Ce){return ie===null||ie.tag!==6?(ie=Cm(de,ae.mode,Ce),ie.return=ae,ie):(ie=x(ie,de),ie.return=ae,ie)}function J(ae,ie,de,Ce){var ut=de.type;return ut===S?Te(ae,ie,de.props.children,Ce,de.key):ie!==null&&(ie.elementType===ut||typeof ut=="object"&&ut!==null&&ut.$$typeof===B&&qo(ut)===ie.type)?(ie=x(ie,de.props),pu(ie,de),ie.return=ae,ie):(ie=Of(de.type,de.key,de.props,null,ae.mode,Ce),pu(ie,de),ie.return=ae,ie)}function pe(ae,ie,de,Ce){return ie===null||ie.tag!==4||ie.stateNode.containerInfo!==de.containerInfo||ie.stateNode.implementation!==de.implementation?(ie=_m(de,ae.mode,Ce),ie.return=ae,ie):(ie=x(ie,de.children||[]),ie.return=ae,ie)}function Te(ae,ie,de,Ce,ut){return ie===null||ie.tag!==7?(ie=Po(de,ae.mode,Ce,ut),ie.return=ae,ie):(ie=x(ie,de),ie.return=ae,ie)}function Oe(ae,ie,de){if(typeof ie=="string"&&ie!==""||typeof ie=="number"||typeof ie=="bigint")return ie=Cm(""+ie,ae.mode,de),ie.return=ae,ie;if(typeof ie=="object"&&ie!==null){switch(ie.$$typeof){case y:return de=Of(ie.type,ie.key,ie.props,null,ae.mode,de),pu(de,ie),de.return=ae,de;case k:return ie=_m(ie,ae.mode,de),ie.return=ae,ie;case B:return ie=qo(ie),Oe(ae,ie,de)}if(U(ie)||$(ie))return ie=Po(ie,ae.mode,de,null),ie.return=ae,ie;if(typeof ie.then=="function")return Oe(ae,Pf(ie),de);if(ie.$$typeof===C)return Oe(ae,Df(ae,ie),de);$f(ae,ie)}return null}function he(ae,ie,de,Ce){var ut=ie!==null?ie.key:null;if(typeof de=="string"&&de!==""||typeof de=="number"||typeof de=="bigint")return ut!==null?null:G(ae,ie,""+de,Ce);if(typeof de=="object"&&de!==null){switch(de.$$typeof){case y:return de.key===ut?J(ae,ie,de,Ce):null;case k:return de.key===ut?pe(ae,ie,de,Ce):null;case B:return de=qo(de),he(ae,ie,de,Ce)}if(U(de)||$(de))return ut!==null?null:Te(ae,ie,de,Ce,null);if(typeof de.then=="function")return he(ae,ie,Pf(de),Ce);if(de.$$typeof===C)return he(ae,ie,Df(ae,de),Ce);$f(ae,de)}return null}function ve(ae,ie,de,Ce,ut){if(typeof Ce=="string"&&Ce!==""||typeof Ce=="number"||typeof Ce=="bigint")return ae=ae.get(de)||null,G(ie,ae,""+Ce,ut);if(typeof Ce=="object"&&Ce!==null){switch(Ce.$$typeof){case y:return ae=ae.get(Ce.key===null?de:Ce.key)||null,J(ie,ae,Ce,ut);case k:return ae=ae.get(Ce.key===null?de:Ce.key)||null,pe(ie,ae,Ce,ut);case B:return Ce=qo(Ce),ve(ae,ie,de,Ce,ut)}if(U(Ce)||$(Ce))return ae=ae.get(de)||null,Te(ie,ae,Ce,ut,null);if(typeof Ce.then=="function")return ve(ae,ie,de,Pf(Ce),ut);if(Ce.$$typeof===C)return ve(ae,ie,de,Df(ie,Ce),ut);$f(ie,Ce)}return null}function et(ae,ie,de,Ce){for(var ut=null,Jt=null,ot=ie,It=ie=0,Gt=null;ot!==null&&It<de.length;It++){ot.index>It?(Gt=ot,ot=null):Gt=ot.sibling;var en=he(ae,ot,de[It],Ce);if(en===null){ot===null&&(ot=Gt);break}i&&ot&&en.alternate===null&&o(ae,ot),ie=w(en,ie,It),Jt===null?ut=en:Jt.sibling=en,Jt=en,ot=Gt}if(It===de.length)return u(ae,ot),Kt&&ns(ae,It),ut;if(ot===null){for(;It<de.length;It++)ot=Oe(ae,de[It],Ce),ot!==null&&(ie=w(ot,ie,It),Jt===null?ut=ot:Jt.sibling=ot,Jt=ot);return Kt&&ns(ae,It),ut}for(ot=p(ot);It<de.length;It++)Gt=ve(ot,ae,It,de[It],Ce),Gt!==null&&(i&&Gt.alternate!==null&&ot.delete(Gt.key===null?It:Gt.key),ie=w(Gt,ie,It),Jt===null?ut=Gt:Jt.sibling=Gt,Jt=Gt);return i&&ot.forEach(function(lo){return o(ae,lo)}),Kt&&ns(ae,It),ut}function kt(ae,ie,de,Ce){if(de==null)throw Error(r(151));for(var ut=null,Jt=null,ot=ie,It=ie=0,Gt=null,en=de.next();ot!==null&&!en.done;It++,en=de.next()){ot.index>It?(Gt=ot,ot=null):Gt=ot.sibling;var lo=he(ae,ot,en.value,Ce);if(lo===null){ot===null&&(ot=Gt);break}i&&ot&&lo.alternate===null&&o(ae,ot),ie=w(lo,ie,It),Jt===null?ut=lo:Jt.sibling=lo,Jt=lo,ot=Gt}if(en.done)return u(ae,ot),Kt&&ns(ae,It),ut;if(ot===null){for(;!en.done;It++,en=de.next())en=Oe(ae,en.value,Ce),en!==null&&(ie=w(en,ie,It),Jt===null?ut=en:Jt.sibling=en,Jt=en);return Kt&&ns(ae,It),ut}for(ot=p(ot);!en.done;It++,en=de.next())en=ve(ot,ae,It,en.value,Ce),en!==null&&(i&&en.alternate!==null&&ot.delete(en.key===null?It:en.key),ie=w(en,ie,It),Jt===null?ut=en:Jt.sibling=en,Jt=en);return i&&ot.forEach(function(jj){return o(ae,jj)}),Kt&&ns(ae,It),ut}function dn(ae,ie,de,Ce){if(typeof de=="object"&&de!==null&&de.type===S&&de.key===null&&(de=de.props.children),typeof de=="object"&&de!==null){switch(de.$$typeof){case y:e:{for(var ut=de.key;ie!==null;){if(ie.key===ut){if(ut=de.type,ut===S){if(ie.tag===7){u(ae,ie.sibling),Ce=x(ie,de.props.children),Ce.return=ae,ae=Ce;break e}}else if(ie.elementType===ut||typeof ut=="object"&&ut!==null&&ut.$$typeof===B&&qo(ut)===ie.type){u(ae,ie.sibling),Ce=x(ie,de.props),pu(Ce,de),Ce.return=ae,ae=Ce;break e}u(ae,ie);break}else o(ae,ie);ie=ie.sibling}de.type===S?(Ce=Po(de.props.children,ae.mode,Ce,de.key),Ce.return=ae,ae=Ce):(Ce=Of(de.type,de.key,de.props,null,ae.mode,Ce),pu(Ce,de),Ce.return=ae,ae=Ce)}return I(ae);case k:e:{for(ut=de.key;ie!==null;){if(ie.key===ut)if(ie.tag===4&&ie.stateNode.containerInfo===de.containerInfo&&ie.stateNode.implementation===de.implementation){u(ae,ie.sibling),Ce=x(ie,de.children||[]),Ce.return=ae,ae=Ce;break e}else{u(ae,ie);break}else o(ae,ie);ie=ie.sibling}Ce=_m(de,ae.mode,Ce),Ce.return=ae,ae=Ce}return I(ae);case B:return de=qo(de),dn(ae,ie,de,Ce)}if(U(de))return et(ae,ie,de,Ce);if($(de)){if(ut=$(de),typeof ut!="function")throw Error(r(150));return de=ut.call(de),kt(ae,ie,de,Ce)}if(typeof de.then=="function")return dn(ae,ie,Pf(de),Ce);if(de.$$typeof===C)return dn(ae,ie,Df(ae,de),Ce);$f(ae,de)}return typeof de=="string"&&de!==""||typeof de=="number"||typeof de=="bigint"?(de=""+de,ie!==null&&ie.tag===6?(u(ae,ie.sibling),Ce=x(ie,de),Ce.return=ae,ae=Ce):(u(ae,ie),Ce=Cm(de,ae.mode,Ce),Ce.return=ae,ae=Ce),I(ae)):u(ae,ie)}return function(ae,ie,de,Ce){try{du=0;var ut=dn(ae,ie,de,Ce);return Fa=null,ut}catch(ot){if(ot===Ba||ot===jf)throw ot;var Jt=Vr(29,ot,null,ae.mode);return Jt.lanes=Ce,Jt.return=ae,Jt}}}var Vo=Ak(!0),Nk=Ak(!1),Vs=!1;function Bm(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Fm(i,o){i=i.updateQueue,o.updateQueue===i&&(o.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,callbacks:null})}function Gs(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}function Ws(i,o,u){var p=i.updateQueue;if(p===null)return null;if(p=p.shared,(nn&2)!==0){var x=p.pending;return x===null?o.next=o:(o.next=x.next,x.next=o),p.pending=o,o=Nf(i),pk(i,null,u),o}return Af(i,p,o,u),Nf(i)}function hu(i,o,u){if(o=o.updateQueue,o!==null&&(o=o.shared,(u&4194048)!==0)){var p=o.lanes;p&=i.pendingLanes,u|=p,o.lanes=u,De(i,u)}}function Um(i,o){var u=i.updateQueue,p=i.alternate;if(p!==null&&(p=p.updateQueue,u===p)){var x=null,w=null;if(u=u.firstBaseUpdate,u!==null){do{var I={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};w===null?x=w=I:w=w.next=I,u=u.next}while(u!==null);w===null?x=w=o:w=w.next=o}else x=w=o;u={baseState:p.baseState,firstBaseUpdate:x,lastBaseUpdate:w,shared:p.shared,callbacks:p.callbacks},i.updateQueue=u;return}i=u.lastBaseUpdate,i===null?u.firstBaseUpdate=o:i.next=o,u.lastBaseUpdate=o}var qm=!1;function mu(){if(qm){var i=$a;if(i!==null)throw i}}function gu(i,o,u,p){qm=!1;var x=i.updateQueue;Vs=!1;var w=x.firstBaseUpdate,I=x.lastBaseUpdate,G=x.shared.pending;if(G!==null){x.shared.pending=null;var J=G,pe=J.next;J.next=null,I===null?w=pe:I.next=pe,I=J;var Te=i.alternate;Te!==null&&(Te=Te.updateQueue,G=Te.lastBaseUpdate,G!==I&&(G===null?Te.firstBaseUpdate=pe:G.next=pe,Te.lastBaseUpdate=J))}if(w!==null){var Oe=x.baseState;I=0,Te=pe=J=null,G=w;do{var he=G.lane&-536870913,ve=he!==G.lane;if(ve?(Vt&he)===he:(p&he)===he){he!==0&&he===Pa&&(qm=!0),Te!==null&&(Te=Te.next={lane:0,tag:G.tag,payload:G.payload,callback:null,next:null});e:{var et=i,kt=G;he=o;var dn=u;switch(kt.tag){case 1:if(et=kt.payload,typeof et=="function"){Oe=et.call(dn,Oe,he);break e}Oe=et;break e;case 3:et.flags=et.flags&-65537|128;case 0:if(et=kt.payload,he=typeof et=="function"?et.call(dn,Oe,he):et,he==null)break e;Oe=m({},Oe,he);break e;case 2:Vs=!0}}he=G.callback,he!==null&&(i.flags|=64,ve&&(i.flags|=8192),ve=x.callbacks,ve===null?x.callbacks=[he]:ve.push(he))}else ve={lane:he,tag:G.tag,payload:G.payload,callback:G.callback,next:null},Te===null?(pe=Te=ve,J=Oe):Te=Te.next=ve,I|=he;if(G=G.next,G===null){if(G=x.shared.pending,G===null)break;ve=G,G=ve.next,ve.next=null,x.lastBaseUpdate=ve,x.shared.pending=null}}while(!0);Te===null&&(J=Oe),x.baseState=J,x.firstBaseUpdate=pe,x.lastBaseUpdate=Te,w===null&&(x.shared.lanes=0),Qs|=I,i.lanes=I,i.memoizedState=Oe}}function Ok(i,o){if(typeof i!="function")throw Error(r(191,i));i.call(o)}function Ik(i,o){var u=i.callbacks;if(u!==null)for(i.callbacks=null,i=0;i<u.length;i++)Ok(u[i],o)}var Ua=j(null),Bf=j(0);function Mk(i,o){i=ps,L(Bf,i),L(Ua,o),ps=i|o.baseLanes}function Hm(){L(Bf,ps),L(Ua,Ua.current)}function Vm(){ps=Bf.current,V(Ua),V(Bf)}var Gr=j(null),ci=null;function Ks(i){var o=i.alternate;L(jn,jn.current&1),L(Gr,i),ci===null&&(o===null||Ua.current!==null||o.memoizedState!==null)&&(ci=i)}function Gm(i){L(jn,jn.current),L(Gr,i),ci===null&&(ci=i)}function Dk(i){i.tag===22?(L(jn,jn.current),L(Gr,i),ci===null&&(ci=i)):Ys()}function Ys(){L(jn,jn.current),L(Gr,Gr.current)}function Wr(i){V(Gr),ci===i&&(ci=null),V(jn)}var jn=j(0);function Ff(i){for(var o=i;o!==null;){if(o.tag===13){var u=o.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||Qg(u)||Jg(u)))return o}else if(o.tag===19&&(o.memoizedProps.revealOrder==="forwards"||o.memoizedProps.revealOrder==="backwards"||o.memoizedProps.revealOrder==="unstable_legacy-backwards"||o.memoizedProps.revealOrder==="together")){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===i)break;for(;o.sibling===null;){if(o.return===null||o.return===i)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var ss=0,Ot=null,cn=null,Vn=null,Uf=!1,qa=!1,Go=!1,qf=0,bu=0,Ha=null,RL=0;function Mn(){throw Error(r(321))}function Wm(i,o){if(o===null)return!1;for(var u=0;u<o.length&&u<i.length;u++)if(!Hr(i[u],o[u]))return!1;return!0}function Km(i,o,u,p,x,w){return ss=w,Ot=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,H.H=i===null||i.memoizedState===null?bS:ug,Go=!1,w=u(p,x),Go=!1,qa&&(w=jk(o,u,p,x)),Lk(i),w}function Lk(i){H.H=xu;var o=cn!==null&&cn.next!==null;if(ss=0,Vn=cn=Ot=null,Uf=!1,bu=0,Ha=null,o)throw Error(r(300));i===null||Gn||(i=i.dependencies,i!==null&&Mf(i)&&(Gn=!0))}function jk(i,o,u,p){Ot=i;var x=0;do{if(qa&&(Ha=null),bu=0,qa=!1,25<=x)throw Error(r(301));if(x+=1,Vn=cn=null,i.updateQueue!=null){var w=i.updateQueue;w.lastEffect=null,w.events=null,w.stores=null,w.memoCache!=null&&(w.memoCache.index=0)}H.H=yS,w=o(u,p)}while(qa);return w}function CL(){var i=H.H,o=i.useState()[0];return o=typeof o.then=="function"?yu(o):o,i=i.useState()[0],(cn!==null?cn.memoizedState:null)!==i&&(Ot.flags|=1024),o}function Ym(){var i=qf!==0;return qf=0,i}function Xm(i,o,u){o.updateQueue=i.updateQueue,o.flags&=-2053,i.lanes&=~u}function Zm(i){if(Uf){for(i=i.memoizedState;i!==null;){var o=i.queue;o!==null&&(o.pending=null),i=i.next}Uf=!1}ss=0,Vn=cn=Ot=null,qa=!1,bu=qf=0,Ha=null}function vr(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Vn===null?Ot.memoizedState=Vn=i:Vn=Vn.next=i,Vn}function zn(){if(cn===null){var i=Ot.alternate;i=i!==null?i.memoizedState:null}else i=cn.next;var o=Vn===null?Ot.memoizedState:Vn.next;if(o!==null)Vn=o,cn=i;else{if(i===null)throw Ot.alternate===null?Error(r(467)):Error(r(310));cn=i,i={memoizedState:cn.memoizedState,baseState:cn.baseState,baseQueue:cn.baseQueue,queue:cn.queue,next:null},Vn===null?Ot.memoizedState=Vn=i:Vn=Vn.next=i}return Vn}function Hf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function yu(i){var o=bu;return bu+=1,Ha===null&&(Ha=[]),i=Rk(Ha,i,o),o=Ot,(Vn===null?o.memoizedState:Vn.next)===null&&(o=o.alternate,H.H=o===null||o.memoizedState===null?bS:ug),i}function Vf(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return yu(i);if(i.$$typeof===C)return ir(i)}throw Error(r(438,String(i)))}function Qm(i){var o=null,u=Ot.updateQueue;if(u!==null&&(o=u.memoCache),o==null){var p=Ot.alternate;p!==null&&(p=p.updateQueue,p!==null&&(p=p.memoCache,p!=null&&(o={data:p.data.map(function(x){return x.slice()}),index:0})))}if(o==null&&(o={data:[],index:0}),u===null&&(u=Hf(),Ot.updateQueue=u),u.memoCache=o,u=o.data[o.index],u===void 0)for(u=o.data[o.index]=Array(i),p=0;p<i;p++)u[p]=N;return o.index++,u}function os(i,o){return typeof o=="function"?o(i):o}function Gf(i){var o=zn();return Jm(o,cn,i)}function Jm(i,o,u){var p=i.queue;if(p===null)throw Error(r(311));p.lastRenderedReducer=u;var x=i.baseQueue,w=p.pending;if(w!==null){if(x!==null){var I=x.next;x.next=w.next,w.next=I}o.baseQueue=x=w,p.pending=null}if(w=i.baseState,x===null)i.memoizedState=w;else{o=x.next;var G=I=null,J=null,pe=o,Te=!1;do{var Oe=pe.lane&-536870913;if(Oe!==pe.lane?(Vt&Oe)===Oe:(ss&Oe)===Oe){var he=pe.revertLane;if(he===0)J!==null&&(J=J.next={lane:0,revertLane:0,gesture:null,action:pe.action,hasEagerState:pe.hasEagerState,eagerState:pe.eagerState,next:null}),Oe===Pa&&(Te=!0);else if((ss&he)===he){pe=pe.next,he===Pa&&(Te=!0);continue}else Oe={lane:0,revertLane:pe.revertLane,gesture:null,action:pe.action,hasEagerState:pe.hasEagerState,eagerState:pe.eagerState,next:null},J===null?(G=J=Oe,I=w):J=J.next=Oe,Ot.lanes|=he,Qs|=he;Oe=pe.action,Go&&u(w,Oe),w=pe.hasEagerState?pe.eagerState:u(w,Oe)}else he={lane:Oe,revertLane:pe.revertLane,gesture:pe.gesture,action:pe.action,hasEagerState:pe.hasEagerState,eagerState:pe.eagerState,next:null},J===null?(G=J=he,I=w):J=J.next=he,Ot.lanes|=Oe,Qs|=Oe;pe=pe.next}while(pe!==null&&pe!==o);if(J===null?I=w:J.next=G,!Hr(w,i.memoizedState)&&(Gn=!0,Te&&(u=$a,u!==null)))throw u;i.memoizedState=w,i.baseState=I,i.baseQueue=J,p.lastRenderedState=w}return x===null&&(p.lanes=0),[i.memoizedState,p.dispatch]}function eg(i){var o=zn(),u=o.queue;if(u===null)throw Error(r(311));u.lastRenderedReducer=i;var p=u.dispatch,x=u.pending,w=o.memoizedState;if(x!==null){u.pending=null;var I=x=x.next;do w=i(w,I.action),I=I.next;while(I!==x);Hr(w,o.memoizedState)||(Gn=!0),o.memoizedState=w,o.baseQueue===null&&(o.baseState=w),u.lastRenderedState=w}return[w,p]}function zk(i,o,u){var p=Ot,x=zn(),w=Kt;if(w){if(u===void 0)throw Error(r(407));u=u()}else u=o();var I=!Hr((cn||x).memoizedState,u);if(I&&(x.memoizedState=u,Gn=!0),x=x.queue,rg(Bk.bind(null,p,x,i),[i]),x.getSnapshot!==o||I||Vn!==null&&Vn.memoizedState.tag&1){if(p.flags|=2048,Va(9,{destroy:void 0},$k.bind(null,p,x,u,o),null),yn===null)throw Error(r(349));w||(ss&127)!==0||Pk(p,o,u)}return u}function Pk(i,o,u){i.flags|=16384,i={getSnapshot:o,value:u},o=Ot.updateQueue,o===null?(o=Hf(),Ot.updateQueue=o,o.stores=[i]):(u=o.stores,u===null?o.stores=[i]:u.push(i))}function $k(i,o,u,p){o.value=u,o.getSnapshot=p,Fk(o)&&Uk(i)}function Bk(i,o,u){return u(function(){Fk(o)&&Uk(i)})}function Fk(i){var o=i.getSnapshot;i=i.value;try{var u=o();return!Hr(i,u)}catch{return!0}}function Uk(i){var o=zo(i,2);o!==null&&Mr(o,i,2)}function tg(i){var o=vr();if(typeof i=="function"){var u=i;if(i=u(),Go){St(!0);try{u()}finally{St(!1)}}}return o.memoizedState=o.baseState=i,o.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:os,lastRenderedState:i},o}function qk(i,o,u,p){return i.baseState=u,Jm(i,cn,typeof p=="function"?p:os)}function _L(i,o,u,p,x){if(Yf(i))throw Error(r(485));if(i=o.action,i!==null){var w={payload:x,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(I){w.listeners.push(I)}};H.T!==null?u(!0):w.isTransition=!1,p(w),u=o.pending,u===null?(w.next=o.pending=w,Hk(o,w)):(w.next=u.next,o.pending=u.next=w)}}function Hk(i,o){var u=o.action,p=o.payload,x=i.state;if(o.isTransition){var w=H.T,I={};H.T=I;try{var G=u(x,p),J=H.S;J!==null&&J(I,G),Vk(i,o,G)}catch(pe){ng(i,o,pe)}finally{w!==null&&I.types!==null&&(w.types=I.types),H.T=w}}else try{w=u(x,p),Vk(i,o,w)}catch(pe){ng(i,o,pe)}}function Vk(i,o,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(p){Gk(i,o,p)},function(p){return ng(i,o,p)}):Gk(i,o,u)}function Gk(i,o,u){o.status="fulfilled",o.value=u,Wk(o),i.state=u,o=i.pending,o!==null&&(u=o.next,u===o?i.pending=null:(u=u.next,o.next=u,Hk(i,u)))}function ng(i,o,u){var p=i.pending;if(i.pending=null,p!==null){p=p.next;do o.status="rejected",o.reason=u,Wk(o),o=o.next;while(o!==p)}i.action=null}function Wk(i){i=i.listeners;for(var o=0;o<i.length;o++)(0,i[o])()}function Kk(i,o){return o}function Yk(i,o){if(Kt){var u=yn.formState;if(u!==null){e:{var p=Ot;if(Kt){if(Tn){t:{for(var x=Tn,w=ui;x.nodeType!==8;){if(!w){x=null;break t}if(x=fi(x.nextSibling),x===null){x=null;break t}}w=x.data,x=w==="F!"||w==="F"?x:null}if(x){Tn=fi(x.nextSibling),p=x.data==="F!";break e}}qs(p)}p=!1}p&&(o=u[0])}}return u=vr(),u.memoizedState=u.baseState=o,p={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Kk,lastRenderedState:o},u.queue=p,u=hS.bind(null,Ot,p),p.dispatch=u,p=tg(!1),w=lg.bind(null,Ot,!1,p.queue),p=vr(),x={state:o,dispatch:null,action:i,pending:null},p.queue=x,u=_L.bind(null,Ot,x,w,u),x.dispatch=u,p.memoizedState=i,[o,u,!1]}function Xk(i){var o=zn();return Zk(o,cn,i)}function Zk(i,o,u){if(o=Jm(i,o,Kk)[0],i=Gf(os)[0],typeof o=="object"&&o!==null&&typeof o.then=="function")try{var p=yu(o)}catch(I){throw I===Ba?jf:I}else p=o;o=zn();var x=o.queue,w=x.dispatch;return u!==o.memoizedState&&(Ot.flags|=2048,Va(9,{destroy:void 0},AL.bind(null,x,u),null)),[p,w,i]}function AL(i,o){i.action=o}function Qk(i){var o=zn(),u=cn;if(u!==null)return Zk(o,u,i);zn(),o=o.memoizedState,u=zn();var p=u.queue.dispatch;return u.memoizedState=i,[o,p,!1]}function Va(i,o,u,p){return i={tag:i,create:u,deps:p,inst:o,next:null},o=Ot.updateQueue,o===null&&(o=Hf(),Ot.updateQueue=o),u=o.lastEffect,u===null?o.lastEffect=i.next=i:(p=u.next,u.next=i,i.next=p,o.lastEffect=i),i}function Jk(){return zn().memoizedState}function Wf(i,o,u,p){var x=vr();Ot.flags|=i,x.memoizedState=Va(1|o,{destroy:void 0},u,p===void 0?null:p)}function Kf(i,o,u,p){var x=zn();p=p===void 0?null:p;var w=x.memoizedState.inst;cn!==null&&p!==null&&Wm(p,cn.memoizedState.deps)?x.memoizedState=Va(o,w,u,p):(Ot.flags|=i,x.memoizedState=Va(1|o,w,u,p))}function eS(i,o){Wf(8390656,8,i,o)}function rg(i,o){Kf(2048,8,i,o)}function NL(i){Ot.flags|=4;var o=Ot.updateQueue;if(o===null)o=Hf(),Ot.updateQueue=o,o.events=[i];else{var u=o.events;u===null?o.events=[i]:u.push(i)}}function tS(i){var o=zn().memoizedState;return NL({ref:o,nextImpl:i}),function(){if((nn&2)!==0)throw Error(r(440));return o.impl.apply(void 0,arguments)}}function nS(i,o){return Kf(4,2,i,o)}function rS(i,o){return Kf(4,4,i,o)}function iS(i,o){if(typeof o=="function"){i=i();var u=o(i);return function(){typeof u=="function"?u():o(null)}}if(o!=null)return i=i(),o.current=i,function(){o.current=null}}function sS(i,o,u){u=u!=null?u.concat([i]):null,Kf(4,4,iS.bind(null,o,i),u)}function ig(){}function oS(i,o){var u=zn();o=o===void 0?null:o;var p=u.memoizedState;return o!==null&&Wm(o,p[1])?p[0]:(u.memoizedState=[i,o],i)}function aS(i,o){var u=zn();o=o===void 0?null:o;var p=u.memoizedState;if(o!==null&&Wm(o,p[1]))return p[0];if(p=i(),Go){St(!0);try{i()}finally{St(!1)}}return u.memoizedState=[p,o],p}function sg(i,o,u){return u===void 0||(ss&1073741824)!==0&&(Vt&261930)===0?i.memoizedState=o:(i.memoizedState=u,i=l1(),Ot.lanes|=i,Qs|=i,u)}function lS(i,o,u,p){return Hr(u,o)?u:Ua.current!==null?(i=sg(i,u,p),Hr(i,o)||(Gn=!0),i):(ss&42)===0||(ss&1073741824)!==0&&(Vt&261930)===0?(Gn=!0,i.memoizedState=u):(i=l1(),Ot.lanes|=i,Qs|=i,o)}function uS(i,o,u,p,x){var w=K.p;K.p=w!==0&&8>w?w:8;var I=H.T,G={};H.T=G,lg(i,!1,o,u);try{var J=x(),pe=H.S;if(pe!==null&&pe(G,J),J!==null&&typeof J=="object"&&typeof J.then=="function"){var Te=TL(J,p);vu(i,o,Te,Xr(i))}else vu(i,o,p,Xr(i))}catch(Oe){vu(i,o,{then:function(){},status:"rejected",reason:Oe},Xr())}finally{K.p=w,I!==null&&G.types!==null&&(I.types=G.types),H.T=I}}function OL(){}function og(i,o,u,p){if(i.tag!==5)throw Error(r(476));var x=cS(i).queue;uS(i,x,o,q,u===null?OL:function(){return fS(i),u(p)})}function cS(i){var o=i.memoizedState;if(o!==null)return o;o={memoizedState:q,baseState:q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:os,lastRenderedState:q},next:null};var u={};return o.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:os,lastRenderedState:u},next:null},i.memoizedState=o,i=i.alternate,i!==null&&(i.memoizedState=o),o}function fS(i){var o=cS(i);o.next===null&&(o=i.alternate.memoizedState),vu(i,o.next.queue,{},Xr())}function ag(){return ir(ju)}function dS(){return zn().memoizedState}function pS(){return zn().memoizedState}function IL(i){for(var o=i.return;o!==null;){switch(o.tag){case 24:case 3:var u=Xr();i=Gs(u);var p=Ws(o,i,u);p!==null&&(Mr(p,o,u),hu(p,o,u)),o={cache:jm()},i.payload=o;return}o=o.return}}function ML(i,o,u){var p=Xr();u={lane:p,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},Yf(i)?mS(o,u):(u=Tm(i,o,u,p),u!==null&&(Mr(u,i,p),gS(u,o,p)))}function hS(i,o,u){var p=Xr();vu(i,o,u,p)}function vu(i,o,u,p){var x={lane:p,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null};if(Yf(i))mS(o,x);else{var w=i.alternate;if(i.lanes===0&&(w===null||w.lanes===0)&&(w=o.lastRenderedReducer,w!==null))try{var I=o.lastRenderedState,G=w(I,u);if(x.hasEagerState=!0,x.eagerState=G,Hr(G,I))return Af(i,o,x,0),yn===null&&_f(),!1}catch{}if(u=Tm(i,o,x,p),u!==null)return Mr(u,i,p),gS(u,o,p),!0}return!1}function lg(i,o,u,p){if(p={lane:2,revertLane:Bg(),gesture:null,action:p,hasEagerState:!1,eagerState:null,next:null},Yf(i)){if(o)throw Error(r(479))}else o=Tm(i,u,p,2),o!==null&&Mr(o,i,2)}function Yf(i){var o=i.alternate;return i===Ot||o!==null&&o===Ot}function mS(i,o){qa=Uf=!0;var u=i.pending;u===null?o.next=o:(o.next=u.next,u.next=o),i.pending=o}function gS(i,o,u){if((u&4194048)!==0){var p=o.lanes;p&=i.pendingLanes,u|=p,o.lanes=u,De(i,u)}}var xu={readContext:ir,use:Vf,useCallback:Mn,useContext:Mn,useEffect:Mn,useImperativeHandle:Mn,useLayoutEffect:Mn,useInsertionEffect:Mn,useMemo:Mn,useReducer:Mn,useRef:Mn,useState:Mn,useDebugValue:Mn,useDeferredValue:Mn,useTransition:Mn,useSyncExternalStore:Mn,useId:Mn,useHostTransitionStatus:Mn,useFormState:Mn,useActionState:Mn,useOptimistic:Mn,useMemoCache:Mn,useCacheRefresh:Mn};xu.useEffectEvent=Mn;var bS={readContext:ir,use:Vf,useCallback:function(i,o){return vr().memoizedState=[i,o===void 0?null:o],i},useContext:ir,useEffect:eS,useImperativeHandle:function(i,o,u){u=u!=null?u.concat([i]):null,Wf(4194308,4,iS.bind(null,o,i),u)},useLayoutEffect:function(i,o){return Wf(4194308,4,i,o)},useInsertionEffect:function(i,o){Wf(4,2,i,o)},useMemo:function(i,o){var u=vr();o=o===void 0?null:o;var p=i();if(Go){St(!0);try{i()}finally{St(!1)}}return u.memoizedState=[p,o],p},useReducer:function(i,o,u){var p=vr();if(u!==void 0){var x=u(o);if(Go){St(!0);try{u(o)}finally{St(!1)}}}else x=o;return p.memoizedState=p.baseState=x,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:x},p.queue=i,i=i.dispatch=ML.bind(null,Ot,i),[p.memoizedState,i]},useRef:function(i){var o=vr();return i={current:i},o.memoizedState=i},useState:function(i){i=tg(i);var o=i.queue,u=hS.bind(null,Ot,o);return o.dispatch=u,[i.memoizedState,u]},useDebugValue:ig,useDeferredValue:function(i,o){var u=vr();return sg(u,i,o)},useTransition:function(){var i=tg(!1);return i=uS.bind(null,Ot,i.queue,!0,!1),vr().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,o,u){var p=Ot,x=vr();if(Kt){if(u===void 0)throw Error(r(407));u=u()}else{if(u=o(),yn===null)throw Error(r(349));(Vt&127)!==0||Pk(p,o,u)}x.memoizedState=u;var w={value:u,getSnapshot:o};return x.queue=w,eS(Bk.bind(null,p,w,i),[i]),p.flags|=2048,Va(9,{destroy:void 0},$k.bind(null,p,w,u,o),null),u},useId:function(){var i=vr(),o=yn.identifierPrefix;if(Kt){var u=ji,p=Li;u=(p&~(1<<32-nt(p)-1)).toString(32)+u,o="_"+o+"R_"+u,u=qf++,0<u&&(o+="H"+u.toString(32)),o+="_"}else u=RL++,o="_"+o+"r_"+u.toString(32)+"_";return i.memoizedState=o},useHostTransitionStatus:ag,useFormState:Yk,useActionState:Yk,useOptimistic:function(i){var o=vr();o.memoizedState=o.baseState=i;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return o.queue=u,o=lg.bind(null,Ot,!0,u),u.dispatch=o,[i,o]},useMemoCache:Qm,useCacheRefresh:function(){return vr().memoizedState=IL.bind(null,Ot)},useEffectEvent:function(i){var o=vr(),u={impl:i};return o.memoizedState=u,function(){if((nn&2)!==0)throw Error(r(440));return u.impl.apply(void 0,arguments)}}},ug={readContext:ir,use:Vf,useCallback:oS,useContext:ir,useEffect:rg,useImperativeHandle:sS,useInsertionEffect:nS,useLayoutEffect:rS,useMemo:aS,useReducer:Gf,useRef:Jk,useState:function(){return Gf(os)},useDebugValue:ig,useDeferredValue:function(i,o){var u=zn();return lS(u,cn.memoizedState,i,o)},useTransition:function(){var i=Gf(os)[0],o=zn().memoizedState;return[typeof i=="boolean"?i:yu(i),o]},useSyncExternalStore:zk,useId:dS,useHostTransitionStatus:ag,useFormState:Xk,useActionState:Xk,useOptimistic:function(i,o){var u=zn();return qk(u,cn,i,o)},useMemoCache:Qm,useCacheRefresh:pS};ug.useEffectEvent=tS;var yS={readContext:ir,use:Vf,useCallback:oS,useContext:ir,useEffect:rg,useImperativeHandle:sS,useInsertionEffect:nS,useLayoutEffect:rS,useMemo:aS,useReducer:eg,useRef:Jk,useState:function(){return eg(os)},useDebugValue:ig,useDeferredValue:function(i,o){var u=zn();return cn===null?sg(u,i,o):lS(u,cn.memoizedState,i,o)},useTransition:function(){var i=eg(os)[0],o=zn().memoizedState;return[typeof i=="boolean"?i:yu(i),o]},useSyncExternalStore:zk,useId:dS,useHostTransitionStatus:ag,useFormState:Qk,useActionState:Qk,useOptimistic:function(i,o){var u=zn();return cn!==null?qk(u,cn,i,o):(u.baseState=i,[i,u.queue.dispatch])},useMemoCache:Qm,useCacheRefresh:pS};yS.useEffectEvent=tS;function cg(i,o,u,p){o=i.memoizedState,u=u(p,o),u=u==null?o:m({},o,u),i.memoizedState=u,i.lanes===0&&(i.updateQueue.baseState=u)}var fg={enqueueSetState:function(i,o,u){i=i._reactInternals;var p=Xr(),x=Gs(p);x.payload=o,u!=null&&(x.callback=u),o=Ws(i,x,p),o!==null&&(Mr(o,i,p),hu(o,i,p))},enqueueReplaceState:function(i,o,u){i=i._reactInternals;var p=Xr(),x=Gs(p);x.tag=1,x.payload=o,u!=null&&(x.callback=u),o=Ws(i,x,p),o!==null&&(Mr(o,i,p),hu(o,i,p))},enqueueForceUpdate:function(i,o){i=i._reactInternals;var u=Xr(),p=Gs(u);p.tag=2,o!=null&&(p.callback=o),o=Ws(i,p,u),o!==null&&(Mr(o,i,u),hu(o,i,u))}};function vS(i,o,u,p,x,w,I){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(p,w,I):o.prototype&&o.prototype.isPureReactComponent?!ou(u,p)||!ou(x,w):!0}function xS(i,o,u,p){i=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(u,p),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(u,p),o.state!==i&&fg.enqueueReplaceState(o,o.state,null)}function Wo(i,o){var u=o;if("ref"in o){u={};for(var p in o)p!=="ref"&&(u[p]=o[p])}if(i=i.defaultProps){u===o&&(u=m({},u));for(var x in i)u[x]===void 0&&(u[x]=i[x])}return u}function kS(i){Cf(i)}function SS(i){console.error(i)}function wS(i){Cf(i)}function Xf(i,o){try{var u=i.onUncaughtError;u(o.value,{componentStack:o.stack})}catch(p){setTimeout(function(){throw p})}}function ES(i,o,u){try{var p=i.onCaughtError;p(u.value,{componentStack:u.stack,errorBoundary:o.tag===1?o.stateNode:null})}catch(x){setTimeout(function(){throw x})}}function dg(i,o,u){return u=Gs(u),u.tag=3,u.payload={element:null},u.callback=function(){Xf(i,o)},u}function TS(i){return i=Gs(i),i.tag=3,i}function RS(i,o,u,p){var x=u.type.getDerivedStateFromError;if(typeof x=="function"){var w=p.value;i.payload=function(){return x(w)},i.callback=function(){ES(o,u,p)}}var I=u.stateNode;I!==null&&typeof I.componentDidCatch=="function"&&(i.callback=function(){ES(o,u,p),typeof x!="function"&&(Js===null?Js=new Set([this]):Js.add(this));var G=p.stack;this.componentDidCatch(p.value,{componentStack:G!==null?G:""})})}function DL(i,o,u,p,x){if(u.flags|=32768,p!==null&&typeof p=="object"&&typeof p.then=="function"){if(o=u.alternate,o!==null&&za(o,u,x,!0),u=Gr.current,u!==null){switch(u.tag){case 31:case 13:return ci===null?ld():u.alternate===null&&Dn===0&&(Dn=3),u.flags&=-257,u.flags|=65536,u.lanes=x,p===zf?u.flags|=16384:(o=u.updateQueue,o===null?u.updateQueue=new Set([p]):o.add(p),zg(i,p,x)),!1;case 22:return u.flags|=65536,p===zf?u.flags|=16384:(o=u.updateQueue,o===null?(o={transitions:null,markerInstances:null,retryQueue:new Set([p])},u.updateQueue=o):(u=o.retryQueue,u===null?o.retryQueue=new Set([p]):u.add(p)),zg(i,p,x)),!1}throw Error(r(435,u.tag))}return zg(i,p,x),ld(),!1}if(Kt)return o=Gr.current,o!==null?((o.flags&65536)===0&&(o.flags|=256),o.flags|=65536,o.lanes=x,p!==Om&&(i=Error(r(422),{cause:p}),uu(oi(i,u)))):(p!==Om&&(o=Error(r(423),{cause:p}),uu(oi(o,u))),i=i.current.alternate,i.flags|=65536,x&=-x,i.lanes|=x,p=oi(p,u),x=dg(i.stateNode,p,x),Um(i,x),Dn!==4&&(Dn=2)),!1;var w=Error(r(520),{cause:p});if(w=oi(w,u),_u===null?_u=[w]:_u.push(w),Dn!==4&&(Dn=2),o===null)return!0;p=oi(p,u),u=o;do{switch(u.tag){case 3:return u.flags|=65536,i=x&-x,u.lanes|=i,i=dg(u.stateNode,p,i),Um(u,i),!1;case 1:if(o=u.type,w=u.stateNode,(u.flags&128)===0&&(typeof o.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(Js===null||!Js.has(w))))return u.flags|=65536,x&=-x,u.lanes|=x,x=TS(x),RS(x,i,u,p),Um(u,x),!1}u=u.return}while(u!==null);return!1}var pg=Error(r(461)),Gn=!1;function sr(i,o,u,p){o.child=i===null?Nk(o,null,u,p):Vo(o,i.child,u,p)}function CS(i,o,u,p,x){u=u.render;var w=o.ref;if("ref"in p){var I={};for(var G in p)G!=="ref"&&(I[G]=p[G])}else I=p;return Fo(o),p=Km(i,o,u,I,w,x),G=Ym(),i!==null&&!Gn?(Xm(i,o,x),as(i,o,x)):(Kt&&G&&Am(o),o.flags|=1,sr(i,o,p,x),o.child)}function _S(i,o,u,p,x){if(i===null){var w=u.type;return typeof w=="function"&&!Rm(w)&&w.defaultProps===void 0&&u.compare===null?(o.tag=15,o.type=w,AS(i,o,w,p,x)):(i=Of(u.type,null,p,o,o.mode,x),i.ref=o.ref,i.return=o,o.child=i)}if(w=i.child,!kg(i,x)){var I=w.memoizedProps;if(u=u.compare,u=u!==null?u:ou,u(I,p)&&i.ref===o.ref)return as(i,o,x)}return o.flags|=1,i=ts(w,p),i.ref=o.ref,i.return=o,o.child=i}function AS(i,o,u,p,x){if(i!==null){var w=i.memoizedProps;if(ou(w,p)&&i.ref===o.ref)if(Gn=!1,o.pendingProps=p=w,kg(i,x))(i.flags&131072)!==0&&(Gn=!0);else return o.lanes=i.lanes,as(i,o,x)}return hg(i,o,u,p,x)}function NS(i,o,u,p){var x=p.children,w=i!==null?i.memoizedState:null;if(i===null&&o.stateNode===null&&(o.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),p.mode==="hidden"){if((o.flags&128)!==0){if(w=w!==null?w.baseLanes|u:u,i!==null){for(p=o.child=i.child,x=0;p!==null;)x=x|p.lanes|p.childLanes,p=p.sibling;p=x&~w}else p=0,o.child=null;return OS(i,o,w,u,p)}if((u&536870912)!==0)o.memoizedState={baseLanes:0,cachePool:null},i!==null&&Lf(o,w!==null?w.cachePool:null),w!==null?Mk(o,w):Hm(),Dk(o);else return p=o.lanes=536870912,OS(i,o,w!==null?w.baseLanes|u:u,u,p)}else w!==null?(Lf(o,w.cachePool),Mk(o,w),Ys(),o.memoizedState=null):(i!==null&&Lf(o,null),Hm(),Ys());return sr(i,o,x,u),o.child}function ku(i,o){return i!==null&&i.tag===22||o.stateNode!==null||(o.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.sibling}function OS(i,o,u,p,x){var w=Pm();return w=w===null?null:{parent:Hn._currentValue,pool:w},o.memoizedState={baseLanes:u,cachePool:w},i!==null&&Lf(o,null),Hm(),Dk(o),i!==null&&za(i,o,p,!0),o.childLanes=x,null}function Zf(i,o){return o=Jf({mode:o.mode,children:o.children},i.mode),o.ref=i.ref,i.child=o,o.return=i,o}function IS(i,o,u){return Vo(o,i.child,null,u),i=Zf(o,o.pendingProps),i.flags|=2,Wr(o),o.memoizedState=null,i}function LL(i,o,u){var p=o.pendingProps,x=(o.flags&128)!==0;if(o.flags&=-129,i===null){if(Kt){if(p.mode==="hidden")return i=Zf(o,p),o.lanes=536870912,ku(null,i);if(Gm(o),(i=Tn)?(i=H1(i,ui),i=i!==null&&i.data==="&"?i:null,i!==null&&(o.memoizedState={dehydrated:i,treeContext:Fs!==null?{id:Li,overflow:ji}:null,retryLane:536870912,hydrationErrors:null},u=mk(i),u.return=o,o.child=u,rr=o,Tn=null)):i=null,i===null)throw qs(o);return o.lanes=536870912,null}return Zf(o,p)}var w=i.memoizedState;if(w!==null){var I=w.dehydrated;if(Gm(o),x)if(o.flags&256)o.flags&=-257,o=IS(i,o,u);else if(o.memoizedState!==null)o.child=i.child,o.flags|=128,o=null;else throw Error(r(558));else if(Gn||za(i,o,u,!1),x=(u&i.childLanes)!==0,Gn||x){if(p=yn,p!==null&&(I=je(p,u),I!==0&&I!==w.retryLane))throw w.retryLane=I,zo(i,I),Mr(p,i,I),pg;ld(),o=IS(i,o,u)}else i=w.treeContext,Tn=fi(I.nextSibling),rr=o,Kt=!0,Us=null,ui=!1,i!==null&&yk(o,i),o=Zf(o,p),o.flags|=4096;return o}return i=ts(i.child,{mode:p.mode,children:p.children}),i.ref=o.ref,o.child=i,i.return=o,i}function Qf(i,o){var u=o.ref;if(u===null)i!==null&&i.ref!==null&&(o.flags|=4194816);else{if(typeof u!="function"&&typeof u!="object")throw Error(r(284));(i===null||i.ref!==u)&&(o.flags|=4194816)}}function hg(i,o,u,p,x){return Fo(o),u=Km(i,o,u,p,void 0,x),p=Ym(),i!==null&&!Gn?(Xm(i,o,x),as(i,o,x)):(Kt&&p&&Am(o),o.flags|=1,sr(i,o,u,x),o.child)}function MS(i,o,u,p,x,w){return Fo(o),o.updateQueue=null,u=jk(o,p,u,x),Lk(i),p=Ym(),i!==null&&!Gn?(Xm(i,o,w),as(i,o,w)):(Kt&&p&&Am(o),o.flags|=1,sr(i,o,u,w),o.child)}function DS(i,o,u,p,x){if(Fo(o),o.stateNode===null){var w=Ma,I=u.contextType;typeof I=="object"&&I!==null&&(w=ir(I)),w=new u(p,w),o.memoizedState=w.state!==null&&w.state!==void 0?w.state:null,w.updater=fg,o.stateNode=w,w._reactInternals=o,w=o.stateNode,w.props=p,w.state=o.memoizedState,w.refs={},Bm(o),I=u.contextType,w.context=typeof I=="object"&&I!==null?ir(I):Ma,w.state=o.memoizedState,I=u.getDerivedStateFromProps,typeof I=="function"&&(cg(o,u,I,p),w.state=o.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof w.getSnapshotBeforeUpdate=="function"||typeof w.UNSAFE_componentWillMount!="function"&&typeof w.componentWillMount!="function"||(I=w.state,typeof w.componentWillMount=="function"&&w.componentWillMount(),typeof w.UNSAFE_componentWillMount=="function"&&w.UNSAFE_componentWillMount(),I!==w.state&&fg.enqueueReplaceState(w,w.state,null),gu(o,p,w,x),mu(),w.state=o.memoizedState),typeof w.componentDidMount=="function"&&(o.flags|=4194308),p=!0}else if(i===null){w=o.stateNode;var G=o.memoizedProps,J=Wo(u,G);w.props=J;var pe=w.context,Te=u.contextType;I=Ma,typeof Te=="object"&&Te!==null&&(I=ir(Te));var Oe=u.getDerivedStateFromProps;Te=typeof Oe=="function"||typeof w.getSnapshotBeforeUpdate=="function",G=o.pendingProps!==G,Te||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(G||pe!==I)&&xS(o,w,p,I),Vs=!1;var he=o.memoizedState;w.state=he,gu(o,p,w,x),mu(),pe=o.memoizedState,G||he!==pe||Vs?(typeof Oe=="function"&&(cg(o,u,Oe,p),pe=o.memoizedState),(J=Vs||vS(o,u,J,p,he,pe,I))?(Te||typeof w.UNSAFE_componentWillMount!="function"&&typeof w.componentWillMount!="function"||(typeof w.componentWillMount=="function"&&w.componentWillMount(),typeof w.UNSAFE_componentWillMount=="function"&&w.UNSAFE_componentWillMount()),typeof w.componentDidMount=="function"&&(o.flags|=4194308)):(typeof w.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=p,o.memoizedState=pe),w.props=p,w.state=pe,w.context=I,p=J):(typeof w.componentDidMount=="function"&&(o.flags|=4194308),p=!1)}else{w=o.stateNode,Fm(i,o),I=o.memoizedProps,Te=Wo(u,I),w.props=Te,Oe=o.pendingProps,he=w.context,pe=u.contextType,J=Ma,typeof pe=="object"&&pe!==null&&(J=ir(pe)),G=u.getDerivedStateFromProps,(pe=typeof G=="function"||typeof w.getSnapshotBeforeUpdate=="function")||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(I!==Oe||he!==J)&&xS(o,w,p,J),Vs=!1,he=o.memoizedState,w.state=he,gu(o,p,w,x),mu();var ve=o.memoizedState;I!==Oe||he!==ve||Vs||i!==null&&i.dependencies!==null&&Mf(i.dependencies)?(typeof G=="function"&&(cg(o,u,G,p),ve=o.memoizedState),(Te=Vs||vS(o,u,Te,p,he,ve,J)||i!==null&&i.dependencies!==null&&Mf(i.dependencies))?(pe||typeof w.UNSAFE_componentWillUpdate!="function"&&typeof w.componentWillUpdate!="function"||(typeof w.componentWillUpdate=="function"&&w.componentWillUpdate(p,ve,J),typeof w.UNSAFE_componentWillUpdate=="function"&&w.UNSAFE_componentWillUpdate(p,ve,J)),typeof w.componentDidUpdate=="function"&&(o.flags|=4),typeof w.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof w.componentDidUpdate!="function"||I===i.memoizedProps&&he===i.memoizedState||(o.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||I===i.memoizedProps&&he===i.memoizedState||(o.flags|=1024),o.memoizedProps=p,o.memoizedState=ve),w.props=p,w.state=ve,w.context=J,p=Te):(typeof w.componentDidUpdate!="function"||I===i.memoizedProps&&he===i.memoizedState||(o.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||I===i.memoizedProps&&he===i.memoizedState||(o.flags|=1024),p=!1)}return w=p,Qf(i,o),p=(o.flags&128)!==0,w||p?(w=o.stateNode,u=p&&typeof u.getDerivedStateFromError!="function"?null:w.render(),o.flags|=1,i!==null&&p?(o.child=Vo(o,i.child,null,x),o.child=Vo(o,null,u,x)):sr(i,o,u,x),o.memoizedState=w.state,i=o.child):i=as(i,o,x),i}function LS(i,o,u,p){return $o(),o.flags|=256,sr(i,o,u,p),o.child}var mg={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function gg(i){return{baseLanes:i,cachePool:Ek()}}function bg(i,o,u){return i=i!==null?i.childLanes&~u:0,o&&(i|=Yr),i}function jS(i,o,u){var p=o.pendingProps,x=!1,w=(o.flags&128)!==0,I;if((I=w)||(I=i!==null&&i.memoizedState===null?!1:(jn.current&2)!==0),I&&(x=!0,o.flags&=-129),I=(o.flags&32)!==0,o.flags&=-33,i===null){if(Kt){if(x?Ks(o):Ys(),(i=Tn)?(i=H1(i,ui),i=i!==null&&i.data!=="&"?i:null,i!==null&&(o.memoizedState={dehydrated:i,treeContext:Fs!==null?{id:Li,overflow:ji}:null,retryLane:536870912,hydrationErrors:null},u=mk(i),u.return=o,o.child=u,rr=o,Tn=null)):i=null,i===null)throw qs(o);return Jg(i)?o.lanes=32:o.lanes=536870912,null}var G=p.children;return p=p.fallback,x?(Ys(),x=o.mode,G=Jf({mode:"hidden",children:G},x),p=Po(p,x,u,null),G.return=o,p.return=o,G.sibling=p,o.child=G,p=o.child,p.memoizedState=gg(u),p.childLanes=bg(i,I,u),o.memoizedState=mg,ku(null,p)):(Ks(o),yg(o,G))}var J=i.memoizedState;if(J!==null&&(G=J.dehydrated,G!==null)){if(w)o.flags&256?(Ks(o),o.flags&=-257,o=vg(i,o,u)):o.memoizedState!==null?(Ys(),o.child=i.child,o.flags|=128,o=null):(Ys(),G=p.fallback,x=o.mode,p=Jf({mode:"visible",children:p.children},x),G=Po(G,x,u,null),G.flags|=2,p.return=o,G.return=o,p.sibling=G,o.child=p,Vo(o,i.child,null,u),p=o.child,p.memoizedState=gg(u),p.childLanes=bg(i,I,u),o.memoizedState=mg,o=ku(null,p));else if(Ks(o),Jg(G)){if(I=G.nextSibling&&G.nextSibling.dataset,I)var pe=I.dgst;I=pe,p=Error(r(419)),p.stack="",p.digest=I,uu({value:p,source:null,stack:null}),o=vg(i,o,u)}else if(Gn||za(i,o,u,!1),I=(u&i.childLanes)!==0,Gn||I){if(I=yn,I!==null&&(p=je(I,u),p!==0&&p!==J.retryLane))throw J.retryLane=p,zo(i,p),Mr(I,i,p),pg;Qg(G)||ld(),o=vg(i,o,u)}else Qg(G)?(o.flags|=192,o.child=i.child,o=null):(i=J.treeContext,Tn=fi(G.nextSibling),rr=o,Kt=!0,Us=null,ui=!1,i!==null&&yk(o,i),o=yg(o,p.children),o.flags|=4096);return o}return x?(Ys(),G=p.fallback,x=o.mode,J=i.child,pe=J.sibling,p=ts(J,{mode:"hidden",children:p.children}),p.subtreeFlags=J.subtreeFlags&65011712,pe!==null?G=ts(pe,G):(G=Po(G,x,u,null),G.flags|=2),G.return=o,p.return=o,p.sibling=G,o.child=p,ku(null,p),p=o.child,G=i.child.memoizedState,G===null?G=gg(u):(x=G.cachePool,x!==null?(J=Hn._currentValue,x=x.parent!==J?{parent:J,pool:J}:x):x=Ek(),G={baseLanes:G.baseLanes|u,cachePool:x}),p.memoizedState=G,p.childLanes=bg(i,I,u),o.memoizedState=mg,ku(i.child,p)):(Ks(o),u=i.child,i=u.sibling,u=ts(u,{mode:"visible",children:p.children}),u.return=o,u.sibling=null,i!==null&&(I=o.deletions,I===null?(o.deletions=[i],o.flags|=16):I.push(i)),o.child=u,o.memoizedState=null,u)}function yg(i,o){return o=Jf({mode:"visible",children:o},i.mode),o.return=i,i.child=o}function Jf(i,o){return i=Vr(22,i,null,o),i.lanes=0,i}function vg(i,o,u){return Vo(o,i.child,null,u),i=yg(o,o.pendingProps.children),i.flags|=2,o.memoizedState=null,i}function zS(i,o,u){i.lanes|=o;var p=i.alternate;p!==null&&(p.lanes|=o),Dm(i.return,o,u)}function xg(i,o,u,p,x,w){var I=i.memoizedState;I===null?i.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:p,tail:u,tailMode:x,treeForkCount:w}:(I.isBackwards=o,I.rendering=null,I.renderingStartTime=0,I.last=p,I.tail=u,I.tailMode=x,I.treeForkCount=w)}function PS(i,o,u){var p=o.pendingProps,x=p.revealOrder,w=p.tail;p=p.children;var I=jn.current,G=(I&2)!==0;if(G?(I=I&1|2,o.flags|=128):I&=1,L(jn,I),sr(i,o,p,u),p=Kt?lu:0,!G&&i!==null&&(i.flags&128)!==0)e:for(i=o.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&zS(i,u,o);else if(i.tag===19)zS(i,u,o);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===o)break e;for(;i.sibling===null;){if(i.return===null||i.return===o)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}switch(x){case"forwards":for(u=o.child,x=null;u!==null;)i=u.alternate,i!==null&&Ff(i)===null&&(x=u),u=u.sibling;u=x,u===null?(x=o.child,o.child=null):(x=u.sibling,u.sibling=null),xg(o,!1,x,u,w,p);break;case"backwards":case"unstable_legacy-backwards":for(u=null,x=o.child,o.child=null;x!==null;){if(i=x.alternate,i!==null&&Ff(i)===null){o.child=x;break}i=x.sibling,x.sibling=u,u=x,x=i}xg(o,!0,u,null,w,p);break;case"together":xg(o,!1,null,null,void 0,p);break;default:o.memoizedState=null}return o.child}function as(i,o,u){if(i!==null&&(o.dependencies=i.dependencies),Qs|=o.lanes,(u&o.childLanes)===0)if(i!==null){if(za(i,o,u,!1),(u&o.childLanes)===0)return null}else return null;if(i!==null&&o.child!==i.child)throw Error(r(153));if(o.child!==null){for(i=o.child,u=ts(i,i.pendingProps),o.child=u,u.return=o;i.sibling!==null;)i=i.sibling,u=u.sibling=ts(i,i.pendingProps),u.return=o;u.sibling=null}return o.child}function kg(i,o){return(i.lanes&o)!==0?!0:(i=i.dependencies,!!(i!==null&&Mf(i)))}function jL(i,o,u){switch(o.tag){case 3:le(o,o.stateNode.containerInfo),Hs(o,Hn,i.memoizedState.cache),$o();break;case 27:case 5:Ee(o);break;case 4:le(o,o.stateNode.containerInfo);break;case 10:Hs(o,o.type,o.memoizedProps.value);break;case 31:if(o.memoizedState!==null)return o.flags|=128,Gm(o),null;break;case 13:var p=o.memoizedState;if(p!==null)return p.dehydrated!==null?(Ks(o),o.flags|=128,null):(u&o.child.childLanes)!==0?jS(i,o,u):(Ks(o),i=as(i,o,u),i!==null?i.sibling:null);Ks(o);break;case 19:var x=(i.flags&128)!==0;if(p=(u&o.childLanes)!==0,p||(za(i,o,u,!1),p=(u&o.childLanes)!==0),x){if(p)return PS(i,o,u);o.flags|=128}if(x=o.memoizedState,x!==null&&(x.rendering=null,x.tail=null,x.lastEffect=null),L(jn,jn.current),p)break;return null;case 22:return o.lanes=0,NS(i,o,u,o.pendingProps);case 24:Hs(o,Hn,i.memoizedState.cache)}return as(i,o,u)}function $S(i,o,u){if(i!==null)if(i.memoizedProps!==o.pendingProps)Gn=!0;else{if(!kg(i,u)&&(o.flags&128)===0)return Gn=!1,jL(i,o,u);Gn=(i.flags&131072)!==0}else Gn=!1,Kt&&(o.flags&1048576)!==0&&bk(o,lu,o.index);switch(o.lanes=0,o.tag){case 16:e:{var p=o.pendingProps;if(i=qo(o.elementType),o.type=i,typeof i=="function")Rm(i)?(p=Wo(i,p),o.tag=1,o=DS(null,o,i,p,u)):(o.tag=0,o=hg(null,o,i,p,u));else{if(i!=null){var x=i.$$typeof;if(x===_){o.tag=11,o=CS(null,o,i,p,u);break e}else if(x===M){o.tag=14,o=_S(null,o,i,p,u);break e}}throw o=z(i)||i,Error(r(306,o,""))}}return o;case 0:return hg(i,o,o.type,o.pendingProps,u);case 1:return p=o.type,x=Wo(p,o.pendingProps),DS(i,o,p,x,u);case 3:e:{if(le(o,o.stateNode.containerInfo),i===null)throw Error(r(387));p=o.pendingProps;var w=o.memoizedState;x=w.element,Fm(i,o),gu(o,p,null,u);var I=o.memoizedState;if(p=I.cache,Hs(o,Hn,p),p!==w.cache&&Lm(o,[Hn],u,!0),mu(),p=I.element,w.isDehydrated)if(w={element:p,isDehydrated:!1,cache:I.cache},o.updateQueue.baseState=w,o.memoizedState=w,o.flags&256){o=LS(i,o,p,u);break e}else if(p!==x){x=oi(Error(r(424)),o),uu(x),o=LS(i,o,p,u);break e}else for(i=o.stateNode.containerInfo,i.nodeType===9?i=i.body:i=i.nodeName==="HTML"?i.ownerDocument.body:i,Tn=fi(i.firstChild),rr=o,Kt=!0,Us=null,ui=!0,u=Nk(o,null,p,u),o.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling;else{if($o(),p===x){o=as(i,o,u);break e}sr(i,o,p,u)}o=o.child}return o;case 26:return Qf(i,o),i===null?(u=X1(o.type,null,o.pendingProps,null))?o.memoizedState=u:Kt||(u=o.type,i=o.pendingProps,p=md(ne.current).createElement(u),p[Tt]=o,p[Qt]=i,or(p,u,i),Un(p),o.stateNode=p):o.memoizedState=X1(o.type,i.memoizedProps,o.pendingProps,i.memoizedState),null;case 27:return Ee(o),i===null&&Kt&&(p=o.stateNode=W1(o.type,o.pendingProps,ne.current),rr=o,ui=!0,x=Tn,ro(o.type)?(eb=x,Tn=fi(p.firstChild)):Tn=x),sr(i,o,o.pendingProps.children,u),Qf(i,o),i===null&&(o.flags|=4194304),o.child;case 5:return i===null&&Kt&&((x=p=Tn)&&(p=dj(p,o.type,o.pendingProps,ui),p!==null?(o.stateNode=p,rr=o,Tn=fi(p.firstChild),ui=!1,x=!0):x=!1),x||qs(o)),Ee(o),x=o.type,w=o.pendingProps,I=i!==null?i.memoizedProps:null,p=w.children,Yg(x,w)?p=null:I!==null&&Yg(x,I)&&(o.flags|=32),o.memoizedState!==null&&(x=Km(i,o,CL,null,null,u),ju._currentValue=x),Qf(i,o),sr(i,o,p,u),o.child;case 6:return i===null&&Kt&&((i=u=Tn)&&(u=pj(u,o.pendingProps,ui),u!==null?(o.stateNode=u,rr=o,Tn=null,i=!0):i=!1),i||qs(o)),null;case 13:return jS(i,o,u);case 4:return le(o,o.stateNode.containerInfo),p=o.pendingProps,i===null?o.child=Vo(o,null,p,u):sr(i,o,p,u),o.child;case 11:return CS(i,o,o.type,o.pendingProps,u);case 7:return sr(i,o,o.pendingProps,u),o.child;case 8:return sr(i,o,o.pendingProps.children,u),o.child;case 12:return sr(i,o,o.pendingProps.children,u),o.child;case 10:return p=o.pendingProps,Hs(o,o.type,p.value),sr(i,o,p.children,u),o.child;case 9:return x=o.type._context,p=o.pendingProps.children,Fo(o),x=ir(x),p=p(x),o.flags|=1,sr(i,o,p,u),o.child;case 14:return _S(i,o,o.type,o.pendingProps,u);case 15:return AS(i,o,o.type,o.pendingProps,u);case 19:return PS(i,o,u);case 31:return LL(i,o,u);case 22:return NS(i,o,u,o.pendingProps);case 24:return Fo(o),p=ir(Hn),i===null?(x=Pm(),x===null&&(x=yn,w=jm(),x.pooledCache=w,w.refCount++,w!==null&&(x.pooledCacheLanes|=u),x=w),o.memoizedState={parent:p,cache:x},Bm(o),Hs(o,Hn,x)):((i.lanes&u)!==0&&(Fm(i,o),gu(o,null,null,u),mu()),x=i.memoizedState,w=o.memoizedState,x.parent!==p?(x={parent:p,cache:p},o.memoizedState=x,o.lanes===0&&(o.memoizedState=o.updateQueue.baseState=x),Hs(o,Hn,p)):(p=w.cache,Hs(o,Hn,p),p!==x.cache&&Lm(o,[Hn],u,!0))),sr(i,o,o.pendingProps.children,u),o.child;case 29:throw o.pendingProps}throw Error(r(156,o.tag))}function ls(i){i.flags|=4}function Sg(i,o,u,p,x){if((o=(i.mode&32)!==0)&&(o=!1),o){if(i.flags|=16777216,(x&335544128)===x)if(i.stateNode.complete)i.flags|=8192;else if(d1())i.flags|=8192;else throw Ho=zf,$m}else i.flags&=-16777217}function BS(i,o){if(o.type!=="stylesheet"||(o.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!tw(o))if(d1())i.flags|=8192;else throw Ho=zf,$m}function ed(i,o){o!==null&&(i.flags|=4),i.flags&16384&&(o=i.tag!==22?Xe():536870912,i.lanes|=o,Ya|=o)}function Su(i,o){if(!Kt)switch(i.tailMode){case"hidden":o=i.tail;for(var u=null;o!==null;)o.alternate!==null&&(u=o),o=o.sibling;u===null?i.tail=null:u.sibling=null;break;case"collapsed":u=i.tail;for(var p=null;u!==null;)u.alternate!==null&&(p=u),u=u.sibling;p===null?o||i.tail===null?i.tail=null:i.tail.sibling=null:p.sibling=null}}function Rn(i){var o=i.alternate!==null&&i.alternate.child===i.child,u=0,p=0;if(o)for(var x=i.child;x!==null;)u|=x.lanes|x.childLanes,p|=x.subtreeFlags&65011712,p|=x.flags&65011712,x.return=i,x=x.sibling;else for(x=i.child;x!==null;)u|=x.lanes|x.childLanes,p|=x.subtreeFlags,p|=x.flags,x.return=i,x=x.sibling;return i.subtreeFlags|=p,i.childLanes=u,o}function zL(i,o,u){var p=o.pendingProps;switch(Nm(o),o.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Rn(o),null;case 1:return Rn(o),null;case 3:return u=o.stateNode,p=null,i!==null&&(p=i.memoizedState.cache),o.memoizedState.cache!==p&&(o.flags|=2048),is(Hn),ce(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(i===null||i.child===null)&&(ja(o)?ls(o):i===null||i.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,Im())),Rn(o),null;case 26:var x=o.type,w=o.memoizedState;return i===null?(ls(o),w!==null?(Rn(o),BS(o,w)):(Rn(o),Sg(o,x,null,p,u))):w?w!==i.memoizedState?(ls(o),Rn(o),BS(o,w)):(Rn(o),o.flags&=-16777217):(i=i.memoizedProps,i!==p&&ls(o),Rn(o),Sg(o,x,i,p,u)),null;case 27:if(be(o),u=ne.current,x=o.type,i!==null&&o.stateNode!=null)i.memoizedProps!==p&&ls(o);else{if(!p){if(o.stateNode===null)throw Error(r(166));return Rn(o),null}i=X.current,ja(o)?vk(o):(i=W1(x,p,u),o.stateNode=i,ls(o))}return Rn(o),null;case 5:if(be(o),x=o.type,i!==null&&o.stateNode!=null)i.memoizedProps!==p&&ls(o);else{if(!p){if(o.stateNode===null)throw Error(r(166));return Rn(o),null}if(w=X.current,ja(o))vk(o);else{var I=md(ne.current);switch(w){case 1:w=I.createElementNS("http://www.w3.org/2000/svg",x);break;case 2:w=I.createElementNS("http://www.w3.org/1998/Math/MathML",x);break;default:switch(x){case"svg":w=I.createElementNS("http://www.w3.org/2000/svg",x);break;case"math":w=I.createElementNS("http://www.w3.org/1998/Math/MathML",x);break;case"script":w=I.createElement("div"),w.innerHTML="<script><\/script>",w=w.removeChild(w.firstChild);break;case"select":w=typeof p.is=="string"?I.createElement("select",{is:p.is}):I.createElement("select"),p.multiple?w.multiple=!0:p.size&&(w.size=p.size);break;default:w=typeof p.is=="string"?I.createElement(x,{is:p.is}):I.createElement(x)}}w[Tt]=o,w[Qt]=p;e:for(I=o.child;I!==null;){if(I.tag===5||I.tag===6)w.appendChild(I.stateNode);else if(I.tag!==4&&I.tag!==27&&I.child!==null){I.child.return=I,I=I.child;continue}if(I===o)break e;for(;I.sibling===null;){if(I.return===null||I.return===o)break e;I=I.return}I.sibling.return=I.return,I=I.sibling}o.stateNode=w;e:switch(or(w,x,p),x){case"button":case"input":case"select":case"textarea":p=!!p.autoFocus;break e;case"img":p=!0;break e;default:p=!1}p&&ls(o)}}return Rn(o),Sg(o,o.type,i===null?null:i.memoizedProps,o.pendingProps,u),null;case 6:if(i&&o.stateNode!=null)i.memoizedProps!==p&&ls(o);else{if(typeof p!="string"&&o.stateNode===null)throw Error(r(166));if(i=ne.current,ja(o)){if(i=o.stateNode,u=o.memoizedProps,p=null,x=rr,x!==null)switch(x.tag){case 27:case 5:p=x.memoizedProps}i[Tt]=o,i=!!(i.nodeValue===u||p!==null&&p.suppressHydrationWarning===!0||j1(i.nodeValue,u)),i||qs(o,!0)}else i=md(i).createTextNode(p),i[Tt]=o,o.stateNode=i}return Rn(o),null;case 31:if(u=o.memoizedState,i===null||i.memoizedState!==null){if(p=ja(o),u!==null){if(i===null){if(!p)throw Error(r(318));if(i=o.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(557));i[Tt]=o}else $o(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;Rn(o),i=!1}else u=Im(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=u),i=!0;if(!i)return o.flags&256?(Wr(o),o):(Wr(o),null);if((o.flags&128)!==0)throw Error(r(558))}return Rn(o),null;case 13:if(p=o.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(x=ja(o),p!==null&&p.dehydrated!==null){if(i===null){if(!x)throw Error(r(318));if(x=o.memoizedState,x=x!==null?x.dehydrated:null,!x)throw Error(r(317));x[Tt]=o}else $o(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;Rn(o),x=!1}else x=Im(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=x),x=!0;if(!x)return o.flags&256?(Wr(o),o):(Wr(o),null)}return Wr(o),(o.flags&128)!==0?(o.lanes=u,o):(u=p!==null,i=i!==null&&i.memoizedState!==null,u&&(p=o.child,x=null,p.alternate!==null&&p.alternate.memoizedState!==null&&p.alternate.memoizedState.cachePool!==null&&(x=p.alternate.memoizedState.cachePool.pool),w=null,p.memoizedState!==null&&p.memoizedState.cachePool!==null&&(w=p.memoizedState.cachePool.pool),w!==x&&(p.flags|=2048)),u!==i&&u&&(o.child.flags|=8192),ed(o,o.updateQueue),Rn(o),null);case 4:return ce(),i===null&&Hg(o.stateNode.containerInfo),Rn(o),null;case 10:return is(o.type),Rn(o),null;case 19:if(V(jn),p=o.memoizedState,p===null)return Rn(o),null;if(x=(o.flags&128)!==0,w=p.rendering,w===null)if(x)Su(p,!1);else{if(Dn!==0||i!==null&&(i.flags&128)!==0)for(i=o.child;i!==null;){if(w=Ff(i),w!==null){for(o.flags|=128,Su(p,!1),i=w.updateQueue,o.updateQueue=i,ed(o,i),o.subtreeFlags=0,i=u,u=o.child;u!==null;)hk(u,i),u=u.sibling;return L(jn,jn.current&1|2),Kt&&ns(o,p.treeForkCount),o.child}i=i.sibling}p.tail!==null&&ee()>sd&&(o.flags|=128,x=!0,Su(p,!1),o.lanes=4194304)}else{if(!x)if(i=Ff(w),i!==null){if(o.flags|=128,x=!0,i=i.updateQueue,o.updateQueue=i,ed(o,i),Su(p,!0),p.tail===null&&p.tailMode==="hidden"&&!w.alternate&&!Kt)return Rn(o),null}else 2*ee()-p.renderingStartTime>sd&&u!==536870912&&(o.flags|=128,x=!0,Su(p,!1),o.lanes=4194304);p.isBackwards?(w.sibling=o.child,o.child=w):(i=p.last,i!==null?i.sibling=w:o.child=w,p.last=w)}return p.tail!==null?(i=p.tail,p.rendering=i,p.tail=i.sibling,p.renderingStartTime=ee(),i.sibling=null,u=jn.current,L(jn,x?u&1|2:u&1),Kt&&ns(o,p.treeForkCount),i):(Rn(o),null);case 22:case 23:return Wr(o),Vm(),p=o.memoizedState!==null,i!==null?i.memoizedState!==null!==p&&(o.flags|=8192):p&&(o.flags|=8192),p?(u&536870912)!==0&&(o.flags&128)===0&&(Rn(o),o.subtreeFlags&6&&(o.flags|=8192)):Rn(o),u=o.updateQueue,u!==null&&ed(o,u.retryQueue),u=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),p=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(p=o.memoizedState.cachePool.pool),p!==u&&(o.flags|=2048),i!==null&&V(Uo),null;case 24:return u=null,i!==null&&(u=i.memoizedState.cache),o.memoizedState.cache!==u&&(o.flags|=2048),is(Hn),Rn(o),null;case 25:return null;case 30:return null}throw Error(r(156,o.tag))}function PL(i,o){switch(Nm(o),o.tag){case 1:return i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 3:return is(Hn),ce(),i=o.flags,(i&65536)!==0&&(i&128)===0?(o.flags=i&-65537|128,o):null;case 26:case 27:case 5:return be(o),null;case 31:if(o.memoizedState!==null){if(Wr(o),o.alternate===null)throw Error(r(340));$o()}return i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 13:if(Wr(o),i=o.memoizedState,i!==null&&i.dehydrated!==null){if(o.alternate===null)throw Error(r(340));$o()}return i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 19:return V(jn),null;case 4:return ce(),null;case 10:return is(o.type),null;case 22:case 23:return Wr(o),Vm(),i!==null&&V(Uo),i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 24:return is(Hn),null;case 25:return null;default:return null}}function FS(i,o){switch(Nm(o),o.tag){case 3:is(Hn),ce();break;case 26:case 27:case 5:be(o);break;case 4:ce();break;case 31:o.memoizedState!==null&&Wr(o);break;case 13:Wr(o);break;case 19:V(jn);break;case 10:is(o.type);break;case 22:case 23:Wr(o),Vm(),i!==null&&V(Uo);break;case 24:is(Hn)}}function wu(i,o){try{var u=o.updateQueue,p=u!==null?u.lastEffect:null;if(p!==null){var x=p.next;u=x;do{if((u.tag&i)===i){p=void 0;var w=u.create,I=u.inst;p=w(),I.destroy=p}u=u.next}while(u!==x)}}catch(G){un(o,o.return,G)}}function Xs(i,o,u){try{var p=o.updateQueue,x=p!==null?p.lastEffect:null;if(x!==null){var w=x.next;p=w;do{if((p.tag&i)===i){var I=p.inst,G=I.destroy;if(G!==void 0){I.destroy=void 0,x=o;var J=u,pe=G;try{pe()}catch(Te){un(x,J,Te)}}}p=p.next}while(p!==w)}}catch(Te){un(o,o.return,Te)}}function US(i){var o=i.updateQueue;if(o!==null){var u=i.stateNode;try{Ik(o,u)}catch(p){un(i,i.return,p)}}}function qS(i,o,u){u.props=Wo(i.type,i.memoizedProps),u.state=i.memoizedState;try{u.componentWillUnmount()}catch(p){un(i,o,p)}}function Eu(i,o){try{var u=i.ref;if(u!==null){switch(i.tag){case 26:case 27:case 5:var p=i.stateNode;break;case 30:p=i.stateNode;break;default:p=i.stateNode}typeof u=="function"?i.refCleanup=u(p):u.current=p}}catch(x){un(i,o,x)}}function zi(i,o){var u=i.ref,p=i.refCleanup;if(u!==null)if(typeof p=="function")try{p()}catch(x){un(i,o,x)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(x){un(i,o,x)}else u.current=null}function HS(i){var o=i.type,u=i.memoizedProps,p=i.stateNode;try{e:switch(o){case"button":case"input":case"select":case"textarea":u.autoFocus&&p.focus();break e;case"img":u.src?p.src=u.src:u.srcSet&&(p.srcset=u.srcSet)}}catch(x){un(i,i.return,x)}}function wg(i,o,u){try{var p=i.stateNode;oj(p,i.type,u,o),p[Qt]=o}catch(x){un(i,i.return,x)}}function VS(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&ro(i.type)||i.tag===4}function Eg(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||VS(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.tag===27&&ro(i.type)||i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function Tg(i,o,u){var p=i.tag;if(p===5||p===6)i=i.stateNode,o?(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(i,o):(o=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,o.appendChild(i),u=u._reactRootContainer,u!=null||o.onclick!==null||(o.onclick=Ge));else if(p!==4&&(p===27&&ro(i.type)&&(u=i.stateNode,o=null),i=i.child,i!==null))for(Tg(i,o,u),i=i.sibling;i!==null;)Tg(i,o,u),i=i.sibling}function td(i,o,u){var p=i.tag;if(p===5||p===6)i=i.stateNode,o?u.insertBefore(i,o):u.appendChild(i);else if(p!==4&&(p===27&&ro(i.type)&&(u=i.stateNode),i=i.child,i!==null))for(td(i,o,u),i=i.sibling;i!==null;)td(i,o,u),i=i.sibling}function GS(i){var o=i.stateNode,u=i.memoizedProps;try{for(var p=i.type,x=o.attributes;x.length;)o.removeAttributeNode(x[0]);or(o,p,u),o[Tt]=i,o[Qt]=u}catch(w){un(i,i.return,w)}}var us=!1,Wn=!1,Rg=!1,WS=typeof WeakSet=="function"?WeakSet:Set,Jn=null;function $L(i,o){if(i=i.containerInfo,Wg=Sd,i=sk(i),vm(i)){if("selectionStart"in i)var u={start:i.selectionStart,end:i.selectionEnd};else e:{u=(u=i.ownerDocument)&&u.defaultView||window;var p=u.getSelection&&u.getSelection();if(p&&p.rangeCount!==0){u=p.anchorNode;var x=p.anchorOffset,w=p.focusNode;p=p.focusOffset;try{u.nodeType,w.nodeType}catch{u=null;break e}var I=0,G=-1,J=-1,pe=0,Te=0,Oe=i,he=null;t:for(;;){for(var ve;Oe!==u||x!==0&&Oe.nodeType!==3||(G=I+x),Oe!==w||p!==0&&Oe.nodeType!==3||(J=I+p),Oe.nodeType===3&&(I+=Oe.nodeValue.length),(ve=Oe.firstChild)!==null;)he=Oe,Oe=ve;for(;;){if(Oe===i)break t;if(he===u&&++pe===x&&(G=I),he===w&&++Te===p&&(J=I),(ve=Oe.nextSibling)!==null)break;Oe=he,he=Oe.parentNode}Oe=ve}u=G===-1||J===-1?null:{start:G,end:J}}else u=null}u=u||{start:0,end:0}}else u=null;for(Kg={focusedElem:i,selectionRange:u},Sd=!1,Jn=o;Jn!==null;)if(o=Jn,i=o.child,(o.subtreeFlags&1028)!==0&&i!==null)i.return=o,Jn=i;else for(;Jn!==null;){switch(o=Jn,w=o.alternate,i=o.flags,o.tag){case 0:if((i&4)!==0&&(i=o.updateQueue,i=i!==null?i.events:null,i!==null))for(u=0;u<i.length;u++)x=i[u],x.ref.impl=x.nextImpl;break;case 11:case 15:break;case 1:if((i&1024)!==0&&w!==null){i=void 0,u=o,x=w.memoizedProps,w=w.memoizedState,p=u.stateNode;try{var et=Wo(u.type,x);i=p.getSnapshotBeforeUpdate(et,w),p.__reactInternalSnapshotBeforeUpdate=i}catch(kt){un(u,u.return,kt)}}break;case 3:if((i&1024)!==0){if(i=o.stateNode.containerInfo,u=i.nodeType,u===9)Zg(i);else if(u===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":Zg(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((i&1024)!==0)throw Error(r(163))}if(i=o.sibling,i!==null){i.return=o.return,Jn=i;break}Jn=o.return}}function KS(i,o,u){var p=u.flags;switch(u.tag){case 0:case 11:case 15:fs(i,u),p&4&&wu(5,u);break;case 1:if(fs(i,u),p&4)if(i=u.stateNode,o===null)try{i.componentDidMount()}catch(I){un(u,u.return,I)}else{var x=Wo(u.type,o.memoizedProps);o=o.memoizedState;try{i.componentDidUpdate(x,o,i.__reactInternalSnapshotBeforeUpdate)}catch(I){un(u,u.return,I)}}p&64&&US(u),p&512&&Eu(u,u.return);break;case 3:if(fs(i,u),p&64&&(i=u.updateQueue,i!==null)){if(o=null,u.child!==null)switch(u.child.tag){case 27:case 5:o=u.child.stateNode;break;case 1:o=u.child.stateNode}try{Ik(i,o)}catch(I){un(u,u.return,I)}}break;case 27:o===null&&p&4&&GS(u);case 26:case 5:fs(i,u),o===null&&p&4&&HS(u),p&512&&Eu(u,u.return);break;case 12:fs(i,u);break;case 31:fs(i,u),p&4&&ZS(i,u);break;case 13:fs(i,u),p&4&&QS(i,u),p&64&&(i=u.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&(u=KL.bind(null,u),hj(i,u))));break;case 22:if(p=u.memoizedState!==null||us,!p){o=o!==null&&o.memoizedState!==null||Wn,x=us;var w=Wn;us=p,(Wn=o)&&!w?ds(i,u,(u.subtreeFlags&8772)!==0):fs(i,u),us=x,Wn=w}break;case 30:break;default:fs(i,u)}}function YS(i){var o=i.alternate;o!==null&&(i.alternate=null,YS(o)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(o=i.stateNode,o!==null&&Fr(o)),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}var Cn=null,Ar=!1;function cs(i,o,u){for(u=u.child;u!==null;)XS(i,o,u),u=u.sibling}function XS(i,o,u){if(xt&&typeof xt.onCommitFiberUnmount=="function")try{xt.onCommitFiberUnmount(Je,u)}catch{}switch(u.tag){case 26:Wn||zi(u,o),cs(i,o,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:Wn||zi(u,o);var p=Cn,x=Ar;ro(u.type)&&(Cn=u.stateNode,Ar=!1),cs(i,o,u),Mu(u.stateNode),Cn=p,Ar=x;break;case 5:Wn||zi(u,o);case 6:if(p=Cn,x=Ar,Cn=null,cs(i,o,u),Cn=p,Ar=x,Cn!==null)if(Ar)try{(Cn.nodeType===9?Cn.body:Cn.nodeName==="HTML"?Cn.ownerDocument.body:Cn).removeChild(u.stateNode)}catch(w){un(u,o,w)}else try{Cn.removeChild(u.stateNode)}catch(w){un(u,o,w)}break;case 18:Cn!==null&&(Ar?(i=Cn,U1(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,u.stateNode),rl(i)):U1(Cn,u.stateNode));break;case 4:p=Cn,x=Ar,Cn=u.stateNode.containerInfo,Ar=!0,cs(i,o,u),Cn=p,Ar=x;break;case 0:case 11:case 14:case 15:Xs(2,u,o),Wn||Xs(4,u,o),cs(i,o,u);break;case 1:Wn||(zi(u,o),p=u.stateNode,typeof p.componentWillUnmount=="function"&&qS(u,o,p)),cs(i,o,u);break;case 21:cs(i,o,u);break;case 22:Wn=(p=Wn)||u.memoizedState!==null,cs(i,o,u),Wn=p;break;default:cs(i,o,u)}}function ZS(i,o){if(o.memoizedState===null&&(i=o.alternate,i!==null&&(i=i.memoizedState,i!==null))){i=i.dehydrated;try{rl(i)}catch(u){un(o,o.return,u)}}}function QS(i,o){if(o.memoizedState===null&&(i=o.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{rl(i)}catch(u){un(o,o.return,u)}}function BL(i){switch(i.tag){case 31:case 13:case 19:var o=i.stateNode;return o===null&&(o=i.stateNode=new WS),o;case 22:return i=i.stateNode,o=i._retryCache,o===null&&(o=i._retryCache=new WS),o;default:throw Error(r(435,i.tag))}}function nd(i,o){var u=BL(i);o.forEach(function(p){if(!u.has(p)){u.add(p);var x=YL.bind(null,i,p);p.then(x,x)}})}function Nr(i,o){var u=o.deletions;if(u!==null)for(var p=0;p<u.length;p++){var x=u[p],w=i,I=o,G=I;e:for(;G!==null;){switch(G.tag){case 27:if(ro(G.type)){Cn=G.stateNode,Ar=!1;break e}break;case 5:Cn=G.stateNode,Ar=!1;break e;case 3:case 4:Cn=G.stateNode.containerInfo,Ar=!0;break e}G=G.return}if(Cn===null)throw Error(r(160));XS(w,I,x),Cn=null,Ar=!1,w=x.alternate,w!==null&&(w.return=null),x.return=null}if(o.subtreeFlags&13886)for(o=o.child;o!==null;)JS(o,i),o=o.sibling}var ki=null;function JS(i,o){var u=i.alternate,p=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:Nr(o,i),Or(i),p&4&&(Xs(3,i,i.return),wu(3,i),Xs(5,i,i.return));break;case 1:Nr(o,i),Or(i),p&512&&(Wn||u===null||zi(u,u.return)),p&64&&us&&(i=i.updateQueue,i!==null&&(p=i.callbacks,p!==null&&(u=i.shared.hiddenCallbacks,i.shared.hiddenCallbacks=u===null?p:u.concat(p))));break;case 26:var x=ki;if(Nr(o,i),Or(i),p&512&&(Wn||u===null||zi(u,u.return)),p&4){var w=u!==null?u.memoizedState:null;if(p=i.memoizedState,u===null)if(p===null)if(i.stateNode===null){e:{p=i.type,u=i.memoizedProps,x=x.ownerDocument||x;t:switch(p){case"title":w=x.getElementsByTagName("title")[0],(!w||w[ri]||w[Tt]||w.namespaceURI==="http://www.w3.org/2000/svg"||w.hasAttribute("itemprop"))&&(w=x.createElement(p),x.head.insertBefore(w,x.querySelector("head > title"))),or(w,p,u),w[Tt]=i,Un(w),p=w;break e;case"link":var I=J1("link","href",x).get(p+(u.href||""));if(I){for(var G=0;G<I.length;G++)if(w=I[G],w.getAttribute("href")===(u.href==null||u.href===""?null:u.href)&&w.getAttribute("rel")===(u.rel==null?null:u.rel)&&w.getAttribute("title")===(u.title==null?null:u.title)&&w.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){I.splice(G,1);break t}}w=x.createElement(p),or(w,p,u),x.head.appendChild(w);break;case"meta":if(I=J1("meta","content",x).get(p+(u.content||""))){for(G=0;G<I.length;G++)if(w=I[G],w.getAttribute("content")===(u.content==null?null:""+u.content)&&w.getAttribute("name")===(u.name==null?null:u.name)&&w.getAttribute("property")===(u.property==null?null:u.property)&&w.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&w.getAttribute("charset")===(u.charSet==null?null:u.charSet)){I.splice(G,1);break t}}w=x.createElement(p),or(w,p,u),x.head.appendChild(w);break;default:throw Error(r(468,p))}w[Tt]=i,Un(w),p=w}i.stateNode=p}else ew(x,i.type,i.stateNode);else i.stateNode=Q1(x,p,i.memoizedProps);else w!==p?(w===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):w.count--,p===null?ew(x,i.type,i.stateNode):Q1(x,p,i.memoizedProps)):p===null&&i.stateNode!==null&&wg(i,i.memoizedProps,u.memoizedProps)}break;case 27:Nr(o,i),Or(i),p&512&&(Wn||u===null||zi(u,u.return)),u!==null&&p&4&&wg(i,i.memoizedProps,u.memoizedProps);break;case 5:if(Nr(o,i),Or(i),p&512&&(Wn||u===null||zi(u,u.return)),i.flags&32){x=i.stateNode;try{wt(x,"")}catch(et){un(i,i.return,et)}}p&4&&i.stateNode!=null&&(x=i.memoizedProps,wg(i,x,u!==null?u.memoizedProps:x)),p&1024&&(Rg=!0);break;case 6:if(Nr(o,i),Or(i),p&4){if(i.stateNode===null)throw Error(r(162));p=i.memoizedProps,u=i.stateNode;try{u.nodeValue=p}catch(et){un(i,i.return,et)}}break;case 3:if(yd=null,x=ki,ki=gd(o.containerInfo),Nr(o,i),ki=x,Or(i),p&4&&u!==null&&u.memoizedState.isDehydrated)try{rl(o.containerInfo)}catch(et){un(i,i.return,et)}Rg&&(Rg=!1,e1(i));break;case 4:p=ki,ki=gd(i.stateNode.containerInfo),Nr(o,i),Or(i),ki=p;break;case 12:Nr(o,i),Or(i);break;case 31:Nr(o,i),Or(i),p&4&&(p=i.updateQueue,p!==null&&(i.updateQueue=null,nd(i,p)));break;case 13:Nr(o,i),Or(i),i.child.flags&8192&&i.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(id=ee()),p&4&&(p=i.updateQueue,p!==null&&(i.updateQueue=null,nd(i,p)));break;case 22:x=i.memoizedState!==null;var J=u!==null&&u.memoizedState!==null,pe=us,Te=Wn;if(us=pe||x,Wn=Te||J,Nr(o,i),Wn=Te,us=pe,Or(i),p&8192)e:for(o=i.stateNode,o._visibility=x?o._visibility&-2:o._visibility|1,x&&(u===null||J||us||Wn||Ko(i)),u=null,o=i;;){if(o.tag===5||o.tag===26){if(u===null){J=u=o;try{if(w=J.stateNode,x)I=w.style,typeof I.setProperty=="function"?I.setProperty("display","none","important"):I.display="none";else{G=J.stateNode;var Oe=J.memoizedProps.style,he=Oe!=null&&Oe.hasOwnProperty("display")?Oe.display:null;G.style.display=he==null||typeof he=="boolean"?"":(""+he).trim()}}catch(et){un(J,J.return,et)}}}else if(o.tag===6){if(u===null){J=o;try{J.stateNode.nodeValue=x?"":J.memoizedProps}catch(et){un(J,J.return,et)}}}else if(o.tag===18){if(u===null){J=o;try{var ve=J.stateNode;x?q1(ve,!0):q1(J.stateNode,!1)}catch(et){un(J,J.return,et)}}}else if((o.tag!==22&&o.tag!==23||o.memoizedState===null||o===i)&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===i)break e;for(;o.sibling===null;){if(o.return===null||o.return===i)break e;u===o&&(u=null),o=o.return}u===o&&(u=null),o.sibling.return=o.return,o=o.sibling}p&4&&(p=i.updateQueue,p!==null&&(u=p.retryQueue,u!==null&&(p.retryQueue=null,nd(i,u))));break;case 19:Nr(o,i),Or(i),p&4&&(p=i.updateQueue,p!==null&&(i.updateQueue=null,nd(i,p)));break;case 30:break;case 21:break;default:Nr(o,i),Or(i)}}function Or(i){var o=i.flags;if(o&2){try{for(var u,p=i.return;p!==null;){if(VS(p)){u=p;break}p=p.return}if(u==null)throw Error(r(160));switch(u.tag){case 27:var x=u.stateNode,w=Eg(i);td(i,w,x);break;case 5:var I=u.stateNode;u.flags&32&&(wt(I,""),u.flags&=-33);var G=Eg(i);td(i,G,I);break;case 3:case 4:var J=u.stateNode.containerInfo,pe=Eg(i);Tg(i,pe,J);break;default:throw Error(r(161))}}catch(Te){un(i,i.return,Te)}i.flags&=-3}o&4096&&(i.flags&=-4097)}function e1(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var o=i;e1(o),o.tag===5&&o.flags&1024&&o.stateNode.reset(),i=i.sibling}}function fs(i,o){if(o.subtreeFlags&8772)for(o=o.child;o!==null;)KS(i,o.alternate,o),o=o.sibling}function Ko(i){for(i=i.child;i!==null;){var o=i;switch(o.tag){case 0:case 11:case 14:case 15:Xs(4,o,o.return),Ko(o);break;case 1:zi(o,o.return);var u=o.stateNode;typeof u.componentWillUnmount=="function"&&qS(o,o.return,u),Ko(o);break;case 27:Mu(o.stateNode);case 26:case 5:zi(o,o.return),Ko(o);break;case 22:o.memoizedState===null&&Ko(o);break;case 30:Ko(o);break;default:Ko(o)}i=i.sibling}}function ds(i,o,u){for(u=u&&(o.subtreeFlags&8772)!==0,o=o.child;o!==null;){var p=o.alternate,x=i,w=o,I=w.flags;switch(w.tag){case 0:case 11:case 15:ds(x,w,u),wu(4,w);break;case 1:if(ds(x,w,u),p=w,x=p.stateNode,typeof x.componentDidMount=="function")try{x.componentDidMount()}catch(pe){un(p,p.return,pe)}if(p=w,x=p.updateQueue,x!==null){var G=p.stateNode;try{var J=x.shared.hiddenCallbacks;if(J!==null)for(x.shared.hiddenCallbacks=null,x=0;x<J.length;x++)Ok(J[x],G)}catch(pe){un(p,p.return,pe)}}u&&I&64&&US(w),Eu(w,w.return);break;case 27:GS(w);case 26:case 5:ds(x,w,u),u&&p===null&&I&4&&HS(w),Eu(w,w.return);break;case 12:ds(x,w,u);break;case 31:ds(x,w,u),u&&I&4&&ZS(x,w);break;case 13:ds(x,w,u),u&&I&4&&QS(x,w);break;case 22:w.memoizedState===null&&ds(x,w,u),Eu(w,w.return);break;case 30:break;default:ds(x,w,u)}o=o.sibling}}function Cg(i,o){var u=null;i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),i=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(i=o.memoizedState.cachePool.pool),i!==u&&(i!=null&&i.refCount++,u!=null&&cu(u))}function _g(i,o){i=null,o.alternate!==null&&(i=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==i&&(o.refCount++,i!=null&&cu(i))}function Si(i,o,u,p){if(o.subtreeFlags&10256)for(o=o.child;o!==null;)t1(i,o,u,p),o=o.sibling}function t1(i,o,u,p){var x=o.flags;switch(o.tag){case 0:case 11:case 15:Si(i,o,u,p),x&2048&&wu(9,o);break;case 1:Si(i,o,u,p);break;case 3:Si(i,o,u,p),x&2048&&(i=null,o.alternate!==null&&(i=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==i&&(o.refCount++,i!=null&&cu(i)));break;case 12:if(x&2048){Si(i,o,u,p),i=o.stateNode;try{var w=o.memoizedProps,I=w.id,G=w.onPostCommit;typeof G=="function"&&G(I,o.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(J){un(o,o.return,J)}}else Si(i,o,u,p);break;case 31:Si(i,o,u,p);break;case 13:Si(i,o,u,p);break;case 23:break;case 22:w=o.stateNode,I=o.alternate,o.memoizedState!==null?w._visibility&2?Si(i,o,u,p):Tu(i,o):w._visibility&2?Si(i,o,u,p):(w._visibility|=2,Ga(i,o,u,p,(o.subtreeFlags&10256)!==0||!1)),x&2048&&Cg(I,o);break;case 24:Si(i,o,u,p),x&2048&&_g(o.alternate,o);break;default:Si(i,o,u,p)}}function Ga(i,o,u,p,x){for(x=x&&((o.subtreeFlags&10256)!==0||!1),o=o.child;o!==null;){var w=i,I=o,G=u,J=p,pe=I.flags;switch(I.tag){case 0:case 11:case 15:Ga(w,I,G,J,x),wu(8,I);break;case 23:break;case 22:var Te=I.stateNode;I.memoizedState!==null?Te._visibility&2?Ga(w,I,G,J,x):Tu(w,I):(Te._visibility|=2,Ga(w,I,G,J,x)),x&&pe&2048&&Cg(I.alternate,I);break;case 24:Ga(w,I,G,J,x),x&&pe&2048&&_g(I.alternate,I);break;default:Ga(w,I,G,J,x)}o=o.sibling}}function Tu(i,o){if(o.subtreeFlags&10256)for(o=o.child;o!==null;){var u=i,p=o,x=p.flags;switch(p.tag){case 22:Tu(u,p),x&2048&&Cg(p.alternate,p);break;case 24:Tu(u,p),x&2048&&_g(p.alternate,p);break;default:Tu(u,p)}o=o.sibling}}var Ru=8192;function Wa(i,o,u){if(i.subtreeFlags&Ru)for(i=i.child;i!==null;)n1(i,o,u),i=i.sibling}function n1(i,o,u){switch(i.tag){case 26:Wa(i,o,u),i.flags&Ru&&i.memoizedState!==null&&Rj(u,ki,i.memoizedState,i.memoizedProps);break;case 5:Wa(i,o,u);break;case 3:case 4:var p=ki;ki=gd(i.stateNode.containerInfo),Wa(i,o,u),ki=p;break;case 22:i.memoizedState===null&&(p=i.alternate,p!==null&&p.memoizedState!==null?(p=Ru,Ru=16777216,Wa(i,o,u),Ru=p):Wa(i,o,u));break;default:Wa(i,o,u)}}function r1(i){var o=i.alternate;if(o!==null&&(i=o.child,i!==null)){o.child=null;do o=i.sibling,i.sibling=null,i=o;while(i!==null)}}function Cu(i){var o=i.deletions;if((i.flags&16)!==0){if(o!==null)for(var u=0;u<o.length;u++){var p=o[u];Jn=p,s1(p,i)}r1(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)i1(i),i=i.sibling}function i1(i){switch(i.tag){case 0:case 11:case 15:Cu(i),i.flags&2048&&Xs(9,i,i.return);break;case 3:Cu(i);break;case 12:Cu(i);break;case 22:var o=i.stateNode;i.memoizedState!==null&&o._visibility&2&&(i.return===null||i.return.tag!==13)?(o._visibility&=-3,rd(i)):Cu(i);break;default:Cu(i)}}function rd(i){var o=i.deletions;if((i.flags&16)!==0){if(o!==null)for(var u=0;u<o.length;u++){var p=o[u];Jn=p,s1(p,i)}r1(i)}for(i=i.child;i!==null;){switch(o=i,o.tag){case 0:case 11:case 15:Xs(8,o,o.return),rd(o);break;case 22:u=o.stateNode,u._visibility&2&&(u._visibility&=-3,rd(o));break;default:rd(o)}i=i.sibling}}function s1(i,o){for(;Jn!==null;){var u=Jn;switch(u.tag){case 0:case 11:case 15:Xs(8,u,o);break;case 23:case 22:if(u.memoizedState!==null&&u.memoizedState.cachePool!==null){var p=u.memoizedState.cachePool.pool;p!=null&&p.refCount++}break;case 24:cu(u.memoizedState.cache)}if(p=u.child,p!==null)p.return=u,Jn=p;else e:for(u=i;Jn!==null;){p=Jn;var x=p.sibling,w=p.return;if(YS(p),p===u){Jn=null;break e}if(x!==null){x.return=w,Jn=x;break e}Jn=w}}}var FL={getCacheForType:function(i){var o=ir(Hn),u=o.data.get(i);return u===void 0&&(u=i(),o.data.set(i,u)),u},cacheSignal:function(){return ir(Hn).controller.signal}},UL=typeof WeakMap=="function"?WeakMap:Map,nn=0,yn=null,$t=null,Vt=0,ln=0,Kr=null,Zs=!1,Ka=!1,Ag=!1,ps=0,Dn=0,Qs=0,Yo=0,Ng=0,Yr=0,Ya=0,_u=null,Ir=null,Og=!1,id=0,o1=0,sd=1/0,od=null,Js=null,Xn=0,eo=null,Xa=null,hs=0,Ig=0,Mg=null,a1=null,Au=0,Dg=null;function Xr(){return(nn&2)!==0&&Vt!==0?Vt&-Vt:H.T!==null?Bg():dt()}function l1(){if(Yr===0)if((Vt&536870912)===0||Kt){var i=Lt;Lt<<=1,(Lt&3932160)===0&&(Lt=262144),Yr=i}else Yr=536870912;return i=Gr.current,i!==null&&(i.flags|=32),Yr}function Mr(i,o,u){(i===yn&&(ln===2||ln===9)||i.cancelPendingCommit!==null)&&(Za(i,0),to(i,Vt,Yr,!1)),lt(i,u),((nn&2)===0||i!==yn)&&(i===yn&&((nn&2)===0&&(Yo|=u),Dn===4&&to(i,Vt,Yr,!1)),Pi(i))}function u1(i,o,u){if((nn&6)!==0)throw Error(r(327));var p=!u&&(o&127)===0&&(o&i.expiredLanes)===0||me(i,o),x=p?VL(i,o):jg(i,o,!0),w=p;do{if(x===0){Ka&&!p&&to(i,o,0,!1);break}else{if(u=i.current.alternate,w&&!qL(u)){x=jg(i,o,!1),w=!1;continue}if(x===2){if(w=o,i.errorRecoveryDisabledLanes&w)var I=0;else I=i.pendingLanes&-536870913,I=I!==0?I:I&536870912?536870912:0;if(I!==0){o=I;e:{var G=i;x=_u;var J=G.current.memoizedState.isDehydrated;if(J&&(Za(G,I).flags|=256),I=jg(G,I,!1),I!==2){if(Ag&&!J){G.errorRecoveryDisabledLanes|=w,Yo|=w,x=4;break e}w=Ir,Ir=x,w!==null&&(Ir===null?Ir=w:Ir.push.apply(Ir,w))}x=I}if(w=!1,x!==2)continue}}if(x===1){Za(i,0),to(i,o,0,!0);break}e:{switch(p=i,w=x,w){case 0:case 1:throw Error(r(345));case 4:if((o&4194048)!==o)break;case 6:to(p,o,Yr,!Zs);break e;case 2:Ir=null;break;case 3:case 5:break;default:throw Error(r(329))}if((o&62914560)===o&&(x=id+300-ee(),10<x)){if(to(p,o,Yr,!Zs),Z(p,0,!0)!==0)break e;hs=o,p.timeoutHandle=B1(c1.bind(null,p,u,Ir,od,Og,o,Yr,Yo,Ya,Zs,w,"Throttled",-0,0),x);break e}c1(p,u,Ir,od,Og,o,Yr,Yo,Ya,Zs,w,null,-0,0)}}break}while(!0);Pi(i)}function c1(i,o,u,p,x,w,I,G,J,pe,Te,Oe,he,ve){if(i.timeoutHandle=-1,Oe=o.subtreeFlags,Oe&8192||(Oe&16785408)===16785408){Oe={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ge},n1(o,w,Oe);var et=(w&62914560)===w?id-ee():(w&4194048)===w?o1-ee():0;if(et=Cj(Oe,et),et!==null){hs=w,i.cancelPendingCommit=et(y1.bind(null,i,o,w,u,p,x,I,G,J,Te,Oe,null,he,ve)),to(i,w,I,!pe);return}}y1(i,o,w,u,p,x,I,G,J)}function qL(i){for(var o=i;;){var u=o.tag;if((u===0||u===11||u===15)&&o.flags&16384&&(u=o.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var p=0;p<u.length;p++){var x=u[p],w=x.getSnapshot;x=x.value;try{if(!Hr(w(),x))return!1}catch{return!1}}if(u=o.child,o.subtreeFlags&16384&&u!==null)u.return=o,o=u;else{if(o===i)break;for(;o.sibling===null;){if(o.return===null||o.return===i)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function to(i,o,u,p){o&=~Ng,o&=~Yo,i.suspendedLanes|=o,i.pingedLanes&=~o,p&&(i.warmLanes|=o),p=i.expirationTimes;for(var x=o;0<x;){var w=31-nt(x),I=1<<w;p[w]=-1,x&=~I}u!==0&&qe(i,u,o)}function ad(){return(nn&6)===0?(Nu(0),!1):!0}function Lg(){if($t!==null){if(ln===0)var i=$t.return;else i=$t,rs=Bo=null,Zm(i),Fa=null,du=0,i=$t;for(;i!==null;)FS(i.alternate,i),i=i.return;$t=null}}function Za(i,o){var u=i.timeoutHandle;u!==-1&&(i.timeoutHandle=-1,uj(u)),u=i.cancelPendingCommit,u!==null&&(i.cancelPendingCommit=null,u()),hs=0,Lg(),yn=i,$t=u=ts(i.current,null),Vt=o,ln=0,Kr=null,Zs=!1,Ka=me(i,o),Ag=!1,Ya=Yr=Ng=Yo=Qs=Dn=0,Ir=_u=null,Og=!1,(o&8)!==0&&(o|=o&32);var p=i.entangledLanes;if(p!==0)for(i=i.entanglements,p&=o;0<p;){var x=31-nt(p),w=1<<x;o|=i[x],p&=~w}return ps=o,_f(),u}function f1(i,o){Ot=null,H.H=xu,o===Ba||o===jf?(o=Ck(),ln=3):o===$m?(o=Ck(),ln=4):ln=o===pg?8:o!==null&&typeof o=="object"&&typeof o.then=="function"?6:1,Kr=o,$t===null&&(Dn=1,Xf(i,oi(o,i.current)))}function d1(){var i=Gr.current;return i===null?!0:(Vt&4194048)===Vt?ci===null:(Vt&62914560)===Vt||(Vt&536870912)!==0?i===ci:!1}function p1(){var i=H.H;return H.H=xu,i===null?xu:i}function h1(){var i=H.A;return H.A=FL,i}function ld(){Dn=4,Zs||(Vt&4194048)!==Vt&&Gr.current!==null||(Ka=!0),(Qs&134217727)===0&&(Yo&134217727)===0||yn===null||to(yn,Vt,Yr,!1)}function jg(i,o,u){var p=nn;nn|=2;var x=p1(),w=h1();(yn!==i||Vt!==o)&&(od=null,Za(i,o)),o=!1;var I=Dn;e:do try{if(ln!==0&&$t!==null){var G=$t,J=Kr;switch(ln){case 8:Lg(),I=6;break e;case 3:case 2:case 9:case 6:Gr.current===null&&(o=!0);var pe=ln;if(ln=0,Kr=null,Qa(i,G,J,pe),u&&Ka){I=0;break e}break;default:pe=ln,ln=0,Kr=null,Qa(i,G,J,pe)}}HL(),I=Dn;break}catch(Te){f1(i,Te)}while(!0);return o&&i.shellSuspendCounter++,rs=Bo=null,nn=p,H.H=x,H.A=w,$t===null&&(yn=null,Vt=0,_f()),I}function HL(){for(;$t!==null;)m1($t)}function VL(i,o){var u=nn;nn|=2;var p=p1(),x=h1();yn!==i||Vt!==o?(od=null,sd=ee()+500,Za(i,o)):Ka=me(i,o);e:do try{if(ln!==0&&$t!==null){o=$t;var w=Kr;t:switch(ln){case 1:ln=0,Kr=null,Qa(i,o,w,1);break;case 2:case 9:if(Tk(w)){ln=0,Kr=null,g1(o);break}o=function(){ln!==2&&ln!==9||yn!==i||(ln=7),Pi(i)},w.then(o,o);break e;case 3:ln=7;break e;case 4:ln=5;break e;case 7:Tk(w)?(ln=0,Kr=null,g1(o)):(ln=0,Kr=null,Qa(i,o,w,7));break;case 5:var I=null;switch($t.tag){case 26:I=$t.memoizedState;case 5:case 27:var G=$t;if(I?tw(I):G.stateNode.complete){ln=0,Kr=null;var J=G.sibling;if(J!==null)$t=J;else{var pe=G.return;pe!==null?($t=pe,ud(pe)):$t=null}break t}}ln=0,Kr=null,Qa(i,o,w,5);break;case 6:ln=0,Kr=null,Qa(i,o,w,6);break;case 8:Lg(),Dn=6;break e;default:throw Error(r(462))}}GL();break}catch(Te){f1(i,Te)}while(!0);return rs=Bo=null,H.H=p,H.A=x,nn=u,$t!==null?0:(yn=null,Vt=0,_f(),Dn)}function GL(){for(;$t!==null&&!ye();)m1($t)}function m1(i){var o=$S(i.alternate,i,ps);i.memoizedProps=i.pendingProps,o===null?ud(i):$t=o}function g1(i){var o=i,u=o.alternate;switch(o.tag){case 15:case 0:o=MS(u,o,o.pendingProps,o.type,void 0,Vt);break;case 11:o=MS(u,o,o.pendingProps,o.type.render,o.ref,Vt);break;case 5:Zm(o);default:FS(u,o),o=$t=hk(o,ps),o=$S(u,o,ps)}i.memoizedProps=i.pendingProps,o===null?ud(i):$t=o}function Qa(i,o,u,p){rs=Bo=null,Zm(o),Fa=null,du=0;var x=o.return;try{if(DL(i,x,o,u,Vt)){Dn=1,Xf(i,oi(u,i.current)),$t=null;return}}catch(w){if(x!==null)throw $t=x,w;Dn=1,Xf(i,oi(u,i.current)),$t=null;return}o.flags&32768?(Kt||p===1?i=!0:Ka||(Vt&536870912)!==0?i=!1:(Zs=i=!0,(p===2||p===9||p===3||p===6)&&(p=Gr.current,p!==null&&p.tag===13&&(p.flags|=16384))),b1(o,i)):ud(o)}function ud(i){var o=i;do{if((o.flags&32768)!==0){b1(o,Zs);return}i=o.return;var u=zL(o.alternate,o,ps);if(u!==null){$t=u;return}if(o=o.sibling,o!==null){$t=o;return}$t=o=i}while(o!==null);Dn===0&&(Dn=5)}function b1(i,o){do{var u=PL(i.alternate,i);if(u!==null){u.flags&=32767,$t=u;return}if(u=i.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!o&&(i=i.sibling,i!==null)){$t=i;return}$t=i=u}while(i!==null);Dn=6,$t=null}function y1(i,o,u,p,x,w,I,G,J){i.cancelPendingCommit=null;do cd();while(Xn!==0);if((nn&6)!==0)throw Error(r(327));if(o!==null){if(o===i.current)throw Error(r(177));if(w=o.lanes|o.childLanes,w|=Em,He(i,u,w,I,G,J),i===yn&&($t=yn=null,Vt=0),Xa=o,eo=i,hs=u,Ig=w,Mg=x,a1=p,(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?(i.callbackNode=null,i.callbackPriority=0,XL(we,function(){return w1(),null})):(i.callbackNode=null,i.callbackPriority=0),p=(o.flags&13878)!==0,(o.subtreeFlags&13878)!==0||p){p=H.T,H.T=null,x=K.p,K.p=2,I=nn,nn|=4;try{$L(i,o,u)}finally{nn=I,K.p=x,H.T=p}}Xn=1,v1(),x1(),k1()}}function v1(){if(Xn===1){Xn=0;var i=eo,o=Xa,u=(o.flags&13878)!==0;if((o.subtreeFlags&13878)!==0||u){u=H.T,H.T=null;var p=K.p;K.p=2;var x=nn;nn|=4;try{JS(o,i);var w=Kg,I=sk(i.containerInfo),G=w.focusedElem,J=w.selectionRange;if(I!==G&&G&&G.ownerDocument&&ik(G.ownerDocument.documentElement,G)){if(J!==null&&vm(G)){var pe=J.start,Te=J.end;if(Te===void 0&&(Te=pe),"selectionStart"in G)G.selectionStart=pe,G.selectionEnd=Math.min(Te,G.value.length);else{var Oe=G.ownerDocument||document,he=Oe&&Oe.defaultView||window;if(he.getSelection){var ve=he.getSelection(),et=G.textContent.length,kt=Math.min(J.start,et),dn=J.end===void 0?kt:Math.min(J.end,et);!ve.extend&&kt>dn&&(I=dn,dn=kt,kt=I);var ae=rk(G,kt),ie=rk(G,dn);if(ae&&ie&&(ve.rangeCount!==1||ve.anchorNode!==ae.node||ve.anchorOffset!==ae.offset||ve.focusNode!==ie.node||ve.focusOffset!==ie.offset)){var de=Oe.createRange();de.setStart(ae.node,ae.offset),ve.removeAllRanges(),kt>dn?(ve.addRange(de),ve.extend(ie.node,ie.offset)):(de.setEnd(ie.node,ie.offset),ve.addRange(de))}}}}for(Oe=[],ve=G;ve=ve.parentNode;)ve.nodeType===1&&Oe.push({element:ve,left:ve.scrollLeft,top:ve.scrollTop});for(typeof G.focus=="function"&&G.focus(),G=0;G<Oe.length;G++){var Ce=Oe[G];Ce.element.scrollLeft=Ce.left,Ce.element.scrollTop=Ce.top}}Sd=!!Wg,Kg=Wg=null}finally{nn=x,K.p=p,H.T=u}}i.current=o,Xn=2}}function x1(){if(Xn===2){Xn=0;var i=eo,o=Xa,u=(o.flags&8772)!==0;if((o.subtreeFlags&8772)!==0||u){u=H.T,H.T=null;var p=K.p;K.p=2;var x=nn;nn|=4;try{KS(i,o.alternate,o)}finally{nn=x,K.p=p,H.T=u}}Xn=3}}function k1(){if(Xn===4||Xn===3){Xn=0,_e();var i=eo,o=Xa,u=hs,p=a1;(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?Xn=5:(Xn=0,Xa=eo=null,S1(i,i.pendingLanes));var x=i.pendingLanes;if(x===0&&(Js=null),We(u),o=o.stateNode,xt&&typeof xt.onCommitFiberRoot=="function")try{xt.onCommitFiberRoot(Je,o,void 0,(o.current.flags&128)===128)}catch{}if(p!==null){o=H.T,x=K.p,K.p=2,H.T=null;try{for(var w=i.onRecoverableError,I=0;I<p.length;I++){var G=p[I];w(G.value,{componentStack:G.stack})}}finally{H.T=o,K.p=x}}(hs&3)!==0&&cd(),Pi(i),x=i.pendingLanes,(u&261930)!==0&&(x&42)!==0?i===Dg?Au++:(Au=0,Dg=i):Au=0,Nu(0)}}function S1(i,o){(i.pooledCacheLanes&=o)===0&&(o=i.pooledCache,o!=null&&(i.pooledCache=null,cu(o)))}function cd(){return v1(),x1(),k1(),w1()}function w1(){if(Xn!==5)return!1;var i=eo,o=Ig;Ig=0;var u=We(hs),p=H.T,x=K.p;try{K.p=32>u?32:u,H.T=null,u=Mg,Mg=null;var w=eo,I=hs;if(Xn=0,Xa=eo=null,hs=0,(nn&6)!==0)throw Error(r(331));var G=nn;if(nn|=4,i1(w.current),t1(w,w.current,I,u),nn=G,Nu(0,!1),xt&&typeof xt.onPostCommitFiberRoot=="function")try{xt.onPostCommitFiberRoot(Je,w)}catch{}return!0}finally{K.p=x,H.T=p,S1(i,o)}}function E1(i,o,u){o=oi(u,o),o=dg(i.stateNode,o,2),i=Ws(i,o,2),i!==null&&(lt(i,2),Pi(i))}function un(i,o,u){if(i.tag===3)E1(i,i,u);else for(;o!==null;){if(o.tag===3){E1(o,i,u);break}else if(o.tag===1){var p=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof p.componentDidCatch=="function"&&(Js===null||!Js.has(p))){i=oi(u,i),u=TS(2),p=Ws(o,u,2),p!==null&&(RS(u,p,o,i),lt(p,2),Pi(p));break}}o=o.return}}function zg(i,o,u){var p=i.pingCache;if(p===null){p=i.pingCache=new UL;var x=new Set;p.set(o,x)}else x=p.get(o),x===void 0&&(x=new Set,p.set(o,x));x.has(u)||(Ag=!0,x.add(u),i=WL.bind(null,i,o,u),o.then(i,i))}function WL(i,o,u){var p=i.pingCache;p!==null&&p.delete(o),i.pingedLanes|=i.suspendedLanes&u,i.warmLanes&=~u,yn===i&&(Vt&u)===u&&(Dn===4||Dn===3&&(Vt&62914560)===Vt&&300>ee()-id?(nn&2)===0&&Za(i,0):Ng|=u,Ya===Vt&&(Ya=0)),Pi(i)}function T1(i,o){o===0&&(o=Xe()),i=zo(i,o),i!==null&&(lt(i,o),Pi(i))}function KL(i){var o=i.memoizedState,u=0;o!==null&&(u=o.retryLane),T1(i,u)}function YL(i,o){var u=0;switch(i.tag){case 31:case 13:var p=i.stateNode,x=i.memoizedState;x!==null&&(u=x.retryLane);break;case 19:p=i.stateNode;break;case 22:p=i.stateNode._retryCache;break;default:throw Error(r(314))}p!==null&&p.delete(o),T1(i,u)}function XL(i,o){return ze(i,o)}var fd=null,Ja=null,Pg=!1,dd=!1,$g=!1,no=0;function Pi(i){i!==Ja&&i.next===null&&(Ja===null?fd=Ja=i:Ja=Ja.next=i),dd=!0,Pg||(Pg=!0,QL())}function Nu(i,o){if(!$g&&dd){$g=!0;do for(var u=!1,p=fd;p!==null;){if(i!==0){var x=p.pendingLanes;if(x===0)var w=0;else{var I=p.suspendedLanes,G=p.pingedLanes;w=(1<<31-nt(42|i)+1)-1,w&=x&~(I&~G),w=w&201326741?w&201326741|1:w?w|2:0}w!==0&&(u=!0,A1(p,w))}else w=Vt,w=Z(p,p===yn?w:0,p.cancelPendingCommit!==null||p.timeoutHandle!==-1),(w&3)===0||me(p,w)||(u=!0,A1(p,w));p=p.next}while(u);$g=!1}}function ZL(){R1()}function R1(){dd=Pg=!1;var i=0;no!==0&&lj()&&(i=no);for(var o=ee(),u=null,p=fd;p!==null;){var x=p.next,w=C1(p,o);w===0?(p.next=null,u===null?fd=x:u.next=x,x===null&&(Ja=u)):(u=p,(i!==0||(w&3)!==0)&&(dd=!0)),p=x}Xn!==0&&Xn!==5||Nu(i),no!==0&&(no=0)}function C1(i,o){for(var u=i.suspendedLanes,p=i.pingedLanes,x=i.expirationTimes,w=i.pendingLanes&-62914561;0<w;){var I=31-nt(w),G=1<<I,J=x[I];J===-1?((G&u)===0||(G&p)!==0)&&(x[I]=Le(G,o)):J<=o&&(i.expiredLanes|=G),w&=~G}if(o=yn,u=Vt,u=Z(i,i===o?u:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),p=i.callbackNode,u===0||i===o&&(ln===2||ln===9)||i.cancelPendingCommit!==null)return p!==null&&p!==null&&Fe(p),i.callbackNode=null,i.callbackPriority=0;if((u&3)===0||me(i,u)){if(o=u&-u,o===i.callbackPriority)return o;switch(p!==null&&Fe(p),We(u)){case 2:case 8:u=re;break;case 32:u=we;break;case 268435456:u=Ye;break;default:u=we}return p=_1.bind(null,i),u=ze(u,p),i.callbackPriority=o,i.callbackNode=u,o}return p!==null&&p!==null&&Fe(p),i.callbackPriority=2,i.callbackNode=null,2}function _1(i,o){if(Xn!==0&&Xn!==5)return i.callbackNode=null,i.callbackPriority=0,null;var u=i.callbackNode;if(cd()&&i.callbackNode!==u)return null;var p=Vt;return p=Z(i,i===yn?p:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),p===0?null:(u1(i,p,o),C1(i,ee()),i.callbackNode!=null&&i.callbackNode===u?_1.bind(null,i):null)}function A1(i,o){if(cd())return null;u1(i,o,!0)}function QL(){cj(function(){(nn&6)!==0?ze(Q,ZL):R1()})}function Bg(){if(no===0){var i=Pa;i===0&&(i=ft,ft<<=1,(ft&261888)===0&&(ft=256)),no=i}return no}function N1(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:$s(""+i)}function O1(i,o){var u=o.ownerDocument.createElement("input");return u.name=o.name,u.value=o.value,i.id&&u.setAttribute("form",i.id),o.parentNode.insertBefore(u,o),i=new FormData(i),u.parentNode.removeChild(u),i}function JL(i,o,u,p,x){if(o==="submit"&&u&&u.stateNode===x){var w=N1((x[Qt]||null).action),I=p.submitter;I&&(o=(o=I[Qt]||null)?N1(o.formAction):I.getAttribute("formAction"),o!==null&&(w=o,I=null));var G=new Ef("action","action",null,p,x);i.push({event:G,listeners:[{instance:null,listener:function(){if(p.defaultPrevented){if(no!==0){var J=I?O1(x,I):new FormData(x);og(u,{pending:!0,data:J,method:x.method,action:w},null,J)}}else typeof w=="function"&&(G.preventDefault(),J=I?O1(x,I):new FormData(x),og(u,{pending:!0,data:J,method:x.method,action:w},w,J))},currentTarget:x}]})}}for(var Fg=0;Fg<wm.length;Fg++){var Ug=wm[Fg],ej=Ug.toLowerCase(),tj=Ug[0].toUpperCase()+Ug.slice(1);xi(ej,"on"+tj)}xi(lk,"onAnimationEnd"),xi(uk,"onAnimationIteration"),xi(ck,"onAnimationStart"),xi("dblclick","onDoubleClick"),xi("focusin","onFocus"),xi("focusout","onBlur"),xi(bL,"onTransitionRun"),xi(yL,"onTransitionStart"),xi(vL,"onTransitionCancel"),xi(fk,"onTransitionEnd"),$e("onMouseEnter",["mouseout","mouseover"]),$e("onMouseLeave",["mouseout","mouseover"]),$e("onPointerEnter",["pointerout","pointerover"]),$e("onPointerLeave",["pointerout","pointerover"]),Qi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Qi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Qi("onBeforeInput",["compositionend","keypress","textInput","paste"]),Qi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Qi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Qi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ou="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(" "),nj=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ou));function I1(i,o){o=(o&4)!==0;for(var u=0;u<i.length;u++){var p=i[u],x=p.event;p=p.listeners;e:{var w=void 0;if(o)for(var I=p.length-1;0<=I;I--){var G=p[I],J=G.instance,pe=G.currentTarget;if(G=G.listener,J!==w&&x.isPropagationStopped())break e;w=G,x.currentTarget=pe;try{w(x)}catch(Te){Cf(Te)}x.currentTarget=null,w=J}else for(I=0;I<p.length;I++){if(G=p[I],J=G.instance,pe=G.currentTarget,G=G.listener,J!==w&&x.isPropagationStopped())break e;w=G,x.currentTarget=pe;try{w(x)}catch(Te){Cf(Te)}x.currentTarget=null,w=J}}}}function Bt(i,o){var u=o[_n];u===void 0&&(u=o[_n]=new Set);var p=i+"__bubble";u.has(p)||(M1(o,i,2,!1),u.add(p))}function qg(i,o,u){var p=0;o&&(p|=4),M1(u,i,p,o)}var pd="_reactListening"+Math.random().toString(36).slice(2);function Hg(i){if(!i[pd]){i[pd]=!0,gf.forEach(function(u){u!=="selectionchange"&&(nj.has(u)||qg(u,!1,i),qg(u,!0,i))});var o=i.nodeType===9?i:i.ownerDocument;o===null||o[pd]||(o[pd]=!0,qg("selectionchange",!1,o))}}function M1(i,o,u,p){switch(lw(o)){case 2:var x=Nj;break;case 8:x=Oj;break;default:x=sb}u=x.bind(null,o,u,i),x=void 0,!cm||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(x=!0),p?x!==void 0?i.addEventListener(o,u,{capture:!0,passive:x}):i.addEventListener(o,u,!0):x!==void 0?i.addEventListener(o,u,{passive:x}):i.addEventListener(o,u,!1)}function Vg(i,o,u,p,x){var w=p;if((o&1)===0&&(o&2)===0&&p!==null)e:for(;;){if(p===null)return;var I=p.tag;if(I===3||I===4){var G=p.stateNode.containerInfo;if(G===x)break;if(I===4)for(I=p.return;I!==null;){var J=I.tag;if((J===3||J===4)&&I.stateNode.containerInfo===x)return;I=I.return}for(;G!==null;){if(I=tr(G),I===null)return;if(J=I.tag,J===5||J===6||J===26||J===27){p=w=I;continue e}G=G.parentNode}}p=p.return}xf(function(){var pe=w,Te=Nt(u),Oe=[];e:{var he=dk.get(i);if(he!==void 0){var ve=Ef,et=i;switch(i){case"keypress":if(Sf(u)===0)break e;case"keydown":case"keyup":ve=Y2;break;case"focusin":et="focus",ve=hm;break;case"focusout":et="blur",ve=hm;break;case"beforeblur":case"afterblur":ve=hm;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ve=F0;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ve=z2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ve=Q2;break;case lk:case uk:case ck:ve=B2;break;case fk:ve=eL;break;case"scroll":case"scrollend":ve=L2;break;case"wheel":ve=nL;break;case"copy":case"cut":case"paste":ve=U2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ve=q0;break;case"toggle":case"beforetoggle":ve=iL}var kt=(o&4)!==0,dn=!kt&&(i==="scroll"||i==="scrollend"),ae=kt?he!==null?he+"Capture":null:he;kt=[];for(var ie=pe,de;ie!==null;){var Ce=ie;if(de=Ce.stateNode,Ce=Ce.tag,Ce!==5&&Ce!==26&&Ce!==27||de===null||ae===null||(Ce=Jl(ie,ae),Ce!=null&&kt.push(Iu(ie,Ce,de))),dn)break;ie=ie.return}0<kt.length&&(he=new ve(he,et,null,u,Te),Oe.push({event:he,listeners:kt}))}}if((o&7)===0){e:{if(he=i==="mouseover"||i==="pointerover",ve=i==="mouseout"||i==="pointerout",he&&u!==st&&(et=u.relatedTarget||u.fromElement)&&(tr(et)||et[rn]))break e;if((ve||he)&&(he=Te.window===Te?Te:(he=Te.ownerDocument)?he.defaultView||he.parentWindow:window,ve?(et=u.relatedTarget||u.toElement,ve=pe,et=et?tr(et):null,et!==null&&(dn=a(et),kt=et.tag,et!==dn||kt!==5&&kt!==27&&kt!==6)&&(et=null)):(ve=null,et=pe),ve!==et)){if(kt=F0,Ce="onMouseLeave",ae="onMouseEnter",ie="mouse",(i==="pointerout"||i==="pointerover")&&(kt=q0,Ce="onPointerLeave",ae="onPointerEnter",ie="pointer"),dn=ve==null?he:js(ve),de=et==null?he:js(et),he=new kt(Ce,ie+"leave",ve,u,Te),he.target=dn,he.relatedTarget=de,Ce=null,tr(Te)===pe&&(kt=new kt(ae,ie+"enter",et,u,Te),kt.target=de,kt.relatedTarget=dn,Ce=kt),dn=Ce,ve&&et)t:{for(kt=rj,ae=ve,ie=et,de=0,Ce=ae;Ce;Ce=kt(Ce))de++;Ce=0;for(var ut=ie;ut;ut=kt(ut))Ce++;for(;0<de-Ce;)ae=kt(ae),de--;for(;0<Ce-de;)ie=kt(ie),Ce--;for(;de--;){if(ae===ie||ie!==null&&ae===ie.alternate){kt=ae;break t}ae=kt(ae),ie=kt(ie)}kt=null}else kt=null;ve!==null&&D1(Oe,he,ve,kt,!1),et!==null&&dn!==null&&D1(Oe,dn,et,kt,!0)}}e:{if(he=pe?js(pe):window,ve=he.nodeName&&he.nodeName.toLowerCase(),ve==="select"||ve==="input"&&he.type==="file")var Jt=Z0;else if(Y0(he))if(Q0)Jt=hL;else{Jt=dL;var ot=fL}else ve=he.nodeName,!ve||ve.toLowerCase()!=="input"||he.type!=="checkbox"&&he.type!=="radio"?pe&&Ps(pe.elementType)&&(Jt=Z0):Jt=pL;if(Jt&&(Jt=Jt(i,pe))){X0(Oe,Jt,u,Te);break e}ot&&ot(i,he,pe),i==="focusout"&&pe&&he.type==="number"&&pe.memoizedProps.value!=null&&Ca(he,"number",he.value)}switch(ot=pe?js(pe):window,i){case"focusin":(Y0(ot)||ot.contentEditable==="true")&&(Na=ot,xm=pe,au=null);break;case"focusout":au=xm=Na=null;break;case"mousedown":km=!0;break;case"contextmenu":case"mouseup":case"dragend":km=!1,ok(Oe,u,Te);break;case"selectionchange":if(gL)break;case"keydown":case"keyup":ok(Oe,u,Te)}var It;if(gm)e:{switch(i){case"compositionstart":var Gt="onCompositionStart";break e;case"compositionend":Gt="onCompositionEnd";break e;case"compositionupdate":Gt="onCompositionUpdate";break e}Gt=void 0}else Aa?W0(i,u)&&(Gt="onCompositionEnd"):i==="keydown"&&u.keyCode===229&&(Gt="onCompositionStart");Gt&&(H0&&u.locale!=="ko"&&(Aa||Gt!=="onCompositionStart"?Gt==="onCompositionEnd"&&Aa&&(It=$0()):(Bs=Te,fm="value"in Bs?Bs.value:Bs.textContent,Aa=!0)),ot=hd(pe,Gt),0<ot.length&&(Gt=new U0(Gt,i,null,u,Te),Oe.push({event:Gt,listeners:ot}),It?Gt.data=It:(It=K0(u),It!==null&&(Gt.data=It)))),(It=oL?aL(i,u):lL(i,u))&&(Gt=hd(pe,"onBeforeInput"),0<Gt.length&&(ot=new U0("onBeforeInput","beforeinput",null,u,Te),Oe.push({event:ot,listeners:Gt}),ot.data=It)),JL(Oe,i,pe,u,Te)}I1(Oe,o)})}function Iu(i,o,u){return{instance:i,listener:o,currentTarget:u}}function hd(i,o){for(var u=o+"Capture",p=[];i!==null;){var x=i,w=x.stateNode;if(x=x.tag,x!==5&&x!==26&&x!==27||w===null||(x=Jl(i,u),x!=null&&p.unshift(Iu(i,x,w)),x=Jl(i,o),x!=null&&p.push(Iu(i,x,w))),i.tag===3)return p;i=i.return}return[]}function rj(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function D1(i,o,u,p,x){for(var w=o._reactName,I=[];u!==null&&u!==p;){var G=u,J=G.alternate,pe=G.stateNode;if(G=G.tag,J!==null&&J===p)break;G!==5&&G!==26&&G!==27||pe===null||(J=pe,x?(pe=Jl(u,w),pe!=null&&I.unshift(Iu(u,pe,J))):x||(pe=Jl(u,w),pe!=null&&I.push(Iu(u,pe,J)))),u=u.return}I.length!==0&&i.push({event:o,listeners:I})}var ij=/\r\n?/g,sj=/\u0000|\uFFFD/g;function L1(i){return(typeof i=="string"?i:""+i).replace(ij,`
9
- `).replace(sj,"")}function j1(i,o){return o=L1(o),L1(i)===o}function fn(i,o,u,p,x,w){switch(u){case"children":typeof p=="string"?o==="body"||o==="textarea"&&p===""||wt(i,p):(typeof p=="number"||typeof p=="bigint")&&o!=="body"&&wt(i,""+p);break;case"className":Ur(i,"class",p);break;case"tabIndex":Ur(i,"tabindex",p);break;case"dir":case"role":case"viewBox":case"width":case"height":Ur(i,u,p);break;case"style":an(i,p,w);break;case"data":if(o!=="object"){Ur(i,"data",p);break}case"src":case"href":if(p===""&&(o!=="a"||u!=="href")){i.removeAttribute(u);break}if(p==null||typeof p=="function"||typeof p=="symbol"||typeof p=="boolean"){i.removeAttribute(u);break}p=$s(""+p),i.setAttribute(u,p);break;case"action":case"formAction":if(typeof p=="function"){i.setAttribute(u,"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 w=="function"&&(u==="formAction"?(o!=="input"&&fn(i,o,"name",x.name,x,null),fn(i,o,"formEncType",x.formEncType,x,null),fn(i,o,"formMethod",x.formMethod,x,null),fn(i,o,"formTarget",x.formTarget,x,null)):(fn(i,o,"encType",x.encType,x,null),fn(i,o,"method",x.method,x,null),fn(i,o,"target",x.target,x,null)));if(p==null||typeof p=="symbol"||typeof p=="boolean"){i.removeAttribute(u);break}p=$s(""+p),i.setAttribute(u,p);break;case"onClick":p!=null&&(i.onclick=Ge);break;case"onScroll":p!=null&&Bt("scroll",i);break;case"onScrollEnd":p!=null&&Bt("scrollend",i);break;case"dangerouslySetInnerHTML":if(p!=null){if(typeof p!="object"||!("__html"in p))throw Error(r(61));if(u=p.__html,u!=null){if(x.children!=null)throw Error(r(60));i.innerHTML=u}}break;case"multiple":i.multiple=p&&typeof p!="function"&&typeof p!="symbol";break;case"muted":i.muted=p&&typeof p!="function"&&typeof p!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(p==null||typeof p=="function"||typeof p=="boolean"||typeof p=="symbol"){i.removeAttribute("xlink:href");break}u=$s(""+p),i.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",u);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":p!=null&&typeof p!="function"&&typeof p!="symbol"?i.setAttribute(u,""+p):i.removeAttribute(u);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":p&&typeof p!="function"&&typeof p!="symbol"?i.setAttribute(u,""):i.removeAttribute(u);break;case"capture":case"download":p===!0?i.setAttribute(u,""):p!==!1&&p!=null&&typeof p!="function"&&typeof p!="symbol"?i.setAttribute(u,p):i.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":p!=null&&typeof p!="function"&&typeof p!="symbol"&&!isNaN(p)&&1<=p?i.setAttribute(u,p):i.removeAttribute(u);break;case"rowSpan":case"start":p==null||typeof p=="function"||typeof p=="symbol"||isNaN(p)?i.removeAttribute(u):i.setAttribute(u,p);break;case"popover":Bt("beforetoggle",i),Bt("toggle",i),ur(i,"popover",p);break;case"xlinkActuate":Rr(i,"http://www.w3.org/1999/xlink","xlink:actuate",p);break;case"xlinkArcrole":Rr(i,"http://www.w3.org/1999/xlink","xlink:arcrole",p);break;case"xlinkRole":Rr(i,"http://www.w3.org/1999/xlink","xlink:role",p);break;case"xlinkShow":Rr(i,"http://www.w3.org/1999/xlink","xlink:show",p);break;case"xlinkTitle":Rr(i,"http://www.w3.org/1999/xlink","xlink:title",p);break;case"xlinkType":Rr(i,"http://www.w3.org/1999/xlink","xlink:type",p);break;case"xmlBase":Rr(i,"http://www.w3.org/XML/1998/namespace","xml:base",p);break;case"xmlLang":Rr(i,"http://www.w3.org/XML/1998/namespace","xml:lang",p);break;case"xmlSpace":Rr(i,"http://www.w3.org/XML/1998/namespace","xml:space",p);break;case"is":ur(i,"is",p);break;case"innerText":case"textContent":break;default:(!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(u=Ji.get(u)||u,ur(i,u,p))}}function Gg(i,o,u,p,x,w){switch(u){case"style":an(i,p,w);break;case"dangerouslySetInnerHTML":if(p!=null){if(typeof p!="object"||!("__html"in p))throw Error(r(61));if(u=p.__html,u!=null){if(x.children!=null)throw Error(r(60));i.innerHTML=u}}break;case"children":typeof p=="string"?wt(i,p):(typeof p=="number"||typeof p=="bigint")&&wt(i,""+p);break;case"onScroll":p!=null&&Bt("scroll",i);break;case"onScrollEnd":p!=null&&Bt("scrollend",i);break;case"onClick":p!=null&&(i.onclick=Ge);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Io.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(x=u.endsWith("Capture"),o=u.slice(2,x?u.length-7:void 0),w=i[Qt]||null,w=w!=null?w[u]:null,typeof w=="function"&&i.removeEventListener(o,w,x),typeof p=="function")){typeof w!="function"&&w!==null&&(u in i?i[u]=null:i.hasAttribute(u)&&i.removeAttribute(u)),i.addEventListener(o,p,x);break e}u in i?i[u]=p:p===!0?i.setAttribute(u,""):ur(i,u,p)}}}function or(i,o,u){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Bt("error",i),Bt("load",i);var p=!1,x=!1,w;for(w in u)if(u.hasOwnProperty(w)){var I=u[w];if(I!=null)switch(w){case"src":p=!0;break;case"srcSet":x=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,o));default:fn(i,o,w,I,u,null)}}x&&fn(i,o,"srcSet",u.srcSet,u,null),p&&fn(i,o,"src",u.src,u,null);return;case"input":Bt("invalid",i);var G=w=I=x=null,J=null,pe=null;for(p in u)if(u.hasOwnProperty(p)){var Te=u[p];if(Te!=null)switch(p){case"name":x=Te;break;case"type":I=Te;break;case"checked":J=Te;break;case"defaultChecked":pe=Te;break;case"value":w=Te;break;case"defaultValue":G=Te;break;case"children":case"dangerouslySetInnerHTML":if(Te!=null)throw Error(r(137,o));break;default:fn(i,o,p,Te,u,null)}}Mo(i,w,G,J,pe,I,x,!1);return;case"select":Bt("invalid",i),p=I=w=null;for(x in u)if(u.hasOwnProperty(x)&&(G=u[x],G!=null))switch(x){case"value":w=G;break;case"defaultValue":I=G;break;case"multiple":p=G;default:fn(i,o,x,G,u,null)}o=w,u=I,i.multiple=!!p,o!=null?nr(i,!!p,o,!1):u!=null&&nr(i,!!p,u,!0);return;case"textarea":Bt("invalid",i),w=x=p=null;for(I in u)if(u.hasOwnProperty(I)&&(G=u[I],G!=null))switch(I){case"value":p=G;break;case"defaultValue":x=G;break;case"children":w=G;break;case"dangerouslySetInnerHTML":if(G!=null)throw Error(r(91));break;default:fn(i,o,I,G,u,null)}_a(i,p,x,w);return;case"option":for(J in u)u.hasOwnProperty(J)&&(p=u[J],p!=null)&&(J==="selected"?i.selected=p&&typeof p!="function"&&typeof p!="symbol":fn(i,o,J,p,u,null));return;case"dialog":Bt("beforetoggle",i),Bt("toggle",i),Bt("cancel",i),Bt("close",i);break;case"iframe":case"object":Bt("load",i);break;case"video":case"audio":for(p=0;p<Ou.length;p++)Bt(Ou[p],i);break;case"image":Bt("error",i),Bt("load",i);break;case"details":Bt("toggle",i);break;case"embed":case"source":case"link":Bt("error",i),Bt("load",i);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(pe in u)if(u.hasOwnProperty(pe)&&(p=u[pe],p!=null))switch(pe){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,o));default:fn(i,o,pe,p,u,null)}return;default:if(Ps(o)){for(Te in u)u.hasOwnProperty(Te)&&(p=u[Te],p!==void 0&&Gg(i,o,Te,p,u,void 0));return}}for(G in u)u.hasOwnProperty(G)&&(p=u[G],p!=null&&fn(i,o,G,p,u,null))}function oj(i,o,u,p){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var x=null,w=null,I=null,G=null,J=null,pe=null,Te=null;for(ve in u){var Oe=u[ve];if(u.hasOwnProperty(ve)&&Oe!=null)switch(ve){case"checked":break;case"value":break;case"defaultValue":J=Oe;default:p.hasOwnProperty(ve)||fn(i,o,ve,null,p,Oe)}}for(var he in p){var ve=p[he];if(Oe=u[he],p.hasOwnProperty(he)&&(ve!=null||Oe!=null))switch(he){case"type":w=ve;break;case"name":x=ve;break;case"checked":pe=ve;break;case"defaultChecked":Te=ve;break;case"value":I=ve;break;case"defaultValue":G=ve;break;case"children":case"dangerouslySetInnerHTML":if(ve!=null)throw Error(r(137,o));break;default:ve!==Oe&&fn(i,o,he,ve,p,Oe)}}Xl(i,I,G,J,pe,Te,w,x);return;case"select":ve=I=G=he=null;for(w in u)if(J=u[w],u.hasOwnProperty(w)&&J!=null)switch(w){case"value":break;case"multiple":ve=J;default:p.hasOwnProperty(w)||fn(i,o,w,null,p,J)}for(x in p)if(w=p[x],J=u[x],p.hasOwnProperty(x)&&(w!=null||J!=null))switch(x){case"value":he=w;break;case"defaultValue":G=w;break;case"multiple":I=w;default:w!==J&&fn(i,o,x,w,p,J)}o=G,u=I,p=ve,he!=null?nr(i,!!u,he,!1):!!p!=!!u&&(o!=null?nr(i,!!u,o,!0):nr(i,!!u,u?[]:"",!1));return;case"textarea":ve=he=null;for(G in u)if(x=u[G],u.hasOwnProperty(G)&&x!=null&&!p.hasOwnProperty(G))switch(G){case"value":break;case"children":break;default:fn(i,o,G,null,p,x)}for(I in p)if(x=p[I],w=u[I],p.hasOwnProperty(I)&&(x!=null||w!=null))switch(I){case"value":he=x;break;case"defaultValue":ve=x;break;case"children":break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(r(91));break;default:x!==w&&fn(i,o,I,x,p,w)}yf(i,he,ve);return;case"option":for(var et in u)he=u[et],u.hasOwnProperty(et)&&he!=null&&!p.hasOwnProperty(et)&&(et==="selected"?i.selected=!1:fn(i,o,et,null,p,he));for(J in p)he=p[J],ve=u[J],p.hasOwnProperty(J)&&he!==ve&&(he!=null||ve!=null)&&(J==="selected"?i.selected=he&&typeof he!="function"&&typeof he!="symbol":fn(i,o,J,he,p,ve));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 kt in u)he=u[kt],u.hasOwnProperty(kt)&&he!=null&&!p.hasOwnProperty(kt)&&fn(i,o,kt,null,p,he);for(pe in p)if(he=p[pe],ve=u[pe],p.hasOwnProperty(pe)&&he!==ve&&(he!=null||ve!=null))switch(pe){case"children":case"dangerouslySetInnerHTML":if(he!=null)throw Error(r(137,o));break;default:fn(i,o,pe,he,p,ve)}return;default:if(Ps(o)){for(var dn in u)he=u[dn],u.hasOwnProperty(dn)&&he!==void 0&&!p.hasOwnProperty(dn)&&Gg(i,o,dn,void 0,p,he);for(Te in p)he=p[Te],ve=u[Te],!p.hasOwnProperty(Te)||he===ve||he===void 0&&ve===void 0||Gg(i,o,Te,he,p,ve);return}}for(var ae in u)he=u[ae],u.hasOwnProperty(ae)&&he!=null&&!p.hasOwnProperty(ae)&&fn(i,o,ae,null,p,he);for(Oe in p)he=p[Oe],ve=u[Oe],!p.hasOwnProperty(Oe)||he===ve||he==null&&ve==null||fn(i,o,Oe,he,p,ve)}function z1(i){switch(i){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function aj(){if(typeof performance.getEntriesByType=="function"){for(var i=0,o=0,u=performance.getEntriesByType("resource"),p=0;p<u.length;p++){var x=u[p],w=x.transferSize,I=x.initiatorType,G=x.duration;if(w&&G&&z1(I)){for(I=0,G=x.responseEnd,p+=1;p<u.length;p++){var J=u[p],pe=J.startTime;if(pe>G)break;var Te=J.transferSize,Oe=J.initiatorType;Te&&z1(Oe)&&(J=J.responseEnd,I+=Te*(J<G?1:(G-pe)/(J-pe)))}if(--p,o+=8*(w+I)/(x.duration/1e3),i++,10<i)break}}if(0<i)return o/i/1e6}return navigator.connection&&(i=navigator.connection.downlink,typeof i=="number")?i:5}var Wg=null,Kg=null;function md(i){return i.nodeType===9?i:i.ownerDocument}function P1(i){switch(i){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function $1(i,o){if(i===0)switch(o){case"svg":return 1;case"math":return 2;default:return 0}return i===1&&o==="foreignObject"?0:i}function Yg(i,o){return i==="textarea"||i==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.children=="bigint"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var Xg=null;function lj(){var i=window.event;return i&&i.type==="popstate"?i===Xg?!1:(Xg=i,!0):(Xg=null,!1)}var B1=typeof setTimeout=="function"?setTimeout:void 0,uj=typeof clearTimeout=="function"?clearTimeout:void 0,F1=typeof Promise=="function"?Promise:void 0,cj=typeof queueMicrotask=="function"?queueMicrotask:typeof F1<"u"?function(i){return F1.resolve(null).then(i).catch(fj)}:B1;function fj(i){setTimeout(function(){throw i})}function ro(i){return i==="head"}function U1(i,o){var u=o,p=0;do{var x=u.nextSibling;if(i.removeChild(u),x&&x.nodeType===8)if(u=x.data,u==="/$"||u==="/&"){if(p===0){i.removeChild(x),rl(o);return}p--}else if(u==="$"||u==="$?"||u==="$~"||u==="$!"||u==="&")p++;else if(u==="html")Mu(i.ownerDocument.documentElement);else if(u==="head"){u=i.ownerDocument.head,Mu(u);for(var w=u.firstChild;w;){var I=w.nextSibling,G=w.nodeName;w[ri]||G==="SCRIPT"||G==="STYLE"||G==="LINK"&&w.rel.toLowerCase()==="stylesheet"||u.removeChild(w),w=I}}else u==="body"&&Mu(i.ownerDocument.body);u=x}while(u);rl(o)}function q1(i,o){var u=i;i=0;do{var p=u.nextSibling;if(u.nodeType===1?o?(u._stashedDisplay=u.style.display,u.style.display="none"):(u.style.display=u._stashedDisplay||"",u.getAttribute("style")===""&&u.removeAttribute("style")):u.nodeType===3&&(o?(u._stashedText=u.nodeValue,u.nodeValue=""):u.nodeValue=u._stashedText||""),p&&p.nodeType===8)if(u=p.data,u==="/$"){if(i===0)break;i--}else u!=="$"&&u!=="$?"&&u!=="$~"&&u!=="$!"||i++;u=p}while(u)}function Zg(i){var o=i.firstChild;for(o&&o.nodeType===10&&(o=o.nextSibling);o;){var u=o;switch(o=o.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":Zg(u),Fr(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}i.removeChild(u)}}function dj(i,o,u,p){for(;i.nodeType===1;){var x=u;if(i.nodeName.toLowerCase()!==o.toLowerCase()){if(!p&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(p){if(!i[ri])switch(o){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(w=i.getAttribute("rel"),w==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(w!==x.rel||i.getAttribute("href")!==(x.href==null||x.href===""?null:x.href)||i.getAttribute("crossorigin")!==(x.crossOrigin==null?null:x.crossOrigin)||i.getAttribute("title")!==(x.title==null?null:x.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(w=i.getAttribute("src"),(w!==(x.src==null?null:x.src)||i.getAttribute("type")!==(x.type==null?null:x.type)||i.getAttribute("crossorigin")!==(x.crossOrigin==null?null:x.crossOrigin))&&w&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(o==="input"&&i.type==="hidden"){var w=x.name==null?null:""+x.name;if(x.type==="hidden"&&i.getAttribute("name")===w)return i}else return i;if(i=fi(i.nextSibling),i===null)break}return null}function pj(i,o,u){if(o==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!u||(i=fi(i.nextSibling),i===null))return null;return i}function H1(i,o){for(;i.nodeType!==8;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!o||(i=fi(i.nextSibling),i===null))return null;return i}function Qg(i){return i.data==="$?"||i.data==="$~"}function Jg(i){return i.data==="$!"||i.data==="$?"&&i.ownerDocument.readyState!=="loading"}function hj(i,o){var u=i.ownerDocument;if(i.data==="$~")i._reactRetry=o;else if(i.data!=="$?"||u.readyState!=="loading")o();else{var p=function(){o(),u.removeEventListener("DOMContentLoaded",p)};u.addEventListener("DOMContentLoaded",p),i._reactRetry=p}}function fi(i){for(;i!=null;i=i.nextSibling){var o=i.nodeType;if(o===1||o===3)break;if(o===8){if(o=i.data,o==="$"||o==="$!"||o==="$?"||o==="$~"||o==="&"||o==="F!"||o==="F")break;if(o==="/$"||o==="/&")return null}}return i}var eb=null;function V1(i){i=i.nextSibling;for(var o=0;i;){if(i.nodeType===8){var u=i.data;if(u==="/$"||u==="/&"){if(o===0)return fi(i.nextSibling);o--}else u!=="$"&&u!=="$!"&&u!=="$?"&&u!=="$~"&&u!=="&"||o++}i=i.nextSibling}return null}function G1(i){i=i.previousSibling;for(var o=0;i;){if(i.nodeType===8){var u=i.data;if(u==="$"||u==="$!"||u==="$?"||u==="$~"||u==="&"){if(o===0)return i;o--}else u!=="/$"&&u!=="/&"||o++}i=i.previousSibling}return null}function W1(i,o,u){switch(o=md(u),i){case"html":if(i=o.documentElement,!i)throw Error(r(452));return i;case"head":if(i=o.head,!i)throw Error(r(453));return i;case"body":if(i=o.body,!i)throw Error(r(454));return i;default:throw Error(r(451))}}function Mu(i){for(var o=i.attributes;o.length;)i.removeAttributeNode(o[0]);Fr(i)}var di=new Map,K1=new Set;function gd(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}var ms=K.d;K.d={f:mj,r:gj,D:bj,C:yj,L:vj,m:xj,X:Sj,S:kj,M:wj};function mj(){var i=ms.f(),o=ad();return i||o}function gj(i){var o=Zi(i);o!==null&&o.tag===5&&o.type==="form"?fS(o):ms.r(i)}var el=typeof document>"u"?null:document;function Y1(i,o,u){var p=el;if(p&&typeof o=="string"&&o){var x=Cr(o);x='link[rel="'+i+'"][href="'+x+'"]',typeof u=="string"&&(x+='[crossorigin="'+u+'"]'),K1.has(x)||(K1.add(x),i={rel:i,crossOrigin:u,href:o},p.querySelector(x)===null&&(o=p.createElement("link"),or(o,"link",i),Un(o),p.head.appendChild(o)))}}function bj(i){ms.D(i),Y1("dns-prefetch",i,null)}function yj(i,o){ms.C(i,o),Y1("preconnect",i,o)}function vj(i,o,u){ms.L(i,o,u);var p=el;if(p&&i&&o){var x='link[rel="preload"][as="'+Cr(o)+'"]';o==="image"&&u&&u.imageSrcSet?(x+='[imagesrcset="'+Cr(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(x+='[imagesizes="'+Cr(u.imageSizes)+'"]')):x+='[href="'+Cr(i)+'"]';var w=x;switch(o){case"style":w=tl(i);break;case"script":w=nl(i)}di.has(w)||(i=m({rel:"preload",href:o==="image"&&u&&u.imageSrcSet?void 0:i,as:o},u),di.set(w,i),p.querySelector(x)!==null||o==="style"&&p.querySelector(Du(w))||o==="script"&&p.querySelector(Lu(w))||(o=p.createElement("link"),or(o,"link",i),Un(o),p.head.appendChild(o)))}}function xj(i,o){ms.m(i,o);var u=el;if(u&&i){var p=o&&typeof o.as=="string"?o.as:"script",x='link[rel="modulepreload"][as="'+Cr(p)+'"][href="'+Cr(i)+'"]',w=x;switch(p){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":w=nl(i)}if(!di.has(w)&&(i=m({rel:"modulepreload",href:i},o),di.set(w,i),u.querySelector(x)===null)){switch(p){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(Lu(w)))return}p=u.createElement("link"),or(p,"link",i),Un(p),u.head.appendChild(p)}}}function kj(i,o,u){ms.S(i,o,u);var p=el;if(p&&i){var x=zs(p).hoistableStyles,w=tl(i);o=o||"default";var I=x.get(w);if(!I){var G={loading:0,preload:null};if(I=p.querySelector(Du(w)))G.loading=5;else{i=m({rel:"stylesheet",href:i,"data-precedence":o},u),(u=di.get(w))&&tb(i,u);var J=I=p.createElement("link");Un(J),or(J,"link",i),J._p=new Promise(function(pe,Te){J.onload=pe,J.onerror=Te}),J.addEventListener("load",function(){G.loading|=1}),J.addEventListener("error",function(){G.loading|=2}),G.loading|=4,bd(I,o,p)}I={type:"stylesheet",instance:I,count:1,state:G},x.set(w,I)}}}function Sj(i,o){ms.X(i,o);var u=el;if(u&&i){var p=zs(u).hoistableScripts,x=nl(i),w=p.get(x);w||(w=u.querySelector(Lu(x)),w||(i=m({src:i,async:!0},o),(o=di.get(x))&&nb(i,o),w=u.createElement("script"),Un(w),or(w,"link",i),u.head.appendChild(w)),w={type:"script",instance:w,count:1,state:null},p.set(x,w))}}function wj(i,o){ms.M(i,o);var u=el;if(u&&i){var p=zs(u).hoistableScripts,x=nl(i),w=p.get(x);w||(w=u.querySelector(Lu(x)),w||(i=m({src:i,async:!0,type:"module"},o),(o=di.get(x))&&nb(i,o),w=u.createElement("script"),Un(w),or(w,"link",i),u.head.appendChild(w)),w={type:"script",instance:w,count:1,state:null},p.set(x,w))}}function X1(i,o,u,p){var x=(x=ne.current)?gd(x):null;if(!x)throw Error(r(446));switch(i){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(o=tl(u.href),u=zs(x).hoistableStyles,p=u.get(o),p||(p={type:"style",instance:null,count:0,state:null},u.set(o,p)),p):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){i=tl(u.href);var w=zs(x).hoistableStyles,I=w.get(i);if(I||(x=x.ownerDocument||x,I={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},w.set(i,I),(w=x.querySelector(Du(i)))&&!w._p&&(I.instance=w,I.state.loading=5),di.has(i)||(u={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy},di.set(i,u),w||Ej(x,i,u,I.state))),o&&p===null)throw Error(r(528,""));return I}if(o&&p!==null)throw Error(r(529,""));return null;case"script":return o=u.async,u=u.src,typeof u=="string"&&o&&typeof o!="function"&&typeof o!="symbol"?(o=nl(u),u=zs(x).hoistableScripts,p=u.get(o),p||(p={type:"script",instance:null,count:0,state:null},u.set(o,p)),p):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,i))}}function tl(i){return'href="'+Cr(i)+'"'}function Du(i){return'link[rel="stylesheet"]['+i+"]"}function Z1(i){return m({},i,{"data-precedence":i.precedence,precedence:null})}function Ej(i,o,u,p){i.querySelector('link[rel="preload"][as="style"]['+o+"]")?p.loading=1:(o=i.createElement("link"),p.preload=o,o.addEventListener("load",function(){return p.loading|=1}),o.addEventListener("error",function(){return p.loading|=2}),or(o,"link",u),Un(o),i.head.appendChild(o))}function nl(i){return'[src="'+Cr(i)+'"]'}function Lu(i){return"script[async]"+i}function Q1(i,o,u){if(o.count++,o.instance===null)switch(o.type){case"style":var p=i.querySelector('style[data-href~="'+Cr(u.href)+'"]');if(p)return o.instance=p,Un(p),p;var x=m({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return p=(i.ownerDocument||i).createElement("style"),Un(p),or(p,"style",x),bd(p,u.precedence,i),o.instance=p;case"stylesheet":x=tl(u.href);var w=i.querySelector(Du(x));if(w)return o.state.loading|=4,o.instance=w,Un(w),w;p=Z1(u),(x=di.get(x))&&tb(p,x),w=(i.ownerDocument||i).createElement("link"),Un(w);var I=w;return I._p=new Promise(function(G,J){I.onload=G,I.onerror=J}),or(w,"link",p),o.state.loading|=4,bd(w,u.precedence,i),o.instance=w;case"script":return w=nl(u.src),(x=i.querySelector(Lu(w)))?(o.instance=x,Un(x),x):(p=u,(x=di.get(w))&&(p=m({},u),nb(p,x)),i=i.ownerDocument||i,x=i.createElement("script"),Un(x),or(x,"link",p),i.head.appendChild(x),o.instance=x);case"void":return null;default:throw Error(r(443,o.type))}else o.type==="stylesheet"&&(o.state.loading&4)===0&&(p=o.instance,o.state.loading|=4,bd(p,u.precedence,i));return o.instance}function bd(i,o,u){for(var p=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),x=p.length?p[p.length-1]:null,w=x,I=0;I<p.length;I++){var G=p[I];if(G.dataset.precedence===o)w=G;else if(w!==x)break}w?w.parentNode.insertBefore(i,w.nextSibling):(o=u.nodeType===9?u.head:u,o.insertBefore(i,o.firstChild))}function tb(i,o){i.crossOrigin==null&&(i.crossOrigin=o.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=o.referrerPolicy),i.title==null&&(i.title=o.title)}function nb(i,o){i.crossOrigin==null&&(i.crossOrigin=o.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=o.referrerPolicy),i.integrity==null&&(i.integrity=o.integrity)}var yd=null;function J1(i,o,u){if(yd===null){var p=new Map,x=yd=new Map;x.set(u,p)}else x=yd,p=x.get(u),p||(p=new Map,x.set(u,p));if(p.has(i))return p;for(p.set(i,null),u=u.getElementsByTagName(i),x=0;x<u.length;x++){var w=u[x];if(!(w[ri]||w[Tt]||i==="link"&&w.getAttribute("rel")==="stylesheet")&&w.namespaceURI!=="http://www.w3.org/2000/svg"){var I=w.getAttribute(o)||"";I=i+I;var G=p.get(I);G?G.push(w):p.set(I,[w])}}return p}function ew(i,o,u){i=i.ownerDocument||i,i.head.insertBefore(u,o==="title"?i.querySelector("head > title"):null)}function Tj(i,o,u){if(u===1||o.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof o.precedence!="string"||typeof o.href!="string"||o.href==="")break;return!0;case"link":if(typeof o.rel!="string"||typeof o.href!="string"||o.href===""||o.onLoad||o.onError)break;return o.rel==="stylesheet"?(i=o.disabled,typeof o.precedence=="string"&&i==null):!0;case"script":if(o.async&&typeof o.async!="function"&&typeof o.async!="symbol"&&!o.onLoad&&!o.onError&&o.src&&typeof o.src=="string")return!0}return!1}function tw(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}function Rj(i,o,u,p){if(u.type==="stylesheet"&&(typeof p.media!="string"||matchMedia(p.media).matches!==!1)&&(u.state.loading&4)===0){if(u.instance===null){var x=tl(p.href),w=o.querySelector(Du(x));if(w){o=w._p,o!==null&&typeof o=="object"&&typeof o.then=="function"&&(i.count++,i=vd.bind(i),o.then(i,i)),u.state.loading|=4,u.instance=w,Un(w);return}w=o.ownerDocument||o,p=Z1(p),(x=di.get(x))&&tb(p,x),w=w.createElement("link"),Un(w);var I=w;I._p=new Promise(function(G,J){I.onload=G,I.onerror=J}),or(w,"link",p),u.instance=w}i.stylesheets===null&&(i.stylesheets=new Map),i.stylesheets.set(u,o),(o=u.state.preload)&&(u.state.loading&3)===0&&(i.count++,u=vd.bind(i),o.addEventListener("load",u),o.addEventListener("error",u))}}var rb=0;function Cj(i,o){return i.stylesheets&&i.count===0&&kd(i,i.stylesheets),0<i.count||0<i.imgCount?function(u){var p=setTimeout(function(){if(i.stylesheets&&kd(i,i.stylesheets),i.unsuspend){var w=i.unsuspend;i.unsuspend=null,w()}},6e4+o);0<i.imgBytes&&rb===0&&(rb=62500*aj());var x=setTimeout(function(){if(i.waitingForImages=!1,i.count===0&&(i.stylesheets&&kd(i,i.stylesheets),i.unsuspend)){var w=i.unsuspend;i.unsuspend=null,w()}},(i.imgBytes>rb?50:800)+o);return i.unsuspend=u,function(){i.unsuspend=null,clearTimeout(p),clearTimeout(x)}}:null}function vd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)kd(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var xd=null;function kd(i,o){i.stylesheets=null,i.unsuspend!==null&&(i.count++,xd=new Map,o.forEach(_j,i),xd=null,vd.call(i))}function _j(i,o){if(!(o.state.loading&4)){var u=xd.get(i);if(u)var p=u.get(null);else{u=new Map,xd.set(i,u);for(var x=i.querySelectorAll("link[data-precedence],style[data-precedence]"),w=0;w<x.length;w++){var I=x[w];(I.nodeName==="LINK"||I.getAttribute("media")!=="not all")&&(u.set(I.dataset.precedence,I),p=I)}p&&u.set(null,p)}x=o.instance,I=x.getAttribute("data-precedence"),w=u.get(I)||p,w===p&&u.set(null,x),u.set(I,x),this.count++,p=vd.bind(this),x.addEventListener("load",p),x.addEventListener("error",p),w?w.parentNode.insertBefore(x,w.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(x,i.firstChild)),o.state.loading|=4}}var ju={$$typeof:C,Provider:null,Consumer:null,_currentValue:q,_currentValue2:q,_threadCount:0};function Aj(i,o,u,p,x,w,I,G,J){this.tag=1,this.containerInfo=i,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=Ct(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ct(0),this.hiddenUpdates=Ct(null),this.identifierPrefix=p,this.onUncaughtError=x,this.onCaughtError=w,this.onRecoverableError=I,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=J,this.incompleteTransitions=new Map}function nw(i,o,u,p,x,w,I,G,J,pe,Te,Oe){return i=new Aj(i,o,u,I,J,pe,Te,Oe,G),o=1,w===!0&&(o|=24),w=Vr(3,null,null,o),i.current=w,w.stateNode=i,o=jm(),o.refCount++,i.pooledCache=o,o.refCount++,w.memoizedState={element:p,isDehydrated:u,cache:o},Bm(w),i}function rw(i){return i?(i=Ma,i):Ma}function iw(i,o,u,p,x,w){x=rw(x),p.context===null?p.context=x:p.pendingContext=x,p=Gs(o),p.payload={element:u},w=w===void 0?null:w,w!==null&&(p.callback=w),u=Ws(i,p,o),u!==null&&(Mr(u,i,o),hu(u,i,o))}function sw(i,o){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var u=i.retryLane;i.retryLane=u!==0&&u<o?u:o}}function ib(i,o){sw(i,o),(i=i.alternate)&&sw(i,o)}function ow(i){if(i.tag===13||i.tag===31){var o=zo(i,67108864);o!==null&&Mr(o,i,67108864),ib(i,67108864)}}function aw(i){if(i.tag===13||i.tag===31){var o=Xr();o=Ie(o);var u=zo(i,o);u!==null&&Mr(u,i,o),ib(i,o)}}var Sd=!0;function Nj(i,o,u,p){var x=H.T;H.T=null;var w=K.p;try{K.p=2,sb(i,o,u,p)}finally{K.p=w,H.T=x}}function Oj(i,o,u,p){var x=H.T;H.T=null;var w=K.p;try{K.p=8,sb(i,o,u,p)}finally{K.p=w,H.T=x}}function sb(i,o,u,p){if(Sd){var x=ob(p);if(x===null)Vg(i,o,p,wd,u),uw(i,p);else if(Mj(x,i,o,u,p))p.stopPropagation();else if(uw(i,p),o&4&&-1<Ij.indexOf(i)){for(;x!==null;){var w=Zi(x);if(w!==null)switch(w.tag){case 3:if(w=w.stateNode,w.current.memoizedState.isDehydrated){var I=At(w.pendingLanes);if(I!==0){var G=w;for(G.pendingLanes|=2,G.entangledLanes|=2;I;){var J=1<<31-nt(I);G.entanglements[1]|=J,I&=~J}Pi(w),(nn&6)===0&&(sd=ee()+500,Nu(0))}}break;case 31:case 13:G=zo(w,2),G!==null&&Mr(G,w,2),ad(),ib(w,2)}if(w=ob(p),w===null&&Vg(i,o,p,wd,u),w===x)break;x=w}x!==null&&p.stopPropagation()}else Vg(i,o,p,null,u)}}function ob(i){return i=Nt(i),ab(i)}var wd=null;function ab(i){if(wd=null,i=tr(i),i!==null){var o=a(i);if(o===null)i=null;else{var u=o.tag;if(u===13){if(i=l(o),i!==null)return i;i=null}else if(u===31){if(i=c(o),i!==null)return i;i=null}else if(u===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null)}}return wd=i,null}function lw(i){switch(i){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(fe()){case Q:return 2;case re:return 8;case we:case Pe:return 32;case Ye:return 268435456;default:return 32}default:return 32}}var lb=!1,io=null,so=null,oo=null,zu=new Map,Pu=new Map,ao=[],Ij="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 uw(i,o){switch(i){case"focusin":case"focusout":io=null;break;case"dragenter":case"dragleave":so=null;break;case"mouseover":case"mouseout":oo=null;break;case"pointerover":case"pointerout":zu.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pu.delete(o.pointerId)}}function $u(i,o,u,p,x,w){return i===null||i.nativeEvent!==w?(i={blockedOn:o,domEventName:u,eventSystemFlags:p,nativeEvent:w,targetContainers:[x]},o!==null&&(o=Zi(o),o!==null&&ow(o)),i):(i.eventSystemFlags|=p,o=i.targetContainers,x!==null&&o.indexOf(x)===-1&&o.push(x),i)}function Mj(i,o,u,p,x){switch(o){case"focusin":return io=$u(io,i,o,u,p,x),!0;case"dragenter":return so=$u(so,i,o,u,p,x),!0;case"mouseover":return oo=$u(oo,i,o,u,p,x),!0;case"pointerover":var w=x.pointerId;return zu.set(w,$u(zu.get(w)||null,i,o,u,p,x)),!0;case"gotpointercapture":return w=x.pointerId,Pu.set(w,$u(Pu.get(w)||null,i,o,u,p,x)),!0}return!1}function cw(i){var o=tr(i.target);if(o!==null){var u=a(o);if(u!==null){if(o=u.tag,o===13){if(o=l(u),o!==null){i.blockedOn=o,Et(i.priority,function(){aw(u)});return}}else if(o===31){if(o=c(u),o!==null){i.blockedOn=o,Et(i.priority,function(){aw(u)});return}}else if(o===3&&u.stateNode.current.memoizedState.isDehydrated){i.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}i.blockedOn=null}function Ed(i){if(i.blockedOn!==null)return!1;for(var o=i.targetContainers;0<o.length;){var u=ob(i.nativeEvent);if(u===null){u=i.nativeEvent;var p=new u.constructor(u.type,u);st=p,u.target.dispatchEvent(p),st=null}else return o=Zi(u),o!==null&&ow(o),i.blockedOn=u,!1;o.shift()}return!0}function fw(i,o,u){Ed(i)&&u.delete(o)}function Dj(){lb=!1,io!==null&&Ed(io)&&(io=null),so!==null&&Ed(so)&&(so=null),oo!==null&&Ed(oo)&&(oo=null),zu.forEach(fw),Pu.forEach(fw)}function Td(i,o){i.blockedOn===o&&(i.blockedOn=null,lb||(lb=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Dj)))}var Rd=null;function dw(i){Rd!==i&&(Rd=i,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Rd===i&&(Rd=null);for(var o=0;o<i.length;o+=3){var u=i[o],p=i[o+1],x=i[o+2];if(typeof p!="function"){if(ab(p||u)===null)continue;break}var w=Zi(u);w!==null&&(i.splice(o,3),o-=3,og(w,{pending:!0,data:x,method:u.method,action:p},p,x))}}))}function rl(i){function o(J){return Td(J,i)}io!==null&&Td(io,i),so!==null&&Td(so,i),oo!==null&&Td(oo,i),zu.forEach(o),Pu.forEach(o);for(var u=0;u<ao.length;u++){var p=ao[u];p.blockedOn===i&&(p.blockedOn=null)}for(;0<ao.length&&(u=ao[0],u.blockedOn===null);)cw(u),u.blockedOn===null&&ao.shift();if(u=(i.ownerDocument||i).$$reactFormReplay,u!=null)for(p=0;p<u.length;p+=3){var x=u[p],w=u[p+1],I=x[Qt]||null;if(typeof w=="function")I||dw(u);else if(I){var G=null;if(w&&w.hasAttribute("formAction")){if(x=w,I=w[Qt]||null)G=I.formAction;else if(ab(x)!==null)continue}else G=I.action;typeof G=="function"?u[p+1]=G:(u.splice(p,3),p-=3),dw(u)}}}function pw(){function i(w){w.canIntercept&&w.info==="react-transition"&&w.intercept({handler:function(){return new Promise(function(I){return x=I})},focusReset:"manual",scroll:"manual"})}function o(){x!==null&&(x(),x=null),p||setTimeout(u,20)}function u(){if(!p&&!navigation.transition){var w=navigation.currentEntry;w&&w.url!=null&&navigation.navigate(w.url,{state:w.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var p=!1,x=null;return navigation.addEventListener("navigate",i),navigation.addEventListener("navigatesuccess",o),navigation.addEventListener("navigateerror",o),setTimeout(u,100),function(){p=!0,navigation.removeEventListener("navigate",i),navigation.removeEventListener("navigatesuccess",o),navigation.removeEventListener("navigateerror",o),x!==null&&(x(),x=null)}}}function ub(i){this._internalRoot=i}Cd.prototype.render=ub.prototype.render=function(i){var o=this._internalRoot;if(o===null)throw Error(r(409));var u=o.current,p=Xr();iw(u,p,i,o,null,null)},Cd.prototype.unmount=ub.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var o=i.containerInfo;iw(i.current,2,null,i,null,null),ad(),o[rn]=null}};function Cd(i){this._internalRoot=i}Cd.prototype.unstable_scheduleHydration=function(i){if(i){var o=dt();i={blockedOn:null,target:i,priority:o};for(var u=0;u<ao.length&&o!==0&&o<ao[u].priority;u++);ao.splice(u,0,i),u===0&&cw(i)}};var hw=t.version;if(hw!=="19.2.6")throw Error(r(527,hw,"19.2.6"));K.findDOMNode=function(i){var o=i._reactInternals;if(o===void 0)throw typeof i.render=="function"?Error(r(188)):(i=Object.keys(i).join(","),Error(r(268,i)));return i=d(o),i=i!==null?h(i):null,i=i===null?null:i.stateNode,i};var Lj={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:H,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var _d=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!_d.isDisabled&&_d.supportsFiber)try{Je=_d.inject(Lj),xt=_d}catch{}}return Fu.createRoot=function(i,o){if(!s(i))throw Error(r(299));var u=!1,p="",x=kS,w=SS,I=wS;return o!=null&&(o.unstable_strictMode===!0&&(u=!0),o.identifierPrefix!==void 0&&(p=o.identifierPrefix),o.onUncaughtError!==void 0&&(x=o.onUncaughtError),o.onCaughtError!==void 0&&(w=o.onCaughtError),o.onRecoverableError!==void 0&&(I=o.onRecoverableError)),o=nw(i,1,!1,null,null,u,p,null,x,w,I,pw),i[rn]=o.current,Hg(i),new ub(o)},Fu.hydrateRoot=function(i,o,u){if(!s(i))throw Error(r(299));var p=!1,x="",w=kS,I=SS,G=wS,J=null;return u!=null&&(u.unstable_strictMode===!0&&(p=!0),u.identifierPrefix!==void 0&&(x=u.identifierPrefix),u.onUncaughtError!==void 0&&(w=u.onUncaughtError),u.onCaughtError!==void 0&&(I=u.onCaughtError),u.onRecoverableError!==void 0&&(G=u.onRecoverableError),u.formState!==void 0&&(J=u.formState)),o=nw(i,1,!0,o,u??null,p,x,J,w,I,G,pw),o.context=rw(null),u=o.current,p=Xr(),p=Ie(p),x=Gs(p),x.callback=null,Ws(u,x,p),u=p,o.current.lanes=u,lt(o,u),Pi(o),i[rn]=o.current,Hg(i),new Cd(o)},Fu.version="19.2.6",Fu}var Ew;function Gj(){if(Ew)return db.exports;Ew=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),db.exports=Vj(),db.exports}var Wj=Gj(),Uu={},Tw;function Kj(){if(Tw)return Uu;Tw=1,Object.defineProperty(Uu,"__esModule",{value:!0}),Uu.styleq=void 0;var e=new WeakMap,t="$$css";function n(s){var a,l,c;return s!=null&&(a=s.disableCache===!0,l=s.disableMix===!0,c=s.transform),function(){for(var d=[],h="",m=null,b="",y=a?null:e,k=new Array(arguments.length),S=0;S<arguments.length;S++)k[S]=arguments[S];for(;k.length>0;){var R=k.pop();if(!(R==null||R===!1)){if(Array.isArray(R)){for(var T=0;T<R.length;T++)k.push(R[T]);continue}var E=c!=null?c(R):R;if(E.$$css!=null){var C="";if(y!=null&&y.has(E)){var _=y.get(E);_!=null&&(C=_[0],b=_[2],d.push.apply(d,_[1]),y=_[3])}else{var D=[];for(var A in E){var M=E[A];if(A===t){var B=E[A];B!==!0&&(b=b?B+"; "+b:B);continue}typeof M=="string"||M===null?d.includes(A)||(d.push(A),y!=null&&D.push(A),typeof M=="string"&&(C+=C?" "+M:M)):console.error("styleq: ".concat(A," typeof ").concat(String(M),' is not "string" or "null".'))}if(y!=null){var P=new WeakMap;y.set(E,[C,D,b,P]),y=P}}C&&(h=h?C+" "+h:C)}else if(l)m==null&&(m={}),m=Object.assign({},E,m);else{var N=null;for(var W in E){var $=E[W];$!==void 0&&(d.includes(W)||($!=null&&(m==null&&(m={}),N==null&&(N={}),N[W]=$),d.push(W),y=null))}N!=null&&(m=Object.assign(N,m))}}}var F=[h,m,b];return F}}var r=Uu.styleq=n();return r.factory=n,Uu}var Yj=Kj();function zt(...e){const[t,n,r]=Yj.styleq(e),s={};return t!=null&&t!==""&&(s.className=t),n!=null&&Object.keys(n).length>0&&(s.style=n),r!=null&&r!==""&&(s["data-style-src"]=r),s}function e_(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=e_(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Xj(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=e_(e))&&(r&&(r+=" "),r+=t);return r}function sn(...e){return Xj(e)}function Yt({rootClass:e,stylexStyles:t,className:n,style:r}){const s=zt(t);return{className:sn(e,s.className,n),style:{...s.style,...r}}}const Zj={"--cursor-easing-out-quint":"var(--cursor-easing-out-quint)"},Ti={base:{k1xSpc:"ui-3nfvp2",kGNEyG:"ui-6s0dn4",kOIVth:"ui-11twubx",khDVqt:"ui-uxw1ft",kMv6JI:"ui-1acoasx",krdFHd:"ui-1bi1pm6",kfmiAY:"ui-4ao1vk",kT0f0o:"ui-cwn6ta",kVL7Gh:"ui-42qtjs",kGuDYH:"ui-1wm8ruf",kLWn49:"ui-spwq11",khiITx:"ui-vmahel",kTUp5R:"ui-lh3980",$$css:!0},sizeSm:{kLKAdn:"ui-exx8yu",kwRFfy:"ui-1hcev8z",kGO01o:"ui-18d9i69",kZCmMZ:"ui-149t747",$$css:!0},sizeMd:{kLKAdn:"ui-493x5y",kwRFfy:"ui-1tlft3r",kGO01o:"ui-b6dno7",kZCmMZ:"ui-tw3t59",$$css:!0},pill:{krdFHd:"ui-inloh",kfmiAY:"ui-zbf5sq",kT0f0o:"ui-jpqjuy",kVL7Gh:"ui-mzb00y",$$css:!0},pillSizeSm:{kLKAdn:"ui-493x5y",kwRFfy:"ui-196pc8s",kGO01o:"ui-b6dno7",kZCmMZ:"ui-22095l",$$css:!0},pillSizeMd:{kLKAdn:"ui-5pb957",kwRFfy:"ui-19bzwdx",kGO01o:"ui-1mmyrcj",kZCmMZ:"ui-v853mj",$$css:!0},variantAccent:{kMwMTN:"ui-kbann2",kWkggS:"ui-gsjhps",$$css:!0},variantNeutral:{kMwMTN:"ui-19aaqeu",kWkggS:"ui-i07v4r",$$css:!0},variantSuccess:{kMwMTN:"ui-1w5rjie",kWkggS:"ui-18wk26n",$$css:!0},variantWarn:{kMwMTN:"ui-1izesbo",kWkggS:"ui-t9f1jb",$$css:!0},variantDanger:{kMwMTN:"ui-1jh5svw",kWkggS:"ui-qhj6il",$$css:!0}};function Qj({pill:e,size:t,variant:n}){return[Ti.base,t==="sm"?Ti.sizeSm:Ti.sizeMd,e?[Ti.pill,t==="sm"?Ti.pillSizeSm:Ti.pillSizeMd]:null,Jj(n)]}function Jj(e){switch(e){case"accent":return Ti.variantAccent;case"neutral":return Ti.variantNeutral;case"success":return Ti.variantSuccess;case"warn":return Ti.variantWarn;case"danger":return Ti.variantDanger}}function vo({children:e,variant:t="neutral",size:n="md",pill:r=!1,as:s="span",className:a,style:l,...c}){const f=Yt({rootClass:"ui-status-badge",stylexStyles:Qj({pill:r,size:n,variant:t}),className:a,style:l});return g.jsx(s,{className:f.className,style:f.style,"data-variant":t,"data-size":n,"data-pill":r||void 0,...c,children:e})}function ez(e,t){return function(r,...s){const a=new URL(e);return a.searchParams.set("code",r.toString()),s.forEach(l=>a.searchParams.append("args[]",l)),`${t} error #${r}; visit ${a} for the full message.`}}const In=ez("https://base-ui.com/production-error","Base UI"),Rw={};function zr(e,t){const n=v.useRef(Rw);return n.current===Rw&&(n.current=e(t)),n}function xo(e,t,n,r){const s=zr(t_).current;return nz(s,e,t,n,r)&&n_(s,[e,t,n,r]),s.callback}function tz(e){const t=zr(t_).current;return rz(t,e)&&n_(t,e),t.callback}function t_(){return{callback:null,cleanup:null,refs:[]}}function nz(e,t,n,r,s){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==s}function rz(e,t){return e.refs.length!==t.length||e.refs.some((n,r)=>n!==t[r])}function n_(e,t){if(e.refs=t,t.every(n=>n==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),n!=null){const r=Array(t.length).fill(null);for(let s=0;s<t.length;s+=1){const a=t[s];if(a!=null)switch(typeof a){case"function":{const l=a(n);typeof l=="function"&&(r[s]=l);break}case"object":{a.current=n;break}}}e.cleanup=()=>{for(let s=0;s<t.length;s+=1){const a=t[s];if(a!=null)switch(typeof a){case"function":{const l=r[s];typeof l=="function"?l():a(null);break}case"object":{a.current=null;break}}}}}}}const iz=parseInt(v.version,10);function $v(e){return iz>=e}function Cw(e){if(!v.isValidElement(e))return null;const t=e,n=t.props;return($v(19)?n?.ref:t.ref)??null}function My(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function Zn(){}const ko=Object.freeze([]),Bn=Object.freeze({});function sz(e,t){const n={};for(const r in e){const s=e[r];if(t?.hasOwnProperty(r)){const a=t[r](s);a!=null&&Object.assign(n,a);continue}s===!0?n[`data-${r.toLowerCase()}`]="":s&&(n[`data-${r.toLowerCase()}`]=s.toString())}return n}function oz(e,t){return typeof e=="function"?e(t):e}function r_(e,t){return typeof e=="function"?e(t):e}const Bv={};function Gi(e,t,n,r,s){if(!n&&!r&&!s&&!e)return Tp(t);let a=Tp(e);return t&&(a=oc(a,t)),n&&(a=oc(a,n)),r&&(a=oc(a,r)),s&&(a=oc(a,s)),a}function az(e){if(e.length===0)return Bv;if(e.length===1)return Tp(e[0]);let t=Tp(e[0]);for(let n=1;n<e.length;n+=1)t=oc(t,e[n]);return t}function Tp(e){return Fv(e)?{...s_(e,Bv)}:lz(e)}function oc(e,t){return Fv(t)?s_(t,e):uz(e,t)}function lz(e){const t={...e};for(const n in t){const r=t[n];i_(n,r)&&(t[n]=o_(r))}return t}function uz(e,t){if(!t)return e;for(const n in t){const r=t[n];switch(n){case"style":{e[n]=My(e.style,r);break}case"className":{e[n]=a_(e.className,r);break}default:i_(n,r)?e[n]=cz(e[n],r):e[n]=r}}return e}function i_(e,t){const n=e.charCodeAt(0),r=e.charCodeAt(1),s=e.charCodeAt(2);return n===111&&r===110&&s>=65&&s<=90&&(typeof t=="function"||typeof t>"u")}function Fv(e){return typeof e=="function"}function s_(e,t){return Fv(e)?e(t):e??Bv}function cz(e,t){return t?e?(...n)=>{const r=n[0];if(l_(r)){const a=r;Rp(a);const l=t(...n);return a.baseUIHandlerPrevented||e?.(...n),l}const s=t(...n);return e?.(...n),s}:o_(t):e}function o_(e){return e&&((...t)=>{const n=t[0];return l_(n)&&Rp(n),e(...t)})}function Rp(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function a_(e,t){return t?e?t+" "+e:t:e}function l_(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}function bn(e,t,n={}){const r=t.render,s=fz(t,n);if(n.enabled===!1)return null;const a=n.state??Bn;return hz(e,r,s,a)}function fz(e,t={}){const{className:n,style:r,render:s}=e,{state:a=Bn,ref:l,props:c,stateAttributesMapping:f,enabled:d=!0}=t,h=d?oz(n,a):void 0,m=d?r_(r,a):void 0,b=d?sz(a,f):Bn,y=d&&c?dz(c):void 0,k=d?My(b,y)??{}:Bn;return typeof document<"u"&&(d?Array.isArray(l)?k.ref=tz([k.ref,Cw(s),...l]):k.ref=xo(k.ref,Cw(s),l):xo(null,null)),d?(h!==void 0&&(k.className=a_(k.className,h)),m!==void 0&&(k.style=My(k.style,m)),k):Bn}function dz(e){return Array.isArray(e)?az(e):Gi(void 0,e)}const pz=Symbol.for("react.lazy");function hz(e,t,n,r){if(t){if(typeof t=="function")return t(n,r);const s=Gi(n,t.props);s.ref=n.ref;let a=t;return a?.$$typeof===pz&&(a=v.Children.toArray(t)[0]),v.cloneElement(a,s)}if(e&&typeof e=="string")return mz(e,n);throw new Error(In(8))}function mz(e,t){return e==="button"?v.createElement("button",{type:"button",...t,key:t.key}):e==="img"?v.createElement("img",{alt:"",...t,key:t.key}):v.createElement(e,t)}let sa=(function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e})({});const gz={[sa.startingStyle]:""},bz={[sa.endingStyle]:""},To={transitionStatus(e){return e==="starting"?gz:e==="ending"?bz:null}};let Uv=(function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=sa.startingStyle]="startingStyle",e[e.endingStyle=sa.endingStyle]="endingStyle",e.anchorHidden="data-anchor-hidden",e.side="data-side",e.align="data-align",e})({}),Cp=(function(e){return e.popupOpen="data-popup-open",e.pressed="data-pressed",e})({});const yz={[Cp.popupOpen]:""},vz={[Cp.popupOpen]:"",[Cp.pressed]:""},xz={[Uv.open]:""},kz={[Uv.closed]:""},Sz={[Uv.anchorHidden]:""},u_={open(e){return e?yz:null}},wz={open(e){return e?vz:null}},Wc={open(e){return e?xz:kz},anchorHidden(e){return e?Sz:null}};function hh(){return typeof window<"u"}function Qn(e){return mh(e)?(e.nodeName||"").toLowerCase():"#document"}function xn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Os(e){var t;return(t=(mh(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function mh(e){return hh()?e instanceof Node||e instanceof xn(e).Node:!1}function gt(e){return hh()?e instanceof Element||e instanceof xn(e).Element:!1}function Ft(e){return hh()?e instanceof HTMLElement||e instanceof xn(e).HTMLElement:!1}function So(e){return!hh()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof xn(e).ShadowRoot}function ga(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=Tr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&s!=="inline"&&s!=="contents"}function Ez(e){return/^(table|td|th)$/.test(Qn(e))}function gh(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Tz=/transform|translate|scale|rotate|perspective|filter/,Rz=/paint|layout|strict|content/,Xo=e=>!!e&&e!=="none";let gb;function qv(e){const t=gt(e)?Tr(e):e;return Xo(t.transform)||Xo(t.translate)||Xo(t.scale)||Xo(t.rotate)||Xo(t.perspective)||!bh()&&(Xo(t.backdropFilter)||Xo(t.filter))||Tz.test(t.willChange||"")||Rz.test(t.contain||"")}function Cz(e){let t=_s(e);for(;Ft(t)&&!_i(t);){if(qv(t))return t;if(gh(t))return null;t=_s(t)}return null}function bh(){return gb==null&&(gb=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),gb}function _i(e){return/^(html|body|#document)$/.test(Qn(e))}function Tr(e){return xn(e).getComputedStyle(e)}function yh(e){return gt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function _s(e){if(Qn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||So(e)&&e.host||Os(e);return So(t)?t.host:t}function c_(e){const t=_s(e);return _i(t)?(e.ownerDocument||e).body:Ft(t)&&ga(t)?t:c_(t)}function bo(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=c_(e),a=s===((r=e.ownerDocument)==null?void 0:r.body),l=xn(s);if(a){const c=Dy(l);return t.concat(l,l.visualViewport||[],ga(s)?s:[],c&&n?bo(c):[])}else return t.concat(s,bo(s,[],n))}function Dy(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const Hv={...Pv},bb=Hv.useInsertionEffect,_z=bb&&bb!==Hv.useLayoutEffect?bb:e=>e();function Ke(e){const t=zr(Az).current;return t.next=e,_z(t.effect),t.trampoline}function Az(){const e={next:void 0,callback:Nz,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function Nz(){}const Oz=()=>{},Ve=typeof document<"u"?v.useLayoutEffect:Oz,f_=v.createContext(void 0);function d_(e=!1){const t=v.useContext(f_);if(t===void 0&&!e)throw new Error(In(16));return t}function Iz(e){const{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:s=0,isNativeButton:a}=e,l=r&&t!==!1,c=r&&t===!1;return{props:v.useMemo(()=>{const d={onKeyDown(h){n&&t&&h.key!=="Tab"&&h.preventDefault()}};return r||(d.tabIndex=s,!a&&n&&(d.tabIndex=t?s:-1)),(a&&(t||l)||!a&&n)&&(d["aria-disabled"]=n),a&&(!t||c)&&(d.disabled=n),d},[r,n,t,l,c,a,s])}}function $l(e={}){const{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:s=!0,composite:a}=e,l=v.useRef(null),c=d_(!0),f=a??c!==void 0,{props:d}=Iz({focusableWhenDisabled:n,disabled:t,composite:f,tabIndex:r,isNativeButton:s}),h=v.useCallback(()=>{const y=l.current;yb(y)&&f&&t&&d.disabled===void 0&&y.disabled&&(y.disabled=!1)},[t,d.disabled,f]);Ve(h,[h]);const m=v.useCallback((y={})=>{const{onClick:k,onMouseDown:S,onKeyUp:R,onKeyDown:T,onPointerDown:E,...C}=y;return Gi({onClick(_){if(t){_.preventDefault();return}k?.(_)},onMouseDown(_){t||S?.(_)},onKeyDown(_){if(t||(Rp(_),T?.(_),_.baseUIHandlerPrevented))return;const D=_.target===_.currentTarget,A=_.currentTarget,M=yb(A),B=!s&&Mz(A),P=D&&(s?M:!B),N=_.key==="Enter",W=_.key===" ",$=A.getAttribute("role"),F=$?.startsWith("menuitem")||$==="option"||$==="gridcell";if(D&&f&&W){if(_.defaultPrevented&&F)return;_.preventDefault(),B||s&&M?(A.click(),_.preventBaseUIHandler()):P&&(k?.(_),_.preventBaseUIHandler());return}P&&(!s&&(W||N)&&_.preventDefault(),!s&&N&&k?.(_))},onKeyUp(_){if(!t){if(Rp(_),R?.(_),_.target===_.currentTarget&&s&&f&&yb(_.currentTarget)&&_.key===" "){_.preventDefault();return}_.baseUIHandlerPrevented||_.target===_.currentTarget&&!s&&!f&&_.key===" "&&k?.(_)}},onPointerDown(_){if(t){_.preventDefault();return}E?.(_)}},s?{type:"button"}:{role:"button"},d,C)},[t,d,f,s]),b=Ke(y=>{l.current=y,h()});return{getButtonProps:m,buttonRef:b}}function yb(e){return Ft(e)&&e.tagName==="BUTTON"}function Mz(e){return!!(e?.tagName==="A"&&e?.href)}const Ni="none",Bl="trigger-press",Sr="trigger-hover",gp="trigger-focus",Vv="outside-press",vb="item-press",vh="focus-out",Gv="escape-key",_w="list-navigation",Dz="cancel-open",p_="disabled",Aw="missing",Nw="initial",_p="imperative-action",Lz="window-resize";function Rt(e,t,n,r){let s=!1,a=!1;const l=r??Bn;return{reason:e,event:t??new Event("base-ui"),cancel(){s=!0},allowPropagation(){a=!0},get isCanceled(){return s},get isPropagationAllowed(){return a},trigger:n,...l}}let Ow=0;function jz(e,t="mui"){const[n,r]=v.useState(e),s=e||n;return v.useEffect(()=>{n==null&&(Ow+=1,r(`${t}-${Ow}`))},[n,t]),s}const Iw=Hv.useId;function Kc(e,t){if(Iw!==void 0){const n=Iw();return e??(t?`${t}-${n}`:n)}return jz(e,t)}function Fl(e){return Kc(e,"base-ui")}const zz=[];function Wv(e){v.useEffect(e,zz)}const qu=0;class Oi{static create(){return new Oi}currentId=qu;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=qu,n()},t)}isStarted(){return this.currentId!==qu}clear=()=>{this.currentId!==qu&&(clearTimeout(this.currentId),this.currentId=qu)};disposeEffect=()=>this.clear}function bi(){const e=zr(Oi.create).current;return Wv(e.disposeEffect),e}function Pz(){return typeof navigator>"u"?{userAgent:"",platform:"",maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??0}}const{userAgent:$z,platform:Bz,maxTouchPoints:Fz}=Pz(),xh=$z.toLowerCase(),Ec=Bz.toLowerCase(),kh=/^i(os$|p)/.test(Ec)||Ec==="macintel"&&Fz>1,Mw="android",Ly=Ec===Mw||xh.includes(Mw),h_=!kh&&Ec.startsWith("mac");Ec.startsWith("win");const Uz=h_||kh,Ro=typeof CSS<"u"&&!!CSS.supports?.("-webkit-backdrop-filter:none");!Ro&&xh.includes("firefox");!Ro&&xh.includes("chrom");const qz=Uz,Kv=/jsdom|happydom/.test(xh);function Ui(e){e.preventDefault(),e.stopPropagation()}function Hz(e){return"nativeEvent"in e}function Yv(e){return e.pointerType===""&&e.isTrusted?!0:Ly&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function m_(e){return Kv?!1:!Ly&&e.width===0&&e.height===0||Ly&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function oa(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function Vz(e){const t=e.type;return t==="click"||t==="mousedown"||t==="keydown"||t==="keyup"}const jy="data-base-ui-focusable",g_="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",Sh="ArrowLeft",wh="ArrowRight",b_="ArrowUp",Xv="ArrowDown";function pr(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function ht(e,t){if(!e||!t)return!1;const n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&So(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function gr(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Ap(e,t){if(!gt(e))return!1;const n=e;if(t.hasElement(n))return!n.hasAttribute("data-trigger-disabled");for(const[,r]of t.entries())if(ht(r,n))return!r.hasAttribute("data-trigger-disabled");return!1}function xb(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function Gz(e){return e.matches("html,body")}function Eh(e){return Ft(e)&&e.matches(g_)}function Wz(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${g_}`)!=null}function zy(e){return e?e.getAttribute("role")==="combobox"&&Eh(e):!1}function Kz(e){if(!e||Kv)return!0;try{return e.matches(":focus-visible")}catch{return!0}}function Np(e){return e?e.hasAttribute(jy)?e:e.querySelector(`[${jy}]`)||e:null}function Yz(e,t){return t!=null&&!oa(t)?0:typeof e=="function"?e():e}function Op(e,t,n){const r=Yz(e,n);return typeof r=="number"?r:r?.[t]}function Dw(e){return typeof e=="function"?e():e}function y_(e,t){return t||e==="click"||e==="mousedown"}function Xz(e){return e?.includes("mouse")&&e!=="mousedown"}const Zz=v.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new Oi,currentIdRef:{current:null},currentContextRef:{current:null}});function Qz(e,t){e.current=t.current}function Jz(e,t={open:!1}){const{open:n}=t,r="rootStore"in e?e.rootStore:e,s=r.useState("floatingId"),a=v.useContext(Zz),{currentIdRef:l,delayRef:c,timeoutMs:f,initialDelayRef:d,currentContextRef:h,hasProvider:m,timeout:b}=a,[y,k]=v.useState(!1),S=v.useRef(n),R=v.useRef(!1);return Ve(()=>{S.current=n},[n]),Ve(()=>()=>{R.current=!0},[]),Ve(()=>{function T(){R.current||k(!1),h.current?.setIsInstantPhase(!1),l.current=null,h.current=null,c.current=d.current,b.clear()}if(l.current&&!n&&l.current===s){if(k(!1),f){const E=s;return b.start(f,()=>{r.select("open")||l.current&&l.current!==E||T()}),()=>{(S.current||l.current!==E)&&b.clear()}}T()}},[n,s,l,c,f,d,h,b,r]),Ve(()=>{if(!n)return;const T=h.current,E=l.current;b.clear(),h.current={onOpenChange:r.setOpen,setIsInstantPhase:k},l.current=s,c.current={open:0,close:Op(d.current,"close")},E!==null&&E!==s?(k(!0),T?.setIsInstantPhase(!0),T?.onOpenChange(!1,Rt(Ni))):(k(!1),T?.setIsInstantPhase(!1))},[n,s,r,l,c,d,h,b]),Ve(()=>()=>{if(l.current===s){if(h.current=null,!S.current)return;l.current=null,Qz(c,d),b.clear()}},[h,l,c,s,d,b]),v.useMemo(()=>({hasProvider:m,delayRef:c,isInstantPhase:y}),[m,c,y])}function Dt(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Wi(...e){return()=>{for(let t=0;t<e.length;t+=1){const n=e[t];n&&n()}}}function On(e){const t=zr(eP,e).current;return t.next=e,Ve(t.effect),t}function eP(e){const t={current:e,next:e,effect:()=>{t.current=t.next}};return t}const Ad=null;class tP{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=t=>{this.isScheduled=!1;const n=this.callbacks,r=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,r>0)for(let s=0;s<n.length;s+=1)n[s]?.(t)};request(t){const n=this.nextId;return this.nextId+=1,this.callbacks.push(t),this.callbacksCount+=1,!this.isScheduled&&(requestAnimationFrame(this.tick),this.isScheduled=!0),n}cancel(t){const n=t-this.startId;n<0||n>=this.callbacks.length||(this.callbacks[n]=null,this.callbacksCount-=1)}}const Nd=new tP;class Lr{static create(){return new Lr}static request(t){return Nd.request(t)}static cancel(t){return Nd.cancel(t)}currentId=Ad;request(t){this.cancel(),this.currentId=Nd.request(()=>{this.currentId=Ad,t()})}cancel=()=>{this.currentId!==Ad&&(Nd.cancel(this.currentId),this.currentId=Ad)};disposeEffect=()=>this.cancel}function Rl(){const e=zr(Lr.create).current;return Wv(e.disposeEffect),e}function Wt(e){return e?.ownerDocument||document}const v_={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},x_={...v_,position:"fixed",top:0,left:0},nP={...v_,position:"absolute"},Ip=v.forwardRef(function(t,n){const[r,s]=v.useState();Ve(()=>{qz&&Ro&&s("button")},[]);const a={tabIndex:0,role:r};return g.jsx("span",{...t,ref:n,style:x_,"aria-hidden":r?void 0:!0,...a,"data-base-ui-focus-guard":""})}),rP=["top","right","bottom","left"],Cl=Math.min,Ts=Math.max,_l=Math.round,gl=Math.floor,Rs=e=>({x:e,y:e}),iP={left:"right",right:"left",bottom:"top",top:"bottom"};function k_(e,t,n){return Ts(e,Cl(t,n))}function As(e,t){return typeof e=="function"?e(t):e}function ti(e){return e.split("-")[0]}function Co(e){return e.split("-")[1]}function Zv(e){return e==="x"?"y":"x"}function Qv(e){return e==="y"?"height":"width"}function mi(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Jv(e){return Zv(mi(e))}function sP(e,t,n){n===void 0&&(n=!1);const r=Co(e),s=Jv(e),a=Qv(s);let l=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(l=Mp(l)),[l,Mp(l)]}function oP(e){const t=Mp(e);return[Py(e),t,Py(t)]}function Py(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Lw=["left","right"],jw=["right","left"],aP=["top","bottom"],lP=["bottom","top"];function uP(e,t,n){switch(e){case"top":case"bottom":return n?t?jw:Lw:t?Lw:jw;case"left":case"right":return t?aP:lP;default:return[]}}function cP(e,t,n,r){const s=Co(e);let a=uP(ti(e),n==="start",r);return s&&(a=a.map(l=>l+"-"+s),t&&(a=a.concat(a.map(Py)))),a}function Mp(e){const t=ti(e);return iP[t]+e.slice(t.length)}function fP(e){var t,n,r,s;return{top:(t=e.top)!=null?t:0,right:(n=e.right)!=null?n:0,bottom:(r=e.bottom)!=null?r:0,left:(s=e.left)!=null?s:0}}function S_(e){return typeof e!="number"?fP(e):{top:e,right:e,bottom:e,left:e}}function Tc(e){const{x:t,y:n,width:r,height:s}=e;return{width:r,height:s,top:n,left:t,right:t+r,bottom:n+s,x:t,y:n}}function cc(e,t){return t<0||t>=e.length}function bp(e,t){return Ss(e.current,{disabledIndices:t})}function $y(e,t){return Ss(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function Ss(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:s=1}={}){let a=t;do a+=n?-s:s;while(a>=0&&a<=e.length-1&&Dp(e,a,r));return a}function Dp(e,t,n){if(typeof n=="function"?n(t):n?.includes(t)??!1)return!0;const s=e[t];return s?Th(s)?!n&&(s.hasAttribute("disabled")||s.getAttribute("aria-disabled")==="true"):!0:!1}function dP(e){return e.visibility==="hidden"||e.visibility==="collapse"}function Th(e,t=e?Tr(e):null){return!e||!e.isConnected||!t||dP(t)?!1:typeof e.checkVisibility=="function"?e.checkVisibility():t.display!=="none"&&t.display!=="contents"}const pP='a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]';function hP(e){const t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;const n=e.getRootNode();return So(n)?n.host:null}function By(e){for(const t of Array.from(e.children))if(Qn(t)==="summary")return t;return null}function mP(e,t){const n=By(t);return!!n&&(e===n||ht(n,e))}function w_(e){const t=e?Qn(e):"";return e!=null&&e.matches(pP)&&(t!=="summary"||e.parentElement!=null&&Qn(e.parentElement)==="details"&&By(e.parentElement)===e)&&(t!=="details"||By(e)==null)&&(t!=="input"||e.type!=="hidden")}function E_(e){if(!w_(e)||!e.isConnected||e.matches(":disabled"))return!1;for(let t=e;t;t=hP(t)){const n=t!==e,r=Qn(t)==="slot";if(t.hasAttribute("inert")||n&&Qn(t)==="details"&&!t.open&&!mP(e,t)||t.hasAttribute("hidden")||!r&&!gP(t,n))return!1}return!0}function gP(e,t){const n=Tr(e);return t?n.display!=="none":Th(e,n)}function T_(e){const t=e.tabIndex;if(t<0){const n=Qn(e);if(n==="details"||n==="audio"||n==="video"||Ft(e)&&e.isContentEditable)return 0}return t}function kb(e){if(Qn(e)!=="input")return null;const t=e;return t.type==="radio"&&t.name!==""?t:null}function bP(e,t){const n=kb(e);if(!n)return!0;const r=t.find(s=>{const a=kb(s);return a?.name===n.name&&a.form===n.form&&a.checked});return r?r===n:t.find(s=>{const a=kb(s);return a?.name===n.name&&a.form===n.form})===n}function R_(e){if(Ft(e)&&Qn(e)==="slot"){const t=e.assignedElements({flatten:!0});if(t.length>0)return t}return Ft(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function C_(e,t){R_(e).forEach(n=>{w_(n)&&t.push(n),C_(n,t)})}function __(e,t,n){R_(e).forEach(r=>{Ft(r)&&r.matches(t)&&n.push(r),__(r,t,n)})}function ex(e){return E_(e)&&T_(e)>=0}function A_(e){const t=[];return C_(e,t),t.filter(E_)}function Rh(e){const t=A_(e);return t.filter(n=>T_(n)>=0&&bP(n,t))}function N_(e,t){const n=Rh(e),r=n.length;if(r===0)return;const s=pr(Wt(e)),a=n.indexOf(s),l=a===-1?t===1?0:r-1:a+t;return n[l]}function O_(e){return N_(Wt(e).body,1)||e}function I_(e){return N_(Wt(e).body,-1)||e}function fc(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!ht(n,r)}function yP(e){Rh(e).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function zw(e){const t=[];__(e,"[data-tabindex]",t),t.forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}function wo(e,t,n=!0){return e.filter(s=>s.parentId===t).flatMap(s=>[...!n||s.context?.open?[s]:[],...wo(e,s.id,n)])}function Pw(e,t){let n=[],r=e.find(s=>s.id===t)?.parentId;for(;r;){const s=e.find(a=>a.id===r);r=s?.parentId,s&&(n=n.concat(s))}return n}function Rc(e){return`data-base-ui-${e}`}let Od=0;function yp(e,t={}){const{preventScroll:n=!1,sync:r=!1,shouldFocus:s}=t;cancelAnimationFrame(Od);function a(){s&&!s()||e?.focus({preventScroll:n})}if(r)return a(),Zn;const l=requestAnimationFrame(a);return Od=l,()=>{Od===l&&(cancelAnimationFrame(l),Od=0)}}const Sb={inert:new WeakMap,"aria-hidden":new WeakMap},$w="data-base-ui-inert",Fy={inert:new WeakSet,"aria-hidden":new WeakSet};let Hu=new WeakMap,wb=0;function vP(e){return Fy[e]}function M_(e){return e?So(e)?e.host:M_(e.parentNode):null}const Bw=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=M_(n);return e.contains(r)?r:null}).filter(n=>n!=null),Fw=e=>{const t=new Set;return e.forEach(n=>{let r=n;for(;r&&!t.has(r);)t.add(r),r=r.parentNode}),t},Uw=(e,t,n)=>{const r=[],s=a=>{!a||n.has(a)||Array.from(a.children).forEach(l=>{Qn(l)!=="script"&&(t.has(l)?s(l):r.push(l))})};return s(e),r};function xP(e,t,n,r,{mark:s=!0}){let a=null;r?a="inert":n&&(a="aria-hidden");let l=null,c=null;const f=Bw(t,e),d=s?Uw(t,Fw(f),new Set(f)):[],h=[],m=[];if(a){const b=Sb[a],y=vP(a);c=y,l=b;const k=Bw(t,Array.from(t.querySelectorAll("[aria-live]"))),S=f.concat(k);Uw(t,Fw(S),new Set(S)).forEach(T=>{const E=T.getAttribute(a),C=E!==null&&E!=="false",_=(b.get(T)||0)+1;b.set(T,_),h.push(T),_===1&&C&&y.add(T),C||T.setAttribute(a,a==="inert"?"":"true")})}return s&&d.forEach(b=>{const y=(Hu.get(b)||0)+1;Hu.set(b,y),m.push(b),y===1&&b.setAttribute($w,"")}),wb+=1,()=>{l&&h.forEach(b=>{const k=(l.get(b)||0)-1;l.set(b,k),k||(!c?.has(b)&&a&&b.removeAttribute(a),c?.delete(b))}),s&&m.forEach(b=>{const y=(Hu.get(b)||0)-1;Hu.set(b,y),y||b.removeAttribute($w)}),wb-=1,wb||(Sb.inert=new WeakMap,Sb["aria-hidden"]=new WeakMap,Fy.inert=new WeakSet,Fy["aria-hidden"]=new WeakSet,Hu=new WeakMap)}}function qw(e,t={}){const{ariaHidden:n=!1,inert:r=!1,mark:s=!0}=t,a=Wt(e[0]).body;return xP(e,a,n,r,{mark:s})}var Mi=JC();const kP={style:{transition:"none"}},SP="data-base-ui-click-trigger",wP={fallbackAxisSide:"none"},D_={fallbackAxisSide:"end"},EP={clipPath:"inset(50%)",position:"fixed",top:0,left:0},L_=v.createContext(null),j_=()=>v.useContext(L_),TP=Rc("portal");function z_(e={}){const{ref:t,container:n,componentProps:r=Bn,elementProps:s}=e,a=Kc(),c=j_()?.portalNode,[f,d]=v.useState(null),[h,m]=v.useState(null),b=Ke(R=>{R!==null&&m(R)}),y=v.useRef(null);Ve(()=>{if(n===null){y.current&&(y.current=null,m(null),d(null));return}if(a==null)return;const R=(n&&(mh(n)?n:n.current))??c??document.body;if(R==null){y.current&&(y.current=null,m(null),d(null));return}y.current!==R&&(y.current=R,m(null),d(R))},[n,c,a]);const k=bn("div",r,{ref:[t,b],props:[{id:a,[TP]:""},s]});return{portalNode:h,portalSubtree:f&&k?Mi.createPortal(k,f):null}}const RP=v.forwardRef(function(t,n){const{render:r,className:s,style:a,children:l,container:c,renderGuards:f,...d}=t,{portalNode:h,portalSubtree:m}=z_({container:c,ref:n,componentProps:t,elementProps:d}),b=v.useRef(null),y=v.useRef(null),k=v.useRef(null),S=v.useRef(null),[R,T]=v.useState(null),E=v.useRef(!1),C=R?.modal,_=R?.open,D=typeof f=="boolean"?f:!!R&&!R.modal&&R.open&&!!h;v.useEffect(()=>{if(!h||C)return;function M(B){h&&B.relatedTarget&&fc(B)&&(B.type==="focusin"?E.current&&(zw(h),E.current=!1):(yP(h),E.current=!0))}return Wi(Dt(h,"focusin",M,!0),Dt(h,"focusout",M,!0))},[h,C]),Ve(()=>{!h||_!==!0||!E.current||(zw(h),E.current=!1)},[_,h]);const A=v.useMemo(()=>({beforeOutsideRef:b,afterOutsideRef:y,beforeInsideRef:k,afterInsideRef:S,portalNode:h,setFocusManagerState:T}),[h]);return g.jsxs(v.Fragment,{children:[m,g.jsxs(L_.Provider,{value:A,children:[D&&h&&g.jsx(Ip,{"data-type":"outside",ref:b,onFocus:M=>{if(fc(M,h))k.current?.focus();else{const B=R?R.domReference:null;I_(B)?.focus()}}}),D&&h&&g.jsx("span",{"aria-owns":h.id,style:EP}),h&&Mi.createPortal(l,h),D&&h&&g.jsx(Ip,{"data-type":"outside",ref:y,onFocus:M=>{if(fc(M,h))S.current?.focus();else{const B=R?R.domReference:null;O_(B)?.focus(),R?.closeOnFocusOut&&R?.onOpenChange(!1,Rt(vh,M.nativeEvent))}}})]})]})});function P_(){const e=new Map;return{emit(t,n){e.get(t)?.forEach(r=>r(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}class CP{nodesRef={current:[]};events=P_();addNode(t){this.nodesRef.current.push(t)}removeNode(t){const n=this.nodesRef.current.findIndex(r=>r===t);n!==-1&&this.nodesRef.current.splice(n,1)}}const $_=v.createContext(null),B_=v.createContext(null),Ul=()=>v.useContext($_)?.id||null,ba=e=>{const t=v.useContext(B_);return e??t};function _P(e){const t=Kc(),n=ba(e),r=Ul();return Ve(()=>{if(!t)return;const s={id:t,parentId:r};return n?.addNode(s),()=>{n?.removeNode(s)}},[n,t,r]),t}function AP(e){const{children:t,id:n}=e,r=Ul();return g.jsx($_.Provider,{value:v.useMemo(()=>({id:n,parentId:r}),[n,r]),children:t})}function NP(e){const{children:t,externalTree:n}=e,r=zr(()=>n??new CP).current;return g.jsx(B_.Provider,{value:r,children:t})}function ys(e){return e==null?e:"current"in e?e.current:e}function OP(e,t){const n=xn(gr(e));return e instanceof n.KeyboardEvent?"keyboard":e instanceof n.FocusEvent?t||"keyboard":"pointerType"in e?e.pointerType||"keyboard":"touches"in e?"touch":e instanceof n.MouseEvent?t||(e.detail===0?"keyboard":"mouse"):""}const Hw=20;let mo=[];function tx(){mo=mo.filter(e=>e.deref()?.isConnected)}function Vw(e){tx(),e&&Qn(e)!=="body"&&(mo.push(new WeakRef(e)),mo.length>Hw&&(mo=mo.slice(-Hw)))}function Gw(){return tx(),mo[mo.length-1]?.deref()}function IP(e){return e?ex(e)?e:Rh(e)[0]||e:null}function Ww(e){if(e.hasAttribute("tabindex")&&!e.hasAttribute("data-tabindex")||!e.getAttribute("role")?.includes("dialog"))return;const n=A_(e).filter(s=>{const a=s.getAttribute("data-tabindex")||"";return ex(s)||s.hasAttribute("data-tabindex")&&!a.startsWith("-")}),r=e.getAttribute("tabindex");n.length===0?r!=="0"&&(e.setAttribute("tabindex","0"),e.setAttribute("data-tabindex","0")):(r!=="-1"||e.hasAttribute("data-tabindex")&&e.getAttribute("data-tabindex")!=="-1")&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}function MP(e){const{context:t,children:n,disabled:r=!1,initialFocus:s=!0,returnFocus:a=!0,restoreFocus:l=!1,modal:c=!0,closeOnFocusOut:f=!0,openInteractionType:d="",nextFocusableElement:h,previousFocusableElement:m,beforeContentFocusGuardRef:b,externalTree:y,getInsideElements:k}=e,S="rootStore"in t?t.rootStore:t,R=S.useState("open"),T=S.useState("domReferenceElement"),E=S.useState("floatingElement"),{events:C,dataRef:_}=S.context,D=Ke(()=>_.current.floatingContext?.nodeId),A=s===!1,M=zy(T)&&A,B=On(s),P=On(a),N=On(d),W=On(R),$=ba(y),F=j_(),z=v.useRef(!1),U=v.useRef(!1),H=v.useRef(!1),K=v.useRef(null),q=v.useRef(""),Y=v.useRef(""),O=v.useRef(null),j=v.useRef(null),V=xo(O,b,F?.beforeInsideRef),L=xo(j,F?.afterInsideRef),X=bi(),se=bi(),ne=Rl(),oe=F!=null,le=Np(E),ce=Ke((ue=le)=>ue?Rh(ue):[]),Ee=Ke(()=>k?.().filter(ue=>ue!=null)??[]);v.useEffect(()=>{if(r||!c)return;function ue(Se){Se.key==="Tab"&&ht(le,pr(Wt(le)))&&ce().length===0&&!M&&Ui(Se)}const ge=Wt(le);return Dt(ge,"keydown",ue)},[r,le,c,M,ce]),v.useEffect(()=>{if(r||!R)return;const ue=Wt(le);function ge(){H.current=!1}function Se(ke){const xe=gr(ke),Re=Ee(),Me=ht(E,xe)||ht(T,xe)||ht(F?.portalNode,xe)||Re.some(ze=>ze===xe||ht(ze,xe));H.current=!Me,Y.current=ke.pointerType||"keyboard",xe?.closest(`[${SP}]`)&&(U.current=!0,se.start(0,()=>{U.current=!1}))}function Ae(){Y.current="keyboard"}return Wi(Dt(ue,"pointerdown",Se,!0),Dt(ue,"pointerup",ge,!0),Dt(ue,"pointercancel",ge,!0),Dt(ue,"keydown",Ae,!0),ge)},[r,E,T,le,R,F,se,Ee]),v.useEffect(()=>{if(r||!f)return;const ue=Wt(le);function ge(){U.current=!0,se.start(0,()=>{U.current=!1})}function Se(Re){const Me=gr(Re);ex(Me)&&(K.current=Me)}function Ae(Re){const Me=Re.relatedTarget,ze=Re.currentTarget,Fe=gr(Re);c&&Me==null&&Fe!=null&&ht(E,Fe)&&Vw(Fe),queueMicrotask(()=>{const ye=D(),_e=S.context.triggerElements,ee=Ee(),fe=Me?.hasAttribute(Rc("focus-guard"))&&[O.current,j.current,F?.beforeInsideRef.current,F?.afterInsideRef.current,F?.beforeOutsideRef.current,F?.afterOutsideRef.current,ys(m),ys(h)].includes(Me),Q=!(ht(T,Me)||ht(E,Me)||ht(Me,E)||ht(F?.portalNode,Me)||ee.some(re=>re===Me||ht(re,Me))||Me!=null&&_e.hasElement(Me)||_e.hasMatchingElement(re=>ht(re,Me))||fe||$&&(wo($.nodesRef.current,ye).find(re=>ht(re.context?.elements.floating,Me)||ht(re.context?.elements.domReference,Me))||Pw($.nodesRef.current,ye).find(re=>[re.context?.elements.floating,Np(re.context?.elements.floating)].includes(Me)||re.context?.elements.domReference===Me)));if(ze===T&&le&&Ww(le),l&&ze!==T&&!Th(Fe)&&pr(ue)===ue.body){if(Ft(le)&&(le.focus(),l==="popup")){ne.request(()=>{le.focus()});return}const re=ce(),we=K.current,Pe=(we&&re.includes(we)?we:null)||re[re.length-1]||le;Ft(Pe)&&Pe.focus()}if(_.current.insideReactTree){_.current.insideReactTree=!1;return}(M||!c)&&Me&&Q&&!U.current&&(M||Me!==Gw())&&(z.current=!0,S.setOpen(!1,Rt(vh,Re)))})}function ke(){H.current||(_.current.insideReactTree=!0,X.start(0,()=>{_.current.insideReactTree=!1}))}const xe=Ft(T)?T:null;if(!(!E&&!xe))return Wi(xe&&Dt(xe,"focusout",Ae),xe&&Dt(xe,"pointerdown",ge),E&&Dt(E,"focusin",Se),E&&Dt(E,"focusout",Ae),E&&F&&Dt(E,"focusout",ke,!0))},[r,T,E,le,c,$,F,S,f,l,ce,M,D,_,X,se,ne,h,m,Ee]),v.useEffect(()=>{if(r||!E||!R)return;const ue=Array.from(F?.portalNode?.querySelectorAll(`[${Rc("portal")}]`)||[]),Se=($?Pw($.nodesRef.current,D()):[]).find(ze=>zy(ze.context?.elements.domReference||null))?.context?.elements.domReference,ke=[...[E,...ue,O.current,j.current,F?.beforeOutsideRef.current,F?.afterOutsideRef.current,...Ee()],Se,ys(m),ys(h),M?T:null].filter(ze=>ze!=null),xe=qw(ke,{ariaHidden:c||M,mark:!1}),Re=[E,...ue].filter(ze=>ze!=null),Me=qw(Re);return()=>{Me(),xe()}},[R,r,T,E,c,F,M,$,D,h,m,Ee]),Ve(()=>{if(!R||r||!Ft(le))return;const ue=Wt(le),ge=pr(ue);queueMicrotask(()=>{const Se=B.current,Ae=typeof Se=="function"?Se(N.current||""):Se;if(Ae===void 0||Ae===!1||ht(le,ge))return;let xe=null;const Re=()=>(xe==null&&(xe=ce(le)),xe[0]||le);let Me;Ae===!0||Ae===null?Me=Re():Me=ys(Ae),Me=Me||Re();const ze=ht(le,pr(ue));yp(Me,{preventScroll:Me===le,shouldFocus(){if(!W.current)return!1;if(ze)return!0;const Fe=pr(ue);return!(Fe!==Me&&ht(le,Fe))}})})},[r,R,le,ce,B,N,W]),Ve(()=>{if(r||!le)return;const ue=Wt(le),ge=pr(ue),Se=N.current==null;Vw(ge);function Ae(xe){if(xe.open||(q.current=OP(xe.nativeEvent,Y.current)),xe.reason===Sr&&xe.nativeEvent.type==="mouseleave"&&(z.current=!0),xe.reason===Vv)if(xe.nested)z.current=!1;else if(Yv(xe.nativeEvent)||m_(xe.nativeEvent))z.current=!1;else{let Re=!1;Wt(le).createElement("div").focus({get preventScroll(){return Re=!0,!1}}),Re?z.current=!1:z.current=!0}}C.on("openchange",Ae);function ke(){const xe=P.current;let Re=typeof xe=="function"?xe(q.current):xe;if(Re===void 0||Re===!1)return null;Re===null&&(Re=!0);const Me=T?.isConnected?T:null,ze=ge?.isConnected&&Qn(ge)!=="body"?ge:null;let Fe=Se?ze||Me:Me||ze;return Fe||(Fe=Gw()||null),typeof Re=="boolean"?Fe:ys(Re)||Fe||null}return()=>{C.off("openchange",Ae);const xe=pr(ue),Re=Ee(),Me=ht(E,xe)||Re.some(ye=>ye===xe||ht(ye,xe))||$&&wo($.nodesRef.current,D(),!1).some(ye=>ht(ye.context?.elements.floating,xe)),ze=P.current,Fe=ke();queueMicrotask(()=>{const ye=IP(Fe),_e=typeof ze!="boolean";ze&&!z.current&&Ft(ye)&&(!(!_e&&ye!==xe&&xe!==ue.body)||Me)&&ye.focus({preventScroll:!0}),z.current=!1})}},[r,E,le,P,N,C,$,T,D,Ee]),Ve(()=>{if(!Ro||R||!E)return;const ue=pr(Wt(E));!Ft(ue)||!Eh(ue)||ht(E,ue)&&ue.blur()},[R,E]),Ve(()=>{if(!(r||!F))return F.setFocusManagerState({modal:c,closeOnFocusOut:f,open:R,onOpenChange:S.setOpen,domReference:T}),()=>{F.setFocusManagerState(null)}},[r,F,c,R,S,f,T]),Ve(()=>{if(!(r||!le))return Ww(le),()=>{queueMicrotask(tx)}},[r,le]);const be=!r&&(c?!M:!0)&&(oe||c);return g.jsxs(v.Fragment,{children:[be&&g.jsx(Ip,{"data-type":"inside",ref:V,onFocus:ue=>{if(c){const ge=ce();yp(ge[ge.length-1])}else F?.portalNode&&(z.current=!1,fc(ue,F.portalNode)?O_(T)?.focus():ys(m??F.beforeOutsideRef)?.focus())}}),n,be&&g.jsx(Ip,{"data-type":"inside",ref:L,onFocus:ue=>{c?yp(ce()[0]):F?.portalNode&&(f&&(z.current=!0),fc(ue,F.portalNode)?I_(T)?.focus():ys(h??F.afterOutsideRef)?.focus())}})]})}function DP(e,t={}){const{enabled:n=!0,event:r="click",toggle:s=!0,ignoreMouse:a=!1,stickIfOpen:l=!0,touchOpenDelay:c=0,reason:f=Bl}=t,d="rootStore"in e?e.rootStore:e,h=d.context.dataRef,m=v.useRef(void 0),b=Rl(),y=bi(),k=v.useMemo(()=>{function S(T,E,C,_){const D=Rt(f,E,C);T&&_==="touch"&&c>0?y.start(c,()=>{d.setOpen(!0,D)}):d.setOpen(T,D)}function R(T,E,C){const _=h.current.openEvent,D=d.select("domReferenceElement")!==E;return T&&D||!T||!s?!0:_&&l?!C(_.type):!1}return{onPointerDown(T){m.current=T.pointerType},onMouseDown(T){const E=m.current,C=T.nativeEvent,_=d.select("open");if(T.button!==0||r==="click"||oa(E,!0)&&a)return;const D=R(_,T.currentTarget,B=>B==="click"||B==="mousedown"),A=gr(C);if(Eh(A)){S(D,C,A,E);return}const M=T.currentTarget;b.request(()=>{S(D,C,M,E)})},onClick(T){if(r==="mousedown-only")return;const E=m.current;if(r==="mousedown"&&E){m.current=void 0;return}if(oa(E,!0)&&a)return;const C=d.select("open"),_=R(C,T.currentTarget,D=>D==="click"||D==="mousedown"||D==="keydown"||D==="keyup");S(_,T.nativeEvent,T.currentTarget,E)},onKeyDown(){m.current=void 0}}},[h,r,a,f,d,l,s,b,y,c]);return v.useMemo(()=>n?{reference:k}:Bn,[n,k])}function LP(e,t){let n=null,r=null,s=!1;return{contextElement:e||void 0,getBoundingClientRect(){const a=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},l=t.axis==="x"||t.axis==="both",c=t.axis==="y"||t.axis==="both",f=["mouseenter","mousemove"].includes(t.dataRef.current.openEvent?.type||"")&&t.pointerType!=="touch";let d=a.width,h=a.height,m=a.x,b=a.y;return n==null&&t.x&&l&&(n=a.x-t.x),r==null&&t.y&&c&&(r=a.y-t.y),m-=n||0,b-=r||0,d=0,h=0,!s||f?(d=t.axis==="y"?a.width:0,h=t.axis==="x"?a.height:0,m=l&&t.x!=null?t.x:m,b=c&&t.y!=null?t.y:b):s&&!f&&(h=t.axis==="x"?a.height:h,d=t.axis==="y"?a.width:d),s=!0,{width:d,height:h,x:m,y:b,top:b,right:m+d,bottom:b+h,left:m}}}}function Kw(e){return e!=null&&e.clientX!=null}function jP(e,t={}){const{enabled:n=!0,axis:r="both"}=t,s="rootStore"in e?e.rootStore:e,a=s.useState("open"),l=s.useState("floatingElement"),c=s.useState("domReferenceElement"),f=s.context.dataRef,d=v.useRef(!1),h=v.useRef(null),[m,b]=v.useState(),[y,k]=v.useState([]),S=Ke(_=>{s.set("positionReference",_)}),R=Ke((_,D,A)=>{d.current||f.current.openEvent&&!Kw(f.current.openEvent)||s.set("positionReference",LP(A??c,{x:_,y:D,axis:r,dataRef:f,pointerType:m}))}),T=Ke(_=>{a?h.current||(R(_.clientX,_.clientY,_.currentTarget),k([])):R(_.clientX,_.clientY,_.currentTarget)}),E=oa(m)?l:a;v.useEffect(()=>{if(!n){S(c);return}if(!E)return;function _(){h.current?.(),h.current=null}const D=xn(l);function A(M){const B=gr(M);ht(l,B)?_():R(M.clientX,M.clientY)}return!f.current.openEvent||Kw(f.current.openEvent)?h.current=Dt(D,"mousemove",A):S(c),_},[E,n,l,f,c,s,R,S,y]),v.useEffect(()=>()=>{s.set("positionReference",null)},[s]),v.useEffect(()=>{n&&!l&&(d.current=!1)},[n,l]),v.useEffect(()=>{!n&&a&&(d.current=!0)},[n,a]);const C=v.useMemo(()=>{function _(D){b(D.pointerType)}return{onPointerDown:_,onPointerEnter:_,onMouseMove:T,onMouseEnter:T}},[T]);return v.useMemo(()=>n?{reference:C,trigger:C}:{},[n,C])}function zP(){return!1}function PP(e){return{escapeKey:typeof e=="boolean"?e:e?.escapeKey??!1,outsidePress:typeof e=="boolean"?e:e?.outsidePress??!0}}function nx(e,t={}){const{enabled:n=!0,escapeKey:r=!0,outsidePress:s=!0,outsidePressEvent:a="sloppy",referencePress:l=zP,bubbles:c,externalTree:f}=t,d="rootStore"in e?e.rootStore:e,h=d.useState("open"),m=d.useState("floatingElement"),{dataRef:b}=d.context,y=ba(f),k=Ke(typeof s=="function"?s:()=>!1),S=typeof s=="function"?k:s,R=S!==!1,T=Ke(()=>a),{escapeKey:E,outsidePress:C}=PP(c),_=v.useRef(!1),D=v.useRef(!1),A=v.useRef(!1),M=v.useRef(!1),B=v.useRef(""),P=v.useRef(null),N=bi(),W=bi(),$=Ke(()=>{W.clear(),b.current.insideReactTree=!1}),F=Ke(V=>{const L=b.current.floatingContext?.nodeId;return(y?wo(y.nodesRef.current,L):[]).some(se=>se.context?.open&&!se.context.dataRef.current[V])}),z=Ke(V=>xb(V,d.select("floatingElement"))||xb(V,d.select("domReferenceElement"))),U=Ke(V=>{l()&&d.setOpen(!1,Rt(Bl,V.nativeEvent))}),H=Ke(V=>{if(!h||!n||!r||V.key!=="Escape"||M.current||!E&&F("__escapeKeyBubbles"))return;const L=Hz(V)?V.nativeEvent:V,X=Rt(Gv,L);d.setOpen(!1,X),X.isCanceled||V.preventDefault(),!E&&!X.isPropagationAllowed&&V.stopPropagation()}),K=Ke(()=>{b.current.insideReactTree=!0,W.start(0,$)}),q=Ke(V=>{if(!h||!n||V.button!==0)return;const L=gr(V.nativeEvent);ht(d.select("floatingElement"),L)&&(_.current||(_.current=!0,D.current=!1))}),Y=Ke(V=>{!h||!n||(V.defaultPrevented||V.nativeEvent.defaultPrevented)&&_.current&&(D.current=!0)});v.useEffect(()=>{if(!h||!n)return;b.current.__escapeKeyBubbles=E,b.current.__outsidePressBubbles=C;const V=new Oi,L=new Oi;function X(){V.clear(),M.current=!0}function se(){V.start(Ro?5:0,()=>{M.current=!1})}function ne(){A.current=!0,L.start(0,()=>{A.current=!1})}function oe(){_.current=!1,D.current=!1}function le(){const ee=B.current,fe=ee==="pen"||!ee?"mouse":ee,Q=T(),re=typeof Q=="function"?Q():Q;return typeof re=="string"?re:re[fe]}function ce(ee){const fe=le();return fe==="intentional"&&ee.type!=="click"||fe==="sloppy"&&ee.type==="click"}function Ee(ee){const fe=b.current.floatingContext?.nodeId,Q=y&&wo(y.nodesRef.current,fe).some(re=>xb(ee,re.context?.elements.floating));return z(ee)||Q}function be(ee){if(ce(ee)){ee.type!=="click"&&!z(ee)&&(L.clear(),A.current=!1),$();return}if(b.current.insideReactTree){$();return}const fe=gr(ee),Q=`[${Rc("inert")}]`,re=gt(fe)?fe.getRootNode():null,we=Array.from((So(re)?re:Wt(d.select("floatingElement"))).querySelectorAll(Q)),Pe=d.context.triggerElements;if(fe&&(Pe.hasElement(fe)||Pe.hasMatchingElement(Ze=>ht(Ze,fe))))return;let Ye=gt(fe)?fe:null;for(;Ye&&!_i(Ye);){const Ze=_s(Ye);if(_i(Ze)||!gt(Ze))break;Ye=Ze}if(!(we.length&&gt(fe)&&!Gz(fe)&&!ht(fe,d.select("floatingElement"))&&we.every(Ze=>!ht(Ye,Ze)))){if(Ft(fe)&&!("touches"in ee)){const Ze=_i(fe),bt=Tr(fe),Je=/auto|scroll/,xt=Ze||Je.test(bt.overflowX),St=Ze||Je.test(bt.overflowY),nt=xt&&fe.clientWidth>0&&fe.scrollWidth>fe.clientWidth,rt=St&&fe.clientHeight>0&&fe.scrollHeight>fe.clientHeight,ct=bt.direction==="rtl",it=rt&&(ct?ee.offsetX<=fe.offsetWidth-fe.clientWidth:ee.offsetX>fe.clientWidth),ft=nt&&ee.offsetY>fe.clientHeight;if(it||ft)return}if(!Ee(ee)){if(le()==="intentional"&&A.current){L.clear(),A.current=!1;return}typeof S=="function"&&!S(ee)||F("__outsidePressBubbles")||(d.setOpen(!1,Rt(Vv,ee)),$())}}}function ue(ee){le()!=="sloppy"||ee.pointerType==="touch"||!d.select("open")||!n||z(ee)||be(ee)}function ge(ee){if(le()!=="sloppy"||!d.select("open")||!n||z(ee))return;const fe=ee.touches[0];fe&&(P.current={startTime:Date.now(),startX:fe.clientX,startY:fe.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},N.start(1e3,()=>{P.current&&(P.current.dismissOnTouchEnd=!1,P.current.dismissOnMouseDown=!1)}))}function Se(ee,fe){const Q=gr(ee);if(!Q)return;const re=Dt(Q,ee.type,()=>{fe(ee),re()})}function Ae(ee){B.current="touch",Se(ee,ge)}function ke(ee){N.clear(),ee.type==="pointerdown"&&(B.current=ee.pointerType),!(ee.type==="mousedown"&&P.current&&!P.current.dismissOnMouseDown)&&Se(ee,fe=>{fe.type==="pointerdown"?ue(fe):be(fe)})}function xe(ee){if(!_.current)return;const fe=D.current;if(oe(),le()==="intentional"){if(ee.type==="pointercancel"){fe&&ne();return}if(!Ee(ee)){if(fe){ne();return}typeof S=="function"&&!S(ee)||(L.clear(),A.current=!0,$())}}}function Re(ee){if(le()!=="sloppy"||!P.current||z(ee))return;const fe=ee.touches[0];if(!fe)return;const Q=Math.abs(fe.clientX-P.current.startX),re=Math.abs(fe.clientY-P.current.startY),we=Math.sqrt(Q*Q+re*re);we>5&&(P.current.dismissOnTouchEnd=!0),we>10&&(be(ee),N.clear(),P.current=null)}function Me(ee){Se(ee,Re)}function ze(ee){le()!=="sloppy"||!P.current||z(ee)||(P.current.dismissOnTouchEnd&&be(ee),N.clear(),P.current=null)}function Fe(ee){Se(ee,ze)}const ye=Wt(m),_e=Wi(r&&Wi(Dt(ye,"keydown",H),Dt(ye,"compositionstart",X),Dt(ye,"compositionend",se)),R&&Wi(Dt(ye,"click",ke,!0),Dt(ye,"pointerdown",ke,!0),Dt(ye,"pointerup",xe,!0),Dt(ye,"pointercancel",xe,!0),Dt(ye,"mousedown",ke,!0),Dt(ye,"mouseup",xe,!0),Dt(ye,"touchstart",Ae,!0),Dt(ye,"touchmove",Me,!0),Dt(ye,"touchend",Fe,!0)));return()=>{_e(),V.clear(),L.clear(),oe(),A.current=!1}},[b,m,r,R,S,h,n,E,C,H,$,T,F,z,y,d,N]),v.useEffect($,[S,$]);const O=v.useMemo(()=>({onKeyDown:H,onPointerDown:U,onClick:U}),[H,U]),j=v.useMemo(()=>({onKeyDown:H,onPointerDown:Y,onMouseDown:Y,onClickCapture:K,onMouseDownCapture(V){K(),q(V)},onPointerDownCapture(V){K(),q(V)},onMouseUpCapture:K,onTouchEndCapture:K,onTouchMoveCapture:K}),[H,K,q,Y]);return v.useMemo(()=>n?{reference:O,floating:j,trigger:O}:{},[n,O,j])}function Yw(e,t,n){let{reference:r,floating:s}=e;const a=mi(t),l=Jv(t),c=Qv(l),f=ti(t),d=a==="y",h=r.x+r.width/2-s.width/2,m=r.y+r.height/2-s.height/2,b=r[c]/2-s[c]/2;let y;switch(f){case"top":y={x:h,y:r.y-s.height};break;case"bottom":y={x:h,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:m};break;case"left":y={x:r.x-s.width,y:m};break;default:y={x:r.x,y:r.y}}const k=Co(t);return k&&(y[l]+=b*(k==="end"?1:-1)*(n&&d?-1:1)),y}async function $P(e,t){var n;t===void 0&&(t={});const{x:r,y:s,platform:a,rects:l,elements:c,strategy:f}=e,{boundary:d="clippingAncestors",rootBoundary:h="viewport",elementContext:m="floating",altBoundary:b=!1,padding:y=0}=As(t,e),k=S_(y),R=c[b?m==="floating"?"reference":"floating":m],T=Tc(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(R)))==null||n?R:R.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:d,rootBoundary:h,strategy:f})),E=m==="floating"?{x:r,y:s,width:l.floating.width,height:l.floating.height}:l.reference,C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),_=await(a.isElement==null?void 0:a.isElement(C))&&await(a.getScale==null?void 0:a.getScale(C))||{x:1,y:1},D=Tc(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:E,offsetParent:C,strategy:f}):E);return{top:(T.top-D.top+k.top)/_.y,bottom:(D.bottom-T.bottom+k.bottom)/_.y,left:(T.left-D.left+k.left)/_.x,right:(D.right-T.right+k.right)/_.x}}const BP=50,FP=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:a=[],platform:l}=n,c=l.detectOverflow?l:{...l,detectOverflow:$P},f=await(l.isRTL==null?void 0:l.isRTL(t));let d=await l.getElementRects({reference:e,floating:t,strategy:s}),{x:h,y:m}=Yw(d,r,f),b=r,y=0;const k={};for(let S=0;S<a.length;S++){const R=a[S];if(!R)continue;const{name:T,fn:E}=R,{x:C,y:_,data:D,reset:A}=await E({x:h,y:m,initialPlacement:r,placement:b,strategy:s,middlewareData:k,rects:d,platform:c,elements:{reference:e,floating:t}});h=C??h,m=_??m,k[T]={...k[T],...D},A&&y<BP&&(y++,typeof A=="object"&&(A.placement&&(b=A.placement),A.rects&&(d=A.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:s}):A.rects),{x:h,y:m}=Yw(d,b,f)),S=-1)}return{x:h,y:m,placement:b,strategy:s,middlewareData:k}},UP=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:s,middlewareData:a,rects:l,initialPlacement:c,platform:f,elements:d}=t,{mainAxis:h=!0,crossAxis:m=!0,fallbackPlacements:b,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:k="none",flipAlignment:S=!0,...R}=As(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const T=ti(s),E=mi(c),C=ti(c)===c,_=await(f.isRTL==null?void 0:f.isRTL(d.floating)),D=b||(C||!S?[Mp(c)]:oP(c)),A=k!=="none";!b&&A&&D.push(...cP(c,S,k,_));const M=[c,...D],B=await f.detectOverflow(t,R),P=[];let N=((r=a.flip)==null?void 0:r.overflows)||[];if(h&&P.push(B[T]),m){const z=sP(s,l,_);P.push(B[z[0]],B[z[1]])}if(N=[...N,{placement:s,overflows:P}],!P.every(z=>z<=0)){var W,$;const z=(((W=a.flip)==null?void 0:W.index)||0)+1,U=M[z];if(U&&(!(m==="alignment"?E!==mi(U):!1)||N.every(q=>mi(q.placement)===E?q.overflows[0]>0:!0)))return{data:{index:z,overflows:N},reset:{placement:U}};let H=($=N.filter(K=>K.overflows[0]<=0).sort((K,q)=>K.overflows[1]-q.overflows[1])[0])==null?void 0:$.placement;if(!H)switch(y){case"bestFit":{var F;const K=(F=N.filter(q=>{if(A){const Y=mi(q.placement);return Y===E||Y==="y"}return!0}).map(q=>[q.placement,q.overflows.filter(Y=>Y>0).reduce((Y,O)=>Y+O,0)]).sort((q,Y)=>q[1]-Y[1])[0])==null?void 0:F[0];K&&(H=K);break}case"initialPlacement":H=c;break}if(s!==H)return{reset:{placement:H}}}return{}}}};function Xw(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Zw(e){return rP.some(t=>e[t]>=0)}const qP=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:s="referenceHidden",...a}=As(e,t);switch(s){case"referenceHidden":{const l=await r.detectOverflow(t,{...a,elementContext:"reference"}),c=Xw(l,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:Zw(c)}}}case"escaped":{const l=await r.detectOverflow(t,{...a,altBoundary:!0}),c=Xw(l,n.floating);return{data:{escapedOffsets:c,escaped:Zw(c)}}}default:return{}}}}},F_=new Set(["left","top"]);async function HP(e,t){const{placement:n,platform:r,elements:s}=e,a=await(r.isRTL==null?void 0:r.isRTL(s.floating)),l=ti(n),c=Co(n),f=mi(n)==="y",d=F_.has(l)?-1:1,h=a&&f?-1:1,m=As(t,e);let{mainAxis:b,crossAxis:y,alignmentAxis:k}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return c&&typeof k=="number"&&(y=c==="end"?k*-1:k),f?{x:y*h,y:b*d}:{x:b*d,y:y*h}}const VP=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:s,y:a,placement:l,middlewareData:c}=t,f=await HP(t,e);return l===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:s+f.x,y:a+f.y,data:{...f,placement:l}}}}},GP=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:s,platform:a}=t,{mainAxis:l=!0,crossAxis:c=!1,limiter:f={fn:E=>{let{x:C,y:_}=E;return{x:C,y:_}}},...d}=As(e,t),h={x:n,y:r},m=await a.detectOverflow(t,d),b=mi(s),y=Zv(b);let k=h[y],S=h[b];const R=(E,C)=>k_(C+m[E==="y"?"top":"left"],C,C-m[E==="y"?"bottom":"right"]);l&&(k=R(y,k)),c&&(S=R(b,S));const T=f.fn({...t,[y]:k,[b]:S});return{...T,data:{x:T.x-n,y:T.y-r,enabled:{[y]:l,[b]:c}}}}}},WP=function(e){return e===void 0&&(e={}),{options:e,fn(t){var n,r;const{x:s,y:a,placement:l,rects:c,middlewareData:f}=t,{offset:d=0,mainAxis:h=!0,crossAxis:m=!0}=As(e,t),b={x:s,y:a},y=mi(l),k=Zv(y);let S=b[k],R=b[y];const T=As(d,t),E=typeof T=="number"?{mainAxis:T,crossAxis:0}:{mainAxis:(n=T.mainAxis)!=null?n:0,crossAxis:(r=T.crossAxis)!=null?r:0};if(h){const D=k==="y"?"height":"width",A=c.reference[k]-c.floating[D]+E.mainAxis,M=c.reference[k]+c.reference[D]-E.mainAxis;S<A?S=A:S>M&&(S=M)}if(m){var C,_;const D=k==="y"?"width":"height",A=F_.has(ti(l)),M=c.reference[y]-c.floating[D]+(A&&((C=f.offset)==null?void 0:C[y])||0)+(A?0:E.crossAxis),B=c.reference[y]+c.reference[D]+(A?0:((_=f.offset)==null?void 0:_[y])||0)-(A?E.crossAxis:0);R<M?R=M:R>B&&(R=B)}return{[k]:S,[y]:R}}}},KP=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:s,elements:a}=t,{apply:l=()=>{},...c}=As(e,t),f=await s.detectOverflow(t,c),d=ti(n),h=Co(n),m=mi(n)==="y",{width:b,height:y}=r.floating;let k,S;d==="top"||d==="bottom"?(k=d,S=h===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(S=d,k=h==="end"?"top":"bottom");const R=y-f.top-f.bottom,T=b-f.left-f.right,E=Cl(y-f[k],R),C=Cl(b-f[S],T),_=t.middlewareData.shift,D=!_;let A=E,M=C;_!=null&&_.enabled.x&&(M=T),_!=null&&_.enabled.y&&(A=R),D&&!h&&(m?M=b-2*Ts(f.left,f.right):A=y-2*Ts(f.top,f.bottom)),await l({...t,availableWidth:M,availableHeight:A});const B=await s.getDimensions(a.floating);return b!==B.width||y!==B.height?{reset:{rects:!0}}:{}}}};function U_(e){const t=Tr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=Ft(e),a=s?e.offsetWidth:n,l=s?e.offsetHeight:r,c=_l(n)!==a||_l(r)!==l;return c&&(n=a,r=l),{width:n,height:r,$:c}}function rx(e){return gt(e)?e:e.contextElement}function xl(e){const t=rx(e);if(!Ft(t))return Rs(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:a}=U_(t);let l=(a?_l(n.width):n.width)/r,c=(a?_l(n.height):n.height)/s;return(!l||!Number.isFinite(l))&&(l=1),(!c||!Number.isFinite(c))&&(c=1),{x:l,y:c}}const YP=Rs(0);function q_(e){const t=xn(e);return!bh()||!t.visualViewport?YP:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function XP(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===xn(e)}function aa(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),a=rx(e);let l=Rs(1);t&&(r?gt(r)&&(l=xl(r)):l=xl(e));const c=XP(a,n,r)?q_(a):Rs(0);let f=(s.left+c.x)/l.x,d=(s.top+c.y)/l.y,h=s.width/l.x,m=s.height/l.y;if(a&&r){const b=xn(a),y=gt(r)?xn(r):r;let k=b,S=Dy(k);for(;S&&y!==k;){const R=xl(S),T=S.getBoundingClientRect(),E=Tr(S),C=T.left+(S.clientLeft+parseFloat(E.paddingLeft))*R.x,_=T.top+(S.clientTop+parseFloat(E.paddingTop))*R.y;f*=R.x,d*=R.y,h*=R.x,m*=R.y,f+=C,d+=_,k=xn(S),S=Dy(k)}}return Tc({width:h,height:m,x:f,y:d})}function Ch(e,t){const n=yh(e).scrollLeft;return t?t.left+n:aa(Os(e)).left+n}function H_(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Ch(e,n),s=n.top+t.scrollTop;return{x:r,y:s}}function ZP(e){let{elements:t,rect:n,offsetParent:r,strategy:s}=e;const a=s==="fixed",l=Os(r),c=t?gh(t.floating):!1;if(r===l||c&&a)return n;let f={scrollLeft:0,scrollTop:0},d=Rs(1);const h=Rs(0),m=Ft(r);if((m||!a)&&((Qn(r)!=="body"||ga(l))&&(f=yh(r)),m)){const y=aa(r);d=xl(r),h.x=y.x+r.clientLeft,h.y=y.y+r.clientTop}const b=l&&!m&&!a?H_(l,f):Rs(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-f.scrollLeft*d.x+h.x+b.x,y:n.y*d.y-f.scrollTop*d.y+h.y+b.y}}function QP(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function JP(e){const t=yh(e),n=e.ownerDocument.body,r=Ts(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),s=Ts(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let a=-t.scrollLeft+Ch(e);const l=-t.scrollTop;return Tr(n).direction==="rtl"&&(a+=Ts(e.clientWidth,n.clientWidth)-r),{width:r,height:s,x:a,y:l}}const e$=25;function t$(e,t,n){n===void 0&&(n="viewport");const r=n==="layoutViewport",s=xn(e),a=Os(e),l=s.visualViewport;let c=a.clientWidth,f=a.clientHeight,d=0,h=0;if(l){const b=!bh()||t==="fixed";r?b||(d=-l.offsetLeft,h=-l.offsetTop):(c=l.width,f=l.height,b&&(d=l.offsetLeft,h=l.offsetTop))}if(Ch(a)<=0){const b=a.ownerDocument,y=b.body,k=getComputedStyle(y),S=b.compatMode==="CSS1Compat"&&parseFloat(k.marginLeft)+parseFloat(k.marginRight)||0,R=Math.abs(a.clientWidth-y.clientWidth-S),T=getComputedStyle(a).scrollbarGutter==="stable both-edges"?R/2:R;T<=e$&&(c-=T)}return{width:c,height:f,x:d,y:h}}function n$(e,t){const n=aa(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,a=xl(e),l=e.clientWidth*a.x,c=e.clientHeight*a.y,f=s*a.x,d=r*a.y;return{width:l,height:c,x:f,y:d}}function Qw(e,t,n){let r;if(t==="viewport"||t==="layoutViewport")r=t$(e,n,t);else if(t==="document")r=JP(Os(e));else if(gt(t))r=n$(t,n);else{const s=q_(e);r={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return Tc(r)}function r$(e,t){const n=t.get(e);if(n)return n;let r=bo(e,[],!1).filter(c=>gt(c)&&Qn(c)!=="body"),s=null;const a=Tr(e).position==="fixed";let l=a?_s(e):e;for(;gt(l)&&!_i(l);){const c=Tr(l),f=qv(l),d=s?s.position:a?"fixed":"";!f&&(d==="fixed"||d==="absolute"&&c.position==="static")?r=r.filter(m=>m!==l):s=c,l=_s(l)}return t.set(e,r),r}function i$(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const l=[...n==="clippingAncestors"?gh(t)?[]:r$(t,this._c):[].concat(n),r],c=Qw(t,l[0],s);let f=c.top,d=c.right,h=c.bottom,m=c.left;for(let b=1;b<l.length;b++){const y=Qw(t,l[b],s);f=Ts(y.top,f),d=Cl(y.right,d),h=Cl(y.bottom,h),m=Ts(y.left,m)}return{width:d-m,height:h-f,x:m,y:f}}function s$(e){const{width:t,height:n}=U_(e);return{width:t,height:n}}function o$(e,t,n){const r=Ft(t),s=Os(t),a=n==="fixed",l=aa(e,!0,a,t);let c={scrollLeft:0,scrollTop:0};const f=Rs(0);if((r||!a)&&((Qn(t)!=="body"||ga(s))&&(c=yh(t)),r)){const b=aa(t,!0,a,t);f.x=b.x+t.clientLeft,f.y=b.y+t.clientTop}!r&&s&&(f.x=Ch(s));const d=s&&!r&&!a?H_(s,c):Rs(0),h=l.left+c.scrollLeft-f.x-d.x,m=l.top+c.scrollTop-f.y-d.y;return{x:h,y:m,width:l.width,height:l.height}}function Eb(e){return Tr(e).position==="static"}function Jw(e,t){if(!Ft(e)||Tr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Os(e)===n&&(n=n.ownerDocument.body),n}function V_(e,t){const n=xn(e);if(gh(e))return n;if(!Ft(e)){let s=_s(e);for(;s&&!_i(s);){if(gt(s)&&!Eb(s))return s;s=_s(s)}return n}let r=Jw(e,t);for(;r&&Ez(r)&&Eb(r);)r=Jw(r,t);return r&&_i(r)&&Eb(r)&&!qv(r)?n:r||Cz(e)||n}const a$=async function(e){const t=this.getOffsetParent||V_,n=this.getDimensions,r=await n(e.floating);return{reference:o$(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function l$(e){return Tr(e).direction==="rtl"}const G_={convertOffsetParentRelativeRectToViewportRelativeRect:ZP,getDocumentElement:Os,getClippingRect:i$,getOffsetParent:V_,getElementRects:a$,getClientRects:QP,getDimensions:s$,getScale:xl,isElement:gt,isRTL:l$};function W_(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function u$(e,t,n){let r=null,s;const a=Os(e);function l(){var h;clearTimeout(s),(h=r)==null||h.disconnect(),r=null}function c(h,m){h===void 0&&(h=!1),m===void 0&&(m=1),l();const b=e.getBoundingClientRect(),{left:y,top:k,width:S,height:R}=b;if(h||t(),!S||!R)return;const T=gl(k),E=gl(a.clientWidth-(y+S)),C=gl(a.clientHeight-(k+R)),_=gl(y),A={rootMargin:-T+"px "+-E+"px "+-C+"px "+-_+"px",threshold:Ts(0,Cl(1,m))||1};let M=!0;function B(P){const N=P[0].intersectionRatio;if(!W_(b,e.getBoundingClientRect()))return c();if(N!==m){if(!M)return c();N?c(!1,N):s=setTimeout(()=>{c(!1,1e-7)},1e3)}M=!1}try{r=new IntersectionObserver(B,{...A,root:a.ownerDocument})}catch{r=new IntersectionObserver(B,A)}r.observe(e)}const f=xn(e),d=()=>c(n);return f.addEventListener("resize",d),c(!0),()=>{f.removeEventListener("resize",d),l()}}function Lp(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:a=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:f=!1}=r,d=rx(e),h=s||a?[...d?bo(d):[],...t?bo(t):[]]:[];h.forEach(T=>{s&&T.addEventListener("scroll",n),a&&T.addEventListener("resize",n)});const m=d&&c?u$(d,n,a):null;let b=-1,y=null;l&&(y=new ResizeObserver(T=>{let[E]=T;E&&E.target===d&&y&&t&&(y.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var C;(C=y)==null||C.observe(t)})),n()}),d&&!f&&y.observe(d),t&&y.observe(t));let k,S=f?aa(e):null;f&&R();function R(){const T=aa(e);S&&!W_(S,T)&&n(),S=T,k=requestAnimationFrame(R)}return n(),()=>{var T;h.forEach(E=>{s&&E.removeEventListener("scroll",n),a&&E.removeEventListener("resize",n)}),m?.(),(T=y)==null||T.disconnect(),y=null,f&&cancelAnimationFrame(k)}}const c$=VP,f$=GP,d$=UP,p$=KP,h$=qP,m$=WP,g$=(e,t,n)=>{const r=new Map,s=n??{},a={...G_,...s.platform,_c:r};return FP(e,t,{...s,platform:a})};var b$=typeof document<"u",y$=function(){},vp=b$?v.useLayoutEffect:y$;function jp(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!jp(e[r],t[r]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,s[r]))return!1;for(r=n;r--!==0;){const a=s[r];if(!(a==="_owner"&&e.$$typeof)&&!jp(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function K_(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eE(e,t){const n=K_(e);return Math.round(t*n)/n}function Tb(e){const t=v.useRef(e);return vp(()=>{t.current=e}),t}function Y_(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:a,floating:l}={},transform:c=!0,whileElementsMounted:f,open:d}=e,[h,m]=v.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[b,y]=v.useState(r);jp(b,r)||y(r);const[k,S]=v.useState(null),[R,T]=v.useState(null),E=v.useCallback(q=>{q!==A.current&&(A.current=q,S(q))},[]),C=v.useCallback(q=>{q!==M.current&&(M.current=q,T(q))},[]),_=a||k,D=l||R,A=v.useRef(null),M=v.useRef(null),B=v.useRef(h),P=f!=null,N=Tb(f),W=Tb(s),$=Tb(d),F=v.useCallback(()=>{if(!A.current||!M.current)return;const q={placement:t,strategy:n,middleware:b};W.current&&(q.platform=W.current),g$(A.current,M.current,q).then(Y=>{const O={...Y,isPositioned:$.current!==!1};z.current&&!jp(B.current,O)&&(B.current=O,Mi.flushSync(()=>{m(O)}))})},[b,t,n,W,$]);vp(()=>{d===!1&&B.current.isPositioned&&(B.current.isPositioned=!1,m(q=>({...q,isPositioned:!1})))},[d]);const z=v.useRef(!1);vp(()=>(z.current=!0,()=>{z.current=!1}),[]),vp(()=>{if(_&&(A.current=_),D&&(M.current=D),_&&D){if(N.current)return N.current(_,D,F);F()}},[_,D,F,N,P]);const U=v.useMemo(()=>({reference:A,floating:M,setReference:E,setFloating:C}),[E,C]),H=v.useMemo(()=>({reference:_,floating:D}),[_,D]),K=v.useMemo(()=>{const q={position:n,left:0,top:0};if(!H.floating)return q;const Y=eE(H.floating,h.x),O=eE(H.floating,h.y);return c?{...q,transform:"translate("+Y+"px, "+O+"px)",...K_(H.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Y,top:O}},[n,c,H.floating,h.x,h.y]);return v.useMemo(()=>({...h,update:F,refs:U,elements:H,floatingStyles:K}),[h,F,U,H,K])}const ix=(e,t)=>{const n=c$(e);return{name:n.name,fn:n.fn,options:[e,t]}},sx=(e,t)=>{const n=f$(e);return{name:n.name,fn:n.fn,options:[e,t]}},v$=(e,t)=>({fn:m$(e).fn,options:[e,t]}),ox=(e,t)=>{const n=d$(e);return{name:n.name,fn:n.fn,options:[e,t]}},ax=(e,t)=>{const n=p$(e);return{name:n.name,fn:n.fn,options:[e,t]}},x$=(e,t)=>{const n=h$(e);return{name:n.name,fn:n.fn,options:[e,t]}};function zp(e,t,n,r){return{left:e,top:t,right:n,bottom:r,x:e,y:t,width:n-e,height:r-t}}function k$(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom,width:e.width,height:e.height}}function X_(e){const t=[];let n,r=Number.POSITIVE_INFINITY,s=Number.POSITIVE_INFINITY,a=Number.NEGATIVE_INFINITY,l=Number.NEGATIVE_INFINITY;for(const c of Array.from(e).sort((f,d)=>f.top-d.top)){if(r=Math.min(r,c.left),s=Math.min(s,c.top),a=Math.max(a,c.right),l=Math.max(l,c.bottom),!n||c.top-n.top>n.height/2)t.push(k$(c));else{const f=t[t.length-1];f.left=Math.min(f.left,c.left),f.right=Math.max(f.right,c.right),f.bottom=Math.max(f.bottom,c.bottom),f.width=f.right-f.left,f.height=f.bottom-f.top}n=c}return{lines:t,fallback:zp(r,s,a,l)}}function Z_(e,t,n){return e.findIndex(r=>t>r.left-2&&t<r.right+2&&n>r.top-2&&n<r.bottom+2)}function tE(e){return zp(e.left,e.top,e.right,e.bottom)}function S$(e,t,n){const{lines:r}=X_(e.getClientRects());if(r.length<2)return;const s=Z_(r,t,n);return{x:t,y:n,lineIndex:s===-1?void 0:s,element:e}}function w$(e,t,n){const{lines:r,fallback:s}=X_(e.getClientRects());if(r.length<2)return null;const a=n?.x,l=n?.y,c=t[0];if(n?.lineIndex!=null&&r[n.lineIndex])return tE(r[n.lineIndex]);if(a!=null&&l!=null){const k=Z_(r,a,l);if(k!==-1)return tE(r[k])}if(r.length===2&&r[0].left>r[1].right&&a!=null&&l!=null)return s;if(c==="t"||c==="b"){const k=r[0],S=r[r.length-1],R=c==="t"?k:S;return zp(R.left,k.top,R.right,S.bottom)}const f=c==="l";let d=r[0].left,h=r[0].right,m=f?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY,b=r[0],y=r[0];for(const k of r){d=Math.min(d,k.left),h=Math.max(h,k.right);const S=f?k.left:k.right;f&&S<m||!f&&S>m?(m=S,b=k,y=k):S===m&&(y=k)}return zp(d,b.top,h,y.bottom)}function E$(e){return"contextElement"in e&&e.contextElement?e.contextElement:gt(e)?e:void 0}function T$(e,t){function n(s){Q_(e,s.currentTarget,s.clientX,s.clientY)}function r(s){t||n(s)}return{onFocus(){e.current=void 0},onMouseEnter:r,onMouseMove:r}}function Q_(e,t,n,r){const s=S$(t,n,r);return e.current=s,s}function R$(e){return{name:"inline",async fn(t){const n=t.elements.reference;if(typeof n?.getClientRects!="function")return{};const r=E$(n),s=e.current,a=s?.element===n||s?.element===r?s:void 0,l=w$(n,t.placement,a);if(!l||typeof t.platform.getElementRects!="function")return{};const c=await t.platform.getElementRects({reference:{contextElement:r,getBoundingClientRect(){return l}},floating:t.elements.floating,strategy:t.strategy});return t.rects.reference.x===c.reference.x&&t.rects.reference.y===c.reference.y&&t.rects.reference.width===c.reference.width&&t.rects.reference.height===c.reference.height?{}:{reset:{rects:c}}}}}function J_(e){const t=v.useRef(!0);t.current&&(t.current=!1,e())}const tt=(e,t,n,r,s,a,...l)=>{if(l.length>0)throw new Error(In(1));let c;if(e)c=e;else throw new Error("Missing arguments");return c};var Rb={exports:{}},Cb={};var nE;function C$(){if(nE)return Cb;nE=1;var e=Gc();function t(m,b){return m===b&&(m!==0||1/m===1/b)||m!==m&&b!==b}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,s=e.useEffect,a=e.useLayoutEffect,l=e.useDebugValue;function c(m,b){var y=b(),k=r({inst:{value:y,getSnapshot:b}}),S=k[0].inst,R=k[1];return a(function(){S.value=y,S.getSnapshot=b,f(S)&&R({inst:S})},[m,y,b]),s(function(){return f(S)&&R({inst:S}),m(function(){f(S)&&R({inst:S})})},[m]),l(y),y}function f(m){var b=m.getSnapshot;m=m.value;try{var y=b();return!n(m,y)}catch{return!0}}function d(m,b){return b()}var h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:c;return Cb.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:h,Cb}var rE;function eA(){return rE||(rE=1,Rb.exports=C$()),Rb.exports}var lx=eA(),_b={exports:{}},Ab={};var iE;function _$(){if(iE)return Ab;iE=1;var e=Gc(),t=eA();function n(d,h){return d===h&&(d!==0||1/d===1/h)||d!==d&&h!==h}var r=typeof Object.is=="function"?Object.is:n,s=t.useSyncExternalStore,a=e.useRef,l=e.useEffect,c=e.useMemo,f=e.useDebugValue;return Ab.useSyncExternalStoreWithSelector=function(d,h,m,b,y){var k=a(null);if(k.current===null){var S={hasValue:!1,value:null};k.current=S}else S=k.current;k=c(function(){function T(A){if(!E){if(E=!0,C=A,A=b(A),y!==void 0&&S.hasValue){var M=S.value;if(y(M,A))return _=M}return _=A}if(M=_,r(C,A))return M;var B=b(A);return y!==void 0&&y(M,B)?(C=A,M):(C=A,_=B)}var E=!1,C,_,D=m===void 0?null:m;return[function(){return T(h())},D===null?void 0:function(){return T(D())}]},[h,m,b,y]);var R=s(d,k[0],k[1]);return l(function(){S.hasValue=!0,S.value=R},[R]),f(R),R},Ab}var sE;function A$(){return sE||(sE=1,_b.exports=_$()),_b.exports}var N$=A$();const Uy=[];let qy;function O$(){return qy}function I$(e){Uy.push(e)}function ux(e){const t=(n,r)=>{const s=zr(M$).current;let a;try{qy=s;for(const l of Uy)l.before(s);a=e(n,r);for(const l of Uy)l.after(s);s.didInitialize=!0}finally{qy=void 0}return a};return t.displayName=e.displayName||e.name,t}function tA(e){return v.forwardRef(ux(e))}function M$(){return{didInitialize:!1}}const D$=$v(19),L$=D$?z$:P$;function mt(e,t,n,r,s){return L$(e,t,n,r,s)}function j$(e,t,n,r,s){const a=v.useCallback(()=>t(e.getSnapshot(),n,r,s),[e,t,n,r,s]);return lx.useSyncExternalStore(e.subscribe,a,a)}I$({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){const r=e.syncHooks[n],s=r.selector(r.store.state,r.a1,r.a2,r.a3);Object.is(r.value,s)||(t=!0,r.value=s)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{const n=new Set;for(const s of e.syncHooks)n.add(s.store);const r=[];for(const s of n)r.push(s.subscribe(t));return()=>{for(const s of r)s()}}),lx.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getSnapshot))}});function z$(e,t,n,r,s){const a=O$();if(!a)return j$(e,t,n,r,s);const l=a.syncIndex;a.syncIndex+=1;let c;return a.didInitialize?(c=a.syncHooks[l],(c.store!==e||c.selector!==t||!Object.is(c.a1,n)||!Object.is(c.a2,r)||!Object.is(c.a3,s))&&(c.store!==e&&(a.didChangeStore=!0),c.store=e,c.selector=t,c.a1=n,c.a2=r,c.a3=s,c.value=t(e.getSnapshot(),n,r,s))):(c={store:e,selector:t,a1:n,a2:r,a3:s,value:t(e.getSnapshot(),n,r,s)},a.syncHooks.push(c)),c.value}function P$(e,t,n,r,s){return N$.useSyncExternalStoreWithSelector(e.subscribe,e.getSnapshot,e.getSnapshot,a=>t(a,n,r,s))}class nA{constructor(t){this.state=t,this.listeners=new Set,this.updateTick=0}subscribe=t=>(this.listeners.add(t),()=>{this.listeners.delete(t)});getSnapshot=()=>this.state;setState(t){if(this.state===t)return;this.state=t,this.updateTick+=1;const n=this.updateTick;for(const r of this.listeners){if(n!==this.updateTick)return;r(t)}}update(t){for(const n in t)if(!Object.is(this.state[n],t[n])){this.setState({...this.state,...t});return}}set(t,n){Object.is(this.state[t],n)||this.setState({...this.state,[t]:n})}notifyAll(){const t={...this.state};this.setState(t)}use(t,n,r,s){return mt(this,t,n,r,s)}}class cx extends nA{constructor(t,n={},r){super(t),this.context=n,this.selectors=r}useSyncedValue(t,n){v.useDebugValue(t);const r=this;Ve(()=>{r.state[t]!==n&&r.set(t,n)},[r,t,n])}useSyncedValueWithCleanup(t,n){const r=this;Ve(()=>(r.state[t]!==n&&r.set(t,n),()=>{r.set(t,void 0)}),[r,t,n])}useSyncedValues(t){const n=this,r=Object.values(t);Ve(()=>{n.update(t)},[n,...r])}useControlledProp(t,n){v.useDebugValue(t);const r=this,s=n!==void 0;Ve(()=>{s&&!Object.is(r.state[t],n)&&r.setState({...r.state,[t]:n})},[r,t,n,s])}select(t,n,r,s){const a=this.selectors[t];return a(this.state,n,r,s)}useState(t,n,r,s){return v.useDebugValue(t),mt(this,this.selectors[t],n,r,s)}useContextCallback(t,n){v.useDebugValue(t);const r=Ke(n??Zn);this.context[t]=r}useStateSetter(t){const n=v.useRef(void 0);return n.current===void 0&&(n.current=r=>{this.set(t,r)}),n.current}observe(t,n){let r;typeof t=="function"?r=t:r=this.selectors[t];let s=r(this.state);return n(s,s,this),this.subscribe(a=>{const l=r(a);if(!Object.is(s,l)){const c=s;s=l,n(l,c,this)}})}}function $$(){const[,e]=v.useState({});return v.useCallback(()=>{e({})},[])}const B$={open:tt(e=>e.open),transitionStatus:tt(e=>e.transitionStatus),domReferenceElement:tt(e=>e.domReferenceElement),referenceElement:tt(e=>e.positionReference??e.referenceElement),floatingElement:tt(e=>e.floatingElement),floatingId:tt(e=>e.floatingId)};class _h extends cx{constructor(t){const{syncOnly:n,nested:r,onOpenChange:s,triggerElements:a,...l}=t;super({...l,positionReference:l.referenceElement,domReferenceElement:l.referenceElement},{onOpenChange:s,dataRef:{current:{}},events:P_(),nested:r,triggerElements:a},B$),this.syncOnly=n}syncOpenEvent=(t,n)=>{(!t||!this.state.open||n!=null&&Vz(n))&&(this.context.dataRef.current.openEvent=t?n:void 0)};dispatchOpenChange=(t,n)=>{this.syncOpenEvent(t,n.event);const r={open:t,reason:n.reason,nativeEvent:n.event,nested:this.context.nested,triggerElement:n.trigger};this.context.events.emit("openchange",r)};setOpen=(t,n)=>{if(this.syncOnly){this.context.onOpenChange?.(t,n);return}this.dispatchOpenChange(t,n),this.context.onOpenChange?.(t,n)}}function F$(e){const{popupStore:t,treatPopupAsFloatingElement:n=!1,floatingRootContext:r,floatingId:s,nested:a,onOpenChange:l}=e,c=t.useState("open"),f=t.useState("activeTriggerElement"),d=t.useState(n?"popupElement":"positionerElement"),h=t.context.triggerElements,m=l,b=v.useRef(null);r===void 0&&b.current===null&&(b.current=new _h({open:c,transitionStatus:void 0,referenceElement:f,floatingElement:d,triggerElements:h,onOpenChange:m,floatingId:s,syncOnly:!0,nested:a}));const y=r??b.current;return t.useSyncedValue("floatingId",s),Ve(()=>{const k={open:c,floatingId:s,referenceElement:f,floatingElement:d};gt(f)&&(k.domReferenceElement=f),y.state.positionReference===y.state.referenceElement&&(k.positionReference=f),y.update(k)},[c,s,f,d,y]),y.context.onOpenChange=m,y.context.nested=a,y}function Yc(e,t=!1,n=!1){const[r,s]=v.useState(e&&t?"idle":void 0),[a,l]=v.useState(e);return e&&!a&&(l(!0),s("starting")),!e&&a&&r!=="ending"&&!n&&s("ending"),!e&&!a&&r==="ending"&&s(void 0),Ve(()=>{if(!e&&a&&r!=="ending"&&n){const c=Lr.request(()=>{s("ending")});return()=>{Lr.cancel(c)}}},[e,a,r,n]),Ve(()=>{if(!e||t)return;const c=Lr.request(()=>{s(void 0)});return()=>{Lr.cancel(c)}},[t,e]),Ve(()=>{if(!e||!t)return;e&&a&&r!=="idle"&&s("starting");const c=Lr.request(()=>{s("idle")});return()=>{Lr.cancel(c)}},[t,e,a,r]),{mounted:a,setMounted:l,transitionStatus:r}}function rA(e,t=!1,n=!0){const r=Rl();return Ke((s,a=null)=>{r.cancel();const l=ys(e);if(l==null)return;const c=l,f=()=>{Mi.flushSync(s)};if(typeof c.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED){s();return}function d(){Promise.all(c.getAnimations().map(h=>h.finished)).then(()=>{a?.aborted||f()}).catch(()=>{if(n){a?.aborted||f();return}const h=c.getAnimations();!a?.aborted&&h.length>0&&h.some(m=>m.pending||m.playState!=="finished")&&d()})}if(t){const h=sa.startingStyle;if(!c.hasAttribute(h)){r.request(d);return}const m=new MutationObserver(()=>{c.hasAttribute(h)||(m.disconnect(),d())});m.observe(c,{attributes:!0,attributeFilter:[h]}),a?.addEventListener("abort",()=>m.disconnect(),{once:!0});return}r.request(d)})}function _o(e){const{enabled:t=!0,open:n,ref:r,onComplete:s}=e,a=Ke(s),l=rA(r,n,!1);v.useEffect(()=>{if(!t)return;const c=new AbortController;return l(a,c.signal),()=>{c.abort()}},[t,n,a,l])}const fx={tabIndex:-1,[jy]:""};function iA(e,t,n=!1){const r=Kc(),s=Ul()!=null,a=v.useRef(null);e===void 0&&a.current===null&&(a.current=t(r,s));const l=e??a.current;return F$({popupStore:l,treatPopupAsFloatingElement:n,floatingRootContext:l.state.floatingRootContext,floatingId:r,nested:s,onOpenChange:l.setOpen}),{store:l,internalStore:a.current}}function U$(e,t){const n=v.useRef(null),r=v.useRef(null);return v.useCallback(s=>{if(e===void 0)return;let a=!1;if(n.current!==null){const l=n.current,c=r.current,f=t.context.triggerElements.getById(l);c&&f===c&&(t.context.triggerElements.delete(l),a=!0),n.current=null,r.current=null}if(s!==null&&(n.current=e,r.current=s,t.context.triggerElements.add(e,s),a=!0),a){const l=t.context.triggerElements.size;t.select("open")&&t.state.triggerCount!==l&&t.set("triggerCount",l)}},[t,e])}function q$(e,t,n,r=!1){t?e.preventUnmountingOnClose=!1:r&&(e.preventUnmountingOnClose=!0);const s=n?.id??null;(s||t)&&(e.activeTriggerId=s,e.activeTriggerElement=n??null)}function H$(e){let t=!1;return e.preventUnmountOnClose=()=>{t=!0},()=>t}function sA(e,t,n,r={}){const s=n.reason,a=s===Sr,l=t&&s===gp,c=!t&&(s===Bl||s===Gv),f=H$(n);if(e.context.onOpenChange?.(t,n),n.isCanceled)return;r.onBeforeDispatch?.(),e.state.floatingRootContext.dispatchOpenChange(t,n);const d=()=>{const h={...r.extraState,open:t};l?h.instantType="focus":c?h.instantType="dismiss":a&&(h.instantType=void 0),q$(h,t,n.trigger,f()),e.update(h)};a?Mi.flushSync(d):d()}function oA(e,t,n,r){J_(()=>{t===void 0&&e.state.open===!1&&n&&(e.state={...e.state,open:!0,activeTriggerId:r,preventUnmountingOnClose:!1})})}function aA(e,t,n,r){const s=n.useState("isMountedByTrigger",e),a=U$(e,n),l=Ke(c=>{if(a(c),!c)return;const f=n.select("open"),d=n.select("activeTriggerId");if(d===e){n.update({activeTriggerElement:c,...f?r:null});return}d==null&&f&&n.update({activeTriggerId:e,activeTriggerElement:c,...r})});return Ve(()=>{s&&n.update({activeTriggerElement:t.current,...r})},[s,n,t,...Object.values(r)]),{registerTrigger:l,isMountedByThisTrigger:s}}function lA(e,t={}){const{closeOnActiveTriggerUnmount:n=!1}=t,r=e.useState("open"),s=e.useState("triggerCount");Ve(()=>{if(!r){e.state.triggerCount!==0&&e.set("triggerCount",0);return}const a=e.context.triggerElements.size,l={};e.state.triggerCount!==a&&(l.triggerCount=a);const c=e.select("activeTriggerId");let f=null;if(c){const d=e.context.triggerElements.getById(c);d?d!==e.state.activeTriggerElement&&(l.activeTriggerElement=d):f=c}if(!f&&!c&&a===1){const d=e.context.triggerElements.entries().next();if(!d.done){const[h,m]=d.value;l.activeTriggerId=h,l.activeTriggerElement=m}}(l.triggerCount!==void 0||l.activeTriggerId!==void 0||l.activeTriggerElement!==void 0)&&e.update(l),f&&n&&queueMicrotask(()=>{if(e.select("open")&&e.select("activeTriggerId")===f&&!e.context.triggerElements.getById(f)){const d=Rt(Ni);e.setOpen(!1,d),d.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[r,e,s,n])}function uA(e,t,n){const{mounted:r,setMounted:s,transitionStatus:a}=Yc(e),l=t.useState("preventUnmountingOnClose"),c=e?!1:l;t.useSyncedValues({mounted:r,transitionStatus:a,preventUnmountingOnClose:c});const f=Ke(()=>{s(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)});return _o({enabled:r&&!e&&!c,open:e,ref:t.context.popupRef,onComplete(){e||f()}}),{forceUnmount:f,transitionStatus:a}}function cA(e,t){e.useSyncedValues(t),Ve(()=>()=>{e.update({activeTriggerProps:Bn,inactiveTriggerProps:Bn,popupProps:Bn})},[e])}class Ah{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(t,n){const r=this.idMap.get(t);r!==n&&(r!==void 0&&this.elementsSet.delete(r),this.elementsSet.add(n),this.idMap.set(t,n))}delete(t){const n=this.idMap.get(t);n&&(this.elementsSet.delete(n),this.idMap.delete(t))}hasElement(t){return this.elementsSet.has(t)}hasMatchingElement(t){for(const n of this.elementsSet)if(t(n))return!0;return!1}getById(t){return this.idMap.get(t)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}}function V$(){return new _h({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new Ah,floatingId:void 0,syncOnly:!1,nested:!1,onOpenChange:void 0})}function fA(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:V$(),floatingId:void 0,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:Bn,inactiveTriggerProps:Bn,popupProps:Bn}}function dA(e,t,n=!1){return new _h({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:n,onOpenChange:void 0})}const dc=tt(e=>e.triggerIdProp??e.activeTriggerId),dx=tt(e=>e.openProp??e.open),oE=tt(e=>(e.popupElement?.id??e.floatingId)||void 0);function pA(e,t){return t!==void 0&&dx(e)&&dc(e)===t}function G$(e,t){return pA(e,t)?!0:t!==void 0&&dx(e)&&dc(e)==null&&e.triggerCount===1}const hA={open:dx,mounted:tt(e=>e.mounted),transitionStatus:tt(e=>e.transitionStatus),floatingRootContext:tt(e=>e.floatingRootContext),triggerCount:tt(e=>e.triggerCount),preventUnmountingOnClose:tt(e=>e.preventUnmountingOnClose),payload:tt(e=>e.payload),activeTriggerId:dc,activeTriggerElement:tt(e=>e.mounted?e.activeTriggerElement:null),popupId:oE,isTriggerActive:tt((e,t)=>t!==void 0&&dc(e)===t),isOpenedByTrigger:tt((e,t)=>pA(e,t)),isMountedByTrigger:tt((e,t)=>t!==void 0&&dc(e)===t&&e.mounted),triggerProps:tt((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),triggerPopupId:tt((e,t)=>G$(e,t)?oE(e):void 0),popupProps:tt(e=>e.popupProps),popupElement:tt(e=>e.popupElement),positionerElement:tt(e=>e.positionerElement)};function mA(e){const{open:t=!1,onOpenChange:n,elements:r={}}=e,s=Kc(),a=Ul()!=null,l=zr(()=>new _h({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new Ah,floatingId:s,syncOnly:!1,nested:a})).current;return Ve(()=>{const c={open:t,floatingId:s};r.reference!==void 0&&(c.referenceElement=r.reference,c.domReferenceElement=gt(r.reference)?r.reference:null),r.floating!==void 0&&(c.floatingElement=r.floating),l.update(c)},[t,s,r.reference,r.floating,l]),l.context.onOpenChange=n,l.context.nested=a,l}function W$(e={}){const{nodeId:t,externalTree:n}=e,r=mA(e),s=e.rootContext||r,a=s.useState("referenceElement"),l=s.useState("floatingElement"),c=s.useState("domReferenceElement"),f=s.useState("open"),d=s.useState("floatingId"),[h,m]=v.useState(null),[b,y]=v.useState(void 0),[k,S]=v.useState(void 0),R=v.useRef(null),T=ba(n),E=v.useMemo(()=>({reference:a,floating:l,domReference:c}),[a,l,c]),C=Y_({...e,elements:{...E,...h&&{reference:h}}}),_=gt(b)?b:null,D=k===void 0?s.state.floatingElement:k;s.useSyncedValue("referenceElement",b??null),s.useSyncedValue("domReferenceElement",b===void 0?c:_),s.useSyncedValue("floatingElement",D);const A=v.useCallback($=>{const F=gt($)?{getBoundingClientRect:()=>$.getBoundingClientRect(),getClientRects:()=>$.getClientRects(),contextElement:$}:$;m(F),C.refs.setReference(F)},[C.refs]),M=v.useCallback($=>{(gt($)||$===null)&&(R.current=$,y($)),(gt(C.refs.reference.current)||C.refs.reference.current===null||$!==null&&!gt($))&&C.refs.setReference($)},[C.refs,y]),B=v.useCallback($=>{S($),C.refs.setFloating($)},[C.refs]),P=v.useMemo(()=>({...C.refs,setReference:M,setFloating:B,setPositionReference:A,domReference:R}),[C.refs,M,B,A]),N=v.useMemo(()=>({...C.elements,domReference:c}),[C.elements,c]),W=v.useMemo(()=>({...C,dataRef:s.context.dataRef,open:f,onOpenChange:s.setOpen,events:s.context.events,floatingId:d,refs:P,elements:N,nodeId:t,rootStore:s}),[C,P,N,t,s,f,d]);return Ve(()=>{c&&(R.current=c)},[c]),Ve(()=>{s.context.dataRef.current.floatingContext=W;const $=T?.nodesRef.current.find(F=>F.id===t);$&&($.context=W)}),v.useMemo(()=>({...C,context:W,refs:P,elements:N,rootStore:s}),[C,P,N,W,s])}const Nb=h_&&Ro;function gA(e,t={}){const{enabled:n=!0,delay:r}=t,s="rootStore"in e?e.rootStore:e,{events:a,dataRef:l}=s.context,c=v.useRef(!1),f=v.useRef(null),d=v.useRef(!0),h=bi();v.useEffect(()=>{const b=s.select("domReferenceElement");if(!n)return;const y=xn(b);function k(){const T=s.select("domReferenceElement");!s.select("open")&&Ft(T)&&T===pr(Wt(T))&&(c.current=!0)}function S(){d.current=!0}function R(){d.current=!1}return Wi(Dt(y,"blur",k),Nb&&Dt(y,"keydown",S,!0),Nb&&Dt(y,"pointerdown",R,!0))},[s,n]),v.useEffect(()=>{if(!n)return;function b(y){if(y.reason===Bl||y.reason===Gv){const k=s.select("domReferenceElement");gt(k)&&(f.current=k,c.current=!0)}}return a.on("openchange",b),()=>{a.off("openchange",b)}},[a,n,s]);const m=v.useMemo(()=>{function b(){c.current=!1,f.current=null}return{onMouseLeave(){b()},onFocus(y){const k=y.currentTarget;if(c.current){if(f.current===k)return;b()}const S=gr(y.nativeEvent);if(gt(S)){if(Nb&&!y.relatedTarget){if(!d.current&&!Eh(S))return}else if(!Kz(S))return}const R=Ap(y.relatedTarget,s.context.triggerElements),{nativeEvent:T,currentTarget:E}=y,C=typeof r=="function"?r():r;if(s.select("open")&&R||C===0||C===void 0){s.setOpen(!0,Rt(gp,T,E));return}h.start(C,()=>{c.current||s.setOpen(!0,Rt(gp,T,E))})},onBlur(y){b();const k=y.relatedTarget,S=y.nativeEvent,R=gt(k)&&k.hasAttribute(Rc("focus-guard"))&&k.getAttribute("data-type")==="outside";h.start(0,()=>{const T=s.select("domReferenceElement"),E=pr(Wt(T));!k&&E===T||ht(l.current.floatingContext?.refs.floating.current,E)||ht(T,E)||R||Ap(k??E,s.context.triggerElements)||s.setOpen(!1,Rt(gp,S))})}}},[l,r,s,h]);return v.useMemo(()=>n?{reference:m,trigger:m}:{},[n,m])}class px{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new Oi,this.restTimeout=new Oi,this.handleCloseOptions=void 0}static create(){return new px}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose}const Pp=new WeakMap;function $p(e){if(!e.performedPointerEventsMutation)return;const t=e.pointerEventsScopeElement;t&&Pp.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty("pointer-events"),e.pointerEventsReferenceElement?.style.removeProperty("pointer-events"),e.pointerEventsFloatingElement?.style.removeProperty("pointer-events"),Pp.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function bA(e,t){const{scopeElement:n,referenceElement:r,floatingElement:s}=t,a=Pp.get(n);a&&a!==e&&$p(a),$p(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=s,Pp.set(n,e),n.style.pointerEvents="none",r.style.pointerEvents="auto",s.style.pointerEvents="auto"}function hx(e){const t=e.context.dataRef.current,n=zr(()=>t.hoverInteractionState??px.create()).current;return t.hoverInteractionState||(t.hoverInteractionState=n),Wv(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function yA(e,t={}){const{enabled:n=!0,closeDelay:r=0,nodeId:s}=t,a="rootStore"in e?e.rootStore:e,l=a.useState("open"),c=a.useState("floatingElement"),f=a.useState("domReferenceElement"),{dataRef:d}=a.context,h=ba(),m=Ul(),b=hx(a),y=bi(),k=Ke(()=>y_(d.current.openEvent?.type,b.interactedInside)),S=Ke(()=>Xz(d.current.openEvent?.type)),R=Ke(()=>{$p(b)});Ve(()=>{l||(b.pointerType=void 0,b.restTimeoutPending=!1,b.interactedInside=!1,R())},[l,b,R]),v.useEffect(()=>R,[R]),Ve(()=>{if(n&&l&&b.handleCloseOptions?.blockPointerEvents&&S()&&gt(f)&&c){const T=f,E=c,C=Wt(c),_=h?.nodesRef.current.find(B=>B.id===m)?.context?.elements.floating;_&&(_.style.pointerEvents="");const D=b.pointerEventsScopeElement!==E?b.pointerEventsScopeElement:null,A=_!==E?_:null,M=b.handleCloseOptions?.getScope?.()??D??A??T.closest("[data-rootownerid]")??C.body;return bA(b,{scopeElement:M,referenceElement:T,floatingElement:E}),()=>{R()}}},[n,l,f,c,b,S,h,m,R]),v.useEffect(()=>{if(!n)return;function T(){return!!(h&&m&&wo(h.nodesRef.current,m).length>0)}function E(B){const P=Op(r,"close",b.pointerType),N=()=>{a.setOpen(!1,Rt(Sr,B)),h?.events.emit("floating.closed",B)};P?b.openChangeTimeout.start(P,N):(b.openChangeTimeout.clear(),N())}function C(B){const P=gr(B);if(!Wz(P)){b.interactedInside=!1;return}b.interactedInside=P?.closest("[aria-haspopup]")!=null}function _(){b.openChangeTimeout.clear(),y.clear(),h?.events.off("floating.closed",A),R()}function D(B){if(T()&&h){h.events.on("floating.closed",A);return}if(Ap(B.relatedTarget,a.context.triggerElements))return;const P=d.current.floatingContext?.nodeId??s,N=B.relatedTarget;if(!(h&&P&&gt(N)&&wo(h.nodesRef.current,P,!1).some($=>ht($.context?.elements.floating,N)))){if(b.handler){b.handler(B);return}R(),S()&&!k()&&E(B)}}function A(B){!h||!m||T()||y.start(0,()=>{h.events.off("floating.closed",A),a.setOpen(!1,Rt(Sr,B)),h.events.emit("floating.closed",B)})}const M=c;return Wi(M&&Dt(M,"mouseenter",_),M&&Dt(M,"mouseleave",D),M&&Dt(M,"pointerdown",C,!0),()=>{h?.events.off("floating.closed",A)})},[n,c,a,d,r,s,S,k,R,b,h,m,y])}const K$={current:null};function vA(e,t={}){const{enabled:n=!0,delay:r=0,handleClose:s=null,mouseOnly:a=!1,restMs:l=0,move:c=!0,triggerElementRef:f=K$,externalTree:d,isActiveTrigger:h=!0,getHandleCloseContext:m,isClosing:b,shouldOpen:y}=t,k="rootStore"in e?e.rootStore:e,{dataRef:S,events:R}=k.context,T=ba(d),E=hx(k),C=v.useRef(!1),_=On(s),D=On(r),A=On(l),M=On(n),B=On(y),P=On(b),N=Ke(()=>y_(S.current.openEvent?.type,E.interactedInside)),W=Ke(()=>B.current?.()!==!1),$=Ke((U,H,K)=>{const q=k.context.triggerElements;if(q.hasElement(H))return!U||!ht(U,H);if(!gt(K))return!1;const Y=K;return q.hasMatchingElement(O=>ht(O,Y))&&(!U||!ht(U,Y))}),F=Ke(()=>{if(!E.handler)return;Wt(k.select("domReferenceElement")).removeEventListener("mousemove",E.handler),E.handler=void 0}),z=Ke(()=>{$p(E)});return h&&(E.handleCloseOptions=_.current?.__options),v.useEffect(()=>F,[F]),v.useEffect(()=>{if(!n)return;function U(H){H.open?C.current=!1:(C.current=H.reason===Sr,F(),E.openChangeTimeout.clear(),E.restTimeout.clear(),E.blockMouseMove=!0,E.restTimeoutPending=!1)}return R.on("openchange",U),()=>{R.off("openchange",U)}},[n,R,E,F]),v.useEffect(()=>{if(!n)return;function U(Y,O=!0){const j=Op(D.current,"close",E.pointerType);j?E.openChangeTimeout.start(j,()=>{k.setOpen(!1,Rt(Sr,Y)),T?.events.emit("floating.closed",Y)}):O&&(E.openChangeTimeout.clear(),k.setOpen(!1,Rt(Sr,Y)),T?.events.emit("floating.closed",Y))}const H=f.current??(h?k.select("domReferenceElement"):null);if(!gt(H))return;function K(Y){if(E.openChangeTimeout.clear(),E.blockMouseMove=!1,a&&!oa(E.pointerType))return;const O=Dw(A.current),j=Op(D.current,"open",E.pointerType),V=gr(Y),L=Y.currentTarget??null,X=k.select("domReferenceElement");let se=L;if(gt(V)&&!k.context.triggerElements.hasElement(V)){for(const Se of k.context.triggerElements.elements())if(ht(Se,V)){se=Se;break}}gt(L)&&gt(X)&&!k.context.triggerElements.hasElement(L)&&ht(L,X)&&(se=X);const ne=se==null?!1:$(X,se,V),oe=k.select("open"),le=P.current?.()??k.select("transitionStatus")==="ending",ce=!oe&&le&&C.current,Ee=!ne&&gt(se)&&gt(X)&&ht(X,se)&&ce,be=O>0&&!j,ue=ne&&(oe||ce)||Ee,ge=!oe||ne;if(ue){W()&&k.setOpen(!0,Rt(Sr,Y,se));return}be||(j?E.openChangeTimeout.start(j,()=>{ge&&W()&&k.setOpen(!0,Rt(Sr,Y,se))}):ge&&W()&&k.setOpen(!0,Rt(Sr,Y,se)))}function q(Y){if(N()){z();return}F();const O=k.select("domReferenceElement"),j=Wt(O);E.restTimeout.clear(),E.restTimeoutPending=!1;const V=S.current.floatingContext??m?.();if(Ap(Y.relatedTarget,k.context.triggerElements))return;if(_.current&&V){k.select("open")||E.openChangeTimeout.clear();const X=f.current;E.handler=_.current({...V,tree:T,x:Y.clientX,y:Y.clientY,onClose(){z(),F(),M.current&&!N()&&X===k.select("domReferenceElement")&&U(Y,!0)}}),j.addEventListener("mousemove",E.handler),E.handler(Y);return}(E.pointerType!=="touch"||!ht(k.select("floatingElement"),Y.relatedTarget))&&U(Y)}return c?Wi(Dt(H,"mousemove",K,{once:!0}),Dt(H,"mouseenter",K),Dt(H,"mouseleave",q)):Wi(Dt(H,"mouseenter",K),Dt(H,"mouseleave",q))},[F,z,S,D,k,n,_,E,h,$,N,a,c,A,f,T,M,m,P,W]),v.useMemo(()=>{if(!n)return;function U(H){E.pointerType=H.pointerType}return{onPointerDown:U,onPointerEnter:U,onMouseMove(H){const{nativeEvent:K}=H,q=H.currentTarget,Y=k.select("domReferenceElement"),O=k.select("open"),j=$(Y,q,H.target);if(a&&!oa(E.pointerType))return;if(O&&j&&E.handleCloseOptions?.blockPointerEvents){const X=k.select("floatingElement");if(X){const se=E.handleCloseOptions?.getScope?.()??q.ownerDocument.body;bA(E,{scopeElement:se,referenceElement:q,floatingElement:X})}}const V=Dw(A.current);if(O&&!j||V===0||!j&&E.restTimeoutPending&&H.movementX**2+H.movementY**2<2)return;E.restTimeout.clear();function L(){if(E.restTimeoutPending=!1,N())return;const X=k.select("open");!E.blockMouseMove&&(!X||j)&&W()&&k.setOpen(!0,Rt(Sr,K,q))}E.pointerType==="touch"?Mi.flushSync(()=>{L()}):j&&O?L():(E.restTimeoutPending=!0,E.restTimeout.start(V,L))}}},[n,E,N,$,a,k,A,W])}const Y$="Escape";function Nh(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function Id(e,t){return Nh(t,e===b_||e===Xv,e===Sh||e===wh)}function Ob(e,t,n){return Nh(t,e===Xv,n?e===Sh:e===wh)||e==="Enter"||e===" "||e===""}function X$(e,t,n){return Nh(t,n?e===Sh:e===wh,e===Xv)}function Z$(e,t,n,r){const s=n?e===wh:e===Sh,a=e===b_;return t==="both"||t==="horizontal"&&r?e===Y$:Nh(t,s,a)}function Q$(e,t){const{listRef:n,activeIndex:r,onNavigate:s=()=>{},enabled:a=!0,selectedIndex:l=null,allowEscape:c=!1,loopFocus:f=!1,nested:d=!1,rtl:h=!1,virtual:m=!1,focusItemOnOpen:b="auto",focusItemOnHover:y=!0,openOnArrowKeyDown:k=!0,disabledIndices:S=void 0,orientation:R="vertical",parentOrientation:T,id:E,resetOnPointerLeave:C=!0,externalTree:_,grid:D}=t,A=D!=null,M="rootStore"in e?e.rootStore:e,B=M.useState("open"),P=M.useState("floatingElement"),N=M.useState("domReferenceElement"),W=M.context.dataRef,$=Np(P),F=zy(N),z=On($),U=Ul(),H=ba(_),K=v.useRef(b),q=v.useRef(l??-1),Y=v.useRef(null),O=v.useRef(!0),j=Ke(ee=>{s(q.current===-1?null:q.current,ee)}),V=v.useRef(!!P),L=v.useRef(B),X=v.useRef(!1),se=v.useRef(!1),ne=v.useRef(null),oe=On(S),le=On(B),ce=On(l),Ee=On(C),be=Rl(),ue=Rl(),ge=Ke(()=>{function ee(we){m?H?.events.emit("virtualfocus",we):ne.current=yp(we,{sync:X.current,preventScroll:!0})}const fe=n.current[q.current],Q=se.current;fe&&ee(fe),(X.current?we=>we():we=>be.request(we))(()=>{const we=n.current[q.current]||fe;if(!we)return;fe||ee(we),Me&&(Q||!O.current)&&we.scrollIntoView?.({block:"nearest",inline:"nearest"})})});Ve(()=>{W.current.orientation=R},[W,R]),Ve(()=>{a&&(B&&P?(q.current=l??-1,K.current&&l!=null&&(se.current=!0,j())):V.current&&(q.current=-1,j()))},[a,B,P,l,j]),Ve(()=>{if(a){if(!B){X.current=!1;return}if(P)if(r==null){if(X.current=!1,ce.current!=null)return;if(V.current&&(q.current=-1,ge()),(!L.current||!V.current)&&K.current&&(Y.current!=null||K.current===!0&&Y.current==null)){let ee=0;const fe=()=>{n.current[0]==null?(ee<2&&(ee?re=>ue.request(re):queueMicrotask)(fe),ee+=1):(q.current=Y.current==null||Ob(Y.current,R,h)||d?bp(n):$y(n),Y.current=null,j())};fe()}}else cc(n.current,r)||(q.current=r,ge(),se.current=!1)}},[a,B,P,r,ce,d,n,R,h,j,ge,ue]),Ve(()=>{if(!a||P||!H||m||!V.current)return;const ee=H.nodesRef.current,fe=ee.find(we=>we.id===U)?.context?.elements.floating,Q=pr(Wt(N??fe??null)),re=ee.some(we=>we.context&&ht(we.context.elements.floating,Q));fe&&!re&&O.current&&fe.focus({preventScroll:!0})},[a,P,N,H,U,m]),Ve(()=>{L.current=B,V.current=!!P}),Ve(()=>{B||(Y.current=null,K.current=b)},[B,b]);const Se=r!=null,Ae=Ke(ee=>{if(!le.current)return;const fe=n.current.indexOf(ee.currentTarget);fe!==-1&&(q.current!==fe||r!==fe)&&(q.current=fe,j(ee))}),ke=Ke(()=>T??H?.nodesRef.current.find(ee=>ee.id===U)?.context?.dataRef?.current.orientation),xe=Ke(()=>bp(n,oe.current)),Re=Ke(ee=>{if(O.current=!1,X.current=!0,ee.which===229||!le.current&&ee.currentTarget===z.current)return;if(d&&Z$(ee.key,R,h,A)){Id(ee.key,ke())||Ui(ee),M.setOpen(!1,Rt(_w,ee.nativeEvent)),Ft(N)&&(m?H?.events.emit("virtualfocus",N):N.focus());return}const fe=q.current,Q=bp(n,S),re=$y(n,S);if(F||(ee.key==="Home"&&(Ui(ee),q.current=Q,j(ee)),ee.key==="End"&&(Ui(ee),q.current=re,j(ee))),D!=null){const we=D(ee,q.current,n,R,f,h,S,Q,re);if(we!=null&&(q.current=we,j(ee)),R==="both")return}if(Id(ee.key,R)){if(Ui(ee),B&&!m&&pr(ee.currentTarget.ownerDocument)===ee.currentTarget){q.current=Ob(ee.key,R,h)?Q:re,j(ee);return}Ob(ee.key,R,h)?f?fe>=re?c&&fe!==n.current.length?q.current=-1:(X.current=!1,q.current=Q):q.current=Ss(n.current,{startingIndex:fe,disabledIndices:S}):q.current=Math.min(re,Ss(n.current,{startingIndex:fe,disabledIndices:S})):f?fe<=Q?c&&fe!==-1?q.current=n.current.length:(X.current=!1,q.current=re):q.current=Ss(n.current,{startingIndex:fe,decrement:!0,disabledIndices:S}):q.current=Math.max(Q,Ss(n.current,{startingIndex:fe,decrement:!0,disabledIndices:S})),cc(n.current,q.current)&&(q.current=-1),j(ee)}}),Me=v.useMemo(()=>({onFocus(fe){X.current=!0,Ae(fe)},onClick:({currentTarget:fe})=>fe.focus({preventScroll:!0}),onMouseMove(fe){X.current=!0,se.current=!1,y&&Ae(fe)},onPointerLeave(fe){if(!le.current||!O.current||fe.pointerType==="touch")return;X.current=!0;const Q=fe.relatedTarget;if(!(!y||n.current.includes(Q))&&Ee.current&&(ne.current?.(),ne.current=null,q.current=-1,j(fe),!m)){const re=z.current,we=pr(Wt(re));re&&ht(re,we)&&re.focus({preventScroll:!0})}}}),[Ae,le,z,y,n,j,Ee,m]),ze=v.useMemo(()=>m&&B&&Se&&{"aria-activedescendant":`${E}-${r}`},[m,B,Se,E,r]),Fe=v.useMemo(()=>({"aria-orientation":R==="both"?void 0:R,...F?{}:ze,onKeyDown(ee){if(ee.key==="Tab"&&ee.shiftKey&&B&&!m){const fe=gr(ee.nativeEvent);if(fe&&!ht(z.current,fe))return;Ui(ee),M.setOpen(!1,Rt(vh,ee.nativeEvent)),Ft(N)&&N.focus();return}Re(ee)},onPointerMove(){O.current=!0}}),[ze,Re,z,R,F,M,B,m,N]),ye=v.useMemo(()=>{function ee(re){M.setOpen(!0,Rt(_w,re.nativeEvent,re.currentTarget))}function fe(re){b==="auto"&&Yv(re.nativeEvent)&&(K.current=!m)}function Q(re){K.current=b,b==="auto"&&m_(re.nativeEvent)&&(K.current=!0)}return{onKeyDown(re){const we=M.select("open");O.current=!1;const Pe=re.key.startsWith("Arrow"),Ye=X$(re.key,ke(),h),Ze=Id(re.key,R),bt=(d?Ye:Ze)||re.key==="Enter"||re.key.trim()==="";if(m&&we)return Re(re);if(!(!we&&!k&&Pe)){if(bt){const Je=Id(re.key,ke());Y.current=d&&Je?null:re.key}if(d){Ye&&(Ui(re),we?(q.current=xe(),j(re)):ee(re));return}Ze&&(ce.current!=null&&(q.current=ce.current),Ui(re),!we&&k?ee(re):Re(re),we&&j(re))}},onFocus(re){M.select("open")&&!m&&(q.current=-1,j(re))},onPointerDown:Q,onPointerEnter:Q,onMouseDown:fe,onClick:fe}},[Re,b,xe,d,j,M,k,R,ke,h,ce,m]),_e=v.useMemo(()=>({...ze,...ye}),[ze,ye]);return v.useMemo(()=>a?{reference:_e,floating:Fe,item:Me,trigger:ye}:{},[a,_e,Fe,ye,Me])}function J$(e,t){const{listRef:n,elementsRef:r,activeIndex:s,onMatch:a,disabledIndices:l,onTyping:c,enabled:f=!0,resetMs:d=750,selectedIndex:h=null}=t,m="rootStore"in e?e.rootStore:e,b=m.useState("open"),y=bi(),k=v.useRef(""),S=v.useRef(h??s??-1),R=v.useRef(null),T=Ke(_=>{function D(z){const U=r?.current[z];return!U||Th(U)}function A(z){return D(z)?l==null||!Dp(ko,z,l):!1}function M(z,U,H=0){if(z.length===0)return-1;const K=(H%z.length+z.length)%z.length,q=U.toLowerCase();for(let Y=0;Y<z.length;Y+=1){const O=(K+Y)%z.length;if(!(!z[O]?.toLowerCase().startsWith(q)||!A(O)))return O}return-1}const B=n.current;if(k.current.length>0&&_.key===" "&&(Ui(_),c?.(!0)),k.current.length>0&&k.current[0]!==" "&&M(B,k.current)===-1&&_.key!==" "&&c?.(!1),B==null||_.key.length!==1||_.ctrlKey||_.metaKey||_.altKey)return;b&&_.key!==" "&&(Ui(_),c?.(!0));const P=k.current==="";P&&(S.current=h??s??-1),B.every((z,U)=>z&&A(U)?z[0]?.toLowerCase()!==z[1]?.toLowerCase():!0)&&k.current===_.key&&(k.current="",S.current=R.current),k.current+=_.key,y.start(d,()=>{k.current="",S.current=R.current,c?.(!1)});const $=((P?h??s??-1:S.current)??0)+1,F=M(B,k.current,$);F!==-1?(a?.(F),R.current=F):_.key!==" "&&(k.current="",c?.(!1))}),E=Ke(_=>{const D=_.relatedTarget,A=m.select("domReferenceElement"),M=m.select("floatingElement");ht(A,D)||ht(M,D)||(y.clear(),k.current="",S.current=R.current,c?.(!1))});Ve(()=>{!b&&h!==null||(y.clear(),R.current=null,k.current!==""&&(k.current=""))},[b,h,y]),Ve(()=>{b&&k.current===""&&(S.current=h??s??-1)},[b,h,s]);const C=v.useMemo(()=>({onKeyDown:T,onBlur:E}),[T,E]);return v.useMemo(()=>f?{reference:C,floating:C}:{},[f,C])}const aE=.1,e3=aE*aE,pn=.5;function Md(e,t,n,r,s,a){return r>=t!=a>=t&&e<=(s-n)*(t-r)/(a-r)+n}function Dd(e,t,n,r,s,a,l,c,f,d){let h=!1;return Md(e,t,n,r,s,a)&&(h=!h),Md(e,t,s,a,l,c)&&(h=!h),Md(e,t,l,c,f,d)&&(h=!h),Md(e,t,f,d,n,r)&&(h=!h),h}function t3(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function Ld(e,t,n,r,s,a){const l=Math.min(n,s),c=Math.max(n,s),f=Math.min(r,a),d=Math.max(r,a);return e>=l&&e<=c&&t>=f&&t<=d}function xA(e={}){const{blockPointerEvents:t=!1}=e,n=new Oi,r=({x:s,y:a,placement:l,elements:c,onClose:f,nodeId:d,tree:h})=>{const m=l?.split("-")[0];let b=!1,y=null,k=null,S=typeof performance<"u"?performance.now():0;function R(E,C){const _=performance.now(),D=_-S;if(y===null||k===null||D===0)return y=E,k=C,S=_,!1;const A=E-y,M=C-k,B=A*A+M*M,P=D*D*e3;return y=E,k=C,S=_,B<P}function T(){n.clear(),f()}return function(C){n.clear();const _=c.domReference,D=c.floating;if(!_||!D||m==null||s==null||a==null)return;const{clientX:A,clientY:M}=C,B=gr(C),P=C.type==="mouseleave",N=ht(D,B),W=ht(_,B);if(N&&(b=!0,!P))return;if(W&&(b=!1,!P)){b=!0;return}if(P&&gt(C.relatedTarget)&&ht(D,C.relatedTarget))return;function $(){return!!(h&&wo(h.nodesRef.current,d).length>0)}function F(){$()||T()}if($())return;const z=_.getBoundingClientRect(),U=D.getBoundingClientRect(),H=s>U.right-U.width/2,K=a>U.bottom-U.height/2,q=U.width>z.width,Y=U.height>z.height,O=(q?z:U).left,j=(q?z:U).right,V=(Y?z:U).top,L=(Y?z:U).bottom;if(m==="top"&&a>=z.bottom-1||m==="bottom"&&a<=z.top+1||m==="left"&&s>=z.right-1||m==="right"&&s<=z.left+1){F();return}let X=!1;switch(m){case"top":X=Ld(A,M,O,z.top+1,j,U.bottom-1);break;case"bottom":X=Ld(A,M,O,U.top+1,j,z.bottom-1);break;case"left":X=Ld(A,M,U.right-1,L,z.left+1,V);break;case"right":X=Ld(A,M,z.right-1,L,U.left+1,V);break}if(X)return;if(b&&!t3(A,M,z)){F();return}if(!P&&R(A,M)){F();return}let se=!1;switch(m){case"top":{const ne=q?pn/2:pn*4,oe=q||H?s+ne:s-ne,le=q?s-ne:H?s+ne:s-ne,ce=a+pn+1,Ee=H||q?U.bottom-pn:U.top,be=H?q?U.bottom-pn:U.top:U.bottom-pn;se=Dd(A,M,oe,ce,le,ce,U.left,Ee,U.right,be);break}case"bottom":{const ne=q?pn/2:pn*4,oe=q||H?s+ne:s-ne,le=q?s-ne:H?s+ne:s-ne,ce=a-pn,Ee=H||q?U.top+pn:U.bottom,be=H?q?U.top+pn:U.bottom:U.top+pn;se=Dd(A,M,oe,ce,le,ce,U.left,Ee,U.right,be);break}case"left":{const ne=Y?pn/2:pn*4,oe=Y||K?a+ne:a-ne,le=Y?a-ne:K?a+ne:a-ne,ce=s+pn+1,Ee=K||Y?U.right-pn:U.left,be=K?Y?U.right-pn:U.left:U.right-pn;se=Dd(A,M,Ee,U.top,be,U.bottom,ce,oe,ce,le);break}case"right":{const ne=Y?pn/2:pn*4,oe=Y||K?a+ne:a-ne,le=Y?a-ne:K?a+ne:a-ne,ce=s-pn,Ee=K||Y?U.left+pn:U.right,be=K?Y?U.left+pn:U.right:U.left+pn;se=Dd(A,M,ce,oe,ce,le,Ee,U.top,be,U.bottom);break}}se?b||n.start(40,F):F()}};return r.__options={...e,blockPointerEvents:t},r}const pc="ArrowUp",hc="ArrowDown",Bp="ArrowLeft",Fp="ArrowRight",Oh="Home",Ih="End",kA=new Set([Bp,Fp]),n3=new Set([Bp,Fp,Oh,Ih]),SA=new Set([pc,hc]),r3=new Set([pc,hc,Oh,Ih]),wA=new Set([...kA,...SA]),EA=new Set([...wA,Oh,Ih]),i3="Shift",s3="Control",o3="Alt",a3="Meta",l3=new Set([i3,s3,o3,a3]);function u3(e){return Ft(e)&&e.tagName==="INPUT"}function lE(e){return!!(u3(e)&&e.selectionStart!=null||Ft(e)&&e.tagName==="TEXTAREA")}function uE(e,t,n,r){if(!e||!t||!t.scrollTo)return;let s=e.scrollLeft,a=e.scrollTop;const l=e.clientWidth<e.scrollWidth,c=e.clientHeight<e.scrollHeight;if(l&&r!=="vertical"){const f=cE(e,t,"left"),d=jd(e),h=jd(t);n==="ltr"&&(f+t.offsetWidth+h.scrollMarginRight>e.scrollLeft+e.clientWidth-d.scrollPaddingRight?s=f+t.offsetWidth+h.scrollMarginRight-e.clientWidth+d.scrollPaddingRight:f-h.scrollMarginLeft<e.scrollLeft+d.scrollPaddingLeft&&(s=f-h.scrollMarginLeft-d.scrollPaddingLeft)),n==="rtl"&&(f-h.scrollMarginRight<e.scrollLeft+d.scrollPaddingLeft?s=f-h.scrollMarginLeft-d.scrollPaddingLeft:f+t.offsetWidth+h.scrollMarginRight>e.scrollLeft+e.clientWidth-d.scrollPaddingRight&&(s=f+t.offsetWidth+h.scrollMarginRight-e.clientWidth+d.scrollPaddingRight))}if(c&&r!=="horizontal"){const f=cE(e,t,"top"),d=jd(e),h=jd(t);f-h.scrollMarginTop<e.scrollTop+d.scrollPaddingTop?a=f-h.scrollMarginTop-d.scrollPaddingTop:f+t.offsetHeight+h.scrollMarginBottom>e.scrollTop+e.clientHeight-d.scrollPaddingBottom&&(a=f+t.offsetHeight+h.scrollMarginBottom-e.clientHeight+d.scrollPaddingBottom)}e.scrollTo({left:s,top:a,behavior:"auto"})}function cE(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let s=0;for(;t.offsetParent&&(s+=t[r],t.offsetParent!==e);)t=t.offsetParent;return s}function jd(e){const t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}function c3(e){return $v(19)?e:e?"true":void 0}const f3=v.forwardRef(function(t,n){const{cutout:r,...s}=t;let a;if(r){const l=r.getBoundingClientRect();a=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${l.left}px ${l.top}px,${l.left}px ${l.bottom}px,${l.right}px ${l.bottom}px,${l.right}px ${l.top}px,${l.left}px ${l.top}px)`}return g.jsx("div",{ref:n,role:"presentation","data-base-ui-inert":"",...s,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:a}})});let fE={},dE={},pE="";function d3(e){if(typeof document>"u")return!1;const t=Wt(e);return xn(t).innerWidth-t.documentElement.clientWidth>0}function p3(e){if(!(typeof CSS<"u"&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||typeof document>"u")return!1;const n=Wt(e),r=n.documentElement,s=n.body,a=ga(r)?r:s,l=a.style.overflowY,c=r.style.scrollbarGutter;r.style.scrollbarGutter="stable",a.style.overflowY="scroll";const f=a.offsetWidth;a.style.overflowY="hidden";const d=a.offsetWidth;return a.style.overflowY=l,r.style.scrollbarGutter=c,f===d}function h3(e){const t=Wt(e),n=t.documentElement,r=t.body,s=ga(n)?n:r,a={overflowY:s.style.overflowY,overflowX:s.style.overflowX};return Object.assign(s.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(s.style,a)}}function m3(e){const t=Wt(e),n=t.documentElement,r=t.body,s=xn(n);let a=0,l=0,c=!1;const f=Lr.create();if(Ro&&(s.visualViewport?.scale??1)!==1)return()=>{};function d(){const y=s.getComputedStyle(n),k=s.getComputedStyle(r),T=(y.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";a=n.scrollTop,l=n.scrollLeft,fE={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},pE=n.style.scrollBehavior,dE={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};const E=n.scrollHeight>n.clientHeight,C=n.scrollWidth>n.clientWidth,_=y.overflowY==="scroll"||k.overflowY==="scroll",D=y.overflowX==="scroll"||k.overflowX==="scroll",A=Math.max(0,s.innerWidth-r.clientWidth),M=Math.max(0,s.innerHeight-r.clientHeight),B=parseFloat(k.marginTop)+parseFloat(k.marginBottom),P=parseFloat(k.marginLeft)+parseFloat(k.marginRight),N=ga(n)?n:r;if(c=p3(e),c){n.style.scrollbarGutter=T,N.style.overflowY="hidden",N.style.overflowX="hidden";return}Object.assign(n.style,{scrollbarGutter:T,overflowY:"hidden",overflowX:"hidden"}),(E||_)&&(n.style.overflowY="scroll"),(C||D)&&(n.style.overflowX="scroll"),Object.assign(r.style,{position:"relative",height:B||M?`calc(100dvh - ${B+M}px)`:"100dvh",width:P||A?`calc(100vw - ${P+A}px)`:"100vw",boxSizing:"border-box",overflow:"hidden",scrollBehavior:"unset"}),r.scrollTop=a,r.scrollLeft=l,n.setAttribute("data-base-ui-scroll-locked",""),n.style.scrollBehavior="unset"}function h(){Object.assign(n.style,fE),Object.assign(r.style,dE),c||(n.scrollTop=a,n.scrollLeft=l,n.removeAttribute("data-base-ui-scroll-locked"),n.style.scrollBehavior=pE)}function m(){h(),f.request(d)}d();const b=Dt(s,"resize",m);return()=>{f.cancel(),h(),typeof s.removeEventListener=="function"&&b()}}class g3{lockCount=0;restore=null;timeoutLock=Oi.create();timeoutUnlock=Oi.create();acquire(t){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(t)),this.release}release=()=>{this.lockCount-=1,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(t){if(this.lockCount===0||this.restore!==null)return;const r=Wt(t).documentElement,s=xn(r).getComputedStyle(r).overflowY;if(s==="hidden"||s==="clip"){this.restore=Zn;return}const a=kh||!d3(t);this.restore=a?h3(t):m3(t)}}const b3=new g3;function y3(e=!0,t=null){Ve(()=>{if(e)return b3.acquire(t)},[e,t])}function v3(e){const t=v.useRef(""),n=v.useCallback(s=>{s.defaultPrevented||(t.current=s.pointerType,e(s,s.pointerType))},[e]);return{onClick:v.useCallback(s=>{if(s.detail===0){e(s,"keyboard");return}"pointerType"in s?e(s,s.pointerType):e(s,t.current),t.current=""},[e]),onPointerDown:n}}function TA(e,t){const n=v.useRef(e),r=Ke(t);Ve(()=>{n.current!==e&&r(n.current)},[e,r]),Ve(()=>{n.current=e},[e])}function x3(e,t){const n=Ke((a,l)=>{(typeof e=="function"?e():e)||t(l||(kh?"touch":""))}),{onClick:r,onPointerDown:s}=v3(n);return v.useMemo(()=>({onClick:r,onPointerDown:s}),[r,s])}function k3(e){const[t,n]=v.useState(null),r=x3(e,n);return TA(e,s=>{s&&!e&&n(null)}),v.useMemo(()=>({openMethod:t,triggerProps:r}),[t,r])}const S3=v.createContext(void 0);function Di(){return v.useContext(S3)?.direction??"ltr"}const w3="0account 1dd 1gent 5-circle 6square 5s 6-swarm 1larm-clock 2ert 1rchive 2my-base 2row-block-bend-up-left cdown cleft dine-down hleft hright hup cright cup 7racket-from-down jleft jright jup l-dashed eto-down hleft hright hup 6ccw 7ircle-down dleft dright dup 7w 6down 6elbow-down-left hright cup-left fright 6left a-down bup 6right b-down cup 6square-down dfrom-down ileft iright iup dleft h-down itop iup dright i-down jtop jup dto-down gleft gright gup dup 7wap 6u-up-left bright 7p 5s-both-horizontal cvertical 7ccw a-angular 8ontract f-simple 8w 7down-up 7elbow-up-left 8xpand d-simple 7left-right 7out-cardinal 1sterisk 1t 2om 0bandaid 3knote 8s-stack 2rbell 2sketball 1each-umbrella 3ker 6-stop 2ehouse 2ll 4-dot 5slash 1inary 3oculars 1luetooth 1oard-kanban 2ok 4-open 4mark 4s 2wtie 1racket 7-dot 8error 7s-curly e-dot fx 9square 3in 5-hourglass 6simple cst 7lash 2iefcase 2owser 7s 2ush 1ug 3bot 2ilding 8s 2llseye 0calculator 3endar 8-hourglass 2mera 2r 3dholder 2stle 1d 1hart-bars 6line 6pie 7yramid 6scatter 3t-bubble b-chevrons-left-right cellipsis dxclamation cpencil cquestion bs c-grid 4Bubble a-ellipsis cxclamation bquestion as 2eck 5-circle 6square 5s 3f-hat 3ss-king 6tower 3vron-circle-down fleft fright fup 8down c-small 8left c-small 8right d-small 8up a-small 7s-down d-up 9left d-right 9right e-dotted-left 9up b-down 2ip 4-simple 1ircle 6-circle 7dashed 6s 7-check 1lipboard 2ock 3ne 3se 3ud 5-arrow-down cup 6download 6upload 1ode 4-brackets 5simple 2g 2llection a-plus 3or-mode 2mmand 4ent 7-dashed 9iscussion 9ot 7s 3pass 7-check 8dot 2nversation 2okie 2pilot 3y 2rners-in 8out b-check csparkle 2st-high 5low 5medium 1redit-card 2oss-medical 5hair 3wn 2ystal-ball 1ube 4-coordinates 5nodes 5transparent 2rrency-btc 9dollar 9eth 3sor-logo 7text 2tlery 1ylinder 0dashboard 2tabase 8-network 1ebug-pause 6restart 6start 8op 2ckchair-umbrella 2sktop-download 2vice-camera d-video 7desktop 7mobile 1iagram 2ff 4-added 5ignored 5modified 6ultiple 5removed 7named 5single b-arrow-right-up cdot 2scard 3play 7-check 9ircle 9onnect 8play 8waves 7s 1ots-3-horizontal 7vertical 1rop 0easel 1dit 1lephant 2lipsis 1nvelope 8-open 1raser 2ror 1xclamation-circle ctriangle 2ecution-parallel asequential 2tensions 1ye 3-closed 4slash 0fast-backward 5forward 1eedback 1ile 4-add 6rrow-right-up 5binary 5chevrons-left-right 6ode 5directory e-create 5image 5list 6ock 5media 5pdf 6lus 5text 6ype-adobe-illustrator gphotoshop ababel czel bevy bicep comejs bower bun ac-plus-plus csharp blojure brystal buda adart bocker aejs blixir bslint af-sharp birebase ageckodriver bit-meta bo cdot brails dphql coovy cunt bulp ahaml cndlebars cskell aionic ajava escript bulia cpyter akarma botlin alatex biquid amaven bustache anpm bunjucks aocaml bdata apdf berl blatformio bowershell brettier cisma colog buppet bython areason cscript bollup bust asass bbt bcala blim btylus bublime bvelte bwift aterraform bypescript avala bite bsc bue aweb-assembly dpack bindows ayarn azig 5zip 4s 3m-reel 5strip 3ter 1lag 4-hill 3me 3sk 5-slash-circle 2oppy-disc 1ocus-window 2ld-dashed 4er 6-active 8rrow-right-up 7check 7dashed 7library 7open bed 7plus 6s 2rk 1unnel 6-simple 0game-controller f-retro 2uge 1ear 2m 1ift 2t-branch 4commit a-horizontal 7pare 4fetch 5ork 4merge 4pull 8-request g-closed ireate hdone iraft 6sh 3hub 6-actions 1lobe 1raduation-cap 3ph 5-line 6scatter 2id 4-plus 5sparkle 3pper 0hamburger 3mer 2sh 2t 1eadphones 4set 3rt 2xagon 1istory 1ome 2urglass 3se 0i-circle 1mage 5-square 1nbox 2finity 3o 2spect 1ssue 5-closed 6draft 5s 0joystick 1son 0kebab-horizontal 6vertical 2y 3board 8-tab 0laptop 2yers 3out-dialog 7empty 7floating-window 7panel-bottom j-dock kon kundock doff 7sidebar-left j-dock koff ln kundock fright k-dock loff mn lundock 8plit-horizontal n-dashed oright-dock uundock dvertical 1eaf 2go 1ibrary 2ghtbulb 9-sparkle 5ning 2nk 4-external 2st-bullets 5checks 5filter 5ordered 5todo 9-subtask 5x 1oading 2cation 3k 4-locked 5unlocked 2go-azure a-devops 5figma 5git 8hub 8lab 5jira 5linear 5markdown 6cp 6icrosoft-teams 5notion 5python 5sentry 6lack 5vscode b-insiders 5x 0mac-mini 2gic-wand 3net 4ifying-glass g-fuzzy hminus hplus hslash-circle iparkle aGlass f-minus gplus gslash-circle 2il 2p 3-pin 2rk-github 4down 2sk-happy 4s-happy 1cp 1egaphone 2ntion 3u 2rge 1ic 3roscope 2nus 5-circle 6small 1obile 2on 4-sparkle 5z 2re 1usic 2te 0new-file 5older 3spaper 1ote 0one-circle 1rganization c-filled 1wl 0package 7-zipper 2int-roller 2lette 2perclip 5plane 2ragraph 2ss 2use 5-circle 2w 1en-nib 3cil 6-square 3tagon 2ople 6-3 2rcent 3son 6-add 7chat-bubble 8ircle 7follow 7plus 1iano 2e-chart 2lcrow 2n 3-slash 2pe 1lan 4e 3y 4-bug 5circle 5slow 6uper-fast 4back-loop 4s-bug 2ug 4-slash 3s 4-circle 5minus 1ointer-arrow 1ug 2lse 2zzle-piece 0question 8-circle 2ote 0radar 3io-tower 1ect-magnifying-glass fGlass 2do 2fresh 2gex 2mote-control 4ve 6-close 2place 7-all 3ort 2turn 2view 1obot 2cket 4ing-chair 1ss 1uler 4s 2n 0satellite 1cales 1eal 4-check 5question 3rch 6-stop 2nd 2rver 6s 2ttings 8-gear 1hapes-square-circle 3re 2ield 6-check 7question 7x 2oe-fast 3pping-bag bsket 1ignal 1kills 6-capability 1lash-circle 2iders 1martwatch 2iley-happy c-square 7neutral 7plus 7sad 1nowflake 1occer-ball 2rt-ascending 5descending 2urce-control 1parkle 7s 2eaker-hifi 8waves 8x 2inner 2lit 5-horizontal 6vertical 2rint 1quare 6-dashed 8ot 6s 7-minus 8plus 8x 1tack 3r 4-empty 5full 3tus-done 8raft 7needs-attention 2op 4-circle 4watch 3refront 1un 1watches 1ymbol-folder 2nc 0t-shirt 1able 3s 2g 3s-chevron-down dleft dright dup 2rget 1erminal 8-rectangle 2xt-aa 6b 5b 5c 5d 5italic 5j 5r 5s 6trikethrough 5t 6-square 6t 5y 1hinking-high 9low 9medium 2reads-parallel 8single 4e-bars 2umbs-down 7up 9-down 6down 6up 1raffic-cone 7Cone 3sh 5can 3y 2easure-chest 3nding-down 9up 2iangle-small-down fleft fright fup 1wig 0unfold-dashed 2lock 2mute 2verified 0vault 1erified 3sions 1ideo-camera 1m 1r 2-headset a-head 0wallet 2nd 2rning 2tch 2veform 1hole-word 1indow 6-pointer-arrow 6s 1rench 0x 1-circle 0yarn 0zap 1ipper 1oom-in 5out 1zz",E3="1ajd -8p 1wz t 1 1 -w ah -273 18 1wb a6 -ke 1 iy 2 2 2 -j3 1 3s 1 a -1f5 -1 -1 1f6 -1 -1 -1ok 8a 1 1 1 -5k -4d 9c 1ww 1 1 -269 1m4 1 -1m4 1m5 -zs 10y 2q -1 -1ra 8u 1ft 7 -1 0 -7 6 -114 0 -k 145 -1r8 1r7 -2k -1ez c9 13u -1od -8 1m9 1x -1v 1w -1v -1na 1nb k4 -i9 -1u -1dw -4p il -a2 1jz 1 5n -5m 1 1 1 -1xc a0 1nd -1w8 6w 32 -80 3k 1qr -1sb 1r8 -1v4 1 6v 1ue -1yb 5y 1 -5z 5y 1 -9o l9 1bp 1 1 1 -1w3 2 39 i8 -lg bu 1k7 1 -1mx 1my -1w2 1ut -1tn 1ux 1 1 1 -1tv 67 2 1md -1me c2 -9q 1ed -1l6 ht vt 7o 5w -1an 14n -1l6 1dm 7o -1pa lk 108 -1ep 1p2 1 1 8d 2 2 2 -24o 1lr -1lq 1lr -1lq 1lr -1lq 1lr -1k3 2 kf zn 1y -11z -k2 k7 -c2 1kx -1np -e es -mc bb bf -9 -dw c6 -d4 -6g 1 -1 1 1vr -1xc 1xd -1ub 1lz c -1np 1le -1nx bn 1fm -1fq -8z 7i 2 -1 1h6 70 -1mk -1w -3j -1 1hq ab -1e 1 1 -1uc 1vp 1 6n -6m -1ac 1ad -1ah 103 af 1 1 -1a3 10r 9d 1 1 -1vt 1vu -70 -1oq 1oo -1it 1pw -1w7 o -1 -2n 2p 1tv -1tp -5 1 1 91 -90 1 8y -n 1 ae -lk 73 1 1b -1a 1zf 1 -26j 44 1yc -4a -1yf 21u -21l 4g -1 hx -m1 mt -nk 1wk 1 -1t7 -3a 1qg -1n5 1tb 1 -5n -1qp lu -in -37 32 -32 8 -3 2y a1 -9l -g 1 iq 1ce 41 -2 28 -p 5 -16 46 -18 1a -5x 1 j 4 2x 2e -7a 58 -2m 1y -2j x r -3o 1 3v -s -32 4j 1e -y o -b -2z -2c 1 1 1 3e -3d 1 34 1f k -1x c r 1k -2t u 21 -1u -1m 4o -2y m -2m -24 4u -s -41 1 2q 24 -3m 3q -12 -x -2y 1 1 1 3f -3e 3c -3b 14 -13 1 3f p -24d 39 1v0 1 -1v0 9a -7z -1a -3d a0 -46 ij 3 -o6 37 -9 9 23b -1wu -6g -38 -3 30 1tf -1ta 42 1qz 1 -1w2 17 28 -27 jf -jc 1l3 -1l2 80 -ca 4b 1u -64 ae -u 3u -2z -4a -59 3f 2 w -u 67 1 1od 1 1 -1um 1un -1bs 1dm -1t 1 1 -1up 1xy -21l 3o jt -jt -42 de 1ae -1jn hx -m2 9p -5h j2 -dd df 1bf -1ug -43 44 1 ij -a8 ba -e8 1x9 1 1 -1w0 20 -2f 1d7 -1cs 1 20 -20 -f 18n -18a 23 -23 -c 18n -15r -1 1be 1 -1in 1sh 1 -1ql -8r bz be -id k1 -1t -ky 5s -31 je 191 -1uu ln -j4 -4l 0 73 2s g 1mq ad -26z 1wn 54 -53 -7n -1ci 1p9 -53 -1kk 1po -53 -1l1 1 -54 1rs -1p7 -x -8x bk -3v -1 -1f 76 -df 7p -1 -1f -1e 6h -6j -46 49 1u6 1 -1lx -89 8n -5d n 2v -bd 5e 1ib b3 -1w2 1l0 b3 1 -1yr bj -6v h5 -lp 1yo -1u2 1ru -1wi 0 24k -1zt 1us -s 1 -1lq -1x 1ci -10n 142 -3e b5 -b4 -1o0 oa 1ds -21r 1yu -1mp -cs 9y -1j 3 1g 0 25 -1i -2v -2a 1r4 85 -gc b5 -7v -1jd l 1ob 1 -l -1m9 -4v -2l -34 1jm 5s -1bf 1sd -20j 1tx -b5 -1ir 1 1tw -1tv 1lp 0 -1lm 0 1 21d -21a g7 15b 0 -1lb 4o 1dp -1c7 -64 1tg -1td -4x 1vi -56 7z -1uv 1jq -1gx -1 -7d 69 5d 1og -1tr 2 -2i 1vm -1n9 -5u 32 2 -1 1q1 1 1 1 -1ny 0 -9f 45 1hz -51 gb -ga -1ds 1dq gd 1 -bb 1 -113 -bo 0 1o2 -1sd -29 iu 19h -1jn -79 1qn -1x0 270 -a3 -1uw a 5s -5w 7l -a0 0 6n gx 1 1 13z -1iu 1o3 2z -ba bb -1z5 -c 1zi -1qm 1dz -1nc 26w 2 2 2 -1vw 1sm -22x 18 3h -3v 20b -2 -1xb 1yi -12 2b 1 -fr -19 -1g8 1va -54 1 1 -r 1 -1ph fg 1 1l8 -1l9 1 14m 0 -1qk 0 3s 1vh 1 1 -1sq 1 1 1 1w2 -1ej -hg 1 1 1sj -1si 1 -4f -2n 1zk 60 1 -60 -1ob -bo 7k 1sg -1se 1 2a 1da -1g2 et -l7 230 -1s3 1od -1sc 1 1sc",T3="01070c0d0e0f0g0h0i0j0p0u0v0w0x0z1415161718191a1f1g1h1i1j1k1l1m1r1v2a2b2o2r2t2u2w2x303a3b3d3l3p3s3v3w3x40414344464748494a4f4g4h4i4j4k4l4m4n4o4p4q5152545758595a5h5i5j5k5l5m5p5s5v5w5x5y66696b6d6e6g6h6i6n6p6r6s6v6w6x6y70717273747576777a7b7h7k7n7p7s7t7x7y838487898a8i8j8k8l8m8n8o8p8q8r8s8t8u8v8w8x8y8z909192939495969798999a9b9c9d9e9f9g9h9i9j9k9l9m9n9o9p9q9r9s9t9u9v9w9x9y9za0a1a2a3a4a5a6a7a8a9aaabacadaeafagahaiajakalamanaoapaqarasauawb1b2b4bbbkblbnbobpbqbsbtbubvbwbxbybzc0c3c8c9cecicjcocpcqctcvcwcyd0d5d6d7dbdfdgdidldndqdudydze0e2e7ebecedeef0f2f3f6f7f8fafcfefjfmfofpfrfsfwfxg5g6g7g9gbgcgdgegfgkgogvgxgzh0h2h4h9hbhchehfhjhshthui0i6i9iaicieihiiijiliminioitiuiviwiyj0j2j7j8j9jbjcjfjgjijljmjnjojpjqjrjtjvjwjxk0k2k5k6k7k8k9kakbkekfkikjklkmkpkqkskzl0l2l3l6l7lgliljlmlnlolplulxlzm1m3m4m5m6m7m8m9",R3="1c6d br -fj 1 ep 2 2 2 -eu 1 ap -ao 1 1 1 1 3 -2 1 4 -2 1 2 3 -2 1 0 4 -2 1 0 2 1 1 93 4a -dc 1 1 aj 2q 0 -d8 1 1 1 8p -8o 4 -3 1 1 2 -1 -2 1 2 3 -2 1 dv 2 2 2 -dy -1 3 -1 3 -1 3 -1 3 -1 2 1 8 34 -3b 8f -8e 2 -1 2 1 -l m -m ac -76 -2j 1 bp -bm -2 1 8a -g -7s 1 -1qm 2j 1qq -3m 3t -2l 1e -1f -7 1 1 1 1 1 1 2r -2p dc -43 -v -8d 2n -2m 1 1 -19 1a 0 0 5 7f 1c -2 28 -p 5 -16 46 -18 1a -3q 1 -1o 4 2x 2e -6p 4n -2m 1y -2j x r -33 50 -1p -s -2i 3z 1e -y o -b -2z -1s 28 2m -4t 2w -28 -n 2n 1f k -1x c r 1k -2t 2e h -1u -1m 4o -2y m -2m -1n 4d -s -3k 1 29 24 -3m 3q -12 -x 29 -4q 1 4o -1o -2z 2x -2w p -o 1 30 p -b0 1 7d -7c 1 1 1 0 -v w 1 2 -1 2 1 1 6 -1 -4 1 1 1 3 1 d8 1 -61 -77 7u -7t 2 -1 -1 3 -1v 13 bv -b2 2 1f -1e 0 1 0 1 0 1 1 8v -7t -11 -u v 6 -5 0 1 3 -2 1 1 -2 1 -17 19 av -dk 2q 2 -1 2 1 1 q 99 -2p 34 -4a -63 6e -8w -1pu 1sd 74 -73 -2q 2r 9d -9c -1px 1py 1 2 -1 2 an -am bn -c1 1c -x -1q4 1q6 -1 -k 8 j -2l 86 -5n -3 1 1 7 0 -5 1 1 1 1 -1r 1s 0 1 1 -15 1 15 4 -3 1 1 2 1 0 -3e 13 -17o 1a0 1 -25 7d 6d -bk an 2 2 2 -as 9l -3v -2 17 -12 -2 -5q 66 3k 1 -1 1 -9q 0 75 -8i z -c r 1 -2l 24 5s -5a 1 2 -1 7g -80 9q -am -1",hE=2;function C3(e){const t=[];let n="";for(const r of e.split(" "))n=n.slice(0,Number.parseInt(r[0],36))+r.slice(1),t.push(n);return t}function RA(e){const t=[];let n=0;for(const r of e.split(" "))n+=Number.parseInt(r,36),t.push(String.fromCharCode(n));return t}const Up=C3(w3);function _3(){const e=RA(E3),t={};for(let n=0;n<Up.length;n++)t[Up[n]]=e[n];return t}function A3(){const e=RA(R3),t={};for(let n=0;n<e.length;n++){const r=Number.parseInt(T3.slice(n*hE,(n+1)*hE),36);t[Up[r]]=e[n]}return t}const CA=_3(),N3=A3(),O3={...CA,...N3};function I3(e,t="outline"){return t==="filled"?O3[e]:CA[e]}const M3={root:{km0Bbg:"ui-ngwomw",$$css:!0}},D3=new Set(["ui-progress-spin","cursor-icon-spin"]);function L3(e){if(!(!e||typeof CSSAnimation>"u"))for(const t of e.getAnimations({subtree:!0}))t instanceof CSSAnimation&&D3.has(t.animationName)&&(t.startTime=0)}const Hy=v.createContext(void 0);function Is({iconSize:e,iconButtonSize:t,iconButtonVariant:n,iconButtonTone:r,iconButtonRootStyle:s,iconButtonIconStyle:a,iconButtonIconSize:l,buttonSize:c,buttonRootStyle:f,buttonVariant:d,buttonTone:h,buttonIconSize:m,buttonRounded:b,buttonFullWidth:y,menuSize:k,disabled:S,children:R}){const T=v.useContext(Hy),E=v.useMemo(()=>({iconSize:e??T?.iconSize,iconButtonSize:t??T?.iconButtonSize,iconButtonVariant:n??T?.iconButtonVariant,iconButtonTone:r??T?.iconButtonTone,iconButtonRootStyle:s??T?.iconButtonRootStyle,iconButtonIconStyle:a??T?.iconButtonIconStyle,iconButtonIconSize:l??T?.iconButtonIconSize,buttonSize:c??T?.buttonSize,buttonRootStyle:f??T?.buttonRootStyle,buttonVariant:d??T?.buttonVariant,buttonTone:h??T?.buttonTone,buttonIconSize:m??T?.buttonIconSize,buttonRounded:b??T?.buttonRounded,buttonFullWidth:y??T?.buttonFullWidth,menuSize:k??T?.menuSize,disabled:S??T?.disabled}),[y,h,m,f,b,c,d,S,l,a,r,s,t,n,e,k,T]);return g.jsx(Hy.Provider,{value:E,children:R})}function ya(){return v.useContext(Hy)}const j3="sm",z3=/(^|-)(left|right)(-|$)/,P3=new Set(["history","link-external","list-bullets","list-ordered","quote","redo","return"]),$3=new Set(Up.filter(e=>z3.test(e)||P3.has(e))),Xt={base:{kKX8nH:"ui-1j61x8r",k63SB2:"ui-etm3q0",kGuDYH:"ui-1tachi3",kMv6JI:"ui-1qt6sjn",kLWn49:"ui-o5v014",k1xSpc:"ui-3nfvp2",kGNEyG:"ui-6s0dn4",kjj79g:"ui-l56j7k",kMwMTN:"ui-1heor9g",kzqmXN:"ui-1oai4fc",kZKoxP:"ui-higkf7",kXLuUW:"ui-xymvpz",kMnn75:"ui-krqix3",kJwUce:"ui-1403hyl",k9WMMc:"ui-2b8uid",kP9fke:"ui-6mezaz",khiITx:"ui-vmahel",kTUp5R:"ui-lh3980",kfSwDN:"ui-87ps6o",kO7zv1:"ui-1winvzj","--icon-size":"ui-1u4itkb","--icon-weight":"ui-1q5xvfy",keTefX:"ui-jb5y04",k71WvV:"ui-1bxnb1t",kQmYQc:"ui-1ehclkv",kgeoSG:"ui-1yj7g93",$$css:!0},noPresetSize:{$$css:!0},sizeXs:{"--icon-size":"ui-aiyo0p",$$css:!0},sizeSm:{"--icon-size":"ui-1u4itkb",$$css:!0},sizeBase:{"--icon-size":"ui-xfpx3u",$$css:!0},sizeLg:{"--icon-size":"ui-1qxde8p",$$css:!0},sizeXl:{"--icon-size":"ui-dyy2ci",$$css:!0},size2xl:{"--icon-size":"ui-7lg4th",$$css:!0},noColor:{$$css:!0},colorPrimary:{kMwMTN:"ui-1nqczng",$$css:!0},colorSecondary:{kMwMTN:"ui-1mh7f6w",$$css:!0},colorTertiary:{kMwMTN:"ui-1lbmi28",$$css:!0},colorQuaternary:{kMwMTN:"ui-1qh17o",$$css:!0},colorGitAdded:{kMwMTN:"ui-15wwr8d",$$css:!0},colorGitModified:{kMwMTN:"ui-eedwss",$$css:!0},colorGitRemoved:{kMwMTN:"ui-fowoju",$$css:!0},colorGitUntracked:{kMwMTN:"ui-1p7vtww",$$css:!0},colorCyan:{kMwMTN:"ui-1rbygr4",$$css:!0},colorBlue:{kMwMTN:"ui-101qeuz",$$css:!0},colorRed:{kMwMTN:"ui-ku4wcm",$$css:!0},colorGreen:{kMwMTN:"ui-p6nzhx",$$css:!0},colorSuccess:{kMwMTN:"ui-i75md2",$$css:!0},colorDanger:{kMwMTN:"ui-3pdtkl",$$css:!0},colorYellow:{kMwMTN:"ui-1hn9r2r",$$css:!0},colorMagenta:{kMwMTN:"ui-pwp9en",$$css:!0},colorOrange:{kMwMTN:"ui-4qtrdv",$$css:!0},colorPurple:{kMwMTN:"ui-1b0hn6l",$$css:!0},colorAccent:{kMwMTN:"ui-scuw3h",$$css:!0},colorBrand:{kMwMTN:"ui-v3vxec",$$css:!0},noModifier:{$$css:!0},modifierSpin:{kKVMdj:"ui-138fvbv",k44tkh:"ui-lmf4m6",kyAemX:"ui-1esw782",ko0y90:"ui-a4qsjk",$$css:!0},modifierDisabled:{kSiTet:"ui-ti2d7y",$$css:!0},modifierHidden:{k33iCy:"ui-lshs6z",$$css:!0},capTrim:{kQypYc:"ui-13zi6q3",$$css:!0}};function B3(e,t,n){return[Xt.base,_A(e),F3(t),U3(n)]}function mx(e){return typeof e=="string"&&!e.startsWith("var(")}function _A(e){if(!mx(e))return Xt.noPresetSize;switch(e){case"xs":return Xt.sizeXs;case"sm":return Xt.sizeSm;case"base":return Xt.sizeBase;case"lg":return Xt.sizeLg;case"xl":return Xt.sizeXl;case"2xl":return Xt.size2xl}}function F3(e){switch(e){case"primary":return Xt.colorPrimary;case"secondary":return Xt.colorSecondary;case"tertiary":return Xt.colorTertiary;case"quaternary":return Xt.colorQuaternary;case"git-added":return Xt.colorGitAdded;case"git-modified":return Xt.colorGitModified;case"git-removed":return Xt.colorGitRemoved;case"git-untracked":return Xt.colorGitUntracked;case"cyan":return Xt.colorCyan;case"blue":return Xt.colorBlue;case"red":return Xt.colorRed;case"green":return Xt.colorGreen;case"success":return Xt.colorSuccess;case"danger":return Xt.colorDanger;case"yellow":return Xt.colorYellow;case"magenta":return Xt.colorMagenta;case"orange":return Xt.colorOrange;case"purple":return Xt.colorPurple;case"accent":return Xt.colorAccent;case"brand":return Xt.colorBrand;case void 0:return Xt.noColor}}function U3(e){switch(e){case"spin":return Xt.modifierSpin;case"disabled":return Xt.modifierDisabled;case"hidden":return Xt.modifierHidden;case void 0:return Xt.noModifier}}function q3(e){if(!(typeof e!="string"||e.length===0))return`"${e}"`}function qt({name:e,modifier:t,syncSpin:n=!0,variant:r="outline",size:s,color:a,capTrim:l=!1,className:c,rootStyle:f,style:d,title:h,"aria-label":m,"aria-hidden":b,ref:y}){const k=ya(),S=v.useCallback(A=>{typeof y=="function"?y(A):y&&(y.current=A),A&&t==="spin"&&n&&L3(A)},[y,t,n]),R=s??k?.iconSize??j3,T=mx(R),E=Di()==="rtl"&&$3.has(e),C=q3(I3(e,r)),_={...C?{"--cursor-icon-content":C}:{},...T?{}:{"--icon-size":typeof R=="number"?`${R}px`:R},...d},D=Yt({rootClass:"ui-icon",stylexStyles:[B3(R,a,t),E&&M3.root,l&&Xt.capTrim,f],className:sn("cursor-icon",c),style:_});return g.jsx("i",{ref:S,className:D.className,"data-icon-name":e,"data-size":T?R:void 0,"data-color":a,style:D.style,title:h??m,"aria-hidden":b??(m?void 0:!0)})}const H3=v.createContext({root:null});function va(){return v.useContext(H3).root}const V3={dropdown:"--ui-portal-layer-z-index-dropdown",tooltip:"--ui-portal-layer-z-index-tooltip",modal:"--ui-portal-layer-z-index-modal",popover:"--ui-portal-layer-z-index-popover"},G3={},W3=3e3,K3=10;let mE=W3;function Y3(){const e=mE;return mE+=K3,{zIndex:e,release:()=>{}}}const X3=v.createContext(null);function Z3(){return v.useContext(X3)}function ql(e,t){const n=Z3(),[r,s]=v.useState(null);v.useLayoutEffect(()=>{if(!t){s(null);return}const l=n?.claimZIndex()??Y3();return s(l.zIndex),()=>{l.release()}},[t,n]);const a=v.useMemo(()=>r===null?G3:{[V3[e]]:String(r)},[r,e]);return v.useMemo(()=>({zIndex:r,portalLayerStyles:a}),[r,a])}const gx=v.forwardRef(function(t,n){const{render:r,className:s,disabled:a=!1,focusableWhenDisabled:l=!1,nativeButton:c=!0,style:f,...d}=t,{getButtonProps:h,buttonRef:m}=$l({disabled:a,focusableWhenDisabled:l,native:c});return bn("button",t,{state:{disabled:a},ref:[n,m],props:[d,h]})}),Q3=["secondary","tertiary","accent","monochrome","success","warning","danger"],J3=["accent","monochrome","success","danger","warning"],AA={plan:"warning","git-added":"success","git-modified":"warning","git-removed":"danger"},e6=["accent","success","warning","danger"];new Set(Q3);new Set(J3);const t6=new Set(e6);function n6(e){return e!==void 0&&Object.hasOwn(AA,e)}function r6(e){return e!==void 0&&t6.has(e)}function NA(e){if(e!==void 0)return n6(e)?AA[e]:e}const OA="accent",i6=["primary","secondary","media"],s6=["outline","ghost","text"],o6=new Set(i6),a6=new Set(s6);function l6(e){return o6.has(e)}function u6(e){return a6.has(e)}function bx(e,t){const n=e==="secondary"&&t!==void 0&&!r6(t);return{applyControlTone:e!=="secondary"||n,applyFilledColors:l6(e)&&!n,applyNonFilledBackground:u6(e)||n}}const yx={foreground:{"--ui-button-fg":"ui-1h31wig ui-qalphj ui-alrmhx ui-1e1xjh9 ui-1eont2s ui-qygd40 ui-1ucl2ju ui-111ni6s ui-3id928 ui-wqjwyh ui-v6bjuk ui-17og37h ui-1mruliz ui-10ch5e ui-1xnt5ni ui-bcxwum","--ui-button-fg-hover":"ui-ve8a38 ui-572mpw ui-vp5bk3 ui-16shgaf ui-mjj3su ui-1v3oqsu ui-2ngaw7 ui-28dmf3",$$css:!0}},IA={secondary:{"--ui-button-fg":"ui-1j8p2m6","--ui-button-fg-hover":"ui-e6ovir",$$css:!0},tertiary:{"--ui-button-fg":"ui-1fwx157","--ui-button-fg-hover":"ui-111fdx3",$$css:!0},accent:{"--ui-button-fg":"ui-1f79f0m","--ui-button-fg-hover":"ui-1sd9hjt",$$css:!0},monochrome:{"--ui-button-fg":"ui-4zyimg","--ui-button-fg-hover":"ui-l1tqj1",$$css:!0},success:{"--ui-button-fg":"ui-1091cms","--ui-button-fg-hover":"ui-qejad5",$$css:!0},warning:{"--ui-button-fg":"ui-90x234","--ui-button-fg-hover":"ui-v3sia6",$$css:!0},danger:{"--ui-button-fg":"ui-1jtauhq","--ui-button-fg-hover":"ui-1iqdewe",$$css:!0}},c6={secondary:{"--ui-button-fg":"ui-zinbld","--ui-button-fg-hover":"ui-l1tqj1",$$css:!0},tertiary:{"--ui-button-fg":"ui-1mn641q","--ui-button-fg-hover":"ui-17wn194",$$css:!0}},Ci={appearance:{"--ui-button-bg-disabled":"ui-t2ps8i ui-1siydi6 ui-9mchb4 ui-b3sabi","--ui-button-fg-disabled":"ui-lxpv47 ui-1wzq4de",kWkggS:"ui-elcf9h ui-g74ub2 ui-1twq3x9 ui-mzrycd",kMwMTN:"ui-gl2jp8 ui-qfdz8i ui-7mi40u",kKMj4B:"ui-e1kniv ui-fq1cfh",kSiTet:"ui-1x77wit",k1ekBW:"ui-fvdr79",kIyJzY:"ui-2krxs4 ui-sagj69",kAMwcw:"ui-6ekqhr",$$css:!0},press:{k3aq6I:"ui-3oybdh ui-e60hhf ui-1v3nhsv",k3nNDw:"ui-1g0ag68",$$css:!0},engaged:{kWkggS:"ui-1x1890e ui-mzrycd",kMwMTN:"ui-8ech78 ui-7mi40u",$$css:!0},media:{kSiTet:"ui-1szrgyu",k6WDB:"ui-1hvsj6t",kMzoRj:"ui-mkeg23",ksu8eU:"ui-1y0btm7",kVAM5u:"ui-1aml6k",$$css:!0},colors:{"--ui-button-bg":"ui-afdq1a ui-125v35v ui-1olvpfz ui-oa62de ui-1chhnie ui-302ab4 ui-18o3eha ui-1qs2zoo ui-1g9fn2x ui-10rfvjz ui-18ab9qp","--ui-button-bg-hover":"ui-13v2mu8 ui-yt64w ui-e9ir63 ui-onvtd7 ui-1k8s92z ui-1kvkcw9 ui-43o616 ui-cs87t5 ui-197nqx8 ui-uudzfn ui-uontnf","--ui-button-bg-active":"ui-1f1zgjn ui-1nsurhp ui-11xudch ui-1f8rfv1 ui-ggai1r","--ui-button-fg":"ui-18rr0f6 ui-cdmvwo ui-1oum4wa ui-1yrx47c ui-1s3xcaz ui-2424zi ui-rwu1v7 ui-9sccad ui-hcepst ui-wvzk2y ui-gftpnt ui-pzfz8q","--ui-button-fg-hover":"ui-ve8a38 ui-lidx4s ui-f1csfx ui-10swf5o ui-2fu0p3","--ui-button-label-shadow":"ui-107xv6h ui-1fgkyrd ui-uxtdke ui-1lpoe4m ui-1mh6czn",$$css:!0}},la={background:{"--ui-button-bg":"ui-1gwrc9l ui-302ab4 ui-1luhpj5 ui-14iu9ww","--ui-button-bg-hover":"ui-s16ggv ui-1kvkcw9 ui-hqa6pe ui-e032zu",$$css:!0},outline:{kMzoRj:"ui-mkeg23",ksu8eU:"ui-1y0btm7",kVAM5u:"ui-13747pv ui-wm9d6",$$css:!0}},f6=["accent","success","warning","danger"],d6=new Set(f6);function qp(e){return e!==void 0&&d6.has(e)}const MA={accent:{"--ui-button-bg-hover":"ui-2qxk4j",$$css:!0},success:{"--ui-button-bg-hover":"ui-11h7f69",$$css:!0},warning:{"--ui-button-bg-hover":"ui-1donwlf",$$css:!0},danger:{"--ui-button-bg-hover":"ui-x6ealz",$$css:!0}},DA={accent:{kVAM5u:"ui-5r2jki ui-wm9d6",$$css:!0},success:{kVAM5u:"ui-1gvt79p ui-wm9d6",$$css:!0},warning:{kVAM5u:"ui-1cucnr7 ui-wm9d6",$$css:!0},danger:{kVAM5u:"ui-105evjg ui-wm9d6",$$css:!0}},LA={sm:"sm",md:"sm",lg:"base",xl:"lg"},jA={root:{kGuDYH:"ui-y5h43f",kLWn49:"ui-19ji09o",kb6lSQ:"ui-t1j8c4",$$css:!0}},Ms={root:{kGuDYH:"ui-1wm8ruf",kLWn49:"ui-spwq11",kb6lSQ:"ui-14s4slr",$$css:!0}},Cs={root:{kGuDYH:"ui-11wthnw",kLWn49:"ui-1ja60sm",kb6lSQ:"ui-vu1jfw",$$css:!0}},zA={root:{kGuDYH:"ui-fc7y3v",kLWn49:"ui-1yxxptd",kb6lSQ:"ui-1bignsj",$$css:!0}},p6={root:{kGuDYH:"ui-19d36u7",kLWn49:"ui-dod15v",kb6lSQ:"ui-k22nv0",$$css:!0}},h6={root:{kGuDYH:"ui-wsyq91",kLWn49:"ui-19v9tvf",kb6lSQ:"ui-1h56xvc",$$css:!0}},m6={root:{kGuDYH:"ui-1i1m3gp",kLWn49:"ui-eqr9p9",kb6lSQ:"ui-qhv51x",$$css:!0}},Hl={root:{kXHlph:"ui-6ikm8r",kORKVm:"ui-10wlt62",kg5iWk:"ui-lyipyv",k8aIck:"ui-jlip5",kqG3fB:"ui-kyw5k8",$$css:!0}},Mh={root:{khiITx:"ui-vmahel",kTUp5R:"ui-lh3980",$$css:!0}},gE={content:{k1xSpc:"ui-3nfvp2",kGNEyG:"ui-6s0dn4",kjj79g:"ui-l56j7k",kOIVth:"ui-pkkfsy",k63SB2:"ui-20ajya",khDVqt:"ui-uxw1ft",kfSwDN:"ui-87ps6o",k9WMMc:"ui-2b8uid",$$css:!0},pill:{kaIpWk:"ui-1i4c3av",kOIVth:"ui-11twubx",$$css:!0}},g6={sm:{kLKAdn:"ui-exx8yu",kwRFfy:"ui-19bzwdx",kGO01o:"ui-18d9i69",kZCmMZ:"ui-v853mj",$$css:!0},md:{kLKAdn:"ui-exx8yu",kwRFfy:"ui-196pc8s",kGO01o:"ui-18d9i69",kZCmMZ:"ui-22095l",$$css:!0},lg:{kLKAdn:"ui-exx8yu",kwRFfy:"ui-1fg0g13",kGO01o:"ui-18d9i69",kZCmMZ:"ui-1tajz9i",$$css:!0},xl:{kLKAdn:"ui-exx8yu",kwRFfy:"ui-t1q3vd",kGO01o:"ui-18d9i69",kZCmMZ:"ui-8fiw5y",$$css:!0}},b6={sm:{kLKAdn:"ui-exx8yu",kwRFfy:"ui-196pc8s",kGO01o:"ui-18d9i69",kZCmMZ:"ui-22095l",$$css:!0},md:{kLKAdn:"ui-exx8yu",kwRFfy:"ui-1fg0g13",kGO01o:"ui-18d9i69",kZCmMZ:"ui-1tajz9i",$$css:!0},lg:{kLKAdn:"ui-exx8yu",kwRFfy:"ui-t1q3vd",kGO01o:"ui-18d9i69",kZCmMZ:"ui-8fiw5y",$$css:!0},xl:{kLKAdn:"ui-exx8yu",kwRFfy:"ui-1n9uuka",kGO01o:"ui-18d9i69",kZCmMZ:"ui-cssynl",$$css:!0}},Ei={content:gE.content,pill:gE.pill,size:g6,pillSize:b6,typography:{sm:Cs.root,md:Cs.root,lg:Cs.root,xl:zA.root}},PA={root:{kFalU9:"ui-ggy1nq",kSiTet:"ui-1szrgyu",kMeerF:"ui-1k57tk5 ui-784prv",k3XXqK:"ui-1t137rt ui-9v5kkp",kInvED:"ui-1wfwxd8 ui-7s97pk",kjBf7l:"ui-1uczgqu ui-1725o6r",$$css:!0}},y6={root:{kB7OPa:"ui-9f619",kMv6JI:"ui-jb2p0i",kGuDYH:"ui-1qlqyl8",kLWn49:"ui-15bjb6t",kMzoRj:"ui-mkeg23",ksu8eU:"ui-1y0btm7",kVAM5u:"ui-9r1u3d",kkrTdU:"ui-1ypdohk ui-1j1ks5o",kSiTet:"ui-1hc1fzr",kfzvcC:"ui-67bb7w ui-7gqb9v",$$css:!0}},vx={root:[y6.root,PA.root]},ws={sm:{kaIpWk:"ui-1e1y6u3",$$css:!0},md:{kaIpWk:"ui-1043rbw",$$css:!0},lg:{kaIpWk:"ui-1m7fhj7",$$css:!0},xl:{kaIpWk:"ui-1q4ynmn",$$css:!0}},Hi={sm:{kZKoxP:"ui-1a6rlst",$$css:!0},md:{kZKoxP:"ui-1e94bgo",$$css:!0},lg:{kZKoxP:"ui-170hpbr",$$css:!0},xl:{kZKoxP:"ui-t8t6p",$$css:!0}},Vu={markdownHover:{"--ui-md-state-color":"ui-1w18epr",$$css:!0},primaryWeight:{k63SB2:"ui-20ajya ui-1uv0z76",$$css:!0},alignLeft:{kjj79g:"ui-1nhvcw1",$$css:!0},fullWidth:{kzqmXN:"ui-h8yej3",$$css:!0},frameContent:{kZCmMZ:"ui-1c1uobl",kwRFfy:"ui-yri2b",$$css:!0}},bE={labelGroup:{k1xSpc:"ui-3nfvp2",kGNEyG:"ui-6s0dn4",kOIVth:"ui-pkkfsy",k7Eaqz:"ui-euugli",ks0D6T:"ui-193iq5w",$$css:!0},kbs:{kmuXW:"ui-2lah0s",kMv6JI:"ui-y1aii3",k63SB2:"ui-20ajya",kSiTet:"ui-byyjgo ui-s6mkfk",k33iCy:"ui-1go34h7",$$css:!0}},wi={root:[vx.root,Ei.content,Vu.markdownHover,Vu.primaryWeight],fontSmoothing:Mh.root,align:{center:null,left:Vu.alignLeft},fullWidth:Vu.fullWidth,frame:{container:null,content:Vu.frameContent},shape:{pill:Ei.pill},size:{sm:[Hi.sm,ws.sm,Ei.size.sm],md:[Hi.md,ws.md,Ei.size.md],lg:[Hi.lg,ws.lg,Ei.size.lg],xl:[Hi.xl,ws.xl,Ei.size.xl]},pillSize:Ei.pillSize,typography:Ei.typography,labelGroup:bE.labelGroup,kbs:[Ms.root,bE.kbs]};function v6({rounded:e,variant:t,enforcedRounded:n}){return e!==void 0?e:t==="text"?!1:n===!0}const x6="md",k6="secondary",S6={"ui--default-marker":"ui--default-marker",$$css:!0};function yE(e,t){if(e==null)return null;const n=typeof e=="string"?{name:e}:e;return g.jsx(qt,{"aria-hidden":"true",modifier:n.modifier,name:n.name,size:t,variant:n.variant})}function vn({variant:e,tone:t,size:n,rounded:r,frame:s="container",align:a,fullWidth:l,disabled:c,children:f,leadingIcon:d,trailingIcon:h,kbs:m,pressed:b,className:y,style:k,rootStyle:S,"aria-expanded":R,"aria-pressed":T,"aria-busy":E,...C}){const _=ya(),D=e??_?.buttonVariant??k6,A=n??_?.buttonSize??x6,M=v6({enforcedRounded:_?.buttonRounded,rounded:r,variant:D}),B=l??_?.buttonFullWidth??!1,P=c??_?.disabled,N=t??(D==="primary"||D==="ghost"?_?.buttonTone:void 0),W=NA(N??(D==="primary"?OA:void 0)),$=_?.buttonIconSize??LA[A],F=C["data-pressed"],z=bx(D,W),U=zt(wi.root,wi.fontSmoothing,Ci.appearance,z.applyControlTone&&yx.foreground,z.applyControlTone&&W!==void 0&&IA[W],z.applyFilledColors&&Ci.colors,z.applyNonFilledBackground&&la.background,(D==="outline"||D==="ghost")&&qp(W)&&MA[W],D==="outline"&&la.outline,D==="outline"&&qp(W)&&DA[W],D==="media"&&Ci.media,b===!0&&Ci.engaged,wi.size[A],wi.typography[A],wi.align[a??"center"],B&&wi.fullWidth,M&&wi.shape.pill,M&&wi.pillSize[A],wi.frame[s],_?.buttonRootStyle,S,S6),H=yE(d,$),K=yE(h,$);let q=f;if(m!=null){const Y=zt(wi.labelGroup),O=zt(wi.kbs);q=g.jsxs("span",{className:sn("ui-button__label-group",Y.className),style:Y.style,children:[H,f,K,g.jsx("span",{className:sn("ui-button__kbs",O.className),style:O.style,children:m})]})}else(H!=null||K!=null)&&(q=g.jsxs(g.Fragment,{children:[H,f,K]}));return g.jsx(gx,{...C,"aria-busy":E,"aria-expanded":R,"aria-pressed":R===void 0&&b!==void 0?b:T,className:sn("ui-button",U.className,y),style:{...U.style,...k},"data-variant":D,"data-size":A,"data-rounded":M||void 0,"data-frame":s!=="container"?s:void 0,"data-tone":W,"data-align":a==="left"?a:void 0,"data-full-width":B||void 0,"data-pressed":b!==void 0?String(b):F,"data-busy":E===!0||E==="true"?"":void 0,"data-padded-label":s==="container"?"":void 0,disabled:P,children:g.jsx(Is,{iconSize:$,children:q})})}function Xc(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}function Al({controlled:e,default:t,name:n,state:r="value"}){const{current:s}=v.useRef(e!==void 0),[a,l]=v.useState(t),c=s?e:a,f=v.useCallback(d=>{s||l(d)},[]);return[c,f]}let vE=(function(e){return e.checked="data-checked",e.unchecked="data-unchecked",e.indeterminate="data-indeterminate",e.disabled="data-disabled",e.readonly="data-readonly",e.required="data-required",e.valid="data-valid",e.invalid="data-invalid",e.touched="data-touched",e.dirty="data-dirty",e.filled="data-filled",e.focused="data-focused",e})({}),xE=(function(e){return e.disabled="data-disabled",e.valid="data-valid",e.invalid="data-invalid",e.touched="data-touched",e.dirty="data-dirty",e.filled="data-filled",e.focused="data-focused",e})({});const w6={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},ac={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},E6={disabled:!1,...ac},Zc={valid(e){return e===null?null:e?{[xE.valid]:""}:{[xE.invalid]:""}}};function T6(e){return v.useMemo(()=>({checked(t){return e.indeterminate?{}:t?{[vE.checked]:""}:{[vE.unchecked]:""}},...Zc}),[e.indeterminate])}const R6={invalid:void 0,name:void 0,validityData:{state:w6,errors:[],error:"",value:"",initialValue:null},setValidityData:Zn,disabled:void 0,touched:ac.touched,setTouched:Zn,dirty:ac.dirty,setDirty:Zn,filled:ac.filled,setFilled:Zn,focused:ac.focused,setFocused:Zn,validate:()=>null,validationMode:"onSubmit",validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:E6,markedDirtyRef:{current:!1},registerFieldControl:Zn,validation:{getValidationProps:(e,t=Bn)=>t,inputRef:{current:null},registerInput:Zn,commit:async()=>{},change:Zn}},C6=v.createContext(R6);function Dh(e=!0){const t=v.useContext(C6);if(t.setValidityData===Zn&&!e)throw new Error(In(28));return t}function $A(e,t,n,r,s=!0,a){const{registerFieldControl:l}=Dh(),c=v.useRef(null);c.current||(c.current=Symbol()),Ve(()=>{const f=c.current;return!f||!s?void 0:(l(f,{controlRef:e,getValue:r,id:t,name:a,value:n}),()=>{l(f,void 0)})},[e,s,r,t,a,l,n])}const _6=v.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:Zn,validationMode:"onSubmit",submitAttemptedRef:{current:!1}});function BA(){return v.useContext(_6)}const A6=v.createContext({controlId:void 0,registerControlId:Zn,labelId:void 0,setLabelId:Zn,messageIds:[],setMessageIds:Zn,getDescriptionProps:e=>e});function xx(){return v.useContext(A6)}const N6=v.createContext(void 0);function O6(){const e=v.useContext(N6);if(e===void 0)throw new Error(In(14));return e}const I6=v.forwardRef(function(t,n){const{render:r,className:s,style:a,keepMounted:l=!1,...c}=t,f=O6(),d=f.checked||f.indeterminate,{mounted:h,transitionStatus:m,setMounted:b}=Yc(d),y=v.useRef(null),k={...f,transitionStatus:m};_o({open:d,ref:y,onComplete(){d||b(!1)}});const R={...T6(f),...To,...Zc},T=l||h,E=bn("span",t,{ref:[n,y],state:k,stateAttributesMapping:R,props:c});return T?E:null}),M6="md",kE={root:{kVAEAm:"ui-1n2onr6",k1xSpc:"ui-3nfvp2",kGNEyG:"ui-6s0dn4",kjj79g:"ui-l56j7k",kB7OPa:"ui-9f619",kMeerF:"ui-1k57tk5 ui-1gv1zob",k3XXqK:"ui-1t137rt ui-1rsevuf",kjBf7l:"ui-1uczgqu ui-14qs42y",kInvED:"ui-1wfwxd8 ui-1i57s2w",kMzoRj:"ui-mkeg23",ksu8eU:"ui-1y0btm7",kaIpWk:"ui-1e1y6u3",kMwMTN:"ui-1lriclw ui-m9a9xk",kWkggS:"ui-i07v4r ui-1yow1yk ui-ff598k",kVAM5u:"ui-1tjqsyf ui-1b3ufqo ui-1ch3k2o",k3aq6I:"ui-3oybdh ui-78fr0e",k3nNDw:"ui-1g0ag68",k1ekBW:"ui-1lxufdw",kIyJzY:"ui-2krxs4 ui-sagj69",kAMwcw:"ui-6ekqhr",$$css:!0},sm:{kzqmXN:"ui-2s4hoy",kZKoxP:"ui-px1j5t",$$css:!0},md:{kzqmXN:"ui-ek66a6",kZKoxP:"ui-1q5geii",$$css:!0},lg:{kzqmXN:"ui-1xx3ewh",kZKoxP:"ui-14dyci",$$css:!0}},D6={primary:{"--ui-checkbox-bg":"ui-x0sf4j","--ui-checkbox-border":"ui-14p436a","--ui-checkbox-glyph":"ui-1d5945d",$$css:!0},green:{"--ui-checkbox-bg":"ui-1g72fie","--ui-checkbox-border":"ui-165ap9x","--ui-checkbox-glyph":"ui-1d5945d",$$css:!0},neutral:{"--ui-checkbox-bg":"ui-1rpsy8r","--ui-checkbox-border":"ui-mtpsoh","--ui-checkbox-glyph":"ui-qnctk6",$$css:!0}},L6={sm:9,md:10,lg:11},SE={"--icon-weight":"700"};function j6({indeterminate:e,interactive:t,size:n,variant:r}){const s=zt(kE.root,kE[n],D6[r]),a={className:"ui-10l6tqk ui-10a8y8t ui-3nfvp2 ui-6s0dn4 ui-l56j7k ui-1g0ag68 ui-n9if97 ui-7pq1vu ui-sagj69 ui-6ekqhr ui-g01cxk ui-hhdk15 ui-nyzrob ui-h98lc ui-1nrvvgt ui-cntms"},l=L6[n];return g.jsx("span",{"aria-hidden":"true",className:sn("ui-checkbox__box",s.className),style:s.style,children:t?g.jsx(I6,{className:sn("ui-checkbox__icon",a.className),keepMounted:!0,render:(c,f)=>g.jsx("span",{...c,children:g.jsx(qt,{name:f.indeterminate?"minus":"check",size:l,style:SE})}),style:a.style}):g.jsx("span",{className:sn("ui-checkbox__icon",a.className),style:a.style,children:g.jsx(qt,{name:e?"minus":"check",size:l,style:SE})})})}function FA({checked:e,disabled:t,indeterminate:n=!1,size:r=M6,variant:s="primary"}){const a={className:"ui-3nfvp2 ui-6s0dn4 ui-l56j7k ui-1c4vz4f ui-2lah0s ui-dl72j9 ui-xymvpz ui-47corl ui--default-marker"};return g.jsx("span",{"aria-hidden":"true",className:sn("ui-checkbox",a.className),style:a.style,"data-component":"checkbox","data-size":r,"data-variant":s,"data-checked":e||void 0,"data-disabled":t||void 0,"data-indeterminate":n||void 0,children:g.jsx(j6,{indeterminate:n,interactive:!1,size:r,variant:s})})}function z6(e,t,n=(r,s)=>r===s){return e.length===t.length&&e.every((r,s)=>n(r,t[s]))}function P6(e){const{open:t,defaultOpen:n,onOpenChange:r,disabled:s}=e,[a,l]=Al({controlled:t,default:n,name:"Collapsible",state:"open"}),{mounted:c,setMounted:f,transitionStatus:d}=Yc(a,!0,!0),h=Fl(),[m,b]=v.useState(),y=m??h,k=Ke(S=>{const R=!a,T=Rt(Bl,S.nativeEvent);r(R,T),!T.isCanceled&&l(R)});return v.useMemo(()=>({disabled:s,handleTrigger:k,mounted:c,open:a,panelId:y,setMounted:f,setOpen:l,setPanelIdState:b,transitionStatus:d}),[s,k,c,a,y,f,l,b,d])}const UA=v.createContext(void 0);function qA(){const e=v.useContext(UA);if(e===void 0)throw new Error(In(15));return e}let kx=(function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=sa.startingStyle]="startingStyle",e[e.endingStyle=sa.endingStyle]="endingStyle",e})({}),$6=(function(e){return e.panelOpen="data-panel-open",e})({});const B6={[kx.open]:""},F6={[kx.closed]:""},U6={open(e){return e?{[$6.panelOpen]:""}:null}},q6={open(e){return e?B6:F6}},HA={...q6,...To},H6=v.forwardRef(function(t,n){const{render:r,className:s,defaultOpen:a=!1,disabled:l=!1,onOpenChange:c,open:f,style:d,...h}=t,m=Ke(c),b=P6({open:f,defaultOpen:a,onOpenChange:m,disabled:l}),y=v.useMemo(()=>({open:b.open,disabled:b.disabled,transitionStatus:b.transitionStatus}),[b.open,b.disabled,b.transitionStatus]),k=v.useMemo(()=>({...b,onOpenChange:m,state:y}),[b,m,y]),S=bn("div",t,{state:y,ref:n,props:h,stateAttributesMapping:HA});return g.jsx(UA.Provider,{value:k,children:S})}),V6={...U6,...To},wE=v.forwardRef(function(t,n){const{panelId:r,open:s,handleTrigger:a,state:l,disabled:c}=qA(),{className:f,disabled:d=c,render:h,nativeButton:m=!0,style:b,...y}=t,{getButtonProps:k,buttonRef:S}=$l({disabled:d,focusableWhenDisabled:!0,native:m});return bn("button",t,{state:l,ref:[n,S],props:[{"aria-controls":s?r:void 0,"aria-expanded":s,onClick:a},y,k],stateAttributesMapping:V6})}),Gu={height:void 0,width:void 0};function G6(e){const{externalRef:t,hiddenUntilFound:n,id:r,keepMounted:s,mounted:a,onOpenChange:l,open:c,setMounted:f,setOpen:d,transitionStatus:h}=e,m=v.useRef(null),b=v.useRef(null),[y,k]=v.useState(Gu),S=v.useRef(Gu),R=v.useRef(!1),T=v.useRef(c),E=v.useRef(!1),[C,_]=v.useState(!1),D=v.useRef(null),A=xo(t,m),M=On({mounted:a,open:c}),B=rA(m,!1,!1),P=!c&&!a,N=C?"idle":h,W=c&&(T.current||E.current),$=!c&&a&&b.current==="css-animation"&&y.height===void 0&&y.width===void 0?S.current:y,F=n&&P&&b.current!=="css-animation",z=Ke((Y,O=!0)=>{O&&(S.current=Y),k(Y)}),U=Ke(()=>{D.current?.(),D.current=null}),H=Ke(Y=>{U(),D.current=()=>{D.current=null,Y()}}),K=Ke(()=>{c&&a&&b.current==="css-animation"&&(E.current=!0)});Ve(()=>{!C||h==="starting"||_(!1)},[C,h]),v.useEffect(()=>()=>{K(),U()},[K,U]),Ve(()=>{const Y=m.current;if(!Y)return;!c&&D.current&&U();const O=W6(Y,W);if(b.current=O,c&&h==="idle"&&T.current&&O==="css-animation"){S.current=il(Y);return}if(c&&h==="starting"){const L=R.current;if(R.current=!1,O==="none"){z(il(Y)),_(!0);return}if(O==="css-transition"){const X=K6(Y);if(z(il(Y)),!L)return X;const se=Wu(Y,"transition-duration","0s");return H(se),_(!0),X}if(O==="css-animation"){if(z(il(Y)),!L){Wu(Y,"animation-name","none")();return}const X=Wu(Y,"animation-name","none"),se=Wu(Y,"animation-duration","0s");X(),H(se),_(!0);return}}if(!c&&a&&(h==="idle"||h==="starting")){if(T.current=!1,E.current=!1,O==="none"){z(Gu,!1),f(!1);return}z(il(Y));return}if(h!=="ending")return;if(O==="none"){f(!1);return}const j=il(Y);if(!((j.height??0)>0||(j.width??0)>0)){f(!1);return}z(j),O==="css-animation"&&Wu(Y,"animation-name","none")()},[a,c,U,z,f,H,W,h]),_o({enabled:c&&a&&N==="idle",open:!0,ref:m,onComplete(){c&&z(Gu,!1)}}),v.useEffect(()=>{if(c||!a||N!=="ending"||!m.current)return;const O=new AbortController;let j=-1;function V(){M.current.open||(f(!1),z(Gu,!1))}return j=Lr.request(()=>{O.signal.aborted||B(V,O.signal)}),()=>{Lr.cancel(j),O.abort()}},[M,a,c,N,B,z,f]),Ve(()=>{const Y=m.current;!Y||!n||!P||Y.setAttribute("hidden","until-found")},[P,n]),v.useEffect(function(){const O=m.current;if(!O)return;function j(V){const L=Rt(Ni,V);l(!0,L),!L.isCanceled&&(R.current=!0,d(!0))}return Dt(O,"beforematch",j)},[l,d]);const q=s||n||a||c;return{height:$.height,props:{...F?{[kx.startingStyle]:""}:void 0,hidden:P,id:r},ref:A,shouldPreventOpenAnimation:W,shouldRender:q,transitionStatus:N,width:$.width}}function il(e){return{height:e.scrollHeight,width:e.scrollWidth}}function W6(e,t=!1){const n=xn(e).getComputedStyle(e),r=(n.animationName.split(",").map(a=>a.trim()).some(a=>a!==""&&a!=="none")||t)&&EE(n.animationDuration),s=EE(n.transitionDuration);return r&&s||s?"css-transition":r?"css-animation":"none"}function EE(e){return e.split(",").map(t=>t.trim()).some(t=>t!==""&&Number.parseFloat(t)>0)}function Wu(e,t,n){const r=e.style.getPropertyValue(t),s=e.style.getPropertyPriority(t);return e.style.setProperty(t,n),()=>{if(r===""){e.style.removeProperty(t);return}e.style.setProperty(t,r,s)}}function K6(e){const t={"justify-content":e.style.justifyContent,"align-items":e.style.alignItems,"align-content":e.style.alignContent,"justify-items":e.style.justifyItems};Object.keys(t).forEach(s=>{e.style.setProperty(s,"initial","important")});function n(){Object.entries(t).forEach(([s,a])=>{if(a===""){e.style.removeProperty(s);return}e.style.setProperty(s,a)})}const r=Lr.request(n);return()=>{Lr.cancel(r),n()}}let TE=(function(e){return e.collapsiblePanelHeight="--collapsible-panel-height",e.collapsiblePanelWidth="--collapsible-panel-width",e})({});const Y6=v.forwardRef(function(t,n){const{className:r,hiddenUntilFound:s,keepMounted:a,render:l,id:c,style:f,...d}=t,{mounted:h,onOpenChange:m,open:b,panelId:y,setMounted:k,setPanelIdState:S,setOpen:R,state:T,transitionStatus:E}=qA(),C=s??!1,_=a??!1;Ve(()=>{if(c)return S(c),()=>{S(void 0)}},[c,S]);const{height:D,props:A,ref:M,shouldPreventOpenAnimation:B,shouldRender:P,transitionStatus:N,width:W}=G6({externalRef:n,hiddenUntilFound:C,id:y,keepMounted:_,mounted:h,onOpenChange:m,open:b,setMounted:k,setOpen:R,transitionStatus:E}),$={...T,transitionStatus:N},F=r_(f,$),z=bn("div",{...t,style:void 0},{state:$,ref:M,props:[A,{style:{[TE.collapsiblePanelHeight]:D===void 0?"auto":`${D}px`,[TE.collapsiblePanelWidth]:W===void 0?"auto":`${W}px`}},d,F?{style:F}:void 0,B?{style:{animationName:"none"}}:void 0],stateAttributesMapping:HA});return P?z:null}),X6={root:{kKwaWg:"ui-c079w9 ui-phioz4",kgSjnq:"ui-akli9p",kHypHr:"ui-1ta4xzc ui-15mlgz9",kBahZS:"ui-1t23j8t ui-nqxwjk",kUisrP:"ui-g7jpbn ui-1xgngqn",kKVMdj:"ui-1dtn8og ui-1aquc0h",k44tkh:"ui-1q3qbx4",kyAemX:"ui-1esw782",ko0y90:"ui-a4qsjk",$$css:!0}},Z6={inherit:{"--ui-text-shimmer-base":"ui-1ptom83","--ui-text-shimmer-highlight":"ui-rxqqkw",$$css:!0},primary:{kMwMTN:"ui-1wd3ewq","--ui-text-shimmer-base":"ui-cf8467","--ui-text-shimmer-highlight":"ui-17vhta",$$css:!0},secondary:{kMwMTN:"ui-19aaqeu","--ui-text-shimmer-base":"ui-1dl6blw","--ui-text-shimmer-highlight":"ui-17vhta",$$css:!0},tertiary:{kMwMTN:"ui-4b2ntj","--ui-text-shimmer-base":"ui-3zfljf","--ui-text-shimmer-highlight":"ui-1ph1pus",$$css:!0}};function VA(e){return[X6.root,Z6[e]]}const Q6={"ui--default-marker":"ui--default-marker",$$css:!0};function GA(e){return e==="default"?"secondary":"tertiary"}const uo={base:{k1xSpc:"ui-78zum5",kGNEyG:"ui-6s0dn4",kfSwDN:"ui-87ps6o",kOIVth:"ui-11twubx",k8aIck:"ui-jlip5",kqG3fB:"ui-kyw5k8",kXHlph:"ui-6ikm8r",kORKVm:"ui-10wlt62",kg5iWk:"ui-lyipyv",kGuDYH:"ui-hwpfco",kLWn49:"ui-1bcdmom",$$css:!0},buttonReset:{kWkggS:"ui-jbqb8w",kMzoRj:"ui-c342km",ksu8eU:"ui-ng3xce",kLKAdn:"ui-exx8yu",kGO01o:"ui-18d9i69",kZCmMZ:"ui-1c1uobl",kwRFfy:"ui-yri2b",keoZOQ:"ui-dj266r",k1K539:"ui-at24cr",keTefX:"ui-1lziwak",k71WvV:"ui-14z9mp",kMv6JI:"ui-jb2p0i",k63SB2:"ui-1pd3egz",kMwMTN:"ui-1heor9g",k9WMMc:"ui-1yc453h",kMeerF:"ui-1k57tk5 ui-784prv",k3XXqK:"ui-1t137rt ui-9v5kkp",kInvED:"ui-1wfwxd8 ui-1bqaal",kjBf7l:"ui-1uczgqu ui-1725o6r",$$css:!0},presentational:{kMeerF:"ui-1k57tk5",k3XXqK:"ui-1t137rt",$$css:!0},clickable:{kkrTdU:"ui-1ypdohk",$$css:!0},disabled:{kSiTet:"ui-byyjgo",$$css:!0},detailsButton:{kGuDYH:"ui-1qlqyl8",kLWn49:"ui-15bjb6t",ks0D6T:"ui-193iq5w",kVQacm:"ui-b3r6kr",kkrTdU:"ui-1ypdohk",kMnn75:"ui-ujl8zx",k1TLXF:"ui-r5o5jz ui-9ojkr9 ui-1e7jyuc",k1ekBW:"ui-eirdtl",kIyJzY:"ui-7pq1vu ui-6xbvzw ui-1nk6rg0",kAMwcw:"ui-1bt1wk1",kg5iWk:"ui-lyipyv",khDVqt:"ui-uxw1ft",$$css:!0},detailsButtonShimmer:{kMnn75:"ui-krqix3 ui-1sur9pj ui-1f2jko9",$$css:!0}},Ib={base:{kmuXW:"ui-2lah0s",kMwMTN:"ui-19aaqeu ui-1dkqrid",k63SB2:"ui-20ajya",k1ekBW:"ui-t3l3uh",kIyJzY:"ui-7pq1vu",kAMwcw:"ui-1bt1wk1",$$css:!0},muted:{kMwMTN:"ui-4b2ntj ui-1uq8sgy",$$css:!0},tabularNums:{kcqcaj:"ui-ss6m8b",$$css:!0}};function J6({action:e,chevronRef:t,details:n,detailsRef:r,leadingIcon:s,loading:a,shimmerDetails:l,showChevron:c,tabularNums:f,tone:d}){const h=zt(Ib.base,(d==="muted"||d==="tertiary")&&Ib.muted,f&&Ib.tabularNums,a&&!l&&VA(GA(d))),m={0:{className:"ui-1lliihq ui-s83m0k ui-euugli ui-4b2ntj ui-qdr9cq ui-6ikm8r ui-10wlt62 ui-lyipyv ui-t3l3uh ui-7pq1vu ui-1bt1wk1"},2:{className:"ui-1lliihq ui-s83m0k ui-euugli ui-6ikm8r ui-10wlt62 ui-lyipyv ui-t3l3uh ui-7pq1vu ui-1bt1wk1 ui-1e4uaio ui-116yoyw"},1:{className:"ui-1lliihq ui-s83m0k ui-euugli ui-4b2ntj ui-qdr9cq ui-6ikm8r ui-10wlt62 ui-lyipyv ui-t3l3uh ui-7pq1vu ui-1bt1wk1 ui-ss6m8b"},3:{className:"ui-1lliihq ui-s83m0k ui-euugli ui-6ikm8r ui-10wlt62 ui-lyipyv ui-t3l3uh ui-7pq1vu ui-1bt1wk1 ui-1e4uaio ui-116yoyw ui-ss6m8b"}}[(d==="muted")<<1|!!f<<0],b={className:"ui-2lah0s ui-fdlg0y ui-1urst0s ui-1lbmi28 ui-18tq7xr ui-g01cxk ui-bthccv ui-7p49u4 ui-1tty4wy ui-p33vsb ui-4f0zl0 ui-93pzih ui-1bt1wk1"},y={className:"ui-3nfvp2 ui-6s0dn4 ui-2lah0s ui-14ju556 ui-1urst0s"};return g.jsxs(g.Fragment,{children:[s!=null&&g.jsx("span",{className:sn("ui-collapsible-leading-icon",y.className),style:y.style,children:s}),e!=null&&g.jsx("span",{className:sn("ui-collapsible-action",h.className),style:h.style,children:e}),n&&g.jsx("span",{ref:r,className:sn("ui-collapsible-details",m.className),style:m.style,children:n}),c&&g.jsx(qt,{ref:t,name:"chevron-right",className:sn("ui-collapsible-chevron",b.className),style:b.style,size:"sm"})]})}function yi({action:e,details:t,onDetailsClick:n,detailsButtonStyle:r,headerStyle:s,leadingIcon:a,disabled:l=!1,expandable:c=!0,loading:f=!1,shimmerDetails:d=!0,tabularNums:h=!1,tone:m="default",children:b,headerRef:y,detailsRef:k,chevronRef:S,className:R,contentClassName:T,open:E,defaultOpen:C,onOpenChange:_,...D}){const A=n!==void 0,M=c&&A,B=E!==void 0,[P,N]=v.useState(()=>C??!1),W=B?!!E:P,$=(X,se)=>{B||N(X),_?.(X,se)},F=A?g.jsx("button",{type:"button",...zt(uo.buttonReset,uo.detailsButton,f&&d&&uo.detailsButtonShimmer,r),disabled:l,onClick:X=>{X.stopPropagation(),n(X)},children:t}):t,z=c&&b!=null&&typeof b!="boolean",U={className:"ui-78zum5 ui-dt5ytf"},H=zt(uo.base,c&&!A?uo.buttonReset:uo.presentational,c&&!l&&uo.clickable,l&&uo.disabled,f&&d&&VA(GA(m)),Q6,s),K={0:{className:"ui-jbqb8w ui-c342km ui-ng3xce ui-exx8yu ui-18d9i69 ui-1c1uobl ui-yri2b ui-dj266r ui-at24cr ui-1lziwak ui-14z9mp ui-jb2p0i ui-1pd3egz ui-1heor9g ui-1yc453h ui-1k57tk5 ui-784prv ui-1t137rt ui-9v5kkp ui-1wfwxd8 ui-1bqaal ui-1uczgqu ui-1725o6r ui-3nfvp2 ui-6s0dn4 ui-2lah0s ui--default-marker"},1:{className:"ui-jbqb8w ui-c342km ui-ng3xce ui-exx8yu ui-18d9i69 ui-1c1uobl ui-yri2b ui-dj266r ui-at24cr ui-1lziwak ui-14z9mp ui-jb2p0i ui-1pd3egz ui-1heor9g ui-1yc453h ui-1k57tk5 ui-784prv ui-1t137rt ui-9v5kkp ui-1wfwxd8 ui-1bqaal ui-1uczgqu ui-1725o6r ui-1ypdohk ui-3nfvp2 ui-6s0dn4 ui-2lah0s ui--default-marker"}}[!l<<0],q={className:"ui-2lah0s ui-fdlg0y ui-1urst0s ui-1lbmi28 ui-18tq7xr ui-g01cxk ui-bthccv ui-7p49u4 ui-1tty4wy ui-p33vsb ui-4f0zl0 ui-93pzih ui-1bt1wk1"},Y={className:"ui-1lliihq ui-1kd3hbs ui-uan8c8 ui-1fe7yth ui-12wejat ui-6ikm8r ui-10wlt62 ui-pv8u57 ui-ua3uq3 ui-4wkmsb ui-g3p6pi ui-ptf4uz"},O={className:"ui-6ikm8r ui-10wlt62 ui-2lwn1j"},j={className:"ui-78zum5 ui-dt5ytf ui-1y48gol ui-1vdilah ui-1hc1fzr ui-19991ni ui-4wkmsb ui-g3p6pi ui-1bt1wk1"},V={"data-component":"collapsible-header",className:sn("ui-collapsible-header",H.className),style:H.style},L=g.jsx(J6,{action:e,chevronRef:S,details:F,detailsRef:k,leadingIcon:a,loading:f,shimmerDetails:d,showChevron:c&&!A,tabularNums:h,tone:m});return g.jsxs(H6,{...D,open:M?W:E,defaultOpen:M?void 0:C,onOpenChange:M?$:_,disabled:l,"data-expandable":c?"":void 0,"data-loading":f?"":void 0,"data-tone":m,className:sn("ui-collapsible",U.className,R),style:U.style,children:[M?g.jsxs("div",{...V,ref:y,onClick:()=>{l||$(!W)},children:[L,g.jsx(wE,{"data-component":"collapsible-header","aria-label":typeof t=="string"?`Toggle ${t}`:"Toggle details",className:K.className,style:K.style,...z?null:{"aria-controls":void 0},onClick:X=>{l||X.stopPropagation()},children:g.jsx(qt,{ref:S,name:"chevron-right",className:sn("ui-collapsible-chevron",q.className),style:q.style,size:"sm"})})]}):c?g.jsx(wE,{...V,ref:y,...z?null:{"aria-controls":void 0},onClick:X=>{l||X.stopPropagation()},children:L}):g.jsx("div",{...V,ref:y,children:L}),z&&g.jsx(Y6,{keepMounted:!0,className:sn("ui-collapsible-content-view",Y.className),style:Y.style,children:g.jsx("div",{className:O.className,style:O.style,children:g.jsx("div",{className:sn("ui-collapsible-content",j.className,T),style:j.style,children:b})})})]})}const e4=(e,t)=>Object.is(e,t);function ua(e,t,n){return e==null||t==null?Object.is(e,t):n(e,t)}function t4(e,t,n){return!e||e.length===0?!1:e.some(r=>r===void 0?!1:ua(t,r,n))}function mc(e,t,n){return!e||e.length===0?-1:e.findIndex(r=>r===void 0?!1:ua(r,t,n))}function n4(e,t,n){return e.filter(r=>!ua(t,r,n))}function Vy(e){if(e==null)return"";if(typeof e=="string")return e;try{return JSON.stringify(e)}catch{return String(e)}}function WA(e){return e!=null&&e.length>0&&typeof e[0]=="object"&&e[0]!=null&&"items"in e[0]}function r4(e){if(!Array.isArray(e))return e!=null&&"null"in e;const t=e;if(WA(t)){for(const n of t)for(const r of n.items)if(r&&r.value==null&&r.label!=null)return!0;return!1}for(const n of t)if(n&&n.value==null&&n.label!=null)return!0;return!1}function KA(e,t){if(t&&e!=null)return t(e)??"";if(e&&typeof e=="object"){if("label"in e&&e.label!=null)return String(e.label);if("value"in e)return String(e.value)}return Vy(e)}function Jo(e,t){return t&&e!=null?t(e)??"":e&&typeof e=="object"&&"value"in e&&"label"in e?Vy(e.value):Vy(e)}function YA(e,t,n){function r(){return KA(e,n)}if(n&&e!=null)return n(e);if(e&&typeof e=="object"&&"label"in e&&e.label!=null)return e.label;if(t&&!Array.isArray(t))return t[e]??r();if(Array.isArray(t)){const s=t,a=WA(s)?s.flatMap(l=>l.items):s;if(e==null||typeof e!="object"){const l=a.find(c=>c.value===e);return l&&l.label!=null?l.label:r()}if("value"in e){const l=a.find(c=>c&&c.value===e.value);if(l&&l.label!=null)return l.label}}return r()}function i4(e,t,n){return e.reduce((r,s,a)=>(a>0&&r.push(", "),r.push(g.jsx(v.Fragment,{children:YA(s,t,n)},a)),r),[])}function Sx(e={}){const{id:t,implicit:n=!1,controlRef:r}=e,{controlId:s,registerControlId:a}=xx(),l=Fl(t),c=n?s:void 0,f=zr(()=>Symbol("labelable-control")),d=v.useRef(!1),h=v.useRef(t!=null),m=Ke(()=>{!d.current||a===Zn||(d.current=!1,a(f.current,void 0))});return Ve(()=>{if(a===Zn)return;let b;if(n){const y=r?.current;gt(y)&&y.closest("label")!=null?b=t??null:b=c??l}else if(t!=null)h.current=!0,b=t;else if(h.current)b=l;else{m();return}if(b===void 0){m();return}d.current=!0,a(f.current,b)},[t,r,c,a,n,l,f,m]),v.useEffect(()=>m,[m]),s??l}function s4(e,t){return e??t}function o4(e){const t=e.getBoundingClientRect(),n=xn(e);if(Kv)return t;const r=n.getComputedStyle(e,"::before"),s=n.getComputedStyle(e,"::after");if(!(r.content!=="none"||s.content!=="none"))return t;const l=parseFloat(r.width)||0,c=parseFloat(r.height)||0,f=parseFloat(s.width)||0,d=parseFloat(s.height)||0,h=Math.max(t.width,l,f),m=Math.max(t.height,c,d),b=h-t.width,y=m-t.height;return{left:t.left-b/2,right:t.right+b/2,top:t.top-y/2,bottom:t.bottom+y/2}}const XA=v.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});function a4(){return v.useContext(XA)}function wx(e){const{children:t,elementsRef:n,labelsRef:r,onMapChange:s}=e,a=Ke(s),l=v.useRef(0),c=zr(u4).current,f=zr(l4).current,[d,h]=v.useState(0),m=v.useRef(d),b=Ke((T,E)=>{f.set(T,E??null),m.current+=1,h(m.current)}),y=Ke(T=>{f.delete(T),m.current+=1,h(m.current)}),k=v.useMemo(()=>{const T=new Map;return Array.from(f.keys()).filter(C=>C.isConnected).sort(c4).forEach((C,_)=>{const D=f.get(C)??{};T.set(C,{...D,index:_})}),T},[f,d]);Ve(()=>{if(typeof MutationObserver!="function"||k.size===0)return;const T=new MutationObserver(E=>{const C=new Set,_=D=>C.has(D)?C.delete(D):C.add(D);E.forEach(D=>{D.removedNodes.forEach(_),D.addedNodes.forEach(_)}),C.size===0&&(m.current+=1,h(m.current))});return k.forEach((E,C)=>{C.parentElement&&T.observe(C.parentElement,{childList:!0})}),()=>{T.disconnect()}},[k]),Ve(()=>{m.current===d&&(n.current.length!==k.size&&(n.current.length=k.size),r&&r.current.length!==k.size&&(r.current.length=k.size),l.current=k.size),a(k)},[a,k,n,r,d]),Ve(()=>()=>{n.current=[]},[n]),Ve(()=>()=>{r&&(r.current=[])},[r]);const S=Ke(T=>(c.add(T),()=>{c.delete(T)}));Ve(()=>{c.forEach(T=>T(k))},[c,k]);const R=v.useMemo(()=>({register:b,unregister:y,subscribeMapChange:S,elementsRef:n,labelsRef:r,nextIndexRef:l}),[b,y,S,n,r,l]);return g.jsx(XA.Provider,{value:R,children:t})}function l4(){return new Map}function u4(){return new Set}function c4(e,t){const n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}const f4=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:s,rects:a,platform:l,elements:c,middlewareData:f}=t,{element:d,padding:h=0,offsetParent:m="real"}=As(e,t)||{};if(d==null)return{};const b=S_(h),y={x:n,y:r},k=Jv(s),S=Qv(k),R=await l.getDimensions(d),T=k==="y",E=T?"top":"left",C=T?"bottom":"right",_=T?"clientHeight":"clientWidth",D=a.reference[S]+a.reference[k]-y[k]-a.floating[S],A=y[k]-a.reference[k],M=m==="real"?await l.getOffsetParent?.(d):c.floating;let B=c.floating[_]||a.floating[S];(!B||!await l.isElement?.(M))&&(B=c.floating[_]||a.floating[S]);const P=D/2-A/2,N=B/2-R[S]/2-1,W=Math.min(b[E],N),$=Math.min(b[C],N),F=W,z=B-R[S]-$,U=B/2-R[S]/2+P,H=k_(F,U,z),K=!f.arrow&&Co(s)!=null&&U!==H&&a.reference[S]/2-(U<F?W:$)-R[S]/2<0,q=K?U<F?U-F:U-z:0;return{[k]:y[k]+q,data:{[k]:H,centerOffset:U-H-q,...K&&{alignmentOffset:q}},reset:K}}}),d4=(e,t)=>({...f4(e),options:[e,t]}),p4=x$().fn,h4={name:"hide",async fn(e){const{width:t,height:n,x:r,y:s}=e.rects.reference,a=t===0&&n===0&&r===0&&s===0;return{data:{referenceHidden:(await p4(e)).data?.referenceHidden||a}}}},xp={sideX:"left",sideY:"top"},ZA={name:"adaptiveOrigin",async fn(e){const{x:t,y:n,rects:{floating:r},elements:{floating:s},platform:a,strategy:l,placement:c}=e,f=xn(s),d=f.getComputedStyle(s);if(!(d.transitionDuration!=="0s"&&d.transitionDuration!==""))return{x:t,y:n,data:xp};const m=await a.getOffsetParent?.(s);let b={width:0,height:0};if(l==="fixed"&&f?.visualViewport)b={width:f.visualViewport.width,height:f.visualViewport.height};else if(m===f){const E=Wt(s);b={width:E.documentElement.clientWidth,height:E.documentElement.clientHeight}}else await a.isElement?.(m)&&(b=await a.getDimensions(m));const y=ti(c);let k=t,S=n;y==="left"&&(k=b.width-(t+r.width)),y==="top"&&(S=b.height-(n+r.height));const R=y==="left"?"right":xp.sideX,T=y==="top"?"bottom":xp.sideY;return{x:k,y:S,data:{sideX:R,sideY:T}}}};function QA(e,t,n){const r=e==="inline-start"||e==="inline-end";return{top:"top",right:r?n?"inline-start":"inline-end":"right",bottom:"bottom",left:r?n?"inline-end":"inline-start":"left"}[t]}function RE(e,t,n){const{rects:r,placement:s}=e;return{side:QA(t,ti(s),n),align:Co(s)||"center",anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function Ex(e){const{anchor:t,positionMethod:n="absolute",side:r="bottom",sideOffset:s=0,align:a="center",alignOffset:l=0,collisionBoundary:c,collisionPadding:f=5,sticky:d=!1,arrowPadding:h=5,disableAnchorTracking:m=!1,inline:b,keepMounted:y=!1,floatingRootContext:k,mounted:S,collisionAvoidance:R,shiftCrossAxis:T=!1,nodeId:E,adaptiveOrigin:C,lazyFlip:_=!1,externalTree:D}=e,[A,M]=v.useState(null);!S&&A!==null&&M(null);const B=R.side||"flip",P=R.align||"flip",N=R.fallbackAxisSide||"end",W=typeof t=="function"?t:void 0,$=Ke(W),F=W?$:t,z=On(t),U=On(S),K=Di()==="rtl",q=A||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":K?"left":"right","inline-start":K?"right":"left"}[r],Y=a==="center"?q:`${q}-${a}`;let O=f;const j=1,V=r==="bottom"?j:0,L=r==="top"?j:0,X=r==="right"?j:0,se=r==="left"?j:0;typeof O=="number"?O={top:O+V,right:O+se,bottom:O+L,left:O+X}:O&&(O={top:(O.top||0)+V,right:(O.right||0)+se,bottom:(O.bottom||0)+L,left:(O.left||0)+X});const ne={boundary:c==="clipping-ancestors"?"clippingAncestors":c,padding:O},oe=v.useRef(null),le=On(s),ce=On(l),Ee=typeof s!="function"?s:0,be=typeof l!="function"?l:0,ue=[];b&&ue.push(b),ue.push(ix(it=>{const ft=RE(it,r,K),Lt=typeof le.current=="function"?le.current(ft):le.current,Pt=typeof ce.current=="function"?ce.current(ft):ce.current;return{mainAxis:Lt,crossAxis:Pt,alignmentAxis:Pt}},[Ee,be,K,r]));const ge=P==="none"&&B!=="shift",Se=!ge&&(d||T||B==="shift"),Ae=B==="none"?null:ox({...ne,padding:{top:O.top+j,right:O.right+j,bottom:O.bottom+j,left:O.left+j},mainAxis:!T&&B==="flip",crossAxis:P==="flip"?"alignment":!1,fallbackAxisSideDirection:N}),ke=ge?null:sx(it=>{const ft=Wt(it.elements.floating).documentElement;return{...ne,rootBoundary:T?{x:0,y:0,width:ft.clientWidth,height:ft.clientHeight}:void 0,mainAxis:P!=="none",crossAxis:Se,limiter:d||T?void 0:v$(Lt=>{if(!oe.current)return{};const{width:Pt,height:At}=oe.current.getBoundingClientRect(),Z=mi(ti(Lt.placement)),me=Z==="y"?Pt:At,Le=Z==="y"?O.left+O.right:O.top+O.bottom;return{offset:me/2+Le/2}})}},[ne,d,T,O,P]);B==="shift"||P==="shift"||a==="center"?ue.push(ke,Ae):ue.push(Ae,ke),ue.push(ax({...ne,apply({elements:{floating:it},availableWidth:ft,availableHeight:Lt,rects:Pt}){if(!U.current)return;const At=it.style;At.setProperty("--available-width",`${ft}px`),At.setProperty("--available-height",`${Lt}px`);const Z=xn(it).devicePixelRatio||1,{x:me,y:Le,width:Xe,height:Ct}=Pt.reference,lt=(Math.round((me+Xe)*Z)-Math.round(me*Z))/Z,He=(Math.round((Le+Ct)*Z)-Math.round(Le*Z))/Z;At.setProperty("--anchor-width",`${lt}px`),At.setProperty("--anchor-height",`${He}px`)}}),d4(it=>({element:oe.current||Wt(it.elements.floating).createElement("div"),padding:h,offsetParent:"floating"}),[h]),{name:"transformOrigin",fn(it){const{elements:ft,middlewareData:Lt,placement:Pt,rects:At,y:Z}=it,me=ti(Pt),Le=mi(me),Xe=oe.current,Ct=Lt.arrow?.x||0,lt=Lt.arrow?.y||0,He=Xe?.clientWidth||0,qe=Xe?.clientHeight||0,De=Ct+He/2,je=lt+qe/2,Ie=Math.abs(Lt.shift?.y||0),We=At.reference.height/2,dt=typeof s=="function"?s(RE(it,r,K)):s,Et=Ie>dt,Ne={top:`${De}px calc(100% + ${dt}px)`,bottom:`${De}px ${-dt}px`,left:`calc(100% + ${dt}px) ${je}px`,right:`${-dt}px ${je}px`}[me],Tt=`${De}px ${At.reference.y+We-Z}px`;return ft.floating.style.setProperty("--transform-origin",Se&&Le==="y"&&Et?Tt:Ne),{}}},h4,C),Ve(()=>{!S&&k&&k.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[S,k]);const xe=v.useMemo(()=>({elementResize:!m&&typeof ResizeObserver<"u",layoutShift:!m&&typeof IntersectionObserver<"u"}),[m]),{refs:Re,elements:Me,x:ze,y:Fe,middlewareData:ye,update:_e,placement:ee,context:fe,isPositioned:Q,floatingStyles:re}=W$({rootContext:k,open:y?S:void 0,placement:Y,middleware:ue,strategy:n,whileElementsMounted:y?void 0:(...it)=>Lp(...it,xe),nodeId:E,externalTree:D}),{sideX:we,sideY:Pe}=ye.adaptiveOrigin||xp,Ye=Q?n:"fixed",Ze=v.useMemo(()=>{const it=C?{position:Ye,[we]:ze,[Pe]:Fe}:{position:Ye,...re};return Q||(it.opacity=0),it},[C,Ye,we,ze,Pe,Fe,re,Q]),bt=v.useRef(null);Ve(()=>{if(!S)return;const it=z.current,ft=typeof it=="function"?it():it,Pt=(CE(ft)?ft.current:ft)||null||null;Pt!==bt.current&&(Re.setPositionReference(Pt),bt.current=Pt)},[S,Re,F,z]),v.useEffect(()=>{if(!S)return;const it=z.current;typeof it!="function"&&CE(it)&&it.current!==bt.current&&(Re.setPositionReference(it.current),bt.current=it.current)},[S,Re,F,z]),v.useEffect(()=>{if(y&&S&&Me.reference&&Me.floating)return Lp(Me.reference,Me.floating,_e,xe)},[y,S,Me,_e,xe]);const Je=ti(ee),xt=QA(r,Je,K),St=Co(ee)||"center",nt=!!ye.hide?.referenceHidden;Ve(()=>{_&&S&&Q&&M(Je)},[_,S,Q,Je]);const rt=v.useMemo(()=>({position:"absolute",top:ye.arrow?.y,left:ye.arrow?.x}),[ye.arrow]),ct=ye.arrow?.centerOffset!==0;return v.useMemo(()=>({positionerStyles:Ze,arrowStyles:rt,arrowRef:oe,arrowUncentered:ct,side:xt,align:St,physicalSide:Je,anchorHidden:nt,refs:Re,context:fe,isPositioned:Q,update:_e}),[Ze,rt,oe,ct,xt,St,Je,nt,Re,fe,Q,_e])}function CE(e){return e!=null&&"current"in e}function Lh(e){return e==="starting"?kP:Bn}function Tx(e,t,{styles:n,transitionStatus:r,props:s,refs:a,hidden:l,inert:c=!1}){const f={...n};return c&&(f.pointerEvents="none"),bn("div",e,{state:t,ref:a,props:[{role:"presentation",hidden:l,style:f},Lh(r),s],stateAttributesMapping:Wc})}const m4=20;function g4(e,t,n,r){const[s,a]=v.useState(!1);Ve(()=>{if(!e||!t||n==null){a(!1);return}const l=Wt(n).documentElement.clientWidth,c=n.offsetWidth;a(l>0&&c>0&&c>=l-m4)},[e,t,n]),y3(e&&(!t||s),r)}let JA=(function(e){return e[e.None=0]="None",e[e.GuessFromOrder=1]="GuessFromOrder",e})({});function eN(e={}){const{label:t,metadata:n,textRef:r,indexGuessBehavior:s,index:a}=e,{register:l,unregister:c,subscribeMapChange:f,elementsRef:d,labelsRef:h,nextIndexRef:m}=a4(),b=v.useRef(-1),[y,k]=v.useState(a??(s===JA.GuessFromOrder?()=>{if(b.current===-1){const T=m.current;m.current+=1,b.current=T}return b.current}:-1)),S=v.useRef(null),R=v.useCallback(T=>{if(S.current=T,y!==-1&&T!==null&&(d.current[y]=T,h)){const E=t!==void 0;h.current[y]=E?t:r?.current?.textContent??T.textContent}},[y,d,h,t,r]);return Ve(()=>{if(a!=null)return;const T=S.current;if(T)return l(T,n),()=>{c(T)}},[a,l,c,n]),Ve(()=>{if(a==null)return f(T=>{const E=S.current?T.get(S.current)?.index:null;E!=null&&k(E)})},[a,f,k]),{ref:R,index:y}}const tN={popup:{k6sLGO:"ui-1so62im",k3nNDw:"ui-ctpfpq",k1ekBW:"ui-11xpdln",kAMwcw:"ui-19frgs0",kIyJzY:"ui-7pq1vu ui-1fdgx8g ui-sagj69",k3aq6I:"ui-1c071of ui-17ll0io ui-2um2vg ui-1ahjy9u ui-s2p038 ui-fld6f8 ui-14hpypv ui-1296zyv ui-1h7md5i",$$css:!0},positioner:{"--ui-floating-anchor-fade-duration":"ui-1kwwprx ui-5ece57 ui-4rr00i",kSiTet:"ui-1hc1fzr ui-4itv7f ui-fwszop",$$css:!0}},jh=tN.popup,b4=tN.positioner,y4={transition:`opacity var(--ui-floating-anchor-fade-duration) ${Zj["--cursor-easing-out-quint"]}`};function zh(...e){const t=zt(b4,...e);return{...t,style:{...t.style,...y4}}}const Ph={border:{k5JduY:"ui-1s928wv",kwXMNM:"ui-1j6awrg",k3foIR:"ui-1m1drc7",kH8aOt:"ui-1unh1gc",k8Iv0R:"ui-1xrz1ek",kc1e00:"ui-1iygr5g",kDVEDD:"ui-itxdhh",kUfP38:"ui-1k48kgn",kbMawA:"ui-1o7vem3",kloYau:"ui-2q1x1w",$$css:!0}},lr={positioner:{kY2c9j:"ui-2hst0z",$$css:!0},popupPositioner:{kY2c9j:"ui-fc2p8",$$css:!0},popupShadow:{kGVxlE:"ui-1x78n9t",$$css:!0},tooltipShadow:{kGVxlE:"ui-4l6n3x",$$css:!0},popupRadius:{kaIpWk:"ui-1pkpdue",$$css:!0},tooltipRadius:{kaIpWk:"ui-15ujvgx",$$css:!0},surface:{kB7OPa:"ui-9f619",kVAEAm:"ui-1n2onr6",kWkggS:"ui-f1vpex",kEafiO:"ui-972fbf",kPef9Z:"ui-1ejq31n",ke9TFa:"ui-10w94by",k8ry5P:"ui-18oe1m7",kt9PQ7:"ui-1qhh985",kfdmCh:"ui-1sy0etr",k2ei4v:"ui-14e42zd",kVhnKS:"ui-stzfhl",kaIpWk:"ui-1pkpdue",kMwMTN:"ui-1wd3ewq",kMv6JI:"ui-1acoasx",kGuDYH:"ui-11wthnw",kLWn49:"ui-1ja60sm",kb6lSQ:"ui-vu1jfw",khiITx:"ui-vmahel",kTUp5R:"ui-lh3980",$$css:!0},popupLayout:{k1xSpc:"ui-1lliihq",kzqmXN:"ui-ezivpi",ks0D6T:"ui-w5ewwj",kHjlTd:"ui-j0a0fe",$$css:!0},popupInset:{kLKAdn:"ui-uve7l6",kwRFfy:"ui-196pc8s",kGO01o:"ui-1rgtt3y",kZCmMZ:"ui-22095l",$$css:!0},previewCardInset:{kLKAdn:"ui-oyc9vk",kwRFfy:"ui-1fg0g13",kGO01o:"ui-2lprc",kZCmMZ:"ui-1tajz9i",$$css:!0},popupInteractive:{kfzvcC:"ui-67bb7w",kfSwDN:"ui-1hx0egp",$$css:!0},popupSurfaceMd:{kaIpWk:"ui-1pkpdue",$$css:!0},tooltipSurface:{"--ui-surface-hairline-width":"ui-10ssw4j",kGuDYH:"ui-mppzg7",kLWn49:"ui-l68z86",kb6lSQ:"ui-55tv1j",kLKAdn:"ui-3jsnqb",kGO01o:"ui-1w5ico7",kwRFfy:"ui-180w9kh",kZCmMZ:"ui-1vs96pt",$$css:!0}},nN=lr.positioner,Rx=[lr.surface,Ph.border],rN=[nN,lr.popupShadow,lr.popupRadius],v4=[nN,lr.tooltipShadow,lr.tooltipRadius],x4=[lr.tooltipRadius,lr.tooltipSurface],k4=lr.popupLayout,S4=lr.popupInset,iN=lr.previewCardInset,sN=[k4,S4],w4=lr.popupInteractive,oN=[lr.surface,Ph.border],E4=lr.popupSurfaceMd,T4=lr.popupPositioner,R4=[T4,lr.popupShadow,lr.popupRadius],xa={popupFrame:{kB7OPa:"ui-9f619",k1xSpc:"ui-78zum5",kXwgrk:"ui-dt5ytf",kXHlph:"ui-6ikm8r",kORKVm:"ui-10wlt62",kHBbk8:"ui-c8icb0",kfSwDN:"ui-87ps6o",kY4cRS:"ui-lvsv26",$$css:!0},list:{k1xSpc:"ui-78zum5",kXwgrk:"ui-dt5ytf",kAzted:"ui-2lwn1j",kXHlph:"ui-6ikm8r",kORKVm:"ui-ryxfnj",$$css:!0},row:{k1xSpc:"ui-78zum5",kXwgrk:"ui-1q0g3np",kGNEyG:"ui-6s0dn4",kMeerF:"ui-1k57tk5",k3XXqK:"ui-1t137rt",kkrTdU:"ui-1ypdohk ui-mh7c9n",kMwMTN:"ui-1wd3ewq ui-1kosevp",kWkggS:"ui-jbqb8w ui-1sbws7q",$$css:!0},rowFrame:{kB7OPa:"ui-9f619",kVAEAm:"ui-1n2onr6",kOIVth:"ui-xhr3t",kaIpWk:"ui-2u8bby","--ui-popup-list-row-highlighted-opacity":"ui-5i412e ui-1nlrr02",kWkggS:"ui-jbqb8w ui-9wl9qz",$$css:!0},rowInsetHighlight:{kfYRhQ:"ui-1b16mni",k7VdEw:"ui-1nwgpwx",kXO8Uu:"ui-1r87rg3",kDFFfQ:"ui-1wv1pz9",kllAdU:"ui-1v0xhfw",kxsapM:"ui-13bjwnm",k3JYP4:"ui-t2or2s",kDMCui:"ui-tj3xra",kWQQwa:"ui-50seq6",kYNu72:"ui-95qkr9",$$css:!0},rowSectionTrailing:{keTefX:"ui-kiyga0",$$css:!0},rowSectionDescription:{kSGwAc:"ui-qcrz7y",keoZOQ:"ui-1k5org8",$$css:!0}},C4=xa.list,_4=xa.row,A4=xa.popupFrame,N4=xa.rowFrame,O4=xa.rowInsetHighlight,I4=xa.rowSectionTrailing,M4=xa.rowSectionDescription,Pr={popup:{k7Eaqz:"ui-1i9suas",ks0D6T:"ui-13kvn80",kskxy:"ui-2pj5ht",$$css:!0},popupWidth:e=>[{kzqmXN:e!=null?"ui-5lhr3w":e,ks0D6T:e!=null?"ui-f68679":e,$$css:!0},{"--x-width":(t=>typeof t=="number"?t+"px":t??void 0)(e),"--x-maxWidth":(t=>typeof t=="number"?t+"px":t??void 0)(e)}],popupDefaultWidth:{kzqmXN:"ui-ezivpi",k7Eaqz:"ui-lopysa",$$css:!0},list:{kOIVth:"ui-ihas45",kLKAdn:"ui-9g4tyx",kwRFfy:"ui-yri2b",kGO01o:"ui-x776sp",kZCmMZ:"ui-1c1uobl",$$css:!0},row:{kAzted:"ui-14dnd5q ui-12uk8lx",kLKAdn:"ui-p90ga9 ui-17apzky",kwRFfy:"ui-mk9vl6",kGO01o:"ui-1ep5yuf ui-zkc5ih",kZCmMZ:"ui-vtdk6d",$$css:!0},rowText:{kUk6DE:"ui-98rzlu",k7Eaqz:"ui-euugli",kVAEAm:"ui-1n2onr6",kY2c9j:"ui-1vjfegm",$$css:!0},rowLabel:{k1xSpc:"ui-1lliihq",kzQI83:"ui-1iyjqo2",kmuXW:"ui-s83m0k",kCS8Yb:"ui-dl72j9",k7Eaqz:"ui-euugli",ks0D6T:"ui-193iq5w",kVQacm:"ui-b3r6kr",kg5iWk:"ui-lyipyv",khDVqt:"ui-uxw1ft",$$css:!0},itemTextWithMeta:{k1xSpc:"ui-78zum5",kXwgrk:"ui-1q0g3np",kGNEyG:"ui-1pha0wt",k7Eaqz:"ui-euugli",ks0D6T:"ui-193iq5w",$$css:!0},rowTextWithDescription:{k1xSpc:"ui-78zum5",kXwgrk:"ui-dt5ytf",kGNEyG:"ui-1cy8zhl",kOIVth:"ui-137clkk",$$css:!0},rowDescription:{k1xSpc:"ui-1lliihq",ks0D6T:"ui-193iq5w",kXHlph:"ui-6ikm8r",kORKVm:"ui-10wlt62",kg5iWk:"ui-lyipyv",khDVqt:"ui-uxw1ft",kMwMTN:"ui-4b2ntj",$$css:!0},rowMeta:{keTefX:"ui-1uokl23",$$css:!0},rowSection:{k1xSpc:"ui-3nfvp2",kGNEyG:"ui-6s0dn4",kmuXW:"ui-2lah0s",kVAEAm:"ui-1n2onr6",kY2c9j:"ui-1vjfegm",kMwMTN:"ui-19aaqeu",$$css:!0},rowSectionLeading:{k71WvV:"ui-17adnql",$$css:!0},rowSectionEnd:{kOIVth:"ui-1jcujwu",$$css:!0}},D4=[oN,A4,Pr.popup],L4={sm:null,md:E4},j4=Pr.popupWidth,z4=Pr.popupDefaultWidth,P4=[C4,Pr.list],$4=[_4,N4,Pr.row,O4,Cs.root],B4=Pr.rowText,F4=Pr.rowLabel,U4=Pr.itemTextWithMeta,q4=Pr.rowTextWithDescription,H4=Pr.rowDescription,V4=Pr.rowMeta,Mb=Pr.rowSection,G4=Pr.rowSectionLeading,_E=I4,W4=Pr.rowSectionEnd,Db=M4;function sl(e,t,n){let r=n.initialDeps??[],s,a=!0;function l(){var c,f,d;let h;n.key&&((c=n.debug)!=null&&c.call(n))&&(h=Date.now());const m=e();if(!(m.length!==r.length||m.some((k,S)=>r[S]!==k)))return s;r=m;let y;if(n.key&&((f=n.debug)!=null&&f.call(n))&&(y=Date.now()),s=t(...m),n.key&&((d=n.debug)!=null&&d.call(n))){const k=Math.round((Date.now()-h)*100)/100,S=Math.round((Date.now()-y)*100)/100,R=S/16,T=(E,C)=>{for(E=String(E);E.length<C;)E=" "+E;return E};console.info(`%c⏱ ${T(S,5)} /${T(k,5)} ms`,`
9
+ `).replace(sj,"")}function j1(i,o){return o=L1(o),L1(i)===o}function fn(i,o,u,p,x,w){switch(u){case"children":typeof p=="string"?o==="body"||o==="textarea"&&p===""||wt(i,p):(typeof p=="number"||typeof p=="bigint")&&o!=="body"&&wt(i,""+p);break;case"className":Ur(i,"class",p);break;case"tabIndex":Ur(i,"tabindex",p);break;case"dir":case"role":case"viewBox":case"width":case"height":Ur(i,u,p);break;case"style":an(i,p,w);break;case"data":if(o!=="object"){Ur(i,"data",p);break}case"src":case"href":if(p===""&&(o!=="a"||u!=="href")){i.removeAttribute(u);break}if(p==null||typeof p=="function"||typeof p=="symbol"||typeof p=="boolean"){i.removeAttribute(u);break}p=$s(""+p),i.setAttribute(u,p);break;case"action":case"formAction":if(typeof p=="function"){i.setAttribute(u,"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 w=="function"&&(u==="formAction"?(o!=="input"&&fn(i,o,"name",x.name,x,null),fn(i,o,"formEncType",x.formEncType,x,null),fn(i,o,"formMethod",x.formMethod,x,null),fn(i,o,"formTarget",x.formTarget,x,null)):(fn(i,o,"encType",x.encType,x,null),fn(i,o,"method",x.method,x,null),fn(i,o,"target",x.target,x,null)));if(p==null||typeof p=="symbol"||typeof p=="boolean"){i.removeAttribute(u);break}p=$s(""+p),i.setAttribute(u,p);break;case"onClick":p!=null&&(i.onclick=Ge);break;case"onScroll":p!=null&&Bt("scroll",i);break;case"onScrollEnd":p!=null&&Bt("scrollend",i);break;case"dangerouslySetInnerHTML":if(p!=null){if(typeof p!="object"||!("__html"in p))throw Error(r(61));if(u=p.__html,u!=null){if(x.children!=null)throw Error(r(60));i.innerHTML=u}}break;case"multiple":i.multiple=p&&typeof p!="function"&&typeof p!="symbol";break;case"muted":i.muted=p&&typeof p!="function"&&typeof p!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(p==null||typeof p=="function"||typeof p=="boolean"||typeof p=="symbol"){i.removeAttribute("xlink:href");break}u=$s(""+p),i.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",u);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":p!=null&&typeof p!="function"&&typeof p!="symbol"?i.setAttribute(u,""+p):i.removeAttribute(u);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":p&&typeof p!="function"&&typeof p!="symbol"?i.setAttribute(u,""):i.removeAttribute(u);break;case"capture":case"download":p===!0?i.setAttribute(u,""):p!==!1&&p!=null&&typeof p!="function"&&typeof p!="symbol"?i.setAttribute(u,p):i.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":p!=null&&typeof p!="function"&&typeof p!="symbol"&&!isNaN(p)&&1<=p?i.setAttribute(u,p):i.removeAttribute(u);break;case"rowSpan":case"start":p==null||typeof p=="function"||typeof p=="symbol"||isNaN(p)?i.removeAttribute(u):i.setAttribute(u,p);break;case"popover":Bt("beforetoggle",i),Bt("toggle",i),ur(i,"popover",p);break;case"xlinkActuate":Rr(i,"http://www.w3.org/1999/xlink","xlink:actuate",p);break;case"xlinkArcrole":Rr(i,"http://www.w3.org/1999/xlink","xlink:arcrole",p);break;case"xlinkRole":Rr(i,"http://www.w3.org/1999/xlink","xlink:role",p);break;case"xlinkShow":Rr(i,"http://www.w3.org/1999/xlink","xlink:show",p);break;case"xlinkTitle":Rr(i,"http://www.w3.org/1999/xlink","xlink:title",p);break;case"xlinkType":Rr(i,"http://www.w3.org/1999/xlink","xlink:type",p);break;case"xmlBase":Rr(i,"http://www.w3.org/XML/1998/namespace","xml:base",p);break;case"xmlLang":Rr(i,"http://www.w3.org/XML/1998/namespace","xml:lang",p);break;case"xmlSpace":Rr(i,"http://www.w3.org/XML/1998/namespace","xml:space",p);break;case"is":ur(i,"is",p);break;case"innerText":case"textContent":break;default:(!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(u=Ji.get(u)||u,ur(i,u,p))}}function Gg(i,o,u,p,x,w){switch(u){case"style":an(i,p,w);break;case"dangerouslySetInnerHTML":if(p!=null){if(typeof p!="object"||!("__html"in p))throw Error(r(61));if(u=p.__html,u!=null){if(x.children!=null)throw Error(r(60));i.innerHTML=u}}break;case"children":typeof p=="string"?wt(i,p):(typeof p=="number"||typeof p=="bigint")&&wt(i,""+p);break;case"onScroll":p!=null&&Bt("scroll",i);break;case"onScrollEnd":p!=null&&Bt("scrollend",i);break;case"onClick":p!=null&&(i.onclick=Ge);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Io.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(x=u.endsWith("Capture"),o=u.slice(2,x?u.length-7:void 0),w=i[Qt]||null,w=w!=null?w[u]:null,typeof w=="function"&&i.removeEventListener(o,w,x),typeof p=="function")){typeof w!="function"&&w!==null&&(u in i?i[u]=null:i.hasAttribute(u)&&i.removeAttribute(u)),i.addEventListener(o,p,x);break e}u in i?i[u]=p:p===!0?i.setAttribute(u,""):ur(i,u,p)}}}function or(i,o,u){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Bt("error",i),Bt("load",i);var p=!1,x=!1,w;for(w in u)if(u.hasOwnProperty(w)){var I=u[w];if(I!=null)switch(w){case"src":p=!0;break;case"srcSet":x=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,o));default:fn(i,o,w,I,u,null)}}x&&fn(i,o,"srcSet",u.srcSet,u,null),p&&fn(i,o,"src",u.src,u,null);return;case"input":Bt("invalid",i);var G=w=I=x=null,J=null,pe=null;for(p in u)if(u.hasOwnProperty(p)){var Te=u[p];if(Te!=null)switch(p){case"name":x=Te;break;case"type":I=Te;break;case"checked":J=Te;break;case"defaultChecked":pe=Te;break;case"value":w=Te;break;case"defaultValue":G=Te;break;case"children":case"dangerouslySetInnerHTML":if(Te!=null)throw Error(r(137,o));break;default:fn(i,o,p,Te,u,null)}}Mo(i,w,G,J,pe,I,x,!1);return;case"select":Bt("invalid",i),p=I=w=null;for(x in u)if(u.hasOwnProperty(x)&&(G=u[x],G!=null))switch(x){case"value":w=G;break;case"defaultValue":I=G;break;case"multiple":p=G;default:fn(i,o,x,G,u,null)}o=w,u=I,i.multiple=!!p,o!=null?nr(i,!!p,o,!1):u!=null&&nr(i,!!p,u,!0);return;case"textarea":Bt("invalid",i),w=x=p=null;for(I in u)if(u.hasOwnProperty(I)&&(G=u[I],G!=null))switch(I){case"value":p=G;break;case"defaultValue":x=G;break;case"children":w=G;break;case"dangerouslySetInnerHTML":if(G!=null)throw Error(r(91));break;default:fn(i,o,I,G,u,null)}_a(i,p,x,w);return;case"option":for(J in u)u.hasOwnProperty(J)&&(p=u[J],p!=null)&&(J==="selected"?i.selected=p&&typeof p!="function"&&typeof p!="symbol":fn(i,o,J,p,u,null));return;case"dialog":Bt("beforetoggle",i),Bt("toggle",i),Bt("cancel",i),Bt("close",i);break;case"iframe":case"object":Bt("load",i);break;case"video":case"audio":for(p=0;p<Ou.length;p++)Bt(Ou[p],i);break;case"image":Bt("error",i),Bt("load",i);break;case"details":Bt("toggle",i);break;case"embed":case"source":case"link":Bt("error",i),Bt("load",i);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(pe in u)if(u.hasOwnProperty(pe)&&(p=u[pe],p!=null))switch(pe){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,o));default:fn(i,o,pe,p,u,null)}return;default:if(Ps(o)){for(Te in u)u.hasOwnProperty(Te)&&(p=u[Te],p!==void 0&&Gg(i,o,Te,p,u,void 0));return}}for(G in u)u.hasOwnProperty(G)&&(p=u[G],p!=null&&fn(i,o,G,p,u,null))}function oj(i,o,u,p){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var x=null,w=null,I=null,G=null,J=null,pe=null,Te=null;for(ve in u){var Oe=u[ve];if(u.hasOwnProperty(ve)&&Oe!=null)switch(ve){case"checked":break;case"value":break;case"defaultValue":J=Oe;default:p.hasOwnProperty(ve)||fn(i,o,ve,null,p,Oe)}}for(var he in p){var ve=p[he];if(Oe=u[he],p.hasOwnProperty(he)&&(ve!=null||Oe!=null))switch(he){case"type":w=ve;break;case"name":x=ve;break;case"checked":pe=ve;break;case"defaultChecked":Te=ve;break;case"value":I=ve;break;case"defaultValue":G=ve;break;case"children":case"dangerouslySetInnerHTML":if(ve!=null)throw Error(r(137,o));break;default:ve!==Oe&&fn(i,o,he,ve,p,Oe)}}Xl(i,I,G,J,pe,Te,w,x);return;case"select":ve=I=G=he=null;for(w in u)if(J=u[w],u.hasOwnProperty(w)&&J!=null)switch(w){case"value":break;case"multiple":ve=J;default:p.hasOwnProperty(w)||fn(i,o,w,null,p,J)}for(x in p)if(w=p[x],J=u[x],p.hasOwnProperty(x)&&(w!=null||J!=null))switch(x){case"value":he=w;break;case"defaultValue":G=w;break;case"multiple":I=w;default:w!==J&&fn(i,o,x,w,p,J)}o=G,u=I,p=ve,he!=null?nr(i,!!u,he,!1):!!p!=!!u&&(o!=null?nr(i,!!u,o,!0):nr(i,!!u,u?[]:"",!1));return;case"textarea":ve=he=null;for(G in u)if(x=u[G],u.hasOwnProperty(G)&&x!=null&&!p.hasOwnProperty(G))switch(G){case"value":break;case"children":break;default:fn(i,o,G,null,p,x)}for(I in p)if(x=p[I],w=u[I],p.hasOwnProperty(I)&&(x!=null||w!=null))switch(I){case"value":he=x;break;case"defaultValue":ve=x;break;case"children":break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(r(91));break;default:x!==w&&fn(i,o,I,x,p,w)}yf(i,he,ve);return;case"option":for(var et in u)he=u[et],u.hasOwnProperty(et)&&he!=null&&!p.hasOwnProperty(et)&&(et==="selected"?i.selected=!1:fn(i,o,et,null,p,he));for(J in p)he=p[J],ve=u[J],p.hasOwnProperty(J)&&he!==ve&&(he!=null||ve!=null)&&(J==="selected"?i.selected=he&&typeof he!="function"&&typeof he!="symbol":fn(i,o,J,he,p,ve));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 kt in u)he=u[kt],u.hasOwnProperty(kt)&&he!=null&&!p.hasOwnProperty(kt)&&fn(i,o,kt,null,p,he);for(pe in p)if(he=p[pe],ve=u[pe],p.hasOwnProperty(pe)&&he!==ve&&(he!=null||ve!=null))switch(pe){case"children":case"dangerouslySetInnerHTML":if(he!=null)throw Error(r(137,o));break;default:fn(i,o,pe,he,p,ve)}return;default:if(Ps(o)){for(var dn in u)he=u[dn],u.hasOwnProperty(dn)&&he!==void 0&&!p.hasOwnProperty(dn)&&Gg(i,o,dn,void 0,p,he);for(Te in p)he=p[Te],ve=u[Te],!p.hasOwnProperty(Te)||he===ve||he===void 0&&ve===void 0||Gg(i,o,Te,he,p,ve);return}}for(var ae in u)he=u[ae],u.hasOwnProperty(ae)&&he!=null&&!p.hasOwnProperty(ae)&&fn(i,o,ae,null,p,he);for(Oe in p)he=p[Oe],ve=u[Oe],!p.hasOwnProperty(Oe)||he===ve||he==null&&ve==null||fn(i,o,Oe,he,p,ve)}function z1(i){switch(i){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function aj(){if(typeof performance.getEntriesByType=="function"){for(var i=0,o=0,u=performance.getEntriesByType("resource"),p=0;p<u.length;p++){var x=u[p],w=x.transferSize,I=x.initiatorType,G=x.duration;if(w&&G&&z1(I)){for(I=0,G=x.responseEnd,p+=1;p<u.length;p++){var J=u[p],pe=J.startTime;if(pe>G)break;var Te=J.transferSize,Oe=J.initiatorType;Te&&z1(Oe)&&(J=J.responseEnd,I+=Te*(J<G?1:(G-pe)/(J-pe)))}if(--p,o+=8*(w+I)/(x.duration/1e3),i++,10<i)break}}if(0<i)return o/i/1e6}return navigator.connection&&(i=navigator.connection.downlink,typeof i=="number")?i:5}var Wg=null,Kg=null;function md(i){return i.nodeType===9?i:i.ownerDocument}function P1(i){switch(i){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function $1(i,o){if(i===0)switch(o){case"svg":return 1;case"math":return 2;default:return 0}return i===1&&o==="foreignObject"?0:i}function Yg(i,o){return i==="textarea"||i==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.children=="bigint"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var Xg=null;function lj(){var i=window.event;return i&&i.type==="popstate"?i===Xg?!1:(Xg=i,!0):(Xg=null,!1)}var B1=typeof setTimeout=="function"?setTimeout:void 0,uj=typeof clearTimeout=="function"?clearTimeout:void 0,F1=typeof Promise=="function"?Promise:void 0,cj=typeof queueMicrotask=="function"?queueMicrotask:typeof F1<"u"?function(i){return F1.resolve(null).then(i).catch(fj)}:B1;function fj(i){setTimeout(function(){throw i})}function ro(i){return i==="head"}function U1(i,o){var u=o,p=0;do{var x=u.nextSibling;if(i.removeChild(u),x&&x.nodeType===8)if(u=x.data,u==="/$"||u==="/&"){if(p===0){i.removeChild(x),rl(o);return}p--}else if(u==="$"||u==="$?"||u==="$~"||u==="$!"||u==="&")p++;else if(u==="html")Mu(i.ownerDocument.documentElement);else if(u==="head"){u=i.ownerDocument.head,Mu(u);for(var w=u.firstChild;w;){var I=w.nextSibling,G=w.nodeName;w[ri]||G==="SCRIPT"||G==="STYLE"||G==="LINK"&&w.rel.toLowerCase()==="stylesheet"||u.removeChild(w),w=I}}else u==="body"&&Mu(i.ownerDocument.body);u=x}while(u);rl(o)}function q1(i,o){var u=i;i=0;do{var p=u.nextSibling;if(u.nodeType===1?o?(u._stashedDisplay=u.style.display,u.style.display="none"):(u.style.display=u._stashedDisplay||"",u.getAttribute("style")===""&&u.removeAttribute("style")):u.nodeType===3&&(o?(u._stashedText=u.nodeValue,u.nodeValue=""):u.nodeValue=u._stashedText||""),p&&p.nodeType===8)if(u=p.data,u==="/$"){if(i===0)break;i--}else u!=="$"&&u!=="$?"&&u!=="$~"&&u!=="$!"||i++;u=p}while(u)}function Zg(i){var o=i.firstChild;for(o&&o.nodeType===10&&(o=o.nextSibling);o;){var u=o;switch(o=o.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":Zg(u),Fr(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}i.removeChild(u)}}function dj(i,o,u,p){for(;i.nodeType===1;){var x=u;if(i.nodeName.toLowerCase()!==o.toLowerCase()){if(!p&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(p){if(!i[ri])switch(o){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(w=i.getAttribute("rel"),w==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(w!==x.rel||i.getAttribute("href")!==(x.href==null||x.href===""?null:x.href)||i.getAttribute("crossorigin")!==(x.crossOrigin==null?null:x.crossOrigin)||i.getAttribute("title")!==(x.title==null?null:x.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(w=i.getAttribute("src"),(w!==(x.src==null?null:x.src)||i.getAttribute("type")!==(x.type==null?null:x.type)||i.getAttribute("crossorigin")!==(x.crossOrigin==null?null:x.crossOrigin))&&w&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(o==="input"&&i.type==="hidden"){var w=x.name==null?null:""+x.name;if(x.type==="hidden"&&i.getAttribute("name")===w)return i}else return i;if(i=fi(i.nextSibling),i===null)break}return null}function pj(i,o,u){if(o==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!u||(i=fi(i.nextSibling),i===null))return null;return i}function H1(i,o){for(;i.nodeType!==8;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!o||(i=fi(i.nextSibling),i===null))return null;return i}function Qg(i){return i.data==="$?"||i.data==="$~"}function Jg(i){return i.data==="$!"||i.data==="$?"&&i.ownerDocument.readyState!=="loading"}function hj(i,o){var u=i.ownerDocument;if(i.data==="$~")i._reactRetry=o;else if(i.data!=="$?"||u.readyState!=="loading")o();else{var p=function(){o(),u.removeEventListener("DOMContentLoaded",p)};u.addEventListener("DOMContentLoaded",p),i._reactRetry=p}}function fi(i){for(;i!=null;i=i.nextSibling){var o=i.nodeType;if(o===1||o===3)break;if(o===8){if(o=i.data,o==="$"||o==="$!"||o==="$?"||o==="$~"||o==="&"||o==="F!"||o==="F")break;if(o==="/$"||o==="/&")return null}}return i}var eb=null;function V1(i){i=i.nextSibling;for(var o=0;i;){if(i.nodeType===8){var u=i.data;if(u==="/$"||u==="/&"){if(o===0)return fi(i.nextSibling);o--}else u!=="$"&&u!=="$!"&&u!=="$?"&&u!=="$~"&&u!=="&"||o++}i=i.nextSibling}return null}function G1(i){i=i.previousSibling;for(var o=0;i;){if(i.nodeType===8){var u=i.data;if(u==="$"||u==="$!"||u==="$?"||u==="$~"||u==="&"){if(o===0)return i;o--}else u!=="/$"&&u!=="/&"||o++}i=i.previousSibling}return null}function W1(i,o,u){switch(o=md(u),i){case"html":if(i=o.documentElement,!i)throw Error(r(452));return i;case"head":if(i=o.head,!i)throw Error(r(453));return i;case"body":if(i=o.body,!i)throw Error(r(454));return i;default:throw Error(r(451))}}function Mu(i){for(var o=i.attributes;o.length;)i.removeAttributeNode(o[0]);Fr(i)}var di=new Map,K1=new Set;function gd(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}var ms=K.d;K.d={f:mj,r:gj,D:bj,C:yj,L:vj,m:xj,X:Sj,S:kj,M:wj};function mj(){var i=ms.f(),o=ad();return i||o}function gj(i){var o=Zi(i);o!==null&&o.tag===5&&o.type==="form"?fS(o):ms.r(i)}var el=typeof document>"u"?null:document;function Y1(i,o,u){var p=el;if(p&&typeof o=="string"&&o){var x=Cr(o);x='link[rel="'+i+'"][href="'+x+'"]',typeof u=="string"&&(x+='[crossorigin="'+u+'"]'),K1.has(x)||(K1.add(x),i={rel:i,crossOrigin:u,href:o},p.querySelector(x)===null&&(o=p.createElement("link"),or(o,"link",i),Un(o),p.head.appendChild(o)))}}function bj(i){ms.D(i),Y1("dns-prefetch",i,null)}function yj(i,o){ms.C(i,o),Y1("preconnect",i,o)}function vj(i,o,u){ms.L(i,o,u);var p=el;if(p&&i&&o){var x='link[rel="preload"][as="'+Cr(o)+'"]';o==="image"&&u&&u.imageSrcSet?(x+='[imagesrcset="'+Cr(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(x+='[imagesizes="'+Cr(u.imageSizes)+'"]')):x+='[href="'+Cr(i)+'"]';var w=x;switch(o){case"style":w=tl(i);break;case"script":w=nl(i)}di.has(w)||(i=m({rel:"preload",href:o==="image"&&u&&u.imageSrcSet?void 0:i,as:o},u),di.set(w,i),p.querySelector(x)!==null||o==="style"&&p.querySelector(Du(w))||o==="script"&&p.querySelector(Lu(w))||(o=p.createElement("link"),or(o,"link",i),Un(o),p.head.appendChild(o)))}}function xj(i,o){ms.m(i,o);var u=el;if(u&&i){var p=o&&typeof o.as=="string"?o.as:"script",x='link[rel="modulepreload"][as="'+Cr(p)+'"][href="'+Cr(i)+'"]',w=x;switch(p){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":w=nl(i)}if(!di.has(w)&&(i=m({rel:"modulepreload",href:i},o),di.set(w,i),u.querySelector(x)===null)){switch(p){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(Lu(w)))return}p=u.createElement("link"),or(p,"link",i),Un(p),u.head.appendChild(p)}}}function kj(i,o,u){ms.S(i,o,u);var p=el;if(p&&i){var x=zs(p).hoistableStyles,w=tl(i);o=o||"default";var I=x.get(w);if(!I){var G={loading:0,preload:null};if(I=p.querySelector(Du(w)))G.loading=5;else{i=m({rel:"stylesheet",href:i,"data-precedence":o},u),(u=di.get(w))&&tb(i,u);var J=I=p.createElement("link");Un(J),or(J,"link",i),J._p=new Promise(function(pe,Te){J.onload=pe,J.onerror=Te}),J.addEventListener("load",function(){G.loading|=1}),J.addEventListener("error",function(){G.loading|=2}),G.loading|=4,bd(I,o,p)}I={type:"stylesheet",instance:I,count:1,state:G},x.set(w,I)}}}function Sj(i,o){ms.X(i,o);var u=el;if(u&&i){var p=zs(u).hoistableScripts,x=nl(i),w=p.get(x);w||(w=u.querySelector(Lu(x)),w||(i=m({src:i,async:!0},o),(o=di.get(x))&&nb(i,o),w=u.createElement("script"),Un(w),or(w,"link",i),u.head.appendChild(w)),w={type:"script",instance:w,count:1,state:null},p.set(x,w))}}function wj(i,o){ms.M(i,o);var u=el;if(u&&i){var p=zs(u).hoistableScripts,x=nl(i),w=p.get(x);w||(w=u.querySelector(Lu(x)),w||(i=m({src:i,async:!0,type:"module"},o),(o=di.get(x))&&nb(i,o),w=u.createElement("script"),Un(w),or(w,"link",i),u.head.appendChild(w)),w={type:"script",instance:w,count:1,state:null},p.set(x,w))}}function X1(i,o,u,p){var x=(x=ne.current)?gd(x):null;if(!x)throw Error(r(446));switch(i){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(o=tl(u.href),u=zs(x).hoistableStyles,p=u.get(o),p||(p={type:"style",instance:null,count:0,state:null},u.set(o,p)),p):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){i=tl(u.href);var w=zs(x).hoistableStyles,I=w.get(i);if(I||(x=x.ownerDocument||x,I={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},w.set(i,I),(w=x.querySelector(Du(i)))&&!w._p&&(I.instance=w,I.state.loading=5),di.has(i)||(u={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy},di.set(i,u),w||Ej(x,i,u,I.state))),o&&p===null)throw Error(r(528,""));return I}if(o&&p!==null)throw Error(r(529,""));return null;case"script":return o=u.async,u=u.src,typeof u=="string"&&o&&typeof o!="function"&&typeof o!="symbol"?(o=nl(u),u=zs(x).hoistableScripts,p=u.get(o),p||(p={type:"script",instance:null,count:0,state:null},u.set(o,p)),p):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,i))}}function tl(i){return'href="'+Cr(i)+'"'}function Du(i){return'link[rel="stylesheet"]['+i+"]"}function Z1(i){return m({},i,{"data-precedence":i.precedence,precedence:null})}function Ej(i,o,u,p){i.querySelector('link[rel="preload"][as="style"]['+o+"]")?p.loading=1:(o=i.createElement("link"),p.preload=o,o.addEventListener("load",function(){return p.loading|=1}),o.addEventListener("error",function(){return p.loading|=2}),or(o,"link",u),Un(o),i.head.appendChild(o))}function nl(i){return'[src="'+Cr(i)+'"]'}function Lu(i){return"script[async]"+i}function Q1(i,o,u){if(o.count++,o.instance===null)switch(o.type){case"style":var p=i.querySelector('style[data-href~="'+Cr(u.href)+'"]');if(p)return o.instance=p,Un(p),p;var x=m({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return p=(i.ownerDocument||i).createElement("style"),Un(p),or(p,"style",x),bd(p,u.precedence,i),o.instance=p;case"stylesheet":x=tl(u.href);var w=i.querySelector(Du(x));if(w)return o.state.loading|=4,o.instance=w,Un(w),w;p=Z1(u),(x=di.get(x))&&tb(p,x),w=(i.ownerDocument||i).createElement("link"),Un(w);var I=w;return I._p=new Promise(function(G,J){I.onload=G,I.onerror=J}),or(w,"link",p),o.state.loading|=4,bd(w,u.precedence,i),o.instance=w;case"script":return w=nl(u.src),(x=i.querySelector(Lu(w)))?(o.instance=x,Un(x),x):(p=u,(x=di.get(w))&&(p=m({},u),nb(p,x)),i=i.ownerDocument||i,x=i.createElement("script"),Un(x),or(x,"link",p),i.head.appendChild(x),o.instance=x);case"void":return null;default:throw Error(r(443,o.type))}else o.type==="stylesheet"&&(o.state.loading&4)===0&&(p=o.instance,o.state.loading|=4,bd(p,u.precedence,i));return o.instance}function bd(i,o,u){for(var p=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),x=p.length?p[p.length-1]:null,w=x,I=0;I<p.length;I++){var G=p[I];if(G.dataset.precedence===o)w=G;else if(w!==x)break}w?w.parentNode.insertBefore(i,w.nextSibling):(o=u.nodeType===9?u.head:u,o.insertBefore(i,o.firstChild))}function tb(i,o){i.crossOrigin==null&&(i.crossOrigin=o.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=o.referrerPolicy),i.title==null&&(i.title=o.title)}function nb(i,o){i.crossOrigin==null&&(i.crossOrigin=o.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=o.referrerPolicy),i.integrity==null&&(i.integrity=o.integrity)}var yd=null;function J1(i,o,u){if(yd===null){var p=new Map,x=yd=new Map;x.set(u,p)}else x=yd,p=x.get(u),p||(p=new Map,x.set(u,p));if(p.has(i))return p;for(p.set(i,null),u=u.getElementsByTagName(i),x=0;x<u.length;x++){var w=u[x];if(!(w[ri]||w[Tt]||i==="link"&&w.getAttribute("rel")==="stylesheet")&&w.namespaceURI!=="http://www.w3.org/2000/svg"){var I=w.getAttribute(o)||"";I=i+I;var G=p.get(I);G?G.push(w):p.set(I,[w])}}return p}function ew(i,o,u){i=i.ownerDocument||i,i.head.insertBefore(u,o==="title"?i.querySelector("head > title"):null)}function Tj(i,o,u){if(u===1||o.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof o.precedence!="string"||typeof o.href!="string"||o.href==="")break;return!0;case"link":if(typeof o.rel!="string"||typeof o.href!="string"||o.href===""||o.onLoad||o.onError)break;return o.rel==="stylesheet"?(i=o.disabled,typeof o.precedence=="string"&&i==null):!0;case"script":if(o.async&&typeof o.async!="function"&&typeof o.async!="symbol"&&!o.onLoad&&!o.onError&&o.src&&typeof o.src=="string")return!0}return!1}function tw(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}function Rj(i,o,u,p){if(u.type==="stylesheet"&&(typeof p.media!="string"||matchMedia(p.media).matches!==!1)&&(u.state.loading&4)===0){if(u.instance===null){var x=tl(p.href),w=o.querySelector(Du(x));if(w){o=w._p,o!==null&&typeof o=="object"&&typeof o.then=="function"&&(i.count++,i=vd.bind(i),o.then(i,i)),u.state.loading|=4,u.instance=w,Un(w);return}w=o.ownerDocument||o,p=Z1(p),(x=di.get(x))&&tb(p,x),w=w.createElement("link"),Un(w);var I=w;I._p=new Promise(function(G,J){I.onload=G,I.onerror=J}),or(w,"link",p),u.instance=w}i.stylesheets===null&&(i.stylesheets=new Map),i.stylesheets.set(u,o),(o=u.state.preload)&&(u.state.loading&3)===0&&(i.count++,u=vd.bind(i),o.addEventListener("load",u),o.addEventListener("error",u))}}var rb=0;function Cj(i,o){return i.stylesheets&&i.count===0&&kd(i,i.stylesheets),0<i.count||0<i.imgCount?function(u){var p=setTimeout(function(){if(i.stylesheets&&kd(i,i.stylesheets),i.unsuspend){var w=i.unsuspend;i.unsuspend=null,w()}},6e4+o);0<i.imgBytes&&rb===0&&(rb=62500*aj());var x=setTimeout(function(){if(i.waitingForImages=!1,i.count===0&&(i.stylesheets&&kd(i,i.stylesheets),i.unsuspend)){var w=i.unsuspend;i.unsuspend=null,w()}},(i.imgBytes>rb?50:800)+o);return i.unsuspend=u,function(){i.unsuspend=null,clearTimeout(p),clearTimeout(x)}}:null}function vd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)kd(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var xd=null;function kd(i,o){i.stylesheets=null,i.unsuspend!==null&&(i.count++,xd=new Map,o.forEach(_j,i),xd=null,vd.call(i))}function _j(i,o){if(!(o.state.loading&4)){var u=xd.get(i);if(u)var p=u.get(null);else{u=new Map,xd.set(i,u);for(var x=i.querySelectorAll("link[data-precedence],style[data-precedence]"),w=0;w<x.length;w++){var I=x[w];(I.nodeName==="LINK"||I.getAttribute("media")!=="not all")&&(u.set(I.dataset.precedence,I),p=I)}p&&u.set(null,p)}x=o.instance,I=x.getAttribute("data-precedence"),w=u.get(I)||p,w===p&&u.set(null,x),u.set(I,x),this.count++,p=vd.bind(this),x.addEventListener("load",p),x.addEventListener("error",p),w?w.parentNode.insertBefore(x,w.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(x,i.firstChild)),o.state.loading|=4}}var ju={$$typeof:C,Provider:null,Consumer:null,_currentValue:q,_currentValue2:q,_threadCount:0};function Aj(i,o,u,p,x,w,I,G,J){this.tag=1,this.containerInfo=i,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=Ct(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ct(0),this.hiddenUpdates=Ct(null),this.identifierPrefix=p,this.onUncaughtError=x,this.onCaughtError=w,this.onRecoverableError=I,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=J,this.incompleteTransitions=new Map}function nw(i,o,u,p,x,w,I,G,J,pe,Te,Oe){return i=new Aj(i,o,u,I,J,pe,Te,Oe,G),o=1,w===!0&&(o|=24),w=Vr(3,null,null,o),i.current=w,w.stateNode=i,o=jm(),o.refCount++,i.pooledCache=o,o.refCount++,w.memoizedState={element:p,isDehydrated:u,cache:o},Bm(w),i}function rw(i){return i?(i=Ma,i):Ma}function iw(i,o,u,p,x,w){x=rw(x),p.context===null?p.context=x:p.pendingContext=x,p=Gs(o),p.payload={element:u},w=w===void 0?null:w,w!==null&&(p.callback=w),u=Ws(i,p,o),u!==null&&(Mr(u,i,o),hu(u,i,o))}function sw(i,o){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var u=i.retryLane;i.retryLane=u!==0&&u<o?u:o}}function ib(i,o){sw(i,o),(i=i.alternate)&&sw(i,o)}function ow(i){if(i.tag===13||i.tag===31){var o=zo(i,67108864);o!==null&&Mr(o,i,67108864),ib(i,67108864)}}function aw(i){if(i.tag===13||i.tag===31){var o=Xr();o=Ie(o);var u=zo(i,o);u!==null&&Mr(u,i,o),ib(i,o)}}var Sd=!0;function Nj(i,o,u,p){var x=H.T;H.T=null;var w=K.p;try{K.p=2,sb(i,o,u,p)}finally{K.p=w,H.T=x}}function Oj(i,o,u,p){var x=H.T;H.T=null;var w=K.p;try{K.p=8,sb(i,o,u,p)}finally{K.p=w,H.T=x}}function sb(i,o,u,p){if(Sd){var x=ob(p);if(x===null)Vg(i,o,p,wd,u),uw(i,p);else if(Mj(x,i,o,u,p))p.stopPropagation();else if(uw(i,p),o&4&&-1<Ij.indexOf(i)){for(;x!==null;){var w=Zi(x);if(w!==null)switch(w.tag){case 3:if(w=w.stateNode,w.current.memoizedState.isDehydrated){var I=At(w.pendingLanes);if(I!==0){var G=w;for(G.pendingLanes|=2,G.entangledLanes|=2;I;){var J=1<<31-nt(I);G.entanglements[1]|=J,I&=~J}Pi(w),(nn&6)===0&&(sd=ee()+500,Nu(0))}}break;case 31:case 13:G=zo(w,2),G!==null&&Mr(G,w,2),ad(),ib(w,2)}if(w=ob(p),w===null&&Vg(i,o,p,wd,u),w===x)break;x=w}x!==null&&p.stopPropagation()}else Vg(i,o,p,null,u)}}function ob(i){return i=Nt(i),ab(i)}var wd=null;function ab(i){if(wd=null,i=tr(i),i!==null){var o=a(i);if(o===null)i=null;else{var u=o.tag;if(u===13){if(i=l(o),i!==null)return i;i=null}else if(u===31){if(i=c(o),i!==null)return i;i=null}else if(u===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null)}}return wd=i,null}function lw(i){switch(i){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(fe()){case Q:return 2;case re:return 8;case we:case Pe:return 32;case Ye:return 268435456;default:return 32}default:return 32}}var lb=!1,io=null,so=null,oo=null,zu=new Map,Pu=new Map,ao=[],Ij="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 uw(i,o){switch(i){case"focusin":case"focusout":io=null;break;case"dragenter":case"dragleave":so=null;break;case"mouseover":case"mouseout":oo=null;break;case"pointerover":case"pointerout":zu.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pu.delete(o.pointerId)}}function $u(i,o,u,p,x,w){return i===null||i.nativeEvent!==w?(i={blockedOn:o,domEventName:u,eventSystemFlags:p,nativeEvent:w,targetContainers:[x]},o!==null&&(o=Zi(o),o!==null&&ow(o)),i):(i.eventSystemFlags|=p,o=i.targetContainers,x!==null&&o.indexOf(x)===-1&&o.push(x),i)}function Mj(i,o,u,p,x){switch(o){case"focusin":return io=$u(io,i,o,u,p,x),!0;case"dragenter":return so=$u(so,i,o,u,p,x),!0;case"mouseover":return oo=$u(oo,i,o,u,p,x),!0;case"pointerover":var w=x.pointerId;return zu.set(w,$u(zu.get(w)||null,i,o,u,p,x)),!0;case"gotpointercapture":return w=x.pointerId,Pu.set(w,$u(Pu.get(w)||null,i,o,u,p,x)),!0}return!1}function cw(i){var o=tr(i.target);if(o!==null){var u=a(o);if(u!==null){if(o=u.tag,o===13){if(o=l(u),o!==null){i.blockedOn=o,Et(i.priority,function(){aw(u)});return}}else if(o===31){if(o=c(u),o!==null){i.blockedOn=o,Et(i.priority,function(){aw(u)});return}}else if(o===3&&u.stateNode.current.memoizedState.isDehydrated){i.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}i.blockedOn=null}function Ed(i){if(i.blockedOn!==null)return!1;for(var o=i.targetContainers;0<o.length;){var u=ob(i.nativeEvent);if(u===null){u=i.nativeEvent;var p=new u.constructor(u.type,u);st=p,u.target.dispatchEvent(p),st=null}else return o=Zi(u),o!==null&&ow(o),i.blockedOn=u,!1;o.shift()}return!0}function fw(i,o,u){Ed(i)&&u.delete(o)}function Dj(){lb=!1,io!==null&&Ed(io)&&(io=null),so!==null&&Ed(so)&&(so=null),oo!==null&&Ed(oo)&&(oo=null),zu.forEach(fw),Pu.forEach(fw)}function Td(i,o){i.blockedOn===o&&(i.blockedOn=null,lb||(lb=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Dj)))}var Rd=null;function dw(i){Rd!==i&&(Rd=i,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Rd===i&&(Rd=null);for(var o=0;o<i.length;o+=3){var u=i[o],p=i[o+1],x=i[o+2];if(typeof p!="function"){if(ab(p||u)===null)continue;break}var w=Zi(u);w!==null&&(i.splice(o,3),o-=3,og(w,{pending:!0,data:x,method:u.method,action:p},p,x))}}))}function rl(i){function o(J){return Td(J,i)}io!==null&&Td(io,i),so!==null&&Td(so,i),oo!==null&&Td(oo,i),zu.forEach(o),Pu.forEach(o);for(var u=0;u<ao.length;u++){var p=ao[u];p.blockedOn===i&&(p.blockedOn=null)}for(;0<ao.length&&(u=ao[0],u.blockedOn===null);)cw(u),u.blockedOn===null&&ao.shift();if(u=(i.ownerDocument||i).$$reactFormReplay,u!=null)for(p=0;p<u.length;p+=3){var x=u[p],w=u[p+1],I=x[Qt]||null;if(typeof w=="function")I||dw(u);else if(I){var G=null;if(w&&w.hasAttribute("formAction")){if(x=w,I=w[Qt]||null)G=I.formAction;else if(ab(x)!==null)continue}else G=I.action;typeof G=="function"?u[p+1]=G:(u.splice(p,3),p-=3),dw(u)}}}function pw(){function i(w){w.canIntercept&&w.info==="react-transition"&&w.intercept({handler:function(){return new Promise(function(I){return x=I})},focusReset:"manual",scroll:"manual"})}function o(){x!==null&&(x(),x=null),p||setTimeout(u,20)}function u(){if(!p&&!navigation.transition){var w=navigation.currentEntry;w&&w.url!=null&&navigation.navigate(w.url,{state:w.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var p=!1,x=null;return navigation.addEventListener("navigate",i),navigation.addEventListener("navigatesuccess",o),navigation.addEventListener("navigateerror",o),setTimeout(u,100),function(){p=!0,navigation.removeEventListener("navigate",i),navigation.removeEventListener("navigatesuccess",o),navigation.removeEventListener("navigateerror",o),x!==null&&(x(),x=null)}}}function ub(i){this._internalRoot=i}Cd.prototype.render=ub.prototype.render=function(i){var o=this._internalRoot;if(o===null)throw Error(r(409));var u=o.current,p=Xr();iw(u,p,i,o,null,null)},Cd.prototype.unmount=ub.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var o=i.containerInfo;iw(i.current,2,null,i,null,null),ad(),o[rn]=null}};function Cd(i){this._internalRoot=i}Cd.prototype.unstable_scheduleHydration=function(i){if(i){var o=dt();i={blockedOn:null,target:i,priority:o};for(var u=0;u<ao.length&&o!==0&&o<ao[u].priority;u++);ao.splice(u,0,i),u===0&&cw(i)}};var hw=t.version;if(hw!=="19.2.6")throw Error(r(527,hw,"19.2.6"));K.findDOMNode=function(i){var o=i._reactInternals;if(o===void 0)throw typeof i.render=="function"?Error(r(188)):(i=Object.keys(i).join(","),Error(r(268,i)));return i=d(o),i=i!==null?h(i):null,i=i===null?null:i.stateNode,i};var Lj={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:H,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var _d=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!_d.isDisabled&&_d.supportsFiber)try{Je=_d.inject(Lj),xt=_d}catch{}}return Fu.createRoot=function(i,o){if(!s(i))throw Error(r(299));var u=!1,p="",x=kS,w=SS,I=wS;return o!=null&&(o.unstable_strictMode===!0&&(u=!0),o.identifierPrefix!==void 0&&(p=o.identifierPrefix),o.onUncaughtError!==void 0&&(x=o.onUncaughtError),o.onCaughtError!==void 0&&(w=o.onCaughtError),o.onRecoverableError!==void 0&&(I=o.onRecoverableError)),o=nw(i,1,!1,null,null,u,p,null,x,w,I,pw),i[rn]=o.current,Hg(i),new ub(o)},Fu.hydrateRoot=function(i,o,u){if(!s(i))throw Error(r(299));var p=!1,x="",w=kS,I=SS,G=wS,J=null;return u!=null&&(u.unstable_strictMode===!0&&(p=!0),u.identifierPrefix!==void 0&&(x=u.identifierPrefix),u.onUncaughtError!==void 0&&(w=u.onUncaughtError),u.onCaughtError!==void 0&&(I=u.onCaughtError),u.onRecoverableError!==void 0&&(G=u.onRecoverableError),u.formState!==void 0&&(J=u.formState)),o=nw(i,1,!0,o,u??null,p,x,J,w,I,G,pw),o.context=rw(null),u=o.current,p=Xr(),p=Ie(p),x=Gs(p),x.callback=null,Ws(u,x,p),u=p,o.current.lanes=u,lt(o,u),Pi(o),i[rn]=o.current,Hg(i),new Cd(o)},Fu.version="19.2.6",Fu}var Ew;function Gj(){if(Ew)return db.exports;Ew=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),db.exports=Vj(),db.exports}var Wj=Gj(),Uu={},Tw;function Kj(){if(Tw)return Uu;Tw=1,Object.defineProperty(Uu,"__esModule",{value:!0}),Uu.styleq=void 0;var e=new WeakMap,t="$$css";function n(s){var a,l,c;return s!=null&&(a=s.disableCache===!0,l=s.disableMix===!0,c=s.transform),function(){for(var d=[],h="",m=null,b="",y=a?null:e,k=new Array(arguments.length),S=0;S<arguments.length;S++)k[S]=arguments[S];for(;k.length>0;){var R=k.pop();if(!(R==null||R===!1)){if(Array.isArray(R)){for(var T=0;T<R.length;T++)k.push(R[T]);continue}var E=c!=null?c(R):R;if(E.$$css!=null){var C="";if(y!=null&&y.has(E)){var _=y.get(E);_!=null&&(C=_[0],b=_[2],d.push.apply(d,_[1]),y=_[3])}else{var D=[];for(var A in E){var M=E[A];if(A===t){var B=E[A];B!==!0&&(b=b?B+"; "+b:B);continue}typeof M=="string"||M===null?d.includes(A)||(d.push(A),y!=null&&D.push(A),typeof M=="string"&&(C+=C?" "+M:M)):console.error("styleq: ".concat(A," typeof ").concat(String(M),' is not "string" or "null".'))}if(y!=null){var P=new WeakMap;y.set(E,[C,D,b,P]),y=P}}C&&(h=h?C+" "+h:C)}else if(l)m==null&&(m={}),m=Object.assign({},E,m);else{var N=null;for(var W in E){var $=E[W];$!==void 0&&(d.includes(W)||($!=null&&(m==null&&(m={}),N==null&&(N={}),N[W]=$),d.push(W),y=null))}N!=null&&(m=Object.assign(N,m))}}}var F=[h,m,b];return F}}var r=Uu.styleq=n();return r.factory=n,Uu}var Yj=Kj();function zt(...e){const[t,n,r]=Yj.styleq(e),s={};return t!=null&&t!==""&&(s.className=t),n!=null&&Object.keys(n).length>0&&(s.style=n),r!=null&&r!==""&&(s["data-style-src"]=r),s}function e_(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=e_(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Xj(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=e_(e))&&(r&&(r+=" "),r+=t);return r}function sn(...e){return Xj(e)}function Yt({rootClass:e,stylexStyles:t,className:n,style:r}){const s=zt(t);return{className:sn(e,s.className,n),style:{...s.style,...r}}}const Zj={"--cursor-easing-out-quint":"var(--cursor-easing-out-quint)"},Ti={base:{k1xSpc:"ui-3nfvp2",kGNEyG:"ui-6s0dn4",kOIVth:"ui-11twubx",khDVqt:"ui-uxw1ft",kMv6JI:"ui-1acoasx",krdFHd:"ui-1bi1pm6",kfmiAY:"ui-4ao1vk",kT0f0o:"ui-cwn6ta",kVL7Gh:"ui-42qtjs",kGuDYH:"ui-1wm8ruf",kLWn49:"ui-spwq11",khiITx:"ui-vmahel",kTUp5R:"ui-lh3980",$$css:!0},sizeSm:{kLKAdn:"ui-exx8yu",kwRFfy:"ui-1hcev8z",kGO01o:"ui-18d9i69",kZCmMZ:"ui-149t747",$$css:!0},sizeMd:{kLKAdn:"ui-493x5y",kwRFfy:"ui-1tlft3r",kGO01o:"ui-b6dno7",kZCmMZ:"ui-tw3t59",$$css:!0},pill:{krdFHd:"ui-inloh",kfmiAY:"ui-zbf5sq",kT0f0o:"ui-jpqjuy",kVL7Gh:"ui-mzb00y",$$css:!0},pillSizeSm:{kLKAdn:"ui-493x5y",kwRFfy:"ui-196pc8s",kGO01o:"ui-b6dno7",kZCmMZ:"ui-22095l",$$css:!0},pillSizeMd:{kLKAdn:"ui-5pb957",kwRFfy:"ui-19bzwdx",kGO01o:"ui-1mmyrcj",kZCmMZ:"ui-v853mj",$$css:!0},variantAccent:{kMwMTN:"ui-kbann2",kWkggS:"ui-gsjhps",$$css:!0},variantNeutral:{kMwMTN:"ui-19aaqeu",kWkggS:"ui-i07v4r",$$css:!0},variantSuccess:{kMwMTN:"ui-1w5rjie",kWkggS:"ui-18wk26n",$$css:!0},variantWarn:{kMwMTN:"ui-1izesbo",kWkggS:"ui-t9f1jb",$$css:!0},variantDanger:{kMwMTN:"ui-1jh5svw",kWkggS:"ui-qhj6il",$$css:!0}};function Qj({pill:e,size:t,variant:n}){return[Ti.base,t==="sm"?Ti.sizeSm:Ti.sizeMd,e?[Ti.pill,t==="sm"?Ti.pillSizeSm:Ti.pillSizeMd]:null,Jj(n)]}function Jj(e){switch(e){case"accent":return Ti.variantAccent;case"neutral":return Ti.variantNeutral;case"success":return Ti.variantSuccess;case"warn":return Ti.variantWarn;case"danger":return Ti.variantDanger}}function vo({children:e,variant:t="neutral",size:n="md",pill:r=!1,as:s="span",className:a,style:l,...c}){const f=Yt({rootClass:"ui-status-badge",stylexStyles:Qj({pill:r,size:n,variant:t}),className:a,style:l});return g.jsx(s,{className:f.className,style:f.style,"data-variant":t,"data-size":n,"data-pill":r||void 0,...c,children:e})}function ez(e,t){return function(r,...s){const a=new URL(e);return a.searchParams.set("code",r.toString()),s.forEach(l=>a.searchParams.append("args[]",l)),`${t} error #${r}; visit ${a} for the full message.`}}const In=ez("https://base-ui.com/production-error","Base UI"),Rw={};function zr(e,t){const n=v.useRef(Rw);return n.current===Rw&&(n.current=e(t)),n}function xo(e,t,n,r){const s=zr(t_).current;return nz(s,e,t,n,r)&&n_(s,[e,t,n,r]),s.callback}function tz(e){const t=zr(t_).current;return rz(t,e)&&n_(t,e),t.callback}function t_(){return{callback:null,cleanup:null,refs:[]}}function nz(e,t,n,r,s){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==s}function rz(e,t){return e.refs.length!==t.length||e.refs.some((n,r)=>n!==t[r])}function n_(e,t){if(e.refs=t,t.every(n=>n==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),n!=null){const r=Array(t.length).fill(null);for(let s=0;s<t.length;s+=1){const a=t[s];if(a!=null)switch(typeof a){case"function":{const l=a(n);typeof l=="function"&&(r[s]=l);break}case"object":{a.current=n;break}}}e.cleanup=()=>{for(let s=0;s<t.length;s+=1){const a=t[s];if(a!=null)switch(typeof a){case"function":{const l=r[s];typeof l=="function"?l():a(null);break}case"object":{a.current=null;break}}}}}}}const iz=parseInt(v.version,10);function $v(e){return iz>=e}function Cw(e){if(!v.isValidElement(e))return null;const t=e,n=t.props;return($v(19)?n?.ref:t.ref)??null}function My(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function Zn(){}const ko=Object.freeze([]),Bn=Object.freeze({});function sz(e,t){const n={};for(const r in e){const s=e[r];if(t?.hasOwnProperty(r)){const a=t[r](s);a!=null&&Object.assign(n,a);continue}s===!0?n[`data-${r.toLowerCase()}`]="":s&&(n[`data-${r.toLowerCase()}`]=s.toString())}return n}function oz(e,t){return typeof e=="function"?e(t):e}function r_(e,t){return typeof e=="function"?e(t):e}const Bv={};function Gi(e,t,n,r,s){if(!n&&!r&&!s&&!e)return Tp(t);let a=Tp(e);return t&&(a=oc(a,t)),n&&(a=oc(a,n)),r&&(a=oc(a,r)),s&&(a=oc(a,s)),a}function az(e){if(e.length===0)return Bv;if(e.length===1)return Tp(e[0]);let t=Tp(e[0]);for(let n=1;n<e.length;n+=1)t=oc(t,e[n]);return t}function Tp(e){return Fv(e)?{...s_(e,Bv)}:lz(e)}function oc(e,t){return Fv(t)?s_(t,e):uz(e,t)}function lz(e){const t={...e};for(const n in t){const r=t[n];i_(n,r)&&(t[n]=o_(r))}return t}function uz(e,t){if(!t)return e;for(const n in t){const r=t[n];switch(n){case"style":{e[n]=My(e.style,r);break}case"className":{e[n]=a_(e.className,r);break}default:i_(n,r)?e[n]=cz(e[n],r):e[n]=r}}return e}function i_(e,t){const n=e.charCodeAt(0),r=e.charCodeAt(1),s=e.charCodeAt(2);return n===111&&r===110&&s>=65&&s<=90&&(typeof t=="function"||typeof t>"u")}function Fv(e){return typeof e=="function"}function s_(e,t){return Fv(e)?e(t):e??Bv}function cz(e,t){return t?e?(...n)=>{const r=n[0];if(l_(r)){const a=r;Rp(a);const l=t(...n);return a.baseUIHandlerPrevented||e?.(...n),l}const s=t(...n);return e?.(...n),s}:o_(t):e}function o_(e){return e&&((...t)=>{const n=t[0];return l_(n)&&Rp(n),e(...t)})}function Rp(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function a_(e,t){return t?e?t+" "+e:t:e}function l_(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}function bn(e,t,n={}){const r=t.render,s=fz(t,n);if(n.enabled===!1)return null;const a=n.state??Bn;return hz(e,r,s,a)}function fz(e,t={}){const{className:n,style:r,render:s}=e,{state:a=Bn,ref:l,props:c,stateAttributesMapping:f,enabled:d=!0}=t,h=d?oz(n,a):void 0,m=d?r_(r,a):void 0,b=d?sz(a,f):Bn,y=d&&c?dz(c):void 0,k=d?My(b,y)??{}:Bn;return typeof document<"u"&&(d?Array.isArray(l)?k.ref=tz([k.ref,Cw(s),...l]):k.ref=xo(k.ref,Cw(s),l):xo(null,null)),d?(h!==void 0&&(k.className=a_(k.className,h)),m!==void 0&&(k.style=My(k.style,m)),k):Bn}function dz(e){return Array.isArray(e)?az(e):Gi(void 0,e)}const pz=Symbol.for("react.lazy");function hz(e,t,n,r){if(t){if(typeof t=="function")return t(n,r);const s=Gi(n,t.props);s.ref=n.ref;let a=t;return a?.$$typeof===pz&&(a=v.Children.toArray(t)[0]),v.cloneElement(a,s)}if(e&&typeof e=="string")return mz(e,n);throw new Error(In(8))}function mz(e,t){return e==="button"?v.createElement("button",{type:"button",...t,key:t.key}):e==="img"?v.createElement("img",{alt:"",...t,key:t.key}):v.createElement(e,t)}let sa=(function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e})({});const gz={[sa.startingStyle]:""},bz={[sa.endingStyle]:""},To={transitionStatus(e){return e==="starting"?gz:e==="ending"?bz:null}};let Uv=(function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=sa.startingStyle]="startingStyle",e[e.endingStyle=sa.endingStyle]="endingStyle",e.anchorHidden="data-anchor-hidden",e.side="data-side",e.align="data-align",e})({}),Cp=(function(e){return e.popupOpen="data-popup-open",e.pressed="data-pressed",e})({});const yz={[Cp.popupOpen]:""},vz={[Cp.popupOpen]:"",[Cp.pressed]:""},xz={[Uv.open]:""},kz={[Uv.closed]:""},Sz={[Uv.anchorHidden]:""},u_={open(e){return e?yz:null}},wz={open(e){return e?vz:null}},Wc={open(e){return e?xz:kz},anchorHidden(e){return e?Sz:null}};function hh(){return typeof window<"u"}function Qn(e){return mh(e)?(e.nodeName||"").toLowerCase():"#document"}function xn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Os(e){var t;return(t=(mh(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function mh(e){return hh()?e instanceof Node||e instanceof xn(e).Node:!1}function gt(e){return hh()?e instanceof Element||e instanceof xn(e).Element:!1}function Ft(e){return hh()?e instanceof HTMLElement||e instanceof xn(e).HTMLElement:!1}function So(e){return!hh()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof xn(e).ShadowRoot}function ga(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=Tr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&s!=="inline"&&s!=="contents"}function Ez(e){return/^(table|td|th)$/.test(Qn(e))}function gh(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Tz=/transform|translate|scale|rotate|perspective|filter/,Rz=/paint|layout|strict|content/,Xo=e=>!!e&&e!=="none";let gb;function qv(e){const t=gt(e)?Tr(e):e;return Xo(t.transform)||Xo(t.translate)||Xo(t.scale)||Xo(t.rotate)||Xo(t.perspective)||!bh()&&(Xo(t.backdropFilter)||Xo(t.filter))||Tz.test(t.willChange||"")||Rz.test(t.contain||"")}function Cz(e){let t=_s(e);for(;Ft(t)&&!_i(t);){if(qv(t))return t;if(gh(t))return null;t=_s(t)}return null}function bh(){return gb==null&&(gb=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),gb}function _i(e){return/^(html|body|#document)$/.test(Qn(e))}function Tr(e){return xn(e).getComputedStyle(e)}function yh(e){return gt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function _s(e){if(Qn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||So(e)&&e.host||Os(e);return So(t)?t.host:t}function c_(e){const t=_s(e);return _i(t)?(e.ownerDocument||e).body:Ft(t)&&ga(t)?t:c_(t)}function bo(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=c_(e),a=s===((r=e.ownerDocument)==null?void 0:r.body),l=xn(s);if(a){const c=Dy(l);return t.concat(l,l.visualViewport||[],ga(s)?s:[],c&&n?bo(c):[])}else return t.concat(s,bo(s,[],n))}function Dy(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const Hv={...Pv},bb=Hv.useInsertionEffect,_z=bb&&bb!==Hv.useLayoutEffect?bb:e=>e();function Ke(e){const t=zr(Az).current;return t.next=e,_z(t.effect),t.trampoline}function Az(){const e={next:void 0,callback:Nz,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function Nz(){}const Oz=()=>{},Ve=typeof document<"u"?v.useLayoutEffect:Oz,f_=v.createContext(void 0);function d_(e=!1){const t=v.useContext(f_);if(t===void 0&&!e)throw new Error(In(16));return t}function Iz(e){const{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:s=0,isNativeButton:a}=e,l=r&&t!==!1,c=r&&t===!1;return{props:v.useMemo(()=>{const d={onKeyDown(h){n&&t&&h.key!=="Tab"&&h.preventDefault()}};return r||(d.tabIndex=s,!a&&n&&(d.tabIndex=t?s:-1)),(a&&(t||l)||!a&&n)&&(d["aria-disabled"]=n),a&&(!t||c)&&(d.disabled=n),d},[r,n,t,l,c,a,s])}}function $l(e={}){const{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:s=!0,composite:a}=e,l=v.useRef(null),c=d_(!0),f=a??c!==void 0,{props:d}=Iz({focusableWhenDisabled:n,disabled:t,composite:f,tabIndex:r,isNativeButton:s}),h=v.useCallback(()=>{const y=l.current;yb(y)&&f&&t&&d.disabled===void 0&&y.disabled&&(y.disabled=!1)},[t,d.disabled,f]);Ve(h,[h]);const m=v.useCallback((y={})=>{const{onClick:k,onMouseDown:S,onKeyUp:R,onKeyDown:T,onPointerDown:E,...C}=y;return Gi({onClick(_){if(t){_.preventDefault();return}k?.(_)},onMouseDown(_){t||S?.(_)},onKeyDown(_){if(t||(Rp(_),T?.(_),_.baseUIHandlerPrevented))return;const D=_.target===_.currentTarget,A=_.currentTarget,M=yb(A),B=!s&&Mz(A),P=D&&(s?M:!B),N=_.key==="Enter",W=_.key===" ",$=A.getAttribute("role"),F=$?.startsWith("menuitem")||$==="option"||$==="gridcell";if(D&&f&&W){if(_.defaultPrevented&&F)return;_.preventDefault(),B||s&&M?(A.click(),_.preventBaseUIHandler()):P&&(k?.(_),_.preventBaseUIHandler());return}P&&(!s&&(W||N)&&_.preventDefault(),!s&&N&&k?.(_))},onKeyUp(_){if(!t){if(Rp(_),R?.(_),_.target===_.currentTarget&&s&&f&&yb(_.currentTarget)&&_.key===" "){_.preventDefault();return}_.baseUIHandlerPrevented||_.target===_.currentTarget&&!s&&!f&&_.key===" "&&k?.(_)}},onPointerDown(_){if(t){_.preventDefault();return}E?.(_)}},s?{type:"button"}:{role:"button"},d,C)},[t,d,f,s]),b=Ke(y=>{l.current=y,h()});return{getButtonProps:m,buttonRef:b}}function yb(e){return Ft(e)&&e.tagName==="BUTTON"}function Mz(e){return!!(e?.tagName==="A"&&e?.href)}const Ni="none",Bl="trigger-press",Sr="trigger-hover",gp="trigger-focus",Vv="outside-press",vb="item-press",vh="focus-out",Gv="escape-key",_w="list-navigation",Dz="cancel-open",p_="disabled",Aw="missing",Nw="initial",_p="imperative-action",Lz="window-resize";function Rt(e,t,n,r){let s=!1,a=!1;const l=r??Bn;return{reason:e,event:t??new Event("base-ui"),cancel(){s=!0},allowPropagation(){a=!0},get isCanceled(){return s},get isPropagationAllowed(){return a},trigger:n,...l}}let Ow=0;function jz(e,t="mui"){const[n,r]=v.useState(e),s=e||n;return v.useEffect(()=>{n==null&&(Ow+=1,r(`${t}-${Ow}`))},[n,t]),s}const Iw=Hv.useId;function Kc(e,t){if(Iw!==void 0){const n=Iw();return e??(t?`${t}-${n}`:n)}return jz(e,t)}function Fl(e){return Kc(e,"base-ui")}const zz=[];function Wv(e){v.useEffect(e,zz)}const qu=0;class Oi{static create(){return new Oi}currentId=qu;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=qu,n()},t)}isStarted(){return this.currentId!==qu}clear=()=>{this.currentId!==qu&&(clearTimeout(this.currentId),this.currentId=qu)};disposeEffect=()=>this.clear}function bi(){const e=zr(Oi.create).current;return Wv(e.disposeEffect),e}function Pz(){return typeof navigator>"u"?{userAgent:"",platform:"",maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??0}}const{userAgent:$z,platform:Bz,maxTouchPoints:Fz}=Pz(),xh=$z.toLowerCase(),Ec=Bz.toLowerCase(),kh=/^i(os$|p)/.test(Ec)||Ec==="macintel"&&Fz>1,Mw="android",Ly=Ec===Mw||xh.includes(Mw),h_=!kh&&Ec.startsWith("mac");Ec.startsWith("win");const Uz=h_||kh,Ro=typeof CSS<"u"&&!!CSS.supports?.("-webkit-backdrop-filter:none");!Ro&&xh.includes("firefox");!Ro&&xh.includes("chrom");const qz=Uz,Kv=/jsdom|happydom/.test(xh);function Ui(e){e.preventDefault(),e.stopPropagation()}function Hz(e){return"nativeEvent"in e}function Yv(e){return e.pointerType===""&&e.isTrusted?!0:Ly&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function m_(e){return Kv?!1:!Ly&&e.width===0&&e.height===0||Ly&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function oa(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function Vz(e){const t=e.type;return t==="click"||t==="mousedown"||t==="keydown"||t==="keyup"}const jy="data-base-ui-focusable",g_="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",Sh="ArrowLeft",wh="ArrowRight",b_="ArrowUp",Xv="ArrowDown";function pr(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function ht(e,t){if(!e||!t)return!1;const n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&So(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function gr(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Ap(e,t){if(!gt(e))return!1;const n=e;if(t.hasElement(n))return!n.hasAttribute("data-trigger-disabled");for(const[,r]of t.entries())if(ht(r,n))return!r.hasAttribute("data-trigger-disabled");return!1}function xb(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function Gz(e){return e.matches("html,body")}function Eh(e){return Ft(e)&&e.matches(g_)}function Wz(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${g_}`)!=null}function zy(e){return e?e.getAttribute("role")==="combobox"&&Eh(e):!1}function Kz(e){if(!e||Kv)return!0;try{return e.matches(":focus-visible")}catch{return!0}}function Np(e){return e?e.hasAttribute(jy)?e:e.querySelector(`[${jy}]`)||e:null}function Yz(e,t){return t!=null&&!oa(t)?0:typeof e=="function"?e():e}function Op(e,t,n){const r=Yz(e,n);return typeof r=="number"?r:r?.[t]}function Dw(e){return typeof e=="function"?e():e}function y_(e,t){return t||e==="click"||e==="mousedown"}function Xz(e){return e?.includes("mouse")&&e!=="mousedown"}const Zz=v.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new Oi,currentIdRef:{current:null},currentContextRef:{current:null}});function Qz(e,t){e.current=t.current}function Jz(e,t={open:!1}){const{open:n}=t,r="rootStore"in e?e.rootStore:e,s=r.useState("floatingId"),a=v.useContext(Zz),{currentIdRef:l,delayRef:c,timeoutMs:f,initialDelayRef:d,currentContextRef:h,hasProvider:m,timeout:b}=a,[y,k]=v.useState(!1),S=v.useRef(n),R=v.useRef(!1);return Ve(()=>{S.current=n},[n]),Ve(()=>()=>{R.current=!0},[]),Ve(()=>{function T(){R.current||k(!1),h.current?.setIsInstantPhase(!1),l.current=null,h.current=null,c.current=d.current,b.clear()}if(l.current&&!n&&l.current===s){if(k(!1),f){const E=s;return b.start(f,()=>{r.select("open")||l.current&&l.current!==E||T()}),()=>{(S.current||l.current!==E)&&b.clear()}}T()}},[n,s,l,c,f,d,h,b,r]),Ve(()=>{if(!n)return;const T=h.current,E=l.current;b.clear(),h.current={onOpenChange:r.setOpen,setIsInstantPhase:k},l.current=s,c.current={open:0,close:Op(d.current,"close")},E!==null&&E!==s?(k(!0),T?.setIsInstantPhase(!0),T?.onOpenChange(!1,Rt(Ni))):(k(!1),T?.setIsInstantPhase(!1))},[n,s,r,l,c,d,h,b]),Ve(()=>()=>{if(l.current===s){if(h.current=null,!S.current)return;l.current=null,Qz(c,d),b.clear()}},[h,l,c,s,d,b]),v.useMemo(()=>({hasProvider:m,delayRef:c,isInstantPhase:y}),[m,c,y])}function Dt(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Wi(...e){return()=>{for(let t=0;t<e.length;t+=1){const n=e[t];n&&n()}}}function On(e){const t=zr(eP,e).current;return t.next=e,Ve(t.effect),t}function eP(e){const t={current:e,next:e,effect:()=>{t.current=t.next}};return t}const Ad=null;class tP{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=t=>{this.isScheduled=!1;const n=this.callbacks,r=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,r>0)for(let s=0;s<n.length;s+=1)n[s]?.(t)};request(t){const n=this.nextId;return this.nextId+=1,this.callbacks.push(t),this.callbacksCount+=1,!this.isScheduled&&(requestAnimationFrame(this.tick),this.isScheduled=!0),n}cancel(t){const n=t-this.startId;n<0||n>=this.callbacks.length||(this.callbacks[n]=null,this.callbacksCount-=1)}}const Nd=new tP;class Lr{static create(){return new Lr}static request(t){return Nd.request(t)}static cancel(t){return Nd.cancel(t)}currentId=Ad;request(t){this.cancel(),this.currentId=Nd.request(()=>{this.currentId=Ad,t()})}cancel=()=>{this.currentId!==Ad&&(Nd.cancel(this.currentId),this.currentId=Ad)};disposeEffect=()=>this.cancel}function Rl(){const e=zr(Lr.create).current;return Wv(e.disposeEffect),e}function Wt(e){return e?.ownerDocument||document}const v_={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},x_={...v_,position:"fixed",top:0,left:0},nP={...v_,position:"absolute"},Ip=v.forwardRef(function(t,n){const[r,s]=v.useState();Ve(()=>{qz&&Ro&&s("button")},[]);const a={tabIndex:0,role:r};return g.jsx("span",{...t,ref:n,style:x_,"aria-hidden":r?void 0:!0,...a,"data-base-ui-focus-guard":""})}),rP=["top","right","bottom","left"],Cl=Math.min,Ts=Math.max,_l=Math.round,gl=Math.floor,Rs=e=>({x:e,y:e}),iP={left:"right",right:"left",bottom:"top",top:"bottom"};function k_(e,t,n){return Ts(e,Cl(t,n))}function As(e,t){return typeof e=="function"?e(t):e}function ti(e){return e.split("-")[0]}function Co(e){return e.split("-")[1]}function Zv(e){return e==="x"?"y":"x"}function Qv(e){return e==="y"?"height":"width"}function mi(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Jv(e){return Zv(mi(e))}function sP(e,t,n){n===void 0&&(n=!1);const r=Co(e),s=Jv(e),a=Qv(s);let l=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(l=Mp(l)),[l,Mp(l)]}function oP(e){const t=Mp(e);return[Py(e),t,Py(t)]}function Py(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Lw=["left","right"],jw=["right","left"],aP=["top","bottom"],lP=["bottom","top"];function uP(e,t,n){switch(e){case"top":case"bottom":return n?t?jw:Lw:t?Lw:jw;case"left":case"right":return t?aP:lP;default:return[]}}function cP(e,t,n,r){const s=Co(e);let a=uP(ti(e),n==="start",r);return s&&(a=a.map(l=>l+"-"+s),t&&(a=a.concat(a.map(Py)))),a}function Mp(e){const t=ti(e);return iP[t]+e.slice(t.length)}function fP(e){var t,n,r,s;return{top:(t=e.top)!=null?t:0,right:(n=e.right)!=null?n:0,bottom:(r=e.bottom)!=null?r:0,left:(s=e.left)!=null?s:0}}function S_(e){return typeof e!="number"?fP(e):{top:e,right:e,bottom:e,left:e}}function Tc(e){const{x:t,y:n,width:r,height:s}=e;return{width:r,height:s,top:n,left:t,right:t+r,bottom:n+s,x:t,y:n}}function cc(e,t){return t<0||t>=e.length}function bp(e,t){return Ss(e.current,{disabledIndices:t})}function $y(e,t){return Ss(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function Ss(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:s=1}={}){let a=t;do a+=n?-s:s;while(a>=0&&a<=e.length-1&&Dp(e,a,r));return a}function Dp(e,t,n){if(typeof n=="function"?n(t):n?.includes(t)??!1)return!0;const s=e[t];return s?Th(s)?!n&&(s.hasAttribute("disabled")||s.getAttribute("aria-disabled")==="true"):!0:!1}function dP(e){return e.visibility==="hidden"||e.visibility==="collapse"}function Th(e,t=e?Tr(e):null){return!e||!e.isConnected||!t||dP(t)?!1:typeof e.checkVisibility=="function"?e.checkVisibility():t.display!=="none"&&t.display!=="contents"}const pP='a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]';function hP(e){const t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;const n=e.getRootNode();return So(n)?n.host:null}function By(e){for(const t of Array.from(e.children))if(Qn(t)==="summary")return t;return null}function mP(e,t){const n=By(t);return!!n&&(e===n||ht(n,e))}function w_(e){const t=e?Qn(e):"";return e!=null&&e.matches(pP)&&(t!=="summary"||e.parentElement!=null&&Qn(e.parentElement)==="details"&&By(e.parentElement)===e)&&(t!=="details"||By(e)==null)&&(t!=="input"||e.type!=="hidden")}function E_(e){if(!w_(e)||!e.isConnected||e.matches(":disabled"))return!1;for(let t=e;t;t=hP(t)){const n=t!==e,r=Qn(t)==="slot";if(t.hasAttribute("inert")||n&&Qn(t)==="details"&&!t.open&&!mP(e,t)||t.hasAttribute("hidden")||!r&&!gP(t,n))return!1}return!0}function gP(e,t){const n=Tr(e);return t?n.display!=="none":Th(e,n)}function T_(e){const t=e.tabIndex;if(t<0){const n=Qn(e);if(n==="details"||n==="audio"||n==="video"||Ft(e)&&e.isContentEditable)return 0}return t}function kb(e){if(Qn(e)!=="input")return null;const t=e;return t.type==="radio"&&t.name!==""?t:null}function bP(e,t){const n=kb(e);if(!n)return!0;const r=t.find(s=>{const a=kb(s);return a?.name===n.name&&a.form===n.form&&a.checked});return r?r===n:t.find(s=>{const a=kb(s);return a?.name===n.name&&a.form===n.form})===n}function R_(e){if(Ft(e)&&Qn(e)==="slot"){const t=e.assignedElements({flatten:!0});if(t.length>0)return t}return Ft(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function C_(e,t){R_(e).forEach(n=>{w_(n)&&t.push(n),C_(n,t)})}function __(e,t,n){R_(e).forEach(r=>{Ft(r)&&r.matches(t)&&n.push(r),__(r,t,n)})}function ex(e){return E_(e)&&T_(e)>=0}function A_(e){const t=[];return C_(e,t),t.filter(E_)}function Rh(e){const t=A_(e);return t.filter(n=>T_(n)>=0&&bP(n,t))}function N_(e,t){const n=Rh(e),r=n.length;if(r===0)return;const s=pr(Wt(e)),a=n.indexOf(s),l=a===-1?t===1?0:r-1:a+t;return n[l]}function O_(e){return N_(Wt(e).body,1)||e}function I_(e){return N_(Wt(e).body,-1)||e}function fc(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!ht(n,r)}function yP(e){Rh(e).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function zw(e){const t=[];__(e,"[data-tabindex]",t),t.forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}function wo(e,t,n=!0){return e.filter(s=>s.parentId===t).flatMap(s=>[...!n||s.context?.open?[s]:[],...wo(e,s.id,n)])}function Pw(e,t){let n=[],r=e.find(s=>s.id===t)?.parentId;for(;r;){const s=e.find(a=>a.id===r);r=s?.parentId,s&&(n=n.concat(s))}return n}function Rc(e){return`data-base-ui-${e}`}let Od=0;function yp(e,t={}){const{preventScroll:n=!1,sync:r=!1,shouldFocus:s}=t;cancelAnimationFrame(Od);function a(){s&&!s()||e?.focus({preventScroll:n})}if(r)return a(),Zn;const l=requestAnimationFrame(a);return Od=l,()=>{Od===l&&(cancelAnimationFrame(l),Od=0)}}const Sb={inert:new WeakMap,"aria-hidden":new WeakMap},$w="data-base-ui-inert",Fy={inert:new WeakSet,"aria-hidden":new WeakSet};let Hu=new WeakMap,wb=0;function vP(e){return Fy[e]}function M_(e){return e?So(e)?e.host:M_(e.parentNode):null}const Bw=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=M_(n);return e.contains(r)?r:null}).filter(n=>n!=null),Fw=e=>{const t=new Set;return e.forEach(n=>{let r=n;for(;r&&!t.has(r);)t.add(r),r=r.parentNode}),t},Uw=(e,t,n)=>{const r=[],s=a=>{!a||n.has(a)||Array.from(a.children).forEach(l=>{Qn(l)!=="script"&&(t.has(l)?s(l):r.push(l))})};return s(e),r};function xP(e,t,n,r,{mark:s=!0}){let a=null;r?a="inert":n&&(a="aria-hidden");let l=null,c=null;const f=Bw(t,e),d=s?Uw(t,Fw(f),new Set(f)):[],h=[],m=[];if(a){const b=Sb[a],y=vP(a);c=y,l=b;const k=Bw(t,Array.from(t.querySelectorAll("[aria-live]"))),S=f.concat(k);Uw(t,Fw(S),new Set(S)).forEach(T=>{const E=T.getAttribute(a),C=E!==null&&E!=="false",_=(b.get(T)||0)+1;b.set(T,_),h.push(T),_===1&&C&&y.add(T),C||T.setAttribute(a,a==="inert"?"":"true")})}return s&&d.forEach(b=>{const y=(Hu.get(b)||0)+1;Hu.set(b,y),m.push(b),y===1&&b.setAttribute($w,"")}),wb+=1,()=>{l&&h.forEach(b=>{const k=(l.get(b)||0)-1;l.set(b,k),k||(!c?.has(b)&&a&&b.removeAttribute(a),c?.delete(b))}),s&&m.forEach(b=>{const y=(Hu.get(b)||0)-1;Hu.set(b,y),y||b.removeAttribute($w)}),wb-=1,wb||(Sb.inert=new WeakMap,Sb["aria-hidden"]=new WeakMap,Fy.inert=new WeakSet,Fy["aria-hidden"]=new WeakSet,Hu=new WeakMap)}}function qw(e,t={}){const{ariaHidden:n=!1,inert:r=!1,mark:s=!0}=t,a=Wt(e[0]).body;return xP(e,a,n,r,{mark:s})}var Mi=JC();const kP={style:{transition:"none"}},SP="data-base-ui-click-trigger",wP={fallbackAxisSide:"none"},D_={fallbackAxisSide:"end"},EP={clipPath:"inset(50%)",position:"fixed",top:0,left:0},L_=v.createContext(null),j_=()=>v.useContext(L_),TP=Rc("portal");function z_(e={}){const{ref:t,container:n,componentProps:r=Bn,elementProps:s}=e,a=Kc(),c=j_()?.portalNode,[f,d]=v.useState(null),[h,m]=v.useState(null),b=Ke(R=>{R!==null&&m(R)}),y=v.useRef(null);Ve(()=>{if(n===null){y.current&&(y.current=null,m(null),d(null));return}if(a==null)return;const R=(n&&(mh(n)?n:n.current))??c??document.body;if(R==null){y.current&&(y.current=null,m(null),d(null));return}y.current!==R&&(y.current=R,m(null),d(R))},[n,c,a]);const k=bn("div",r,{ref:[t,b],props:[{id:a,[TP]:""},s]});return{portalNode:h,portalSubtree:f&&k?Mi.createPortal(k,f):null}}const RP=v.forwardRef(function(t,n){const{render:r,className:s,style:a,children:l,container:c,renderGuards:f,...d}=t,{portalNode:h,portalSubtree:m}=z_({container:c,ref:n,componentProps:t,elementProps:d}),b=v.useRef(null),y=v.useRef(null),k=v.useRef(null),S=v.useRef(null),[R,T]=v.useState(null),E=v.useRef(!1),C=R?.modal,_=R?.open,D=typeof f=="boolean"?f:!!R&&!R.modal&&R.open&&!!h;v.useEffect(()=>{if(!h||C)return;function M(B){h&&B.relatedTarget&&fc(B)&&(B.type==="focusin"?E.current&&(zw(h),E.current=!1):(yP(h),E.current=!0))}return Wi(Dt(h,"focusin",M,!0),Dt(h,"focusout",M,!0))},[h,C]),Ve(()=>{!h||_!==!0||!E.current||(zw(h),E.current=!1)},[_,h]);const A=v.useMemo(()=>({beforeOutsideRef:b,afterOutsideRef:y,beforeInsideRef:k,afterInsideRef:S,portalNode:h,setFocusManagerState:T}),[h]);return g.jsxs(v.Fragment,{children:[m,g.jsxs(L_.Provider,{value:A,children:[D&&h&&g.jsx(Ip,{"data-type":"outside",ref:b,onFocus:M=>{if(fc(M,h))k.current?.focus();else{const B=R?R.domReference:null;I_(B)?.focus()}}}),D&&h&&g.jsx("span",{"aria-owns":h.id,style:EP}),h&&Mi.createPortal(l,h),D&&h&&g.jsx(Ip,{"data-type":"outside",ref:y,onFocus:M=>{if(fc(M,h))S.current?.focus();else{const B=R?R.domReference:null;O_(B)?.focus(),R?.closeOnFocusOut&&R?.onOpenChange(!1,Rt(vh,M.nativeEvent))}}})]})]})});function P_(){const e=new Map;return{emit(t,n){e.get(t)?.forEach(r=>r(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}class CP{nodesRef={current:[]};events=P_();addNode(t){this.nodesRef.current.push(t)}removeNode(t){const n=this.nodesRef.current.findIndex(r=>r===t);n!==-1&&this.nodesRef.current.splice(n,1)}}const $_=v.createContext(null),B_=v.createContext(null),Ul=()=>v.useContext($_)?.id||null,ba=e=>{const t=v.useContext(B_);return e??t};function _P(e){const t=Kc(),n=ba(e),r=Ul();return Ve(()=>{if(!t)return;const s={id:t,parentId:r};return n?.addNode(s),()=>{n?.removeNode(s)}},[n,t,r]),t}function AP(e){const{children:t,id:n}=e,r=Ul();return g.jsx($_.Provider,{value:v.useMemo(()=>({id:n,parentId:r}),[n,r]),children:t})}function NP(e){const{children:t,externalTree:n}=e,r=zr(()=>n??new CP).current;return g.jsx(B_.Provider,{value:r,children:t})}function ys(e){return e==null?e:"current"in e?e.current:e}function OP(e,t){const n=xn(gr(e));return e instanceof n.KeyboardEvent?"keyboard":e instanceof n.FocusEvent?t||"keyboard":"pointerType"in e?e.pointerType||"keyboard":"touches"in e?"touch":e instanceof n.MouseEvent?t||(e.detail===0?"keyboard":"mouse"):""}const Hw=20;let mo=[];function tx(){mo=mo.filter(e=>e.deref()?.isConnected)}function Vw(e){tx(),e&&Qn(e)!=="body"&&(mo.push(new WeakRef(e)),mo.length>Hw&&(mo=mo.slice(-Hw)))}function Gw(){return tx(),mo[mo.length-1]?.deref()}function IP(e){return e?ex(e)?e:Rh(e)[0]||e:null}function Ww(e){if(e.hasAttribute("tabindex")&&!e.hasAttribute("data-tabindex")||!e.getAttribute("role")?.includes("dialog"))return;const n=A_(e).filter(s=>{const a=s.getAttribute("data-tabindex")||"";return ex(s)||s.hasAttribute("data-tabindex")&&!a.startsWith("-")}),r=e.getAttribute("tabindex");n.length===0?r!=="0"&&(e.setAttribute("tabindex","0"),e.setAttribute("data-tabindex","0")):(r!=="-1"||e.hasAttribute("data-tabindex")&&e.getAttribute("data-tabindex")!=="-1")&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}function MP(e){const{context:t,children:n,disabled:r=!1,initialFocus:s=!0,returnFocus:a=!0,restoreFocus:l=!1,modal:c=!0,closeOnFocusOut:f=!0,openInteractionType:d="",nextFocusableElement:h,previousFocusableElement:m,beforeContentFocusGuardRef:b,externalTree:y,getInsideElements:k}=e,S="rootStore"in t?t.rootStore:t,R=S.useState("open"),T=S.useState("domReferenceElement"),E=S.useState("floatingElement"),{events:C,dataRef:_}=S.context,D=Ke(()=>_.current.floatingContext?.nodeId),A=s===!1,M=zy(T)&&A,B=On(s),P=On(a),N=On(d),W=On(R),$=ba(y),F=j_(),z=v.useRef(!1),U=v.useRef(!1),H=v.useRef(!1),K=v.useRef(null),q=v.useRef(""),Y=v.useRef(""),O=v.useRef(null),j=v.useRef(null),V=xo(O,b,F?.beforeInsideRef),L=xo(j,F?.afterInsideRef),X=bi(),se=bi(),ne=Rl(),oe=F!=null,le=Np(E),ce=Ke((ue=le)=>ue?Rh(ue):[]),Ee=Ke(()=>k?.().filter(ue=>ue!=null)??[]);v.useEffect(()=>{if(r||!c)return;function ue(Se){Se.key==="Tab"&&ht(le,pr(Wt(le)))&&ce().length===0&&!M&&Ui(Se)}const ge=Wt(le);return Dt(ge,"keydown",ue)},[r,le,c,M,ce]),v.useEffect(()=>{if(r||!R)return;const ue=Wt(le);function ge(){H.current=!1}function Se(ke){const xe=gr(ke),Re=Ee(),Me=ht(E,xe)||ht(T,xe)||ht(F?.portalNode,xe)||Re.some(ze=>ze===xe||ht(ze,xe));H.current=!Me,Y.current=ke.pointerType||"keyboard",xe?.closest(`[${SP}]`)&&(U.current=!0,se.start(0,()=>{U.current=!1}))}function Ae(){Y.current="keyboard"}return Wi(Dt(ue,"pointerdown",Se,!0),Dt(ue,"pointerup",ge,!0),Dt(ue,"pointercancel",ge,!0),Dt(ue,"keydown",Ae,!0),ge)},[r,E,T,le,R,F,se,Ee]),v.useEffect(()=>{if(r||!f)return;const ue=Wt(le);function ge(){U.current=!0,se.start(0,()=>{U.current=!1})}function Se(Re){const Me=gr(Re);ex(Me)&&(K.current=Me)}function Ae(Re){const Me=Re.relatedTarget,ze=Re.currentTarget,Fe=gr(Re);c&&Me==null&&Fe!=null&&ht(E,Fe)&&Vw(Fe),queueMicrotask(()=>{const ye=D(),_e=S.context.triggerElements,ee=Ee(),fe=Me?.hasAttribute(Rc("focus-guard"))&&[O.current,j.current,F?.beforeInsideRef.current,F?.afterInsideRef.current,F?.beforeOutsideRef.current,F?.afterOutsideRef.current,ys(m),ys(h)].includes(Me),Q=!(ht(T,Me)||ht(E,Me)||ht(Me,E)||ht(F?.portalNode,Me)||ee.some(re=>re===Me||ht(re,Me))||Me!=null&&_e.hasElement(Me)||_e.hasMatchingElement(re=>ht(re,Me))||fe||$&&(wo($.nodesRef.current,ye).find(re=>ht(re.context?.elements.floating,Me)||ht(re.context?.elements.domReference,Me))||Pw($.nodesRef.current,ye).find(re=>[re.context?.elements.floating,Np(re.context?.elements.floating)].includes(Me)||re.context?.elements.domReference===Me)));if(ze===T&&le&&Ww(le),l&&ze!==T&&!Th(Fe)&&pr(ue)===ue.body){if(Ft(le)&&(le.focus(),l==="popup")){ne.request(()=>{le.focus()});return}const re=ce(),we=K.current,Pe=(we&&re.includes(we)?we:null)||re[re.length-1]||le;Ft(Pe)&&Pe.focus()}if(_.current.insideReactTree){_.current.insideReactTree=!1;return}(M||!c)&&Me&&Q&&!U.current&&(M||Me!==Gw())&&(z.current=!0,S.setOpen(!1,Rt(vh,Re)))})}function ke(){H.current||(_.current.insideReactTree=!0,X.start(0,()=>{_.current.insideReactTree=!1}))}const xe=Ft(T)?T:null;if(!(!E&&!xe))return Wi(xe&&Dt(xe,"focusout",Ae),xe&&Dt(xe,"pointerdown",ge),E&&Dt(E,"focusin",Se),E&&Dt(E,"focusout",Ae),E&&F&&Dt(E,"focusout",ke,!0))},[r,T,E,le,c,$,F,S,f,l,ce,M,D,_,X,se,ne,h,m,Ee]),v.useEffect(()=>{if(r||!E||!R)return;const ue=Array.from(F?.portalNode?.querySelectorAll(`[${Rc("portal")}]`)||[]),Se=($?Pw($.nodesRef.current,D()):[]).find(ze=>zy(ze.context?.elements.domReference||null))?.context?.elements.domReference,ke=[...[E,...ue,O.current,j.current,F?.beforeOutsideRef.current,F?.afterOutsideRef.current,...Ee()],Se,ys(m),ys(h),M?T:null].filter(ze=>ze!=null),xe=qw(ke,{ariaHidden:c||M,mark:!1}),Re=[E,...ue].filter(ze=>ze!=null),Me=qw(Re);return()=>{Me(),xe()}},[R,r,T,E,c,F,M,$,D,h,m,Ee]),Ve(()=>{if(!R||r||!Ft(le))return;const ue=Wt(le),ge=pr(ue);queueMicrotask(()=>{const Se=B.current,Ae=typeof Se=="function"?Se(N.current||""):Se;if(Ae===void 0||Ae===!1||ht(le,ge))return;let xe=null;const Re=()=>(xe==null&&(xe=ce(le)),xe[0]||le);let Me;Ae===!0||Ae===null?Me=Re():Me=ys(Ae),Me=Me||Re();const ze=ht(le,pr(ue));yp(Me,{preventScroll:Me===le,shouldFocus(){if(!W.current)return!1;if(ze)return!0;const Fe=pr(ue);return!(Fe!==Me&&ht(le,Fe))}})})},[r,R,le,ce,B,N,W]),Ve(()=>{if(r||!le)return;const ue=Wt(le),ge=pr(ue),Se=N.current==null;Vw(ge);function Ae(xe){if(xe.open||(q.current=OP(xe.nativeEvent,Y.current)),xe.reason===Sr&&xe.nativeEvent.type==="mouseleave"&&(z.current=!0),xe.reason===Vv)if(xe.nested)z.current=!1;else if(Yv(xe.nativeEvent)||m_(xe.nativeEvent))z.current=!1;else{let Re=!1;Wt(le).createElement("div").focus({get preventScroll(){return Re=!0,!1}}),Re?z.current=!1:z.current=!0}}C.on("openchange",Ae);function ke(){const xe=P.current;let Re=typeof xe=="function"?xe(q.current):xe;if(Re===void 0||Re===!1)return null;Re===null&&(Re=!0);const Me=T?.isConnected?T:null,ze=ge?.isConnected&&Qn(ge)!=="body"?ge:null;let Fe=Se?ze||Me:Me||ze;return Fe||(Fe=Gw()||null),typeof Re=="boolean"?Fe:ys(Re)||Fe||null}return()=>{C.off("openchange",Ae);const xe=pr(ue),Re=Ee(),Me=ht(E,xe)||Re.some(ye=>ye===xe||ht(ye,xe))||$&&wo($.nodesRef.current,D(),!1).some(ye=>ht(ye.context?.elements.floating,xe)),ze=P.current,Fe=ke();queueMicrotask(()=>{const ye=IP(Fe),_e=typeof ze!="boolean";ze&&!z.current&&Ft(ye)&&(!(!_e&&ye!==xe&&xe!==ue.body)||Me)&&ye.focus({preventScroll:!0}),z.current=!1})}},[r,E,le,P,N,C,$,T,D,Ee]),Ve(()=>{if(!Ro||R||!E)return;const ue=pr(Wt(E));!Ft(ue)||!Eh(ue)||ht(E,ue)&&ue.blur()},[R,E]),Ve(()=>{if(!(r||!F))return F.setFocusManagerState({modal:c,closeOnFocusOut:f,open:R,onOpenChange:S.setOpen,domReference:T}),()=>{F.setFocusManagerState(null)}},[r,F,c,R,S,f,T]),Ve(()=>{if(!(r||!le))return Ww(le),()=>{queueMicrotask(tx)}},[r,le]);const be=!r&&(c?!M:!0)&&(oe||c);return g.jsxs(v.Fragment,{children:[be&&g.jsx(Ip,{"data-type":"inside",ref:V,onFocus:ue=>{if(c){const ge=ce();yp(ge[ge.length-1])}else F?.portalNode&&(z.current=!1,fc(ue,F.portalNode)?O_(T)?.focus():ys(m??F.beforeOutsideRef)?.focus())}}),n,be&&g.jsx(Ip,{"data-type":"inside",ref:L,onFocus:ue=>{c?yp(ce()[0]):F?.portalNode&&(f&&(z.current=!0),fc(ue,F.portalNode)?I_(T)?.focus():ys(h??F.afterOutsideRef)?.focus())}})]})}function DP(e,t={}){const{enabled:n=!0,event:r="click",toggle:s=!0,ignoreMouse:a=!1,stickIfOpen:l=!0,touchOpenDelay:c=0,reason:f=Bl}=t,d="rootStore"in e?e.rootStore:e,h=d.context.dataRef,m=v.useRef(void 0),b=Rl(),y=bi(),k=v.useMemo(()=>{function S(T,E,C,_){const D=Rt(f,E,C);T&&_==="touch"&&c>0?y.start(c,()=>{d.setOpen(!0,D)}):d.setOpen(T,D)}function R(T,E,C){const _=h.current.openEvent,D=d.select("domReferenceElement")!==E;return T&&D||!T||!s?!0:_&&l?!C(_.type):!1}return{onPointerDown(T){m.current=T.pointerType},onMouseDown(T){const E=m.current,C=T.nativeEvent,_=d.select("open");if(T.button!==0||r==="click"||oa(E,!0)&&a)return;const D=R(_,T.currentTarget,B=>B==="click"||B==="mousedown"),A=gr(C);if(Eh(A)){S(D,C,A,E);return}const M=T.currentTarget;b.request(()=>{S(D,C,M,E)})},onClick(T){if(r==="mousedown-only")return;const E=m.current;if(r==="mousedown"&&E){m.current=void 0;return}if(oa(E,!0)&&a)return;const C=d.select("open"),_=R(C,T.currentTarget,D=>D==="click"||D==="mousedown"||D==="keydown"||D==="keyup");S(_,T.nativeEvent,T.currentTarget,E)},onKeyDown(){m.current=void 0}}},[h,r,a,f,d,l,s,b,y,c]);return v.useMemo(()=>n?{reference:k}:Bn,[n,k])}function LP(e,t){let n=null,r=null,s=!1;return{contextElement:e||void 0,getBoundingClientRect(){const a=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},l=t.axis==="x"||t.axis==="both",c=t.axis==="y"||t.axis==="both",f=["mouseenter","mousemove"].includes(t.dataRef.current.openEvent?.type||"")&&t.pointerType!=="touch";let d=a.width,h=a.height,m=a.x,b=a.y;return n==null&&t.x&&l&&(n=a.x-t.x),r==null&&t.y&&c&&(r=a.y-t.y),m-=n||0,b-=r||0,d=0,h=0,!s||f?(d=t.axis==="y"?a.width:0,h=t.axis==="x"?a.height:0,m=l&&t.x!=null?t.x:m,b=c&&t.y!=null?t.y:b):s&&!f&&(h=t.axis==="x"?a.height:h,d=t.axis==="y"?a.width:d),s=!0,{width:d,height:h,x:m,y:b,top:b,right:m+d,bottom:b+h,left:m}}}}function Kw(e){return e!=null&&e.clientX!=null}function jP(e,t={}){const{enabled:n=!0,axis:r="both"}=t,s="rootStore"in e?e.rootStore:e,a=s.useState("open"),l=s.useState("floatingElement"),c=s.useState("domReferenceElement"),f=s.context.dataRef,d=v.useRef(!1),h=v.useRef(null),[m,b]=v.useState(),[y,k]=v.useState([]),S=Ke(_=>{s.set("positionReference",_)}),R=Ke((_,D,A)=>{d.current||f.current.openEvent&&!Kw(f.current.openEvent)||s.set("positionReference",LP(A??c,{x:_,y:D,axis:r,dataRef:f,pointerType:m}))}),T=Ke(_=>{a?h.current||(R(_.clientX,_.clientY,_.currentTarget),k([])):R(_.clientX,_.clientY,_.currentTarget)}),E=oa(m)?l:a;v.useEffect(()=>{if(!n){S(c);return}if(!E)return;function _(){h.current?.(),h.current=null}const D=xn(l);function A(M){const B=gr(M);ht(l,B)?_():R(M.clientX,M.clientY)}return!f.current.openEvent||Kw(f.current.openEvent)?h.current=Dt(D,"mousemove",A):S(c),_},[E,n,l,f,c,s,R,S,y]),v.useEffect(()=>()=>{s.set("positionReference",null)},[s]),v.useEffect(()=>{n&&!l&&(d.current=!1)},[n,l]),v.useEffect(()=>{!n&&a&&(d.current=!0)},[n,a]);const C=v.useMemo(()=>{function _(D){b(D.pointerType)}return{onPointerDown:_,onPointerEnter:_,onMouseMove:T,onMouseEnter:T}},[T]);return v.useMemo(()=>n?{reference:C,trigger:C}:{},[n,C])}function zP(){return!1}function PP(e){return{escapeKey:typeof e=="boolean"?e:e?.escapeKey??!1,outsidePress:typeof e=="boolean"?e:e?.outsidePress??!0}}function nx(e,t={}){const{enabled:n=!0,escapeKey:r=!0,outsidePress:s=!0,outsidePressEvent:a="sloppy",referencePress:l=zP,bubbles:c,externalTree:f}=t,d="rootStore"in e?e.rootStore:e,h=d.useState("open"),m=d.useState("floatingElement"),{dataRef:b}=d.context,y=ba(f),k=Ke(typeof s=="function"?s:()=>!1),S=typeof s=="function"?k:s,R=S!==!1,T=Ke(()=>a),{escapeKey:E,outsidePress:C}=PP(c),_=v.useRef(!1),D=v.useRef(!1),A=v.useRef(!1),M=v.useRef(!1),B=v.useRef(""),P=v.useRef(null),N=bi(),W=bi(),$=Ke(()=>{W.clear(),b.current.insideReactTree=!1}),F=Ke(V=>{const L=b.current.floatingContext?.nodeId;return(y?wo(y.nodesRef.current,L):[]).some(se=>se.context?.open&&!se.context.dataRef.current[V])}),z=Ke(V=>xb(V,d.select("floatingElement"))||xb(V,d.select("domReferenceElement"))),U=Ke(V=>{l()&&d.setOpen(!1,Rt(Bl,V.nativeEvent))}),H=Ke(V=>{if(!h||!n||!r||V.key!=="Escape"||M.current||!E&&F("__escapeKeyBubbles"))return;const L=Hz(V)?V.nativeEvent:V,X=Rt(Gv,L);d.setOpen(!1,X),X.isCanceled||V.preventDefault(),!E&&!X.isPropagationAllowed&&V.stopPropagation()}),K=Ke(()=>{b.current.insideReactTree=!0,W.start(0,$)}),q=Ke(V=>{if(!h||!n||V.button!==0)return;const L=gr(V.nativeEvent);ht(d.select("floatingElement"),L)&&(_.current||(_.current=!0,D.current=!1))}),Y=Ke(V=>{!h||!n||(V.defaultPrevented||V.nativeEvent.defaultPrevented)&&_.current&&(D.current=!0)});v.useEffect(()=>{if(!h||!n)return;b.current.__escapeKeyBubbles=E,b.current.__outsidePressBubbles=C;const V=new Oi,L=new Oi;function X(){V.clear(),M.current=!0}function se(){V.start(Ro?5:0,()=>{M.current=!1})}function ne(){A.current=!0,L.start(0,()=>{A.current=!1})}function oe(){_.current=!1,D.current=!1}function le(){const ee=B.current,fe=ee==="pen"||!ee?"mouse":ee,Q=T(),re=typeof Q=="function"?Q():Q;return typeof re=="string"?re:re[fe]}function ce(ee){const fe=le();return fe==="intentional"&&ee.type!=="click"||fe==="sloppy"&&ee.type==="click"}function Ee(ee){const fe=b.current.floatingContext?.nodeId,Q=y&&wo(y.nodesRef.current,fe).some(re=>xb(ee,re.context?.elements.floating));return z(ee)||Q}function be(ee){if(ce(ee)){ee.type!=="click"&&!z(ee)&&(L.clear(),A.current=!1),$();return}if(b.current.insideReactTree){$();return}const fe=gr(ee),Q=`[${Rc("inert")}]`,re=gt(fe)?fe.getRootNode():null,we=Array.from((So(re)?re:Wt(d.select("floatingElement"))).querySelectorAll(Q)),Pe=d.context.triggerElements;if(fe&&(Pe.hasElement(fe)||Pe.hasMatchingElement(Ze=>ht(Ze,fe))))return;let Ye=gt(fe)?fe:null;for(;Ye&&!_i(Ye);){const Ze=_s(Ye);if(_i(Ze)||!gt(Ze))break;Ye=Ze}if(!(we.length&&gt(fe)&&!Gz(fe)&&!ht(fe,d.select("floatingElement"))&&we.every(Ze=>!ht(Ye,Ze)))){if(Ft(fe)&&!("touches"in ee)){const Ze=_i(fe),bt=Tr(fe),Je=/auto|scroll/,xt=Ze||Je.test(bt.overflowX),St=Ze||Je.test(bt.overflowY),nt=xt&&fe.clientWidth>0&&fe.scrollWidth>fe.clientWidth,rt=St&&fe.clientHeight>0&&fe.scrollHeight>fe.clientHeight,ct=bt.direction==="rtl",it=rt&&(ct?ee.offsetX<=fe.offsetWidth-fe.clientWidth:ee.offsetX>fe.clientWidth),ft=nt&&ee.offsetY>fe.clientHeight;if(it||ft)return}if(!Ee(ee)){if(le()==="intentional"&&A.current){L.clear(),A.current=!1;return}typeof S=="function"&&!S(ee)||F("__outsidePressBubbles")||(d.setOpen(!1,Rt(Vv,ee)),$())}}}function ue(ee){le()!=="sloppy"||ee.pointerType==="touch"||!d.select("open")||!n||z(ee)||be(ee)}function ge(ee){if(le()!=="sloppy"||!d.select("open")||!n||z(ee))return;const fe=ee.touches[0];fe&&(P.current={startTime:Date.now(),startX:fe.clientX,startY:fe.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},N.start(1e3,()=>{P.current&&(P.current.dismissOnTouchEnd=!1,P.current.dismissOnMouseDown=!1)}))}function Se(ee,fe){const Q=gr(ee);if(!Q)return;const re=Dt(Q,ee.type,()=>{fe(ee),re()})}function Ae(ee){B.current="touch",Se(ee,ge)}function ke(ee){N.clear(),ee.type==="pointerdown"&&(B.current=ee.pointerType),!(ee.type==="mousedown"&&P.current&&!P.current.dismissOnMouseDown)&&Se(ee,fe=>{fe.type==="pointerdown"?ue(fe):be(fe)})}function xe(ee){if(!_.current)return;const fe=D.current;if(oe(),le()==="intentional"){if(ee.type==="pointercancel"){fe&&ne();return}if(!Ee(ee)){if(fe){ne();return}typeof S=="function"&&!S(ee)||(L.clear(),A.current=!0,$())}}}function Re(ee){if(le()!=="sloppy"||!P.current||z(ee))return;const fe=ee.touches[0];if(!fe)return;const Q=Math.abs(fe.clientX-P.current.startX),re=Math.abs(fe.clientY-P.current.startY),we=Math.sqrt(Q*Q+re*re);we>5&&(P.current.dismissOnTouchEnd=!0),we>10&&(be(ee),N.clear(),P.current=null)}function Me(ee){Se(ee,Re)}function ze(ee){le()!=="sloppy"||!P.current||z(ee)||(P.current.dismissOnTouchEnd&&be(ee),N.clear(),P.current=null)}function Fe(ee){Se(ee,ze)}const ye=Wt(m),_e=Wi(r&&Wi(Dt(ye,"keydown",H),Dt(ye,"compositionstart",X),Dt(ye,"compositionend",se)),R&&Wi(Dt(ye,"click",ke,!0),Dt(ye,"pointerdown",ke,!0),Dt(ye,"pointerup",xe,!0),Dt(ye,"pointercancel",xe,!0),Dt(ye,"mousedown",ke,!0),Dt(ye,"mouseup",xe,!0),Dt(ye,"touchstart",Ae,!0),Dt(ye,"touchmove",Me,!0),Dt(ye,"touchend",Fe,!0)));return()=>{_e(),V.clear(),L.clear(),oe(),A.current=!1}},[b,m,r,R,S,h,n,E,C,H,$,T,F,z,y,d,N]),v.useEffect($,[S,$]);const O=v.useMemo(()=>({onKeyDown:H,onPointerDown:U,onClick:U}),[H,U]),j=v.useMemo(()=>({onKeyDown:H,onPointerDown:Y,onMouseDown:Y,onClickCapture:K,onMouseDownCapture(V){K(),q(V)},onPointerDownCapture(V){K(),q(V)},onMouseUpCapture:K,onTouchEndCapture:K,onTouchMoveCapture:K}),[H,K,q,Y]);return v.useMemo(()=>n?{reference:O,floating:j,trigger:O}:{},[n,O,j])}function Yw(e,t,n){let{reference:r,floating:s}=e;const a=mi(t),l=Jv(t),c=Qv(l),f=ti(t),d=a==="y",h=r.x+r.width/2-s.width/2,m=r.y+r.height/2-s.height/2,b=r[c]/2-s[c]/2;let y;switch(f){case"top":y={x:h,y:r.y-s.height};break;case"bottom":y={x:h,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:m};break;case"left":y={x:r.x-s.width,y:m};break;default:y={x:r.x,y:r.y}}const k=Co(t);return k&&(y[l]+=b*(k==="end"?1:-1)*(n&&d?-1:1)),y}async function $P(e,t){var n;t===void 0&&(t={});const{x:r,y:s,platform:a,rects:l,elements:c,strategy:f}=e,{boundary:d="clippingAncestors",rootBoundary:h="viewport",elementContext:m="floating",altBoundary:b=!1,padding:y=0}=As(t,e),k=S_(y),R=c[b?m==="floating"?"reference":"floating":m],T=Tc(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(R)))==null||n?R:R.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:d,rootBoundary:h,strategy:f})),E=m==="floating"?{x:r,y:s,width:l.floating.width,height:l.floating.height}:l.reference,C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),_=await(a.isElement==null?void 0:a.isElement(C))&&await(a.getScale==null?void 0:a.getScale(C))||{x:1,y:1},D=Tc(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:E,offsetParent:C,strategy:f}):E);return{top:(T.top-D.top+k.top)/_.y,bottom:(D.bottom-T.bottom+k.bottom)/_.y,left:(T.left-D.left+k.left)/_.x,right:(D.right-T.right+k.right)/_.x}}const BP=50,FP=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:a=[],platform:l}=n,c=l.detectOverflow?l:{...l,detectOverflow:$P},f=await(l.isRTL==null?void 0:l.isRTL(t));let d=await l.getElementRects({reference:e,floating:t,strategy:s}),{x:h,y:m}=Yw(d,r,f),b=r,y=0;const k={};for(let S=0;S<a.length;S++){const R=a[S];if(!R)continue;const{name:T,fn:E}=R,{x:C,y:_,data:D,reset:A}=await E({x:h,y:m,initialPlacement:r,placement:b,strategy:s,middlewareData:k,rects:d,platform:c,elements:{reference:e,floating:t}});h=C??h,m=_??m,k[T]={...k[T],...D},A&&y<BP&&(y++,typeof A=="object"&&(A.placement&&(b=A.placement),A.rects&&(d=A.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:s}):A.rects),{x:h,y:m}=Yw(d,b,f)),S=-1)}return{x:h,y:m,placement:b,strategy:s,middlewareData:k}},UP=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:s,middlewareData:a,rects:l,initialPlacement:c,platform:f,elements:d}=t,{mainAxis:h=!0,crossAxis:m=!0,fallbackPlacements:b,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:k="none",flipAlignment:S=!0,...R}=As(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const T=ti(s),E=mi(c),C=ti(c)===c,_=await(f.isRTL==null?void 0:f.isRTL(d.floating)),D=b||(C||!S?[Mp(c)]:oP(c)),A=k!=="none";!b&&A&&D.push(...cP(c,S,k,_));const M=[c,...D],B=await f.detectOverflow(t,R),P=[];let N=((r=a.flip)==null?void 0:r.overflows)||[];if(h&&P.push(B[T]),m){const z=sP(s,l,_);P.push(B[z[0]],B[z[1]])}if(N=[...N,{placement:s,overflows:P}],!P.every(z=>z<=0)){var W,$;const z=(((W=a.flip)==null?void 0:W.index)||0)+1,U=M[z];if(U&&(!(m==="alignment"?E!==mi(U):!1)||N.every(q=>mi(q.placement)===E?q.overflows[0]>0:!0)))return{data:{index:z,overflows:N},reset:{placement:U}};let H=($=N.filter(K=>K.overflows[0]<=0).sort((K,q)=>K.overflows[1]-q.overflows[1])[0])==null?void 0:$.placement;if(!H)switch(y){case"bestFit":{var F;const K=(F=N.filter(q=>{if(A){const Y=mi(q.placement);return Y===E||Y==="y"}return!0}).map(q=>[q.placement,q.overflows.filter(Y=>Y>0).reduce((Y,O)=>Y+O,0)]).sort((q,Y)=>q[1]-Y[1])[0])==null?void 0:F[0];K&&(H=K);break}case"initialPlacement":H=c;break}if(s!==H)return{reset:{placement:H}}}return{}}}};function Xw(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Zw(e){return rP.some(t=>e[t]>=0)}const qP=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:s="referenceHidden",...a}=As(e,t);switch(s){case"referenceHidden":{const l=await r.detectOverflow(t,{...a,elementContext:"reference"}),c=Xw(l,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:Zw(c)}}}case"escaped":{const l=await r.detectOverflow(t,{...a,altBoundary:!0}),c=Xw(l,n.floating);return{data:{escapedOffsets:c,escaped:Zw(c)}}}default:return{}}}}},F_=new Set(["left","top"]);async function HP(e,t){const{placement:n,platform:r,elements:s}=e,a=await(r.isRTL==null?void 0:r.isRTL(s.floating)),l=ti(n),c=Co(n),f=mi(n)==="y",d=F_.has(l)?-1:1,h=a&&f?-1:1,m=As(t,e);let{mainAxis:b,crossAxis:y,alignmentAxis:k}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return c&&typeof k=="number"&&(y=c==="end"?k*-1:k),f?{x:y*h,y:b*d}:{x:b*d,y:y*h}}const VP=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:s,y:a,placement:l,middlewareData:c}=t,f=await HP(t,e);return l===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:s+f.x,y:a+f.y,data:{...f,placement:l}}}}},GP=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:s,platform:a}=t,{mainAxis:l=!0,crossAxis:c=!1,limiter:f={fn:E=>{let{x:C,y:_}=E;return{x:C,y:_}}},...d}=As(e,t),h={x:n,y:r},m=await a.detectOverflow(t,d),b=mi(s),y=Zv(b);let k=h[y],S=h[b];const R=(E,C)=>k_(C+m[E==="y"?"top":"left"],C,C-m[E==="y"?"bottom":"right"]);l&&(k=R(y,k)),c&&(S=R(b,S));const T=f.fn({...t,[y]:k,[b]:S});return{...T,data:{x:T.x-n,y:T.y-r,enabled:{[y]:l,[b]:c}}}}}},WP=function(e){return e===void 0&&(e={}),{options:e,fn(t){var n,r;const{x:s,y:a,placement:l,rects:c,middlewareData:f}=t,{offset:d=0,mainAxis:h=!0,crossAxis:m=!0}=As(e,t),b={x:s,y:a},y=mi(l),k=Zv(y);let S=b[k],R=b[y];const T=As(d,t),E=typeof T=="number"?{mainAxis:T,crossAxis:0}:{mainAxis:(n=T.mainAxis)!=null?n:0,crossAxis:(r=T.crossAxis)!=null?r:0};if(h){const D=k==="y"?"height":"width",A=c.reference[k]-c.floating[D]+E.mainAxis,M=c.reference[k]+c.reference[D]-E.mainAxis;S<A?S=A:S>M&&(S=M)}if(m){var C,_;const D=k==="y"?"width":"height",A=F_.has(ti(l)),M=c.reference[y]-c.floating[D]+(A&&((C=f.offset)==null?void 0:C[y])||0)+(A?0:E.crossAxis),B=c.reference[y]+c.reference[D]+(A?0:((_=f.offset)==null?void 0:_[y])||0)-(A?E.crossAxis:0);R<M?R=M:R>B&&(R=B)}return{[k]:S,[y]:R}}}},KP=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:s,elements:a}=t,{apply:l=()=>{},...c}=As(e,t),f=await s.detectOverflow(t,c),d=ti(n),h=Co(n),m=mi(n)==="y",{width:b,height:y}=r.floating;let k,S;d==="top"||d==="bottom"?(k=d,S=h===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(S=d,k=h==="end"?"top":"bottom");const R=y-f.top-f.bottom,T=b-f.left-f.right,E=Cl(y-f[k],R),C=Cl(b-f[S],T),_=t.middlewareData.shift,D=!_;let A=E,M=C;_!=null&&_.enabled.x&&(M=T),_!=null&&_.enabled.y&&(A=R),D&&!h&&(m?M=b-2*Ts(f.left,f.right):A=y-2*Ts(f.top,f.bottom)),await l({...t,availableWidth:M,availableHeight:A});const B=await s.getDimensions(a.floating);return b!==B.width||y!==B.height?{reset:{rects:!0}}:{}}}};function U_(e){const t=Tr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=Ft(e),a=s?e.offsetWidth:n,l=s?e.offsetHeight:r,c=_l(n)!==a||_l(r)!==l;return c&&(n=a,r=l),{width:n,height:r,$:c}}function rx(e){return gt(e)?e:e.contextElement}function xl(e){const t=rx(e);if(!Ft(t))return Rs(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:a}=U_(t);let l=(a?_l(n.width):n.width)/r,c=(a?_l(n.height):n.height)/s;return(!l||!Number.isFinite(l))&&(l=1),(!c||!Number.isFinite(c))&&(c=1),{x:l,y:c}}const YP=Rs(0);function q_(e){const t=xn(e);return!bh()||!t.visualViewport?YP:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function XP(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===xn(e)}function aa(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),a=rx(e);let l=Rs(1);t&&(r?gt(r)&&(l=xl(r)):l=xl(e));const c=XP(a,n,r)?q_(a):Rs(0);let f=(s.left+c.x)/l.x,d=(s.top+c.y)/l.y,h=s.width/l.x,m=s.height/l.y;if(a&&r){const b=xn(a),y=gt(r)?xn(r):r;let k=b,S=Dy(k);for(;S&&y!==k;){const R=xl(S),T=S.getBoundingClientRect(),E=Tr(S),C=T.left+(S.clientLeft+parseFloat(E.paddingLeft))*R.x,_=T.top+(S.clientTop+parseFloat(E.paddingTop))*R.y;f*=R.x,d*=R.y,h*=R.x,m*=R.y,f+=C,d+=_,k=xn(S),S=Dy(k)}}return Tc({width:h,height:m,x:f,y:d})}function Ch(e,t){const n=yh(e).scrollLeft;return t?t.left+n:aa(Os(e)).left+n}function H_(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Ch(e,n),s=n.top+t.scrollTop;return{x:r,y:s}}function ZP(e){let{elements:t,rect:n,offsetParent:r,strategy:s}=e;const a=s==="fixed",l=Os(r),c=t?gh(t.floating):!1;if(r===l||c&&a)return n;let f={scrollLeft:0,scrollTop:0},d=Rs(1);const h=Rs(0),m=Ft(r);if((m||!a)&&((Qn(r)!=="body"||ga(l))&&(f=yh(r)),m)){const y=aa(r);d=xl(r),h.x=y.x+r.clientLeft,h.y=y.y+r.clientTop}const b=l&&!m&&!a?H_(l,f):Rs(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-f.scrollLeft*d.x+h.x+b.x,y:n.y*d.y-f.scrollTop*d.y+h.y+b.y}}function QP(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function JP(e){const t=yh(e),n=e.ownerDocument.body,r=Ts(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),s=Ts(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let a=-t.scrollLeft+Ch(e);const l=-t.scrollTop;return Tr(n).direction==="rtl"&&(a+=Ts(e.clientWidth,n.clientWidth)-r),{width:r,height:s,x:a,y:l}}const e$=25;function t$(e,t,n){n===void 0&&(n="viewport");const r=n==="layoutViewport",s=xn(e),a=Os(e),l=s.visualViewport;let c=a.clientWidth,f=a.clientHeight,d=0,h=0;if(l){const b=!bh()||t==="fixed";r?b||(d=-l.offsetLeft,h=-l.offsetTop):(c=l.width,f=l.height,b&&(d=l.offsetLeft,h=l.offsetTop))}if(Ch(a)<=0){const b=a.ownerDocument,y=b.body,k=getComputedStyle(y),S=b.compatMode==="CSS1Compat"&&parseFloat(k.marginLeft)+parseFloat(k.marginRight)||0,R=Math.abs(a.clientWidth-y.clientWidth-S),T=getComputedStyle(a).scrollbarGutter==="stable both-edges"?R/2:R;T<=e$&&(c-=T)}return{width:c,height:f,x:d,y:h}}function n$(e,t){const n=aa(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,a=xl(e),l=e.clientWidth*a.x,c=e.clientHeight*a.y,f=s*a.x,d=r*a.y;return{width:l,height:c,x:f,y:d}}function Qw(e,t,n){let r;if(t==="viewport"||t==="layoutViewport")r=t$(e,n,t);else if(t==="document")r=JP(Os(e));else if(gt(t))r=n$(t,n);else{const s=q_(e);r={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return Tc(r)}function r$(e,t){const n=t.get(e);if(n)return n;let r=bo(e,[],!1).filter(c=>gt(c)&&Qn(c)!=="body"),s=null;const a=Tr(e).position==="fixed";let l=a?_s(e):e;for(;gt(l)&&!_i(l);){const c=Tr(l),f=qv(l),d=s?s.position:a?"fixed":"";!f&&(d==="fixed"||d==="absolute"&&c.position==="static")?r=r.filter(m=>m!==l):s=c,l=_s(l)}return t.set(e,r),r}function i$(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const l=[...n==="clippingAncestors"?gh(t)?[]:r$(t,this._c):[].concat(n),r],c=Qw(t,l[0],s);let f=c.top,d=c.right,h=c.bottom,m=c.left;for(let b=1;b<l.length;b++){const y=Qw(t,l[b],s);f=Ts(y.top,f),d=Cl(y.right,d),h=Cl(y.bottom,h),m=Ts(y.left,m)}return{width:d-m,height:h-f,x:m,y:f}}function s$(e){const{width:t,height:n}=U_(e);return{width:t,height:n}}function o$(e,t,n){const r=Ft(t),s=Os(t),a=n==="fixed",l=aa(e,!0,a,t);let c={scrollLeft:0,scrollTop:0};const f=Rs(0);if((r||!a)&&((Qn(t)!=="body"||ga(s))&&(c=yh(t)),r)){const b=aa(t,!0,a,t);f.x=b.x+t.clientLeft,f.y=b.y+t.clientTop}!r&&s&&(f.x=Ch(s));const d=s&&!r&&!a?H_(s,c):Rs(0),h=l.left+c.scrollLeft-f.x-d.x,m=l.top+c.scrollTop-f.y-d.y;return{x:h,y:m,width:l.width,height:l.height}}function Eb(e){return Tr(e).position==="static"}function Jw(e,t){if(!Ft(e)||Tr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Os(e)===n&&(n=n.ownerDocument.body),n}function V_(e,t){const n=xn(e);if(gh(e))return n;if(!Ft(e)){let s=_s(e);for(;s&&!_i(s);){if(gt(s)&&!Eb(s))return s;s=_s(s)}return n}let r=Jw(e,t);for(;r&&Ez(r)&&Eb(r);)r=Jw(r,t);return r&&_i(r)&&Eb(r)&&!qv(r)?n:r||Cz(e)||n}const a$=async function(e){const t=this.getOffsetParent||V_,n=this.getDimensions,r=await n(e.floating);return{reference:o$(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function l$(e){return Tr(e).direction==="rtl"}const G_={convertOffsetParentRelativeRectToViewportRelativeRect:ZP,getDocumentElement:Os,getClippingRect:i$,getOffsetParent:V_,getElementRects:a$,getClientRects:QP,getDimensions:s$,getScale:xl,isElement:gt,isRTL:l$};function W_(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function u$(e,t,n){let r=null,s;const a=Os(e);function l(){var h;clearTimeout(s),(h=r)==null||h.disconnect(),r=null}function c(h,m){h===void 0&&(h=!1),m===void 0&&(m=1),l();const b=e.getBoundingClientRect(),{left:y,top:k,width:S,height:R}=b;if(h||t(),!S||!R)return;const T=gl(k),E=gl(a.clientWidth-(y+S)),C=gl(a.clientHeight-(k+R)),_=gl(y),A={rootMargin:-T+"px "+-E+"px "+-C+"px "+-_+"px",threshold:Ts(0,Cl(1,m))||1};let M=!0;function B(P){const N=P[0].intersectionRatio;if(!W_(b,e.getBoundingClientRect()))return c();if(N!==m){if(!M)return c();N?c(!1,N):s=setTimeout(()=>{c(!1,1e-7)},1e3)}M=!1}try{r=new IntersectionObserver(B,{...A,root:a.ownerDocument})}catch{r=new IntersectionObserver(B,A)}r.observe(e)}const f=xn(e),d=()=>c(n);return f.addEventListener("resize",d),c(!0),()=>{f.removeEventListener("resize",d),l()}}function Lp(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:a=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:f=!1}=r,d=rx(e),h=s||a?[...d?bo(d):[],...t?bo(t):[]]:[];h.forEach(T=>{s&&T.addEventListener("scroll",n),a&&T.addEventListener("resize",n)});const m=d&&c?u$(d,n,a):null;let b=-1,y=null;l&&(y=new ResizeObserver(T=>{let[E]=T;E&&E.target===d&&y&&t&&(y.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var C;(C=y)==null||C.observe(t)})),n()}),d&&!f&&y.observe(d),t&&y.observe(t));let k,S=f?aa(e):null;f&&R();function R(){const T=aa(e);S&&!W_(S,T)&&n(),S=T,k=requestAnimationFrame(R)}return n(),()=>{var T;h.forEach(E=>{s&&E.removeEventListener("scroll",n),a&&E.removeEventListener("resize",n)}),m?.(),(T=y)==null||T.disconnect(),y=null,f&&cancelAnimationFrame(k)}}const c$=VP,f$=GP,d$=UP,p$=KP,h$=qP,m$=WP,g$=(e,t,n)=>{const r=new Map,s=n??{},a={...G_,...s.platform,_c:r};return FP(e,t,{...s,platform:a})};var b$=typeof document<"u",y$=function(){},vp=b$?v.useLayoutEffect:y$;function jp(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!jp(e[r],t[r]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,s[r]))return!1;for(r=n;r--!==0;){const a=s[r];if(!(a==="_owner"&&e.$$typeof)&&!jp(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function K_(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eE(e,t){const n=K_(e);return Math.round(t*n)/n}function Tb(e){const t=v.useRef(e);return vp(()=>{t.current=e}),t}function Y_(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:a,floating:l}={},transform:c=!0,whileElementsMounted:f,open:d}=e,[h,m]=v.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[b,y]=v.useState(r);jp(b,r)||y(r);const[k,S]=v.useState(null),[R,T]=v.useState(null),E=v.useCallback(q=>{q!==A.current&&(A.current=q,S(q))},[]),C=v.useCallback(q=>{q!==M.current&&(M.current=q,T(q))},[]),_=a||k,D=l||R,A=v.useRef(null),M=v.useRef(null),B=v.useRef(h),P=f!=null,N=Tb(f),W=Tb(s),$=Tb(d),F=v.useCallback(()=>{if(!A.current||!M.current)return;const q={placement:t,strategy:n,middleware:b};W.current&&(q.platform=W.current),g$(A.current,M.current,q).then(Y=>{const O={...Y,isPositioned:$.current!==!1};z.current&&!jp(B.current,O)&&(B.current=O,Mi.flushSync(()=>{m(O)}))})},[b,t,n,W,$]);vp(()=>{d===!1&&B.current.isPositioned&&(B.current.isPositioned=!1,m(q=>({...q,isPositioned:!1})))},[d]);const z=v.useRef(!1);vp(()=>(z.current=!0,()=>{z.current=!1}),[]),vp(()=>{if(_&&(A.current=_),D&&(M.current=D),_&&D){if(N.current)return N.current(_,D,F);F()}},[_,D,F,N,P]);const U=v.useMemo(()=>({reference:A,floating:M,setReference:E,setFloating:C}),[E,C]),H=v.useMemo(()=>({reference:_,floating:D}),[_,D]),K=v.useMemo(()=>{const q={position:n,left:0,top:0};if(!H.floating)return q;const Y=eE(H.floating,h.x),O=eE(H.floating,h.y);return c?{...q,transform:"translate("+Y+"px, "+O+"px)",...K_(H.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Y,top:O}},[n,c,H.floating,h.x,h.y]);return v.useMemo(()=>({...h,update:F,refs:U,elements:H,floatingStyles:K}),[h,F,U,H,K])}const ix=(e,t)=>{const n=c$(e);return{name:n.name,fn:n.fn,options:[e,t]}},sx=(e,t)=>{const n=f$(e);return{name:n.name,fn:n.fn,options:[e,t]}},v$=(e,t)=>({fn:m$(e).fn,options:[e,t]}),ox=(e,t)=>{const n=d$(e);return{name:n.name,fn:n.fn,options:[e,t]}},ax=(e,t)=>{const n=p$(e);return{name:n.name,fn:n.fn,options:[e,t]}},x$=(e,t)=>{const n=h$(e);return{name:n.name,fn:n.fn,options:[e,t]}};function zp(e,t,n,r){return{left:e,top:t,right:n,bottom:r,x:e,y:t,width:n-e,height:r-t}}function k$(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom,width:e.width,height:e.height}}function X_(e){const t=[];let n,r=Number.POSITIVE_INFINITY,s=Number.POSITIVE_INFINITY,a=Number.NEGATIVE_INFINITY,l=Number.NEGATIVE_INFINITY;for(const c of Array.from(e).sort((f,d)=>f.top-d.top)){if(r=Math.min(r,c.left),s=Math.min(s,c.top),a=Math.max(a,c.right),l=Math.max(l,c.bottom),!n||c.top-n.top>n.height/2)t.push(k$(c));else{const f=t[t.length-1];f.left=Math.min(f.left,c.left),f.right=Math.max(f.right,c.right),f.bottom=Math.max(f.bottom,c.bottom),f.width=f.right-f.left,f.height=f.bottom-f.top}n=c}return{lines:t,fallback:zp(r,s,a,l)}}function Z_(e,t,n){return e.findIndex(r=>t>r.left-2&&t<r.right+2&&n>r.top-2&&n<r.bottom+2)}function tE(e){return zp(e.left,e.top,e.right,e.bottom)}function S$(e,t,n){const{lines:r}=X_(e.getClientRects());if(r.length<2)return;const s=Z_(r,t,n);return{x:t,y:n,lineIndex:s===-1?void 0:s,element:e}}function w$(e,t,n){const{lines:r,fallback:s}=X_(e.getClientRects());if(r.length<2)return null;const a=n?.x,l=n?.y,c=t[0];if(n?.lineIndex!=null&&r[n.lineIndex])return tE(r[n.lineIndex]);if(a!=null&&l!=null){const k=Z_(r,a,l);if(k!==-1)return tE(r[k])}if(r.length===2&&r[0].left>r[1].right&&a!=null&&l!=null)return s;if(c==="t"||c==="b"){const k=r[0],S=r[r.length-1],R=c==="t"?k:S;return zp(R.left,k.top,R.right,S.bottom)}const f=c==="l";let d=r[0].left,h=r[0].right,m=f?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY,b=r[0],y=r[0];for(const k of r){d=Math.min(d,k.left),h=Math.max(h,k.right);const S=f?k.left:k.right;f&&S<m||!f&&S>m?(m=S,b=k,y=k):S===m&&(y=k)}return zp(d,b.top,h,y.bottom)}function E$(e){return"contextElement"in e&&e.contextElement?e.contextElement:gt(e)?e:void 0}function T$(e,t){function n(s){Q_(e,s.currentTarget,s.clientX,s.clientY)}function r(s){t||n(s)}return{onFocus(){e.current=void 0},onMouseEnter:r,onMouseMove:r}}function Q_(e,t,n,r){const s=S$(t,n,r);return e.current=s,s}function R$(e){return{name:"inline",async fn(t){const n=t.elements.reference;if(typeof n?.getClientRects!="function")return{};const r=E$(n),s=e.current,a=s?.element===n||s?.element===r?s:void 0,l=w$(n,t.placement,a);if(!l||typeof t.platform.getElementRects!="function")return{};const c=await t.platform.getElementRects({reference:{contextElement:r,getBoundingClientRect(){return l}},floating:t.elements.floating,strategy:t.strategy});return t.rects.reference.x===c.reference.x&&t.rects.reference.y===c.reference.y&&t.rects.reference.width===c.reference.width&&t.rects.reference.height===c.reference.height?{}:{reset:{rects:c}}}}}function J_(e){const t=v.useRef(!0);t.current&&(t.current=!1,e())}const tt=(e,t,n,r,s,a,...l)=>{if(l.length>0)throw new Error(In(1));let c;if(e)c=e;else throw new Error("Missing arguments");return c};var Rb={exports:{}},Cb={};var nE;function C$(){if(nE)return Cb;nE=1;var e=Gc();function t(m,b){return m===b&&(m!==0||1/m===1/b)||m!==m&&b!==b}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,s=e.useEffect,a=e.useLayoutEffect,l=e.useDebugValue;function c(m,b){var y=b(),k=r({inst:{value:y,getSnapshot:b}}),S=k[0].inst,R=k[1];return a(function(){S.value=y,S.getSnapshot=b,f(S)&&R({inst:S})},[m,y,b]),s(function(){return f(S)&&R({inst:S}),m(function(){f(S)&&R({inst:S})})},[m]),l(y),y}function f(m){var b=m.getSnapshot;m=m.value;try{var y=b();return!n(m,y)}catch{return!0}}function d(m,b){return b()}var h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:c;return Cb.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:h,Cb}var rE;function eA(){return rE||(rE=1,Rb.exports=C$()),Rb.exports}var lx=eA(),_b={exports:{}},Ab={};var iE;function _$(){if(iE)return Ab;iE=1;var e=Gc(),t=eA();function n(d,h){return d===h&&(d!==0||1/d===1/h)||d!==d&&h!==h}var r=typeof Object.is=="function"?Object.is:n,s=t.useSyncExternalStore,a=e.useRef,l=e.useEffect,c=e.useMemo,f=e.useDebugValue;return Ab.useSyncExternalStoreWithSelector=function(d,h,m,b,y){var k=a(null);if(k.current===null){var S={hasValue:!1,value:null};k.current=S}else S=k.current;k=c(function(){function T(A){if(!E){if(E=!0,C=A,A=b(A),y!==void 0&&S.hasValue){var M=S.value;if(y(M,A))return _=M}return _=A}if(M=_,r(C,A))return M;var B=b(A);return y!==void 0&&y(M,B)?(C=A,M):(C=A,_=B)}var E=!1,C,_,D=m===void 0?null:m;return[function(){return T(h())},D===null?void 0:function(){return T(D())}]},[h,m,b,y]);var R=s(d,k[0],k[1]);return l(function(){S.hasValue=!0,S.value=R},[R]),f(R),R},Ab}var sE;function A$(){return sE||(sE=1,_b.exports=_$()),_b.exports}var N$=A$();const Uy=[];let qy;function O$(){return qy}function I$(e){Uy.push(e)}function ux(e){const t=(n,r)=>{const s=zr(M$).current;let a;try{qy=s;for(const l of Uy)l.before(s);a=e(n,r);for(const l of Uy)l.after(s);s.didInitialize=!0}finally{qy=void 0}return a};return t.displayName=e.displayName||e.name,t}function tA(e){return v.forwardRef(ux(e))}function M$(){return{didInitialize:!1}}const D$=$v(19),L$=D$?z$:P$;function mt(e,t,n,r,s){return L$(e,t,n,r,s)}function j$(e,t,n,r,s){const a=v.useCallback(()=>t(e.getSnapshot(),n,r,s),[e,t,n,r,s]);return lx.useSyncExternalStore(e.subscribe,a,a)}I$({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){const r=e.syncHooks[n],s=r.selector(r.store.state,r.a1,r.a2,r.a3);Object.is(r.value,s)||(t=!0,r.value=s)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{const n=new Set;for(const s of e.syncHooks)n.add(s.store);const r=[];for(const s of n)r.push(s.subscribe(t));return()=>{for(const s of r)s()}}),lx.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getSnapshot))}});function z$(e,t,n,r,s){const a=O$();if(!a)return j$(e,t,n,r,s);const l=a.syncIndex;a.syncIndex+=1;let c;return a.didInitialize?(c=a.syncHooks[l],(c.store!==e||c.selector!==t||!Object.is(c.a1,n)||!Object.is(c.a2,r)||!Object.is(c.a3,s))&&(c.store!==e&&(a.didChangeStore=!0),c.store=e,c.selector=t,c.a1=n,c.a2=r,c.a3=s,c.value=t(e.getSnapshot(),n,r,s))):(c={store:e,selector:t,a1:n,a2:r,a3:s,value:t(e.getSnapshot(),n,r,s)},a.syncHooks.push(c)),c.value}function P$(e,t,n,r,s){return N$.useSyncExternalStoreWithSelector(e.subscribe,e.getSnapshot,e.getSnapshot,a=>t(a,n,r,s))}class nA{constructor(t){this.state=t,this.listeners=new Set,this.updateTick=0}subscribe=t=>(this.listeners.add(t),()=>{this.listeners.delete(t)});getSnapshot=()=>this.state;setState(t){if(this.state===t)return;this.state=t,this.updateTick+=1;const n=this.updateTick;for(const r of this.listeners){if(n!==this.updateTick)return;r(t)}}update(t){for(const n in t)if(!Object.is(this.state[n],t[n])){this.setState({...this.state,...t});return}}set(t,n){Object.is(this.state[t],n)||this.setState({...this.state,[t]:n})}notifyAll(){const t={...this.state};this.setState(t)}use(t,n,r,s){return mt(this,t,n,r,s)}}class cx extends nA{constructor(t,n={},r){super(t),this.context=n,this.selectors=r}useSyncedValue(t,n){v.useDebugValue(t);const r=this;Ve(()=>{r.state[t]!==n&&r.set(t,n)},[r,t,n])}useSyncedValueWithCleanup(t,n){const r=this;Ve(()=>(r.state[t]!==n&&r.set(t,n),()=>{r.set(t,void 0)}),[r,t,n])}useSyncedValues(t){const n=this,r=Object.values(t);Ve(()=>{n.update(t)},[n,...r])}useControlledProp(t,n){v.useDebugValue(t);const r=this,s=n!==void 0;Ve(()=>{s&&!Object.is(r.state[t],n)&&r.setState({...r.state,[t]:n})},[r,t,n,s])}select(t,n,r,s){const a=this.selectors[t];return a(this.state,n,r,s)}useState(t,n,r,s){return v.useDebugValue(t),mt(this,this.selectors[t],n,r,s)}useContextCallback(t,n){v.useDebugValue(t);const r=Ke(n??Zn);this.context[t]=r}useStateSetter(t){const n=v.useRef(void 0);return n.current===void 0&&(n.current=r=>{this.set(t,r)}),n.current}observe(t,n){let r;typeof t=="function"?r=t:r=this.selectors[t];let s=r(this.state);return n(s,s,this),this.subscribe(a=>{const l=r(a);if(!Object.is(s,l)){const c=s;s=l,n(l,c,this)}})}}function $$(){const[,e]=v.useState({});return v.useCallback(()=>{e({})},[])}const B$={open:tt(e=>e.open),transitionStatus:tt(e=>e.transitionStatus),domReferenceElement:tt(e=>e.domReferenceElement),referenceElement:tt(e=>e.positionReference??e.referenceElement),floatingElement:tt(e=>e.floatingElement),floatingId:tt(e=>e.floatingId)};class _h extends cx{constructor(t){const{syncOnly:n,nested:r,onOpenChange:s,triggerElements:a,...l}=t;super({...l,positionReference:l.referenceElement,domReferenceElement:l.referenceElement},{onOpenChange:s,dataRef:{current:{}},events:P_(),nested:r,triggerElements:a},B$),this.syncOnly=n}syncOpenEvent=(t,n)=>{(!t||!this.state.open||n!=null&&Vz(n))&&(this.context.dataRef.current.openEvent=t?n:void 0)};dispatchOpenChange=(t,n)=>{this.syncOpenEvent(t,n.event);const r={open:t,reason:n.reason,nativeEvent:n.event,nested:this.context.nested,triggerElement:n.trigger};this.context.events.emit("openchange",r)};setOpen=(t,n)=>{if(this.syncOnly){this.context.onOpenChange?.(t,n);return}this.dispatchOpenChange(t,n),this.context.onOpenChange?.(t,n)}}function F$(e){const{popupStore:t,treatPopupAsFloatingElement:n=!1,floatingRootContext:r,floatingId:s,nested:a,onOpenChange:l}=e,c=t.useState("open"),f=t.useState("activeTriggerElement"),d=t.useState(n?"popupElement":"positionerElement"),h=t.context.triggerElements,m=l,b=v.useRef(null);r===void 0&&b.current===null&&(b.current=new _h({open:c,transitionStatus:void 0,referenceElement:f,floatingElement:d,triggerElements:h,onOpenChange:m,floatingId:s,syncOnly:!0,nested:a}));const y=r??b.current;return t.useSyncedValue("floatingId",s),Ve(()=>{const k={open:c,floatingId:s,referenceElement:f,floatingElement:d};gt(f)&&(k.domReferenceElement=f),y.state.positionReference===y.state.referenceElement&&(k.positionReference=f),y.update(k)},[c,s,f,d,y]),y.context.onOpenChange=m,y.context.nested=a,y}function Yc(e,t=!1,n=!1){const[r,s]=v.useState(e&&t?"idle":void 0),[a,l]=v.useState(e);return e&&!a&&(l(!0),s("starting")),!e&&a&&r!=="ending"&&!n&&s("ending"),!e&&!a&&r==="ending"&&s(void 0),Ve(()=>{if(!e&&a&&r!=="ending"&&n){const c=Lr.request(()=>{s("ending")});return()=>{Lr.cancel(c)}}},[e,a,r,n]),Ve(()=>{if(!e||t)return;const c=Lr.request(()=>{s(void 0)});return()=>{Lr.cancel(c)}},[t,e]),Ve(()=>{if(!e||!t)return;e&&a&&r!=="idle"&&s("starting");const c=Lr.request(()=>{s("idle")});return()=>{Lr.cancel(c)}},[t,e,a,r]),{mounted:a,setMounted:l,transitionStatus:r}}function rA(e,t=!1,n=!0){const r=Rl();return Ke((s,a=null)=>{r.cancel();const l=ys(e);if(l==null)return;const c=l,f=()=>{Mi.flushSync(s)};if(typeof c.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED){s();return}function d(){Promise.all(c.getAnimations().map(h=>h.finished)).then(()=>{a?.aborted||f()}).catch(()=>{if(n){a?.aborted||f();return}const h=c.getAnimations();!a?.aborted&&h.length>0&&h.some(m=>m.pending||m.playState!=="finished")&&d()})}if(t){const h=sa.startingStyle;if(!c.hasAttribute(h)){r.request(d);return}const m=new MutationObserver(()=>{c.hasAttribute(h)||(m.disconnect(),d())});m.observe(c,{attributes:!0,attributeFilter:[h]}),a?.addEventListener("abort",()=>m.disconnect(),{once:!0});return}r.request(d)})}function _o(e){const{enabled:t=!0,open:n,ref:r,onComplete:s}=e,a=Ke(s),l=rA(r,n,!1);v.useEffect(()=>{if(!t)return;const c=new AbortController;return l(a,c.signal),()=>{c.abort()}},[t,n,a,l])}const fx={tabIndex:-1,[jy]:""};function iA(e,t,n=!1){const r=Kc(),s=Ul()!=null,a=v.useRef(null);e===void 0&&a.current===null&&(a.current=t(r,s));const l=e??a.current;return F$({popupStore:l,treatPopupAsFloatingElement:n,floatingRootContext:l.state.floatingRootContext,floatingId:r,nested:s,onOpenChange:l.setOpen}),{store:l,internalStore:a.current}}function U$(e,t){const n=v.useRef(null),r=v.useRef(null);return v.useCallback(s=>{if(e===void 0)return;let a=!1;if(n.current!==null){const l=n.current,c=r.current,f=t.context.triggerElements.getById(l);c&&f===c&&(t.context.triggerElements.delete(l),a=!0),n.current=null,r.current=null}if(s!==null&&(n.current=e,r.current=s,t.context.triggerElements.add(e,s),a=!0),a){const l=t.context.triggerElements.size;t.select("open")&&t.state.triggerCount!==l&&t.set("triggerCount",l)}},[t,e])}function q$(e,t,n,r=!1){t?e.preventUnmountingOnClose=!1:r&&(e.preventUnmountingOnClose=!0);const s=n?.id??null;(s||t)&&(e.activeTriggerId=s,e.activeTriggerElement=n??null)}function H$(e){let t=!1;return e.preventUnmountOnClose=()=>{t=!0},()=>t}function sA(e,t,n,r={}){const s=n.reason,a=s===Sr,l=t&&s===gp,c=!t&&(s===Bl||s===Gv),f=H$(n);if(e.context.onOpenChange?.(t,n),n.isCanceled)return;r.onBeforeDispatch?.(),e.state.floatingRootContext.dispatchOpenChange(t,n);const d=()=>{const h={...r.extraState,open:t};l?h.instantType="focus":c?h.instantType="dismiss":a&&(h.instantType=void 0),q$(h,t,n.trigger,f()),e.update(h)};a?Mi.flushSync(d):d()}function oA(e,t,n,r){J_(()=>{t===void 0&&e.state.open===!1&&n&&(e.state={...e.state,open:!0,activeTriggerId:r,preventUnmountingOnClose:!1})})}function aA(e,t,n,r){const s=n.useState("isMountedByTrigger",e),a=U$(e,n),l=Ke(c=>{if(a(c),!c)return;const f=n.select("open"),d=n.select("activeTriggerId");if(d===e){n.update({activeTriggerElement:c,...f?r:null});return}d==null&&f&&n.update({activeTriggerId:e,activeTriggerElement:c,...r})});return Ve(()=>{s&&n.update({activeTriggerElement:t.current,...r})},[s,n,t,...Object.values(r)]),{registerTrigger:l,isMountedByThisTrigger:s}}function lA(e,t={}){const{closeOnActiveTriggerUnmount:n=!1}=t,r=e.useState("open"),s=e.useState("triggerCount");Ve(()=>{if(!r){e.state.triggerCount!==0&&e.set("triggerCount",0);return}const a=e.context.triggerElements.size,l={};e.state.triggerCount!==a&&(l.triggerCount=a);const c=e.select("activeTriggerId");let f=null;if(c){const d=e.context.triggerElements.getById(c);d?d!==e.state.activeTriggerElement&&(l.activeTriggerElement=d):f=c}if(!f&&!c&&a===1){const d=e.context.triggerElements.entries().next();if(!d.done){const[h,m]=d.value;l.activeTriggerId=h,l.activeTriggerElement=m}}(l.triggerCount!==void 0||l.activeTriggerId!==void 0||l.activeTriggerElement!==void 0)&&e.update(l),f&&n&&queueMicrotask(()=>{if(e.select("open")&&e.select("activeTriggerId")===f&&!e.context.triggerElements.getById(f)){const d=Rt(Ni);e.setOpen(!1,d),d.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[r,e,s,n])}function uA(e,t,n){const{mounted:r,setMounted:s,transitionStatus:a}=Yc(e),l=t.useState("preventUnmountingOnClose"),c=e?!1:l;t.useSyncedValues({mounted:r,transitionStatus:a,preventUnmountingOnClose:c});const f=Ke(()=>{s(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)});return _o({enabled:r&&!e&&!c,open:e,ref:t.context.popupRef,onComplete(){e||f()}}),{forceUnmount:f,transitionStatus:a}}function cA(e,t){e.useSyncedValues(t),Ve(()=>()=>{e.update({activeTriggerProps:Bn,inactiveTriggerProps:Bn,popupProps:Bn})},[e])}class Ah{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(t,n){const r=this.idMap.get(t);r!==n&&(r!==void 0&&this.elementsSet.delete(r),this.elementsSet.add(n),this.idMap.set(t,n))}delete(t){const n=this.idMap.get(t);n&&(this.elementsSet.delete(n),this.idMap.delete(t))}hasElement(t){return this.elementsSet.has(t)}hasMatchingElement(t){for(const n of this.elementsSet)if(t(n))return!0;return!1}getById(t){return this.idMap.get(t)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}}function V$(){return new _h({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new Ah,floatingId:void 0,syncOnly:!1,nested:!1,onOpenChange:void 0})}function fA(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:V$(),floatingId:void 0,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:Bn,inactiveTriggerProps:Bn,popupProps:Bn}}function dA(e,t,n=!1){return new _h({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:n,onOpenChange:void 0})}const dc=tt(e=>e.triggerIdProp??e.activeTriggerId),dx=tt(e=>e.openProp??e.open),oE=tt(e=>(e.popupElement?.id??e.floatingId)||void 0);function pA(e,t){return t!==void 0&&dx(e)&&dc(e)===t}function G$(e,t){return pA(e,t)?!0:t!==void 0&&dx(e)&&dc(e)==null&&e.triggerCount===1}const hA={open:dx,mounted:tt(e=>e.mounted),transitionStatus:tt(e=>e.transitionStatus),floatingRootContext:tt(e=>e.floatingRootContext),triggerCount:tt(e=>e.triggerCount),preventUnmountingOnClose:tt(e=>e.preventUnmountingOnClose),payload:tt(e=>e.payload),activeTriggerId:dc,activeTriggerElement:tt(e=>e.mounted?e.activeTriggerElement:null),popupId:oE,isTriggerActive:tt((e,t)=>t!==void 0&&dc(e)===t),isOpenedByTrigger:tt((e,t)=>pA(e,t)),isMountedByTrigger:tt((e,t)=>t!==void 0&&dc(e)===t&&e.mounted),triggerProps:tt((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),triggerPopupId:tt((e,t)=>G$(e,t)?oE(e):void 0),popupProps:tt(e=>e.popupProps),popupElement:tt(e=>e.popupElement),positionerElement:tt(e=>e.positionerElement)};function mA(e){const{open:t=!1,onOpenChange:n,elements:r={}}=e,s=Kc(),a=Ul()!=null,l=zr(()=>new _h({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new Ah,floatingId:s,syncOnly:!1,nested:a})).current;return Ve(()=>{const c={open:t,floatingId:s};r.reference!==void 0&&(c.referenceElement=r.reference,c.domReferenceElement=gt(r.reference)?r.reference:null),r.floating!==void 0&&(c.floatingElement=r.floating),l.update(c)},[t,s,r.reference,r.floating,l]),l.context.onOpenChange=n,l.context.nested=a,l}function W$(e={}){const{nodeId:t,externalTree:n}=e,r=mA(e),s=e.rootContext||r,a=s.useState("referenceElement"),l=s.useState("floatingElement"),c=s.useState("domReferenceElement"),f=s.useState("open"),d=s.useState("floatingId"),[h,m]=v.useState(null),[b,y]=v.useState(void 0),[k,S]=v.useState(void 0),R=v.useRef(null),T=ba(n),E=v.useMemo(()=>({reference:a,floating:l,domReference:c}),[a,l,c]),C=Y_({...e,elements:{...E,...h&&{reference:h}}}),_=gt(b)?b:null,D=k===void 0?s.state.floatingElement:k;s.useSyncedValue("referenceElement",b??null),s.useSyncedValue("domReferenceElement",b===void 0?c:_),s.useSyncedValue("floatingElement",D);const A=v.useCallback($=>{const F=gt($)?{getBoundingClientRect:()=>$.getBoundingClientRect(),getClientRects:()=>$.getClientRects(),contextElement:$}:$;m(F),C.refs.setReference(F)},[C.refs]),M=v.useCallback($=>{(gt($)||$===null)&&(R.current=$,y($)),(gt(C.refs.reference.current)||C.refs.reference.current===null||$!==null&&!gt($))&&C.refs.setReference($)},[C.refs,y]),B=v.useCallback($=>{S($),C.refs.setFloating($)},[C.refs]),P=v.useMemo(()=>({...C.refs,setReference:M,setFloating:B,setPositionReference:A,domReference:R}),[C.refs,M,B,A]),N=v.useMemo(()=>({...C.elements,domReference:c}),[C.elements,c]),W=v.useMemo(()=>({...C,dataRef:s.context.dataRef,open:f,onOpenChange:s.setOpen,events:s.context.events,floatingId:d,refs:P,elements:N,nodeId:t,rootStore:s}),[C,P,N,t,s,f,d]);return Ve(()=>{c&&(R.current=c)},[c]),Ve(()=>{s.context.dataRef.current.floatingContext=W;const $=T?.nodesRef.current.find(F=>F.id===t);$&&($.context=W)}),v.useMemo(()=>({...C,context:W,refs:P,elements:N,rootStore:s}),[C,P,N,W,s])}const Nb=h_&&Ro;function gA(e,t={}){const{enabled:n=!0,delay:r}=t,s="rootStore"in e?e.rootStore:e,{events:a,dataRef:l}=s.context,c=v.useRef(!1),f=v.useRef(null),d=v.useRef(!0),h=bi();v.useEffect(()=>{const b=s.select("domReferenceElement");if(!n)return;const y=xn(b);function k(){const T=s.select("domReferenceElement");!s.select("open")&&Ft(T)&&T===pr(Wt(T))&&(c.current=!0)}function S(){d.current=!0}function R(){d.current=!1}return Wi(Dt(y,"blur",k),Nb&&Dt(y,"keydown",S,!0),Nb&&Dt(y,"pointerdown",R,!0))},[s,n]),v.useEffect(()=>{if(!n)return;function b(y){if(y.reason===Bl||y.reason===Gv){const k=s.select("domReferenceElement");gt(k)&&(f.current=k,c.current=!0)}}return a.on("openchange",b),()=>{a.off("openchange",b)}},[a,n,s]);const m=v.useMemo(()=>{function b(){c.current=!1,f.current=null}return{onMouseLeave(){b()},onFocus(y){const k=y.currentTarget;if(c.current){if(f.current===k)return;b()}const S=gr(y.nativeEvent);if(gt(S)){if(Nb&&!y.relatedTarget){if(!d.current&&!Eh(S))return}else if(!Kz(S))return}const R=Ap(y.relatedTarget,s.context.triggerElements),{nativeEvent:T,currentTarget:E}=y,C=typeof r=="function"?r():r;if(s.select("open")&&R||C===0||C===void 0){s.setOpen(!0,Rt(gp,T,E));return}h.start(C,()=>{c.current||s.setOpen(!0,Rt(gp,T,E))})},onBlur(y){b();const k=y.relatedTarget,S=y.nativeEvent,R=gt(k)&&k.hasAttribute(Rc("focus-guard"))&&k.getAttribute("data-type")==="outside";h.start(0,()=>{const T=s.select("domReferenceElement"),E=pr(Wt(T));!k&&E===T||ht(l.current.floatingContext?.refs.floating.current,E)||ht(T,E)||R||Ap(k??E,s.context.triggerElements)||s.setOpen(!1,Rt(gp,S))})}}},[l,r,s,h]);return v.useMemo(()=>n?{reference:m,trigger:m}:{},[n,m])}class px{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new Oi,this.restTimeout=new Oi,this.handleCloseOptions=void 0}static create(){return new px}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose}const Pp=new WeakMap;function $p(e){if(!e.performedPointerEventsMutation)return;const t=e.pointerEventsScopeElement;t&&Pp.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty("pointer-events"),e.pointerEventsReferenceElement?.style.removeProperty("pointer-events"),e.pointerEventsFloatingElement?.style.removeProperty("pointer-events"),Pp.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function bA(e,t){const{scopeElement:n,referenceElement:r,floatingElement:s}=t,a=Pp.get(n);a&&a!==e&&$p(a),$p(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=s,Pp.set(n,e),n.style.pointerEvents="none",r.style.pointerEvents="auto",s.style.pointerEvents="auto"}function hx(e){const t=e.context.dataRef.current,n=zr(()=>t.hoverInteractionState??px.create()).current;return t.hoverInteractionState||(t.hoverInteractionState=n),Wv(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function yA(e,t={}){const{enabled:n=!0,closeDelay:r=0,nodeId:s}=t,a="rootStore"in e?e.rootStore:e,l=a.useState("open"),c=a.useState("floatingElement"),f=a.useState("domReferenceElement"),{dataRef:d}=a.context,h=ba(),m=Ul(),b=hx(a),y=bi(),k=Ke(()=>y_(d.current.openEvent?.type,b.interactedInside)),S=Ke(()=>Xz(d.current.openEvent?.type)),R=Ke(()=>{$p(b)});Ve(()=>{l||(b.pointerType=void 0,b.restTimeoutPending=!1,b.interactedInside=!1,R())},[l,b,R]),v.useEffect(()=>R,[R]),Ve(()=>{if(n&&l&&b.handleCloseOptions?.blockPointerEvents&&S()&&gt(f)&&c){const T=f,E=c,C=Wt(c),_=h?.nodesRef.current.find(B=>B.id===m)?.context?.elements.floating;_&&(_.style.pointerEvents="");const D=b.pointerEventsScopeElement!==E?b.pointerEventsScopeElement:null,A=_!==E?_:null,M=b.handleCloseOptions?.getScope?.()??D??A??T.closest("[data-rootownerid]")??C.body;return bA(b,{scopeElement:M,referenceElement:T,floatingElement:E}),()=>{R()}}},[n,l,f,c,b,S,h,m,R]),v.useEffect(()=>{if(!n)return;function T(){return!!(h&&m&&wo(h.nodesRef.current,m).length>0)}function E(B){const P=Op(r,"close",b.pointerType),N=()=>{a.setOpen(!1,Rt(Sr,B)),h?.events.emit("floating.closed",B)};P?b.openChangeTimeout.start(P,N):(b.openChangeTimeout.clear(),N())}function C(B){const P=gr(B);if(!Wz(P)){b.interactedInside=!1;return}b.interactedInside=P?.closest("[aria-haspopup]")!=null}function _(){b.openChangeTimeout.clear(),y.clear(),h?.events.off("floating.closed",A),R()}function D(B){if(T()&&h){h.events.on("floating.closed",A);return}if(Ap(B.relatedTarget,a.context.triggerElements))return;const P=d.current.floatingContext?.nodeId??s,N=B.relatedTarget;if(!(h&&P&&gt(N)&&wo(h.nodesRef.current,P,!1).some($=>ht($.context?.elements.floating,N)))){if(b.handler){b.handler(B);return}R(),S()&&!k()&&E(B)}}function A(B){!h||!m||T()||y.start(0,()=>{h.events.off("floating.closed",A),a.setOpen(!1,Rt(Sr,B)),h.events.emit("floating.closed",B)})}const M=c;return Wi(M&&Dt(M,"mouseenter",_),M&&Dt(M,"mouseleave",D),M&&Dt(M,"pointerdown",C,!0),()=>{h?.events.off("floating.closed",A)})},[n,c,a,d,r,s,S,k,R,b,h,m,y])}const K$={current:null};function vA(e,t={}){const{enabled:n=!0,delay:r=0,handleClose:s=null,mouseOnly:a=!1,restMs:l=0,move:c=!0,triggerElementRef:f=K$,externalTree:d,isActiveTrigger:h=!0,getHandleCloseContext:m,isClosing:b,shouldOpen:y}=t,k="rootStore"in e?e.rootStore:e,{dataRef:S,events:R}=k.context,T=ba(d),E=hx(k),C=v.useRef(!1),_=On(s),D=On(r),A=On(l),M=On(n),B=On(y),P=On(b),N=Ke(()=>y_(S.current.openEvent?.type,E.interactedInside)),W=Ke(()=>B.current?.()!==!1),$=Ke((U,H,K)=>{const q=k.context.triggerElements;if(q.hasElement(H))return!U||!ht(U,H);if(!gt(K))return!1;const Y=K;return q.hasMatchingElement(O=>ht(O,Y))&&(!U||!ht(U,Y))}),F=Ke(()=>{if(!E.handler)return;Wt(k.select("domReferenceElement")).removeEventListener("mousemove",E.handler),E.handler=void 0}),z=Ke(()=>{$p(E)});return h&&(E.handleCloseOptions=_.current?.__options),v.useEffect(()=>F,[F]),v.useEffect(()=>{if(!n)return;function U(H){H.open?C.current=!1:(C.current=H.reason===Sr,F(),E.openChangeTimeout.clear(),E.restTimeout.clear(),E.blockMouseMove=!0,E.restTimeoutPending=!1)}return R.on("openchange",U),()=>{R.off("openchange",U)}},[n,R,E,F]),v.useEffect(()=>{if(!n)return;function U(Y,O=!0){const j=Op(D.current,"close",E.pointerType);j?E.openChangeTimeout.start(j,()=>{k.setOpen(!1,Rt(Sr,Y)),T?.events.emit("floating.closed",Y)}):O&&(E.openChangeTimeout.clear(),k.setOpen(!1,Rt(Sr,Y)),T?.events.emit("floating.closed",Y))}const H=f.current??(h?k.select("domReferenceElement"):null);if(!gt(H))return;function K(Y){if(E.openChangeTimeout.clear(),E.blockMouseMove=!1,a&&!oa(E.pointerType))return;const O=Dw(A.current),j=Op(D.current,"open",E.pointerType),V=gr(Y),L=Y.currentTarget??null,X=k.select("domReferenceElement");let se=L;if(gt(V)&&!k.context.triggerElements.hasElement(V)){for(const Se of k.context.triggerElements.elements())if(ht(Se,V)){se=Se;break}}gt(L)&&gt(X)&&!k.context.triggerElements.hasElement(L)&&ht(L,X)&&(se=X);const ne=se==null?!1:$(X,se,V),oe=k.select("open"),le=P.current?.()??k.select("transitionStatus")==="ending",ce=!oe&&le&&C.current,Ee=!ne&&gt(se)&&gt(X)&&ht(X,se)&&ce,be=O>0&&!j,ue=ne&&(oe||ce)||Ee,ge=!oe||ne;if(ue){W()&&k.setOpen(!0,Rt(Sr,Y,se));return}be||(j?E.openChangeTimeout.start(j,()=>{ge&&W()&&k.setOpen(!0,Rt(Sr,Y,se))}):ge&&W()&&k.setOpen(!0,Rt(Sr,Y,se)))}function q(Y){if(N()){z();return}F();const O=k.select("domReferenceElement"),j=Wt(O);E.restTimeout.clear(),E.restTimeoutPending=!1;const V=S.current.floatingContext??m?.();if(Ap(Y.relatedTarget,k.context.triggerElements))return;if(_.current&&V){k.select("open")||E.openChangeTimeout.clear();const X=f.current;E.handler=_.current({...V,tree:T,x:Y.clientX,y:Y.clientY,onClose(){z(),F(),M.current&&!N()&&X===k.select("domReferenceElement")&&U(Y,!0)}}),j.addEventListener("mousemove",E.handler),E.handler(Y);return}(E.pointerType!=="touch"||!ht(k.select("floatingElement"),Y.relatedTarget))&&U(Y)}return c?Wi(Dt(H,"mousemove",K,{once:!0}),Dt(H,"mouseenter",K),Dt(H,"mouseleave",q)):Wi(Dt(H,"mouseenter",K),Dt(H,"mouseleave",q))},[F,z,S,D,k,n,_,E,h,$,N,a,c,A,f,T,M,m,P,W]),v.useMemo(()=>{if(!n)return;function U(H){E.pointerType=H.pointerType}return{onPointerDown:U,onPointerEnter:U,onMouseMove(H){const{nativeEvent:K}=H,q=H.currentTarget,Y=k.select("domReferenceElement"),O=k.select("open"),j=$(Y,q,H.target);if(a&&!oa(E.pointerType))return;if(O&&j&&E.handleCloseOptions?.blockPointerEvents){const X=k.select("floatingElement");if(X){const se=E.handleCloseOptions?.getScope?.()??q.ownerDocument.body;bA(E,{scopeElement:se,referenceElement:q,floatingElement:X})}}const V=Dw(A.current);if(O&&!j||V===0||!j&&E.restTimeoutPending&&H.movementX**2+H.movementY**2<2)return;E.restTimeout.clear();function L(){if(E.restTimeoutPending=!1,N())return;const X=k.select("open");!E.blockMouseMove&&(!X||j)&&W()&&k.setOpen(!0,Rt(Sr,K,q))}E.pointerType==="touch"?Mi.flushSync(()=>{L()}):j&&O?L():(E.restTimeoutPending=!0,E.restTimeout.start(V,L))}}},[n,E,N,$,a,k,A,W])}const Y$="Escape";function Nh(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function Id(e,t){return Nh(t,e===b_||e===Xv,e===Sh||e===wh)}function Ob(e,t,n){return Nh(t,e===Xv,n?e===Sh:e===wh)||e==="Enter"||e===" "||e===""}function X$(e,t,n){return Nh(t,n?e===Sh:e===wh,e===Xv)}function Z$(e,t,n,r){const s=n?e===wh:e===Sh,a=e===b_;return t==="both"||t==="horizontal"&&r?e===Y$:Nh(t,s,a)}function Q$(e,t){const{listRef:n,activeIndex:r,onNavigate:s=()=>{},enabled:a=!0,selectedIndex:l=null,allowEscape:c=!1,loopFocus:f=!1,nested:d=!1,rtl:h=!1,virtual:m=!1,focusItemOnOpen:b="auto",focusItemOnHover:y=!0,openOnArrowKeyDown:k=!0,disabledIndices:S=void 0,orientation:R="vertical",parentOrientation:T,id:E,resetOnPointerLeave:C=!0,externalTree:_,grid:D}=t,A=D!=null,M="rootStore"in e?e.rootStore:e,B=M.useState("open"),P=M.useState("floatingElement"),N=M.useState("domReferenceElement"),W=M.context.dataRef,$=Np(P),F=zy(N),z=On($),U=Ul(),H=ba(_),K=v.useRef(b),q=v.useRef(l??-1),Y=v.useRef(null),O=v.useRef(!0),j=Ke(ee=>{s(q.current===-1?null:q.current,ee)}),V=v.useRef(!!P),L=v.useRef(B),X=v.useRef(!1),se=v.useRef(!1),ne=v.useRef(null),oe=On(S),le=On(B),ce=On(l),Ee=On(C),be=Rl(),ue=Rl(),ge=Ke(()=>{function ee(we){m?H?.events.emit("virtualfocus",we):ne.current=yp(we,{sync:X.current,preventScroll:!0})}const fe=n.current[q.current],Q=se.current;fe&&ee(fe),(X.current?we=>we():we=>be.request(we))(()=>{const we=n.current[q.current]||fe;if(!we)return;fe||ee(we),Me&&(Q||!O.current)&&we.scrollIntoView?.({block:"nearest",inline:"nearest"})})});Ve(()=>{W.current.orientation=R},[W,R]),Ve(()=>{a&&(B&&P?(q.current=l??-1,K.current&&l!=null&&(se.current=!0,j())):V.current&&(q.current=-1,j()))},[a,B,P,l,j]),Ve(()=>{if(a){if(!B){X.current=!1;return}if(P)if(r==null){if(X.current=!1,ce.current!=null)return;if(V.current&&(q.current=-1,ge()),(!L.current||!V.current)&&K.current&&(Y.current!=null||K.current===!0&&Y.current==null)){let ee=0;const fe=()=>{n.current[0]==null?(ee<2&&(ee?re=>ue.request(re):queueMicrotask)(fe),ee+=1):(q.current=Y.current==null||Ob(Y.current,R,h)||d?bp(n):$y(n),Y.current=null,j())};fe()}}else cc(n.current,r)||(q.current=r,ge(),se.current=!1)}},[a,B,P,r,ce,d,n,R,h,j,ge,ue]),Ve(()=>{if(!a||P||!H||m||!V.current)return;const ee=H.nodesRef.current,fe=ee.find(we=>we.id===U)?.context?.elements.floating,Q=pr(Wt(N??fe??null)),re=ee.some(we=>we.context&&ht(we.context.elements.floating,Q));fe&&!re&&O.current&&fe.focus({preventScroll:!0})},[a,P,N,H,U,m]),Ve(()=>{L.current=B,V.current=!!P}),Ve(()=>{B||(Y.current=null,K.current=b)},[B,b]);const Se=r!=null,Ae=Ke(ee=>{if(!le.current)return;const fe=n.current.indexOf(ee.currentTarget);fe!==-1&&(q.current!==fe||r!==fe)&&(q.current=fe,j(ee))}),ke=Ke(()=>T??H?.nodesRef.current.find(ee=>ee.id===U)?.context?.dataRef?.current.orientation),xe=Ke(()=>bp(n,oe.current)),Re=Ke(ee=>{if(O.current=!1,X.current=!0,ee.which===229||!le.current&&ee.currentTarget===z.current)return;if(d&&Z$(ee.key,R,h,A)){Id(ee.key,ke())||Ui(ee),M.setOpen(!1,Rt(_w,ee.nativeEvent)),Ft(N)&&(m?H?.events.emit("virtualfocus",N):N.focus());return}const fe=q.current,Q=bp(n,S),re=$y(n,S);if(F||(ee.key==="Home"&&(Ui(ee),q.current=Q,j(ee)),ee.key==="End"&&(Ui(ee),q.current=re,j(ee))),D!=null){const we=D(ee,q.current,n,R,f,h,S,Q,re);if(we!=null&&(q.current=we,j(ee)),R==="both")return}if(Id(ee.key,R)){if(Ui(ee),B&&!m&&pr(ee.currentTarget.ownerDocument)===ee.currentTarget){q.current=Ob(ee.key,R,h)?Q:re,j(ee);return}Ob(ee.key,R,h)?f?fe>=re?c&&fe!==n.current.length?q.current=-1:(X.current=!1,q.current=Q):q.current=Ss(n.current,{startingIndex:fe,disabledIndices:S}):q.current=Math.min(re,Ss(n.current,{startingIndex:fe,disabledIndices:S})):f?fe<=Q?c&&fe!==-1?q.current=n.current.length:(X.current=!1,q.current=re):q.current=Ss(n.current,{startingIndex:fe,decrement:!0,disabledIndices:S}):q.current=Math.max(Q,Ss(n.current,{startingIndex:fe,decrement:!0,disabledIndices:S})),cc(n.current,q.current)&&(q.current=-1),j(ee)}}),Me=v.useMemo(()=>({onFocus(fe){X.current=!0,Ae(fe)},onClick:({currentTarget:fe})=>fe.focus({preventScroll:!0}),onMouseMove(fe){X.current=!0,se.current=!1,y&&Ae(fe)},onPointerLeave(fe){if(!le.current||!O.current||fe.pointerType==="touch")return;X.current=!0;const Q=fe.relatedTarget;if(!(!y||n.current.includes(Q))&&Ee.current&&(ne.current?.(),ne.current=null,q.current=-1,j(fe),!m)){const re=z.current,we=pr(Wt(re));re&&ht(re,we)&&re.focus({preventScroll:!0})}}}),[Ae,le,z,y,n,j,Ee,m]),ze=v.useMemo(()=>m&&B&&Se&&{"aria-activedescendant":`${E}-${r}`},[m,B,Se,E,r]),Fe=v.useMemo(()=>({"aria-orientation":R==="both"?void 0:R,...F?{}:ze,onKeyDown(ee){if(ee.key==="Tab"&&ee.shiftKey&&B&&!m){const fe=gr(ee.nativeEvent);if(fe&&!ht(z.current,fe))return;Ui(ee),M.setOpen(!1,Rt(vh,ee.nativeEvent)),Ft(N)&&N.focus();return}Re(ee)},onPointerMove(){O.current=!0}}),[ze,Re,z,R,F,M,B,m,N]),ye=v.useMemo(()=>{function ee(re){M.setOpen(!0,Rt(_w,re.nativeEvent,re.currentTarget))}function fe(re){b==="auto"&&Yv(re.nativeEvent)&&(K.current=!m)}function Q(re){K.current=b,b==="auto"&&m_(re.nativeEvent)&&(K.current=!0)}return{onKeyDown(re){const we=M.select("open");O.current=!1;const Pe=re.key.startsWith("Arrow"),Ye=X$(re.key,ke(),h),Ze=Id(re.key,R),bt=(d?Ye:Ze)||re.key==="Enter"||re.key.trim()==="";if(m&&we)return Re(re);if(!(!we&&!k&&Pe)){if(bt){const Je=Id(re.key,ke());Y.current=d&&Je?null:re.key}if(d){Ye&&(Ui(re),we?(q.current=xe(),j(re)):ee(re));return}Ze&&(ce.current!=null&&(q.current=ce.current),Ui(re),!we&&k?ee(re):Re(re),we&&j(re))}},onFocus(re){M.select("open")&&!m&&(q.current=-1,j(re))},onPointerDown:Q,onPointerEnter:Q,onMouseDown:fe,onClick:fe}},[Re,b,xe,d,j,M,k,R,ke,h,ce,m]),_e=v.useMemo(()=>({...ze,...ye}),[ze,ye]);return v.useMemo(()=>a?{reference:_e,floating:Fe,item:Me,trigger:ye}:{},[a,_e,Fe,ye,Me])}function J$(e,t){const{listRef:n,elementsRef:r,activeIndex:s,onMatch:a,disabledIndices:l,onTyping:c,enabled:f=!0,resetMs:d=750,selectedIndex:h=null}=t,m="rootStore"in e?e.rootStore:e,b=m.useState("open"),y=bi(),k=v.useRef(""),S=v.useRef(h??s??-1),R=v.useRef(null),T=Ke(_=>{function D(z){const U=r?.current[z];return!U||Th(U)}function A(z){return D(z)?l==null||!Dp(ko,z,l):!1}function M(z,U,H=0){if(z.length===0)return-1;const K=(H%z.length+z.length)%z.length,q=U.toLowerCase();for(let Y=0;Y<z.length;Y+=1){const O=(K+Y)%z.length;if(!(!z[O]?.toLowerCase().startsWith(q)||!A(O)))return O}return-1}const B=n.current;if(k.current.length>0&&_.key===" "&&(Ui(_),c?.(!0)),k.current.length>0&&k.current[0]!==" "&&M(B,k.current)===-1&&_.key!==" "&&c?.(!1),B==null||_.key.length!==1||_.ctrlKey||_.metaKey||_.altKey)return;b&&_.key!==" "&&(Ui(_),c?.(!0));const P=k.current==="";P&&(S.current=h??s??-1),B.every((z,U)=>z&&A(U)?z[0]?.toLowerCase()!==z[1]?.toLowerCase():!0)&&k.current===_.key&&(k.current="",S.current=R.current),k.current+=_.key,y.start(d,()=>{k.current="",S.current=R.current,c?.(!1)});const $=((P?h??s??-1:S.current)??0)+1,F=M(B,k.current,$);F!==-1?(a?.(F),R.current=F):_.key!==" "&&(k.current="",c?.(!1))}),E=Ke(_=>{const D=_.relatedTarget,A=m.select("domReferenceElement"),M=m.select("floatingElement");ht(A,D)||ht(M,D)||(y.clear(),k.current="",S.current=R.current,c?.(!1))});Ve(()=>{!b&&h!==null||(y.clear(),R.current=null,k.current!==""&&(k.current=""))},[b,h,y]),Ve(()=>{b&&k.current===""&&(S.current=h??s??-1)},[b,h,s]);const C=v.useMemo(()=>({onKeyDown:T,onBlur:E}),[T,E]);return v.useMemo(()=>f?{reference:C,floating:C}:{},[f,C])}const aE=.1,e3=aE*aE,pn=.5;function Md(e,t,n,r,s,a){return r>=t!=a>=t&&e<=(s-n)*(t-r)/(a-r)+n}function Dd(e,t,n,r,s,a,l,c,f,d){let h=!1;return Md(e,t,n,r,s,a)&&(h=!h),Md(e,t,s,a,l,c)&&(h=!h),Md(e,t,l,c,f,d)&&(h=!h),Md(e,t,f,d,n,r)&&(h=!h),h}function t3(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function Ld(e,t,n,r,s,a){const l=Math.min(n,s),c=Math.max(n,s),f=Math.min(r,a),d=Math.max(r,a);return e>=l&&e<=c&&t>=f&&t<=d}function xA(e={}){const{blockPointerEvents:t=!1}=e,n=new Oi,r=({x:s,y:a,placement:l,elements:c,onClose:f,nodeId:d,tree:h})=>{const m=l?.split("-")[0];let b=!1,y=null,k=null,S=typeof performance<"u"?performance.now():0;function R(E,C){const _=performance.now(),D=_-S;if(y===null||k===null||D===0)return y=E,k=C,S=_,!1;const A=E-y,M=C-k,B=A*A+M*M,P=D*D*e3;return y=E,k=C,S=_,B<P}function T(){n.clear(),f()}return function(C){n.clear();const _=c.domReference,D=c.floating;if(!_||!D||m==null||s==null||a==null)return;const{clientX:A,clientY:M}=C,B=gr(C),P=C.type==="mouseleave",N=ht(D,B),W=ht(_,B);if(N&&(b=!0,!P))return;if(W&&(b=!1,!P)){b=!0;return}if(P&&gt(C.relatedTarget)&&ht(D,C.relatedTarget))return;function $(){return!!(h&&wo(h.nodesRef.current,d).length>0)}function F(){$()||T()}if($())return;const z=_.getBoundingClientRect(),U=D.getBoundingClientRect(),H=s>U.right-U.width/2,K=a>U.bottom-U.height/2,q=U.width>z.width,Y=U.height>z.height,O=(q?z:U).left,j=(q?z:U).right,V=(Y?z:U).top,L=(Y?z:U).bottom;if(m==="top"&&a>=z.bottom-1||m==="bottom"&&a<=z.top+1||m==="left"&&s>=z.right-1||m==="right"&&s<=z.left+1){F();return}let X=!1;switch(m){case"top":X=Ld(A,M,O,z.top+1,j,U.bottom-1);break;case"bottom":X=Ld(A,M,O,U.top+1,j,z.bottom-1);break;case"left":X=Ld(A,M,U.right-1,L,z.left+1,V);break;case"right":X=Ld(A,M,z.right-1,L,U.left+1,V);break}if(X)return;if(b&&!t3(A,M,z)){F();return}if(!P&&R(A,M)){F();return}let se=!1;switch(m){case"top":{const ne=q?pn/2:pn*4,oe=q||H?s+ne:s-ne,le=q?s-ne:H?s+ne:s-ne,ce=a+pn+1,Ee=H||q?U.bottom-pn:U.top,be=H?q?U.bottom-pn:U.top:U.bottom-pn;se=Dd(A,M,oe,ce,le,ce,U.left,Ee,U.right,be);break}case"bottom":{const ne=q?pn/2:pn*4,oe=q||H?s+ne:s-ne,le=q?s-ne:H?s+ne:s-ne,ce=a-pn,Ee=H||q?U.top+pn:U.bottom,be=H?q?U.top+pn:U.bottom:U.top+pn;se=Dd(A,M,oe,ce,le,ce,U.left,Ee,U.right,be);break}case"left":{const ne=Y?pn/2:pn*4,oe=Y||K?a+ne:a-ne,le=Y?a-ne:K?a+ne:a-ne,ce=s+pn+1,Ee=K||Y?U.right-pn:U.left,be=K?Y?U.right-pn:U.left:U.right-pn;se=Dd(A,M,Ee,U.top,be,U.bottom,ce,oe,ce,le);break}case"right":{const ne=Y?pn/2:pn*4,oe=Y||K?a+ne:a-ne,le=Y?a-ne:K?a+ne:a-ne,ce=s-pn,Ee=K||Y?U.left+pn:U.right,be=K?Y?U.left+pn:U.right:U.left+pn;se=Dd(A,M,ce,oe,ce,le,Ee,U.top,be,U.bottom);break}}se?b||n.start(40,F):F()}};return r.__options={...e,blockPointerEvents:t},r}const pc="ArrowUp",hc="ArrowDown",Bp="ArrowLeft",Fp="ArrowRight",Oh="Home",Ih="End",kA=new Set([Bp,Fp]),n3=new Set([Bp,Fp,Oh,Ih]),SA=new Set([pc,hc]),r3=new Set([pc,hc,Oh,Ih]),wA=new Set([...kA,...SA]),EA=new Set([...wA,Oh,Ih]),i3="Shift",s3="Control",o3="Alt",a3="Meta",l3=new Set([i3,s3,o3,a3]);function u3(e){return Ft(e)&&e.tagName==="INPUT"}function lE(e){return!!(u3(e)&&e.selectionStart!=null||Ft(e)&&e.tagName==="TEXTAREA")}function uE(e,t,n,r){if(!e||!t||!t.scrollTo)return;let s=e.scrollLeft,a=e.scrollTop;const l=e.clientWidth<e.scrollWidth,c=e.clientHeight<e.scrollHeight;if(l&&r!=="vertical"){const f=cE(e,t,"left"),d=jd(e),h=jd(t);n==="ltr"&&(f+t.offsetWidth+h.scrollMarginRight>e.scrollLeft+e.clientWidth-d.scrollPaddingRight?s=f+t.offsetWidth+h.scrollMarginRight-e.clientWidth+d.scrollPaddingRight:f-h.scrollMarginLeft<e.scrollLeft+d.scrollPaddingLeft&&(s=f-h.scrollMarginLeft-d.scrollPaddingLeft)),n==="rtl"&&(f-h.scrollMarginRight<e.scrollLeft+d.scrollPaddingLeft?s=f-h.scrollMarginLeft-d.scrollPaddingLeft:f+t.offsetWidth+h.scrollMarginRight>e.scrollLeft+e.clientWidth-d.scrollPaddingRight&&(s=f+t.offsetWidth+h.scrollMarginRight-e.clientWidth+d.scrollPaddingRight))}if(c&&r!=="horizontal"){const f=cE(e,t,"top"),d=jd(e),h=jd(t);f-h.scrollMarginTop<e.scrollTop+d.scrollPaddingTop?a=f-h.scrollMarginTop-d.scrollPaddingTop:f+t.offsetHeight+h.scrollMarginBottom>e.scrollTop+e.clientHeight-d.scrollPaddingBottom&&(a=f+t.offsetHeight+h.scrollMarginBottom-e.clientHeight+d.scrollPaddingBottom)}e.scrollTo({left:s,top:a,behavior:"auto"})}function cE(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let s=0;for(;t.offsetParent&&(s+=t[r],t.offsetParent!==e);)t=t.offsetParent;return s}function jd(e){const t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}function c3(e){return $v(19)?e:e?"true":void 0}const f3=v.forwardRef(function(t,n){const{cutout:r,...s}=t;let a;if(r){const l=r.getBoundingClientRect();a=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${l.left}px ${l.top}px,${l.left}px ${l.bottom}px,${l.right}px ${l.bottom}px,${l.right}px ${l.top}px,${l.left}px ${l.top}px)`}return g.jsx("div",{ref:n,role:"presentation","data-base-ui-inert":"",...s,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:a}})});let fE={},dE={},pE="";function d3(e){if(typeof document>"u")return!1;const t=Wt(e);return xn(t).innerWidth-t.documentElement.clientWidth>0}function p3(e){if(!(typeof CSS<"u"&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||typeof document>"u")return!1;const n=Wt(e),r=n.documentElement,s=n.body,a=ga(r)?r:s,l=a.style.overflowY,c=r.style.scrollbarGutter;r.style.scrollbarGutter="stable",a.style.overflowY="scroll";const f=a.offsetWidth;a.style.overflowY="hidden";const d=a.offsetWidth;return a.style.overflowY=l,r.style.scrollbarGutter=c,f===d}function h3(e){const t=Wt(e),n=t.documentElement,r=t.body,s=ga(n)?n:r,a={overflowY:s.style.overflowY,overflowX:s.style.overflowX};return Object.assign(s.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(s.style,a)}}function m3(e){const t=Wt(e),n=t.documentElement,r=t.body,s=xn(n);let a=0,l=0,c=!1;const f=Lr.create();if(Ro&&(s.visualViewport?.scale??1)!==1)return()=>{};function d(){const y=s.getComputedStyle(n),k=s.getComputedStyle(r),T=(y.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";a=n.scrollTop,l=n.scrollLeft,fE={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},pE=n.style.scrollBehavior,dE={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};const E=n.scrollHeight>n.clientHeight,C=n.scrollWidth>n.clientWidth,_=y.overflowY==="scroll"||k.overflowY==="scroll",D=y.overflowX==="scroll"||k.overflowX==="scroll",A=Math.max(0,s.innerWidth-r.clientWidth),M=Math.max(0,s.innerHeight-r.clientHeight),B=parseFloat(k.marginTop)+parseFloat(k.marginBottom),P=parseFloat(k.marginLeft)+parseFloat(k.marginRight),N=ga(n)?n:r;if(c=p3(e),c){n.style.scrollbarGutter=T,N.style.overflowY="hidden",N.style.overflowX="hidden";return}Object.assign(n.style,{scrollbarGutter:T,overflowY:"hidden",overflowX:"hidden"}),(E||_)&&(n.style.overflowY="scroll"),(C||D)&&(n.style.overflowX="scroll"),Object.assign(r.style,{position:"relative",height:B||M?`calc(100dvh - ${B+M}px)`:"100dvh",width:P||A?`calc(100vw - ${P+A}px)`:"100vw",boxSizing:"border-box",overflow:"hidden",scrollBehavior:"unset"}),r.scrollTop=a,r.scrollLeft=l,n.setAttribute("data-base-ui-scroll-locked",""),n.style.scrollBehavior="unset"}function h(){Object.assign(n.style,fE),Object.assign(r.style,dE),c||(n.scrollTop=a,n.scrollLeft=l,n.removeAttribute("data-base-ui-scroll-locked"),n.style.scrollBehavior=pE)}function m(){h(),f.request(d)}d();const b=Dt(s,"resize",m);return()=>{f.cancel(),h(),typeof s.removeEventListener=="function"&&b()}}class g3{lockCount=0;restore=null;timeoutLock=Oi.create();timeoutUnlock=Oi.create();acquire(t){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(t)),this.release}release=()=>{this.lockCount-=1,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(t){if(this.lockCount===0||this.restore!==null)return;const r=Wt(t).documentElement,s=xn(r).getComputedStyle(r).overflowY;if(s==="hidden"||s==="clip"){this.restore=Zn;return}const a=kh||!d3(t);this.restore=a?h3(t):m3(t)}}const b3=new g3;function y3(e=!0,t=null){Ve(()=>{if(e)return b3.acquire(t)},[e,t])}function v3(e){const t=v.useRef(""),n=v.useCallback(s=>{s.defaultPrevented||(t.current=s.pointerType,e(s,s.pointerType))},[e]);return{onClick:v.useCallback(s=>{if(s.detail===0){e(s,"keyboard");return}"pointerType"in s?e(s,s.pointerType):e(s,t.current),t.current=""},[e]),onPointerDown:n}}function TA(e,t){const n=v.useRef(e),r=Ke(t);Ve(()=>{n.current!==e&&r(n.current)},[e,r]),Ve(()=>{n.current=e},[e])}function x3(e,t){const n=Ke((a,l)=>{(typeof e=="function"?e():e)||t(l||(kh?"touch":""))}),{onClick:r,onPointerDown:s}=v3(n);return v.useMemo(()=>({onClick:r,onPointerDown:s}),[r,s])}function k3(e){const[t,n]=v.useState(null),r=x3(e,n);return TA(e,s=>{s&&!e&&n(null)}),v.useMemo(()=>({openMethod:t,triggerProps:r}),[t,r])}const S3=v.createContext(void 0);function Di(){return v.useContext(S3)?.direction??"ltr"}const w3="0account 1dd 1gent 5-circle 6square 5s 6-swarm 1larm-clock 2ert 1rchive 2my-base 2row-bend-up-left eright 7lock-bend-up-left cdown cleft dine-down hleft hright hup cright cup 7racket-from-down jleft jright jup l-dashed eto-down hleft hright hup 6ccw 7ircle-down dleft dright dup 7w 6down 6elbow-down-left hright cup-left fright 6left a-down bup 6right b-down cup 6square-down dfrom-down ileft iright iup dleft h-down itop iup dright i-down jtop jup dto-down gleft gright gup dup 7wap 6u-up-left bright 7p 5s-both-horizontal cvertical 7ccw a-angular 8ontract f-simple 8w 7down-up 7elbow-up-left 8xpand d-simple 7left-right 7out-cardinal 1sterisk 1t 2om 0bandaid 3knote 8s-stack 2rbell 2sketball 1each-umbrella 3ker 6-stop 2ehouse 2ll 4-dot 5slash 1inary 3oculars 1luetooth 1oard-kanban 2ok 4-open 4mark 4s 2wtie 1racket 7-dot 8error 7s-curly e-dot fx 9square 3in 5-hourglass 6simple cst 7lash 2iefcase 2owser 7s 2ush 1ug 3bot 2ilding 8s 2llseye 0calculator 3endar 8-hourglass 2mera 2r 3dholder 2stle 1d 1hart-bars 6line 6pie 7yramid 6scatter 3t-bubble b-chevrons-left-right cellipsis dxclamation cpencil dlus g-center cquestion bs c-grid 4Bubble a-ellipsis cxclamation bquestion as 2eck 5-circle 6square 5s 3f-hat 3ss-king 6tower 3vron-circle-down fleft fright fup 8down c-small 8left c-small 8right d-small 8up a-small 7s-down d-up 9left d-right 9right e-dotted-left 9up b-down 2ip 4-simple 1ircle 6-circle 7dashed 6s 7-check 1lipboard 2ock 3ne 3se 3ud 5-arrow-down cup 6download 6upload 1ode 4-brackets 5simple 2g 2llection a-plus 3or-mode 2mmand 4ent 7-dashed 9iscussion 9ot 7s 3pass 7-check 8dot 2nversation 2okie 2pilot 3y 2rners-in 8out b-check csparkle 2st-high 5low 5medium 1redit-card 2oss-medical 5hair 3wn 2ystal-ball 1ube 4-coordinates 5nodes 5transparent 2rrency-btc 9dollar 9eth 3sor-logo 7text 2tlery 1ylinder 0dashboard 2tabase 8-network 1ebug-pause 6restart 6start 8op 2ckchair-umbrella 2sktop-download 2vice-camera d-video 7desktop 7mobile 1iagram 2ff 4-added 5ignored 5modified 6ultiple 5removed 7named 5single b-arrow-right-up cdot 2scard 3play 7-check 9ircle 9onnect 8play 8waves 7s 1ots-3-horizontal 7vertical 1rop 0easel 1dit 1lephant 2lipsis 1nvelope 8-open 1raser 2ror 1xclamation-circle ctriangle 2ecution-parallel asequential 2tensions 1ye 3-closed 4slash 0fast-backward 5forward 1eedback 1ile 4-add 6rrow-right-up 5binary 5chevrons-left-right 6ode 5directory e-create 5image 5list 6ock 5media 5pdf 6lus 5text 6ype-adobe-illustrator gphotoshop ababel czel bevy bicep comejs bower bun ac-plus-plus csharp blojure brystal buda adart bocker aejs blixir bslint af-sharp birebase ageckodriver bit-meta bo cdot brails dphql coovy cunt bulp ahaml cndlebars cskell aionic ajava escript bulia cpyter akarma botlin alatex biquid amaven bustache anpm bunjucks aocaml bdata apdf berl blatformio bowershell brettier cisma colog buppet bython areason cscript bollup bust asass bbt bcala blim btylus bublime bvelte bwift aterraform bypescript avala bite bsc bue aweb-assembly dpack bindows ayarn azig 5zip 4s 3m-reel 5strip 3ter 1lag 4-hill 3me 3sk 5-slash-circle 2oppy-disc 1ocus-window 2ld-dashed 4er 6-active 8rrow-right-up 7check 7dashed 7library 7open bed 7plus 6s 2rk 1unnel 6-simple 0game-controller f-retro 2uge 1ear 2m 1ift 2t-branch 4commit a-horizontal 7pare 4fetch 5ork 4merge 4pull 8-request g-closed ireate hdone iraft 6sh 3hub 6-actions 1lobe 1raduation-cap 3ph 5-line 6scatter 2id 4-plus 5sparkle 3pper 0hamburger 3mer 2sh 2t 1eadphones 4set 3rt 2xagon 1istory 1ome 2urglass 3se 0i-circle 1mage 5-square 1nbox 2finity 3o 2spect 1ssue 5-closed 6draft 5s 0joystick 1son 0kebab-horizontal 6vertical 2y 3board 8-tab 0laptop 2yers 3out-dialog 7empty 7floating-window 7panel-bottom j-dock kon kundock doff 7sidebar-left j-dock koff ln kundock fright k-dock loff mn lundock 8plit-horizontal n-dashed oright-dock uundock dvertical 1eaf 2go 1ibrary 2ghtbulb 9-sparkle 5ning 2nk 4-external 2st-bullets 5checks 5filter 5ordered 5todo 9-subtask 5x 1oading 2cation 3k 4-locked 5unlocked 2go-azure a-devops 5figma 5git 8hub 8lab 5jira 5linear 5markdown 6cp 6icrosoft-teams 5notion 5python 5sentry 6lack 5vscode b-insiders 5x 0mac-mini 2gic-wand 3net 4ifying-glass g-fuzzy hminus hplus hslash-circle iparkle aGlass f-minus gplus gslash-circle 2il 2p 3-pin 2rk-github 4down 2sk-happy 4s-happy 1cp 1egaphone 2ntion 3u 2rge 1ic 3roscope 2nus 5-circle 6small 1obile 2on 4-sparkle 5z 2re 1usic 2te 0new-file 5older 3spaper 1ote 0one-circle 1rganization c-filled 1wl 0package 7-zipper 2int-roller 2lette 2perclip 5plane 2ragraph 2ss 2use 5-circle 2w 1en-nib 3cil 6-square 3tagon 2ople 6-3 2rcent 3son 6-add 7chat-bubble 8ircle 7follow 7plus 1iano 2e-chart 2lcrow 2n 3-slash 2pe 1lan 4e 3y 4-bug 5circle 5slow 6uper-fast 4back-loop 4s-bug 2ug 4-slash 3s 4-circle 5minus 1ointer-arrow 1ug 2lse 2zzle-piece 0question 8-circle 2ote 0radar 3io-tower 1ect-magnifying-glass fGlass 2do 2fresh 2gex 2mote-control 4ve 6-close 2place 7-all 3ort 2turn 2view 1obot 2cket 4ing-chair 1ss 1uler 4s 2n 0satellite 1cales 1eal 4-check 5question 3rch 6-stop 2nd 2rver 6s 2ttings 8-gear 1hapes-square-circle 3re 2ield 6-check 7question 7x 2oe-fast 3pping-bag bsket 1ignal 1kills 6-capability 1lash-circle 2iders 1martwatch 2iley-happy c-square 7neutral 7plus 7sad 1nowflake 1occer-ball 2rt-ascending 5descending 2urce-control 1parkle 7s 2eaker-hifi 8waves 8x 2inner 2lit 5-horizontal 6vertical 2rint 1quare 6-dashed 8ot 6s 7-minus 8plus 8x 1tack 3r 4-empty 5full 3tus-done 8raft 7needs-attention 2op 4-circle 4watch 3refront 1un 1watches 1ymbol-folder 2nc 0t-shirt 1able 3s 2g 3s-chevron-down dleft dright dup 2rget 1erminal 8-rectangle 2xt-aa 6b 5b 5c 5d 5italic 5j 5r 5s 6trikethrough 5t 6-square 6t 5y 1hinking-high 9low 9medium 2reads-parallel 8single 4e-bars 2umbs-down 7up 9-down 6down 6up 1raffic-cone 7Cone 3sh 5can 3y 2easure-chest 3nding-down 9up 2iangle-small-down fleft fright fup 1wig 0unfold-dashed 2lock 2mute 2verified 0vault 1erified 3sions 1ideo-camera 1m 1r 2-headset a-head 0wallet 2nd 2rning 2tch 2veform 1hole-word 1indow 6-pointer-arrow 6s 1rench 0x 1-circle 0yarn 0zap 1ipper 1oom-in 5out 1zz",E3="1ajd -8p 1wz t 1 1 -w ah -273 18 1wb a9 3 -6 -ke 1 iy 2 2 2 -j3 1 3s 1 a -1f5 -1 -1 1f6 -1 -1 -1ok 8a 1 1 1 -5k -4d 9c 1ww 1 1 -269 1m4 1 -1m4 1m5 -zs 10y 2q -1 -1ra 8u 1ft 7 -1 0 -7 6 -114 0 -k 145 -1r8 1r7 -2k -1ez c9 13u -1od -8 1m9 1x -1v 1w -1v -1na 1nb k4 -i9 -1u -1dw -4p il -a2 1jz 1 5n -5m 1 1 1 -1xc a0 1nd -1w8 6w 32 -80 3k 1qr -1sb 1r8 -1v4 1 6v 1ue -1yb 5y 1 -5z 5y 1 -9o l9 1bp 1 1 1 -1w3 2 39 i8 -lg bu 1k7 1 -1mx 1my -1w2 1ut -1tn 1ux 1 1 1 -1tv 67 2 1md -1me c2 -9q 1ed -1l6 ht 1k2 1 -oa 7o 5w -1an 14n -1l6 1dm 7o -1pa lk 108 -1ep 1p2 1 1 8d 2 2 2 -24o 1lr -1lq 1lr -1lq 1lr -1lq 1lr -1k3 2 kf zn 1y -11z -k2 k7 -c2 1kx -1np -e es -mc bb bf -9 -dw c6 -d4 -6g 1 -1 1 1vr -1xc 1xd -1ub 1lz c -1np 1le -1nx bn 1fm -1fq -8z 7i 2 -1 1h6 70 -1mk -1w -3j -1 1hq ab -1e 1 1 -1uc 1vp 1 6n -6m -1ac 1ad -1ah 103 af 1 1 -1a3 10r 9d 1 1 -1vt 1vu -70 -1oq 1oo -1it 1pw -1w7 o -1 -2n 2p 1tv -1tp -5 1 1 91 -90 1 8y -n 1 ae -lk 73 1 1b -1a 1zf 1 -26j 44 1yc -4a -1yf 21u -21l 4g -1 hx -m1 mt -nk 1wk 1 -1t7 -3a 1qg -1n5 1tb 1 -5n -1qp lu -in -37 32 -32 8 -3 2y a1 -9l -g 1 iq 1ce 41 -2 28 -p 5 -16 46 -18 1a -5x 1 j 4 2x 2e -7a 58 -2m 1y -2j x r -3o 1 3v -s -32 4j 1e -y o -b -2z -2c 1 1 1 3e -3d 1 34 1f k -1x c r 1k -2t u 21 -1u -1m 4o -2y m -2m -24 4u -s -41 1 2q 24 -3m 3q -12 -x -2y 1 1 1 3f -3e 3c -3b 14 -13 1 3f p -24d 39 1v0 1 -1v0 9a -7z -1a -3d a0 -46 ij 3 -o6 37 -9 9 23b -1wu -6g -38 -3 30 1tf -1ta 42 1qz 1 -1w2 17 28 -27 jf -jc 1l3 -1l2 80 -ca 4b 1u -64 ae -u 3u -2z -4a -59 3f 2 w -u 67 1 1od 1 1 -1um 1un -1bs 1dm -1t 1 1 -1up 1xy -21l 3o jt -jt -42 de 1ae -1jn hx -m2 9p -5h j2 -dd df 1bf -1ug -43 44 1 ij -a8 ba -e8 1x9 1 1 -1w0 20 -2f 1d7 -1cs 1 20 -20 -f 18n -18a 23 -23 -c 18n -15r -1 1be 1 -1in 1sh 1 -1ql -8r bz be -id k1 -1t -ky 5s -31 je 191 -1uu ln -j4 -4l 0 73 2s g 1mq ad -26z 1wn 54 -53 -7n -1ci 1p9 -53 -1kk 1po -53 -1l1 1 -54 1rs -1p7 -x -8x bk -3v -1 -1f 76 -df 7p -1 -1f -1e 6h -6j -46 49 1u6 1 -1lx -89 8n -5d n 2v -bd 5e 1ib b3 -1w2 1l0 b3 1 -1yr bj -6v h5 -lp 1yo -1u2 1ru -1wi 0 24k -1zt 1us -s 1 -1lq -1x 1ci -10n 142 -3e b5 -b4 -1o0 oa 1ds -21r 1yu -1mp -cs 9y -1j 3 1g 0 25 -1i -2v -2a 1r4 85 -gc b5 -7v -1jd l 1ob 1 -l -1m9 -4v -2l -34 1jm 5s -1bf 1sd -20j 1tx -b5 -1ir 1 1tw -1tv 1lp 0 -1lm 0 1 21d -21a g7 15b 0 -1lb 4o 1dp -1c7 -64 1tg -1td -4x 1vi -56 7z -1uv 1jq -1gx -1 -7d 69 5d 1og -1tr 2 -2i 1vm -1n9 -5u 32 2 -1 1q1 1 1 1 -1ny 0 -9f 45 1hz -51 gb -ga -1ds 1dq gd 1 -bb 1 -113 -bo 0 1o2 -1sd -29 iu 19h -1jn -79 1qn -1x0 270 -a3 -1uw a 5s -5w 7l -a0 0 6n gx 1 1 13z -1iu 1o3 2z -ba bb -1z5 -c 1zi -1qm 1dz -1nc 26w 2 2 2 -1vw 1sm -22x 18 3h -3v 20b -2 -1xb 1yi -12 2b 1 -fr -19 -1g8 1va -54 1 1 -r 1 -1ph fg 1 1l8 -1l9 1 14m 0 -1qk 0 3s 1vh 1 1 -1sq 1 1 1 1w2 -1ej -hg 1 1 1sj -1si 1 -4f -2n 1zk 60 1 -60 -1ob -bo 7k 1sg -1se 1 2a 1da -1g2 et -l7 230 -1s3 1od -1sc 1 1sc",T3="01070e0f0g0h0i0j0k0l0r0w0x0y0z11161718191a1b1c1h1i1j1k1l1m1n1o1t1x2c2d2q2t2v2w2y2z323c3d3f3n3r3u3x3y3z444547484a4b4c4d4e4j4k4l4m4n4o4p4q4r4s4t4u5556585b5c5d5e5l5m5n5o5p5q5t5w5z6061626a6d6f6h6i6k6l6m6r6t6v6w6z7071727475767778797a7b7e7f7l7o7r7t7w7x818287888b8d8e8m8n8o8p8q8r8s8t8u8v8w8x8y8z909192939495969798999a9b9c9d9e9f9g9h9i9j9k9l9m9n9o9p9q9r9s9t9u9v9w9x9y9za0a1a2a3a4a5a6a7a8a9aaabacadaeafagahaiajakalamanaoapaqarasatauavawayb0b5b6b8bfbobpbrbsbtbubwbxbybzc0c1c2c3c4c7cccdcicmcncsctcucxczd0d2d4d9dadbdfdjdkdmdpdrdudye2e3e4e6ebefegeheif4f6f7fafbfcfefgfifnfqfsftfvfwg0g1g9gagbgdgfggghgigjgogsgzh1h3h4h6h8hdhfhghihjhnhwhxhyi4iaidieigiiiliminipiqirisixiyizj0j2j4j6jbjcjdjfjgjjjkjmjpjqjrjsjtjujvjxjzk0k1k4k6k9kakbkckdkekfkikjkmknkpkqktkukwl3l4l6l7lalblklmlnlqlrlsltlym1m3m5m7m8m9mambmcmd",R3="1c6d br -fj 1 ep 2 2 2 -eu 1 ap -ao 1 1 1 1 3 -2 1 4 -2 1 2 3 -2 1 0 4 -2 1 0 2 1 1 93 4a -dc 1 1 aj 2q 0 -d8 1 1 1 8p -8o 4 -3 1 1 2 -1 -2 1 2 3 -2 1 dv 2 2 2 -dy -1 3 -1 3 -1 3 -1 3 -1 2 1 8 34 -3b 8f -8e 2 -1 2 1 -l m -m ac -76 -2j 1 bp -bm -2 1 8a -g -7s 1 -1qm 2j 1qq -3m 3t -2l 1e -1f -7 1 1 1 1 1 1 2r -2p dc -43 -v -8d 2n -2m 1 1 -19 1a 0 0 5 7f 1c -2 28 -p 5 -16 46 -18 1a -3q 1 -1o 4 2x 2e -6p 4n -2m 1y -2j x r -33 50 -1p -s -2i 3z 1e -y o -b -2z -1s 28 2m -4t 2w -28 -n 2n 1f k -1x c r 1k -2t 2e h -1u -1m 4o -2y m -2m -1n 4d -s -3k 1 29 24 -3m 3q -12 -x 29 -4q 1 4o -1o -2z 2x -2w p -o 1 30 p -b0 1 7d -7c 1 1 1 0 -v w 1 2 -1 2 1 1 6 -1 -4 1 1 1 3 1 d8 1 -61 -77 7u -7t 2 -1 -1 3 -1v 13 bv -b2 2 1f -1e 0 1 0 1 0 1 1 8v -7t -11 -u v 6 -5 0 1 3 -2 1 1 -2 1 -17 19 av -dk 2q 2 -1 2 1 1 q 99 -2p 34 -4a -63 6e -8w -1pu 1sd 74 -73 -2q 2r 9d -9c -1px 1py 1 2 -1 2 an -am bn -c1 1c -x -1q4 1q6 -1 -k 8 j -2l 86 -5n -3 1 1 7 0 -5 1 1 1 1 -1r 1s 0 1 1 -15 1 15 4 -3 1 1 2 1 0 -3e 13 -17o 1a0 1 -25 7d 6d -bk an 2 2 2 -as 9l -3v -2 17 -12 -2 -5q 66 3k 1 -1 1 -9q 0 75 -8i z -c r 1 -2l 24 5s -5a 1 2 -1 7g -80 9q -am -1",hE=2;function C3(e){const t=[];let n="";for(const r of e.split(" "))n=n.slice(0,Number.parseInt(r[0],36))+r.slice(1),t.push(n);return t}function RA(e){const t=[];let n=0;for(const r of e.split(" "))n+=Number.parseInt(r,36),t.push(String.fromCharCode(n));return t}const Up=C3(w3);function _3(){const e=RA(E3),t={};for(let n=0;n<Up.length;n++)t[Up[n]]=e[n];return t}function A3(){const e=RA(R3),t={};for(let n=0;n<e.length;n++){const r=Number.parseInt(T3.slice(n*hE,(n+1)*hE),36);t[Up[r]]=e[n]}return t}const CA=_3(),N3=A3(),O3={...CA,...N3};function I3(e,t="outline"){return t==="filled"?O3[e]:CA[e]}const M3={root:{km0Bbg:"ui-ngwomw",$$css:!0}},D3=new Set(["ui-progress-spin","cursor-icon-spin"]);function L3(e){if(!(!e||typeof CSSAnimation>"u"))for(const t of e.getAnimations({subtree:!0}))t instanceof CSSAnimation&&D3.has(t.animationName)&&(t.startTime=0)}const Hy=v.createContext(void 0);function Is({iconSize:e,iconButtonSize:t,iconButtonVariant:n,iconButtonTone:r,iconButtonRootStyle:s,iconButtonIconStyle:a,iconButtonIconSize:l,buttonSize:c,buttonRootStyle:f,buttonVariant:d,buttonTone:h,buttonIconSize:m,buttonRounded:b,buttonFullWidth:y,menuSize:k,disabled:S,children:R}){const T=v.useContext(Hy),E=v.useMemo(()=>({iconSize:e??T?.iconSize,iconButtonSize:t??T?.iconButtonSize,iconButtonVariant:n??T?.iconButtonVariant,iconButtonTone:r??T?.iconButtonTone,iconButtonRootStyle:s??T?.iconButtonRootStyle,iconButtonIconStyle:a??T?.iconButtonIconStyle,iconButtonIconSize:l??T?.iconButtonIconSize,buttonSize:c??T?.buttonSize,buttonRootStyle:f??T?.buttonRootStyle,buttonVariant:d??T?.buttonVariant,buttonTone:h??T?.buttonTone,buttonIconSize:m??T?.buttonIconSize,buttonRounded:b??T?.buttonRounded,buttonFullWidth:y??T?.buttonFullWidth,menuSize:k??T?.menuSize,disabled:S??T?.disabled}),[y,h,m,f,b,c,d,S,l,a,r,s,t,n,e,k,T]);return g.jsx(Hy.Provider,{value:E,children:R})}function ya(){return v.useContext(Hy)}const j3="sm",z3=/(^|-)(left|right)(-|$)/,P3=new Set(["history","link-external","list-bullets","list-ordered","quote","redo","return"]),$3=new Set(Up.filter(e=>z3.test(e)||P3.has(e))),Xt={base:{kKX8nH:"ui-1j61x8r",k63SB2:"ui-etm3q0",kGuDYH:"ui-1tachi3",kMv6JI:"ui-1qt6sjn",kLWn49:"ui-o5v014",k1xSpc:"ui-3nfvp2",kGNEyG:"ui-6s0dn4",kjj79g:"ui-l56j7k",kMwMTN:"ui-1heor9g",kzqmXN:"ui-1oai4fc",kZKoxP:"ui-higkf7",kXLuUW:"ui-xymvpz",kMnn75:"ui-krqix3",kJwUce:"ui-1403hyl",k9WMMc:"ui-2b8uid",kP9fke:"ui-6mezaz",khiITx:"ui-vmahel",kTUp5R:"ui-lh3980",kfSwDN:"ui-87ps6o",kO7zv1:"ui-1winvzj","--icon-size":"ui-1u4itkb","--icon-weight":"ui-1q5xvfy",keTefX:"ui-jb5y04",k71WvV:"ui-1bxnb1t",kQmYQc:"ui-1ehclkv",kgeoSG:"ui-1yj7g93",$$css:!0},noPresetSize:{$$css:!0},sizeXs:{"--icon-size":"ui-aiyo0p",$$css:!0},sizeSm:{"--icon-size":"ui-1u4itkb",$$css:!0},sizeBase:{"--icon-size":"ui-xfpx3u",$$css:!0},sizeLg:{"--icon-size":"ui-1qxde8p",$$css:!0},sizeXl:{"--icon-size":"ui-dyy2ci",$$css:!0},size2xl:{"--icon-size":"ui-7lg4th",$$css:!0},noColor:{$$css:!0},colorPrimary:{kMwMTN:"ui-1nqczng",$$css:!0},colorSecondary:{kMwMTN:"ui-1mh7f6w",$$css:!0},colorTertiary:{kMwMTN:"ui-1lbmi28",$$css:!0},colorQuaternary:{kMwMTN:"ui-1qh17o",$$css:!0},colorGitAdded:{kMwMTN:"ui-15wwr8d",$$css:!0},colorGitModified:{kMwMTN:"ui-eedwss",$$css:!0},colorGitRemoved:{kMwMTN:"ui-fowoju",$$css:!0},colorGitUntracked:{kMwMTN:"ui-1p7vtww",$$css:!0},colorCyan:{kMwMTN:"ui-1rbygr4",$$css:!0},colorBlue:{kMwMTN:"ui-101qeuz",$$css:!0},colorRed:{kMwMTN:"ui-ku4wcm",$$css:!0},colorGreen:{kMwMTN:"ui-p6nzhx",$$css:!0},colorSuccess:{kMwMTN:"ui-i75md2",$$css:!0},colorDanger:{kMwMTN:"ui-3pdtkl",$$css:!0},colorYellow:{kMwMTN:"ui-1hn9r2r",$$css:!0},colorMagenta:{kMwMTN:"ui-pwp9en",$$css:!0},colorOrange:{kMwMTN:"ui-4qtrdv",$$css:!0},colorPurple:{kMwMTN:"ui-1b0hn6l",$$css:!0},colorAccent:{kMwMTN:"ui-scuw3h",$$css:!0},colorBrand:{kMwMTN:"ui-v3vxec",$$css:!0},noModifier:{$$css:!0},modifierSpin:{kKVMdj:"ui-138fvbv",k44tkh:"ui-lmf4m6",kyAemX:"ui-1esw782",ko0y90:"ui-a4qsjk",$$css:!0},modifierDisabled:{kSiTet:"ui-ti2d7y",$$css:!0},modifierHidden:{k33iCy:"ui-lshs6z",$$css:!0},capTrim:{kQypYc:"ui-13zi6q3",$$css:!0}};function B3(e,t,n){return[Xt.base,_A(e),F3(t),U3(n)]}function mx(e){return typeof e=="string"&&!e.startsWith("var(")}function _A(e){if(!mx(e))return Xt.noPresetSize;switch(e){case"xs":return Xt.sizeXs;case"sm":return Xt.sizeSm;case"base":return Xt.sizeBase;case"lg":return Xt.sizeLg;case"xl":return Xt.sizeXl;case"2xl":return Xt.size2xl}}function F3(e){switch(e){case"primary":return Xt.colorPrimary;case"secondary":return Xt.colorSecondary;case"tertiary":return Xt.colorTertiary;case"quaternary":return Xt.colorQuaternary;case"git-added":return Xt.colorGitAdded;case"git-modified":return Xt.colorGitModified;case"git-removed":return Xt.colorGitRemoved;case"git-untracked":return Xt.colorGitUntracked;case"cyan":return Xt.colorCyan;case"blue":return Xt.colorBlue;case"red":return Xt.colorRed;case"green":return Xt.colorGreen;case"success":return Xt.colorSuccess;case"danger":return Xt.colorDanger;case"yellow":return Xt.colorYellow;case"magenta":return Xt.colorMagenta;case"orange":return Xt.colorOrange;case"purple":return Xt.colorPurple;case"accent":return Xt.colorAccent;case"brand":return Xt.colorBrand;case void 0:return Xt.noColor}}function U3(e){switch(e){case"spin":return Xt.modifierSpin;case"disabled":return Xt.modifierDisabled;case"hidden":return Xt.modifierHidden;case void 0:return Xt.noModifier}}function q3(e){if(!(typeof e!="string"||e.length===0))return`"${e}"`}function qt({name:e,modifier:t,syncSpin:n=!0,variant:r="outline",size:s,color:a,capTrim:l=!1,className:c,rootStyle:f,style:d,title:h,"aria-label":m,"aria-hidden":b,ref:y}){const k=ya(),S=v.useCallback(A=>{typeof y=="function"?y(A):y&&(y.current=A),A&&t==="spin"&&n&&L3(A)},[y,t,n]),R=s??k?.iconSize??j3,T=mx(R),E=Di()==="rtl"&&$3.has(e),C=q3(I3(e,r)),_={...C?{"--cursor-icon-content":C}:{},...T?{}:{"--icon-size":typeof R=="number"?`${R}px`:R},...d},D=Yt({rootClass:"ui-icon",stylexStyles:[B3(R,a,t),E&&M3.root,l&&Xt.capTrim,f],className:sn("cursor-icon",c),style:_});return g.jsx("i",{ref:S,className:D.className,"data-icon-name":e,"data-size":T?R:void 0,"data-color":a,style:D.style,title:h??m,"aria-hidden":b??(m?void 0:!0)})}const H3=v.createContext({root:null});function va(){return v.useContext(H3).root}const V3={dropdown:"--ui-portal-layer-z-index-dropdown",tooltip:"--ui-portal-layer-z-index-tooltip",modal:"--ui-portal-layer-z-index-modal",popover:"--ui-portal-layer-z-index-popover"},G3={},W3=3e3,K3=10;let mE=W3;function Y3(){const e=mE;return mE+=K3,{zIndex:e,release:()=>{}}}const X3=v.createContext(null);function Z3(){return v.useContext(X3)}function ql(e,t){const n=Z3(),[r,s]=v.useState(null);v.useLayoutEffect(()=>{if(!t){s(null);return}const l=n?.claimZIndex()??Y3();return s(l.zIndex),()=>{l.release()}},[t,n]);const a=v.useMemo(()=>r===null?G3:{[V3[e]]:String(r)},[r,e]);return v.useMemo(()=>({zIndex:r,portalLayerStyles:a}),[r,a])}const gx=v.forwardRef(function(t,n){const{render:r,className:s,disabled:a=!1,focusableWhenDisabled:l=!1,nativeButton:c=!0,style:f,...d}=t,{getButtonProps:h,buttonRef:m}=$l({disabled:a,focusableWhenDisabled:l,native:c});return bn("button",t,{state:{disabled:a},ref:[n,m],props:[d,h]})}),Q3=["secondary","tertiary","accent","monochrome","success","warning","danger"],J3=["accent","monochrome","success","danger","warning"],AA={plan:"warning","git-added":"success","git-modified":"warning","git-removed":"danger"},e6=["accent","success","warning","danger"];new Set(Q3);new Set(J3);const t6=new Set(e6);function n6(e){return e!==void 0&&Object.hasOwn(AA,e)}function r6(e){return e!==void 0&&t6.has(e)}function NA(e){if(e!==void 0)return n6(e)?AA[e]:e}const OA="accent",i6=["primary","secondary","media"],s6=["outline","ghost","text"],o6=new Set(i6),a6=new Set(s6);function l6(e){return o6.has(e)}function u6(e){return a6.has(e)}function bx(e,t){const n=e==="secondary"&&t!==void 0&&!r6(t);return{applyControlTone:e!=="secondary"||n,applyFilledColors:l6(e)&&!n,applyNonFilledBackground:u6(e)||n}}const yx={foreground:{"--ui-button-fg":"ui-1h31wig ui-qalphj ui-alrmhx ui-1e1xjh9 ui-1eont2s ui-qygd40 ui-1ucl2ju ui-111ni6s ui-3id928 ui-wqjwyh ui-v6bjuk ui-17og37h ui-1mruliz ui-10ch5e ui-1xnt5ni ui-bcxwum","--ui-button-fg-hover":"ui-ve8a38 ui-572mpw ui-vp5bk3 ui-16shgaf ui-mjj3su ui-1v3oqsu ui-2ngaw7 ui-28dmf3",$$css:!0}},IA={secondary:{"--ui-button-fg":"ui-1j8p2m6","--ui-button-fg-hover":"ui-e6ovir",$$css:!0},tertiary:{"--ui-button-fg":"ui-1fwx157","--ui-button-fg-hover":"ui-111fdx3",$$css:!0},accent:{"--ui-button-fg":"ui-1f79f0m","--ui-button-fg-hover":"ui-1sd9hjt",$$css:!0},monochrome:{"--ui-button-fg":"ui-4zyimg","--ui-button-fg-hover":"ui-l1tqj1",$$css:!0},success:{"--ui-button-fg":"ui-1091cms","--ui-button-fg-hover":"ui-qejad5",$$css:!0},warning:{"--ui-button-fg":"ui-90x234","--ui-button-fg-hover":"ui-v3sia6",$$css:!0},danger:{"--ui-button-fg":"ui-1jtauhq","--ui-button-fg-hover":"ui-1iqdewe",$$css:!0}},c6={secondary:{"--ui-button-fg":"ui-zinbld","--ui-button-fg-hover":"ui-l1tqj1",$$css:!0},tertiary:{"--ui-button-fg":"ui-1mn641q","--ui-button-fg-hover":"ui-17wn194",$$css:!0}},Ci={appearance:{"--ui-button-bg-disabled":"ui-t2ps8i ui-1siydi6 ui-9mchb4 ui-b3sabi","--ui-button-fg-disabled":"ui-lxpv47 ui-1wzq4de",kWkggS:"ui-elcf9h ui-g74ub2 ui-1twq3x9 ui-mzrycd",kMwMTN:"ui-gl2jp8 ui-qfdz8i ui-7mi40u",kKMj4B:"ui-e1kniv ui-fq1cfh",kSiTet:"ui-1x77wit",k1ekBW:"ui-fvdr79",kIyJzY:"ui-2krxs4 ui-sagj69",kAMwcw:"ui-6ekqhr",$$css:!0},press:{k3aq6I:"ui-3oybdh ui-e60hhf ui-1v3nhsv",k3nNDw:"ui-1g0ag68",$$css:!0},engaged:{kWkggS:"ui-1x1890e ui-mzrycd",kMwMTN:"ui-8ech78 ui-7mi40u",$$css:!0},media:{kSiTet:"ui-1szrgyu",k6WDB:"ui-1hvsj6t",kMzoRj:"ui-mkeg23",ksu8eU:"ui-1y0btm7",kVAM5u:"ui-1aml6k",$$css:!0},colors:{"--ui-button-bg":"ui-afdq1a ui-125v35v ui-1olvpfz ui-oa62de ui-1chhnie ui-302ab4 ui-18o3eha ui-1qs2zoo ui-1g9fn2x ui-10rfvjz ui-18ab9qp","--ui-button-bg-hover":"ui-13v2mu8 ui-yt64w ui-e9ir63 ui-onvtd7 ui-1k8s92z ui-1kvkcw9 ui-43o616 ui-cs87t5 ui-197nqx8 ui-uudzfn ui-uontnf","--ui-button-bg-active":"ui-1f1zgjn ui-1nsurhp ui-11xudch ui-1f8rfv1 ui-ggai1r","--ui-button-fg":"ui-18rr0f6 ui-cdmvwo ui-1oum4wa ui-1yrx47c ui-1s3xcaz ui-2424zi ui-rwu1v7 ui-9sccad ui-hcepst ui-wvzk2y ui-gftpnt ui-pzfz8q","--ui-button-fg-hover":"ui-ve8a38 ui-lidx4s ui-f1csfx ui-10swf5o ui-2fu0p3","--ui-button-label-shadow":"ui-107xv6h ui-1fgkyrd ui-uxtdke ui-1lpoe4m ui-1mh6czn",$$css:!0}},la={background:{"--ui-button-bg":"ui-1gwrc9l ui-302ab4 ui-1luhpj5 ui-14iu9ww","--ui-button-bg-hover":"ui-s16ggv ui-1kvkcw9 ui-hqa6pe ui-e032zu",$$css:!0},outline:{kMzoRj:"ui-mkeg23",ksu8eU:"ui-1y0btm7",kVAM5u:"ui-13747pv ui-wm9d6",$$css:!0}},f6=["accent","success","warning","danger"],d6=new Set(f6);function qp(e){return e!==void 0&&d6.has(e)}const MA={accent:{"--ui-button-bg-hover":"ui-2qxk4j",$$css:!0},success:{"--ui-button-bg-hover":"ui-11h7f69",$$css:!0},warning:{"--ui-button-bg-hover":"ui-1donwlf",$$css:!0},danger:{"--ui-button-bg-hover":"ui-x6ealz",$$css:!0}},DA={accent:{kVAM5u:"ui-5r2jki ui-wm9d6",$$css:!0},success:{kVAM5u:"ui-1gvt79p ui-wm9d6",$$css:!0},warning:{kVAM5u:"ui-1cucnr7 ui-wm9d6",$$css:!0},danger:{kVAM5u:"ui-105evjg ui-wm9d6",$$css:!0}},LA={sm:"sm",md:"sm",lg:"base",xl:"lg"},jA={root:{kGuDYH:"ui-y5h43f",kLWn49:"ui-19ji09o",kb6lSQ:"ui-t1j8c4",$$css:!0}},Ms={root:{kGuDYH:"ui-1wm8ruf",kLWn49:"ui-spwq11",kb6lSQ:"ui-14s4slr",$$css:!0}},Cs={root:{kGuDYH:"ui-11wthnw",kLWn49:"ui-1ja60sm",kb6lSQ:"ui-vu1jfw",$$css:!0}},zA={root:{kGuDYH:"ui-fc7y3v",kLWn49:"ui-1yxxptd",kb6lSQ:"ui-1bignsj",$$css:!0}},p6={root:{kGuDYH:"ui-19d36u7",kLWn49:"ui-dod15v",kb6lSQ:"ui-k22nv0",$$css:!0}},h6={root:{kGuDYH:"ui-wsyq91",kLWn49:"ui-19v9tvf",kb6lSQ:"ui-1h56xvc",$$css:!0}},m6={root:{kGuDYH:"ui-1i1m3gp",kLWn49:"ui-eqr9p9",kb6lSQ:"ui-qhv51x",$$css:!0}},Hl={root:{kXHlph:"ui-6ikm8r",kORKVm:"ui-10wlt62",kg5iWk:"ui-lyipyv",k8aIck:"ui-jlip5",kqG3fB:"ui-kyw5k8",$$css:!0}},Mh={root:{khiITx:"ui-vmahel",kTUp5R:"ui-lh3980",$$css:!0}},gE={content:{k1xSpc:"ui-3nfvp2",kGNEyG:"ui-6s0dn4",kjj79g:"ui-l56j7k",kOIVth:"ui-pkkfsy",k63SB2:"ui-20ajya",khDVqt:"ui-uxw1ft",kfSwDN:"ui-87ps6o",k9WMMc:"ui-2b8uid",$$css:!0},pill:{kaIpWk:"ui-1i4c3av",kOIVth:"ui-11twubx",$$css:!0}},g6={sm:{kLKAdn:"ui-exx8yu",kwRFfy:"ui-19bzwdx",kGO01o:"ui-18d9i69",kZCmMZ:"ui-v853mj",$$css:!0},md:{kLKAdn:"ui-exx8yu",kwRFfy:"ui-196pc8s",kGO01o:"ui-18d9i69",kZCmMZ:"ui-22095l",$$css:!0},lg:{kLKAdn:"ui-exx8yu",kwRFfy:"ui-1fg0g13",kGO01o:"ui-18d9i69",kZCmMZ:"ui-1tajz9i",$$css:!0},xl:{kLKAdn:"ui-exx8yu",kwRFfy:"ui-t1q3vd",kGO01o:"ui-18d9i69",kZCmMZ:"ui-8fiw5y",$$css:!0}},b6={sm:{kLKAdn:"ui-exx8yu",kwRFfy:"ui-196pc8s",kGO01o:"ui-18d9i69",kZCmMZ:"ui-22095l",$$css:!0},md:{kLKAdn:"ui-exx8yu",kwRFfy:"ui-1fg0g13",kGO01o:"ui-18d9i69",kZCmMZ:"ui-1tajz9i",$$css:!0},lg:{kLKAdn:"ui-exx8yu",kwRFfy:"ui-t1q3vd",kGO01o:"ui-18d9i69",kZCmMZ:"ui-8fiw5y",$$css:!0},xl:{kLKAdn:"ui-exx8yu",kwRFfy:"ui-1n9uuka",kGO01o:"ui-18d9i69",kZCmMZ:"ui-cssynl",$$css:!0}},Ei={content:gE.content,pill:gE.pill,size:g6,pillSize:b6,typography:{sm:Cs.root,md:Cs.root,lg:Cs.root,xl:zA.root}},PA={root:{kFalU9:"ui-ggy1nq",kSiTet:"ui-1szrgyu",kMeerF:"ui-1k57tk5 ui-784prv",k3XXqK:"ui-1t137rt ui-9v5kkp",kInvED:"ui-1wfwxd8 ui-7s97pk",kjBf7l:"ui-1uczgqu ui-1725o6r",$$css:!0}},y6={root:{kB7OPa:"ui-9f619",kMv6JI:"ui-jb2p0i",kGuDYH:"ui-1qlqyl8",kLWn49:"ui-15bjb6t",kMzoRj:"ui-mkeg23",ksu8eU:"ui-1y0btm7",kVAM5u:"ui-9r1u3d",kkrTdU:"ui-1ypdohk ui-1j1ks5o",kSiTet:"ui-1hc1fzr",kfzvcC:"ui-67bb7w ui-7gqb9v",$$css:!0}},vx={root:[y6.root,PA.root]},ws={sm:{kaIpWk:"ui-1e1y6u3",$$css:!0},md:{kaIpWk:"ui-1043rbw",$$css:!0},lg:{kaIpWk:"ui-1m7fhj7",$$css:!0},xl:{kaIpWk:"ui-1q4ynmn",$$css:!0}},Hi={sm:{kZKoxP:"ui-1a6rlst",$$css:!0},md:{kZKoxP:"ui-1e94bgo",$$css:!0},lg:{kZKoxP:"ui-170hpbr",$$css:!0},xl:{kZKoxP:"ui-t8t6p",$$css:!0}},Vu={markdownHover:{"--ui-md-state-color":"ui-1w18epr",$$css:!0},primaryWeight:{k63SB2:"ui-20ajya ui-1uv0z76",$$css:!0},alignLeft:{kjj79g:"ui-1nhvcw1",$$css:!0},fullWidth:{kzqmXN:"ui-h8yej3",$$css:!0},frameContent:{kZCmMZ:"ui-1c1uobl",kwRFfy:"ui-yri2b",$$css:!0}},bE={labelGroup:{k1xSpc:"ui-3nfvp2",kGNEyG:"ui-6s0dn4",kOIVth:"ui-pkkfsy",k7Eaqz:"ui-euugli",ks0D6T:"ui-193iq5w",$$css:!0},kbs:{kmuXW:"ui-2lah0s",kMv6JI:"ui-y1aii3",k63SB2:"ui-20ajya",kSiTet:"ui-byyjgo ui-s6mkfk",k33iCy:"ui-1go34h7",$$css:!0}},wi={root:[vx.root,Ei.content,Vu.markdownHover,Vu.primaryWeight],fontSmoothing:Mh.root,align:{center:null,left:Vu.alignLeft},fullWidth:Vu.fullWidth,frame:{container:null,content:Vu.frameContent},shape:{pill:Ei.pill},size:{sm:[Hi.sm,ws.sm,Ei.size.sm],md:[Hi.md,ws.md,Ei.size.md],lg:[Hi.lg,ws.lg,Ei.size.lg],xl:[Hi.xl,ws.xl,Ei.size.xl]},pillSize:Ei.pillSize,typography:Ei.typography,labelGroup:bE.labelGroup,kbs:[Ms.root,bE.kbs]};function v6({rounded:e,variant:t,enforcedRounded:n}){return e!==void 0?e:t==="text"?!1:n===!0}const x6="md",k6="secondary",S6={"ui--default-marker":"ui--default-marker",$$css:!0};function yE(e,t){if(e==null)return null;const n=typeof e=="string"?{name:e}:e;return g.jsx(qt,{"aria-hidden":"true",modifier:n.modifier,name:n.name,size:t,variant:n.variant})}function vn({variant:e,tone:t,size:n,rounded:r,frame:s="container",align:a,fullWidth:l,disabled:c,children:f,leadingIcon:d,trailingIcon:h,kbs:m,pressed:b,className:y,style:k,rootStyle:S,"aria-expanded":R,"aria-pressed":T,"aria-busy":E,...C}){const _=ya(),D=e??_?.buttonVariant??k6,A=n??_?.buttonSize??x6,M=v6({enforcedRounded:_?.buttonRounded,rounded:r,variant:D}),B=l??_?.buttonFullWidth??!1,P=c??_?.disabled,N=t??(D==="primary"||D==="ghost"?_?.buttonTone:void 0),W=NA(N??(D==="primary"?OA:void 0)),$=_?.buttonIconSize??LA[A],F=C["data-pressed"],z=bx(D,W),U=zt(wi.root,wi.fontSmoothing,Ci.appearance,z.applyControlTone&&yx.foreground,z.applyControlTone&&W!==void 0&&IA[W],z.applyFilledColors&&Ci.colors,z.applyNonFilledBackground&&la.background,(D==="outline"||D==="ghost")&&qp(W)&&MA[W],D==="outline"&&la.outline,D==="outline"&&qp(W)&&DA[W],D==="media"&&Ci.media,b===!0&&Ci.engaged,wi.size[A],wi.typography[A],wi.align[a??"center"],B&&wi.fullWidth,M&&wi.shape.pill,M&&wi.pillSize[A],wi.frame[s],_?.buttonRootStyle,S,S6),H=yE(d,$),K=yE(h,$);let q=f;if(m!=null){const Y=zt(wi.labelGroup),O=zt(wi.kbs);q=g.jsxs("span",{className:sn("ui-button__label-group",Y.className),style:Y.style,children:[H,f,K,g.jsx("span",{className:sn("ui-button__kbs",O.className),style:O.style,children:m})]})}else(H!=null||K!=null)&&(q=g.jsxs(g.Fragment,{children:[H,f,K]}));return g.jsx(gx,{...C,"aria-busy":E,"aria-expanded":R,"aria-pressed":R===void 0&&b!==void 0?b:T,className:sn("ui-button",U.className,y),style:{...U.style,...k},"data-variant":D,"data-size":A,"data-rounded":M||void 0,"data-frame":s!=="container"?s:void 0,"data-tone":W,"data-align":a==="left"?a:void 0,"data-full-width":B||void 0,"data-pressed":b!==void 0?String(b):F,"data-busy":E===!0||E==="true"?"":void 0,"data-padded-label":s==="container"?"":void 0,disabled:P,children:g.jsx(Is,{iconSize:$,children:q})})}function Xc(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}function Al({controlled:e,default:t,name:n,state:r="value"}){const{current:s}=v.useRef(e!==void 0),[a,l]=v.useState(t),c=s?e:a,f=v.useCallback(d=>{s||l(d)},[]);return[c,f]}let vE=(function(e){return e.checked="data-checked",e.unchecked="data-unchecked",e.indeterminate="data-indeterminate",e.disabled="data-disabled",e.readonly="data-readonly",e.required="data-required",e.valid="data-valid",e.invalid="data-invalid",e.touched="data-touched",e.dirty="data-dirty",e.filled="data-filled",e.focused="data-focused",e})({}),xE=(function(e){return e.disabled="data-disabled",e.valid="data-valid",e.invalid="data-invalid",e.touched="data-touched",e.dirty="data-dirty",e.filled="data-filled",e.focused="data-focused",e})({});const w6={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},ac={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},E6={disabled:!1,...ac},Zc={valid(e){return e===null?null:e?{[xE.valid]:""}:{[xE.invalid]:""}}};function T6(e){return v.useMemo(()=>({checked(t){return e.indeterminate?{}:t?{[vE.checked]:""}:{[vE.unchecked]:""}},...Zc}),[e.indeterminate])}const R6={invalid:void 0,name:void 0,validityData:{state:w6,errors:[],error:"",value:"",initialValue:null},setValidityData:Zn,disabled:void 0,touched:ac.touched,setTouched:Zn,dirty:ac.dirty,setDirty:Zn,filled:ac.filled,setFilled:Zn,focused:ac.focused,setFocused:Zn,validate:()=>null,validationMode:"onSubmit",validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:E6,markedDirtyRef:{current:!1},registerFieldControl:Zn,validation:{getValidationProps:(e,t=Bn)=>t,inputRef:{current:null},registerInput:Zn,commit:async()=>{},change:Zn}},C6=v.createContext(R6);function Dh(e=!0){const t=v.useContext(C6);if(t.setValidityData===Zn&&!e)throw new Error(In(28));return t}function $A(e,t,n,r,s=!0,a){const{registerFieldControl:l}=Dh(),c=v.useRef(null);c.current||(c.current=Symbol()),Ve(()=>{const f=c.current;return!f||!s?void 0:(l(f,{controlRef:e,getValue:r,id:t,name:a,value:n}),()=>{l(f,void 0)})},[e,s,r,t,a,l,n])}const _6=v.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:Zn,validationMode:"onSubmit",submitAttemptedRef:{current:!1}});function BA(){return v.useContext(_6)}const A6=v.createContext({controlId:void 0,registerControlId:Zn,labelId:void 0,setLabelId:Zn,messageIds:[],setMessageIds:Zn,getDescriptionProps:e=>e});function xx(){return v.useContext(A6)}const N6=v.createContext(void 0);function O6(){const e=v.useContext(N6);if(e===void 0)throw new Error(In(14));return e}const I6=v.forwardRef(function(t,n){const{render:r,className:s,style:a,keepMounted:l=!1,...c}=t,f=O6(),d=f.checked||f.indeterminate,{mounted:h,transitionStatus:m,setMounted:b}=Yc(d),y=v.useRef(null),k={...f,transitionStatus:m};_o({open:d,ref:y,onComplete(){d||b(!1)}});const R={...T6(f),...To,...Zc},T=l||h,E=bn("span",t,{ref:[n,y],state:k,stateAttributesMapping:R,props:c});return T?E:null}),M6="md",kE={root:{kVAEAm:"ui-1n2onr6",k1xSpc:"ui-3nfvp2",kGNEyG:"ui-6s0dn4",kjj79g:"ui-l56j7k",kB7OPa:"ui-9f619",kMeerF:"ui-1k57tk5 ui-1gv1zob",k3XXqK:"ui-1t137rt ui-1rsevuf",kjBf7l:"ui-1uczgqu ui-14qs42y",kInvED:"ui-1wfwxd8 ui-1i57s2w",kMzoRj:"ui-mkeg23",ksu8eU:"ui-1y0btm7",kaIpWk:"ui-1e1y6u3",kMwMTN:"ui-1lriclw ui-m9a9xk",kWkggS:"ui-i07v4r ui-1yow1yk ui-ff598k",kVAM5u:"ui-1tjqsyf ui-1b3ufqo ui-1ch3k2o",k3aq6I:"ui-3oybdh ui-78fr0e",k3nNDw:"ui-1g0ag68",k1ekBW:"ui-1lxufdw",kIyJzY:"ui-2krxs4 ui-sagj69",kAMwcw:"ui-6ekqhr",$$css:!0},sm:{kzqmXN:"ui-2s4hoy",kZKoxP:"ui-px1j5t",$$css:!0},md:{kzqmXN:"ui-ek66a6",kZKoxP:"ui-1q5geii",$$css:!0},lg:{kzqmXN:"ui-1xx3ewh",kZKoxP:"ui-14dyci",$$css:!0}},D6={primary:{"--ui-checkbox-bg":"ui-x0sf4j","--ui-checkbox-border":"ui-14p436a","--ui-checkbox-glyph":"ui-1d5945d",$$css:!0},green:{"--ui-checkbox-bg":"ui-1g72fie","--ui-checkbox-border":"ui-165ap9x","--ui-checkbox-glyph":"ui-1d5945d",$$css:!0},neutral:{"--ui-checkbox-bg":"ui-1rpsy8r","--ui-checkbox-border":"ui-mtpsoh","--ui-checkbox-glyph":"ui-qnctk6",$$css:!0}},L6={sm:9,md:10,lg:11},SE={"--icon-weight":"700"};function j6({indeterminate:e,interactive:t,size:n,variant:r}){const s=zt(kE.root,kE[n],D6[r]),a={className:"ui-10l6tqk ui-10a8y8t ui-3nfvp2 ui-6s0dn4 ui-l56j7k ui-1g0ag68 ui-n9if97 ui-7pq1vu ui-sagj69 ui-6ekqhr ui-g01cxk ui-hhdk15 ui-nyzrob ui-h98lc ui-1nrvvgt ui-cntms"},l=L6[n];return g.jsx("span",{"aria-hidden":"true",className:sn("ui-checkbox__box",s.className),style:s.style,children:t?g.jsx(I6,{className:sn("ui-checkbox__icon",a.className),keepMounted:!0,render:(c,f)=>g.jsx("span",{...c,children:g.jsx(qt,{name:f.indeterminate?"minus":"check",size:l,style:SE})}),style:a.style}):g.jsx("span",{className:sn("ui-checkbox__icon",a.className),style:a.style,children:g.jsx(qt,{name:e?"minus":"check",size:l,style:SE})})})}function FA({checked:e,disabled:t,indeterminate:n=!1,size:r=M6,variant:s="primary"}){const a={className:"ui-3nfvp2 ui-6s0dn4 ui-l56j7k ui-1c4vz4f ui-2lah0s ui-dl72j9 ui-xymvpz ui-47corl ui--default-marker"};return g.jsx("span",{"aria-hidden":"true",className:sn("ui-checkbox",a.className),style:a.style,"data-component":"checkbox","data-size":r,"data-variant":s,"data-checked":e||void 0,"data-disabled":t||void 0,"data-indeterminate":n||void 0,children:g.jsx(j6,{indeterminate:n,interactive:!1,size:r,variant:s})})}function z6(e,t,n=(r,s)=>r===s){return e.length===t.length&&e.every((r,s)=>n(r,t[s]))}function P6(e){const{open:t,defaultOpen:n,onOpenChange:r,disabled:s}=e,[a,l]=Al({controlled:t,default:n,name:"Collapsible",state:"open"}),{mounted:c,setMounted:f,transitionStatus:d}=Yc(a,!0,!0),h=Fl(),[m,b]=v.useState(),y=m??h,k=Ke(S=>{const R=!a,T=Rt(Bl,S.nativeEvent);r(R,T),!T.isCanceled&&l(R)});return v.useMemo(()=>({disabled:s,handleTrigger:k,mounted:c,open:a,panelId:y,setMounted:f,setOpen:l,setPanelIdState:b,transitionStatus:d}),[s,k,c,a,y,f,l,b,d])}const UA=v.createContext(void 0);function qA(){const e=v.useContext(UA);if(e===void 0)throw new Error(In(15));return e}let kx=(function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=sa.startingStyle]="startingStyle",e[e.endingStyle=sa.endingStyle]="endingStyle",e})({}),$6=(function(e){return e.panelOpen="data-panel-open",e})({});const B6={[kx.open]:""},F6={[kx.closed]:""},U6={open(e){return e?{[$6.panelOpen]:""}:null}},q6={open(e){return e?B6:F6}},HA={...q6,...To},H6=v.forwardRef(function(t,n){const{render:r,className:s,defaultOpen:a=!1,disabled:l=!1,onOpenChange:c,open:f,style:d,...h}=t,m=Ke(c),b=P6({open:f,defaultOpen:a,onOpenChange:m,disabled:l}),y=v.useMemo(()=>({open:b.open,disabled:b.disabled,transitionStatus:b.transitionStatus}),[b.open,b.disabled,b.transitionStatus]),k=v.useMemo(()=>({...b,onOpenChange:m,state:y}),[b,m,y]),S=bn("div",t,{state:y,ref:n,props:h,stateAttributesMapping:HA});return g.jsx(UA.Provider,{value:k,children:S})}),V6={...U6,...To},wE=v.forwardRef(function(t,n){const{panelId:r,open:s,handleTrigger:a,state:l,disabled:c}=qA(),{className:f,disabled:d=c,render:h,nativeButton:m=!0,style:b,...y}=t,{getButtonProps:k,buttonRef:S}=$l({disabled:d,focusableWhenDisabled:!0,native:m});return bn("button",t,{state:l,ref:[n,S],props:[{"aria-controls":s?r:void 0,"aria-expanded":s,onClick:a},y,k],stateAttributesMapping:V6})}),Gu={height:void 0,width:void 0};function G6(e){const{externalRef:t,hiddenUntilFound:n,id:r,keepMounted:s,mounted:a,onOpenChange:l,open:c,setMounted:f,setOpen:d,transitionStatus:h}=e,m=v.useRef(null),b=v.useRef(null),[y,k]=v.useState(Gu),S=v.useRef(Gu),R=v.useRef(!1),T=v.useRef(c),E=v.useRef(!1),[C,_]=v.useState(!1),D=v.useRef(null),A=xo(t,m),M=On({mounted:a,open:c}),B=rA(m,!1,!1),P=!c&&!a,N=C?"idle":h,W=c&&(T.current||E.current),$=!c&&a&&b.current==="css-animation"&&y.height===void 0&&y.width===void 0?S.current:y,F=n&&P&&b.current!=="css-animation",z=Ke((Y,O=!0)=>{O&&(S.current=Y),k(Y)}),U=Ke(()=>{D.current?.(),D.current=null}),H=Ke(Y=>{U(),D.current=()=>{D.current=null,Y()}}),K=Ke(()=>{c&&a&&b.current==="css-animation"&&(E.current=!0)});Ve(()=>{!C||h==="starting"||_(!1)},[C,h]),v.useEffect(()=>()=>{K(),U()},[K,U]),Ve(()=>{const Y=m.current;if(!Y)return;!c&&D.current&&U();const O=W6(Y,W);if(b.current=O,c&&h==="idle"&&T.current&&O==="css-animation"){S.current=il(Y);return}if(c&&h==="starting"){const L=R.current;if(R.current=!1,O==="none"){z(il(Y)),_(!0);return}if(O==="css-transition"){const X=K6(Y);if(z(il(Y)),!L)return X;const se=Wu(Y,"transition-duration","0s");return H(se),_(!0),X}if(O==="css-animation"){if(z(il(Y)),!L){Wu(Y,"animation-name","none")();return}const X=Wu(Y,"animation-name","none"),se=Wu(Y,"animation-duration","0s");X(),H(se),_(!0);return}}if(!c&&a&&(h==="idle"||h==="starting")){if(T.current=!1,E.current=!1,O==="none"){z(Gu,!1),f(!1);return}z(il(Y));return}if(h!=="ending")return;if(O==="none"){f(!1);return}const j=il(Y);if(!((j.height??0)>0||(j.width??0)>0)){f(!1);return}z(j),O==="css-animation"&&Wu(Y,"animation-name","none")()},[a,c,U,z,f,H,W,h]),_o({enabled:c&&a&&N==="idle",open:!0,ref:m,onComplete(){c&&z(Gu,!1)}}),v.useEffect(()=>{if(c||!a||N!=="ending"||!m.current)return;const O=new AbortController;let j=-1;function V(){M.current.open||(f(!1),z(Gu,!1))}return j=Lr.request(()=>{O.signal.aborted||B(V,O.signal)}),()=>{Lr.cancel(j),O.abort()}},[M,a,c,N,B,z,f]),Ve(()=>{const Y=m.current;!Y||!n||!P||Y.setAttribute("hidden","until-found")},[P,n]),v.useEffect(function(){const O=m.current;if(!O)return;function j(V){const L=Rt(Ni,V);l(!0,L),!L.isCanceled&&(R.current=!0,d(!0))}return Dt(O,"beforematch",j)},[l,d]);const q=s||n||a||c;return{height:$.height,props:{...F?{[kx.startingStyle]:""}:void 0,hidden:P,id:r},ref:A,shouldPreventOpenAnimation:W,shouldRender:q,transitionStatus:N,width:$.width}}function il(e){return{height:e.scrollHeight,width:e.scrollWidth}}function W6(e,t=!1){const n=xn(e).getComputedStyle(e),r=(n.animationName.split(",").map(a=>a.trim()).some(a=>a!==""&&a!=="none")||t)&&EE(n.animationDuration),s=EE(n.transitionDuration);return r&&s||s?"css-transition":r?"css-animation":"none"}function EE(e){return e.split(",").map(t=>t.trim()).some(t=>t!==""&&Number.parseFloat(t)>0)}function Wu(e,t,n){const r=e.style.getPropertyValue(t),s=e.style.getPropertyPriority(t);return e.style.setProperty(t,n),()=>{if(r===""){e.style.removeProperty(t);return}e.style.setProperty(t,r,s)}}function K6(e){const t={"justify-content":e.style.justifyContent,"align-items":e.style.alignItems,"align-content":e.style.alignContent,"justify-items":e.style.justifyItems};Object.keys(t).forEach(s=>{e.style.setProperty(s,"initial","important")});function n(){Object.entries(t).forEach(([s,a])=>{if(a===""){e.style.removeProperty(s);return}e.style.setProperty(s,a)})}const r=Lr.request(n);return()=>{Lr.cancel(r),n()}}let TE=(function(e){return e.collapsiblePanelHeight="--collapsible-panel-height",e.collapsiblePanelWidth="--collapsible-panel-width",e})({});const Y6=v.forwardRef(function(t,n){const{className:r,hiddenUntilFound:s,keepMounted:a,render:l,id:c,style:f,...d}=t,{mounted:h,onOpenChange:m,open:b,panelId:y,setMounted:k,setPanelIdState:S,setOpen:R,state:T,transitionStatus:E}=qA(),C=s??!1,_=a??!1;Ve(()=>{if(c)return S(c),()=>{S(void 0)}},[c,S]);const{height:D,props:A,ref:M,shouldPreventOpenAnimation:B,shouldRender:P,transitionStatus:N,width:W}=G6({externalRef:n,hiddenUntilFound:C,id:y,keepMounted:_,mounted:h,onOpenChange:m,open:b,setMounted:k,setOpen:R,transitionStatus:E}),$={...T,transitionStatus:N},F=r_(f,$),z=bn("div",{...t,style:void 0},{state:$,ref:M,props:[A,{style:{[TE.collapsiblePanelHeight]:D===void 0?"auto":`${D}px`,[TE.collapsiblePanelWidth]:W===void 0?"auto":`${W}px`}},d,F?{style:F}:void 0,B?{style:{animationName:"none"}}:void 0],stateAttributesMapping:HA});return P?z:null}),X6={root:{kKwaWg:"ui-c079w9 ui-phioz4",kgSjnq:"ui-akli9p",kHypHr:"ui-1ta4xzc ui-15mlgz9",kBahZS:"ui-1t23j8t ui-nqxwjk",kUisrP:"ui-g7jpbn ui-1xgngqn",kKVMdj:"ui-1dtn8og ui-1aquc0h",k44tkh:"ui-1q3qbx4",kyAemX:"ui-1esw782",ko0y90:"ui-a4qsjk",$$css:!0}},Z6={inherit:{"--ui-text-shimmer-base":"ui-1ptom83","--ui-text-shimmer-highlight":"ui-rxqqkw",$$css:!0},primary:{kMwMTN:"ui-1wd3ewq","--ui-text-shimmer-base":"ui-cf8467","--ui-text-shimmer-highlight":"ui-17vhta",$$css:!0},secondary:{kMwMTN:"ui-19aaqeu","--ui-text-shimmer-base":"ui-1dl6blw","--ui-text-shimmer-highlight":"ui-17vhta",$$css:!0},tertiary:{kMwMTN:"ui-4b2ntj","--ui-text-shimmer-base":"ui-3zfljf","--ui-text-shimmer-highlight":"ui-1ph1pus",$$css:!0}};function VA(e){return[X6.root,Z6[e]]}const Q6={"ui--default-marker":"ui--default-marker",$$css:!0};function GA(e){return e==="default"?"secondary":"tertiary"}const uo={base:{k1xSpc:"ui-78zum5",kGNEyG:"ui-6s0dn4",kfSwDN:"ui-87ps6o",kOIVth:"ui-11twubx",k8aIck:"ui-jlip5",kqG3fB:"ui-kyw5k8",kXHlph:"ui-6ikm8r",kORKVm:"ui-10wlt62",kg5iWk:"ui-lyipyv",kGuDYH:"ui-hwpfco",kLWn49:"ui-1bcdmom",$$css:!0},buttonReset:{kWkggS:"ui-jbqb8w",kMzoRj:"ui-c342km",ksu8eU:"ui-ng3xce",kLKAdn:"ui-exx8yu",kGO01o:"ui-18d9i69",kZCmMZ:"ui-1c1uobl",kwRFfy:"ui-yri2b",keoZOQ:"ui-dj266r",k1K539:"ui-at24cr",keTefX:"ui-1lziwak",k71WvV:"ui-14z9mp",kMv6JI:"ui-jb2p0i",k63SB2:"ui-1pd3egz",kMwMTN:"ui-1heor9g",k9WMMc:"ui-1yc453h",kMeerF:"ui-1k57tk5 ui-784prv",k3XXqK:"ui-1t137rt ui-9v5kkp",kInvED:"ui-1wfwxd8 ui-1bqaal",kjBf7l:"ui-1uczgqu ui-1725o6r",$$css:!0},presentational:{kMeerF:"ui-1k57tk5",k3XXqK:"ui-1t137rt",$$css:!0},clickable:{kkrTdU:"ui-1ypdohk",$$css:!0},disabled:{kSiTet:"ui-byyjgo",$$css:!0},detailsButton:{kGuDYH:"ui-1qlqyl8",kLWn49:"ui-15bjb6t",ks0D6T:"ui-193iq5w",kVQacm:"ui-b3r6kr",kkrTdU:"ui-1ypdohk",kMnn75:"ui-ujl8zx",k1TLXF:"ui-r5o5jz ui-9ojkr9 ui-1e7jyuc",k1ekBW:"ui-eirdtl",kIyJzY:"ui-7pq1vu ui-6xbvzw ui-1nk6rg0",kAMwcw:"ui-1bt1wk1",kg5iWk:"ui-lyipyv",khDVqt:"ui-uxw1ft",$$css:!0},detailsButtonShimmer:{kMnn75:"ui-krqix3 ui-1sur9pj ui-1f2jko9",$$css:!0}},Ib={base:{kmuXW:"ui-2lah0s",kMwMTN:"ui-19aaqeu ui-1dkqrid",k63SB2:"ui-20ajya",k1ekBW:"ui-t3l3uh",kIyJzY:"ui-7pq1vu",kAMwcw:"ui-1bt1wk1",$$css:!0},muted:{kMwMTN:"ui-4b2ntj ui-1uq8sgy",$$css:!0},tabularNums:{kcqcaj:"ui-ss6m8b",$$css:!0}};function J6({action:e,chevronRef:t,details:n,detailsRef:r,leadingIcon:s,loading:a,shimmerDetails:l,showChevron:c,tabularNums:f,tone:d}){const h=zt(Ib.base,(d==="muted"||d==="tertiary")&&Ib.muted,f&&Ib.tabularNums,a&&!l&&VA(GA(d))),m={0:{className:"ui-1lliihq ui-s83m0k ui-euugli ui-4b2ntj ui-qdr9cq ui-6ikm8r ui-10wlt62 ui-lyipyv ui-t3l3uh ui-7pq1vu ui-1bt1wk1"},2:{className:"ui-1lliihq ui-s83m0k ui-euugli ui-6ikm8r ui-10wlt62 ui-lyipyv ui-t3l3uh ui-7pq1vu ui-1bt1wk1 ui-1e4uaio ui-116yoyw"},1:{className:"ui-1lliihq ui-s83m0k ui-euugli ui-4b2ntj ui-qdr9cq ui-6ikm8r ui-10wlt62 ui-lyipyv ui-t3l3uh ui-7pq1vu ui-1bt1wk1 ui-ss6m8b"},3:{className:"ui-1lliihq ui-s83m0k ui-euugli ui-6ikm8r ui-10wlt62 ui-lyipyv ui-t3l3uh ui-7pq1vu ui-1bt1wk1 ui-1e4uaio ui-116yoyw ui-ss6m8b"}}[(d==="muted")<<1|!!f<<0],b={className:"ui-2lah0s ui-fdlg0y ui-1urst0s ui-1lbmi28 ui-18tq7xr ui-g01cxk ui-bthccv ui-7p49u4 ui-1tty4wy ui-p33vsb ui-4f0zl0 ui-93pzih ui-1bt1wk1"},y={className:"ui-3nfvp2 ui-6s0dn4 ui-2lah0s ui-14ju556 ui-1urst0s"};return g.jsxs(g.Fragment,{children:[s!=null&&g.jsx("span",{className:sn("ui-collapsible-leading-icon",y.className),style:y.style,children:s}),e!=null&&g.jsx("span",{className:sn("ui-collapsible-action",h.className),style:h.style,children:e}),n&&g.jsx("span",{ref:r,className:sn("ui-collapsible-details",m.className),style:m.style,children:n}),c&&g.jsx(qt,{ref:t,name:"chevron-right",className:sn("ui-collapsible-chevron",b.className),style:b.style,size:"sm"})]})}function yi({action:e,details:t,onDetailsClick:n,detailsButtonStyle:r,headerStyle:s,leadingIcon:a,disabled:l=!1,expandable:c=!0,loading:f=!1,shimmerDetails:d=!0,tabularNums:h=!1,tone:m="default",children:b,headerRef:y,detailsRef:k,chevronRef:S,className:R,contentClassName:T,open:E,defaultOpen:C,onOpenChange:_,...D}){const A=n!==void 0,M=c&&A,B=E!==void 0,[P,N]=v.useState(()=>C??!1),W=B?!!E:P,$=(X,se)=>{B||N(X),_?.(X,se)},F=A?g.jsx("button",{type:"button",...zt(uo.buttonReset,uo.detailsButton,f&&d&&uo.detailsButtonShimmer,r),disabled:l,onClick:X=>{X.stopPropagation(),n(X)},children:t}):t,z=c&&b!=null&&typeof b!="boolean",U={className:"ui-78zum5 ui-dt5ytf"},H=zt(uo.base,c&&!A?uo.buttonReset:uo.presentational,c&&!l&&uo.clickable,l&&uo.disabled,f&&d&&VA(GA(m)),Q6,s),K={0:{className:"ui-jbqb8w ui-c342km ui-ng3xce ui-exx8yu ui-18d9i69 ui-1c1uobl ui-yri2b ui-dj266r ui-at24cr ui-1lziwak ui-14z9mp ui-jb2p0i ui-1pd3egz ui-1heor9g ui-1yc453h ui-1k57tk5 ui-784prv ui-1t137rt ui-9v5kkp ui-1wfwxd8 ui-1bqaal ui-1uczgqu ui-1725o6r ui-3nfvp2 ui-6s0dn4 ui-2lah0s ui--default-marker"},1:{className:"ui-jbqb8w ui-c342km ui-ng3xce ui-exx8yu ui-18d9i69 ui-1c1uobl ui-yri2b ui-dj266r ui-at24cr ui-1lziwak ui-14z9mp ui-jb2p0i ui-1pd3egz ui-1heor9g ui-1yc453h ui-1k57tk5 ui-784prv ui-1t137rt ui-9v5kkp ui-1wfwxd8 ui-1bqaal ui-1uczgqu ui-1725o6r ui-1ypdohk ui-3nfvp2 ui-6s0dn4 ui-2lah0s ui--default-marker"}}[!l<<0],q={className:"ui-2lah0s ui-fdlg0y ui-1urst0s ui-1lbmi28 ui-18tq7xr ui-g01cxk ui-bthccv ui-7p49u4 ui-1tty4wy ui-p33vsb ui-4f0zl0 ui-93pzih ui-1bt1wk1"},Y={className:"ui-1lliihq ui-1kd3hbs ui-uan8c8 ui-1fe7yth ui-12wejat ui-6ikm8r ui-10wlt62 ui-pv8u57 ui-ua3uq3 ui-4wkmsb ui-g3p6pi ui-ptf4uz"},O={className:"ui-6ikm8r ui-10wlt62 ui-2lwn1j"},j={className:"ui-78zum5 ui-dt5ytf ui-1y48gol ui-1vdilah ui-1hc1fzr ui-19991ni ui-4wkmsb ui-g3p6pi ui-1bt1wk1"},V={"data-component":"collapsible-header",className:sn("ui-collapsible-header",H.className),style:H.style},L=g.jsx(J6,{action:e,chevronRef:S,details:F,detailsRef:k,leadingIcon:a,loading:f,shimmerDetails:d,showChevron:c&&!A,tabularNums:h,tone:m});return g.jsxs(H6,{...D,open:M?W:E,defaultOpen:M?void 0:C,onOpenChange:M?$:_,disabled:l,"data-expandable":c?"":void 0,"data-loading":f?"":void 0,"data-tone":m,className:sn("ui-collapsible",U.className,R),style:U.style,children:[M?g.jsxs("div",{...V,ref:y,onClick:()=>{l||$(!W)},children:[L,g.jsx(wE,{"data-component":"collapsible-header","aria-label":typeof t=="string"?`Toggle ${t}`:"Toggle details",className:K.className,style:K.style,...z?null:{"aria-controls":void 0},onClick:X=>{l||X.stopPropagation()},children:g.jsx(qt,{ref:S,name:"chevron-right",className:sn("ui-collapsible-chevron",q.className),style:q.style,size:"sm"})})]}):c?g.jsx(wE,{...V,ref:y,...z?null:{"aria-controls":void 0},onClick:X=>{l||X.stopPropagation()},children:L}):g.jsx("div",{...V,ref:y,children:L}),z&&g.jsx(Y6,{keepMounted:!0,className:sn("ui-collapsible-content-view",Y.className),style:Y.style,children:g.jsx("div",{className:O.className,style:O.style,children:g.jsx("div",{className:sn("ui-collapsible-content",j.className,T),style:j.style,children:b})})})]})}const e4=(e,t)=>Object.is(e,t);function ua(e,t,n){return e==null||t==null?Object.is(e,t):n(e,t)}function t4(e,t,n){return!e||e.length===0?!1:e.some(r=>r===void 0?!1:ua(t,r,n))}function mc(e,t,n){return!e||e.length===0?-1:e.findIndex(r=>r===void 0?!1:ua(r,t,n))}function n4(e,t,n){return e.filter(r=>!ua(t,r,n))}function Vy(e){if(e==null)return"";if(typeof e=="string")return e;try{return JSON.stringify(e)}catch{return String(e)}}function WA(e){return e!=null&&e.length>0&&typeof e[0]=="object"&&e[0]!=null&&"items"in e[0]}function r4(e){if(!Array.isArray(e))return e!=null&&"null"in e;const t=e;if(WA(t)){for(const n of t)for(const r of n.items)if(r&&r.value==null&&r.label!=null)return!0;return!1}for(const n of t)if(n&&n.value==null&&n.label!=null)return!0;return!1}function KA(e,t){if(t&&e!=null)return t(e)??"";if(e&&typeof e=="object"){if("label"in e&&e.label!=null)return String(e.label);if("value"in e)return String(e.value)}return Vy(e)}function Jo(e,t){return t&&e!=null?t(e)??"":e&&typeof e=="object"&&"value"in e&&"label"in e?Vy(e.value):Vy(e)}function YA(e,t,n){function r(){return KA(e,n)}if(n&&e!=null)return n(e);if(e&&typeof e=="object"&&"label"in e&&e.label!=null)return e.label;if(t&&!Array.isArray(t))return t[e]??r();if(Array.isArray(t)){const s=t,a=WA(s)?s.flatMap(l=>l.items):s;if(e==null||typeof e!="object"){const l=a.find(c=>c.value===e);return l&&l.label!=null?l.label:r()}if("value"in e){const l=a.find(c=>c&&c.value===e.value);if(l&&l.label!=null)return l.label}}return r()}function i4(e,t,n){return e.reduce((r,s,a)=>(a>0&&r.push(", "),r.push(g.jsx(v.Fragment,{children:YA(s,t,n)},a)),r),[])}function Sx(e={}){const{id:t,implicit:n=!1,controlRef:r}=e,{controlId:s,registerControlId:a}=xx(),l=Fl(t),c=n?s:void 0,f=zr(()=>Symbol("labelable-control")),d=v.useRef(!1),h=v.useRef(t!=null),m=Ke(()=>{!d.current||a===Zn||(d.current=!1,a(f.current,void 0))});return Ve(()=>{if(a===Zn)return;let b;if(n){const y=r?.current;gt(y)&&y.closest("label")!=null?b=t??null:b=c??l}else if(t!=null)h.current=!0,b=t;else if(h.current)b=l;else{m();return}if(b===void 0){m();return}d.current=!0,a(f.current,b)},[t,r,c,a,n,l,f,m]),v.useEffect(()=>m,[m]),s??l}function s4(e,t){return e??t}function o4(e){const t=e.getBoundingClientRect(),n=xn(e);if(Kv)return t;const r=n.getComputedStyle(e,"::before"),s=n.getComputedStyle(e,"::after");if(!(r.content!=="none"||s.content!=="none"))return t;const l=parseFloat(r.width)||0,c=parseFloat(r.height)||0,f=parseFloat(s.width)||0,d=parseFloat(s.height)||0,h=Math.max(t.width,l,f),m=Math.max(t.height,c,d),b=h-t.width,y=m-t.height;return{left:t.left-b/2,right:t.right+b/2,top:t.top-y/2,bottom:t.bottom+y/2}}const XA=v.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});function a4(){return v.useContext(XA)}function wx(e){const{children:t,elementsRef:n,labelsRef:r,onMapChange:s}=e,a=Ke(s),l=v.useRef(0),c=zr(u4).current,f=zr(l4).current,[d,h]=v.useState(0),m=v.useRef(d),b=Ke((T,E)=>{f.set(T,E??null),m.current+=1,h(m.current)}),y=Ke(T=>{f.delete(T),m.current+=1,h(m.current)}),k=v.useMemo(()=>{const T=new Map;return Array.from(f.keys()).filter(C=>C.isConnected).sort(c4).forEach((C,_)=>{const D=f.get(C)??{};T.set(C,{...D,index:_})}),T},[f,d]);Ve(()=>{if(typeof MutationObserver!="function"||k.size===0)return;const T=new MutationObserver(E=>{const C=new Set,_=D=>C.has(D)?C.delete(D):C.add(D);E.forEach(D=>{D.removedNodes.forEach(_),D.addedNodes.forEach(_)}),C.size===0&&(m.current+=1,h(m.current))});return k.forEach((E,C)=>{C.parentElement&&T.observe(C.parentElement,{childList:!0})}),()=>{T.disconnect()}},[k]),Ve(()=>{m.current===d&&(n.current.length!==k.size&&(n.current.length=k.size),r&&r.current.length!==k.size&&(r.current.length=k.size),l.current=k.size),a(k)},[a,k,n,r,d]),Ve(()=>()=>{n.current=[]},[n]),Ve(()=>()=>{r&&(r.current=[])},[r]);const S=Ke(T=>(c.add(T),()=>{c.delete(T)}));Ve(()=>{c.forEach(T=>T(k))},[c,k]);const R=v.useMemo(()=>({register:b,unregister:y,subscribeMapChange:S,elementsRef:n,labelsRef:r,nextIndexRef:l}),[b,y,S,n,r,l]);return g.jsx(XA.Provider,{value:R,children:t})}function l4(){return new Map}function u4(){return new Set}function c4(e,t){const n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}const f4=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:s,rects:a,platform:l,elements:c,middlewareData:f}=t,{element:d,padding:h=0,offsetParent:m="real"}=As(e,t)||{};if(d==null)return{};const b=S_(h),y={x:n,y:r},k=Jv(s),S=Qv(k),R=await l.getDimensions(d),T=k==="y",E=T?"top":"left",C=T?"bottom":"right",_=T?"clientHeight":"clientWidth",D=a.reference[S]+a.reference[k]-y[k]-a.floating[S],A=y[k]-a.reference[k],M=m==="real"?await l.getOffsetParent?.(d):c.floating;let B=c.floating[_]||a.floating[S];(!B||!await l.isElement?.(M))&&(B=c.floating[_]||a.floating[S]);const P=D/2-A/2,N=B/2-R[S]/2-1,W=Math.min(b[E],N),$=Math.min(b[C],N),F=W,z=B-R[S]-$,U=B/2-R[S]/2+P,H=k_(F,U,z),K=!f.arrow&&Co(s)!=null&&U!==H&&a.reference[S]/2-(U<F?W:$)-R[S]/2<0,q=K?U<F?U-F:U-z:0;return{[k]:y[k]+q,data:{[k]:H,centerOffset:U-H-q,...K&&{alignmentOffset:q}},reset:K}}}),d4=(e,t)=>({...f4(e),options:[e,t]}),p4=x$().fn,h4={name:"hide",async fn(e){const{width:t,height:n,x:r,y:s}=e.rects.reference,a=t===0&&n===0&&r===0&&s===0;return{data:{referenceHidden:(await p4(e)).data?.referenceHidden||a}}}},xp={sideX:"left",sideY:"top"},ZA={name:"adaptiveOrigin",async fn(e){const{x:t,y:n,rects:{floating:r},elements:{floating:s},platform:a,strategy:l,placement:c}=e,f=xn(s),d=f.getComputedStyle(s);if(!(d.transitionDuration!=="0s"&&d.transitionDuration!==""))return{x:t,y:n,data:xp};const m=await a.getOffsetParent?.(s);let b={width:0,height:0};if(l==="fixed"&&f?.visualViewport)b={width:f.visualViewport.width,height:f.visualViewport.height};else if(m===f){const E=Wt(s);b={width:E.documentElement.clientWidth,height:E.documentElement.clientHeight}}else await a.isElement?.(m)&&(b=await a.getDimensions(m));const y=ti(c);let k=t,S=n;y==="left"&&(k=b.width-(t+r.width)),y==="top"&&(S=b.height-(n+r.height));const R=y==="left"?"right":xp.sideX,T=y==="top"?"bottom":xp.sideY;return{x:k,y:S,data:{sideX:R,sideY:T}}}};function QA(e,t,n){const r=e==="inline-start"||e==="inline-end";return{top:"top",right:r?n?"inline-start":"inline-end":"right",bottom:"bottom",left:r?n?"inline-end":"inline-start":"left"}[t]}function RE(e,t,n){const{rects:r,placement:s}=e;return{side:QA(t,ti(s),n),align:Co(s)||"center",anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function Ex(e){const{anchor:t,positionMethod:n="absolute",side:r="bottom",sideOffset:s=0,align:a="center",alignOffset:l=0,collisionBoundary:c,collisionPadding:f=5,sticky:d=!1,arrowPadding:h=5,disableAnchorTracking:m=!1,inline:b,keepMounted:y=!1,floatingRootContext:k,mounted:S,collisionAvoidance:R,shiftCrossAxis:T=!1,nodeId:E,adaptiveOrigin:C,lazyFlip:_=!1,externalTree:D}=e,[A,M]=v.useState(null);!S&&A!==null&&M(null);const B=R.side||"flip",P=R.align||"flip",N=R.fallbackAxisSide||"end",W=typeof t=="function"?t:void 0,$=Ke(W),F=W?$:t,z=On(t),U=On(S),K=Di()==="rtl",q=A||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":K?"left":"right","inline-start":K?"right":"left"}[r],Y=a==="center"?q:`${q}-${a}`;let O=f;const j=1,V=r==="bottom"?j:0,L=r==="top"?j:0,X=r==="right"?j:0,se=r==="left"?j:0;typeof O=="number"?O={top:O+V,right:O+se,bottom:O+L,left:O+X}:O&&(O={top:(O.top||0)+V,right:(O.right||0)+se,bottom:(O.bottom||0)+L,left:(O.left||0)+X});const ne={boundary:c==="clipping-ancestors"?"clippingAncestors":c,padding:O},oe=v.useRef(null),le=On(s),ce=On(l),Ee=typeof s!="function"?s:0,be=typeof l!="function"?l:0,ue=[];b&&ue.push(b),ue.push(ix(it=>{const ft=RE(it,r,K),Lt=typeof le.current=="function"?le.current(ft):le.current,Pt=typeof ce.current=="function"?ce.current(ft):ce.current;return{mainAxis:Lt,crossAxis:Pt,alignmentAxis:Pt}},[Ee,be,K,r]));const ge=P==="none"&&B!=="shift",Se=!ge&&(d||T||B==="shift"),Ae=B==="none"?null:ox({...ne,padding:{top:O.top+j,right:O.right+j,bottom:O.bottom+j,left:O.left+j},mainAxis:!T&&B==="flip",crossAxis:P==="flip"?"alignment":!1,fallbackAxisSideDirection:N}),ke=ge?null:sx(it=>{const ft=Wt(it.elements.floating).documentElement;return{...ne,rootBoundary:T?{x:0,y:0,width:ft.clientWidth,height:ft.clientHeight}:void 0,mainAxis:P!=="none",crossAxis:Se,limiter:d||T?void 0:v$(Lt=>{if(!oe.current)return{};const{width:Pt,height:At}=oe.current.getBoundingClientRect(),Z=mi(ti(Lt.placement)),me=Z==="y"?Pt:At,Le=Z==="y"?O.left+O.right:O.top+O.bottom;return{offset:me/2+Le/2}})}},[ne,d,T,O,P]);B==="shift"||P==="shift"||a==="center"?ue.push(ke,Ae):ue.push(Ae,ke),ue.push(ax({...ne,apply({elements:{floating:it},availableWidth:ft,availableHeight:Lt,rects:Pt}){if(!U.current)return;const At=it.style;At.setProperty("--available-width",`${ft}px`),At.setProperty("--available-height",`${Lt}px`);const Z=xn(it).devicePixelRatio||1,{x:me,y:Le,width:Xe,height:Ct}=Pt.reference,lt=(Math.round((me+Xe)*Z)-Math.round(me*Z))/Z,He=(Math.round((Le+Ct)*Z)-Math.round(Le*Z))/Z;At.setProperty("--anchor-width",`${lt}px`),At.setProperty("--anchor-height",`${He}px`)}}),d4(it=>({element:oe.current||Wt(it.elements.floating).createElement("div"),padding:h,offsetParent:"floating"}),[h]),{name:"transformOrigin",fn(it){const{elements:ft,middlewareData:Lt,placement:Pt,rects:At,y:Z}=it,me=ti(Pt),Le=mi(me),Xe=oe.current,Ct=Lt.arrow?.x||0,lt=Lt.arrow?.y||0,He=Xe?.clientWidth||0,qe=Xe?.clientHeight||0,De=Ct+He/2,je=lt+qe/2,Ie=Math.abs(Lt.shift?.y||0),We=At.reference.height/2,dt=typeof s=="function"?s(RE(it,r,K)):s,Et=Ie>dt,Ne={top:`${De}px calc(100% + ${dt}px)`,bottom:`${De}px ${-dt}px`,left:`calc(100% + ${dt}px) ${je}px`,right:`${-dt}px ${je}px`}[me],Tt=`${De}px ${At.reference.y+We-Z}px`;return ft.floating.style.setProperty("--transform-origin",Se&&Le==="y"&&Et?Tt:Ne),{}}},h4,C),Ve(()=>{!S&&k&&k.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[S,k]);const xe=v.useMemo(()=>({elementResize:!m&&typeof ResizeObserver<"u",layoutShift:!m&&typeof IntersectionObserver<"u"}),[m]),{refs:Re,elements:Me,x:ze,y:Fe,middlewareData:ye,update:_e,placement:ee,context:fe,isPositioned:Q,floatingStyles:re}=W$({rootContext:k,open:y?S:void 0,placement:Y,middleware:ue,strategy:n,whileElementsMounted:y?void 0:(...it)=>Lp(...it,xe),nodeId:E,externalTree:D}),{sideX:we,sideY:Pe}=ye.adaptiveOrigin||xp,Ye=Q?n:"fixed",Ze=v.useMemo(()=>{const it=C?{position:Ye,[we]:ze,[Pe]:Fe}:{position:Ye,...re};return Q||(it.opacity=0),it},[C,Ye,we,ze,Pe,Fe,re,Q]),bt=v.useRef(null);Ve(()=>{if(!S)return;const it=z.current,ft=typeof it=="function"?it():it,Pt=(CE(ft)?ft.current:ft)||null||null;Pt!==bt.current&&(Re.setPositionReference(Pt),bt.current=Pt)},[S,Re,F,z]),v.useEffect(()=>{if(!S)return;const it=z.current;typeof it!="function"&&CE(it)&&it.current!==bt.current&&(Re.setPositionReference(it.current),bt.current=it.current)},[S,Re,F,z]),v.useEffect(()=>{if(y&&S&&Me.reference&&Me.floating)return Lp(Me.reference,Me.floating,_e,xe)},[y,S,Me,_e,xe]);const Je=ti(ee),xt=QA(r,Je,K),St=Co(ee)||"center",nt=!!ye.hide?.referenceHidden;Ve(()=>{_&&S&&Q&&M(Je)},[_,S,Q,Je]);const rt=v.useMemo(()=>({position:"absolute",top:ye.arrow?.y,left:ye.arrow?.x}),[ye.arrow]),ct=ye.arrow?.centerOffset!==0;return v.useMemo(()=>({positionerStyles:Ze,arrowStyles:rt,arrowRef:oe,arrowUncentered:ct,side:xt,align:St,physicalSide:Je,anchorHidden:nt,refs:Re,context:fe,isPositioned:Q,update:_e}),[Ze,rt,oe,ct,xt,St,Je,nt,Re,fe,Q,_e])}function CE(e){return e!=null&&"current"in e}function Lh(e){return e==="starting"?kP:Bn}function Tx(e,t,{styles:n,transitionStatus:r,props:s,refs:a,hidden:l,inert:c=!1}){const f={...n};return c&&(f.pointerEvents="none"),bn("div",e,{state:t,ref:a,props:[{role:"presentation",hidden:l,style:f},Lh(r),s],stateAttributesMapping:Wc})}const m4=20;function g4(e,t,n,r){const[s,a]=v.useState(!1);Ve(()=>{if(!e||!t||n==null){a(!1);return}const l=Wt(n).documentElement.clientWidth,c=n.offsetWidth;a(l>0&&c>0&&c>=l-m4)},[e,t,n]),y3(e&&(!t||s),r)}let JA=(function(e){return e[e.None=0]="None",e[e.GuessFromOrder=1]="GuessFromOrder",e})({});function eN(e={}){const{label:t,metadata:n,textRef:r,indexGuessBehavior:s,index:a}=e,{register:l,unregister:c,subscribeMapChange:f,elementsRef:d,labelsRef:h,nextIndexRef:m}=a4(),b=v.useRef(-1),[y,k]=v.useState(a??(s===JA.GuessFromOrder?()=>{if(b.current===-1){const T=m.current;m.current+=1,b.current=T}return b.current}:-1)),S=v.useRef(null),R=v.useCallback(T=>{if(S.current=T,y!==-1&&T!==null&&(d.current[y]=T,h)){const E=t!==void 0;h.current[y]=E?t:r?.current?.textContent??T.textContent}},[y,d,h,t,r]);return Ve(()=>{if(a!=null)return;const T=S.current;if(T)return l(T,n),()=>{c(T)}},[a,l,c,n]),Ve(()=>{if(a==null)return f(T=>{const E=S.current?T.get(S.current)?.index:null;E!=null&&k(E)})},[a,f,k]),{ref:R,index:y}}const tN={popup:{k6sLGO:"ui-1so62im",k3nNDw:"ui-ctpfpq",k1ekBW:"ui-11xpdln",kAMwcw:"ui-19frgs0",kIyJzY:"ui-7pq1vu ui-1fdgx8g ui-sagj69",k3aq6I:"ui-1c071of ui-17ll0io ui-2um2vg ui-1ahjy9u ui-s2p038 ui-fld6f8 ui-14hpypv ui-1296zyv ui-1h7md5i",$$css:!0},positioner:{"--ui-floating-anchor-fade-duration":"ui-1kwwprx ui-5ece57 ui-4rr00i",kSiTet:"ui-1hc1fzr ui-4itv7f ui-fwszop",$$css:!0}},jh=tN.popup,b4=tN.positioner,y4={transition:`opacity var(--ui-floating-anchor-fade-duration) ${Zj["--cursor-easing-out-quint"]}`};function zh(...e){const t=zt(b4,...e);return{...t,style:{...t.style,...y4}}}const Ph={border:{k5JduY:"ui-1s928wv",kwXMNM:"ui-1j6awrg",k3foIR:"ui-1m1drc7",kH8aOt:"ui-1unh1gc",k8Iv0R:"ui-1xrz1ek",kc1e00:"ui-1iygr5g",kDVEDD:"ui-itxdhh",kUfP38:"ui-1k48kgn",kbMawA:"ui-1o7vem3",kloYau:"ui-2q1x1w",$$css:!0}},lr={positioner:{kY2c9j:"ui-2hst0z",$$css:!0},popupPositioner:{kY2c9j:"ui-fc2p8",$$css:!0},popupShadow:{kGVxlE:"ui-1x78n9t",$$css:!0},tooltipShadow:{kGVxlE:"ui-4l6n3x",$$css:!0},popupRadius:{kaIpWk:"ui-1pkpdue",$$css:!0},tooltipRadius:{kaIpWk:"ui-15ujvgx",$$css:!0},surface:{kB7OPa:"ui-9f619",kVAEAm:"ui-1n2onr6",kWkggS:"ui-f1vpex",kEafiO:"ui-972fbf",kPef9Z:"ui-1ejq31n",ke9TFa:"ui-10w94by",k8ry5P:"ui-18oe1m7",kt9PQ7:"ui-1qhh985",kfdmCh:"ui-1sy0etr",k2ei4v:"ui-14e42zd",kVhnKS:"ui-stzfhl",kaIpWk:"ui-1pkpdue",kMwMTN:"ui-1wd3ewq",kMv6JI:"ui-1acoasx",kGuDYH:"ui-11wthnw",kLWn49:"ui-1ja60sm",kb6lSQ:"ui-vu1jfw",khiITx:"ui-vmahel",kTUp5R:"ui-lh3980",$$css:!0},popupLayout:{k1xSpc:"ui-1lliihq",kzqmXN:"ui-ezivpi",ks0D6T:"ui-w5ewwj",kHjlTd:"ui-j0a0fe",$$css:!0},popupInset:{kLKAdn:"ui-uve7l6",kwRFfy:"ui-196pc8s",kGO01o:"ui-1rgtt3y",kZCmMZ:"ui-22095l",$$css:!0},previewCardInset:{kLKAdn:"ui-oyc9vk",kwRFfy:"ui-1fg0g13",kGO01o:"ui-2lprc",kZCmMZ:"ui-1tajz9i",$$css:!0},popupInteractive:{kfzvcC:"ui-67bb7w",kfSwDN:"ui-1hx0egp",$$css:!0},popupSurfaceMd:{kaIpWk:"ui-1pkpdue",$$css:!0},tooltipSurface:{"--ui-surface-hairline-width":"ui-10ssw4j",kGuDYH:"ui-mppzg7",kLWn49:"ui-l68z86",kb6lSQ:"ui-55tv1j",kLKAdn:"ui-3jsnqb",kGO01o:"ui-1w5ico7",kwRFfy:"ui-180w9kh",kZCmMZ:"ui-1vs96pt",$$css:!0}},nN=lr.positioner,Rx=[lr.surface,Ph.border],rN=[nN,lr.popupShadow,lr.popupRadius],v4=[nN,lr.tooltipShadow,lr.tooltipRadius],x4=[lr.tooltipRadius,lr.tooltipSurface],k4=lr.popupLayout,S4=lr.popupInset,iN=lr.previewCardInset,sN=[k4,S4],w4=lr.popupInteractive,oN=[lr.surface,Ph.border],E4=lr.popupSurfaceMd,T4=lr.popupPositioner,R4=[T4,lr.popupShadow,lr.popupRadius],xa={popupFrame:{kB7OPa:"ui-9f619",k1xSpc:"ui-78zum5",kXwgrk:"ui-dt5ytf",kXHlph:"ui-6ikm8r",kORKVm:"ui-10wlt62",kHBbk8:"ui-c8icb0",kfSwDN:"ui-87ps6o",kY4cRS:"ui-lvsv26",$$css:!0},list:{k1xSpc:"ui-78zum5",kXwgrk:"ui-dt5ytf",kAzted:"ui-2lwn1j",kXHlph:"ui-6ikm8r",kORKVm:"ui-ryxfnj",$$css:!0},row:{k1xSpc:"ui-78zum5",kXwgrk:"ui-1q0g3np",kGNEyG:"ui-6s0dn4",kMeerF:"ui-1k57tk5",k3XXqK:"ui-1t137rt",kkrTdU:"ui-1ypdohk ui-mh7c9n",kMwMTN:"ui-1wd3ewq ui-1kosevp",kWkggS:"ui-jbqb8w ui-1sbws7q",$$css:!0},rowFrame:{kB7OPa:"ui-9f619",kVAEAm:"ui-1n2onr6",kOIVth:"ui-xhr3t",kaIpWk:"ui-2u8bby","--ui-popup-list-row-highlighted-opacity":"ui-5i412e ui-1nlrr02",kWkggS:"ui-jbqb8w ui-9wl9qz",$$css:!0},rowInsetHighlight:{kfYRhQ:"ui-1b16mni",k7VdEw:"ui-1nwgpwx",kXO8Uu:"ui-1r87rg3",kDFFfQ:"ui-1wv1pz9",kllAdU:"ui-1v0xhfw",kxsapM:"ui-13bjwnm",k3JYP4:"ui-t2or2s",kDMCui:"ui-tj3xra",kWQQwa:"ui-50seq6",kYNu72:"ui-95qkr9",$$css:!0},rowSectionTrailing:{keTefX:"ui-kiyga0",$$css:!0},rowSectionDescription:{kSGwAc:"ui-qcrz7y",keoZOQ:"ui-1k5org8",$$css:!0}},C4=xa.list,_4=xa.row,A4=xa.popupFrame,N4=xa.rowFrame,O4=xa.rowInsetHighlight,I4=xa.rowSectionTrailing,M4=xa.rowSectionDescription,Pr={popup:{k7Eaqz:"ui-1i9suas",ks0D6T:"ui-13kvn80",kskxy:"ui-2pj5ht",$$css:!0},popupWidth:e=>[{kzqmXN:e!=null?"ui-5lhr3w":e,ks0D6T:e!=null?"ui-f68679":e,$$css:!0},{"--x-width":(t=>typeof t=="number"?t+"px":t??void 0)(e),"--x-maxWidth":(t=>typeof t=="number"?t+"px":t??void 0)(e)}],popupDefaultWidth:{kzqmXN:"ui-ezivpi",k7Eaqz:"ui-lopysa",$$css:!0},list:{kOIVth:"ui-ihas45",kLKAdn:"ui-9g4tyx",kwRFfy:"ui-yri2b",kGO01o:"ui-x776sp",kZCmMZ:"ui-1c1uobl",$$css:!0},row:{kAzted:"ui-14dnd5q ui-12uk8lx",kLKAdn:"ui-p90ga9 ui-17apzky",kwRFfy:"ui-mk9vl6",kGO01o:"ui-1ep5yuf ui-zkc5ih",kZCmMZ:"ui-vtdk6d",$$css:!0},rowText:{kUk6DE:"ui-98rzlu",k7Eaqz:"ui-euugli",kVAEAm:"ui-1n2onr6",kY2c9j:"ui-1vjfegm",$$css:!0},rowLabel:{k1xSpc:"ui-1lliihq",kzQI83:"ui-1iyjqo2",kmuXW:"ui-s83m0k",kCS8Yb:"ui-dl72j9",k7Eaqz:"ui-euugli",ks0D6T:"ui-193iq5w",kVQacm:"ui-b3r6kr",kg5iWk:"ui-lyipyv",khDVqt:"ui-uxw1ft",$$css:!0},itemTextWithMeta:{k1xSpc:"ui-78zum5",kXwgrk:"ui-1q0g3np",kGNEyG:"ui-1pha0wt",k7Eaqz:"ui-euugli",ks0D6T:"ui-193iq5w",$$css:!0},rowTextWithDescription:{k1xSpc:"ui-78zum5",kXwgrk:"ui-dt5ytf",kGNEyG:"ui-1cy8zhl",kOIVth:"ui-137clkk",$$css:!0},rowDescription:{k1xSpc:"ui-1lliihq",ks0D6T:"ui-193iq5w",kXHlph:"ui-6ikm8r",kORKVm:"ui-10wlt62",kg5iWk:"ui-lyipyv",khDVqt:"ui-uxw1ft",kMwMTN:"ui-4b2ntj",$$css:!0},rowMeta:{keTefX:"ui-1uokl23",$$css:!0},rowSection:{k1xSpc:"ui-3nfvp2",kGNEyG:"ui-6s0dn4",kmuXW:"ui-2lah0s",kVAEAm:"ui-1n2onr6",kY2c9j:"ui-1vjfegm",kMwMTN:"ui-19aaqeu",$$css:!0},rowSectionLeading:{k71WvV:"ui-17adnql",$$css:!0},rowSectionEnd:{kOIVth:"ui-1jcujwu",$$css:!0}},D4=[oN,A4,Pr.popup],L4={sm:null,md:E4},j4=Pr.popupWidth,z4=Pr.popupDefaultWidth,P4=[C4,Pr.list],$4=[_4,N4,Pr.row,O4,Cs.root],B4=Pr.rowText,F4=Pr.rowLabel,U4=Pr.itemTextWithMeta,q4=Pr.rowTextWithDescription,H4=Pr.rowDescription,V4=Pr.rowMeta,Mb=Pr.rowSection,G4=Pr.rowSectionLeading,_E=I4,W4=Pr.rowSectionEnd,Db=M4;function sl(e,t,n){let r=n.initialDeps??[],s,a=!0;function l(){var c,f,d;let h;n.key&&((c=n.debug)!=null&&c.call(n))&&(h=Date.now());const m=e();if(!(m.length!==r.length||m.some((k,S)=>r[S]!==k)))return s;r=m;let y;if(n.key&&((f=n.debug)!=null&&f.call(n))&&(y=Date.now()),s=t(...m),n.key&&((d=n.debug)!=null&&d.call(n))){const k=Math.round((Date.now()-h)*100)/100,S=Math.round((Date.now()-y)*100)/100,R=S/16,T=(E,C)=>{for(E=String(E);E.length<C;)E=" "+E;return E};console.info(`%c⏱ ${T(S,5)} /${T(k,5)} ms`,`
10
10
  font-size: .6rem;
11
11
  font-weight: bold;
12
12
  color: hsl(${Math.max(0,Math.min(120-120*R,120))}deg 100% 31%);`,n?.key)}return n?.onChange&&!(a&&n.skipInitialOnChange)&&n.onChange(s),a=!1,s}return l.updateDeps=c=>{r=c},l}function AE(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const K4=(e,t)=>Math.abs(e-t)<1.01,Y4=(e,t,n)=>{let r;return function(...s){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,s),n)}},NE=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},X4=e=>e,Z4=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let s=t;s<=n;s++)r.push(s);return r},Q4=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;const s=l=>{const{width:c,height:f}=l;t({width:Math.round(c),height:Math.round(f)})};if(s(NE(n)),!r.ResizeObserver)return()=>{};const a=new r.ResizeObserver(l=>{const c=()=>{const f=l[0];if(f?.borderBoxSize){const d=f.borderBoxSize[0];if(d){s({width:d.inlineSize,height:d.blockSize});return}}s(NE(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(c):c()});return a.observe(n,{box:"border-box"}),()=>{a.unobserve(n)}},OE={passive:!0},IE=typeof window>"u"?!0:"onscrollend"in window,J4=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;let s=0;const a=e.options.useScrollendEvent&&IE?()=>{}:Y4(r,()=>{t(s,!1)},e.options.isScrollingResetDelay),l=h=>()=>{const{horizontal:m,isRtl:b}=e.options;s=m?n.scrollLeft*(b&&-1||1):n.scrollTop,a(),t(s,h)},c=l(!0),f=l(!1);n.addEventListener("scroll",c,OE);const d=e.options.useScrollendEvent&&IE;return d&&n.addEventListener("scrollend",f,OE),()=>{n.removeEventListener("scroll",c),d&&n.removeEventListener("scrollend",f)}},eB=(e,t,n)=>{if(t?.borderBoxSize){const r=t.borderBoxSize[0];if(r)return Math.round(r[n.options.horizontal?"inlineSize":"blockSize"])}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},tB=(e,{adjustments:t=0,behavior:n},r)=>{var s,a;const l=e+t;(a=(s=r.scrollElement)==null?void 0:s.scrollTo)==null||a.call(s,{[r.options.horizontal?"left":"top"]:l,behavior:n})};class nB{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.now=()=>{var n,r,s;return((s=(r=(n=this.targetWindow)==null?void 0:n.performance)==null?void 0:r.now)==null?void 0:s.call(r))??Date.now()},this.observer=(()=>{let n=null;const r=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(s=>{s.forEach(a=>{const l=()=>{const c=a.target,f=this.indexFromElement(c);if(!c.isConnected){this.observer.unobserve(c);return}this.shouldMeasureDuringScroll(f)&&this.resizeItem(f,this.options.measureElement(c,a,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(l):l()})}));return{disconnect:()=>{var s;(s=r())==null||s.disconnect(),n=null},observe:s=>{var a;return(a=r())==null?void 0:a.observe(s,{box:"border-box"})},unobserve:s=>{var a;return(a=r())==null?void 0:a.unobserve(s)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([r,s])=>{typeof s>"u"&&delete n[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:X4,rangeExtractor:Z4,onChange:()=>{},measureElement:eB,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...n}},this.notify=n=>{var r,s;(s=(r=this.options).onChange)==null||s.call(r,this,n)},this.maybeNotify=sl(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.observer.disconnect(),this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;const r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.maybeNotify();return}this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this.elementsCache.forEach(s=>{this.observer.observe(s)}),this.unsubs.push(this.options.observeElementRect(this,s=>{this.scrollRect=s,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(s,a)=>{this.scrollAdjustments=0,this.scrollDirection=a?this.getScrollOffset()<s?"forward":"backward":null,this.scrollOffset=s,this.isScrolling=a,this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(n,r)=>{const s=new Map,a=new Map;for(let l=r-1;l>=0;l--){const c=n[l];if(s.has(c.lane))continue;const f=a.get(c.lane);if(f==null||c.end>f.end?a.set(c.lane,c):c.end<f.end&&s.set(c.lane,!0),s.size===this.options.lanes)break}return a.size===this.options.lanes?Array.from(a.values()).sort((l,c)=>l.end===c.end?l.index-c.index:l.end-c.end)[0]:void 0},this.getMeasurementOptions=sl(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes],(n,r,s,a,l,c)=>(this.prevLanes!==void 0&&this.prevLanes!==c&&(this.lanesChangedFlag=!0),this.prevLanes=c,this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:r,scrollMargin:s,getItemKey:a,enabled:l,lanes:c}),{key:!1}),this.getMeasurements=sl(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:r,scrollMargin:s,getItemKey:a,enabled:l,lanes:c},f)=>{if(!l)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>n)for(const b of this.laneAssignments.keys())b>=n&&this.laneAssignments.delete(b);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMeasuredCacheIndexes=[]),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(b=>{this.itemSizeCache.set(b.key,b.size)}));const d=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===n&&(this.lanesSettling=!1);const h=this.measurementsCache.slice(0,d),m=new Array(c).fill(void 0);for(let b=0;b<d;b++){const y=h[b];y&&(m[y.lane]=b)}for(let b=d;b<n;b++){const y=a(b),k=this.laneAssignments.get(b);let S,R;if(k!==void 0&&this.options.lanes>1){S=k;const _=m[S],D=_!==void 0?h[_]:void 0;R=D?D.end+this.options.gap:r+s}else{const _=this.options.lanes===1?h[b-1]:this.getFurthestMeasurement(h,b);R=_?_.end+this.options.gap:r+s,S=_?_.lane:b%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(b,S)}const T=f.get(y),E=typeof T=="number"?T:this.options.estimateSize(b),C=R+E;h[b]={index:b,start:R,size:E,end:C,key:y,lane:S},m[S]=b}return this.measurementsCache=h,h},{key:!1,debug:()=>this.options.debug}),this.calculateRange=sl(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(n,r,s,a)=>this.range=n.length>0&&r>0?rB({measurements:n,outerSize:r,scrollOffset:s,lanes:a}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=sl(()=>{let n=null,r=null;const s=this.calculateRange();return s&&(n=s.startIndex,r=s.endIndex),this.maybeNotify.updateDeps([this.isScrolling,n,r]),[this.options.rangeExtractor,this.options.overscan,this.options.count,n,r]},(n,r,s,a,l)=>a===null||l===null?[]:n({startIndex:a,endIndex:l,overscan:r,count:s}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=n=>{const r=this.options.indexAttribute,s=n.getAttribute(r);return s?parseInt(s,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=n=>{var r;if(!this.scrollState||this.scrollState.behavior!=="smooth")return!0;const s=this.scrollState.index??((r=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))==null?void 0:r.index);if(s!==void 0&&this.range){const a=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),l=Math.max(0,s-a),c=Math.min(this.options.count-1,s+a);return n>=l&&n<=c}return!0},this.measureElement=n=>{if(!n){this.elementsCache.forEach((l,c)=>{l.isConnected||(this.observer.unobserve(l),this.elementsCache.delete(c))});return}const r=this.indexFromElement(n),s=this.options.getItemKey(r),a=this.elementsCache.get(s);a!==n&&(a&&this.observer.unobserve(a),this.observer.observe(n),this.elementsCache.set(s,n)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(r)&&this.resizeItem(r,this.options.measureElement(n,void 0,this))},this.resizeItem=(n,r)=>{var s;const a=this.measurementsCache[n];if(!a)return;const l=this.itemSizeCache.get(a.key)??a.size,c=r-l;c!==0&&(((s=this.scrollState)==null?void 0:s.behavior)!=="smooth"&&(this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(a,c,this):a.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=c,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(a.index),this.itemSizeCache=new Map(this.itemSizeCache.set(a.key,r)),this.notify(!1))},this.getVirtualItems=sl(()=>[this.getVirtualIndexes(),this.getMeasurements()],(n,r)=>{const s=[];for(let a=0,l=n.length;a<l;a++){const c=n[a],f=r[c];s.push(f)}return s},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const r=this.getMeasurements();if(r.length!==0)return AE(r[aN(0,r.length-1,s=>AE(r[s]).start,n)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const n=this.scrollElement.document.documentElement;return this.options.horizontal?n.scrollWidth-this.scrollElement.innerWidth:n.scrollHeight-this.scrollElement.innerHeight}},this.getOffsetForAlignment=(n,r,s=0)=>{if(!this.scrollElement)return 0;const a=this.getSize(),l=this.getScrollOffset();r==="auto"&&(r=n>=l+a?"end":"start"),r==="center"?n+=(s-a)/2:r==="end"&&(n-=a);const c=this.getMaxScrollOffset();return Math.max(Math.min(c,n),0)},this.getOffsetForIndex=(n,r="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const s=this.getSize(),a=this.getScrollOffset(),l=this.measurementsCache[n];if(!l)return;if(r==="auto")if(l.end>=a+s-this.options.scrollPaddingEnd)r="end";else if(l.start<=a+this.options.scrollPaddingStart)r="start";else return[a,r];if(r==="end"&&n===this.options.count-1)return[this.getMaxScrollOffset(),r];const c=r==="end"?l.end+this.options.scrollPaddingEnd:l.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(c,r,l.size),r]},this.scrollToOffset=(n,{align:r="start",behavior:s="auto"}={})=>{const a=this.getOffsetForAlignment(n,r),l=this.now();this.scrollState={index:null,align:r,behavior:s,startedAt:l,lastTargetOffset:a,stableFrames:0},this._scrollToOffset(a,{adjustments:void 0,behavior:s}),this.scheduleScrollReconcile()},this.scrollToIndex=(n,{align:r="auto",behavior:s="auto"}={})=>{n=Math.max(0,Math.min(n,this.options.count-1));const a=this.getOffsetForIndex(n,r);if(!a)return;const[l,c]=a,f=this.now();this.scrollState={index:n,align:c,behavior:s,startedAt:f,lastTargetOffset:l,stableFrames:0},this._scrollToOffset(l,{adjustments:void 0,behavior:s}),this.scheduleScrollReconcile()},this.scrollBy=(n,{behavior:r="auto"}={})=>{const s=this.getScrollOffset()+n,a=this.now();this.scrollState={index:null,align:"start",behavior:r,startedAt:a,lastTargetOffset:s,stableFrames:0},this._scrollToOffset(s,{adjustments:void 0,behavior:r}),this.scheduleScrollReconcile()},this.getTotalSize=()=>{var n;const r=this.getMeasurements();let s;if(r.length===0)s=this.options.paddingStart;else if(this.options.lanes===1)s=((n=r[r.length-1])==null?void 0:n.end)??0;else{const a=Array(this.options.lanes).fill(null);let l=r.length-1;for(;l>=0&&a.some(c=>c===null);){const c=r[l];a[c.lane]===null&&(a[c.lane]=c.end),l--}s=Math.max(...a.filter(c=>c!==null))}return Math.max(s-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(n,{adjustments:r,behavior:s})=>{this.options.scrollToFn(n,{behavior:s,adjustments:r},this)},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(!1)},this.setOptions(t)}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}this.rafId==null&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()}))}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}const r=this.scrollState.index!=null?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,s=r?r[0]:this.scrollState.lastTargetOffset,a=1,l=s!==this.scrollState.lastTargetOffset;if(!l&&K4(s,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=a){this.scrollState=null;return}}else this.scrollState.stableFrames=0,l&&(this.scrollState.lastTargetOffset=s,this.scrollState.behavior="auto",this._scrollToOffset(s,{adjustments:void 0,behavior:"auto"}));this.scheduleScrollReconcile()}}const aN=(e,t,n,r)=>{for(;e<=t;){const s=(e+t)/2|0,a=n(s);if(a<r)e=s+1;else if(a>r)t=s-1;else return s}return e>0?e-1:0};function rB({measurements:e,outerSize:t,scrollOffset:n,lanes:r}){const s=e.length-1,a=f=>e[f].start;if(e.length<=r)return{startIndex:0,endIndex:s};let l=aN(0,s,a,n),c=l;if(r===1)for(;c<s&&e[c].end<n+t;)c++;else if(r>1){const f=Array(r).fill(0);for(;c<s&&f.some(h=>h<n+t);){const h=e[c];f[h.lane]=h.end,c++}const d=Array(r).fill(n+t);for(;l>=0&&d.some(h=>h>=n);){const h=e[l];d[h.lane]=h.start,l--}l=Math.max(0,l-l%r),c=Math.min(s,c+(r-1-c%r))}return{startIndex:l,endIndex:c}}const ME=typeof document<"u"?v.useLayoutEffect:v.useEffect;function iB({useFlushSync:e=!0,...t}){const n=v.useReducer(()=>({}),{})[1],r={...t,onChange:(a,l)=>{var c;e&&l?Mi.flushSync(n):n(),(c=t.onChange)==null||c.call(t,a,l)}},[s]=v.useState(()=>new nB(r));return s.setOptions(r),ME(()=>s._didMount(),[]),ME(()=>s._willUpdate()),s}function lN(e){return iB({observeElementRect:Q4,observeElementOffset:J4,scrollToFn:tB,...e})}function sB(){const e=v.useRef(void 0),t=v.useCallback(()=>{const r=e.current;r!==void 0&&(e.current=void 0,cancelAnimationFrame(r))},[]),n=v.useCallback(r=>{t(),e.current=requestAnimationFrame(s=>{e.current=void 0,r(s)})},[t]);return v.useEffect(()=>t,[t]),v.useMemo(()=>({dispose:t,request:n}),[t,n])}function uN(e){return typeof ResizeObserver>"u"?null:new ResizeObserver(e)}function Gy({deltaX:e,deltaY:t,mapVerticalWheelToHorizontal:n,axisBehavior:r="dominant",mappedBehavior:s="dominant"}){if(n){let c;return s==="dominant"&&Math.abs(t)>Math.abs(e)?c=t:c=e||t,c===0?null:c}if(r==="raw")return e===0?null:e;const a=Math.abs(e),l=Math.abs(t);return e===0||a<=l?null:e}const oB="hover",aB=4,lB={kn1fP1:"ui-xqa2ke",kJcbqH:"ui-16fucec",$$css:!0};function uB(e){const{scrollTop:t,scrollHeight:n,clientHeight:r,threshold:s}=e;return{isAtTop:t<=s,isAtBottom:t+r>=n-s}}function cB(e){const{scrollLeft:t,scrollWidth:n,clientWidth:r,threshold:s}=e,a=Math.abs(t);return{isAtStart:a<=s,isAtEnd:a+r>=n-s}}const DE={maskGeometry:e=>[lB,{kQB4zb:(e>1?"intersect":null)!=null?"ui-1xrn8sl":e>1?"intersect":null,kRVSR3:(e>1?"source-in":null)!=null?"ui-60m5pi":e>1?"source-in":null,$$css:!0},{"--x-maskSize":(e>1?"100% 100%, 100% 100%":"100% 100%")!=null?e>1?"100% 100%, 100% 100%":"100% 100%":void 0,"--x-maskComposite":(e>1?"intersect":null)!=null?e>1?"intersect":null:void 0,"--x-WebkitMaskComposite":(e>1?"source-in":null)!=null?e>1?"source-in":null:void 0}],mask:e=>[{kX1K2I:e!=null?"ui-wjwp01":e,kAExgp:e!=null?"ui-11jd449":e,$$css:!0},{"--x-maskImage":e??void 0,"--x-WebkitMaskImage":e??void 0}]};function fB({topFadePx:e,bottomFadePx:t,topFadeStartOpacity:n=0,bottomFadeStartOpacity:r=0,startFadePx:s=0,endFadePx:a=0}){const l=[];return(e>0||t>0)&&l.push(`linear-gradient(to bottom, rgba(0, 0, 0, ${n}) 0px, black ${e}px, black calc(100% - ${t}px), rgba(0, 0, 0, ${r}) 100%)`),(s>0||a>0)&&l.push(`linear-gradient(to right, transparent 0px, black ${s}px, black calc(100% - ${a}px), transparent 100%)`),l.length===0?null:[DE.maskGeometry(l.length),DE.mask(l.join(", "))]}const dB=20;class pB{constructor(){this._trackSize=0,this._viewportSize=0,this._scrollSize=0,this._scrollPosition=0,this._isScrollable=!1,this._thumbSize=0,this._thumbPosition=0,this._thumbRatio=0}setDimensions(t,n,r,s){const a=Math.round(t),l=Math.round(n),c=Math.round(r),f=Math.round(s);return this._trackSize===a&&this._viewportSize===l&&this._scrollSize===c&&this._scrollPosition===f?!1:(this._trackSize=a,this._viewportSize=l,this._scrollSize=c,this._scrollPosition=f,this._recompute(),!0)}setScrollPosition(t){const n=Math.round(t);return this._scrollPosition===n?!1:(this._scrollPosition=n,this._thumbPosition=this._computeThumbPosition(),!0)}_recompute(){if(this._isScrollable=this._scrollSize>0&&this._viewportSize>0&&this._scrollSize>this._viewportSize,!this._isScrollable||this._trackSize<=0){this._thumbSize=0,this._thumbPosition=0,this._thumbRatio=0;return}const t=Math.floor(this._trackSize*this._viewportSize/this._scrollSize);this._thumbSize=Math.min(this._trackSize,Math.max(dB,t));const n=this._trackSize-this._thumbSize,r=this._scrollSize-this._viewportSize;this._thumbRatio=r>0?n/r:0,this._thumbPosition=this._computeThumbPosition()}_computeThumbPosition(){return!this._isScrollable||this._thumbRatio===0?0:Math.round(this._scrollPosition*this._thumbRatio)}isScrollable(){return this._isScrollable}getThumbSize(){return this._thumbSize}getThumbPosition(){return this._thumbPosition}getScrollPositionFromThumbDelta(t,n){return!this._isScrollable||this._thumbRatio===0?0:Math.round(n+t/this._thumbRatio)}getScrollPositionFromTrackOffset(t){if(!this._isScrollable||this._thumbRatio===0)return 0;const n=Math.max(0,Math.min(this._trackSize-this._thumbSize,t-this._thumbSize/2));return Math.round(n/this._thumbRatio)}}const vl=class vl{constructor(t){this.thumbInsetStart=0,this.horizontalWheelAxisLock=null,this.horizontalWheelResetTimer=null,this.resizeObserver=null,this.boundOnScroll=null,this.boundOnThumbDown=null,this.boundOnTrackDown=null,this.boundOnWheel=null,this.dragCleanup=null,this.pendingSyncThumbFrame=null,this.viewport=t.viewport,this.content=t.content,this.scrollbar=t.scrollbar,this.thumb=t.thumb,this.state=new pB,this.direction=t.direction,this.mapVerticalWheelToHorizontal=t.mapVerticalWheelToHorizontal??!1}get horizontal(){return this.direction==="horizontal"}attach(){this.attachScrollListener(),this.attachResizeObserver(),this.attachPointerEvents(),this.attachWheelForwarding(),this.scheduleSyncThumb()}detach(){this.detachScrollListener(),this.detachResizeObserver(),this.detachPointerEvents(),this.detachWheelForwarding(),this.pendingSyncThumbFrame!==null&&(cancelAnimationFrame(this.pendingSyncThumbFrame),this.pendingSyncThumbFrame=null),this.horizontalWheelResetTimer&&(clearTimeout(this.horizontalWheelResetTimer),this.horizontalWheelResetTimer=null),this.horizontalWheelAxisLock=null}refresh(){this.scheduleSyncThumb()}attachScrollListener(){this.boundOnScroll=this.handleScroll.bind(this),this.viewport.addEventListener("scroll",this.boundOnScroll,{passive:!0})}detachScrollListener(){this.boundOnScroll&&(this.viewport.removeEventListener("scroll",this.boundOnScroll),this.boundOnScroll=null)}handleScroll(){const t=this.horizontal?this.viewport.scrollLeft:this.viewport.scrollTop;if(this.state.setScrollPosition(t)){const n=this.state.getThumbPosition();this.thumb.style.transform=this.getThumbTransform(n)}}attachResizeObserver(){this.resizeObserver=uN(()=>this.scheduleSyncThumb()),this.resizeObserver!==null&&(this.resizeObserver.observe(this.viewport),this.content!==void 0&&this.resizeObserver.observe(this.content),this.resizeObserver.observe(this.scrollbar))}detachResizeObserver(){this.resizeObserver?.disconnect(),this.resizeObserver=null}scheduleSyncThumb(){this.pendingSyncThumbFrame===null&&(this.pendingSyncThumbFrame=requestAnimationFrame(()=>{this.pendingSyncThumbFrame=null,this.syncThumb()}))}syncThumb(){this.thumbInsetStart=this.getThumbInsetStart();const t=this.readDimensions();this.state.setDimensions(t.trackSize,t.viewportSize,t.scrollSize,t.scrollPos)&&this.applyThumbStyle()}readDimensions(){const t=Math.max(0,this.scrollbar.clientHeight-this.thumbInsetStart);return{trackSize:this.horizontal?this.scrollbar.clientWidth:t,viewportSize:this.horizontal?this.viewport.clientWidth:this.viewport.clientHeight,scrollSize:this.horizontal?this.viewport.scrollWidth:this.viewport.scrollHeight,scrollPos:this.horizontal?this.viewport.scrollLeft:this.viewport.scrollTop}}applyThumbStyle(){const t=this.state.getThumbSize(),n=this.state.getThumbPosition();this.horizontal?(this.thumb.style.width=`${t}px`,this.thumb.style.height="",this.thumb.style.transform=this.getThumbTransform(n)):(this.thumb.style.height=`${t}px`,this.thumb.style.width="",this.thumb.style.transform=this.getThumbTransform(n)),this.scrollbar.dataset.scrollable=this.state.isScrollable()?"true":"false"}attachPointerEvents(){this.boundOnThumbDown=this.handleThumbDown.bind(this),this.boundOnTrackDown=this.handleTrackDown.bind(this),this.thumb.addEventListener("pointerdown",this.boundOnThumbDown),this.scrollbar.addEventListener("pointerdown",this.boundOnTrackDown)}detachPointerEvents(){this.boundOnThumbDown&&(this.thumb.removeEventListener("pointerdown",this.boundOnThumbDown),this.boundOnThumbDown=null),this.boundOnTrackDown&&(this.scrollbar.removeEventListener("pointerdown",this.boundOnTrackDown),this.boundOnTrackDown=null),this.dragCleanup?.(),this.dragCleanup=null}handleThumbDown(t){if(t.button!==0)return;t.preventDefault();const n=this.horizontal?t.clientX:t.clientY,r=this.horizontal?this.viewport.scrollLeft:this.viewport.scrollTop,s=t.pointerId;this.thumb.setPointerCapture(s),this.thumb.classList.add("ui-scroll-area__thumb--active");const a=c=>{const f=(this.horizontal?c.clientX:c.clientY)-n,d=this.state.getScrollPositionFromThumbDelta(f,r);this.horizontal?this.viewport.scrollLeft=d:this.viewport.scrollTop=d},l=()=>{this.thumb.classList.remove("ui-scroll-area__thumb--active");try{this.thumb.releasePointerCapture(s)}catch{}this.thumb.removeEventListener("pointermove",a),this.thumb.removeEventListener("pointerup",l),this.thumb.removeEventListener("pointercancel",l),this.dragCleanup=null};this.thumb.addEventListener("pointermove",a),this.thumb.addEventListener("pointerup",l),this.thumb.addEventListener("pointercancel",l),this.dragCleanup=l}handleTrackDown(t){if(t.button!==0||t.target===this.thumb)return;const n=this.scrollbar.getBoundingClientRect();if(!this.horizontal){this.viewport.scrollTop=this.state.getScrollPositionFromTrackOffset(t.clientY-n.top-this.thumbInsetStart);return}const r=getComputedStyle(this.viewport).direction==="rtl",s=r?n.right-t.clientX:t.clientX-n.left,a=this.state.getScrollPositionFromTrackOffset(s);this.viewport.scrollLeft=r?-a:a}attachWheelForwarding(){this.boundOnWheel=t=>{if(this.horizontal){const n=this.viewport.scrollWidth-this.viewport.clientWidth;if(n<=0)return;let r=null;if(this.mapVerticalWheelToHorizontal)r=Gy({deltaX:t.deltaX,deltaY:t.deltaY,mapVerticalWheelToHorizontal:!0,mappedBehavior:"prefer-horizontal"});else{if(this.horizontalWheelAxisLock||(this.horizontalWheelAxisLock=Math.abs(t.deltaX)>Math.abs(t.deltaY)?"x":"y"),this.horizontalWheelResetTimer&&clearTimeout(this.horizontalWheelResetTimer),this.horizontalWheelResetTimer=setTimeout(()=>{this.horizontalWheelAxisLock=null,this.horizontalWheelResetTimer=null},vl.WHEEL_GESTURE_RESET_MS),this.horizontalWheelAxisLock!=="x")return;if(r=Gy({deltaX:t.deltaX,deltaY:t.deltaY,mapVerticalWheelToHorizontal:!1,axisBehavior:"raw"}),r===null){t.preventDefault(),t.stopPropagation();return}}if(r===null)return;const s=Math.max(0,Math.min(n,this.viewport.scrollLeft+r));this.viewport.scrollLeft=s,t.preventDefault(),t.stopPropagation()}else this.viewport.scrollTop+=t.deltaY},this.scrollbar.addEventListener("wheel",this.boundOnWheel,{passive:!1})}detachWheelForwarding(){this.boundOnWheel&&(this.scrollbar.removeEventListener("wheel",this.boundOnWheel),this.boundOnWheel=null)}getThumbTransform(t){return this.horizontal?`translateX(${t}px)`:`translateY(${t+this.thumbInsetStart}px)`}getThumbInsetStart(){if(this.horizontal)return 0;const t=getComputedStyle(this.scrollbar).getPropertyValue(vl.VERTICAL_THUMB_OFFSET_CSS_VAR),n=Number.parseFloat(t);return Number.isFinite(n)?Math.max(0,n):0}};vl.VERTICAL_THUMB_OFFSET_CSS_VAR="--scrollbar-thumb-top-offset",vl.WHEEL_GESTURE_RESET_MS=150;let Hp=vl;const hB={base:{"--scrollbar-size":"ui-1ekbvf6","--scrollbar-inset":"ui-1logqu4","--scrollbar-thumb-top-offset":"ui-1fx8caa","--scroll-area-scroll-padding":"ui-8ddqcf",kVAEAm:"ui-1n2onr6",kXHlph:"ui-6ikm8r",kORKVm:"ui-10wlt62",k1xSpc:"ui-rvj5dj",k52YG4:"ui-ypqxfk",$$css:!0}},Lb={base:{kJuA4N:"ui-175mniq",kAzted:"ui-2lwn1j",kskxy:"ui-mz0i5r",kaIpWk:"ui-1pjcqnp",kXHlph:"ui-6ikm8r",kORKVm:"ui-1odjw0f",kaPefq:"ui-1fu52t7",kC2sXz:"ui-1ufbpdf",k9lH4S:"ui-3oazx1",kphCe6:"ui-19l4kpp",kvh3hx:"ui-1t1jukp",kacamN:"ui-1e4zzel",k5wCbM:"ui-1rohswg",kAnDOJ:"ui-6ehuon",kOuLrU:"ui-fk6m8",$$css:!0},horizontal:{kXHlph:"ui-w2csxc",kORKVm:"ui-10wlt62",kaPefq:"ui-k8sdt9",kC2sXz:"ui-1duton",k9lH4S:"ui-101ixbw",kphCe6:"ui-exgr1p",kvh3hx:"ui-7p5m3t",kacamN:"ui-y5w88m",$$css:!0},both:{kXHlph:"ui-w2csxc",kORKVm:"ui-1odjw0f",kaPefq:"ui-k8sdt9",kC2sXz:"ui-1duton",k9lH4S:"ui-101ixbw",kphCe6:"ui-exgr1p",kZeWKH:"ui-ish69e",$$css:!0}},jb={base:{kB7OPa:"ui-9f619",kzqmXN:"ui-eq5yr9",k7Eaqz:"ui-gqtt45",ks0D6T:"ui-193iq5w",kAzted:"ui-1us19tq",k1xSpc:"ui-78zum5",kXwgrk:"ui-dt5ytf",$$css:!0},horizontal:{kzqmXN:"ui-14atkfc",kZKoxP:"ui-g7h5cd",kXwgrk:"ui-1q0g3np",$$css:!0},both:{kzqmXN:"ui-ezivpi",k7Eaqz:"ui-gqtt45",ks0D6T:"ui-1x1rfll",kZKoxP:"ui-t7dq6l",kXwgrk:"ui-dt5ytf",$$css:!0}},Ku={base:{kVAEAm:"ui-10l6tqk",kY2c9j:"ui-1n327nk",k87sOh:"ui-16271f3",kt4wiu:"ui-1cdd6y0",krVfgx:"ui-1c87l4o",kLqNvP:"ui-hi6v0a",kzqmXN:"ui-790ffn",kfzvcC:"ui-67bb7w",k1xSpc:"ui-1lliihq ui-y36ywk",$$css:!0},horizontal:{k87sOh:"ui-80663w",kt4wiu:"ui-1cdd6y0",krVfgx:"ui-1gncbth",kLqNvP:"ui-pl0nw1",kzqmXN:"ui-14atkfc",kZKoxP:"ui-a38mao",$$css:!0},bothVertical:{krVfgx:"ui-1143y87",$$css:!0},bothHorizontal:{kt4wiu:"ui-13kbk1n",$$css:!0},visibilityNever:{k1xSpc:"ui-1s85apg",$$css:!0}},zb={base:{kVAEAm:"ui-10l6tqk",k87sOh:"ui-13vifvy",kt4wiu:"ui-tijo5x",krVfgx:"ui-dd4er5",kLqNvP:"ui-1o0tod",kAzted:"ui-4jlmx6",kzqmXN:"ui-790ffn",kaIpWk:"ui-1i4c3av",kWkggS:"ui-1m4ooaa ui-1kik0b9 ui-19p5jqy ui-gk890x",kSiTet:"ui-1hc1fzr",kfzvcC:"ui-67bb7w",k3aq6I:"ui-oww4n8",k1ekBW:"ui-1e8aii2",kIyJzY:"ui-1vaoic9 ui-144st5w",kAMwcw:"ui-1aiz5cx",$$css:!0},horizontal:{k87sOh:"ui-13vifvy",kt4wiu:"ui-1woyocn",krVfgx:"ui-1ey2m1c",kLqNvP:"ui-1o0tod",kzqmXN:"ui-14atkfc",kZKoxP:"ui-a38mao",kAzted:"ui-65nank",k7Eaqz:"ui-cbmsab",$$css:!0},hoverHidden:{kSiTet:"ui-g01cxk ui-4gyw5p ui-gorybd",$$css:!0}};function mB(){return hB.base}function gB({direction:e}){return[Lb.base,e==="horizontal"?Lb.horizontal:null,e==="both"?Lb.both:null]}function bB(e){return[jb.base,e==="horizontal"?jb.horizontal:null,e==="both"?jb.both:null]}function LE({direction:e,orientation:t,visibility:n}){return[Ku.base,t==="horizontal"?Ku.horizontal:null,e==="both"&&t==="vertical"?Ku.bothVertical:null,e==="both"&&t==="horizontal"?Ku.bothHorizontal:null,n==="never"?Ku.visibilityNever:null]}function jE(e,t){return[zb.base,e==="horizontal"?zb.horizontal:null,t?zb.hoverHidden:null]}const yB=1e4,Yu=5,Nl=v.forwardRef(function({children:t,height:n,maxHeight:r,width:s,className:a,viewportClassName:l,rootStyle:c,viewportStyle:f,allowScrollChaining:d=!1,contentStyle:h,scrollbarStyle:m,overlay:b,style:y,scrollbarVisibility:k=oB,isScrollbarRevealed:S=!1,direction:R="vertical",topFadeSize:T,bottomFadeSize:E,topFadeStartOpacity:C=0,bottomFadeStartOpacity:_=0,startFadeSize:D,endFadeSize:A,autoScrollToBottom:M=!1,scrollTrigger:B,autoScrollPauseTimeout:P=yB,onScrollStateChange:N,mapVerticalWheelToHorizontal:W=!1,scrollPadding:$=aB,scrollbarInset:F,onPointerEnter:z,onPointerLeave:U,...H},K){const q=v.useRef(null),Y=v.useRef(null),O=v.useRef(null),j=v.useRef(null),V=v.useRef(null),L=v.useRef(null),X=v.useRef(null),se=R!=="horizontal",ne=R!=="vertical",oe=W&&!se,[le,ce]=v.useState(!1),[Ee,be]=v.useState(!1),[ue,ge]=v.useState(!1),[Se,Ae]=v.useState(!1),[ke,xe]=v.useState(!1),Re=v.useRef(!1);Re.current=ke;const Me=v.useRef(0),ze=v.useRef(0),Fe=v.useRef(null),ye=v.useRef(null);v.useLayoutEffect(()=>{const De=Y.current,je=O.current;if(!De||!je)return;const Ie=[];if(se){const We=j.current,dt=V.current;We&&dt&&Ie.push(new Hp({viewport:De,content:je,scrollbar:We,thumb:dt,direction:"vertical",mapVerticalWheelToHorizontal:oe}))}if(ne){const We=L.current,dt=X.current;We&&dt&&Ie.push(new Hp({viewport:De,content:je,scrollbar:We,thumb:dt,direction:"horizontal",mapVerticalWheelToHorizontal:oe}))}if(Ie.length!==0){for(const We of Ie)We.attach();return()=>{for(const We of Ie)We.detach()}}},[se,ne,oe]);const _e=v.useCallback(()=>{const De=Y.current;return De?{scrollTop:De.scrollTop,scrollHeight:De.scrollHeight,clientHeight:De.clientHeight}:{scrollTop:0,scrollHeight:0,clientHeight:0}},[]),ee=v.useCallback((De=!1)=>{const je=Y.current;je&&je.scrollTo({top:je.scrollHeight,behavior:De?"smooth":"instant"})},[]),fe=v.useCallback((De=!1)=>{const je=Y.current;je&&je.scrollTo({top:0,behavior:De?"smooth":"instant"})},[]),Q=v.useCallback(()=>{ye.current===null&&(ye.current=requestAnimationFrame(()=>{ye.current=null,!Re.current&&ee(!1)}))},[ee]),re=v.useCallback(()=>{M&&(Re.current||Q())},[M,Q]);v.useImperativeHandle(K,()=>({scrollToBottom:ee,scrollToTop:fe,requestAutoScroll:re,getScrollPosition:_e,get rootElement(){return q.current},get viewportElement(){return Y.current}}),[ee,fe,re,_e]);const we=v.useCallback(()=>{const De=Y.current;if(!De)return;const{scrollTop:je,scrollHeight:Ie,clientHeight:We}=De,{isAtTop:dt,isAtBottom:Et}=uB({scrollTop:je,scrollHeight:Ie,clientHeight:We,threshold:Yu});ce(!dt),be(!Et);const{isAtStart:Ne,isAtEnd:Tt}=cB({scrollLeft:De.scrollLeft,scrollWidth:De.scrollWidth,clientWidth:De.clientWidth,threshold:Yu});ge(!Ne),Ae(!Tt),N?.({isAtBottom:Et,isAtTop:dt}),Et&&Re.current&&(xe(!1),Fe.current&&(clearTimeout(Fe.current),Fe.current=null));const Qt=Ie<ze.current-Yu,rn=Ie>ze.current+Yu,_n=je<Me.current-Yu;_n&&!Qt&&!Et&&M&&!Re.current&&(xe(!0),Fe.current&&clearTimeout(Fe.current),Fe.current=setTimeout(()=>{xe(!1),Fe.current=null},P)),rn&&M&&!Re.current&&!Et&&!_n&&Q(),Qt&&M&&!Re.current&&!Et&&Q(),Me.current=je,ze.current=Ie},[N,M,P,Q]),Pe=sB(),Ye=v.useCallback(()=>{Pe.request(we)},[Pe,we]);v.useEffect(()=>{const De=Y.current,je=O.current;if(!De)return;const Ie=()=>{Ye()};De.addEventListener("scroll",Ie,{passive:!0});const We=uN(we);return We!==null&&(We.observe(De),je&&We.observe(je)),()=>{De.removeEventListener("scroll",Ie),We?.disconnect(),Pe.dispose()}},[we,Ye,Pe]),v.useEffect(()=>{B!==void 0&&M&&(Re.current||Q())},[B,M,Q]),v.useEffect(()=>{if(!se)return;const De=Y.current;if(!De)return;const je=Ie=>{const We=Ie.deltaY;if(We===0)return;const dt=De.scrollHeight-De.clientHeight;if(dt<=0)return;const Et=De.scrollTop,Ne=Et<=0&&We<0,Tt=Et>=dt-.5&&We>0;Ne||Tt||Ie.stopPropagation()};return De.addEventListener("wheel",je,{passive:!0}),()=>De.removeEventListener("wheel",je)},[se]),v.useEffect(()=>{if(!ne)return;const De=Y.current;if(!De)return;const je=We=>{const dt=Gy({deltaX:We.deltaX,deltaY:We.deltaY,mapVerticalWheelToHorizontal:oe});if(dt===null)return;const Et=De.scrollWidth-De.clientWidth;if(Et<=0)return;const Ne=De.scrollLeft;if(!(dt<0&&Ne<=0)&&!(dt>0&&Ne>=Et-.5)){if(!oe){We.stopPropagation();return}We.preventDefault(),De.scrollLeft=Ne+dt}},Ie=oe?{passive:!1,capture:!0}:{passive:!0,capture:!0};return De.addEventListener("wheel",je,Ie),()=>De.removeEventListener("wheel",je,Ie)},[ne,oe]);const Ze=T!==void 0||E!==void 0,bt=D!==void 0||A!==void 0,Je=Ze||bt,xt=Ze?T??24:0,St=Ze?E??24:0,nt=bt?D??24:0,rt=bt?A??24:0,ct=k==="hover",[it,ft]=v.useState(!1);v.useLayoutEffect(()=>{ct&&ft(q.current?.matches(":hover")??!1)},[ct]);const Lt=v.useCallback(De=>{ft(!0),z?.(De)},[z]),Pt=v.useCallback(De=>{ft(!1),U?.(De)},[U]),At=ct&&!it&&!S;v.useEffect(()=>()=>{Fe.current&&clearTimeout(Fe.current),ye.current!==null&&(cancelAnimationFrame(ye.current),ye.current=null)},[]);const Z={"--scroll-area-scroll-padding":`${$}px`,...F!==void 0?{"--scrollbar-inset":`${F}px`}:void 0},me=Yt({rootClass:"ui-scroll-area",stylexStyles:[mB(),c],className:sn(Je&&"ui-scroll-area--masked",a),style:{height:n,maxHeight:r,width:s,...Z,...y}}),Le=Yt({rootClass:"ui-scroll-area__viewport",stylexStyles:[gB({direction:R}),f,Je?fB({topFadePx:le?xt:0,bottomFadePx:Ee?St:0,topFadeStartOpacity:C,bottomFadeStartOpacity:_,startFadePx:ue?nt:0,endFadePx:Se?rt:0}):null],className:l,style:d?{overscrollBehavior:"auto"}:void 0}),Xe=Yt({rootClass:"ui-scroll-area__content",stylexStyles:[bB(R),h]}),Ct=Yt({rootClass:"ui-scroll-area__scrollbar",stylexStyles:[LE({direction:R,orientation:"vertical",visibility:k}),m]}),lt=zt(jE("vertical",At)),He=Yt({rootClass:"ui-scroll-area__scrollbar",stylexStyles:[LE({direction:R,orientation:"horizontal",visibility:k}),m]}),qe=zt(jE("horizontal",At));return g.jsxs("div",{ref:q,className:me.className,style:me.style,"data-scroll-padding":$,"data-visibility":k,"data-direction":R,...H,onPointerEnter:ct?Lt:z,onPointerLeave:ct?Pt:U,children:[g.jsx("div",{ref:Y,className:Le.className,style:Le.style,"data-native-scrollbar":"none",children:g.jsx("div",{ref:O,className:Xe.className,style:Xe.style,children:t})}),b,se&&g.jsx("div",{ref:j,className:Ct.className,style:Ct.style,"data-orientation":"vertical","data-scrollable":"false",role:"presentation","aria-hidden":"true",children:g.jsx("div",{ref:V,className:lt.className,style:lt.style,"data-orientation":"vertical"})}),ne&&g.jsx("div",{ref:L,className:He.className,style:He.style,"data-orientation":"horizontal","data-scrollable":"false",role:"presentation","aria-hidden":"true",children:g.jsx("div",{ref:X,className:qe.className,style:qe.style,"data-orientation":"horizontal"})})]})}),Pb={root:{kzQI83:"ui-1iyjqo2",kmuXW:"ui-s83m0k",kCS8Yb:"ui-dl72j9",kAzted:"ui-2lwn1j",k7Eaqz:"ui-euugli",$$css:!0},rootHidden:{k1xSpc:"ui-1s85apg",$$css:!0},viewport:{kaPefq:"ui-1uzft2t",k9lH4S:"ui-pt7jon",$$css:!0}};function vB({children:e,hidden:t=!1,ref:n}){return g.jsx(Nl,{ref:n,"data-component":"list-popup-scroll",maxHeight:"none",rootStyle:[Pb.root,t&&Pb.rootHidden],viewportStyle:Pb.viewport,children:e})}const $h="top",xB=300,Bh=100;function kB(e){const[t,n="center"]=e.split("-");return{side:t,align:n}}function SB(e){return typeof e=="number"?{sideOffset:e}:{sideOffset:e.mainAxis,alignOffset:e.alignmentAxis}}function wB(e,t){return{side:t,align:"shift",fallbackAxisSide:e?"none":"start"}}function Fh(e,t,n,r="flip"){const{side:s,align:a}=v.useMemo(()=>kB(e),[e]),{sideOffset:l,alignOffset:c}=v.useMemo(()=>SB(t),[t]),f=v.useMemo(()=>wB(n,r),[n,r]);return{side:s,align:a,sideOffset:l,alignOffset:c,collisionAvoidance:f,positionMethod:"fixed"}}const EB=v.forwardRef(function(t,n){const{render:r,className:s,id:a,name:l,value:c,disabled:f=!1,onValueChange:d,defaultValue:h,autoFocus:m=!1,style:b,...y}=t,{state:k,name:S,disabled:R,setTouched:T,setDirty:E,validityData:C,setFocused:_,setFilled:D,validationMode:A,validation:M}=Dh(),{clearErrors:B}=BA(),P=R||f,N=S??l,W={...k,disabled:P},{labelId:$}=xx(),F=Sx({id:a});Ve(()=>{const O=c!=null;M.inputRef.current?.value||O&&c!==""?D(!0):O&&c===""&&D(!1)},[M.inputRef,D,c]);const z=v.useRef(null);Ve(()=>{m&&z.current===pr(Wt(z.current))&&_(!0)},[m,_]);const[U]=Al({controlled:c,default:h,name:"FieldControl",state:"value"}),H=c!==void 0,K=H?U:void 0,q=Ke(()=>M.inputRef.current?.value);return $A(M.inputRef,F,K,q,!P,l),bn("input",t,{ref:[n,z],state:W,props:[{id:F,disabled:P,name:N,ref:M.inputRef,"aria-labelledby":$,autoFocus:m,...H?{value:K}:{defaultValue:h},onChange(O){const j=O.currentTarget.value;d?.(j,Rt(Ni,O.nativeEvent)),E(j!==C.initialValue),D(j!==""),O.nativeEvent.defaultPrevented||(B(N),M.change(j))},onFocus(){_(!0)},onBlur(O){T(!0),_(!1),A==="onBlur"&&M.commit(O.currentTarget.value)},onKeyDown(O){O.currentTarget.tagName==="INPUT"&&O.key==="Enter"&&(T(!0),M.commit(O.currentTarget.value))}},y,O=>M.getValidationProps(P,O)],stateAttributesMapping:Zc})}),TB=v.forwardRef(function(t,n){return g.jsx(EB,{ref:n,...t})});var RB=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],Vp=RB.join(","),cN=typeof Element>"u",Ol=cN?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Gp=!cN&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},Wp=function(t,n){var r;n===void 0&&(n=!0);var s=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),a=s===""||s==="true",l=a||n&&t&&(typeof t.closest=="function"?t.closest("[inert]"):Wp(t.parentNode));return l},CB=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},fN=function(t,n,r){if(Wp(t))return[];var s=Array.prototype.slice.apply(t.querySelectorAll(Vp));return n&&Ol.call(t,Vp)&&s.unshift(t),s=s.filter(r),s},Kp=function(t,n,r){for(var s=[],a=Array.from(t);a.length;){var l=a.shift();if(!Wp(l,!1))if(l.tagName==="SLOT"){var c=l.assignedElements(),f=c.length?c:l.children,d=Kp(f,!0,r);r.flatten?s.push.apply(s,d):s.push({scopeParent:l,candidates:d})}else{var h=Ol.call(l,Vp);h&&r.filter(l)&&(n||!t.includes(l))&&s.push(l);var m=l.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(l),b=!Wp(m,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(l));if(m&&b){var y=Kp(m===!0?l.children:m.children,!0,r);r.flatten?s.push.apply(s,y):s.push({scopeParent:l,candidates:y})}else a.unshift.apply(a,l.children)}}return s},dN=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},pN=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||CB(t))&&!dN(t)?0:t.tabIndex},_B=function(t,n){var r=pN(t);return r<0&&n&&!dN(t)?0:r},AB=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},hN=function(t){return t.tagName==="INPUT"},NB=function(t){return hN(t)&&t.type==="hidden"},OB=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},IB=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},MB=function(t){if(!t.name)return!0;var n=t.form||Gp(t),r=function(c){return n.querySelectorAll('input[type="radio"][name="'+c+'"]')},s;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")s=r(window.CSS.escape(t.name));else try{s=r(t.name)}catch(l){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",l.message),!1}var a=IB(s,t.form);return!a||a===t},DB=function(t){return hN(t)&&t.type==="radio"},LB=function(t){return DB(t)&&!MB(t)},jB=function(t){var n,r=t&&Gp(t),s=(n=r)===null||n===void 0?void 0:n.host,a=!1;if(r&&r!==t){var l,c,f;for(a=!!((l=s)!==null&&l!==void 0&&(c=l.ownerDocument)!==null&&c!==void 0&&c.contains(s)||t!=null&&(f=t.ownerDocument)!==null&&f!==void 0&&f.contains(t));!a&&s;){var d,h,m;r=Gp(s),s=(d=r)===null||d===void 0?void 0:d.host,a=!!((h=s)!==null&&h!==void 0&&(m=h.ownerDocument)!==null&&m!==void 0&&m.contains(s))}}return a},zE=function(t){var n=t.getBoundingClientRect(),r=n.width,s=n.height;return r===0&&s===0},zB=function(t,n){var r=n.displayCheck,s=n.getShadowRoot;if(r==="full-native"&&"checkVisibility"in t){var a=t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!a}if(getComputedStyle(t).visibility==="hidden")return!0;var l=Ol.call(t,"details>summary:first-of-type"),c=l?t.parentElement:t;if(Ol.call(c,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="full-native"||r==="legacy-full"){if(typeof s=="function"){for(var f=t;t;){var d=t.parentElement,h=Gp(t);if(d&&!d.shadowRoot&&s(d)===!0)return zE(t);t.assignedSlot?t=t.assignedSlot:!d&&h!==t.ownerDocument?t=h.host:t=d}t=f}if(jB(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return zE(t);return!1},PB=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var s=n.children.item(r);if(s.tagName==="LEGEND")return Ol.call(n,"fieldset[disabled] *")?!0:!s.contains(t)}return!0}n=n.parentElement}return!1},Wy=function(t,n){return!(n.disabled||NB(n)||zB(n,t)||OB(n)||PB(n))},Ky=function(t,n){return!(LB(n)||pN(n)<0||!Wy(t,n))},$B=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},mN=function(t){var n=[],r=[];return t.forEach(function(s,a){var l=!!s.scopeParent,c=l?s.scopeParent:s,f=_B(c,l),d=l?mN(s.candidates):c;f===0?l?n.push.apply(n,d):n.push(c):r.push({documentOrder:a,tabIndex:f,item:s,isScope:l,content:d})}),r.sort(AB).reduce(function(s,a){return a.isScope?s.push.apply(s,a.content):s.push(a.content),s},[]).concat(n)},Uh=function(t,n){n=n||{};var r;return n.getShadowRoot?r=Kp([t],n.includeContainer,{filter:Ky.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:$B}):r=fN(t,n.includeContainer,Ky.bind(null,n)),mN(r)},BB=function(t,n){n=n||{};var r;return n.getShadowRoot?r=Kp([t],n.includeContainer,{filter:Wy.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):r=fN(t,n.includeContainer,Wy.bind(null,n)),r},gN=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return Ol.call(t,Vp)===!1?!1:Ky(n,t)};function FB(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function bN(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}function UB(){return/apple/i.test(navigator.vendor)}function Yy(){const e=/android/i;return e.test(FB())||e.test(bN())}function qB(){return bN().includes("jsdom/")}const PE="data-floating-ui-focusable",HB="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",$b="ArrowLeft",Bb="ArrowRight",VB="ArrowUp",GB="ArrowDown";function po(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function xr(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&So(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function ho(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Fb(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function WB(e){return e.matches("html,body")}function hr(e){return e?.ownerDocument||document}function yN(e){return Ft(e)&&e.matches(HB)}function Xy(e){return e?e.getAttribute("role")==="combobox"&&yN(e):!1}function Yp(e){return e?e.hasAttribute(PE)?e:e.querySelector("["+PE+"]")||e:null}function na(e,t,n){return n===void 0&&(n=!0),e.filter(s=>{var a;return s.parentId===t&&(!n||((a=s.context)==null?void 0:a.open))}).flatMap(s=>[s,...na(e,s.id,n)])}function KB(e,t){let n,r=-1;function s(a,l){l>r&&(n=a,r=l),na(e,a).forEach(f=>{s(f.id,l+1)})}return s(t,0),e.find(a=>a.id===n)}function $E(e,t){var n;let r=[],s=(n=e.find(a=>a.id===t))==null?void 0:n.parentId;for(;s;){const a=e.find(l=>l.id===s);s=a?.parentId,a&&(r=r.concat(a))}return r}function ar(e){e.preventDefault(),e.stopPropagation()}function YB(e){return"nativeEvent"in e}function vN(e){return e.mozInputSource===0&&e.isTrusted?!0:Yy()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function xN(e){return qB()?!1:!Yy()&&e.width===0&&e.height===0||Yy()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function Cc(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}var XB=typeof document<"u",ZB=function(){},mn=XB?v.useLayoutEffect:ZB;const QB={...Pv};function er(e){const t=v.useRef(e);return mn(()=>{t.current=e}),t}const JB=QB.useInsertionEffect,e5=JB||(e=>e());function $n(e){const t=v.useRef(()=>{});return e5(()=>{t.current=e}),v.useCallback(function(){for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return t.current==null?void 0:t.current(...r)},[])}function zd(e,t,n){return Math.floor(e/t)!==n}function gc(e,t){return t<0||t>=e.current.length}function Ub(e,t){return dr(e,{disabledIndices:t})}function BE(e,t){return dr(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function dr(e,t){let{startingIndex:n=-1,decrement:r=!1,disabledIndices:s,amount:a=1}=t===void 0?{}:t,l=n;do l+=r?-a:a;while(l>=0&&l<=e.current.length-1&&kp(e,l,s));return l}function t5(e,t){let{event:n,orientation:r,loop:s,rtl:a,cols:l,disabledIndices:c,minIndex:f,maxIndex:d,prevIndex:h,stopEvent:m=!1}=t,b=h;if(n.key===VB){if(m&&ar(n),h===-1)b=d;else if(b=dr(e,{startingIndex:b,amount:l,decrement:!0,disabledIndices:c}),s&&(h-l<f||b<0)){const y=h%l,k=d%l,S=d-(k-y);k===y?b=d:b=k>y?S:S-l}gc(e,b)&&(b=h)}if(n.key===GB&&(m&&ar(n),h===-1?b=f:(b=dr(e,{startingIndex:h,amount:l,disabledIndices:c}),s&&h+l>d&&(b=dr(e,{startingIndex:h%l-l,amount:l,disabledIndices:c}))),gc(e,b)&&(b=h)),r==="both"){const y=gl(h/l);n.key===(a?$b:Bb)&&(m&&ar(n),h%l!==l-1?(b=dr(e,{startingIndex:h,disabledIndices:c}),s&&zd(b,l,y)&&(b=dr(e,{startingIndex:h-h%l-1,disabledIndices:c}))):s&&(b=dr(e,{startingIndex:h-h%l-1,disabledIndices:c})),zd(b,l,y)&&(b=h)),n.key===(a?Bb:$b)&&(m&&ar(n),h%l!==0?(b=dr(e,{startingIndex:h,decrement:!0,disabledIndices:c}),s&&zd(b,l,y)&&(b=dr(e,{startingIndex:h+(l-h%l),decrement:!0,disabledIndices:c}))):s&&(b=dr(e,{startingIndex:h+(l-h%l),decrement:!0,disabledIndices:c})),zd(b,l,y)&&(b=h));const k=gl(d/l)===y;gc(e,b)&&(s&&k?b=n.key===(a?Bb:$b)?d:dr(e,{startingIndex:h-h%l-1,disabledIndices:c}):b=h)}return b}function n5(e,t,n){const r=[];let s=0;return e.forEach((a,l)=>{let{width:c,height:f}=a,d=!1;for(n&&(s=0);!d;){const h=[];for(let m=0;m<c;m++)for(let b=0;b<f;b++)h.push(s+m+b*t);s%t+c<=t&&h.every(m=>r[m]==null)?(h.forEach(m=>{r[m]=l}),d=!0):s++}}),[...r]}function r5(e,t,n,r,s){if(e===-1)return-1;const a=n.indexOf(e),l=t[e];switch(s){case"tl":return a;case"tr":return l?a+l.width-1:a;case"bl":return l?a+(l.height-1)*r:a;case"br":return n.lastIndexOf(e)}}function i5(e,t){return t.flatMap((n,r)=>e.includes(n)?[r]:[])}function kp(e,t,n){if(typeof n=="function")return n(t);if(n)return n.includes(t);const r=e.current[t];return r==null||r.hasAttribute("disabled")||r.getAttribute("aria-disabled")==="true"}const Qc=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function kN(e,t){const n=Uh(e,Qc()),r=n.length;if(r===0)return;const s=po(hr(e)),a=n.indexOf(s),l=a===-1?t===1?0:r-1:a+t;return n[l]}function SN(e){return kN(hr(e).body,1)||e}function wN(e){return kN(hr(e).body,-1)||e}function bc(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!xr(n,r)}function s5(e){Uh(e,Qc()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function FE(e){e.querySelectorAll("[data-tabindex]").forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}function Jc(e){const t=v.useRef(void 0),n=v.useCallback(r=>{const s=e.map(a=>{if(a!=null){if(typeof a=="function"){const l=a,c=l(r);return typeof c=="function"?c:()=>{l(null)}}return a.current=r,()=>{a.current=null}}});return()=>{s.forEach(a=>a?.())}},e);return v.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function o5(e,t){const n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}const EN=v.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function TN(e){const{children:t,elementsRef:n,labelsRef:r}=e,[s,a]=v.useState(()=>new Set),l=v.useCallback(d=>{a(h=>new Set(h).add(d))},[]),c=v.useCallback(d=>{a(h=>{const m=new Set(h);return m.delete(d),m})},[]),f=v.useMemo(()=>{const d=new Map;return Array.from(s.keys()).sort(o5).forEach((m,b)=>{d.set(m,b)}),d},[s]);return g.jsx(EN.Provider,{value:v.useMemo(()=>({register:l,unregister:c,map:f,elementsRef:n,labelsRef:r}),[l,c,f,n,r]),children:t})}function qh(e){e===void 0&&(e={});const{label:t}=e,{register:n,unregister:r,map:s,elementsRef:a,labelsRef:l}=v.useContext(EN),[c,f]=v.useState(null),d=v.useRef(null),h=v.useCallback(m=>{if(d.current=m,c!==null&&(a.current[c]=m,l)){var b;const y=t!==void 0;l.current[c]=y?t:(b=m?.textContent)!=null?b:null}},[c,a,l,t]);return mn(()=>{const m=d.current;if(m)return n(m),()=>{r(m)}},[n,r]),mn(()=>{const m=d.current?s.get(d.current):null;m!=null&&f(m)},[s]),v.useMemo(()=>({ref:h,index:c??-1}),[c,h])}const a5="data-floating-ui-focusable",UE="active",qE="selected",ef="ArrowLeft",tf="ArrowRight",RN="ArrowUp",Hh="ArrowDown",l5={...Pv};let HE=!1,u5=0;const VE=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+u5++;function c5(){const[e,t]=v.useState(()=>HE?VE():void 0);return mn(()=>{e==null&&t(VE())},[]),v.useEffect(()=>{HE=!0},[]),e}const f5=l5.useId,Vh=f5||c5;function CN(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(s=>s(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;(r=e.get(t))==null||r.delete(n)}}}const _N=v.createContext(null),AN=v.createContext(null),Ao=()=>{var e;return((e=v.useContext(_N))==null?void 0:e.id)||null},No=()=>v.useContext(AN);function Cx(e){const t=Vh(),n=No(),s=Ao();return mn(()=>{if(!t)return;const a={id:t,parentId:s};return n?.addNode(a),()=>{n?.removeNode(a)}},[n,t,s]),t}function _x(e){const{children:t,id:n}=e,r=Ao();return g.jsx(_N.Provider,{value:v.useMemo(()=>({id:n,parentId:r}),[n,r]),children:t})}function d5(e){const{children:t}=e,n=v.useRef([]),r=v.useCallback(l=>{n.current=[...n.current,l]},[]),s=v.useCallback(l=>{n.current=n.current.filter(c=>c!==l)},[]),[a]=v.useState(()=>CN());return g.jsx(AN.Provider,{value:v.useMemo(()=>({nodesRef:n,addNode:r,removeNode:s,events:a}),[r,s,a]),children:t})}function Il(e){return"data-floating-ui-"+e}function fr(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}const GE=Il("safe-polygon");function qb(e,t,n){if(n&&!Cc(n))return 0;if(typeof e=="number")return e;if(typeof e=="function"){const r=e();return typeof r=="number"?r:r?.[t]}return e?.[t]}function Hb(e){return typeof e=="function"?e():e}function NN(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:s,events:a,elements:l}=e,{enabled:c=!0,delay:f=0,handleClose:d=null,mouseOnly:h=!1,restMs:m=0,move:b=!0}=t,y=No(),k=Ao(),S=er(d),R=er(f),T=er(n),E=er(m),C=v.useRef(),_=v.useRef(-1),D=v.useRef(),A=v.useRef(-1),M=v.useRef(!0),B=v.useRef(!1),P=v.useRef(()=>{}),N=v.useRef(!1),W=$n(()=>{var K;const q=(K=s.current.openEvent)==null?void 0:K.type;return q?.includes("mouse")&&q!=="mousedown"});v.useEffect(()=>{if(!c)return;function K(q){let{open:Y}=q;Y||(fr(_),fr(A),M.current=!0,N.current=!1)}return a.on("openchange",K),()=>{a.off("openchange",K)}},[c,a]),v.useEffect(()=>{if(!c||!S.current||!n)return;function K(Y){W()&&r(!1,Y,"hover")}const q=hr(l.floating).documentElement;return q.addEventListener("mouseleave",K),()=>{q.removeEventListener("mouseleave",K)}},[l.floating,n,r,c,S,W]);const $=v.useCallback(function(K,q,Y){q===void 0&&(q=!0),Y===void 0&&(Y="hover");const O=qb(R.current,"close",C.current);O&&!D.current?(fr(_),_.current=window.setTimeout(()=>r(!1,K,Y),O)):q&&(fr(_),r(!1,K,Y))},[R,r]),F=$n(()=>{P.current(),D.current=void 0}),z=$n(()=>{if(B.current){const K=hr(l.floating).body;K.style.pointerEvents="",K.removeAttribute(GE),B.current=!1}}),U=$n(()=>s.current.openEvent?["click","mousedown"].includes(s.current.openEvent.type):!1);v.useEffect(()=>{if(!c)return;function K(V){if(fr(_),M.current=!1,h&&!Cc(C.current)||Hb(E.current)>0&&!qb(R.current,"open"))return;const L=qb(R.current,"open",C.current);L?_.current=window.setTimeout(()=>{T.current||r(!0,V,"hover")},L):n||r(!0,V,"hover")}function q(V){if(U()){z();return}P.current();const L=hr(l.floating);if(fr(A),N.current=!1,S.current&&s.current.floatingContext){n||fr(_),D.current=S.current({...s.current.floatingContext,tree:y,x:V.clientX,y:V.clientY,onClose(){z(),F(),U()||$(V,!0,"safe-polygon")}});const se=D.current;L.addEventListener("mousemove",se),P.current=()=>{L.removeEventListener("mousemove",se)};return}(C.current!=="touch"||!xr(l.floating,V.relatedTarget))&&$(V)}function Y(V){U()||s.current.floatingContext&&(S.current==null||S.current({...s.current.floatingContext,tree:y,x:V.clientX,y:V.clientY,onClose(){z(),F(),U()||$(V)}})(V))}function O(){fr(_)}function j(V){U()||$(V,!1)}if(gt(l.domReference)){const V=l.domReference,L=l.floating;return n&&V.addEventListener("mouseleave",Y),b&&V.addEventListener("mousemove",K,{once:!0}),V.addEventListener("mouseenter",K),V.addEventListener("mouseleave",q),L&&(L.addEventListener("mouseleave",Y),L.addEventListener("mouseenter",O),L.addEventListener("mouseleave",j)),()=>{n&&V.removeEventListener("mouseleave",Y),b&&V.removeEventListener("mousemove",K),V.removeEventListener("mouseenter",K),V.removeEventListener("mouseleave",q),L&&(L.removeEventListener("mouseleave",Y),L.removeEventListener("mouseenter",O),L.removeEventListener("mouseleave",j))}}},[l,c,e,h,b,$,F,z,r,n,T,y,R,S,s,U,E]),mn(()=>{var K;if(c&&n&&(K=S.current)!=null&&(K=K.__options)!=null&&K.blockPointerEvents&&W()){B.current=!0;const Y=l.floating;if(gt(l.domReference)&&Y){var q;const O=hr(l.floating).body;O.setAttribute(GE,"");const j=l.domReference,V=y==null||(q=y.nodesRef.current.find(L=>L.id===k))==null||(q=q.context)==null?void 0:q.elements.floating;return V&&(V.style.pointerEvents=""),O.style.pointerEvents="none",j.style.pointerEvents="auto",Y.style.pointerEvents="auto",()=>{O.style.pointerEvents="",j.style.pointerEvents="",Y.style.pointerEvents=""}}}},[c,n,k,l,y,S,W]),mn(()=>{n||(C.current=void 0,N.current=!1,F(),z())},[n,F,z]),v.useEffect(()=>()=>{F(),fr(_),fr(A),z()},[c,l.domReference,F,z]);const H=v.useMemo(()=>{function K(q){C.current=q.pointerType}return{onPointerDown:K,onPointerEnter:K,onMouseMove(q){const{nativeEvent:Y}=q;function O(){!M.current&&!T.current&&r(!0,Y,"hover")}h&&!Cc(C.current)||n||Hb(E.current)===0||N.current&&q.movementX**2+q.movementY**2<2||(fr(A),C.current==="touch"?O():(N.current=!0,A.current=window.setTimeout(O,Hb(E.current))))}}},[h,r,n,T,E]);return v.useMemo(()=>c?{reference:H}:{},[c,H])}let WE=0;function ea(e,t){t===void 0&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:s=!1}=t;r&&cancelAnimationFrame(WE);const a=()=>e?.focus({preventScroll:n});s?a():WE=requestAnimationFrame(a)}function Vb(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&So(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function p5(e){return"composedPath"in e?e.composedPath()[0]:e.target}function h5(e){return e?.ownerDocument||document}const kl={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function KE(e){return e==="inert"?kl.inert:e==="aria-hidden"?kl["aria-hidden"]:kl.none}let Pd=new WeakSet,$d={},Gb=0;const m5=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,ON=e=>e&&(e.host||ON(e.parentNode)),g5=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=ON(n);return e.contains(r)?r:null}).filter(n=>n!=null);function b5(e,t,n,r){const s="data-floating-ui-inert",a=r?"inert":n?"aria-hidden":null,l=g5(t,e),c=new Set,f=new Set(l),d=[];$d[s]||($d[s]=new WeakMap);const h=$d[s];l.forEach(m),b(t),c.clear();function m(y){!y||c.has(y)||(c.add(y),y.parentNode&&m(y.parentNode))}function b(y){!y||f.has(y)||[].forEach.call(y.children,k=>{if(Qn(k)!=="script")if(c.has(k))b(k);else{const S=a?k.getAttribute(a):null,R=S!==null&&S!=="false",T=KE(a),E=(T.get(k)||0)+1,C=(h.get(k)||0)+1;T.set(k,E),h.set(k,C),d.push(k),E===1&&R&&Pd.add(k),C===1&&k.setAttribute(s,""),!R&&a&&k.setAttribute(a,a==="inert"?"":"true")}})}return Gb++,()=>{d.forEach(y=>{const k=KE(a),R=(k.get(y)||0)-1,T=(h.get(y)||0)-1;k.set(y,R),h.set(y,T),R||(!Pd.has(y)&&a&&y.removeAttribute(a),Pd.delete(y)),T||y.removeAttribute(s)}),Gb--,Gb||(kl.inert=new WeakMap,kl["aria-hidden"]=new WeakMap,kl.none=new WeakMap,Pd=new WeakSet,$d={})}}function YE(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=h5(e[0]).body;return b5(e.concat(Array.from(r.querySelectorAll('[aria-live],[role="status"],output'))),r,t,n)}const Gh={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0},Xp=v.forwardRef(function(t,n){const[r,s]=v.useState();mn(()=>{UB()&&s("button")},[]);const a={ref:n,tabIndex:0,role:r,"aria-hidden":r?void 0:!0,[Il("focus-guard")]:"",style:Gh};return g.jsx("span",{...t,...a})}),IN=v.createContext(null),XE=Il("portal");function y5(e){e===void 0&&(e={});const{id:t,root:n}=e,r=Vh(),s=MN(),[a,l]=v.useState(null),c=v.useRef(null);return mn(()=>()=>{a?.remove(),queueMicrotask(()=>{c.current=null})},[a]),mn(()=>{if(!r||c.current)return;const f=t?document.getElementById(t):null;if(!f)return;const d=document.createElement("div");d.id=r,d.setAttribute(XE,""),f.appendChild(d),c.current=d,l(d)},[t,r]),mn(()=>{if(n===null||!r||c.current)return;let f=n||s?.portalNode;f&&!mh(f)&&(f=f.current),f=f||document.body;let d=null;t&&(d=document.createElement("div"),d.id=t,f.appendChild(d));const h=document.createElement("div");h.id=r,h.setAttribute(XE,""),f=d||f,f.appendChild(h),c.current=h,l(h)},[t,n,r,s]),a}function Ax(e){const{children:t,id:n,root:r,preserveTabOrder:s=!0}=e,a=y5({id:n,root:r}),[l,c]=v.useState(null),f=v.useRef(null),d=v.useRef(null),h=v.useRef(null),m=v.useRef(null),b=l?.modal,y=l?.open,k=!!l&&!l.modal&&l.open&&s&&!!(r||a);return v.useEffect(()=>{if(!a||!s||b)return;function S(R){a&&bc(R)&&(R.type==="focusin"?FE:s5)(a)}return a.addEventListener("focusin",S,!0),a.addEventListener("focusout",S,!0),()=>{a.removeEventListener("focusin",S,!0),a.removeEventListener("focusout",S,!0)}},[a,s,b]),v.useEffect(()=>{a&&(y||FE(a))},[y,a]),g.jsxs(IN.Provider,{value:v.useMemo(()=>({preserveTabOrder:s,beforeOutsideRef:f,afterOutsideRef:d,beforeInsideRef:h,afterInsideRef:m,portalNode:a,setFocusManagerState:c}),[s,a]),children:[k&&a&&g.jsx(Xp,{"data-type":"outside",ref:f,onFocus:S=>{if(bc(S,a)){var R;(R=h.current)==null||R.focus()}else{const T=l?l.domReference:null,E=wN(T);E?.focus()}}}),k&&a&&g.jsx("span",{"aria-owns":a.id,style:Gh}),a&&Mi.createPortal(t,a),k&&a&&g.jsx(Xp,{"data-type":"outside",ref:d,onFocus:S=>{if(bc(S,a)){var R;(R=m.current)==null||R.focus()}else{const T=l?l.domReference:null,E=SN(T);E?.focus(),l?.closeOnFocusOut&&l?.onOpenChange(!1,S.nativeEvent,"focus-out")}}})]})}const MN=()=>v.useContext(IN);function ZE(e){return v.useMemo(()=>t=>{e.forEach(n=>{n&&(n.current=t)})},e)}const v5=20;let go=[];function Nx(){go=go.filter(e=>e.isConnected)}function x5(e){Nx(),e&&Qn(e)!=="body"&&(go.push(e),go.length>v5&&(go=go.slice(-20)))}function QE(){return Nx(),go[go.length-1]}function k5(e){const t=Qc();return gN(e,t)?e:Uh(e,t)[0]||e}function JE(e,t){var n;if(!t.current.includes("floating")&&!((n=e.getAttribute("role"))!=null&&n.includes("dialog")))return;const r=Qc(),a=BB(e,r).filter(c=>{const f=c.getAttribute("data-tabindex")||"";return gN(c,r)||c.hasAttribute("data-tabindex")&&!f.startsWith("-")}),l=e.getAttribute("tabindex");t.current.includes("floating")||a.length===0?l!=="0"&&e.setAttribute("tabindex","0"):(l!=="-1"||e.hasAttribute("data-tabindex")&&e.getAttribute("data-tabindex")!=="-1")&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}const S5=v.forwardRef(function(t,n){return g.jsx("button",{...t,type:"button",ref:n,tabIndex:-1,style:Gh})});function Ox(e){const{context:t,children:n,disabled:r=!1,order:s=["content"],guards:a=!0,initialFocus:l=0,returnFocus:c=!0,restoreFocus:f=!1,modal:d=!0,visuallyHiddenDismiss:h=!1,closeOnFocusOut:m=!0,outsideElementsInert:b=!1,getInsideElements:y=()=>[]}=e,{open:k,onOpenChange:S,events:R,dataRef:T,elements:{domReference:E,floating:C}}=t,_=$n(()=>{var ue;return(ue=T.current.floatingContext)==null?void 0:ue.nodeId}),D=$n(y),A=typeof l=="number"&&l<0,M=Xy(E)&&A,B=m5(),P=B?a:!0,N=!P||B&&b,W=er(s),$=er(l),F=er(c),z=No(),U=MN(),H=v.useRef(null),K=v.useRef(null),q=v.useRef(!1),Y=v.useRef(!1),O=v.useRef(-1),j=v.useRef(-1),V=U!=null,L=Yp(C),X=$n(function(ue){return ue===void 0&&(ue=L),ue?Uh(ue,Qc()):[]}),se=$n(ue=>{const ge=X(ue);return W.current.map(Se=>E&&Se==="reference"?E:L&&Se==="floating"?L:ge).filter(Boolean).flat()});v.useEffect(()=>{if(r||!d)return;function ue(Se){if(Se.key==="Tab"){xr(L,po(hr(L)))&&X().length===0&&!M&&ar(Se);const Ae=se(),ke=ho(Se);W.current[0]==="reference"&&ke===E&&(ar(Se),Se.shiftKey?ea(Ae[Ae.length-1]):ea(Ae[1])),W.current[1]==="floating"&&ke===L&&Se.shiftKey&&(ar(Se),ea(Ae[0]))}}const ge=hr(L);return ge.addEventListener("keydown",ue),()=>{ge.removeEventListener("keydown",ue)}},[r,E,L,d,W,M,X,se]),v.useEffect(()=>{if(r||!C)return;function ue(ge){const Se=ho(ge),ke=X().indexOf(Se);ke!==-1&&(O.current=ke)}return C.addEventListener("focusin",ue),()=>{C.removeEventListener("focusin",ue)}},[r,C,X]),v.useEffect(()=>{if(r||!m)return;function ue(){Y.current=!0,setTimeout(()=>{Y.current=!1})}function ge(ke){const xe=ke.relatedTarget,Re=ke.currentTarget,Me=ho(ke);queueMicrotask(()=>{const ze=_(),Fe=!(xr(E,xe)||xr(C,xe)||xr(xe,C)||xr(U?.portalNode,xe)||xe!=null&&xe.hasAttribute(Il("focus-guard"))||z&&(na(z.nodesRef.current,ze).find(ye=>{var _e,ee;return xr((_e=ye.context)==null?void 0:_e.elements.floating,xe)||xr((ee=ye.context)==null?void 0:ee.elements.domReference,xe)})||$E(z.nodesRef.current,ze).find(ye=>{var _e,ee,fe;return[(_e=ye.context)==null?void 0:_e.elements.floating,Yp((ee=ye.context)==null?void 0:ee.elements.floating)].includes(xe)||((fe=ye.context)==null?void 0:fe.elements.domReference)===xe})));if(Re===E&&L&&JE(L,W),f&&Re!==E&&!(Me!=null&&Me.isConnected)&&po(hr(L))===hr(L).body){Ft(L)&&L.focus();const ye=O.current,_e=X(),ee=_e[ye]||_e[_e.length-1]||L;Ft(ee)&&ee.focus()}if(T.current.insideReactTree){T.current.insideReactTree=!1;return}(M||!d)&&xe&&Fe&&!Y.current&&xe!==QE()&&(q.current=!0,S(!1,ke,"focus-out"))})}const Se=!!(!z&&U);function Ae(){fr(j),T.current.insideReactTree=!0,j.current=window.setTimeout(()=>{T.current.insideReactTree=!1})}if(C&&Ft(E))return E.addEventListener("focusout",ge),E.addEventListener("pointerdown",ue),C.addEventListener("focusout",ge),Se&&C.addEventListener("focusout",Ae,!0),()=>{E.removeEventListener("focusout",ge),E.removeEventListener("pointerdown",ue),C.removeEventListener("focusout",ge),Se&&C.removeEventListener("focusout",Ae,!0)}},[r,E,C,L,d,z,U,S,m,f,X,M,_,W,T]);const ne=v.useRef(null),oe=v.useRef(null),le=ZE([ne,U?.beforeInsideRef]),ce=ZE([oe,U?.afterInsideRef]);v.useEffect(()=>{var ue,ge;if(r||!C)return;const Se=Array.from((U==null||(ue=U.portalNode)==null?void 0:ue.querySelectorAll("["+Il("portal")+"]"))||[]),ke=(ge=(z?$E(z.nodesRef.current,_()):[]).find(Me=>{var ze;return Xy(((ze=Me.context)==null?void 0:ze.elements.domReference)||null)}))==null||(ge=ge.context)==null?void 0:ge.elements.domReference,xe=[C,ke,...Se,...D(),H.current,K.current,ne.current,oe.current,U?.beforeOutsideRef.current,U?.afterOutsideRef.current,W.current.includes("reference")||M?E:null].filter(Me=>Me!=null),Re=d||M?YE(xe,!N,N):YE(xe);return()=>{Re()}},[r,E,C,d,W,U,M,P,N,z,_,D]),mn(()=>{if(r||!Ft(L))return;const ue=hr(L),ge=po(ue);queueMicrotask(()=>{const Se=se(L),Ae=$.current,ke=(typeof Ae=="number"?Se[Ae]:Ae.current)||L,xe=xr(L,ge);!A&&!xe&&k&&ea(ke,{preventScroll:ke===L})})},[r,k,L,A,se,$]),mn(()=>{if(r||!L)return;const ue=hr(L),ge=po(ue);x5(ge);function Se(xe){let{reason:Re,event:Me,nested:ze}=xe;if(["hover","safe-polygon"].includes(Re)&&Me.type==="mouseleave"&&(q.current=!0),Re==="outside-press")if(ze)q.current=!1;else if(vN(Me)||xN(Me))q.current=!1;else{let Fe=!1;document.createElement("div").focus({get preventScroll(){return Fe=!0,!1}}),Fe?q.current=!1:q.current=!0}}R.on("openchange",Se);const Ae=ue.createElement("span");Ae.setAttribute("tabindex","-1"),Ae.setAttribute("aria-hidden","true"),Object.assign(Ae.style,Gh),V&&E&&E.insertAdjacentElement("afterend",Ae);function ke(){if(typeof F.current=="boolean"){const xe=E||QE();return xe&&xe.isConnected?xe:Ae}return F.current.current||Ae}return()=>{R.off("openchange",Se);const xe=po(ue),Re=xr(C,xe)||z&&na(z.nodesRef.current,_(),!1).some(ze=>{var Fe;return xr((Fe=ze.context)==null?void 0:Fe.elements.floating,xe)}),Me=ke();queueMicrotask(()=>{const ze=k5(Me);F.current&&!q.current&&Ft(ze)&&(!(ze!==xe&&xe!==ue.body)||Re)&&ze.focus({preventScroll:!0}),Ae.remove()})}},[r,C,L,F,T,R,z,V,E,_]),v.useEffect(()=>(queueMicrotask(()=>{q.current=!1}),()=>{queueMicrotask(Nx)}),[r]),mn(()=>{if(!r&&U)return U.setFocusManagerState({modal:d,closeOnFocusOut:m,open:k,onOpenChange:S,domReference:E}),()=>{U.setFocusManagerState(null)}},[r,U,d,k,S,m,E]),mn(()=>{r||L&&JE(L,W)},[r,L,W]);function Ee(ue){return r||!h||!d?null:g.jsx(S5,{ref:ue==="start"?H:K,onClick:ge=>S(!1,ge.nativeEvent),children:typeof h=="string"?h:"Dismiss"})}const be=!r&&P&&(d?!M:!0)&&(V||d);return g.jsxs(g.Fragment,{children:[be&&g.jsx(Xp,{"data-type":"inside",ref:le,onFocus:ue=>{if(d){const Se=se();ea(s[0]==="reference"?Se[0]:Se[Se.length-1])}else if(U!=null&&U.preserveTabOrder&&U.portalNode)if(q.current=!1,bc(ue,U.portalNode)){const Se=SN(E);Se?.focus()}else{var ge;(ge=U.beforeOutsideRef.current)==null||ge.focus()}}}),!M&&Ee("start"),n,Ee("end"),be&&g.jsx(Xp,{"data-type":"inside",ref:ce,onFocus:ue=>{if(d)ea(se()[0]);else if(U!=null&&U.preserveTabOrder&&U.portalNode)if(m&&(q.current=!0),bc(ue,U.portalNode)){const Se=wN(E);Se?.focus()}else{var ge;(ge=U.afterOutsideRef.current)==null||ge.focus()}}})]})}function eT(e){return Ft(e.target)&&e.target.tagName==="BUTTON"}function w5(e){return Ft(e.target)&&e.target.tagName==="A"}function tT(e){return yN(e)}function DN(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:s,elements:{domReference:a}}=e,{enabled:l=!0,event:c="click",toggle:f=!0,ignoreMouse:d=!1,keyboardHandlers:h=!0,stickIfOpen:m=!0}=t,b=v.useRef(),y=v.useRef(!1),k=v.useMemo(()=>({onPointerDown(S){b.current=S.pointerType},onMouseDown(S){const R=b.current;S.button===0&&c!=="click"&&(Cc(R,!0)&&d||(n&&f&&(!(s.current.openEvent&&m)||s.current.openEvent.type==="mousedown")?r(!1,S.nativeEvent,"click"):(S.preventDefault(),r(!0,S.nativeEvent,"click"))))},onClick(S){const R=b.current;if(c==="mousedown"&&b.current){b.current=void 0;return}Cc(R,!0)&&d||(n&&f&&(!(s.current.openEvent&&m)||s.current.openEvent.type==="click")?r(!1,S.nativeEvent,"click"):r(!0,S.nativeEvent,"click"))},onKeyDown(S){b.current=void 0,!(S.defaultPrevented||!h||eT(S))&&(S.key===" "&&!tT(a)&&(S.preventDefault(),y.current=!0),!w5(S)&&S.key==="Enter"&&r(!(n&&f),S.nativeEvent,"click"))},onKeyUp(S){S.defaultPrevented||!h||eT(S)||tT(a)||S.key===" "&&y.current&&(y.current=!1,r(!(n&&f),S.nativeEvent,"click"))}}),[s,a,c,d,h,r,n,m,f]);return v.useMemo(()=>l?{reference:k}:{},[l,k])}const E5={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},T5={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},nT=e=>{var t,n;return{escapeKey:typeof e=="boolean"?e:(t=e?.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(n=e?.outsidePress)!=null?n:!0}};function LN(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,elements:s,dataRef:a}=e,{enabled:l=!0,escapeKey:c=!0,outsidePress:f=!0,outsidePressEvent:d="pointerdown",referencePress:h=!1,referencePressEvent:m="pointerdown",ancestorScroll:b=!1,bubbles:y,capture:k}=t,S=No(),R=$n(typeof f=="function"?f:()=>!1),T=typeof f=="function"?R:f,E=v.useRef(!1),{escapeKey:C,outsidePress:_}=nT(y),{escapeKey:D,outsidePress:A}=nT(k),M=v.useRef(!1),B=$n(z=>{var U;if(!n||!l||!c||z.key!=="Escape"||M.current)return;const H=(U=a.current.floatingContext)==null?void 0:U.nodeId,K=S?na(S.nodesRef.current,H):[];if(!C&&(z.stopPropagation(),K.length>0)){let q=!0;if(K.forEach(Y=>{var O;if((O=Y.context)!=null&&O.open&&!Y.context.dataRef.current.__escapeKeyBubbles){q=!1;return}}),!q)return}r(!1,YB(z)?z.nativeEvent:z,"escape-key")}),P=$n(z=>{var U;const H=()=>{var K;B(z),(K=ho(z))==null||K.removeEventListener("keydown",H)};(U=ho(z))==null||U.addEventListener("keydown",H)}),N=$n(z=>{var U;const H=a.current.insideReactTree;a.current.insideReactTree=!1;const K=E.current;if(E.current=!1,d==="click"&&K||H||typeof T=="function"&&!T(z))return;const q=ho(z),Y="["+Il("inert")+"]",O=hr(s.floating).querySelectorAll(Y);let j=gt(q)?q:null;for(;j&&!_i(j);){const se=_s(j);if(_i(se)||!gt(se))break;j=se}if(O.length&&gt(q)&&!WB(q)&&!xr(q,s.floating)&&Array.from(O).every(se=>!xr(j,se)))return;if(Ft(q)&&F){const se=_i(q),ne=Tr(q),oe=/auto|scroll/,le=se||oe.test(ne.overflowX),ce=se||oe.test(ne.overflowY),Ee=le&&q.clientWidth>0&&q.scrollWidth>q.clientWidth,be=ce&&q.clientHeight>0&&q.scrollHeight>q.clientHeight,ue=ne.direction==="rtl",ge=be&&(ue?z.offsetX<=q.offsetWidth-q.clientWidth:z.offsetX>q.clientWidth),Se=Ee&&z.offsetY>q.clientHeight;if(ge||Se)return}const V=(U=a.current.floatingContext)==null?void 0:U.nodeId,L=S&&na(S.nodesRef.current,V).some(se=>{var ne;return Fb(z,(ne=se.context)==null?void 0:ne.elements.floating)});if(Fb(z,s.floating)||Fb(z,s.domReference)||L)return;const X=S?na(S.nodesRef.current,V):[];if(X.length>0){let se=!0;if(X.forEach(ne=>{var oe;if((oe=ne.context)!=null&&oe.open&&!ne.context.dataRef.current.__outsidePressBubbles){se=!1;return}}),!se)return}r(!1,z,"outside-press")}),W=$n(z=>{var U;const H=()=>{var K;N(z),(K=ho(z))==null||K.removeEventListener(d,H)};(U=ho(z))==null||U.addEventListener(d,H)});v.useEffect(()=>{if(!n||!l)return;a.current.__escapeKeyBubbles=C,a.current.__outsidePressBubbles=_;let z=-1;function U(O){r(!1,O,"ancestor-scroll")}function H(){window.clearTimeout(z),M.current=!0}function K(){z=window.setTimeout(()=>{M.current=!1},bh()?5:0)}const q=hr(s.floating);c&&(q.addEventListener("keydown",D?P:B,D),q.addEventListener("compositionstart",H),q.addEventListener("compositionend",K)),T&&q.addEventListener(d,A?W:N,A);let Y=[];return b&&(gt(s.domReference)&&(Y=bo(s.domReference)),gt(s.floating)&&(Y=Y.concat(bo(s.floating))),!gt(s.reference)&&s.reference&&s.reference.contextElement&&(Y=Y.concat(bo(s.reference.contextElement)))),Y=Y.filter(O=>{var j;return O!==((j=q.defaultView)==null?void 0:j.visualViewport)}),Y.forEach(O=>{O.addEventListener("scroll",U,{passive:!0})}),()=>{c&&(q.removeEventListener("keydown",D?P:B,D),q.removeEventListener("compositionstart",H),q.removeEventListener("compositionend",K)),T&&q.removeEventListener(d,A?W:N,A),Y.forEach(O=>{O.removeEventListener("scroll",U)}),window.clearTimeout(z)}},[a,s,c,T,d,n,r,b,l,C,_,B,D,P,N,A,W]),v.useEffect(()=>{a.current.insideReactTree=!1},[a,T,d]);const $=v.useMemo(()=>({onKeyDown:B,...h&&{[E5[m]]:z=>{r(!1,z.nativeEvent,"reference-press")},...m!=="click"&&{onClick(z){r(!1,z.nativeEvent,"reference-press")}}}}),[B,r,h,m]),F=v.useMemo(()=>({onKeyDown:B,onMouseDown(){E.current=!0},onMouseUp(){E.current=!0},[T5[d]]:()=>{a.current.insideReactTree=!0}}),[B,d,a]);return v.useMemo(()=>l?{reference:$,floating:F}:{},[l,$,F])}function R5(e){const{open:t=!1,onOpenChange:n,elements:r}=e,s=Vh(),a=v.useRef({}),[l]=v.useState(()=>CN()),c=Ao()!=null,[f,d]=v.useState(r.reference),h=$n((y,k,S)=>{a.current.openEvent=y?k:void 0,l.emit("openchange",{open:y,event:k,reason:S,nested:c}),n?.(y,k,S)}),m=v.useMemo(()=>({setPositionReference:d}),[]),b=v.useMemo(()=>({reference:f||r.reference||null,floating:r.floating||null,domReference:r.reference}),[f,r.reference,r.floating]);return v.useMemo(()=>({dataRef:a,open:t,onOpenChange:h,elements:b,events:l,floatingId:s,refs:m}),[t,h,b,l,s,m])}function Ix(e){e===void 0&&(e={});const{nodeId:t}=e,n=R5({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,s=r.elements,[a,l]=v.useState(null),[c,f]=v.useState(null),h=s?.domReference||a,m=v.useRef(null),b=No();mn(()=>{h&&(m.current=h)},[h]);const y=Y_({...e,elements:{...s,...c&&{reference:c}}}),k=v.useCallback(C=>{const _=gt(C)?{getBoundingClientRect:()=>C.getBoundingClientRect(),getClientRects:()=>C.getClientRects(),contextElement:C}:C;f(_),y.refs.setReference(_)},[y.refs]),S=v.useCallback(C=>{(gt(C)||C===null)&&(m.current=C,l(C)),(gt(y.refs.reference.current)||y.refs.reference.current===null||C!==null&&!gt(C))&&y.refs.setReference(C)},[y.refs]),R=v.useMemo(()=>({...y.refs,setReference:S,setPositionReference:k,domReference:m}),[y.refs,S,k]),T=v.useMemo(()=>({...y.elements,domReference:h}),[y.elements,h]),E=v.useMemo(()=>({...y,...r,refs:R,elements:T,nodeId:t}),[y,R,T,t,r]);return mn(()=>{r.dataRef.current.floatingContext=E;const C=b?.nodesRef.current.find(_=>_.id===t);C&&(C.context=E)}),v.useMemo(()=>({...y,context:E,refs:R,elements:T}),[y,R,T,E])}function Wb(e,t,n){const r=new Map,s=n==="item";let a=e;if(s&&e){const{[UE]:l,[qE]:c,...f}=e;a=f}return{...n==="floating"&&{tabIndex:-1,[a5]:""},...a,...t.map(l=>{const c=l?l[n]:null;return typeof c=="function"?e?c(e):null:c}).concat(e).reduce((l,c)=>(c&&Object.entries(c).forEach(f=>{let[d,h]=f;if(!(s&&[UE,qE].includes(d)))if(d.indexOf("on")===0){if(r.has(d)||r.set(d,[]),typeof h=="function"){var m;(m=r.get(d))==null||m.push(h),l[d]=function(){for(var b,y=arguments.length,k=new Array(y),S=0;S<y;S++)k[S]=arguments[S];return(b=r.get(d))==null?void 0:b.map(R=>R(...k)).find(R=>R!==void 0)}}}else l[d]=h}),l),{})}}function jN(e){e===void 0&&(e=[]);const t=e.map(c=>c?.reference),n=e.map(c=>c?.floating),r=e.map(c=>c?.item),s=v.useCallback(c=>Wb(c,e,"reference"),t),a=v.useCallback(c=>Wb(c,e,"floating"),n),l=v.useCallback(c=>Wb(c,e,"item"),r);return v.useMemo(()=>({getReferenceProps:s,getFloatingProps:a,getItemProps:l}),[s,a,l])}const C5="Escape";function Wh(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function Bd(e,t){return Wh(t,e===RN||e===Hh,e===ef||e===tf)}function Kb(e,t,n){return Wh(t,e===Hh,n?e===ef:e===tf)||e==="Enter"||e===" "||e===""}function rT(e,t,n){return Wh(t,n?e===ef:e===tf,e===Hh)}function iT(e,t,n,r){const s=n?e===tf:e===ef,a=e===RN;return t==="both"||t==="horizontal"&&r&&r>1?e===C5:Wh(t,s,a)}function zN(e,t){const{open:n,onOpenChange:r,elements:s,floatingId:a}=e,{listRef:l,activeIndex:c,onNavigate:f=()=>{},enabled:d=!0,selectedIndex:h=null,allowEscape:m=!1,loop:b=!1,nested:y=!1,rtl:k=!1,virtual:S=!1,focusItemOnOpen:R="auto",focusItemOnHover:T=!0,openOnArrowKeyDown:E=!0,disabledIndices:C=void 0,orientation:_="vertical",parentOrientation:D,cols:A=1,scrollItemIntoView:M=!0,virtualItemRef:B,itemSizes:P,dense:N=!1}=t,W=Yp(s.floating),$=er(W),F=Ao(),z=No();mn(()=>{e.dataRef.current.orientation=_},[e,_]);const U=$n(()=>{f(q.current===-1?null:q.current)}),H=Xy(s.domReference),K=v.useRef(R),q=v.useRef(h??-1),Y=v.useRef(null),O=v.useRef(!0),j=v.useRef(U),V=v.useRef(!!s.floating),L=v.useRef(n),X=v.useRef(!1),se=v.useRef(!1),ne=er(C),oe=er(n),le=er(M),ce=er(h),[Ee,be]=v.useState(),[ue,ge]=v.useState(),Se=$n(()=>{function ye(Q){if(S){var re;(re=Q.id)!=null&&re.endsWith("-fui-option")&&(Q.id=a+"-"+Math.random().toString(16).slice(2,10)),be(Q.id),z?.events.emit("virtualfocus",Q),B&&(B.current=Q)}else ea(Q,{sync:X.current,preventScroll:!0})}const _e=l.current[q.current],ee=se.current;_e&&ye(_e),(X.current?Q=>Q():requestAnimationFrame)(()=>{const Q=l.current[q.current]||_e;if(!Q)return;_e||ye(Q);const re=le.current;re&&ke&&(ee||!O.current)&&(Q.scrollIntoView==null||Q.scrollIntoView(typeof re=="boolean"?{block:"nearest",inline:"nearest"}:re))})});mn(()=>{d&&(n&&s.floating?K.current&&h!=null&&(se.current=!0,q.current=h,U()):V.current&&(q.current=-1,j.current()))},[d,n,s.floating,h,U]),mn(()=>{if(d&&n&&s.floating)if(c==null){if(X.current=!1,ce.current!=null)return;if(V.current&&(q.current=-1,Se()),(!L.current||!V.current)&&K.current&&(Y.current!=null||K.current===!0&&Y.current==null)){let ye=0;const _e=()=>{l.current[0]==null?(ye<2&&(ye?requestAnimationFrame:queueMicrotask)(_e),ye++):(q.current=Y.current==null||Kb(Y.current,_,k)||y?Ub(l,ne.current):BE(l,ne.current),Y.current=null,U())};_e()}}else gc(l,c)||(q.current=c,Se(),se.current=!1)},[d,n,s.floating,c,ce,y,l,_,k,U,Se,ne]),mn(()=>{var ye;if(!d||s.floating||!z||S||!V.current)return;const _e=z.nodesRef.current,ee=(ye=_e.find(re=>re.id===F))==null||(ye=ye.context)==null?void 0:ye.elements.floating,fe=po(hr(s.floating)),Q=_e.some(re=>re.context&&xr(re.context.elements.floating,fe));ee&&!Q&&O.current&&ee.focus({preventScroll:!0})},[d,s.floating,z,F,S]),mn(()=>{if(!d||!z||!S||F)return;function ye(_e){ge(_e.id),B&&(B.current=_e)}return z.events.on("virtualfocus",ye),()=>{z.events.off("virtualfocus",ye)}},[d,z,S,F,B]),mn(()=>{j.current=U,L.current=n,V.current=!!s.floating}),mn(()=>{n||(Y.current=null,K.current=R)},[n,R]);const Ae=c!=null,ke=v.useMemo(()=>{function ye(ee){if(!oe.current)return;const fe=l.current.indexOf(ee);fe!==-1&&q.current!==fe&&(q.current=fe,U())}return{onFocus(ee){let{currentTarget:fe}=ee;X.current=!0,ye(fe)},onClick:ee=>{let{currentTarget:fe}=ee;return fe.focus({preventScroll:!0})},onMouseMove(ee){let{currentTarget:fe}=ee;X.current=!0,se.current=!1,T&&ye(fe)},onPointerLeave(ee){let{pointerType:fe}=ee;if(!(!O.current||fe==="touch")&&(X.current=!0,!!T&&(q.current=-1,U(),!S))){var Q;(Q=$.current)==null||Q.focus({preventScroll:!0})}}}},[oe,$,T,l,U,S]),xe=v.useCallback(()=>{var ye;return D??(z==null||(ye=z.nodesRef.current.find(_e=>_e.id===F))==null||(ye=ye.context)==null||(ye=ye.dataRef)==null?void 0:ye.current.orientation)},[F,z,D]),Re=$n(ye=>{if(O.current=!1,X.current=!0,ye.which===229||!oe.current&&ye.currentTarget===$.current)return;if(y&&iT(ye.key,_,k,A)){Bd(ye.key,xe())||ar(ye),r(!1,ye.nativeEvent,"list-navigation"),Ft(s.domReference)&&(S?z?.events.emit("virtualfocus",s.domReference):s.domReference.focus());return}const _e=q.current,ee=Ub(l,C),fe=BE(l,C);if(H||(ye.key==="Home"&&(ar(ye),q.current=ee,U()),ye.key==="End"&&(ar(ye),q.current=fe,U())),A>1){const Q=P||Array.from({length:l.current.length},()=>({width:1,height:1})),re=n5(Q,A,N),we=re.findIndex(Ze=>Ze!=null&&!kp(l,Ze,C)),Pe=re.reduce((Ze,bt,Je)=>bt!=null&&!kp(l,bt,C)?Je:Ze,-1),Ye=re[t5({current:re.map(Ze=>Ze!=null?l.current[Ze]:null)},{event:ye,orientation:_,loop:b,rtl:k,cols:A,disabledIndices:i5([...(typeof C!="function"?C:null)||l.current.map((Ze,bt)=>kp(l,bt,C)?bt:void 0),void 0],re),minIndex:we,maxIndex:Pe,prevIndex:r5(q.current>fe?ee:q.current,Q,re,A,ye.key===Hh?"bl":ye.key===(k?ef:tf)?"tr":"tl"),stopEvent:!0})];if(Ye!=null&&(q.current=Ye,U()),_==="both")return}if(Bd(ye.key,_)){if(ar(ye),n&&!S&&po(ye.currentTarget.ownerDocument)===ye.currentTarget){q.current=Kb(ye.key,_,k)?ee:fe,U();return}Kb(ye.key,_,k)?b?q.current=_e>=fe?m&&_e!==l.current.length?-1:ee:dr(l,{startingIndex:_e,disabledIndices:C}):q.current=Math.min(fe,dr(l,{startingIndex:_e,disabledIndices:C})):b?q.current=_e<=ee?m&&_e!==-1?l.current.length:fe:dr(l,{startingIndex:_e,decrement:!0,disabledIndices:C}):q.current=Math.max(ee,dr(l,{startingIndex:_e,decrement:!0,disabledIndices:C})),gc(l,q.current)&&(q.current=-1),U()}}),Me=v.useMemo(()=>S&&n&&Ae&&{"aria-activedescendant":ue||Ee},[S,n,Ae,ue,Ee]),ze=v.useMemo(()=>({"aria-orientation":_==="both"?void 0:_,...H?{}:Me,onKeyDown:Re,onPointerMove(){O.current=!0}}),[Me,Re,_,H]),Fe=v.useMemo(()=>{function ye(ee){R==="auto"&&vN(ee.nativeEvent)&&(K.current=!0)}function _e(ee){K.current=R,R==="auto"&&xN(ee.nativeEvent)&&(K.current=!0)}return{...Me,onKeyDown(ee){O.current=!1;const fe=ee.key.startsWith("Arrow"),Q=["Home","End"].includes(ee.key),re=fe||Q,we=rT(ee.key,_,k),Pe=iT(ee.key,_,k,A),Ye=rT(ee.key,xe(),k),Ze=Bd(ee.key,_),bt=(y?Ye:Ze)||ee.key==="Enter"||ee.key.trim()==="";if(S&&n){const nt=z?.nodesRef.current.find(ct=>ct.parentId==null),rt=z&&nt?KB(z.nodesRef.current,nt.id):null;if(re&&rt&&B){const ct=new KeyboardEvent("keydown",{key:ee.key,bubbles:!0});if(we||Pe){var Je,xt;const it=((Je=rt.context)==null?void 0:Je.elements.domReference)===ee.currentTarget,ft=Pe&&!it?(xt=rt.context)==null?void 0:xt.elements.domReference:we?l.current.find(Lt=>Lt?.id===Ee):null;ft&&(ar(ee),ft.dispatchEvent(ct),ge(void 0))}if((Ze||Q)&&rt.context&&rt.context.open&&rt.parentId&&ee.currentTarget!==rt.context.elements.domReference){var St;ar(ee),(St=rt.context.elements.domReference)==null||St.dispatchEvent(ct);return}}return Re(ee)}if(!(!n&&!E&&fe)){if(bt){const nt=Bd(ee.key,xe());Y.current=y&&nt?null:ee.key}if(y){Ye&&(ar(ee),n?(q.current=Ub(l,ne.current),U()):r(!0,ee.nativeEvent,"list-navigation"));return}Ze&&(h!=null&&(q.current=h),ar(ee),!n&&E?r(!0,ee.nativeEvent,"list-navigation"):Re(ee),n&&U())}},onFocus(){n&&!S&&(q.current=-1,U())},onPointerDown:_e,onPointerEnter:_e,onMouseDown:ye,onClick:ye}},[Ee,Me,A,Re,ne,R,l,y,U,r,n,E,_,xe,k,h,z,S,B]);return v.useMemo(()=>d?{reference:Fe,floating:ze,item:ke}:{},[d,Fe,ze,ke])}const _5=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function PN(e,t){var n,r;t===void 0&&(t={});const{open:s,elements:a,floatingId:l}=e,{enabled:c=!0,role:f="dialog"}=t,d=Vh(),h=((n=a.domReference)==null?void 0:n.id)||d,m=v.useMemo(()=>{var E;return((E=Yp(a.floating))==null?void 0:E.id)||l},[a.floating,l]),b=(r=_5.get(f))!=null?r:f,k=Ao()!=null,S=v.useMemo(()=>b==="tooltip"||f==="label"?{["aria-"+(f==="label"?"labelledby":"describedby")]:s?m:void 0}:{"aria-expanded":s?"true":"false","aria-haspopup":b==="alertdialog"?"dialog":b,"aria-controls":s?m:void 0,...b==="listbox"&&{role:"combobox"},...b==="menu"&&{id:h},...b==="menu"&&k&&{role:"menuitem"},...f==="select"&&{"aria-autocomplete":"none"},...f==="combobox"&&{"aria-autocomplete":"list"}},[b,m,k,s,h,f]),R=v.useMemo(()=>{const E={id:m,...b&&{role:b}};return b==="tooltip"||f==="label"?E:{...E,...b==="menu"&&{"aria-labelledby":h}}},[b,m,h,f]),T=v.useCallback(E=>{let{active:C,selected:_}=E;const D={role:"option",...C&&{id:m+"-fui-option"}};switch(f){case"select":case"combobox":return{...D,"aria-selected":_}}return{}},[m,f]);return v.useMemo(()=>c?{reference:S,floating:R,item:T}:{},[c,S,R,T])}const sT=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,n)=>(n?"-":"")+t.toLowerCase());function ol(e,t){return typeof e=="function"?e(t):e}function A5(e,t){const[n,r]=v.useState(e);return e&&!n&&r(!0),v.useEffect(()=>{if(!e&&n){const s=setTimeout(()=>r(!1),t);return()=>clearTimeout(s)}},[e,n,t]),n}function N5(e,t){t===void 0&&(t={});const{open:n,elements:{floating:r}}=e,{duration:s=250}=t,l=(typeof s=="number"?s:s.close)||0,[c,f]=v.useState("unmounted"),d=A5(n,l);return!d&&c==="close"&&f("unmounted"),mn(()=>{if(r){if(n){f("initial");const h=requestAnimationFrame(()=>{Mi.flushSync(()=>{f("open")})});return()=>{cancelAnimationFrame(h)}}f("close")}},[n,r]),{isMounted:d,status:c}}function $N(e,t){t===void 0&&(t={});const{initial:n={opacity:0},open:r,close:s,common:a,duration:l=250}=t,c=e.placement,f=c.split("-")[0],d=v.useMemo(()=>({side:f,placement:c}),[f,c]),h=typeof l=="number",m=(h?l:l.open)||0,b=(h?l:l.close)||0,[y,k]=v.useState(()=>({...ol(a,d),...ol(n,d)})),{isMounted:S,status:R}=N5(e,{duration:l}),T=er(n),E=er(r),C=er(s),_=er(a);return mn(()=>{const D=ol(T.current,d),A=ol(C.current,d),M=ol(_.current,d),B=ol(E.current,d)||Object.keys(D).reduce((P,N)=>(P[N]="",P),{});if(R==="initial"&&k(P=>({transitionProperty:P.transitionProperty,...M,...D})),R==="open"&&k({transitionProperty:Object.keys(B).map(sT).join(","),transitionDuration:m+"ms",...M,...B}),R==="close"){const P=A||D;k({transitionProperty:Object.keys(P).map(sT).join(","),transitionDuration:b+"ms",...M,...P})}},[b,C,T,E,_,m,R,d]),{isMounted:S,styles:y}}function BN(e,t){var n;const{open:r,dataRef:s}=e,{listRef:a,activeIndex:l,onMatch:c,onTypingChange:f,enabled:d=!0,findMatch:h=null,resetMs:m=750,ignoreKeys:b=[],selectedIndex:y=null}=t,k=v.useRef(-1),S=v.useRef(""),R=v.useRef((n=y??l)!=null?n:-1),T=v.useRef(null),E=$n(c),C=$n(f),_=er(h),D=er(b);mn(()=>{r&&(fr(k),T.current=null,S.current="")},[r]),mn(()=>{if(r&&S.current===""){var N;R.current=(N=y??l)!=null?N:-1}},[r,y,l]);const A=$n(N=>{N?s.current.typing||(s.current.typing=N,C(N)):s.current.typing&&(s.current.typing=N,C(N))}),M=$n(N=>{function W(H,K,q){const Y=_.current?_.current(K,q):K.find(O=>O?.toLocaleLowerCase().indexOf(q.toLocaleLowerCase())===0);return Y?H.indexOf(Y):-1}const $=a.current;if(S.current.length>0&&S.current[0]!==" "&&(W($,$,S.current)===-1?A(!1):N.key===" "&&ar(N)),$==null||D.current.includes(N.key)||N.key.length!==1||N.ctrlKey||N.metaKey||N.altKey)return;r&&N.key!==" "&&(ar(N),A(!0)),$.every(H=>{var K,q;return H?((K=H[0])==null?void 0:K.toLocaleLowerCase())!==((q=H[1])==null?void 0:q.toLocaleLowerCase()):!0})&&S.current===N.key&&(S.current="",R.current=T.current),S.current+=N.key,fr(k),k.current=window.setTimeout(()=>{S.current="",R.current=T.current,A(!1)},m);const z=R.current,U=W($,[...$.slice((z||0)+1),...$.slice(0,(z||0)+1)],S.current);U!==-1?(E(U),T.current=U):N.key!==" "&&(S.current="",A(!1))}),B=v.useMemo(()=>({onKeyDown:M}),[M]),P=v.useMemo(()=>({onKeyDown:M,onKeyUp(N){N.key===" "&&A(!1)}}),[M,A]);return v.useMemo(()=>d?{reference:B,floating:P}:{},[d,B,P])}function FN(e,t,n){return n===void 0&&(n=!0),e.filter(s=>{var a;return s.parentId===t&&(!n||((a=s.context)==null?void 0:a.open))}).flatMap(s=>[s,...FN(e,s.id,n)])}function oT(e,t){const[n,r]=e;let s=!1;const a=t.length;for(let l=0,c=a-1;l<a;c=l++){const[f,d]=t[l]||[0,0],[h,m]=t[c]||[0,0];d>=r!=m>=r&&n<=(h-f)*(r-d)/(m-d)+f&&(s=!s)}return s}function O5(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function UN(e){e===void 0&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e,s={current:-1};let a=!1,l=null,c=null,f=typeof performance<"u"?performance.now():0;function d(m,b){const y=performance.now(),k=y-f;if(l===null||c===null||k===0)return l=m,c=b,f=y,null;const S=m-l,R=b-c,E=Math.sqrt(S*S+R*R)/k;return l=m,c=b,f=y,E}const h=m=>{let{x:b,y,placement:k,elements:S,onClose:R,nodeId:T,tree:E}=m;return function(_){function D(){fr(s),R()}if(fr(s),!S.domReference||!S.floating||k==null||b==null||y==null)return;const{clientX:A,clientY:M}=_,B=[A,M],P=p5(_),N=_.type==="mouseleave",W=Vb(S.floating,P),$=Vb(S.domReference,P),F=S.domReference.getBoundingClientRect(),z=S.floating.getBoundingClientRect(),U=k.split("-")[0],H=b>z.right-z.width/2,K=y>z.bottom-z.height/2,q=O5(B,F),Y=z.width>F.width,O=z.height>F.height,j=(Y?F:z).left,V=(Y?F:z).right,L=(O?F:z).top,X=(O?F:z).bottom;if(W&&(a=!0,!N))return;if($&&(a=!1),$&&!N){a=!0;return}if(N&&gt(_.relatedTarget)&&Vb(S.floating,_.relatedTarget)||E&&FN(E.nodesRef.current,T).length)return;if(U==="top"&&y>=F.bottom-1||U==="bottom"&&y<=F.top+1||U==="left"&&b>=F.right-1||U==="right"&&b<=F.left+1)return D();let se=[];switch(U){case"top":se=[[j,F.top+1],[j,z.bottom-1],[V,z.bottom-1],[V,F.top+1]];break;case"bottom":se=[[j,z.top+1],[j,F.bottom-1],[V,F.bottom-1],[V,z.top+1]];break;case"left":se=[[z.right-1,X],[z.right-1,L],[F.left+1,L],[F.left+1,X]];break;case"right":se=[[F.right-1,X],[F.right-1,L],[z.left+1,L],[z.left+1,X]];break}function ne(oe){let[le,ce]=oe;switch(U){case"top":{const Ee=[Y?le+t/2:H?le+t*4:le-t*4,ce+t+1],be=[Y?le-t/2:H?le+t*4:le-t*4,ce+t+1],ue=[[z.left,H||Y?z.bottom-t:z.top],[z.right,H?Y?z.bottom-t:z.top:z.bottom-t]];return[Ee,be,...ue]}case"bottom":{const Ee=[Y?le+t/2:H?le+t*4:le-t*4,ce-t],be=[Y?le-t/2:H?le+t*4:le-t*4,ce-t],ue=[[z.left,H||Y?z.top+t:z.bottom],[z.right,H?Y?z.top+t:z.bottom:z.top+t]];return[Ee,be,...ue]}case"left":{const Ee=[le+t+1,O?ce+t/2:K?ce+t*4:ce-t*4],be=[le+t+1,O?ce-t/2:K?ce+t*4:ce-t*4];return[...[[K||O?z.right-t:z.left,z.top],[K?O?z.right-t:z.left:z.right-t,z.bottom]],Ee,be]}case"right":{const Ee=[le-t,O?ce+t/2:K?ce+t*4:ce-t*4],be=[le-t,O?ce-t/2:K?ce+t*4:ce-t*4],ue=[[K||O?z.left+t:z.right,z.top],[K?O?z.left+t:z.right:z.left+t,z.bottom]];return[Ee,be,...ue]}}}if(!oT([A,M],se)){if(a&&!q)return D();if(!N&&r){const oe=d(_.clientX,_.clientY);if(oe!==null&&oe<.1)return D()}oT([A,M],ne([b,y]))?!a&&r&&(s.current=window.setTimeout(D,40)):D()}}};return h.__options={blockPointerEvents:n},h}function qN(e){return bn(e.defaultTagName??"div",e,e)}const I5=v.createContext(void 0);function M5(){return v.useContext(I5)}const Yb={base:{kVAEAm:"ui-10l6tqk",krVfgx:"ui-r0fw0u",kCIrl2:"ui-7zl9wm",kzqmXN:"ui-jwey39",kZKoxP:"ui-wbbb81",kaIpWk:"ui-16rqkct",kfzvcC:"ui-47corl",$$css:!0},colorBlue:{kWkggS:"ui-1b558e3",$$css:!0},colorGreen:{kWkggS:"ui-15xcjd2",$$css:!0}};function D5(e){return[Yb.base,e==="green"?Yb.colorGreen:Yb.colorBlue]}function L5({color:e="blue",className:t}){const n=Yt({rootClass:"ui-indicator-dot",stylexStyles:D5(e),className:t});return g.jsx("span",{"aria-hidden":!0,className:n.className,"data-color":e,style:n.style})}const j5={root:{kysU6D:"ui-jyslct",k1xSpc:"ui-3nfvp2",kGNEyG:"ui-6s0dn4",kjj79g:"ui-l56j7k",kmuXW:"ui-2lah0s",kB7OPa:"ui-9f619",kLKAdn:"ui-exx8yu",kwRFfy:"ui-yri2b",kGO01o:"ui-18d9i69",kZCmMZ:"ui-1c1uobl",keoZOQ:"ui-dj266r",k71WvV:"ui-14z9mp",k1K539:"ui-at24cr",keTefX:"ui-1lziwak",kMzoRj:"ui-c342km",ksu8eU:"ui-ng3xce",kMv6JI:"ui-jb2p0i",kGuDYH:"ui-1qlqyl8",k63SB2:"ui-1pd3egz",kLWn49:"ui-15bjb6t",kkrTdU:"ui-1ypdohk ui-1j1ks5o",kSiTet:null,kfzvcC:"ui-67bb7w ui-7gqb9v",kVAEAm:"ui-1fxuinm",$$css:!0}},Fd={sm:{kzqmXN:"ui-16bvwqk",$$css:!0},md:{kzqmXN:"ui-1eu7oa3",$$css:!0},lg:{kzqmXN:"ui-jst10v",$$css:!0},xl:{kzqmXN:"ui-mjrt60",$$css:!0}},z5={rounded:{kaIpWk:"ui-1i4c3av",$$css:!0}},P5={sm:{keoZOQ:"ui-vqhhvk",k71WvV:"ui-1bk7dnq",k1K539:"ui-1dy9ubm",keTefX:"ui-1fesk1l",$$css:!0},md:{keoZOQ:"ui-kv60qn",k71WvV:"ui-xku7nj",k1K539:"ui-1hi8m59",keTefX:"ui-13srazm",$$css:!0},lg:{keoZOQ:"ui-4xtw7q",k71WvV:"ui-7quaee",k1K539:"ui-eci9o5",keTefX:"ui-1na8g2l",$$css:!0},xl:{keoZOQ:"ui-1fm9hdn",k71WvV:"ui-tyhy2u",k1K539:"ui-foffu7",keTefX:"ui-1tnioq7",$$css:!0}},Ud={root:[j5.root,PA.root],size:{sm:[Hi.sm,ws.sm,Fd.sm],md:[Hi.md,ws.md,Fd.md],lg:[Hi.lg,ws.lg,Fd.lg],xl:[Hi.xl,ws.xl,Fd.xl]},contentFrame:P5,rounded:z5.rounded},$5="md",B5="ghost",F5={root:{k1xSpc:"ui-3nfvp2",kGNEyG:"ui-6s0dn4",kjj79g:"ui-l56j7k",kzqmXN:"ui-1oai4fc",kZKoxP:"ui-higkf7",kGuDYH:"ui-1tachi3",kLWn49:"ui-o5v014",$$css:!0}};function HN(e){if(e!==void 0&&mx(e))return zt(F5.root,_A(e));const t={className:"ui-3nfvp2 ui-6s0dn4 ui-l56j7k ui-1oai4fc ui-higkf7 ui-1tachi3 ui-o5v014"};return e===void 0?t:{...t,style:{...t.style,"--icon-size":typeof e=="number"?`${e}px`:e}}}function U5({variant:e,rounded:t,frame:n,size:r,tone:s,indicatorDot:a}){return{"data-variant":e,"data-rounded":t||void 0,"data-frame":n,"data-size":r,"data-tone":s,"data-fg-channel":"icon","data-indicator-dot":a||void 0}}function VN({enforcedRootStyle:e,frame:t,indicatorDot:n,rootStyle:r,rounded:s,size:a,tone:l,variant:c}){const f=bx(c,l);return{dataAttrs:U5({frame:t,indicatorDot:n,rounded:s,size:a,tone:l,variant:c}),rootAttrs:zt(Ud.root,Ci.appearance,f.applyControlTone&&yx.foreground,f.applyControlTone&&l!==void 0&&IA[l],c==="ghost"&&(l==="secondary"||l==="tertiary")&&c6[l],f.applyFilledColors&&Ci.colors,f.applyNonFilledBackground&&la.background,(c==="outline"||c==="ghost")&&qp(l)&&MA[l],c==="outline"&&la.outline,c==="outline"&&qp(l)&&DA[l],c==="media"&&Ci.media,Ci.press,a!=="xs"&&Ud.size[a],s&&Ud.rounded,t==="content"&&a!=="xs"&&Ud.contentFrame[a],e,r)}}function GN({size:e,iconSize:t,disabled:n,variant:r,tone:s,enforced:a}){const l=e??a?.iconButtonSize??$5,c=r??a?.iconButtonVariant??B5,f=l==="xs"?void 0:LA[l];return{size:l,innerIconSize:t??a?.iconButtonIconSize??f,disabled:n??a?.disabled,variant:c,tone:NA(s??a?.iconButtonTone??(c==="primary"?OA:void 0))}}function br({icon:e,iconVariant:t="outline",variant:n,rounded:r,frame:s="container",size:a,iconSize:l,tone:c,className:f,style:d,rootStyle:h,iconStyle:m,disabled:b,indicatorDot:y=!1,indicatorDotColor:k="blue","aria-label":S,"aria-labelledby":R,...T}){const E=ya(),{size:C,innerIconSize:_,disabled:D,variant:A,tone:M}=GN({disabled:b,enforced:E,iconSize:l,size:a,tone:c,variant:n}),B=VN({enforcedRootStyle:E?.iconButtonRootStyle,frame:s,indicatorDot:y,rootStyle:h,rounded:r,size:C,tone:M,variant:A});return g.jsxs(gx,{...T,className:sn("ui-icon-button",B.rootAttrs.className,f),style:{...B.rootAttrs.style,...d},...B.dataAttrs,disabled:D,"aria-label":S,"aria-labelledby":R,children:[typeof e=="string"?g.jsx(qt,{name:e,rootStyle:[E?.iconButtonIconStyle,m],variant:t,size:_,"aria-hidden":"true"}):g.jsx("span",{...HN(_),"aria-hidden":"true",children:e}),y?g.jsx(L5,{color:k}):null]})}function q5(){return typeof navigator<"u"&&/Mac|iPod|iPhone|iPad/.test(navigator.platform)}function Mx(e){if(!(q5()?e.metaKey:e.ctrlKey)||e.shiftKey||e.altKey)return!1;switch(e.key.toLowerCase()){case"a":return e.preventDefault(),e.nativeEvent.stopImmediatePropagation(),e.currentTarget.select(),!0;case"c":case"v":case"x":case"z":return e.nativeEvent.stopImmediatePropagation(),!0;default:return!1}}const qd={base:{kMeerF:"ui-1k57tk5",k3XXqK:"ui-1t137rt",kInvED:"ui-1wfwxd8",kjBf7l:"ui-1uczgqu",kUk6DE:"ui-98rzlu",k7Eaqz:"ui-euugli",kEafiO:"ui-972fbf",kPef9Z:"ui-1ejq31n",ke9TFa:"ui-10w94by",k8ry5P:"ui-18oe1m7",kt9PQ7:"ui-1qhh985",kfdmCh:"ui-1sy0etr",k2ei4v:"ui-14e42zd",kVhnKS:"ui-stzfhl",kWkggS:"ui-jbqb8w",kMwMTN:"ui-1wd3ewq",kMv6JI:"ui-jb2p0i",kGuDYH:"ui-11wthnw",kLWn49:"ui-1ja60sm",kb6lSQ:"ui-12oo3zp",k8Qsv1:"ui-19ovir5",$$css:!0},disabled:{kkrTdU:"ui-1h6gzvc",k8Qsv1:"ui-ompknl",$$css:!0},mono:{kMv6JI:"ui-ul7cyv",$$css:!0},monoInput:{kGuDYH:"ui-pr5cyi",$$css:!0}};function H5({className:e,disabled:t=!1,mono:n=!1,ref:r,rootStyle:s,style:a,onKeyDown:l,...c}){const f=Yt({rootClass:"ui-input-group__input",stylexStyles:[qd.base,t?qd.disabled:null,n?qd.mono:null,n?qd.monoInput:null,s],className:e,style:a}),d=v.useCallback(h=>{l?.(h),!h.defaultPrevented&&Mx(h)},[l]);return g.jsx("input",{ref:r,className:f.className,style:f.style,disabled:t,onKeyDown:d,...c})}const Er={base:{"--ui-input-group-border-width":"ui-1cx02xk","--ui-input-group-padding-block":"ui-1we15r7","--ui-input-group-padding-inline":"ui-vnd6s4","--input-group-button-inset":"ui-1c59nzh","--ui-input-group-stroke-rest":"ui-ja7v4d",k1xSpc:"ui-78zum5",kGNEyG:"ui-6s0dn4",kB7OPa:"ui-9f619",kzqmXN:"ui-h8yej3",kEafiO:"ui-178xt8z",kPef9Z:"ui-13fuv20",kLZC3w:"ui-or0oem ui-9afaxg ui-4vz0kq",ke9TFa:"ui-1lun4ml",k8ry5P:"ui-18b5jzi",kBCPoo:"ui-2an0dy ui-jsivns ui-1n6ytmu",kt9PQ7:"ui-so031l",kfdmCh:"ui-1q0q8m5",kL6WhQ:"ui-snjbj6 ui-illscj ui-1rfq9xa",k2ei4v:"ui-pilrb4",kVhnKS:"ui-1t7ytsu",kGJrpR:"ui-iui3t5 ui-16dcxar ui-ghzbfo",kaIpWk:"ui-1043rbw",kLKAdn:"ui-e8kt42",kwRFfy:"ui-n29lvp",kGO01o:"ui-1ftrzfz",kZCmMZ:"ui-1ecvjd7",kWkggS:"ui-1gwrjia",k1ekBW:"ui-1oy24xj",kIyJzY:"ui-g3p6pi ui-sagj69",kAMwcw:"ui-6ekqhr",khiITx:"ui-vmahel",kTUp5R:"ui-lh3980",$$css:!0},disabled:{kLZC3w:"ui-1aeic0j",kBCPoo:"ui-5q6521",kL6WhQ:"ui-17fyfba",kGJrpR:"ui-4n2izg",kkrTdU:"ui-1h6gzvc",kSiTet:"ui-byyjgo",$$css:!0},sizeMd:{"--ui-input-group-padding-block":"ui-174jhef","--ui-input-group-padding-inline":"ui-xlcw59","--input-group-button-inset":"ui-1ethuh",kZKoxP:"ui-1e94bgo",kOIVth:"ui-11twubx",$$css:!0},sizeLg:{"--ui-input-group-padding-block":"ui-174jhef","--ui-input-group-padding-inline":"ui-cby3z1","--input-group-button-inset":"ui-1u9w55t",kZKoxP:"ui-170hpbr",kOIVth:"ui-pkkfsy",$$css:!0},sizeXl:{"--ui-input-group-padding-block":"ui-17wxzvn","--ui-input-group-padding-inline":"ui-cby3z1","--input-group-button-inset":"ui-1ethuh",kOIVth:"ui-ehausa",$$css:!0},layoutTextarea:{kGNEyG:"ui-1cy8zhl",kZKoxP:"ui-t7dq6l",kAzted:"ui-16ry4p3",$$css:!0},layoutTextareaMd:{kAzted:"ui-t6xkjb",$$css:!0},layoutTextareaLg:{kAzted:"ui-16ry4p3",$$css:!0},frameContent:{kzqmXN:"ui-q8za26",kqGvvJ:"ui-1k4kybs",kUOVxO:"ui-d1nd0v",$$css:!0},variantDefault:{"--ui-input-group-stroke-rest":"ui-l27skc",$$css:!0},variantElevated:{kWkggS:"ui-f1vpex",$$css:!0},variantGhost:{kWkggS:"ui-jbqb8w ui-qjnua1 ui-aig341",kLZC3w:"ui-1v8p93f",kBCPoo:"ui-1o3jo1z",kL6WhQ:"ui-16stqrj",kGJrpR:"ui-v5lvn5",$$css:!0},variantUnfilled:{"--ui-input-group-border-width":"ui-qkl0tc","--ui-input-group-padding-block":"ui-1we15r7","--ui-input-group-padding-inline":"ui-vnd6s4",kWkggS:"ui-jbqb8w",kEafiO:"ui-972fbf",kPef9Z:"ui-1ejq31n",kLZC3w:"ui-1b4hy2t",ke9TFa:"ui-10w94by",k8ry5P:"ui-18oe1m7",kBCPoo:"ui-1273586",kt9PQ7:"ui-1qhh985",kfdmCh:"ui-1sy0etr",kL6WhQ:"ui-1tnzt7h",k2ei4v:"ui-14e42zd",kVhnKS:"ui-stzfhl",kGJrpR:"ui-1mi4oqr",kOIVth:"ui-137clkk",kGVxlE:"ui-1gnnqk1 ui-15ysqaf",$$css:!0},variantUnfilledSize:{kZKoxP:"ui-t7dq6l",$$css:!0},shapePill:{kaIpWk:"ui-1i4c3av",$$css:!0}},Zo={field:{kMeerF:"ui-1k57tk5",k3XXqK:"ui-1t137rt",kInvED:"ui-1wfwxd8",kjBf7l:"ui-1uczgqu",kUk6DE:"ui-98rzlu",k7Eaqz:"ui-euugli",kEafiO:"ui-972fbf",kPef9Z:"ui-1ejq31n",ke9TFa:"ui-10w94by",k8ry5P:"ui-18oe1m7",kt9PQ7:"ui-1qhh985",kfdmCh:"ui-1sy0etr",k2ei4v:"ui-14e42zd",kVhnKS:"ui-stzfhl",kWkggS:"ui-jbqb8w",kMwMTN:"ui-1wd3ewq",kMv6JI:"ui-jb2p0i",kGuDYH:"ui-11wthnw",kLWn49:"ui-1ja60sm",kb6lSQ:"ui-12oo3zp",kAzted:"ui-10fesj9",kHenm0:"ui-tt52l0",kORKVm:"ui-10wlt62",k8Qsv1:"ui-19ovir5",$$css:!0},disabled:{kkrTdU:"ui-1h6gzvc",k8Qsv1:"ui-ompknl",$$css:!0},mono:{kMv6JI:"ui-ul7cyv",$$css:!0},autoSizeContent:{kOwNse:"ui-i3vqlg",kAzted:"ui-10fesj9 ui-1mcog50",kORKVm:"ui-10wlt62 ui-n0h0yx",$$css:!0},autoSizeContentMaxRows:{kskxy:"ui-17r4vdi",$$css:!0},autoSizeRows:(e,t)=>[{"--ui-input-group-textarea-min-rows":String(e)!=null?"ui-so4lmt":String(e),"--ui-input-group-textarea-max-rows":String(t)!=null?"ui-1554sew":String(t),$$css:!0},{"--x---ui-input-group-textarea-min-rows":String(e)!=null?String(e):void 0,"--x---ui-input-group-textarea-max-rows":String(t)!=null?String(t):void 0}],collapseBlur:{kskxy:"ui-1kxtfma ui-5u5ifr",kORKVm:"ui-10wlt62",$$css:!0}},Ml={base:{k1xSpc:"ui-78zum5",kGNEyG:"ui-6s0dn4",kmuXW:"ui-2lah0s",kMwMTN:"ui-1mh7f6w",keTefX:"ui-1lziwak ui-dve3mh",k71WvV:"ui-14z9mp ui-rybaqh",$$css:!0},textareaLayout:{kAzted:"ui-1tn5z8q",$$css:!0}},aT={base:{k1xSpc:"ui-78zum5",kGNEyG:"ui-6s0dn4",kmuXW:"ui-2lah0s",kMwMTN:"ui-19aaqeu",kGuDYH:"ui-11wthnw",kLWn49:"ui-1ja60sm",kb6lSQ:"ui-12oo3zp",$$css:!0},mono:{kMv6JI:"ui-ul7cyv",$$css:!0}},V5={md:Er.sizeMd,lg:Er.sizeLg,xl:Er.sizeXl},G5={md:Er.layoutTextareaMd,lg:Er.layoutTextareaLg,xl:null},W5={container:null,content:Er.frameContent},K5={default:Er.variantDefault,elevated:Er.variantElevated,ghost:Er.variantGhost,unfilled:Er.variantUnfilled},Y5={rounded:null,pill:Er.shapePill},WN=v.createContext(null);function ka(e){const t=v.useContext(WN);if(!t)throw new Error(`${e} must be used within InputGroup.Root`);return t}function X5(){return ka("InputGroup.useContext")}const Z5={md:"sm",lg:"base",xl:"lg"},Q5={md:"sm",lg:"sm",xl:"sm"},J5={md:"sm",lg:"sm",xl:"md"};function e9(){return typeof CSS<"u"&&typeof CSS.supports=="function"&&CSS.supports("field-sizing","content")}function lT({variant:e="default",frame:t="container",size:n="lg",shape:r="rounded",layout:s="default",mono:a=!1,disabled:l=!1,rootStyle:c,className:f,children:d}){const h=M5(),m=l||h?.disabled===!0,b=Yt({rootClass:"ui-input-group",stylexStyles:[Er.base,V5[n],s==="textarea"?Er.layoutTextarea:null,s==="textarea"?G5[n]:null,W5[t],K5[e],e==="unfilled"?Er.variantUnfilledSize:null,Y5[r],m?Er.disabled:null,c],className:f});return g.jsx(WN.Provider,{value:{disabled:m,layout:s,mono:a},children:g.jsx(Is,{iconSize:Z5[n],iconButtonSize:Q5[n],buttonSize:J5[n],disabled:m||void 0,children:g.jsx("div",{className:b.className,style:b.style,"data-variant":e,"data-frame":t,"data-size":n,"data-shape":r!=="rounded"?r:void 0,"data-layout":s==="textarea"?"textarea":void 0,"data-mono":a||void 0,"data-disabled":m||void 0,children:d})})})}function t9({className:e,disabled:t,ref:n,rootStyle:r,style:s,...a}){const l=ka("InputGroup.Input"),c=l.disabled||t===!0;return g.jsx(TB,{...a,className:e,disabled:c,ref:n,render:g.jsx(H5,{mono:l.mono,rootStyle:r}),style:s})}function n9({className:e,disabled:t,ref:n,rootStyle:r,style:s,onKeyDown:a,onInput:l,onFocus:c,onBlur:f,minRows:d=1,maxRows:h,autoResize:m=!0,collapseToSingleLineWhenBlurred:b=!1,rows:y,value:k,placeholder:S,focusedPlaceholder:R,...T}){const E=ka("InputGroup.Textarea"),C=E.disabled||t===!0,_=d<1?1:d,D=h===void 0?void 0:h<_?_:h,A=m&&!b,M=Math.min(Math.max(y??_,_),D??Number.POSITIVE_INFINITY),B=Yt({rootClass:"ui-input-group__textarea",stylexStyles:[Zo.field,C?Zo.disabled:null,E.mono?Zo.mono:null,b?Zo.collapseBlur:null,A?Zo.autoSizeContent:null,A&&D!==void 0?Zo.autoSizeContentMaxRows:null,A?Zo.autoSizeRows(M,D??M):null,r],className:e,style:s}),P=v.useRef(null),N=Jc([P,n]),[W,$]=v.useState(!1),F=v.useCallback(()=>{if(!m)return;const O=P.current;if(!O||A&&O.style.height===""&&e9())return;if(D===_&&(y===void 0||y===_)){O.style.height="",O.style.overflowY="auto";return}O.style.height="auto";const j=window.getComputedStyle(O),V=Number.parseFloat(j.lineHeight),L=Number.parseFloat(j.paddingTop)||0,X=Number.parseFloat(j.paddingBottom)||0,se=Number.parseFloat(j.borderTopWidth)||0,ne=Number.parseFloat(j.borderBottomWidth)||0,oe=L+X+se+ne,le=Number.isFinite(V)&&V>0?oe+V*_:0,ce=D!==void 0&&Number.isFinite(V)&&V>0?oe+V*D:void 0,Ee=Math.max(O.scrollHeight,le),be=ce!==void 0?Math.min(Ee,ce):Ee;O.style.height=`${be}px`,O.style.overflowY=ce!==void 0&&O.scrollHeight>ce?"auto":"hidden"},[m,D,_,y,A]);v.useLayoutEffect(()=>{F()},[k,F]);const z=v.useCallback(O=>{a?.(O),!O.defaultPrevented&&Mx(O)},[a]),U=v.useCallback(O=>{l?.(O),O.defaultPrevented||F()},[l,F]),H=v.useCallback(O=>{$(!0),c?.(O)},[c]),K=v.useCallback(O=>{$(!1),f?.(O)},[f]),q=y??_,Y=W&&R!==void 0?R:S;return g.jsx("textarea",{ref:N,className:B.className,style:B.style,disabled:C,onKeyDown:z,rows:q,value:k,placeholder:Y,...T,"data-textarea-collapse-blur":b?"":void 0,onInput:U,onFocus:H,onBlur:K})}function r9({addonStyle:e,className:t,ref:n,...r}){const s=ka("InputGroup.Icon"),a=Yt({rootClass:"ui-input-group__addon",stylexStyles:[Ml.base,s.layout==="textarea"?Ml.textareaLayout:null,e],className:t});return g.jsx("span",{className:a.className,style:a.style,children:g.jsx(qt,{ref:n,...r})})}function i9({addonStyle:e,className:t,disabled:n,ref:r,...s}){const a=ka("InputGroup.IconButton"),l=a.disabled?!0:n,c=Yt({rootClass:"ui-input-group__addon",stylexStyles:[Ml.base,a.layout==="textarea"?Ml.textareaLayout:null,e],className:t});return g.jsx("span",{className:c.className,style:c.style,children:g.jsx(br,{ref:r,disabled:l,...s})})}function s9({addonStyle:e,className:t,disabled:n,ref:r,...s}){const a=ka("InputGroup.Button"),l=a.disabled?!0:n,c=Yt({rootClass:"ui-input-group__addon",stylexStyles:[Ml.base,a.layout==="textarea"?Ml.textareaLayout:null,e],className:t});return g.jsx("span",{className:c.className,style:c.style,children:g.jsx(vn,{ref:r,disabled:l,...s})})}function o9({className:e,children:t}){const n=ka("InputGroup.Span"),r=Yt({rootClass:"ui-input-group__span",stylexStyles:[aT.base,n.mono?aT.mono:null],className:e});return g.jsx("span",{className:r.className,style:r.style,children:t})}const Hd=Object.assign(lT,{Root:lT,Input:t9,Textarea:n9,Icon:r9,IconButton:i9,Button:s9,Span:o9,useContext:X5}),a9=v.createContext(void 0);function l9(e){return v.useContext(a9)}function KN(e={}){const{highlightItemOnHover:t,highlightedIndex:n,onHighlightedIndexChange:r}=d_(),{ref:s,index:a}=eN(e),l=n===a,c=v.useRef(null),f=xo(s,c);return{compositeProps:{tabIndex:l?0:-1,onFocus(){r(a)},onMouseMove(){const h=c.current;if(!t||!h)return;const m=h.hasAttribute("disabled")||h.ariaDisabled==="true";!l&&!m&&h.focus()}},compositeRef:f,index:a}}function u9(e){const{render:t,className:n,style:r,state:s=Bn,props:a=ko,refs:l=ko,metadata:c,stateAttributesMapping:f,tag:d="div",...h}=e,{compositeProps:m,compositeRef:b}=KN({metadata:c});return bn(d,e,{state:s,ref:[...l,b],props:[m,...a,h],stateAttributesMapping:f})}function c9(e){const[t,n]=v.useState({current:e,previous:null});return e!==t.current&&n({current:e,previous:t.current}),t.previous}function uT(e){const t=Tr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=Ft(e),a=s?e.offsetWidth:n,l=s?e.offsetHeight:r;return(_l(n)!==a||_l(r)!==l)&&(n=a,r=l),{width:n,height:r}}function YN(e){return e==null||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true"}const XN=v.createContext(void 0);function nf(e){const t=v.useContext(XN);if(t===void 0&&!e)throw new Error(In(50));return t}const f9=600,ZN=300,d9={...hA,instantType:tt(e=>e.instantType),hasViewport:tt(e=>e.hasViewport)};class Kh extends cx{constructor(t,n,r=!1){const s=new Ah,a={...p9(),...t};a.floatingRootContext=dA(s,n,r),super(a,{popupRef:v.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:s,closeDelayRef:{current:ZN},inlineRectCoordsRef:{current:void 0}},d9)}setOpen=(t,n)=>{const{inlineRectCoordsRef:r}=this.context;sA(this,t,n,{onBeforeDispatch(){const s=n.event;t&&n.reason===Sr&&n.trigger&&"clientX"in s&&"clientY"in s&&r.current?.element!==n.trigger&&Q_(r,n.trigger,s.clientX,s.clientY)}})};static useStore(t,n){return iA(t,(s,a)=>new Kh(n,s,a)).store}}function p9(){return{...fA(),instantType:void 0,hasViewport:!1}}function cT(e){const{open:t,defaultOpen:n=!1,onOpenChange:r,onOpenChangeComplete:s,actionsRef:a,handle:l,triggerId:c,defaultTriggerId:f=null,children:d}=e,h=Kh.useStore(l?.store,{open:n,openProp:t,activeTriggerId:f,triggerIdProp:c});oA(h,t,n,f),h.useControlledProp("openProp",t),h.useControlledProp("triggerIdProp",c),h.useContextCallback("onOpenChange",r),h.useContextCallback("onOpenChangeComplete",s);const m=h.useState("open"),b=h.useState("activeTriggerId"),y=h.useState("mounted"),k=h.useState("payload");lA(h,{closeOnActiveTriggerUnmount:!0});const{forceUnmount:S}=uA(m,h,()=>{h.context.inlineRectCoordsRef.current=void 0});Ve(()=>{m&&b==null&&h.set("payload",void 0)},[h,b,m]);const R=v.useCallback(()=>{h.setOpen(!1,Rt(_p))},[h]);v.useImperativeHandle(a,()=>({unmount:S,close:R}),[S,R]);const T=m||y;return g.jsxs(XN.Provider,{value:h,children:[T&&g.jsx(h9,{store:h}),typeof d=="function"?d({payload:k}):d]})}function h9({store:e}){const t=e.useState("floatingRootContext"),n=nx(t),r=n.reference??Bn,s=n.trigger??Bn,a=v.useMemo(()=>Gi(fx,n.floating),[n.floating]);return cA(e,{activeTriggerProps:r,inactiveTriggerProps:s,popupProps:a}),null}const QN=ux(function(t){return nf(!0)?g.jsx(cT,{...t}):g.jsx(NP,{children:g.jsx(cT,{...t})})}),JN=v.createContext(void 0);function m9(){const e=v.useContext(JN);if(e===void 0)throw new Error(In(48));return e}const eO=v.forwardRef(function(t,n){const{children:r,container:s,className:a,render:l,style:c,...f}=t,{portalNode:d,portalSubtree:h}=z_({container:s,ref:n,componentProps:t,elementProps:f});return!h&&!d?null:g.jsxs(v.Fragment,{children:[h,d&&Mi.createPortal(r,d)]})}),tO=v.forwardRef(function(t,n){const{keepMounted:r=!1,...s}=t;return nf().useState("mounted")||r?g.jsx(JN.Provider,{value:r,children:g.jsx(eO,{ref:n,...s})}):null}),nO=tA(function(t,n){const{render:r,className:s,delay:a,closeDelay:l,id:c,payload:f,handle:d,style:h,...m}=t,b=nf(!0),y=d?.store??b;if(!y)throw new Error(In(89));const k=Fl(c),S=y.useState("isTriggerActive",k),R=y.useState("isOpenedByTrigger",k),T=y.useState("floatingRootContext"),E=y.context.inlineRectCoordsRef,C=v.useRef(null),_=a??f9,D=l??ZN,{registerTrigger:A,isMountedByThisTrigger:M}=aA(k,C,y,{payload:f});Ve(()=>{M&&(y.context.closeDelayRef.current=D)},[y,M,D]);const B=vA(T,{mouseOnly:!0,move:!1,handleClose:xA(),delay:()=>({open:_,close:D}),triggerElementRef:C,isActiveTrigger:S,isClosing:()=>y.select("transitionStatus")==="ending"}),P=gA(T,{delay:_}),N={open:R},W=y.useState("triggerProps",M),$=T$(E,R);return bn("a",t,{state:N,ref:[n,A,C],props:[B,P.reference,W,$,{id:k},m],stateAttributesMapping:u_})}),rO=v.createContext(void 0);function g9(){const e=v.useContext(rO);if(e===void 0)throw new Error(In(49));return e}const iO=v.forwardRef(function(t,n){const{render:r,className:s,anchor:a,positionMethod:l="absolute",side:c="bottom",align:f="center",sideOffset:d=0,alignOffset:h=0,collisionBoundary:m="clipping-ancestors",collisionPadding:b=5,arrowPadding:y=5,sticky:k=!1,disableAnchorTracking:S=!1,collisionAvoidance:R=D_,style:T,...E}=t,C=nf(),_=m9(),D=_P(),A=C.useState("open"),M=C.useState("mounted"),B=C.useState("floatingRootContext"),P=C.useState("instantType"),N=C.useState("transitionStatus"),W=C.useState("hasViewport"),$=C.context.inlineRectCoordsRef,F=Ex({anchor:a,floatingRootContext:B,positionMethod:l,mounted:M,side:c,sideOffset:d,align:f,alignOffset:h,arrowPadding:y,collisionBoundary:m,collisionPadding:b,sticky:k,disableAnchorTracking:S,keepMounted:_,nodeId:D,collisionAvoidance:R,adaptiveOrigin:W?ZA:void 0,inline:R$($)}),z=F.update;Ve(()=>{A&&M&&z()},[A,M,z]);const U={open:A,side:F.side,align:F.align,anchorHidden:F.anchorHidden,instant:P},H=Tx(t,U,{styles:F.positionerStyles,transitionStatus:N,props:E,refs:[n,C.useStateSetter("positionerElement")],hidden:!M,inert:!A});return g.jsx(rO.Provider,{value:F,children:g.jsx(AP,{id:D,children:H})})}),b9={...Wc,...To},sO=v.forwardRef(function(t,n){const{className:r,render:s,style:a,...l}=t,c=nf(),{side:f,align:d}=g9(),h=c.useState("open"),m=c.useState("instantType"),b=c.useState("transitionStatus"),y=c.useState("popupProps"),k=c.useState("floatingRootContext");_o({open:h,ref:c.context.popupRef,onComplete(){h&&c.context.onOpenChangeComplete?.(!0)}});const S=Ke(()=>c.context.closeDelayRef.current);return yA(k,{closeDelay:S}),bn("div",t,{state:{open:h,side:f,align:d,instant:m,transitionStatus:b},ref:[n,c.context.popupRef,c.useStateSetter("popupElement")],props:[y,Lh(b),l],stateAttributesMapping:b9})});class y9{constructor(){this.store=new Kh}open(t){const n=t?this.store.context.triggerElements.getById(t):void 0;if(t&&!n)throw new Error(In(88,t));this.store.setOpen(!0,Rt(_p,void 0,n))}close(){this.store.setOpen(!1,Rt(_p,void 0,void 0))}get isOpen(){return this.store.select("open")}}function v9(){return new y9}function Dl(e,t,n,r){const[s,a]=v.useState(t),l=v.useRef(n),c=v.useRef(s),f=e!==void 0,d=v.useRef(f);v.useLayoutEffect(()=>{l.current=n},[n]),v.useEffect(()=>{c.current!==s&&l.current?.(s),c.current=s},[s]),v.useEffect(()=>{d.current,d.current=f},[r,f]);const h=f?e:s,m=v.useCallback(b=>{if(!f){a(b);return}const y=typeof b=="function"?b(e):b;y!==e&&l.current?.(y)},[e,f]);return[h,m]}const oO="never",aO=250,Xb={base:{kVAEAm:"ui-1n2onr6",kfSwDN:"ui-1hx0egp",kfzvcC:"ui-67bb7w",$$css:!0},width:e=>[{kzqmXN:e!=null?"ui-5lhr3w":e,$$css:!0},{"--x-width":(t=>typeof t=="number"?t+"px":t??void 0)(e)}],maxWidth:e=>[{ks0D6T:e!=null?"ui-f68679":e,$$css:!0},{"--x-maxWidth":(t=>typeof t=="number"?t+"px":t??void 0)(e)}]},x9={base:{kB7OPa:"ui-9f619",$$css:!0}};function k9({ariaLabel:e,close:t,content:n,contentStyle:r,isOpen:s,maxHeight:a,maxWidth:l,offset:c,placement:f,sameAxisOnly:d,scrollbarVisibility:h,surfaceClassName:m,surfaceStyle:b,width:y}){const{portalLayerStyles:k}=ql("tooltip",!0),{side:S,align:R,sideOffset:T,alignOffset:E,collisionAvoidance:C,positionMethod:_}=Fh(f??$h,c,d),D=zh(rN),A=zt(Rx,Xb.base,jh,Xb.width(y),l!==void 0&&Xb.maxWidth(l),b),M=zt(iN,x9.base,r);return g.jsx(iO,{align:R,alignOffset:E,className:D.className,collisionAvoidance:C,collisionPadding:8,positionMethod:_,side:S,sideOffset:T,style:{...D.style,...k},children:g.jsx(sO,{"aria-label":e,className:sn("ui-preview-card",m,A.className),"data-block-global-shortcuts":s?"Escape":void 0,role:"dialog",style:A.style,children:g.jsx(Nl,{maxHeight:a,scrollbarVisibility:h,children:g.jsx("div",{className:sn("ui-preview-card__content",M.className),style:M.style,children:typeof n=="function"?n(t):n})})})})}function lO({children:e,content:t,placement:n=$h,sameAxisOnly:r=!1,offset:s=8,openDelay:a=aO,closeDelay:l=Bh,disabled:c=!1,maxHeight:f=300,maxWidth:d,scrollbarVisibility:h=oO,width:m=280,className:b,surfaceStyle:y,contentStyle:k,"aria-label":S,ref:R,defaultOpen:T=!1,open:E,onOpenChange:C,onOpenChangeComplete:_,...D}){const A=v.useRef(null),[M,B]=Dl(E,T,void 0,"PreviewCard"),P=v.Children.only(e),N=v.isValidElement(P),W=v.useCallback(H=>{H!==null&&(A.current?.close(),E===void 0&&A.current?.unmount())},[E]),$=qN({defaultTagName:"span",props:D,ref:[R,W],render:N?P:void 0}),F=va(),z=v.useCallback((H,K)=>{if(c){H&&K.cancel();return}if(K.reason==="outside-press"||K.reason==="trigger-press"){K.cancel();return}C?.(H,K),K.isCanceled||B(H)},[c,C,B]),U=v.useCallback(()=>A.current?.close(),[]);return N?g.jsxs(QN,{actionsRef:A,defaultOpen:T,onOpenChange:z,onOpenChangeComplete:_,open:E,children:[c?$:g.jsx(nO,{...D,closeDelay:l,delay:a,ref:R,render:P}),c?null:g.jsx(tO,{container:F??void 0,children:g.jsx(k9,{ariaLabel:S,close:U,content:t,contentStyle:k,isOpen:M,maxHeight:f,maxWidth:d,offset:s,placement:n,sameAxisOnly:r,scrollbarVisibility:h,surfaceClassName:b,surfaceStyle:y,width:m})})]}):g.jsx(g.Fragment,{children:e})}function fT(e){const t=v.useRef(e);return v.useLayoutEffect(()=>{t.current=e},[e]),t}function uO(e,t){const n=fT(e),r=fT(t);return v.useCallback(s=>{if(s==null)return;const{ownerDocument:a}=s,l=c=>{const f=c.target,d=a.defaultView?.Element;if(d===void 0||!(f instanceof d))return;const h=r.current;if(h==null)return;const m=a.getElementById(h);m!=null&&f.contains(m)&&n.current.close()};return a.addEventListener("scroll",l,{capture:!0,passive:!0}),()=>{a.removeEventListener("scroll",l,!0)}},[n,r])}const Zp=v.createContext(!1);function cO({children:e,dismiss:t}){const n=v.use(Zp);return g.jsx(Zp.Provider,{value:n||t,children:e})}const fO=v.createContext(null),dO=v.createContext(null),pO=v.createContext(null);function hO(e){const t=v.use(fO);if(t===null)throw new Error(`${e} must be used within PreviewCardLayer`);return t}function S9(){const e=v.use(dO);if(e===null)throw new Error("PreviewCardLayer.Popup must be inside an open PreviewCardLayer");return e}function w9(){const e=v.use(pO);if(e===null)throw new Error("PreviewCardLayer.Popup must be inside an open PreviewCardLayer");return e}function E9({children:e}){const t=Cx();return Ix({nodeId:t,open:!0}),g.jsx(_x,{id:t,children:e})}function _c({children:e,placement:t=$h,offset:n=8,sameAxisOnly:r=!1,openDelay:s=aO,closeDelay:a=Bh,controlledTargetId:l}){const c=v.useMemo(()=>v9(),[]),f=v.useRef(null),d=v.useRef(null),h=v.useRef(null),m=v.useRef(!1),b=v.useRef(new Map),y=v.useRef(l),[k,S]=v.useState(!1),R=v.useRef(null),T=v.use(Zp),E=Fh(t,n,r);v.useLayoutEffect(()=>{k||R.current?.unmount()},[k]);const C=v.useCallback(P=>{f.current===P&&(f.current=null,c.close())},[c]),_=v.useCallback(()=>{const P=y.current;if(P===void 0)return;const N=P===null?void 0:b.current.get(P);if(P===null||N===void 0||N.suppressed){f.current=null,c.close();return}f.current=N.triggerId,c.open(N.triggerId)},[c]),D=v.useCallback(()=>{const P=m.current;m.current=!1;const N=d.current;if(N===null)return;const W=h.current;W===null||W.id!==N||!W.isConnected||W.hasAttribute("data-preview-card-layer-trigger-suppressed")||!P&&W!==W.ownerDocument.activeElement&&!W.matches(":hover")||(f.current=N,c.open(N))},[c]),A=v.useCallback((P,N)=>(b.current.set(P,N),_(),()=>{b.current.get(P)===N&&(b.current.delete(P),_())}),[_]);v.useLayoutEffect(()=>{const P=y.current;if(P===void 0&&l!==void 0&&(d.current=f.current),y.current=l,l===void 0){P!==void 0&&D();return}P!==l&&(m.current=!1),_()},[l,_,D]);const M=v.useCallback((P,N)=>{if(y.current!==void 0&&N.reason!=="imperative-action"){P&&N.trigger!==void 0&&!N.trigger.hasAttribute("data-preview-card-layer-trigger-suppressed")?(d.current=N.trigger.id,h.current=N.trigger,m.current=!0):!P&&N.trigger?.id===d.current&&(d.current=null,h.current=null,m.current=!1),N.cancel(),_();return}if(P&&N.trigger?.hasAttribute("data-preview-card-layer-trigger-suppressed")){if(N.cancel(),y.current!==void 0){_();return}f.current=null,d.current=null,c.close();return}if(!P&&N.reason==="trigger-focus"&&N.event instanceof FocusEvent&&N.event.relatedTarget===null&&N.event.target instanceof Element&&N.event.target.matches(":hover")){N.cancel();return}!P&&N.reason!=="imperative-action"&&N.trigger?.id===d.current&&(d.current=null,h.current=null,m.current=!1),f.current=P?N.trigger?.id??f.current:null,y.current===void 0&&(d.current=f.current),S(P),y.current===void 0&&N.trigger!==void 0&&(h.current=P?N.trigger:null)},[c,_]),B=v.useMemo(()=>({handle:c,instantDismiss:T,openDelay:s,closeDelay:a,positioner:E,closeIfActive:C,registerTarget:A}),[a,C,c,T,s,E,A]);return g.jsxs(fO.Provider,{value:B,children:[e,g.jsx(QN,{actionsRef:R,handle:c,onOpenChange:M,children:({payload:P})=>!T&&k&&P!==void 0?g.jsx(dO.Provider,{value:P.triggerId,children:g.jsx(pO.Provider,{value:P.contentKey,children:g.jsx(E9,{children:P.content})})}):null})]})}function T9({children:e,content:t,targetId:n,contentKey:r,disabled:s=!1,openDelay:a,closeDelay:l}){const{handle:c,instantDismiss:f,openDelay:d,closeDelay:h,closeIfActive:m,registerTarget:b}=hO("PreviewCardLayer.Trigger"),y=v.useId(),k=e.props.id,S=typeof k=="string"?k:y,R=s||f,T=v.useMemo(()=>({content:t,contentKey:r??S,triggerId:S}),[t,r,S]);return v.useLayoutEffect(()=>{const E=n===void 0?void 0:b(n,{triggerId:S,suppressed:R});return R&&m(S),()=>{E?.(),m(S)}},[m,b,R,n,S]),g.jsx(nO,{closeDelay:l??h,delay:a??d,handle:c,id:S,payload:T,"data-preview-card-layer-trigger-suppressed":R?"":void 0,render:e})}function R9({ariaLabel:e,children:t,maxHeight:n,surfaceClassName:r,surfaceStyle:s}){const{handle:a,positioner:l}=hO("PreviewCardLayer.Popup"),c=S9(),f=w9(),d=va(),h=uO(a,c),{portalLayerStyles:m}=ql("tooltip",!0),b=zh(rN),y=zt(Rx,sN,iN,jh,w4,s);return g.jsx(tO,{container:d??void 0,children:g.jsx(iO,{align:l.align,alignOffset:l.alignOffset,className:b.className,collisionAvoidance:l.collisionAvoidance,collisionPadding:8,positionMethod:l.positionMethod,side:l.side,sideOffset:l.sideOffset,style:{...b.style,...m},children:g.jsx(sO,{"aria-label":e,"data-component":"preview-card-layer-popup",className:sn("ui-preview-card-layer",r,y.className),ref:h,role:"dialog",style:y.style,children:n===void 0?t:g.jsx(Nl,{maxHeight:`min(${typeof n=="number"?`${n}px`:n}, var(--available-height, 100vh))`,scrollbarVisibility:oO,children:t})},f)})})}(function(e){e.Trigger=T9,e.Popup=R9})(_c||(_c={}));const mO="data-composite-item-active",C9=[];function _9(e){const{loopFocus:t=!0,orientation:n="both",grid:r,onLoop:s,direction:a,highlightedIndex:l,onHighlightedIndexChange:c,rootRef:f,enableHomeAndEndKeys:d=!1,stopEventPropagation:h=!1,disabledIndices:m,modifierKeys:b=C9}=e,[y,k]=v.useState(0),S=r!=null,R=v.useRef(null),T=xo(R,f),E=v.useRef([]),C=v.useRef(!1),_=l??y,D=Ke((N,W=!1)=>{if((c??k)(N),W){const $=E.current[N];uE(R.current,$,a,n)}}),A=Ke(N=>{if(N.size===0||C.current)return;C.current=!0;const W=Array.from(N.keys()),$=W.find(z=>z?.hasAttribute(mO))??null,F=$?W.indexOf($):-1;if(F!==-1)D(F);else if(Dp(W,_,m)){const z=Ss(W,{disabledIndices:m});cc(W,z)||D(z)}uE(R.current,$,a,n)});Ve(()=>{if(m==null||l!=null||!C.current)return;const N=E.current;if(Dp(N,_,m)){const W=Ss(N,{disabledIndices:m});cc(N,W)||D(W)}},[m,l,_,E,D]);const M=Ke((N,W,$)=>s?s(N,W,$,E):$),B=Ke(N=>{const W=d?EA:wA;if(!W.has(N.key)||A9(N,b)||!R.current)return;const F=a==="rtl",z=F?Bp:Fp,U={horizontal:z,vertical:hc,both:z}[n],H=F?Fp:Bp,K={horizontal:H,vertical:pc,both:H}[n],q=gr(N.nativeEvent);if(q!=null&&lE(q)&&!YN(q)){const se=q.selectionStart,ne=q.selectionEnd,oe=q.value??"";if(se==null||N.shiftKey||se!==ne||N.key!==K&&se<oe.length||N.key!==U&&se>0)return}let Y=_;const O=bp(E,m),j=$y(E,m);r!=null&&(Y=r({disabledIndices:m,elementsRef:E,event:N,highlightedIndex:_,loopFocus:t,maxIndex:j,minIndex:O,onLoop:M,orientation:n,rtl:F}));const V={horizontal:[z],vertical:[hc],both:[z,hc]}[n],L={horizontal:[H],vertical:[pc],both:[H,pc]}[n],X=S?W:{horizontal:d?n3:kA,vertical:d?r3:SA,both:W}[n];d&&(N.key===Oh?Y=O:N.key===Ih&&(Y=j)),Y===_&&(V.includes(N.key)||L.includes(N.key))&&(t&&Y===j&&V.includes(N.key)?(Y=O,s&&(Y=s(N,_,Y,E))):t&&Y===O&&L.includes(N.key)?(Y=j,s&&(Y=s(N,_,Y,E))):Y=Ss(E.current,{startingIndex:Y,decrement:L.includes(N.key),disabledIndices:m})),Y!==_&&!cc(E.current,Y)&&(h&&N.stopPropagation(),X.has(N.key)&&N.preventDefault(),D(Y,!0),queueMicrotask(()=>{E.current[Y]?.focus()}))});return{props:{ref:T,onFocus(N){const W=R.current,$=gr(N.nativeEvent);!W||$==null||!lE($)||$.setSelectionRange(0,$.value.length??0)},onKeyDown:B},highlightedIndex:_,onHighlightedIndexChange:D,elementsRef:E,disabledIndices:m,onMapChange:A,relayKeyboardEvent:B}}function A9(e,t){for(const n of l3.values())if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}function N9(e){const{render:t,className:n,style:r,refs:s=ko,props:a=ko,state:l=Bn,stateAttributesMapping:c,highlightedIndex:f,onHighlightedIndexChange:d,orientation:h,grid:m,loopFocus:b,onLoop:y,enableHomeAndEndKeys:k,onMapChange:S,stopEventPropagation:R=!0,rootRef:T,disabledIndices:E,modifierKeys:C,highlightItemOnHover:_=!1,tag:D="div",...A}=e,M=Di(),{props:B,highlightedIndex:P,onHighlightedIndexChange:N,elementsRef:W,onMapChange:$,relayKeyboardEvent:F}=_9({grid:m,loopFocus:b,onLoop:y,orientation:h,highlightedIndex:f,onHighlightedIndexChange:d,rootRef:T,stopEventPropagation:R,enableHomeAndEndKeys:k,direction:M,disabledIndices:E,modifierKeys:C}),z=bn(D,e,{state:l,ref:s,props:[B,...a,A],stateAttributesMapping:c}),U=v.useMemo(()=>({highlightedIndex:P,onHighlightedIndexChange:N,highlightItemOnHover:_,relayKeyboardEvent:F}),[P,N,_,F]);return g.jsx(f_.Provider,{value:U,children:g.jsx(wx,{elementsRef:W,onMapChange:H=>{S?.(H),$(H)},children:z})})}const O9=v.createContext(void 0);function I9(){const e=v.useContext(O9);if(e===void 0)throw new Error(In(63));return e}let dT=(function(e){return e.checked="data-checked",e.unchecked="data-unchecked",e.disabled="data-disabled",e.readonly="data-readonly",e.required="data-required",e.valid="data-valid",e.invalid="data-invalid",e.touched="data-touched",e.dirty="data-dirty",e.filled="data-filled",e.focused="data-focused",e})({});const M9={...Zc,checked(e){return e?{[dT.checked]:""}:{[dT.unchecked]:""}}},D9=v.forwardRef(function(t,n){const{render:r,className:s,style:a,...l}=t,c=I9();return bn("span",t,{state:c,ref:n,stateAttributesMapping:M9,props:l})}),L9="md",pT={root:{kVAEAm:"ui-1n2onr6",k1xSpc:"ui-3nfvp2",kGNEyG:"ui-6s0dn4",kB7OPa:"ui-9f619",kmuXW:"ui-2lah0s",kaIpWk:"ui-1i4c3av",kMeerF:"ui-1k57tk5 ui-x510wv",k3XXqK:"ui-1t137rt ui-15veape",kjBf7l:"ui-1uczgqu ui-1whe2fk",kInvED:"ui-1wfwxd8 ui-1edn9mt",kWkggS:"ui-59yu97 ui-fewc5l ui-dc3jbj",k1ekBW:"ui-15406qy",kIyJzY:"ui-7pq1vu",kAMwcw:"ui-6ekqhr",$$css:!0},sm:{kzqmXN:"ui-23j0i4",kZKoxP:"ui-1vatr1o","--ui-switch-thumb-travel":"ui-sc32xf",$$css:!0},regular:{kzqmXN:"ui-1849jeq",kZKoxP:"ui-mix8c7","--ui-switch-thumb-travel":"ui-9pb0k7",kWkggS:"ui-3dhcaw ui-fewc5l ui-dc3jbj",kGVxlE:"ui-1gnnqk1 ui-10yfhlr",$$css:!0},md:{kzqmXN:"ui-1td3qas",kZKoxP:"ui-1a6rlst","--ui-switch-thumb-travel":"ui-9pb0k7",$$css:!0},lg:{kzqmXN:"ui-1guw455",kZKoxP:"ui-1e94bgo","--ui-switch-thumb-travel":"ui-1c3f5sz",$$css:!0}},j9={primary:{"--ui-switch-active-bg":"ui-i0s8m6",$$css:!0},green:{"--ui-switch-active-bg":"ui-1g3p0vo",$$css:!0},neutral:{"--ui-switch-active-bg":"ui-742exl",$$css:!0},monochrome:{"--ui-switch-active-bg":"ui-1iuey4n","--ui-switch-thumb-bg":"ui-1bbrhsv",$$css:!0}};function z9({interactive:e,size:t,variant:n}){const r=g.jsx("span",{className:"ui-1lliihq ui-h8yej3 ui-5yr21d ui-1i4c3av ui-hwtojv ui-10mbuw1 ui-10z6xd1 ui-19ule2h ui-1g0ag68 ui-3oybdh ui-27jcm2 ui-11xpdln ui-622pbu ui-99dd5c ui-sagj69 ui-6tor67"}),s=e?g.jsx(D9,{className:"ui-10l6tqk ui-np7j22 ui-it89om ui-121ilyj ui-1plog1 ui-bryuvx ui-kkvxwt ui-11xpdln ui-1bqoo3p ui-sagj69 ui-1tkypeg",children:r}):g.jsx("span",{className:"ui-10l6tqk ui-np7j22 ui-it89om ui-121ilyj ui-1plog1 ui-bryuvx ui-kkvxwt ui-11xpdln ui-1bqoo3p ui-sagj69 ui-1tkypeg",children:r});return g.jsx("span",{"aria-hidden":"true",...zt(pT.root,pT[t],j9[n]),children:s})}function P9({checked:e,disabled:t,size:n=L9,variant:r="green"}){return g.jsx("span",{"aria-hidden":"true","data-component":"switch","data-size":n,"data-variant":r,"data-checked":e||void 0,"data-disabled":t||void 0,className:"ui-3nfvp2 ui-6s0dn4 ui-l56j7k ui-1c4vz4f ui-2lah0s ui-dl72j9 ui-xymvpz ui-47corl ui--default-marker",children:g.jsx(z9,{interactive:!1,size:n,variant:r})})}const wn={base:{kMv6JI:"ui-1acoasx",keoZOQ:"ui-dj266r",k71WvV:"ui-14z9mp",k1K539:"ui-at24cr",keTefX:"ui-1lziwak",kLKAdn:"ui-exx8yu",kwRFfy:"ui-yri2b",kGO01o:"ui-18d9i69",kZCmMZ:"ui-1c1uobl",$$css:!0},sizeInherit:{kGuDYH:"ui-1qlqyl8",kLWn49:"ui-15bjb6t",kb6lSQ:"ui-4gjf66",$$css:!0},variantCode:{kMv6JI:"ui-ul7cyv",$$css:!0},weightRegular:{k63SB2:"ui-20ajya",$$css:!0},weightMedium:{k63SB2:"ui-1yl5bsf",$$css:!0},weightSemibold:{k63SB2:"ui-13ebx5f",$$css:!0},weightBold:{k63SB2:"ui-1v8v64w",$$css:!0},colorPrimary:{kMwMTN:"ui-1wd3ewq",$$css:!0},colorSecondary:{kMwMTN:"ui-19aaqeu",$$css:!0},colorTertiary:{kMwMTN:"ui-4b2ntj",$$css:!0},colorQuaternary:{kMwMTN:"ui-1e4uaio",$$css:!0},colorActive:{kMwMTN:"ui-7qsbfx",$$css:!0},colorFocused:{kMwMTN:"ui-zlszhr",$$css:!0},colorRed:{kMwMTN:"ui-1jh5svw",$$css:!0},colorRedSecondary:{kMwMTN:"ui-o7cye4",$$css:!0},colorYellow:{kMwMTN:"ui-1izesbo",$$css:!0},colorYellowSecondary:{kMwMTN:"ui-14nh9a",$$css:!0},colorGreen:{kMwMTN:"ui-1w5rjie",$$css:!0},colorGreenSecondary:{kMwMTN:"ui-dki84f",$$css:!0},colorMagenta:{kMwMTN:"ui-xjecij",$$css:!0},colorMagentaSecondary:{kMwMTN:"ui-29qggb",$$css:!0},colorCyan:{kMwMTN:"ui-1d0l12",$$css:!0},colorCyanSecondary:{kMwMTN:"ui-l34bp",$$css:!0},colorOrange:{kMwMTN:"ui-11pqmr",$$css:!0},colorOrangeSecondary:{kMwMTN:"ui-11nfuof",$$css:!0},truncateStart:{k1xSpc:"ui-1lliihq",kzqmXN:"ui-h8yej3",k7Eaqz:"ui-euugli",kXHlph:"ui-6ikm8r",kORKVm:"ui-10wlt62",kg5iWk:"ui-lyipyv",k8aIck:"ui-jlip5",kqG3fB:"ui-kyw5k8",ksoyAI:"ui-zyj77d",k9WMMc:"ui-dpxx8g",$$css:!0}},$9={xs:jA.root,sm:Ms.root,md:Cs.root,lg:zA.root,xl:p6.root,"2xl":h6.root,"3xl":m6.root,inherit:wn.sizeInherit},B9={regular:wn.weightRegular,medium:wn.weightMedium,semibold:wn.weightSemibold,bold:wn.weightBold},F9={primary:wn.colorPrimary,secondary:wn.colorSecondary,tertiary:wn.colorTertiary,quaternary:wn.colorQuaternary,active:wn.colorActive,focused:wn.colorFocused,red:wn.colorRed,"red-secondary":wn.colorRedSecondary,yellow:wn.colorYellow,"yellow-secondary":wn.colorYellowSecondary,green:wn.colorGreen,"green-secondary":wn.colorGreenSecondary,magenta:wn.colorMagenta,"magenta-secondary":wn.colorMagentaSecondary,cyan:wn.colorCyan,"cyan-secondary":wn.colorCyanSecondary,orange:wn.colorOrange,"orange-secondary":wn.colorOrangeSecondary};function U9({color:e,size:t,truncate:n,variant:r,weight:s}){return[wn.base,Mh.root,$9[t],B9[s],r==="code"?wn.variantCode:null,e?F9[e]:null,n==="start"?wn.truncateStart:null,n==="end"?Hl.root:null]}function Qp({as:e="span",variant:t="default",size:n="md",weight:r="regular",color:s,truncate:a,numeric:l,children:c,rootStyle:f,className:d,style:h,ref:m,...b}){const y=a===!0?"end":a===!1?void 0:a??void 0,{className:k,style:S}=zt(U9({color:s,size:n,truncate:y,variant:t,weight:r}),f);return g.jsx(e,{ref:m,className:sn("ui-text",k,d),style:{...S,...h},"data-variant":t,"data-size":n,"data-weight":r,"data-color":s,"data-truncate":y,"data-numeric":l||void 0,...b,children:y==="start"?g.jsxs(g.Fragment,{children:["⁦",c,"⁩"]}):c})}const gO={text:{kzqmXN:"ui-h8yej3",kHjlTd:"ui-j0a0fe",kN2L0X:"ui-1w2vvpw",$$css:!0}};function bO({children:e}){return g.jsx("div",{"data-component":"empty-state-root",className:"ui-98rzlu ui-5yr21d ui-2lwn1j ui-euugli ui-78zum5 ui-dt5ytf ui-6s0dn4 ui-l56j7k ui-1rea2x4 ui-j2grvh ui-mw8u6f ui-9f619 ui-2b8uid ui-1oot3zn",children:e})}function yO({children:e,variant:t="default"}){return g.jsx("div",{"data-component":"empty-state-icon","data-variant":t,...{0:{className:"ui-1pwdyn5 ui-1vatr1o ui-2lah0s ui-78zum5 ui-6s0dn4 ui-l56j7k ui-1lbmi28"},1:{className:"ui-2lah0s ui-78zum5 ui-6s0dn4 ui-l56j7k ui-1lbmi28 ui-1niwmkg ui-f2gx5w ui-9f619 ui-mkeg23 ui-1y0btm7 ui-qz0629 ui-1m7fhj7"}}[(t==="tab")<<0],children:e})}function vO({children:e}){return g.jsx("div",{"data-component":"empty-state-header",className:"ui-h8yej3 ui-euugli ui-78zum5 ui-dt5ytf ui-6s0dn4 ui-137clkk",children:e})}function xO({children:e}){return g.jsx(Qp,{as:"p",color:"primary","data-component":"empty-state-title",rootStyle:gO.text,size:"md",weight:"medium",children:e})}function kO({children:e}){return g.jsx(Qp,{as:"p",color:"secondary","data-component":"empty-state-description",rootStyle:gO.text,size:"md",weight:"regular",children:e})}function SO({children:e}){return g.jsx("div",{"data-component":"empty-state-content",className:"ui-78zum5 ui-6s0dn4 ui-l56j7k ui-1a02dak ui-ehausa",children:e})}function q9({body:e,cta:t,icon:n,iconVariant:r="default",title:s}){const a=typeof n=="string"?n:void 0,l=a!==void 0?g.jsx(qt,{color:"tertiary",name:a,size:"lg"}):n;return g.jsxs(bO,{children:[l===void 0?null:g.jsx(yO,{variant:r,children:l}),g.jsxs(vO,{children:[s===void 0?null:g.jsx(xO,{children:s}),g.jsx(kO,{children:e})]}),t===void 0?null:g.jsx(SO,{children:g.jsx(vn,{disabled:t.disabled,onClick:t.onClick,size:"md",variant:"outline",children:t.label})})]})}const Ri=Object.assign(q9,{Root:bO,Icon:yO,Header:vO,Title:xO,Description:kO,Content:SO});function rf({className:e,variant:t="default",size:n="lg",ref:r,disabled:s,startIcon:a,endIcon:l,inputGroupRootStyle:c,...f}){return g.jsxs(Hd.Root,{className:e,rootStyle:c,variant:t,size:n,disabled:s,children:[a!=null&&g.jsx(Hd.Icon,{name:a}),g.jsx(Hd.Input,{ref:r,...f}),l!=null&&g.jsx(Hd.Icon,{name:l})]})}const xs=class xs{constructor(){this.data=null,this.listeners=new Set}static getInstance(){return xs.instance||(xs.instance=new xs),xs.instance}static subscribe(t){return xs.getInstance().subscribeToChanges(t)}static isDragActive(){return xs.getInstance().hasData()}notifyListeners(){for(const t of this.listeners)t()}subscribeToChanges(t){return this.listeners.add(t),()=>{this.listeners.delete(t)}}setData(t){this.data!==t&&(this.data=t,this.notifyListeners())}getData(){return this.data}getValidatedData(t){if(!this.data)return null;for(const n of t)if(this.data instanceof n)return n.schema.safeParse(this.data.payload).success?this.data:null;return null}hasAnyClass(t){return this.data?t.some(n=>this.data instanceof n):!1}clearData(){this.data!==null&&(this.data=null,this.notifyListeners())}hasData(){return this.data!==null}};xs.instance=null;let gi=xs;const Zb={fontFamily:{sans:"var(--cursor-font-family, var(--vscode-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif))",mono:"var(--cursor-font-family-mono, var(--monaco-monospace-font, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace))"},scrollbar:{verticalSize:"var(--vscode-scrollbar-vertical-size, 14px)",horizontalSize:"var(--vscode-scrollbar-horizontal-size, 12px)",thumbBackground:"var(--vscode-scrollbarSlider-background)",thumbHoverBackground:"var(--vscode-scrollbarSlider-hoverBackground)",thumbActiveBackground:"var(--vscode-scrollbarSlider-activeBackground)"},syntax:{foreground:"oklch(0.878 0.01 286.202)",background:"oklch(0.209 0 0)",keyword:"oklch(0.811 0.079 191.639)",string:"oklch(0.769 0.132 329.919)",function:"oklch(0.805 0.097 58.138)",number:"oklch(0.849 0.086 80.222)",comment:"oklch(0.919 0 0 / 0.369)",constant:"oklch(0.854 0.131 83.385)",parameter:"oklch(0.878 0.01 286.202)",punctuation:"oklch(0.878 0.01 286.202)",link:"oklch(0.799 0.106 249.274)",stringExpression:"oklch(0.769 0.132 329.919)"}},H9={1:1,2:2},Zy={instant:50,fast:100,normal:150,slow:200,slower:300},wO={default:"ease",in:"ease-in",out:"ease-out",inOut:"ease-in-out",inStrong:"cubic-bezier(0.895, 0.03, 0.685, 0.22)",outStrong:"cubic-bezier(0.165, 0.84, 0.44, 1)",outCubic:"cubic-bezier(0.215, 0.61, 0.355, 1)",outQuint:"cubic-bezier(0.16, 1, 0.3, 1)",inOutStrong:"cubic-bezier(0.77, 0, 0.175, 1)"},V9={"ne-0.25":-1,"ne-0.5":-2,"ne-0.75":-3,"ne-1":-4,"ne-1.25":-5,"ne-1.5":-6,"ne-1.75":-7,"ne-2":-8,"ne-2.25":-9,"ne-2.5":-10,"ne-2.75":-11,"ne-3":-12,"ne-3.25":-13,"ne-3.5":-14,"ne-3.75":-15,"ne-4":-16,"ne-4.25":-17,"ne-4.5":-18,"ne-4.75":-19,"ne-5":-20,"0.25":1,"0.5":2,"0.75":3,1:4,"1.25":5,"1.5":6,"1.75":7,2:8,"2.25":9,"2.5":10,"2.75":11,3:12,"3.25":13,"3.5":14,"3.75":15,4:16,"4.25":17,"4.5":18,"4.75":19,5:20,"5.5":22,6:24,"6.5":26,7:28,"7.5":30,8:32,"8.5":34,9:36,"9.5":38,10:40,11:44,12:48,13:52,14:56,15:60,16:64,17:68,18:72,19:76,20:80},G9={none:0,xs:2,sm:4,base:6,lg:8,xl:12,"2xl":14,"3xl":16,"4xl":18,full:9999},W9={xs:20,sm:24,base:28,lg:32},K9={xs:11,sm:12,base:13,lg:14},Y9={xs:14,sm:16,base:18,lg:22},X9={xs:.07,sm:0,base:-.08,lg:-.15,xl:.08,"2xl":-.46,"3xl":-.26},Z9=.98,Q9=2,hT={open:Zy.fast,close:Zy.fast},J9=wO.outQuint;function EO(e){const[t,n]=e.split("-");switch(t){case"top":case"right":case"bottom":case"left":return{side:t,alignment:n==="start"||n==="end"?n:void 0};default:throw new Error(`Unsupported floating placement: ${e}`)}}function eF(e){const{side:t,alignment:n}=EO(e);switch(t){case"top":return`${mT(n)} bottom`;case"right":return`left ${gT(n)}`;case"bottom":return`${mT(n)} top`;case"left":return`right ${gT(n)}`}}function tF(e,t={}){const{side:n}=EO(e),r=t.offset??Q9,s=t.scale??Z9;switch(n){case"top":return`translate3d(0, ${r}px, 0) scale(${s})`;case"right":return`translate3d(-${r}px, 0, 0) scale(${s})`;case"bottom":return`translate3d(0, -${r}px, 0) scale(${s})`;case"left":return`translate3d(${r}px, 0, 0) scale(${s})`}}function nF(e,t){return{opacity:0,transform:tF(e,t)}}function rF(e){return{transformOrigin:eF(e),transitionTimingFunction:J9}}function iF({closeDuration:e=hT.close,transform:t}={}){return{duration:{open:hT.open,close:e},initial:({placement:n})=>nF(n,t),common:({placement:n})=>rF(n)}}function mT(e){switch(e){case"start":return"left";case"end":return"right";case void 0:return"center"}}function gT(e){switch(e){case"start":return"top";case"end":return"bottom";case void 0:return"center"}}const Vl="data-ui-menu-item-region",TO=v.createContext("body");function Es({value:e,children:t}){return g.jsx(TO.Provider,{value:e,children:t})}function sf(){return v.useContext(TO)}const sF='[role="menuitem"]',bT=["pointermove","mousemove"];function RO(e){if(e.key==="ArrowDown"||e.key==="ArrowUp"||e.key==="ArrowLeft"||e.key==="ArrowRight"||e.key==="Home"||e.key==="End")return!0;if(!e.ctrlKey||e.metaKey)return!1;const t=e.key.toLowerCase();return t==="n"||t==="p"||t==="j"||t==="k"}function CO(e,t){if(!(e===void 0||t===null||t<0))return`${e}-item-${t}`}function of(e,t){const n=CO(e,t);return n===void 0?{}:{id:n}}function _O(e){const{"aria-activedescendant":t,...n}=e;return n}function oF(e,t){if(t==null)return null;const n=e.current[t];return n instanceof HTMLElement?n:null}function aF(e,t){const n=e.current;for(let r=0;r<n.length;r++)if(n[r]?.getAttribute(Vl)===t)return r;return null}function AO(e,t,n){queueMicrotask(()=>{const r=aF(e,t);n(r??null)})}function NO(e,t){if(!(e instanceof Element))return null;const n=e.closest(sF);if(!n)return null;const r=t.current.indexOf(n);return r>=0?r:null}function lF(e,t){if(!e)return()=>{};for(const n of bT)e.addEventListener(n,t,{passive:!0});return()=>{for(const n of bT)e.removeEventListener(n,t)}}function uF({event:e,direction:t,activeIndex:n,listRef:r,restoreFocus:s}){const a=oF(r,n);if(!a)return!1;e.preventDefault(),e.stopPropagation();const l=document.activeElement===e.currentTarget;return a.focus(),a.dispatchEvent(new KeyboardEvent("keydown",{key:t,bubbles:!0,cancelable:!0})),l&&document.activeElement===a&&s?.(),!0}function OO(e,t){return v.useCallback(n=>{const r=e(n);if(t)return r;const{onPointerLeave:s,...a}=r;return a},[e,t])}function IO(){const[e,t]=v.useState(!0),n=v.useCallback(()=>{t(!1)},[]),r=v.useCallback(()=>{t(!0)},[]),s=v.useCallback(()=>{t(!0)},[]);return{focusItemOnHoverEnabled:e,markKeyboardNavigation:n,markPointerNavigation:r,resetFocusItemOnHover:s}}const cF=360,MO="--ui-menu-available-width",Dx="--ui-menu-available-height",fF=new Set(["none","auto","initial","inherit","unset","revert","revert-layer","min-content","max-content","fit-content","stretch"]);function DO(e){const t=`var(${Dx}, 100vh)`;return e==null||dF(e)?t:`min(${dl(e)}, ${t})`}function dF(e){return typeof e=="string"&&fF.has(e.trim().toLowerCase())}const pF="320px";function dl(e){return typeof e=="number"?`${e}px`:e}function Qb(e){return`min(${e}, var(${MO}, 100vw))`}function Lx(e){const{width:t,minWidth:n,maxWidth:r,clampToAvailableWidth:s=!1}=e,l=t===void 0&&(n!==void 0||r!==void 0)?"max-content":dl(t??"200px");return s?{width:l==="max-content"?l:Qb(l),...n!=null&&{minWidth:Qb(dl(n))},maxWidth:Qb(r!=null?dl(r):pF)}:{width:l,...n!=null&&{minWidth:dl(n)},...r!=null&&{maxWidth:dl(r)}}}const hF=50;function jx({isOpen:e,isPositioned:t}){return e&&!t?{opacity:0}:void 0}function mF(e,t){v.useLayoutEffect(()=>{if(!e)return;const n=t.current;if(!(n instanceof HTMLElement))return;const r=n.closest('[role="menu"]');if(r!=null)return r.style.pointerEvents="none",n.style.pointerEvents="auto",()=>{r.style.pointerEvents="",n.style.pointerEvents=""}},[e,t])}function gF(){return{name:"bottomAnchor",fn({y:e,placement:t,rects:n,elements:r}){if(!t.startsWith("top"))return{};const s=r.floating.offsetParent,a=s===document.body&&window.getComputedStyle(s).position==="static";return{data:{bottom:(!s||s===document.documentElement||a?document.documentElement.clientHeight||window.innerHeight:s.clientHeight)-e-n.floating.height}}}}}function Yh(e=200){const t=v.useRef(0);return v.useEffect(()=>{const n=()=>{t.current=Date.now()+e};return window.addEventListener("focus",n),()=>{window.removeEventListener("focus",n)}},[e]),v.useCallback(n=>{const r=n.target,s=r instanceof Node?r.ownerDocument:document,a=Date.now(),l=s?.hasFocus()??document.hasFocus(),c=a>=t.current;return l&&c},[])}const bF={open:0,close:0},yF={opacity:1,transform:"none"},zx=v.createContext(null);function Yi(e){const t=v.useContext(zx);if(!t)throw new Error(`${e} must be used within LegacyMenu`);return t}function LO(){return Yi("LegacyMenu.useContext")}function vF({children:e,open:t,defaultOpen:n=!1,onOpenChange:r,activeIndex:s,onActiveIndexChange:a,placement:l="bottom-start",offset:c=4,flip:f=!0,closeOnSelect:d,instantClose:h=!1,instantTransitions:m=!1,returnFocusOnSelect:b=!0,returnFocus:y,focusItemOnOpen:k=!1,virtualFocus:S=!1,shouldKeepOpenDuringDrag:R=!1,lockPositionWhileOpen:T=!1,dismissOnReferenceScroll:E=!1,enableClick:C=!0,strategy:_,shouldDismissOutsidePress:D}){const A=Cx(),[M,B]=Dl(t,n,r,"LegacyMenu.Root (open)"),[P,N]=v.useState(""),W=v.useRef(null),[$,F]=v.useState(!1),[z,U]=v.useState(!1),[H,K]=Dl(s,null,a,"LegacyMenu.Root (activeIndex)"),{focusItemOnHoverEnabled:q,markKeyboardNavigation:Y,markPointerNavigation:O,resetFocusItemOnHover:j}=IO(),V=v.useRef([]),L=v.useRef([]),X=v.useRef(null),se=v.useCallback(Pe=>{B(Pe),Pe?(N(""),X.current=null):K(null),j()},[j,B,K]),ne=v.useRef(!1);v.useLayoutEffect(()=>{const Pe=ne.current;ne.current=M,!Pe&&M&&N(""),Pe!==M&&j()},[M,j]);const{refs:oe,floatingStyles:le,middlewareData:ce,context:Ee,update:be}=Ix({nodeId:A,open:M,onOpenChange:se,placement:l,strategy:_,middleware:[ix(c),...f?[ox()]:[],sx(),ax({padding:8,apply({availableHeight:Pe,elements:Ye}){Ye.floating.style.setProperty(Dx,`${Math.max(0,Math.floor(Pe))}px`)}}),gF()],whileElementsMounted:T?void 0:Lp,transform:!1}),ue=NN(Ee,{enabled:z,delay:{open:75},handleClose:UN({blockPointerEvents:!0,requireIntent:!1})}),ge=DN(Ee,{enabled:C&&!z}),Se=Yh(),Ae=v.useCallback(Pe=>D!==void 0&&!D(Pe)||R&&gi.getInstance().hasData()?!1:Se(Pe),[D,R,Se]),ke=LN(Ee,{ancestorScroll:E,outsidePressEvent:"click",outsidePress:Ae}),xe=PN(Ee,{role:"menu"}),Re=zN(Ee,{listRef:V,activeIndex:H,onNavigate:K,loop:!1,virtual:S||$,focusItemOnOpen:k,focusItemOnHover:q}),Me=BN(Ee,{listRef:L,activeIndex:H,onMatch:$?void 0:K,enabled:!$}),{getReferenceProps:ze,getFloatingProps:Fe,getItemProps:ye}=jN([ue,ge,ke,xe,Re,Me]),_e=OO(ye,M),ee=v.useCallback(Pe=>({..._O(ze(Pe)),ref:oe.setReference,"aria-haspopup":"menu","aria-expanded":M}),[ze,oe.setReference,M]),fe=m?{duration:bF,initial:yF}:iF(h?{closeDuration:0}:void 0),{isMounted:Q,styles:re}=$N(Ee,fe),we=v.useMemo(()=>({isOpen:M,isMounted:Q,setIsOpen:B,activeIndex:H,setActiveIndex:K,markKeyboardNavigation:Y,markPointerNavigation:O,virtualFocus:S,searchValue:P,setSearchValue:N,hasSearchInput:$,setHasSearchInput:F,enableHover:z,setHasHoverTrigger:U,closeOnSelect:d,returnFocusOnSelect:b,returnFocus:y,nodeId:A,activeDescendantIdPrefix:$?A:void 0,listRef:V,labelsRef:L,searchInputRef:W,refs:oe,floatingStyles:le,middlewareData:ce,transitionStyles:re,context:Ee,updateFloating:be,getReferenceProps:ze,getFloatingProps:Fe,getItemProps:_e,getTriggerProps:ee,dismissCauseRef:X,shouldAllowPointerInteraction:Ae}),[M,Q,B,H,K,Y,O,S,P,$,z,d,b,y,A,oe,le,ce,re,Ee,be,ze,Fe,_e,ee,Ae]);return g.jsx(_x,{id:A,children:g.jsx(zx.Provider,{value:we,children:e})})}function Xu(e,t){return n=>{e?.(n),n.defaultPrevented||t(n)}}function Gl(e,t){switch(e){case"ArrowLeft":return t==="rtl"?"end":"start";case"ArrowRight":return t==="rtl"?"start":"end";default:return null}}const xF=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),kF={_zod:{output:{}},safeParse:e=>xF(e)?{success:!0}:{success:!1,error:new TypeError("drag payload must be an object")}};function jO(e,t=()=>kF){var a;let n=null;const r=()=>(n===null&&(n=t()),n);return a=class{constructor(c){this.type=e,this.payload=c}static get schema(){return r()}},a.type=e,a}const SF=v.createContext(null);function wF(){return v.useContext(SF)}const EF=v.createContext("copy-with-plain-text");function TF(){return v.useContext(EF)}const RF="application/x-cursor-draggable",Vd=_F("ui-i9pz9s"),CF="data-no-drag";let ta=!1,yT=!1,vT=null;function xT(){return vT??=Object.assign(new Image(1,1),{src:"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}),vT}function _F(e){return e?.split(/\s+/).filter(Boolean)??[]}function Gd(e,t,n){for(const r of t)e.classList.toggle(r,n)}function AF(){if(yT||typeof document>"u")return;yT=!0,document.addEventListener("pointerdown",t=>{if(t.button!==0||!(t.target instanceof Element)){ta=!1;return}ta=t.target.closest(`[${CF}]`)!==null},{capture:!0});const e=()=>{ta=!1};document.addEventListener("pointerup",e,{capture:!0}),document.addEventListener("pointercancel",e,{capture:!0})}function NF({id:e,data:t,disabled:n=!1,dragImageOffset:r,hideNativeDragImage:s=!1,onDragStart:a,onDragEnd:l}){const c=wF(),f=TF(),d=v.useRef(null),h=v.useRef({onDragStart:a,onDragEnd:l});h.current={onDragStart:a,onDragEnd:l};const m=v.useRef(t);m.current=t;const b=v.useRef(r);b.current=r;const y=v.useRef(s);y.current=s,v.useEffect(()=>{s&&xT()},[s]);const k=v.useRef(c);k.current=c;const S=c?.activeDragId===e,R=v.useRef(S);return R.current=S,v.useEffect(()=>{const E=d.current;if(E)return Gd(E,Vd,!n&&S),()=>{Gd(E,Vd,!1)}},[n,S]),v.useEffect(()=>{const E=d.current;if(!E)return;if(n){E.removeAttribute("aria-grabbed");return}const C=S?"true":"false";E.getAttribute("aria-grabbed")!==C&&E.setAttribute("aria-grabbed",C)},[n,S]),{ref:v.useCallback(E=>{if(d.current=E,!E)return;Gd(E,Vd,!n&&R.current);const C=!n;if(E.draggable!==C&&(E.draggable=C),n)return;AF();const _=gi.getInstance(),D=M=>{if(ta){ta=!1,M.preventDefault(),M.stopPropagation();return}const B=m.current;_.setData(B);const P=E.ownerDocument,N=()=>{P.removeEventListener("dragend",N,!0),P.removeEventListener("drop",N,!0),P.removeEventListener("mousemove",N,!0),setTimeout(()=>{_.getData()===B&&(_.clearData(),ta=!1,k.current?.setDragging(null,null))},0)};if(P.addEventListener("dragend",N,!0),P.addEventListener("drop",N,!0),P.addEventListener("mousemove",N,!0),M.dataTransfer){const W=f==="copy-with-plain-text";M.dataTransfer.effectAllowed=W?"copyMove":"move",M.dataTransfer.setData(RF,B.type),W&&M.dataTransfer.setData("text/plain",B.type);const $=b.current;y.current?M.dataTransfer.setDragImage(xT(),0,0):$&&M.dataTransfer.setDragImage(E,$.x,$.y)}k.current?.setDragging(e,B,{x:M.clientX,y:M.clientY}),h.current.onDragStart?.(M)},A=M=>{_.clearData(),ta=!1,k.current?.setDragging(null,null),h.current.onDragEnd?.(M)};return E.addEventListener("dragstart",D),E.addEventListener("dragend",A),()=>{E.removeEventListener("dragstart",D),E.removeEventListener("dragend",A),Gd(E,Vd,!1)}},[e,n,f]),isDragging:S}}const Sp={base:{"--ui-menu-row-padding-block":"ui-kd6fbz","--ui-menu-row-padding-inline":"ui-1ucplye","--ui-menu-row-gap":"ui-1fi38xd","--ui-menu-row-border-radius":"ui-s7jddj","--ui-menu-item-left-width":"ui-1bm229x","--ui-menu-item-left-height":"ui-1eaezr9","--ui-menu-search-row-padding-top":"ui-so2ig8","--ui-menu-section-title-padding-inline":"ui-e020nh",kMeerF:"ui-1k57tk5",k3XXqK:"ui-1t137rt",kInvED:"ui-1wfwxd8",kjBf7l:"ui-1uczgqu",kY2c9j:"ui-fc2p8",kVAEAm:"ui-1n2onr6",kGVxlE:"ui-1gnnqk1",k7Eaqz:"ui-1i9suas",ks0D6T:"ui-1va8c73",kfSwDN:"ui-87ps6o",kY4cRS:"ui-lvsv26",k6sLGO:"ui-1q1rmc8",k3aq6I:"ui-17dzmu4",kgyCeQ:"ui-lp1x4z",kdrBUz:"ui-7iibnf",kHBbk8:"ui-c8icb0",ktR8K2:"ui-awy1a7",kgeoSG:"ui-1cpjm7i",kEoFBp:"ui-1hmns74",kFcpXp:"ui-xx281p",kPB484:"ui-xyica1",ktNmms:"ui-wfqmlb",km8f2m:"ui-kk1bqk",k5JduY:"ui-1s928wv",kwXMNM:"ui-1j6awrg",kv0HGH:"ui-arstr8",kDVEDD:"ui-itxdhh",kUfP38:"ui-1k48kgn",kbMawA:"ui-1o7vem3",kloYau:"ui-2q1x1w",$$css:!0},sizeMd:{"--ui-menu-row-padding-block":"ui-1jjxvf6","--ui-menu-row-padding-inline":"ui-18k90n9","--ui-menu-row-gap":"ui-vzyzmz","--ui-menu-item-left-width":"ui-eurstk","--ui-menu-item-left-height":"ui-1eaezr9","--ui-menu-search-row-padding-top":"ui-14atyw8","--ui-menu-section-title-padding-inline":"ui-mhevzc",kaIpWk:"ui-1pkpdue",$$css:!0},hasAttachment:{kWkggS:"ui-jbqb8w",k1xSpc:"ui-78zum5",kXwgrk:"ui-dt5ytf",khm7nJ:"ui-3r2rup",kP1sEF:"ui-15ozc13",kc3QkE:"ui-1h1zc6f",$$css:!0},dropIndicator:{kMeerF:"ui-1qgsegg",k3XXqK:"ui-aatb59",kjBf7l:"ui-pkz39j",kInvED:"ui-1jn6s22",k5JduY:"ui-1s928wv",kwXMNM:"ui-1j6awrg",kc1e00:"ui-cfinr5",kH8aOt:"ui-14idyls",k3foIR:"ui-17mrvg7",k4zj60:"ui-1d1o5dh",ks3ayO:"ui-1ssvodr",kUfP38:"ui-gad8h8",kloYau:"ui-2q1x1w",kDVEDD:"ui-itxdhh",$$css:!0}},OF={base:{kVAEAm:"ui-ixxii4",kpwlN0:"ui-10a8y8t",kY2c9j:"ui-cfsmg2",kLKAdn:"ui-exx8yu",kwRFfy:"ui-yri2b",kGO01o:"ui-18d9i69",kZCmMZ:"ui-1c1uobl",keoZOQ:"ui-dj266r",k71WvV:"ui-14z9mp",k1K539:"ui-at24cr",keTefX:"ui-1lziwak",kEafiO:"ui-972fbf",kPef9Z:"ui-1ejq31n",kLZC3w:"ui-1b4hy2t",ke9TFa:"ui-10w94by",k8ry5P:"ui-18oe1m7",kBCPoo:"ui-1273586",kt9PQ7:"ui-1qhh985",kfdmCh:"ui-1sy0etr",kL6WhQ:"ui-1tnzt7h",k2ei4v:"ui-14e42zd",kVhnKS:"ui-stzfhl",kGJrpR:"ui-1mi4oqr",kysU6D:"ui-jyslct",kkrTdU:"ui-t0e3qv",kWkggS:"ui-jbqb8w",kY4cRS:"ui-lvsv26",$$css:!0}},vi={dropIndicatorSlot:{k1xSpc:"ui-jp7ctv",kfzvcC:"ui-47corl",$$css:!0},inner:{kLKAdn:"ui-12ryuzz",kwRFfy:"ui-opxd5p",kGO01o:"ui-ftabeb",kZCmMZ:"ui-1bpcb8s",k2VNRW:"ui-1aj3mmm",$$css:!0},layout:{k1xSpc:"ui-78zum5",kXwgrk:"ui-dt5ytf",kAzted:"ui-2lwn1j",kXHlph:"ui-6ikm8r",kORKVm:"ui-10wlt62",$$css:!0},bodyScroll:{kzQI83:"ui-1iyjqo2",kmuXW:"ui-s83m0k",kCS8Yb:"ui-dl72j9",kAzted:"ui-2lwn1j",$$css:!0},header:{kLKAdn:"ui-f6zju3",kwRFfy:"ui-1tlft3r",kGO01o:"ui-cnij5n",kZCmMZ:"ui-tw3t59",kt9PQ7:"ui-so031l",kfdmCh:"ui-1q0q8m5",kL6WhQ:"ui-17fyfba",$$css:!0},footer:{kLKAdn:"ui-f6zju3",kwRFfy:"ui-1tlft3r",kGO01o:"ui-cnij5n",kZCmMZ:"ui-tw3t59",kEafiO:"ui-178xt8z",kPef9Z:"ui-13fuv20",kLZC3w:"ui-1aeic0j",$$css:!0},layoutCard:{kVAEAm:"ui-1n2onr6",kWkggS:"ui-f1vpex",kaIpWk:"ui-1pjcqnp",kGVxlE:"ui-1x78n9t",$$css:!0},attachment:{kVAEAm:"ui-1n2onr6",kmuXW:"ui-2lah0s",kXHlph:"ui-6ikm8r",kORKVm:"ui-10wlt62",kWkggS:"ui-f1vpex",kaIpWk:"ui-1pjcqnp",kGVxlE:"ui-1x78n9t",$$css:!0},list:{kH6xsr:"ui-3ct3a4",keoZOQ:"ui-dj266r",k71WvV:"ui-14z9mp",k1K539:"ui-at24cr",keTefX:"ui-1lziwak",kLKAdn:"ui-exx8yu",kwRFfy:"ui-yri2b",kGO01o:"ui-18d9i69",kZCmMZ:"ui-1c1uobl",k1xSpc:"ui-78zum5",kXwgrk:"ui-dt5ytf",kOIVth:"ui-1374kml",$$css:!0},virtualizedList:{kOIVth:"ui-xhr3t",$$css:!0},virtualizedRow:{k1xSpc:"ui-78zum5",kXwgrk:"ui-dt5ytf",kGNEyG:"ui-1qjc9v5",kB7OPa:"ui-9f619",$$css:!0},virtualizedScroller:{kzqmXN:"ui-h8yej3",kXHlph:"ui-6ikm8r",k5wCbM:"ui-1rohswg",kAnDOJ:"ui-6ehuon",kOuLrU:"ui-fk6m8",$$css:!0}},$i={base:{k1xSpc:"ui-78zum5",kXwgrk:"ui-1q0g3np",kGNEyG:"ui-1cy8zhl",kB7OPa:"ui-9f619",kAzted:"ui-bpgt9h",kOIVth:"ui-1kk7d6x",kMeerF:"ui-1k57tk5",k3XXqK:"ui-1t137rt",kInvED:"ui-1wfwxd8",kjBf7l:"ui-1uczgqu",kLKAdn:"ui-1xgckd",kwRFfy:"ui-yupq46",kGO01o:"ui-1mv37q2",kZCmMZ:"ui-1xc7y5k",kaIpWk:"ui-1w5zb4f",kkrTdU:"ui-1ypdohk",kWkggS:"ui-jbqb8w",$$css:!0},focused:{kWkggS:"ui-flfp0o",$$css:!0},submenuHover:{kWkggS:"ui-qjnua1",$$css:!0},selected:{kWkggS:"ui-i07v4r",$$css:!0},disabled:{kMwMTN:"ui-4b2ntj",kkrTdU:"ui-t0e3qv",$$css:!0},disabledFocused:{kWkggS:"ui-jbqb8w",$$css:!0},muted:{kMwMTN:"ui-1e4uaio",$$css:!0},mutedFocused:{kMwMTN:"ui-19aaqeu",$$css:!0},indent:{kZCmMZ:"ui-bp56qb",$$css:!0},expanded:{kWkggS:"ui-flfp0o",$$css:!0}},Ki={left:{kmuXW:"ui-2lah0s",kMwMTN:"ui-r88yfa",k1xSpc:"ui-3nfvp2",kGNEyG:"ui-6s0dn4",kjj79g:"ui-l56j7k",kzqmXN:"ui-1kvrb00",kZKoxP:"ui-g2ss61",$$css:!0},leftWide:{kzqmXN:"ui-1td3qas",$$css:!0},content:{kUk6DE:"ui-98rzlu",k7Eaqz:"ui-euugli",k1xSpc:"ui-78zum5",kGNEyG:"ui-6s0dn4",kjj79g:"ui-1qughib",$$css:!0},right:{kmuXW:"ui-2lah0s",k1xSpc:"ui-78zum5",kGNEyG:"ui-6s0dn4",kMwMTN:"ui-19aaqeu",kZKoxP:"ui-g2ss61",$$css:!0},rightDisabled:{kMwMTN:"ui-1e4uaio",$$css:!0},rightHidden:{k33iCy:"ui-lshs6z",$$css:!0},submenuRight:{k1xSpc:"ui-78zum5",kGNEyG:"ui-6s0dn4",kOIVth:"ui-11twubx",k7Eaqz:"ui-euugli",$$css:!0},wrapper:{k1xSpc:"ui-78zum5",kXwgrk:"ui-dt5ytf",k7Eaqz:"ui-euugli",kUk6DE:"ui-98rzlu",kLWn49:"ui-1evy7pa",$$css:!0},title:{kzqmXN:"ui-h8yej3",kUk6DE:"ui-98rzlu",k1xSpc:"ui-78zum5",kGNEyG:"ui-6s0dn4",kOIVth:"ui-11twubx",$$css:!0},description:{k63SB2:"ui-20ajya",kMwMTN:"ui-4b2ntj",$$css:!0}},ra={wrapper:{k1xSpc:"ui-78zum5",kXwgrk:"ui-dt5ytf",kUk6DE:"ui-98rzlu",k7Eaqz:"ui-euugli",$$css:!0},wrapperInline:{kXwgrk:"ui-1q0g3np",kGNEyG:"ui-1pha0wt",kOIVth:"ui-ehausa",$$css:!0},title:{kMwMTN:"ui-1wd3ewq",$$css:!0},titleInline:{kzQI83:"ui-1ikap7u",kmuXW:"ui-2lah0s",kCS8Yb:"ui-1r8uery",k7Eaqz:"ui-euugli",ks0D6T:"ui-1t8xbu",$$css:!0},subtitle:{kMwMTN:"ui-4b2ntj",$$css:!0},subtitleInline:{kzQI83:"ui-gyuaek",kmuXW:"ui-2lah0s",kCS8Yb:"ui-1r8uery",k7Eaqz:"ui-euugli",ks0D6T:"ui-1t8xbu",$$css:!0},subtitleWrap:{khDVqt:"ui-eaf4i8",kXHlph:"ui-1plvlek",kORKVm:"ui-ryxfnj",kg5iWk:"ui-brixnn",$$css:!0}},Jp={wrapper:{k1xSpc:"ui-78zum5",kXwgrk:"ui-dt5ytf",kOIVth:"ui-1374kml",kEbPVU:"ui-g259vi",kisVnR:"ui-141yacn",kPhN0D:"ui-xacq05",kCI4qJ:"ui-119sr6i",kflGA3:"ui-144guhz",kuQXTp:"ui-yhg72o",k8KjL7:"ui-o6llqc",k6ANuI:"ui-qapjow",kzNLci:"ui-13cyfv6",kvgbxY:"ui-449esf",kSChS3:"ui-i7iayf",kW5UhK:"ui-43qgld",kIK0UP:"ui-16isvt",kKhlpd:"ui-1s6a5gi",kWPmei:"ui-f2yixb",k1ZCP1:"ui-9ymq9g",k8vVtf:"ui-8il1zj",kXJ5VR:"ui-tv04z4",kFqVbU:"ui-al8qud",k3zOy0:"ui-bvt3p7",kYzy8m:"ui-1b3rhy7",k4QksK:"ui-azug9i",kA8bO0:"ui-p35uty",kOegPX:"ui-11nj3wz",kMHwGy:"ui-1db8ipi",kcy3WD:"ui-1xjs8pl",k1e9jE:"ui-1lnrnqe",kSTvrD:"ui-ejpia5",kvV0by:"ui-6xymf4",kysnry:"ui-1hw1hzy",$$css:!0},title:{kLKAdn:"ui-f6zju3",kwRFfy:"ui-fp2jl6",kGO01o:"ui-cnij5n",kZCmMZ:"ui-vc46pw",kMwMTN:"ui-4b2ntj",$$css:!0},titleAction:{k1xSpc:"ui-78zum5",kGNEyG:"ui-6s0dn4",kjj79g:"ui-1qughib",kOIVth:"ui-ehausa",$$css:!0},textAction:{kmuXW:"ui-2lah0s",kEafiO:"ui-972fbf",ke9TFa:"ui-10w94by",kt9PQ7:"ui-1qhh985",k2ei4v:"ui-14e42zd",kWkggS:"ui-jbqb8w",kLKAdn:"ui-exx8yu",kwRFfy:"ui-yri2b",kGO01o:"ui-18d9i69",kZCmMZ:"ui-1c1uobl",kMv6JI:"ui-jb2p0i",kGuDYH:"ui-1qlqyl8",k63SB2:"ui-1pd3egz",kLWn49:"ui-15bjb6t",kMwMTN:"ui-4b2ntj ui-7gh5u8",kkrTdU:"ui-1ypdohk",kaIpWk:"ui-1e1y6u3",k1ekBW:"ui-1oy24xj",kIyJzY:"ui-g3p6pi ui-sagj69",kAMwcw:"ui-6ekqhr",kMeerF:"ui-1k57tk5 ui-784prv",k3XXqK:"ui-1t137rt ui-9v5kkp",kInvED:"ui-1wfwxd8 ui-7s97pk",kjBf7l:"ui-1uczgqu ui-1725o6r",$$css:!0}},IF={divider:{k1xSpc:"ui-1lliihq",kEafiO:"ui-jpjugk",kPef9Z:"ui-13fuv20",kLZC3w:"ui-14av3n6",keoZOQ:"ui-15lde7i",k71WvV:"ui-1av4zx7",k1K539:"ui-4qbr5s",keTefX:"ui-3f5ixz",kfzvcC:"ui-47corl",$$css:!0}},MF={row:{kLKAdn:"ui-fs8kq3",kwRFfy:"ui-yupq46",kGO01o:"ui-b6dno7",kZCmMZ:"ui-1xc7y5k",$$css:!0}},Qy={surface:{kzqmXN:"ui-1oysuqx",kskxy:"ui-uyqlj2",kORKVm:"ui-1odjw0f",kfzvcC:"ui-67bb7w",k5wCbM:"ui-1597r2g",k6w4Gs:"ui-xkn5u1",$$css:!0},surfaceMedium:{kzqmXN:"ui-ezivpi",ks0D6T:"ui-y2m5lo",$$css:!0},surfaceWide:{kzqmXN:"ui-ezivpi",ks0D6T:"ui-c74ic2",$$css:!0}},eh={empty:{kLKAdn:"ui-f6zju3",kwRFfy:"ui-t1q3vd",kGO01o:"ui-cnij5n",kZCmMZ:"ui-8fiw5y",kMwMTN:"ui-4b2ntj",k9WMMc:"ui-2b8uid",$$css:!0},emptyIndent:{kZCmMZ:"ui-14o0yop",$$css:!0},loading:{k1xSpc:"ui-78zum5",kGNEyG:"ui-6s0dn4",kjj79g:"ui-l56j7k",kOIVth:"ui-ehausa",kLKAdn:"ui-13ly8rp",kwRFfy:"ui-t1q3vd",kGO01o:"ui-1xlntvz",kZCmMZ:"ui-8fiw5y",kMwMTN:"ui-4b2ntj",$$css:!0},loadingSpinner:{k44tkh:"ui-1s1fvk8",$$css:!0}};function DF(e,t=!1){return[oN,Sp.base,Cs.root,e==="md"&&Sp.sizeMd,t&&Sp.hasAttachment]}function LF(e=!1){return e&&Sp.dropIndicator}function jF(){return OF.base}function zF(){return vi.inner}function PF(){return vi.dropIndicatorSlot}function $F(e=!1){return[vi.layout,e&&vi.layoutCard,e&&Ph.border]}function BF(){return[vi.attachment,Ph.border]}function zO(){return vi.bodyScroll}function FF(){return vi.header}function UF(){return vi.footer}function qF(e=!1){return[vi.list,e&&vi.virtualizedList]}function HF(){return vi.virtualizedRow}function VF(){return vi.virtualizedScroller}function Px(e={}){return[$i.base,e.selected&&$i.selected,e.inSubmenu&&!e.disabled&&$i.submenuHover,e.focused&&$i.focused,e.expanded&&$i.expanded,e.disabled&&$i.disabled,e.disabled&&e.focused&&$i.disabledFocused,e.variant==="muted"&&$i.muted,e.variant==="muted"&&e.focused&&$i.mutedFocused,e.indent&&$i.indent]}const GF={disabled:{kkrTdU:"ui-1h6gzvc",$$css:!0}};function WF(){return GF.disabled}function KF(e={}){return[Ki.left,e.wideLeft&&Ki.leftWide]}function YF(){return Ki.content}function XF(e={}){return[Ki.right,e.disabled&&Ki.rightDisabled,e.trailingHidden&&Ki.rightHidden]}function ZF(){return Ki.submenuRight}function QF(){return Ki.wrapper}function JF(){return[Hl.root,Ki.title]}function eU(){return[Ms.root,Hl.root,Ki.description]}function tU(e){return[ra.wrapper,e&&ra.wrapperInline]}function nU(e){return[Hl.root,ra.title,e&&ra.titleInline]}function rU({inline:e,wrap:t}){return[Ms.root,Hl.root,ra.subtitle,e&&ra.subtitleInline,t&&ra.subtitleWrap]}function iU(){return MF.row}function sU(){return Jp.wrapper}function oU(e){return[Ms.root,Jp.title,e&&Jp.titleAction]}function aU(){return Jp.textAction}function lU(){return IF.divider}function $x(){return Qy.surface}function PO(e){switch(e){case"default":return;case"medium":return Qy.surfaceMedium;case"wide":return Qy.surfaceWide;default:return e}}function uU(e){return[Ms.root,eh.empty,e&&eh.emptyIndent]}function cU(){return[Cs.root,eh.loading]}function fU(){return eh.loadingSpinner}const $O=v.createContext(null);function af(e){const t=v.useContext($O);if(!t)throw new Error(`${e} must be used within LegacyMenu.Content or LegacyMenu.SubMenuContent`);return t}function BO({children:e,activeIndex:t,setIsOpen:n,getItemProps:r,searchValue:s,closeOnSelect:a,virtualFocus:l=!1,activeDescendantIdPrefix:c}){const f=v.useMemo(()=>({activeIndex:t,setIsOpen:n,getItemProps:r,searchValue:s,closeOnSelect:a,virtualFocus:l,activeDescendantIdPrefix:c}),[t,n,r,s,a,l,c]);return g.jsx($O.Provider,{value:f,children:e})}const FO=v.createContext(void 0);function Xh(e){const t=v.useContext(FO);if(t===void 0&&!e)throw new Error(In(72));return t}const dU={...hA,disabled:tt(e=>e.disabled),instantType:tt(e=>e.instantType),isInstantPhase:tt(e=>e.isInstantPhase),trackCursorAxis:tt(e=>e.trackCursorAxis),disableHoverablePopup:tt(e=>e.disableHoverablePopup),lastOpenChangeReason:tt(e=>e.openChangeReason),closeOnClick:tt(e=>e.closeOnClick),closeDelay:tt(e=>e.closeDelay),hasViewport:tt(e=>e.hasViewport)};class Bx extends cx{constructor(t,n,r=!1){const s=new Ah,a={...pU(),...t};a.floatingRootContext=dA(s,n,r),super(a,{popupRef:v.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:s},dU)}setOpen=(t,n)=>{sA(this,t,n,{extraState:{openChangeReason:n.reason}})};cancelPendingOpen(t){this.state.floatingRootContext.dispatchOpenChange(!1,Rt(Bl,t))}static useStore(t,n){return iA(t,(s,a)=>new Bx(n,s,a)).store}}function pU(){return{...fA(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,hasViewport:!1}}const hU=ux(function(t){const{disabled:n=!1,defaultOpen:r=!1,open:s,disableHoverablePopup:a=!1,trackCursorAxis:l="none",actionsRef:c,onOpenChange:f,onOpenChangeComplete:d,handle:h,triggerId:m,defaultTriggerId:b=null,children:y}=t,k=Bx.useStore(h?.store,{open:r,openProp:s,activeTriggerId:b,triggerIdProp:m});oA(k,s,r,b),k.useControlledProp("openProp",s),k.useControlledProp("triggerIdProp",m),k.useContextCallback("onOpenChange",f),k.useContextCallback("onOpenChangeComplete",d);const S=k.useState("open"),R=!n&&S,T=k.useState("activeTriggerId"),E=k.useState("mounted"),C=k.useState("payload");k.useSyncedValues({trackCursorAxis:l,disableHoverablePopup:a}),k.useSyncedValue("disabled",n),lA(k,{closeOnActiveTriggerUnmount:!0});const{forceUnmount:_,transitionStatus:D}=uA(R,k),A=k.useState("isInstantPhase"),M=k.useState("instantType"),B=k.useState("lastOpenChangeReason"),P=v.useRef(null);Ve(()=>{S&&n&&k.setOpen(!1,Rt(p_))},[S,n,k]),Ve(()=>{D==="ending"&&B===Ni||D!=="ending"&&A?(M!=="delay"&&(P.current=M),k.set("instantType","delay")):P.current!==null&&(k.set("instantType",P.current),P.current=null)},[D,A,B,M,k]),Ve(()=>{R&&T==null&&k.set("payload",void 0)},[k,T,R]);const N=v.useCallback(()=>{k.setOpen(!1,Rt(_p))},[k]);v.useImperativeHandle(c,()=>({unmount:_,close:N}),[_,N]);const W=R||E||!n&&l!=="none";return g.jsxs(FO.Provider,{value:k,children:[W&&g.jsx(mU,{store:k,disabled:n,trackCursorAxis:l}),typeof y=="function"?y({payload:C}):y]})});function mU({store:e,disabled:t,trackCursorAxis:n}){const r=e.useState("floatingRootContext"),s=nx(r,{enabled:!t,referencePress:()=>e.select("closeOnClick")}),a=jP(r,{enabled:!t&&n!=="none",axis:n==="none"?void 0:n}),l=v.useMemo(()=>Gi(a.reference,s.reference),[a.reference,s.reference]),c=v.useMemo(()=>Gi(a.trigger,s.trigger),[a.trigger,s.trigger]),f=v.useMemo(()=>Gi(fx,a.floating,s.floating),[a.floating,s.floating]);return cA(e,{activeTriggerProps:l,inactiveTriggerProps:c,popupProps:f}),null}const gU=v.createContext(void 0);function bU(){return v.useContext(gU)}let yU=(function(e){return e[e.popupOpen=Cp.popupOpen]="popupOpen",e.triggerDisabled="data-trigger-disabled",e})({});const vU=600,UO="data-base-ui-tooltip-trigger";function kT(e){if("composedPath"in e){const n=e.composedPath();for(let r=0;r<n.length;r+=1){const s=n[r];if(gt(s))return s}}const t=e.target;return gt(t)?t:null}function xU(e){let t=e;for(;t;){if(t.hasAttribute(UO))return t;const n=t.parentElement;if(n){t=n;continue}const r=t.getRootNode();t="host"in r&&gt(r.host)?r.host:null}return null}const kU=tA(function(t,n){const{render:r,className:s,style:a,handle:l,payload:c,disabled:f,delay:d,closeOnClick:h=!0,closeDelay:m,id:b,...y}=t,k=Xh(!0),S=l?.store??k;if(!S)throw new Error(In(82));const R=Fl(b),T=S.useState("isTriggerActive",R),E=S.useState("isOpenedByTrigger",R),C=S.useState("floatingRootContext"),_=v.useRef(null),D=d??vU,A=m??0,{registerTrigger:M,isMountedByThisTrigger:B}=aA(R,_,S,{payload:c,closeOnClick:h,closeDelay:A}),P=bU(),{delayRef:N,isInstantPhase:W,hasProvider:$}=Jz(C,{open:E}),F=hx(C);S.useSyncedValue("isInstantPhase",W);const z=S.useState("disabled"),U=f??z,H=On(U),K=S.useState("trackCursorAxis"),q=S.useState("disableHoverablePopup"),Y=v.useRef(!1),O=bi(),j=v.useRef(void 0);function V(){const ue=P?.delay,ge=typeof N.current=="object"?N.current.open:void 0;let Se=D;return $&&(ge!==0?Se=d??ue??D:Se=0),Se}function L(ue){const ge=_.current;if(!ge||!ue)return!1;const Se=xU(ue);return Se!==null&&Se!==ge&&ht(ge,Se)}function X(ue){const ge=L(ue);return Y.current=ge,ge&&(F.openChangeTimeout.clear(),F.restTimeout.clear(),F.restTimeoutPending=!1,O.clear()),ge}const se=vA(C,{enabled:!U,mouseOnly:!0,move:!1,handleClose:!q&&K!=="both"?xA():null,restMs:V,delay(){const ue=typeof N.current=="object"?N.current.close:void 0;let ge=A;return m==null&&$&&(ge=ue),{close:ge}},triggerElementRef:_,isActiveTrigger:T,isClosing:()=>S.select("transitionStatus")==="ending",shouldOpen(){return!Y.current}}),ne=gA(C,{enabled:!U}).reference,oe=ue=>{const ge=Y.current,Se=kT(ue),Ae=X(Se),ke=_.current,xe=ke&&Se&&ht(ke,Se);if(Ae&&S.select("open")&&S.select("lastOpenChangeReason")===Sr){S.setOpen(!1,Rt(Sr,ue));return}if(ge&&!Ae&&xe&&!H.current&&!S.select("open")&&ke&&oa(j.current)){const Re=()=>{!Y.current&&!H.current&&!S.select("open")&&S.setOpen(!0,Rt(Sr,ue,ke))},Me=V();Me===0?(O.clear(),Re()):O.start(Me,Re)}},le=S.useState("triggerProps",B);return bn("button",t,{state:{open:E},ref:[n,M,_],props:[se,ne,B||K!=="none"?le:void 0,{onMouseOver(ue){oe(ue.nativeEvent)},onFocus(ue){L(kT(ue.nativeEvent))&&ue.preventBaseUIHandler()},onMouseLeave(){Y.current=!1,O.clear(),j.current=void 0},onPointerEnter(ue){j.current=ue.pointerType},onPointerDown(ue){j.current=ue.pointerType,S.set("closeOnClick",h),h&&!S.select("open")&&S.cancelPendingOpen(ue.nativeEvent)},onClick(ue){h&&!S.select("open")&&S.cancelPendingOpen(ue.nativeEvent)},id:R,[yU.triggerDisabled]:U?"":void 0,[UO]:U?void 0:""},y],stateAttributesMapping:u_})}),qO=v.createContext(void 0);function SU(){const e=v.useContext(qO);if(e===void 0)throw new Error(In(70));return e}const wU=v.forwardRef(function(t,n){const{keepMounted:r=!1,...s}=t;return Xh().useState("mounted")||r?g.jsx(qO.Provider,{value:r,children:g.jsx(eO,{ref:n,...s})}):null}),HO=v.createContext(void 0);function EU(){const e=v.useContext(HO);if(e===void 0)throw new Error(In(71));return e}const TU=v.forwardRef(function(t,n){const{render:r,className:s,anchor:a,positionMethod:l="absolute",side:c="top",align:f="center",sideOffset:d=0,alignOffset:h=0,collisionBoundary:m="clipping-ancestors",collisionPadding:b=5,arrowPadding:y=5,sticky:k=!1,disableAnchorTracking:S=!1,collisionAvoidance:R=D_,style:T,...E}=t,C=Xh(),_=SU(),D=C.useState("open"),A=C.useState("mounted"),M=C.useState("trackCursorAxis"),B=C.useState("disableHoverablePopup"),P=C.useState("floatingRootContext"),N=C.useState("instantType"),W=C.useState("transitionStatus"),$=C.useState("hasViewport"),F=Ex({anchor:a,positionMethod:l,floatingRootContext:P,mounted:A,side:c,sideOffset:d,align:f,alignOffset:h,collisionBoundary:m,collisionPadding:b,sticky:k,arrowPadding:y,disableAnchorTracking:S,keepMounted:_,collisionAvoidance:R,adaptiveOrigin:$?ZA:void 0}),z=v.useMemo(()=>({open:D,side:F.side,align:F.align,anchorHidden:F.anchorHidden,instant:M!=="none"?"tracking-cursor":N}),[D,F.side,F.align,F.anchorHidden,M,N]),U=Tx(t,z,{styles:F.positionerStyles,transitionStatus:W,props:E,refs:[n,C.useStateSetter("positionerElement")],hidden:!A,inert:!D||M==="both"||B});return g.jsx(HO.Provider,{value:F,children:U})}),RU={...Wc,...To},CU=v.forwardRef(function(t,n){const{render:r,className:s,style:a,...l}=t,c=Xh(),{side:f,align:d}=EU(),h=c.useState("open"),m=c.useState("instantType"),b=c.useState("transitionStatus"),y=c.useState("popupProps"),k=c.useState("floatingRootContext"),S=c.useState("disabled"),R=c.useState("closeDelay");_o({open:h,ref:c.context.popupRef,onComplete(){h&&c.context.onOpenChangeComplete?.(!0)}}),yA(k,{enabled:!S,closeDelay:R});const T=c.useStateSetter("popupElement");return bn("div",t,{state:{open:h,side:f,align:d,instant:m,transitionStatus:b},ref:[n,c.context.popupRef,T],props:[y,Lh(b),l],stateAttributesMapping:RU})}),_U=v.createContext(null),AU={base:{kfSwDN:"ui-87ps6o",kfzvcC:"ui-47corl",$$css:!0}},VO=v.createContext(null);function GO(e){const t=v.use(VO);if(t===null)throw new Error(`${e} must be used within Tooltip.Root`);return t}function WO({children:e,placement:t=$h,offset:n=8,openDelay:r=xB,closeDelay:s=Bh,disabled:a=!1,defaultOpen:l,open:c,sameAxisOnly:f=!1,onOpenChange:d,onOpenChangeComplete:h}){const m=v.use(_U),b=v.use(Zp),y=a||b,k=m?.open??r,S=m?.close??s,R=v.useRef(null),T=v.useMemo(()=>({close:()=>{R.current?.close()}}),[]),[E,C]=v.useState(),_=(A,M)=>{d?.(A,M),M.isCanceled||C(A?M.trigger?.id:void 0)},D=v.useMemo(()=>({disabled:y,instantDismiss:b,offset:n,openTriggerId:E,placement:t,sameAxisOnly:f,scrollDismissHandle:T,triggerCloseDelay:S,triggerDelay:k}),[y,b,n,E,t,f,T,S,k]);return g.jsx(VO.Provider,{value:D,children:g.jsx(hU,{actionsRef:R,defaultOpen:l,disabled:y,disableHoverablePopup:!0,onOpenChange:_,onOpenChangeComplete:h,open:c,children:e})})}function KO({children:e,ref:t,...n}){const{disabled:r,triggerCloseDelay:s,triggerDelay:a}=GO("Tooltip.Trigger"),l=e.props?.id;return g.jsx(kU,{...n,closeDelay:s,delay:a,disabled:r,id:l??n.id,ref:t,render:e})}function YO({content:e,anchor:t,ariaLabel:n,width:r,minWidth:s,maxWidth:a}){const{instantDismiss:l,offset:c,openTriggerId:f,placement:d,sameAxisOnly:h,scrollDismissHandle:m}=GO("Tooltip.Popup"),b=va(),y=uO(m,f),{side:k,align:S,sideOffset:R,alignOffset:T,collisionAvoidance:E,positionMethod:C}=Fh(d,c,h),_=zh(v4),D=zt(Rx,sN,x4,AU.base,jh);return l?null:g.jsx(wU,{container:b??void 0,children:g.jsx(TU,{align:S,alignOffset:T,anchor:t,className:_.className,collisionAvoidance:E,collisionPadding:8,positionMethod:C,side:k,sideOffset:R,style:_.style,children:g.jsx(CU,{"aria-label":n,className:D.className,"data-component":"tooltip-popup",ref:y,role:"tooltip",style:r===void 0&&s===void 0&&a===void 0?D.style:{...D.style,width:r,minWidth:s,maxWidth:a},children:typeof e=="function"?e():e})})})}function NU({children:e,anchor:t,"aria-label":n,width:r,minWidth:s,maxWidth:a}){return g.jsx(YO,{anchor:t,ariaLabel:n,content:e,maxWidth:a,minWidth:s,width:r})}function Jy({children:e,content:t,placement:n,offset:r,openDelay:s,closeDelay:a,disabled:l,defaultOpen:c,open:f,"aria-label":d,width:h,minWidth:m,maxWidth:b,sameAxisOnly:y,onOpenChange:k,onOpenChangeComplete:S,ref:R,...T}){const E=v.Children.only(e);return v.isValidElement(E)?g.jsxs(WO,{closeDelay:a,defaultOpen:c,disabled:l,offset:r,onOpenChange:k,onOpenChangeComplete:S,open:f,openDelay:s,placement:n,sameAxisOnly:y,children:[g.jsx(KO,{...T,ref:R,children:E}),g.jsx(YO,{ariaLabel:d,content:t,maxWidth:b,minWidth:m,width:h})]}):g.jsx(g.Fragment,{children:e})}(function(e){e.Root=WO,e.Trigger=KO,e.Popup=NU})(Jy||(Jy={}));const OU="ui-menu",Fx="ui-menu__backdrop",IU="ui-menu__list",MU="ui-menu__content",DU="ui-menu__drop-indicator-slot",LU="ui-menu__layout",XO="ui-menu__body-scroll",jU="ui-menu__header",zU="ui-menu__footer",PU="ui-menu__attachment",$U="ui-menu__row",BU="ui-menu__item-left",FU="ui-menu__item-content",UU="ui-menu__item-right",qU="ui-menu__item-wrapper",HU="ui-menu__item-title",VU="ui-menu__item-description",GU="ui-menu__text-wrapper",WU="ui-menu__title",KU="ui-menu__subtitle",YU="ui-menu__search-row",XU="ui-menu__section",ZU="ui-menu__section-title",QU="ui-menu__section-text-action",JU="ui-menu__virtualized-section-divider",e8="ui-menu__submenu-trigger",t8="ui-menu__submenu-right-section",n8="ui-menu__toggle-row",r8="ui-menu__tooltip",i8="ui-menu__empty",s8="ui-menu__loading",o8="ui-menu__loading-spinner",a8="ui-menu__virtualized-row",l8="ui-menu__virtualized-scroller";function tn(e,t,n={}){return Yt({rootClass:e,stylexStyles:t,className:n.className,style:n.style})}function Ux({className:e,hasDropIndicator:t=!1,size:n,style:r,hasAttachment:s=!1,surfaceStyle:a}){return a=[LF(t),a],tn(OU,[DF(n,s),a],{className:e,style:r})}function ZO(e){return tn(Fx,jF(),{style:e})}function qx(e=!1,t){return tn(IU,[qF(e),t],{className:e?"ui-menu__list--virtualized":void 0})}function Hx(e){return tn(MU,[zF(),e])}function u8(){return tn(DU,PF())}function Vx(e,t=!1,n){return tn(LU,[$F(t),n],{style:e})}function c8(){return tn(PU,BF())}function Gx(){return tn(jU,FF())}function Wx(){return tn(zU,UF())}function Kx(e={},t){return tn($U,[{"ui--default-marker":"ui--default-marker",$$css:!0},Px(e),t],{className:e.className})}function f8(e={},t){return tn(n8,[Px(e),e.disabled&&WF(),t],{className:e.className})}function d8(e={}){return tn(e8,Px(e),{className:e.className})}function p8(e={},t){return tn(BU,[KF(e),t])}function h8(e){return tn(FU,[YF(),e])}function m8(e={},t){return tn(UU,[XF(e),t])}function Yx(){return tn(qU,QF())}function Xx(){return tn(HU,JF())}function Zx(){return tn(VU,eU())}function g8(e){return tn(GU,tU(e))}function b8(e){return tn(WU,nU(e))}function y8({inline:e,wrap:t}){return tn(KU,rU({inline:e,wrap:t}))}function v8(e,t){return tn(YU,[iU(),t],{className:e})}function x8(e){return tn(XU,[sU(),e])}function QO(e,t){return tn(ZU,[oU(e),t])}function k8(){return tn(QU,aU())}function S8(){return tn(JU,lU())}function w8(){return tn(t8,ZF())}function E8(e,t){return tn(i8,[uU(e),t])}function T8(){return tn(s8,cU())}function R8(){return tn(a8,HF())}function C8(){return tn(l8,VF())}const _8=tn(o8,fU()).className,th="submenuOpenChange",Qx=v.createContext(null);function Jx(e){return Math.max(e,Bh)}function e0(){return v.use(Qx)}function t0({children:e,layerNodeId:t,placement:n="right-start"}){const r=No(),[s,a]=v.useState(new Set);v.useEffect(()=>{if(!r)return;const f=d=>{d.parentId===t&&a(h=>{const m=new Set(h);return d.isOpen?m.add(d.nodeId):m.delete(d.nodeId),m})};return r.events.on(th,f),()=>{r.events.off(th,f)}},[r,t]);const l=s.size>0,c=v.useMemo(()=>({hasOpenChild:l}),[l]);return g.jsx(Qx.Provider,{value:c,children:g.jsx(_c,{offset:6,placement:n,sameAxisOnly:!0,children:e})})}function A8({content:e,surfaceStyle:t}){return g.jsx(_c.Popup,{surfaceClassName:r8,surfaceStyle:[$x(),t],children:typeof e=="function"?e():e})}function JO({children:e,content:t,contentKey:n,disabled:r=!1,openDelay:s=0,closeDelay:a=0,surfaceStyle:l}){const c=v.use(Qx);return c==null?g.jsx(g.Fragment,{children:e}):g.jsx(_c.Trigger,{closeDelay:Jx(a),content:g.jsx(A8,{content:t,surfaceStyle:l}),contentKey:n,openDelay:s,disabled:r||c.hasOpenChild,children:e})}function N8(e,t){const n=No(),r=Ao();v.useEffect(()=>{if(!n||e===void 0)return;const s={nodeId:e,parentId:r,isOpen:t};return n.events.emit(th,s),()=>{t&&n.events.emit(th,{nodeId:e,parentId:r,isOpen:!1})}},[n,e,r,t])}function lf({children:e,content:t,contentKey:n,disabled:r=!1,openDelay:s=0,closeDelay:a=0,interactive:l=!0,surfaceStyle:c}){return e0()!=null?g.jsx(JO,{closeDelay:a,content:t,contentKey:n,disabled:r,openDelay:s,surfaceStyle:c,children:e}):l?g.jsx(lO,{closeDelay:Jx(a),content:t,disabled:r,offset:6,openDelay:s,placement:"right",sameAxisOnly:!0,surfaceStyle:[$x(),c],children:e}):g.jsx(Jy,{closeDelay:a,content:t,disabled:r,offset:6,openDelay:s,placement:"right",sameAxisOnly:!0,children:e})}function Ll({children:e,disabled:t=!1,leading:n,trailing:r,rightFallback:s,trailingAccessory:a,trailingHidden:l=!1,wideLeft:c=!1,leadingStyle:f,contentStyle:d,trailingStyle:h}){const m=r??s,b=m!=null||a!=null,y=p8({wideLeft:c},f),k=h8(d),S=m8({disabled:t,trailingHidden:l},h);return g.jsxs(Is,{iconSize:"base",children:[n!=null?g.jsx("span",{className:y.className,style:y.style,"data-component":"menu-item-left",children:n}):null,g.jsx("div",{className:k.className,style:k.style,"data-component":"menu-item-content",children:e}),b?g.jsxs("span",{className:S.className,style:S.style,"data-component":"menu-item-right",children:[m,a]}):null]})}const eI=v.createContext(!1);function uf(){return v.useContext(eI)}const Zh=v.createContext(null);function Qh(e){const t=v.useContext(Zh);if(!t)throw new Error(`${e} must be used within LegacyMenu.SubMenu`);return t}function O8(){return Qh("LegacyMenu.SubMenu.useContext")}function n0(){const e=v.useContext(Zh),{setIsOpen:t,dismissCauseRef:n}=LO();return v.useCallback(r=>{n.current="selection",r(!1),e!=null&&t(!1)},[e,t,n])}function r0(e,t,n){const{searchValue:r}=af(n);return t||!r||!e?!0:e.toLowerCase().includes(r.toLowerCase())}const I8=jO("@@menu-item-noop"),M8=new I8({}),tI=v.createContext(null);function D8(){return v.useContext(tI)}function nI({children:e,label:t,ignoreSearch:n=!1,...r}){const s=t??(typeof e=="string"?e:"");return r0(s,n,"LegacyMenu.Item")?g.jsx(rI,{...r,contextPart:"LegacyMenu.Item",itemLabel:s,children:e}):null}function rI({children:e,"data-testid":t,"aria-haspopup":n,"aria-expanded":r,mentionMenuFlatIndex:s,disabled:a=!1,onMouseDown:l,onAuxClick:c,onSelect:f,onKeyDown:d,leading:h,trailing:m,tooltip:b,tooltipDisabled:y=!1,tooltipOpenDelay:k=0,tooltipCloseDelay:S=0,tooltipSurface:R="default",closeOnSelect:T,description:E,rootStyle:C,leadingStyle:_,contentStyle:D,trailingStyle:A,variant:M="default",trailingVisibility:B="always",selected:P=!1,radioChecked:N,indent:W=!1,wideLeftSection:$=!1,draggable:F,ref:z,itemLabel:U,referenceRef:H,itemPropsTransform:K,trailingAccessory:q,contextPart:Y}){const{activeIndex:O,setIsOpen:j,getItemProps:V,closeOnSelect:L,virtualFocus:X,activeDescendantIdPrefix:se}=af(Y),{shouldAllowPointerInteraction:ne}=Yi(Y),oe=uf(),le=n0(),ce=sf(),Ee=Di(),be=ce==="body",ue=T??L??!0,{ref:ge,index:Se}=qh({label:U||null}),Ae=O===Se,[ke,xe]=v.useState(!1);e0();const Re=v.useRef(null),Me=v.useId(),ze=F!=null,Fe=F?.mode==="pointer",ye=v.useSyncExternalStore(gi.subscribe,gi.isDragActive,gi.isDragActive),_e=v.useRef(null),ee=v.useRef(null),fe=v.useRef(null),Q=v.useRef(null),re=v.useRef(!1),[we,Pe]=v.useState(null),{ref:Ye,isDragging:Ze}=NF({id:F?.id??`menu-item-${Me}`,data:F?.data??M8,disabled:!ze||Fe||(F?.disabled??!1),dragImageOffset:F?.dragImageOffset,onDragStart:F?.onDragStart,onDragEnd:F?.onDragEnd}),bt=Jc([ge,H,z,ze&&!Fe?Ye:null]),Je=v.useCallback(Ne=>{Re.current=Ne},[]),xt=v.useMemo(()=>({setSubMenuOpen:xe,isSubMenuOpen:ke,registerSubMenuOpener:Je}),[ke,Je]),St=PO(R);v.useEffect(()=>()=>{_e.current?.(),fe.current!=null&&cancelAnimationFrame(fe.current)},[]);const nt=v.useCallback(()=>{fe.current=null;const Ne=ee.current,Tt=Q.current;!Ne||!Tt||(Ne.style.transform=`translate3d(${Tt.x+8}px, ${Tt.y+8}px, 0)`)},[]),rt=v.useCallback(Ne=>{Q.current=Ne,fe.current==null&&(fe.current=requestAnimationFrame(nt))},[nt]),ct=v.useCallback(Ne=>{ee.current=Ne,nt()},[nt]),it=()=>{if(a)return;const Ne={defaultPrevented:!1,preventDefault:()=>{Ne.defaultPrevented=!0}};f?.(Ne),ue&&!Ne.defaultPrevented&&le(j)},ft=Ne=>{if(re.current){re.current=!1,Ne.preventDefault(),Ne.stopPropagation();return}if(!ne(Ne.nativeEvent)){Ne.preventDefault(),Ne.stopPropagation();return}it()},Lt=v.useCallback(Ne=>{if(!ne(Ne.nativeEvent)){Ne.preventDefault(),Ne.stopPropagation();return}if(l?.(Ne),!Ne.defaultPrevented){if(Fe&&F!=null&&!F.disabled&&Ne.button===0){_e.current?.();const Tt=gi.getInstance(),Qt=Ne.currentTarget,rn={clientX:Ne.clientX,clientY:Ne.clientY,isDragging:!1},_n=()=>{document.removeEventListener("mousemove",Yn,!0),document.removeEventListener("mouseup",Br,!0),fe.current!=null&&(cancelAnimationFrame(fe.current),fe.current=null),Q.current=null,_e.current=null,Tt.clearData(),setTimeout(()=>{re.current=!1},0)},Yn=Fn=>{const ri=Fn.clientX-rn.clientX,Fr=Fn.clientY-rn.clientY;if(!(!rn.isDragging&&Math.hypot(ri,Fr)<4)){if(!rn.isDragging){rn.isDragging=!0,re.current=!0,Tt.setData(F.data);const tr=Qt.getBoundingClientRect().width;rt({x:Fn.clientX,y:Fn.clientY}),Pe(tr),F.onPointerDragStart?.(Fn)}Fn.preventDefault(),rt({x:Fn.clientX,y:Fn.clientY}),F.onPointerDragMove?.(Fn)}},Br=Fn=>{if(!rn.isDragging){_n();return}Fn.preventDefault(),Pe(null),F.onPointerDragEnd?.(Fn),_n()};_e.current=_n,document.addEventListener("mousemove",Yn,!0),document.addEventListener("mouseup",Br,!0)}X&&!ze&&Ne.preventDefault()}},[F,ze,Fe,l,rt,ne,X]),Pt=v.useCallback(Ne=>{if(!ne(Ne.nativeEvent)){Ne.preventDefault(),Ne.stopPropagation();return}c?.(Ne)},[c,ne]),At=Ne=>{a||(d?.(Ne),!Ne.defaultPrevented&&((Ne.key==="Enter"||Ne.key===" ")&&(Ne.preventDefault(),Ne.stopPropagation(),it()),Gl(Ne.key,Ee)==="end"&&Re.current&&(Ne.preventDefault(),Ne.stopPropagation(),Re.current())))},Z=V({...of(se,Se),onClick:ft,onKeyDown:At,onMouseDown:Lt,onAuxClick:Pt}),me=K?.(Z)??Z,Le=m!=null?g.jsx(tI.Provider,{value:xt,children:m}):void 0,Xe=Yx(),Ct=Xx(),lt=Zx(),He=E!=null?g.jsxs("div",{className:Xe.className,style:Xe.style,children:[g.jsx("div",{className:Ct.className,style:Ct.style,children:e}),g.jsx("div",{className:lt.className,style:lt.style,"data-component":"menu-item-description",children:E})]}):e,qe=y||ye||ke,De=B==="focused"&&(ye||!Ae),je=Kx({disabled:a,expanded:r===!0,focused:!ye&&Ae,indent:W,inSubmenu:oe,selected:P,variant:M},C),Ie={role:N===void 0?"menuitem":"menuitemradio",tabIndex:Ae?0:-1,...N!==void 0?{"aria-checked":N}:{},...n!==void 0?{"aria-haspopup":n}:{},...r!==void 0?{"aria-expanded":r}:{},"aria-disabled":a||void 0,"data-component":"menu-row","data-expanded":r===!0||void 0,draggable:Fe?!1:void 0,"data-disabled":a||void 0,"data-focused":!ye&&Ae?!0:void 0,"data-menu-draggable":ze||void 0,"data-selected":P||void 0,"data-has-description":E!=null||void 0,"data-variant":M!=="default"?M:void 0,"data-indent":W||void 0,"data-wide-left":$||void 0,"data-dragging":Ze||we!=null||void 0,...t?{"data-testid":t}:{},...s!==void 0?{"data-mention-menu-flat-index":String(s)}:{},[Vl]:ce,className:je.className,style:je.style,...me},We={className:"ui-u96u03 ui-47corl ui-ixxii4 ui-13vifvy ui-u1ixa1 ui-1so62im ui-18ivbjn"},dt=we!=null&&F?.preview!=null?Mi.createPortal(g.jsx("div",{"aria-hidden":"true",ref:ct,className:We.className,style:{...We.style,width:we},children:F.preview}),document.body):null,Et=be?g.jsxs("li",{ref:bt,...Ie,children:[g.jsx(Ll,{disabled:a,leading:h,trailing:Le,trailingAccessory:q,trailingHidden:De,wideLeft:$,leadingStyle:_,contentStyle:D,trailingStyle:A,children:He}),dt]}):g.jsxs("div",{ref:bt,...Ie,children:[g.jsx(Ll,{disabled:a,leading:h,trailing:Le,trailingAccessory:q,trailingHidden:De,wideLeft:$,leadingStyle:_,contentStyle:D,trailingStyle:A,children:He}),dt]});return b!=null?g.jsx(lf,{closeDelay:S,content:qe?null:b,disabled:qe,openDelay:k,surfaceStyle:St,children:Et}):Et}const iI=v.createContext(null);function sI(e){const t=v.useContext(iI);if(!t)throw new Error(`${e} must be used within LegacyMenu.ExpandableSection`);return t}function L8({children:e,defaultExpanded:t=!1,expanded:n,onExpandedChange:r}){const[s,a]=v.useState(t),l=n!==void 0,c=l?n:s,f=h=>{l||a(h),r?.(h)},d=()=>f(!c);return g.jsx(iI.Provider,{value:{expanded:c,setExpanded:f,toggle:d},children:e})}function j8({children:e,contentStyle:t,leading:n,leadingStyle:r,rootStyle:s,trailing:a,trailingStyle:l,label:c}){const{expanded:f,setExpanded:d,toggle:h}=sI("LegacyMenu.ExpandableSectionTrigger"),m=Di(),b=typeof n=="function"?n(f):n,y=k=>{const S=Gl(k.key,m);if(S==="end"&&!f){k.preventDefault(),k.stopPropagation(),d(!0);return}S==="start"&&f&&(k.preventDefault(),k.stopPropagation(),d(!1))};return g.jsx(nI,{closeOnSelect:!1,contentStyle:t,wideLeftSection:!0,leading:b,leadingStyle:r,rootStyle:s,trailing:a,trailingStyle:l,label:c??(typeof e=="string"?e:void 0),onKeyDown:y,onSelect:h,children:e})}function z8({children:e}){const{expanded:t}=sI("LegacyMenu.ExpandableSectionContent");return t?g.jsx(g.Fragment,{children:e}):null}function P8({children:e,label:t,ignoreSearch:n,...r}){const s=t??(typeof e=="string"?e:"");return r0(s,n,"LegacyMenu.CheckboxItem")?g.jsx($8,{...r,itemLabel:s,children:e}):null}function $8({children:e,"data-testid":t,checked:n,defaultChecked:r=!1,onChange:s,disabled:a=!1,trailing:l,description:c,tooltip:f,tooltipOpenDelay:d=0,tooltipCloseDelay:h=0,tooltipSurface:m="default",closeOnSelect:b,itemLabel:y,rootStyle:k,contentStyle:S,trailingStyle:R}){const{activeIndex:T,getItemProps:E,setIsOpen:C,closeOnSelect:_,activeDescendantIdPrefix:D}=af("LegacyMenu.CheckboxItem"),{shouldAllowPointerInteraction:A}=Yi("LegacyMenu.CheckboxItem"),M=uf(),B=n0(),P=sf(),N=P==="body",W=b??_??!1,[$,F]=v.useState(r),z=n!==void 0,U=z?n:$,{ref:H,index:K}=qh({label:y||null}),q=T===K,Y=e0(),O=PO(m),j=v.useCallback(()=>{if(a)return;const ke=!U;z||F(ke);const xe={defaultPrevented:!1,preventDefault:()=>{xe.defaultPrevented=!0}};s?.(ke,xe),W&&!xe.defaultPrevented&&B(C)},[a,U,z,s,W,C,B]),V=v.useCallback(ke=>{if(!A(ke.nativeEvent)){ke.preventDefault(),ke.stopPropagation();return}ke.preventDefault(),ke.stopPropagation(),j()},[j,A]),L=v.useCallback(ke=>{a||(ke.key==="Enter"||ke.key===" ")&&(ke.preventDefault(),ke.stopPropagation(),j())},[a,j]),X=E({...of(D,K),onClick:V,onKeyDown:L}),se=c!=null,ne=Kx({disabled:a,focused:q,inSubmenu:M},k),oe={role:"menuitemcheckbox","aria-checked":U,tabIndex:q?0:-1,"aria-disabled":a||void 0,"data-checked":U||void 0,"data-component":"menu-row","data-disabled":a||void 0,"data-focused":q||void 0,"data-has-description":se||void 0,...t?{"data-testid":t}:{},[Vl]:P,className:ne.className,style:ne.style,...X},le=g.jsx(FA,{checked:U,disabled:a}),ce=Yx(),Ee=Xx(),be=Zx(),ue=se?g.jsxs("div",{className:ce.className,style:ce.style,children:[g.jsx("div",{className:Ee.className,style:Ee.style,children:e}),g.jsx("div",{className:be.className,style:be.style,"data-component":"menu-item-description",children:c})]}):e,ge=g.jsx(Ll,{disabled:a,leading:le,trailing:l,contentStyle:S,trailingStyle:R,children:ue}),Se=f!=null&&Y!=null,Ae=N?g.jsx("li",{ref:H,...oe,children:ge}):g.jsx("div",{ref:H,...oe,children:ge});return Se?g.jsx(JO,{closeDelay:h,content:f,openDelay:d,surfaceStyle:O,children:Ae}):f!=null?g.jsx(lO,{content:f,placement:"right",offset:6,openDelay:d,closeDelay:Jx(h),sameAxisOnly:!0,surfaceStyle:[$x(),O],children:Ae}):Ae}function Jb(e,t){if(!t?.length||!e.dataTransfer)return!1;for(const n of e.dataTransfer.types)for(const r of t)if(n.toLowerCase()===r.toLowerCase())return!0;return!1}function B8(e,t){const n=e.relatedTarget;if(n!==null&&t.contains(n))return!1;const r=t.defaultView;return r?e.clientX<=0||e.clientY<=0||e.clientX>=r.innerWidth||e.clientY>=r.innerHeight:!0}function F8(e){const{accept:t,disabled:n=!1,acceptData:r,acceptNativeTypes:s,onDragEnter:a,onDragOver:l,onDragLeave:c,onDrop:f}=e,d=v.useRef(null),h=v.useRef(null),m=v.useRef(0),b=v.useRef(null),[y,k]=v.useState(!1),[S,R]=v.useState(!1),T=v.useRef(y);T.current=y;const E=v.useCallback(()=>{m.current=0,k(!1),R(!1)},[]),C=v.useCallback(()=>{b.current!==null&&(cancelAnimationFrame(b.current),b.current=null)},[]);v.useEffect(()=>{if(!y)return;const P=h.current?.ownerDocument??document,N=()=>{C(),E()};return P.addEventListener("mousemove",N,!0),()=>{P.removeEventListener("mousemove",N,!0)}},[y,C,E]);const _=v.useRef({onDragEnter:a,onDragOver:l,onDragLeave:c,onDrop:f});_.current={onDragEnter:a,onDragOver:l,onDragLeave:c,onDrop:f};const D=v.useRef(s);D.current=s;const A=v.useRef(Array.isArray(t)?t:[t]);A.current=Array.isArray(t)?t:[t];const M=v.useRef(r);M.current=r;const B=v.useCallback(P=>{if(h.current=P,d.current&&(d.current(),d.current=null),m.current=0,P!==null&&(k(!1),R(!1)),!P||n)return;const N=gi.getInstance(),W=()=>{if(n)return null;const j=N.getValidatedData(A.current);return j&&(M.current?.(j)??!0)?j:null},$=j=>{if(m.current++,m.current===1){k(!0);const V=W();R(V!==null||!n&&Jb(j,D.current)),_.current.onDragEnter?.(j,V)}},F=j=>{m.current=Math.max(0,m.current-1),m.current===0&&(C(),E(),_.current.onDragLeave?.(j))},z=j=>{const V=W(),L=V!==null,X=!L&&!n&&Jb(j,D.current);(L||X)&&(j.preventDefault(),j.dataTransfer&&(j.dataTransfer.dropEffect=L?"move":"copy"),m.current===0&&(m.current=1,k(!0),R(!0),_.current.onDragEnter?.(j,V)),_.current.onDragOver&&b.current===null&&(b.current=requestAnimationFrame(()=>{b.current=null,_.current.onDragOver?.(j,V)})))},U=j=>{j.preventDefault(),C(),E();const V=W();if(V){const{onDrop:L}=_.current;L&&(L(j,V),j.stopPropagation())}else if(Jb(j,D.current)){const{onDrop:L}=_.current;L&&(L(j,null),j.stopPropagation())}};P.addEventListener("dragenter",$),P.addEventListener("dragleave",F),P.addEventListener("dragover",z),P.addEventListener("drop",U);const H=P.ownerDocument,K=()=>{(m.current!==0||T.current)&&(C(),E())},q=()=>K(),Y=()=>K(),O=j=>{B8(j,H)&&K()};H.addEventListener("drop",q,!0),H.addEventListener("dragend",Y,!0),H.addEventListener("dragleave",O,!0),d.current=()=>{P.removeEventListener("dragenter",$),P.removeEventListener("dragleave",F),P.removeEventListener("dragover",z),P.removeEventListener("drop",U),H.removeEventListener("drop",q,!0),H.removeEventListener("dragend",Y,!0),H.removeEventListener("dragleave",O,!0),b.current!==null&&(cancelAnimationFrame(b.current),b.current=null)}},[n,E,C]);return v.useEffect(()=>()=>{d.current&&(d.current(),d.current=null)},[]),{ref:B,isOver:y,canDrop:S,isDropBlocked:y&&!S}}function U8(){const e=v.useRef(!0),t=v.useRef(void 0),n=v.useCallback(()=>{t.current!==void 0&&(clearTimeout(t.current),t.current=void 0)},[]),r=v.useCallback((s,a)=>{e.current&&(n(),t.current=setTimeout(()=>{t.current=void 0,s()},a))},[n]);return v.useEffect(()=>(e.current=!0,()=>{e.current=!1,n()}),[n]),v.useMemo(()=>({cancel:n,schedule:r}),[n,r])}const q8=300,oI=v.createContext(null);function nh({children:e}){const[t,n]=v.useState(null),r=U8(),s=v.useCallback(c=>{r.cancel(),n(c)},[r]),a=v.useCallback(c=>{r.schedule(()=>{n(f=>f===c?null:f)},q8)},[r]),l=v.useMemo(()=>({activeId:t,markOpen:s,markClosed:a}),[t,s,a]);return g.jsx(oI.Provider,{value:l,children:e})}function H8(e,t){const n=v.useContext(oI),r=n?.markOpen,s=n?.markClosed;return v.useEffect(()=>{if(!(!t||e==null||r==null||s==null))return r(e),()=>s(e)},[t,e,r,s]),{activeId:n?.activeId??null}}const V8=jO("@@menu-content-noop");function G8({children:e,header:t,footer:n,attachment:r,"aria-label":s,popupRole:a="menu","data-testid":l,className:c,surfaceStyle:f,contentStyle:d,layoutStyle:h,listStyle:m,scrollAreaStyles:b,style:y,dropIndicatorTop:k,maxHeight:S,width:R,minWidth:T,maxWidth:E,tooltipPlacement:C,size:_,backdrop:D,adaptiveHeight:A=!0,returnFocus:M,onKeyDownCapture:B,onBodyPointerEnter:P,droppable:N,ref:W}){const $=ya(),{isOpen:F,isMounted:z,activeIndex:U,setActiveIndex:H,setIsOpen:K,markKeyboardNavigation:q,markPointerNavigation:Y,virtualFocus:O,searchValue:j,setSearchValue:V,hasSearchInput:L,searchInputRef:X,enableHover:se,closeOnSelect:ne,nodeId:oe,activeDescendantIdPrefix:le,listRef:ce,labelsRef:Ee,refs:be,floatingStyles:ue,middlewareData:ge,transitionStyles:Se,context:Ae,getFloatingProps:ke,getItemProps:xe,dismissCauseRef:Re,returnFocusOnSelect:Me,returnFocus:ze}=Yi("LegacyMenu.Content"),Fe=D??!se,[ye,_e]=v.useState(null),ee=O&&!L,fe=Yh(),Q=v.useSyncExternalStore(gi.subscribe,gi.isDragActive,gi.isDragActive),re=Ae.placement.startsWith("top"),we=re&&z?ge.bottomAnchor?.bottom??null:null,Pe=v.useRef(null),Ye=v.useRef(U),Ze=v.useRef(!1);v.useLayoutEffect(()=>{Ye.current=U},[U]),v.useLayoutEffect(()=>{if(!F){Ze.current=!1;return}const Ne=_n=>{RO(_n)&&(Ze.current=!0,q())},Tt=_n=>{const Yn=NO(_n,ce);Yn==null||Yn===Ye.current||H(Yn)},Qt=_n=>{const Yn=Ze.current;Ze.current=!1,Y(),Yn&&Tt(_n.target)};document.addEventListener("keydown",Ne,!0);const rn=lF(ye,Qt);return()=>{document.removeEventListener("keydown",Ne,!0),rn()}},[F,ce,q,Y,ye,H]),v.useLayoutEffect(()=>{if(!F){Pe.current=null;return}if(!O||U==null||Pe.current===U||(Pe.current=U,!Ze.current))return;const Ne=ce.current[U]??null;if(!Ne)return;const Tt=requestAnimationFrame(()=>{Ne.scrollIntoView({block:"nearest",inline:"nearest"})});return()=>cancelAnimationFrame(Tt)},[F,O,U,ce]);const bt=v.useCallback(Ne=>{if(Ne.key==="Escape"){Re.current="escape";return}if(Ne.ctrlKey&&!Ne.metaKey){const Qt=Ne.key.toLowerCase(),rn=Qt==="n"||Qt==="j";if(rn||(Qt==="p"||Qt==="k")){Ne.preventDefault();const Yn=ce.current,Br=Yn.length;if(Br===0)return;const Fn=Ye.current,ri=rn?1:-1;let Fr=Fn==null?rn?0:Br-1:Fn+ri;for(;Fr>=0&&Fr<Br;){if(Yn[Fr]!=null){H(Fr);return}Fr+=ri}return}}if(!L)return;if(Ne.key.length===1&&!Ne.ctrlKey&&!Ne.metaKey&&!Ne.altKey){if(document.activeElement===X.current)return;Ne.preventDefault(),Ne.stopPropagation(),X.current?.focus(),V(j+Ne.key),AO(ce,"body",H)}},[Re,L,ce,X,j,H,V]),Je=v.useCallback(Ne=>{fe(Ne.nativeEvent)&&(Re.current="backdrop",K(!1))},[Re,K,fe]),xt=v.useCallback(Ne=>{if(Ne.stopPropagation(),!fe(Ne.nativeEvent))return;Ne.preventDefault(),Re.current="backdrop",K(!1);const rn=document.elementsFromPoint(Ne.clientX,Ne.clientY).find(_n=>!_n.classList.contains(Fx));rn&&rn.dispatchEvent(new MouseEvent("contextmenu",{bubbles:!0,cancelable:!0,view:window,clientX:Ne.clientX,clientY:Ne.clientY,screenX:Ne.screenX,screenY:Ne.screenY,button:Ne.button,buttons:Ne.buttons,ctrlKey:Ne.ctrlKey,shiftKey:Ne.shiftKey,altKey:Ne.altKey,metaKey:Ne.metaKey}))},[Re,K,fe]),St=N!=null,{ref:nt,isOver:rt,isDropBlocked:ct}=F8({accept:N?.accept??V8,disabled:!St||(N?.disabled??!1),onDragEnter:N?.onDragEnter,onDragOver:N?.onDragOver,onDragLeave:N?.onDragLeave,onDrop:N?.onDrop}),it=Jc([be.setFloating,_e,W,St?nt:null]),ft=va(),{zIndex:Lt,portalLayerStyles:Pt}=ql("popover",z);if(!z)return null;const At=_??$?.menuSize??"sm",Z={...ue,...Se,...Pt,...Lt!==null?{zIndex:Lt}:{},...y,...k!==void 0?{"--ui-menu-drop-indicator-top":`${k}px`}:{},...Lx({width:R,minWidth:T,maxWidth:E}),...re&&we!==null?{top:"auto",bottom:we}:{},...jx({isOpen:F,isPositioned:Ae.isPositioned})},me={...Pt,...Lt!==null?{zIndex:Lt-1}:{},pointerEvents:St&&Q?"none":void 0},Le=A?DO(S):S,Xe=r!=null,Ct=a==="dialog",lt=ZO(me),He=Ux({className:c,hasDropIndicator:k!==void 0,size:At,surfaceStyle:f,style:Xe&&Le!==void 0?{...Z,maxHeight:Le}:Z,hasAttachment:Xe}),qe=Vx(Xe||Le===void 0?void 0:{maxHeight:Le},Xe,h),De=Gx(),je=Hx(d),Ie=qx(!1,m),We=Wx(),dt=c8(),Et=u8();return g.jsxs(Ax,{...ft?{root:ft}:{},children:[Fe&&g.jsx("div",{className:lt.className,style:lt.style,"data-component":"menu-backdrop",onClick:Je,onContextMenu:xt,role:"none"}),g.jsx(Ox,{context:Ae,initialFocus:ee?-1:X,returnFocus:M??ze??(Re.current!=="backdrop"&&(Re.current!=="selection"||Me)),modal:!ee,children:g.jsxs("div",{ref:it,className:He.className,style:He.style,tabIndex:-1,"data-component":"menu-popup","data-size":At,"data-drop-active":St&&rt&&!ct?"":void 0,"data-drop-blocked":St&&ct?"":void 0,...l?{"data-testid":l}:{},...Xe?{"aria-label":s??"Menu"}:{},...ke({...Ct?{role:"dialog","aria-label":s??"Menu","aria-labelledby":void 0,"aria-orientation":void 0}:{},onKeyDown:bt,onKeyDownCapture:B,onMouseDown:O?Ne=>{Ne.stopPropagation()}:void 0}),children:[St&&N?.indicator!=null?g.jsx("div",{"aria-hidden":"true",className:Et.className,style:Et.style,children:N.indicator}):null,g.jsx(Is,{menuSize:At,children:g.jsx(cO,{dismiss:!F,children:g.jsx(t0,{layerNodeId:oe,placement:C,children:g.jsx(BO,{activeIndex:U,setIsOpen:K,getItemProps:xe,searchValue:j,closeOnSelect:ne,virtualFocus:O,activeDescendantIdPrefix:le,children:g.jsx(nh,{children:g.jsxs(TN,{elementsRef:ce,labelsRef:Ee,children:[g.jsxs("div",{className:qe.className,style:qe.style,"data-component":"menu-layout",...Xe||Ct?{}:{role:"menu","aria-label":s??"Menu"},children:[t!=null?g.jsx("div",{className:De.className,style:De.style,"data-component":"menu-header",children:g.jsx(Es,{value:"header",children:t})}):null,g.jsx(Nl,{className:XO,rootStyle:[zO(),b?.root],viewportStyle:b?.viewport,contentStyle:b?.content,maxHeight:"none","data-component":"menu-body-scroll",children:g.jsx("div",{className:je.className,style:je.style,"data-component":"menu-content",onPointerEnter:P,children:g.jsx("ul",{role:"presentation",className:Ie.className,style:Ie.style,"data-component":"menu-list",children:e})})}),n!=null?g.jsx("div",{className:We.className,style:We.style,"data-component":"menu-footer",children:g.jsx(Es,{value:"footer",children:n})}):null]}),r!=null?g.jsx("div",{className:dt.className,style:dt.style,"data-component":"menu-attachment",children:g.jsx("div",{className:je.className,style:je.style,"data-component":"menu-content",children:g.jsx(Es,{value:"footer",children:r})})}):null]})})})})})})]})})]})}function W8({children:e,indent:t=!1,rootStyle:n}){const r=E8(t,n);return g.jsx("div",{className:r.className,style:r.style,"data-component":"menu-empty","data-indent":t||void 0,children:e})}function aI(e){const t=v.useContext(Zh),n=v.useContext(zx),r=t??n;if(!r)throw new Error(`${e} must be used within LegacyMenu or LegacyMenu.SubMenu`);return r}function K8(){return aI("LegacyMenu.useLayerContext")}function Y8({children:e}){const t=T8();return g.jsxs("div",{className:t.className,style:t.style,role:"status","aria-live":"polite","aria-busy":"true",children:[g.jsx(qt,{name:"loading",size:"base",modifier:"spin",className:_8}),g.jsx("span",{children:e??"Loading..."})]})}function X8({placeholder:e="Search...","aria-label":t,className:n,rootStyle:r,inputGroupRootStyle:s,value:a,onValueChange:l,autoFocus:c=!1}){const d=sf()==="body",h=uf(),m=Di(),{searchValue:b,setSearchValue:y,searchInputRef:k,activeIndex:S,setActiveIndex:R,listRef:T,setHasSearchInput:E,activeDescendantIdPrefix:C}=aI("LegacyMenu.SearchInput"),_=v.useRef(null),D=a!==void 0&&l!==void 0,M=!D||c||h?k:_,B=D?a:b;v.useEffect(()=>{if(!D)return E(!0),()=>E(!1)},[D,E]),v.useLayoutEffect(()=>{if(D&&!c)return;const F=k.current;if(!F)return;F.focus({preventScroll:!0});const z=requestAnimationFrame(()=>{document.activeElement!==F&&F.focus({preventScroll:!0})});return()=>cancelAnimationFrame(z)},[D,c,k]);const P=F=>{D?l(F.target.value):(y(F.target.value),AO(T,"body",R),l?.(F.target.value))},N=F=>{if(Mx(F))return;if(F.ctrlKey&&!F.metaKey){const q=F.key.toLowerCase();if(q==="n"||q==="p"||q==="j"||q==="k"){F.preventDefault();return}}if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Tab","Escape"].includes(F.key)&&!F.metaKey&&!F.ctrlKey&&!F.altKey&&F.stopPropagation(),D&&F.key==="Enter"){F.preventDefault(),F.stopPropagation();return}if(!D&&F.key==="Enter"&&S!=null){F.preventDefault();const q=T.current[S];q&&(q.click(),k.current?.focus())}if(F.key!=="ArrowLeft"&&F.key!=="ArrowRight")return;const U=F.currentTarget,H=Gl(F.key,m)==="end"?U.value.length:0;if(!(U.selectionStart===H&&U.selectionEnd===H)){F.stopPropagation();return}uF({event:F,direction:F.key,activeIndex:S,listRef:T,restoreFocus:()=>k.current?.focus()})},W=v8(n,r),$=g.jsx(rf,{ref:M,type:"text",variant:"unfilled",size:"md",inputGroupRootStyle:s,value:B,onChange:P,onKeyDown:N,placeholder:e,"aria-label":t??"Search menu items","aria-activedescendant":CO(C,S)});return d?g.jsx("li",{className:W.className,style:W.style,"data-component":"menu-search-row",role:"none",children:$}):g.jsx("div",{className:W.className,style:W.style,"data-component":"menu-search-row",role:"none",children:$})}function Z8(e){const[t,n]=v.useState(!1);return v.useLayoutEffect(()=>{const r=e.current;if(r===null||r.parentElement===null)return;const s=()=>{n(r.nextElementSibling?.hasAttribute("data-menu-section")??!1)};s();const a=new MutationObserver(s);return a.observe(r.parentElement,{childList:!0}),()=>a.disconnect()},[e]),t}function Q8({children:e,title:t,dividerVisibility:n="default",trailingDividerVisibility:r="default",textAction:s,titleTrailing:a,tooltip:l,noDivider:c,rootStyle:f,titleStyle:d}){const h=v.useRef(null),m=Z8(h),b=x8(f),y=s!=null||a!=null,k=QO(y,d),S=k8(),R=t!=null&&t!==!1?g.jsxs("div",{role:"presentation",className:k.className,style:k.style,"data-component":"menu-section-title","data-has-action":y||void 0,children:[g.jsx("span",{children:t}),a,s!=null?g.jsx("button",{type:"button",className:S.className,style:S.style,onClick:s.onClick,children:s.label}):null]}):null,T=R!=null&&l!=null?g.jsx(lf,{content:l,openDelay:0,closeDelay:0,children:R}):R;return g.jsxs("div",{ref:h,role:"group","aria-label":typeof t=="string"?t:void 0,className:b.className,style:b.style,"data-menu-section":!0,"data-next-is-section":m||void 0,"data-divider-visibility":n!=="default"?n:void 0,"data-trailing-divider-visibility":r!=="default"?r:void 0,"data-no-divider":c||void 0,children:[T,e]})}function lI({children:e,trigger:t="hover",placement:n,anchorRef:r,offset:s,keepHoverSubmenuInset:a=!1,closeOnSelect:l,open:c,defaultOpen:f=!1,onOpenChange:d,hoverOpenDelay:h,keepOpenOnHoverOut:m=!1,dismissOnReferenceScroll:b=!1,suppressSiblingPointerGuard:y=!1,virtualFocus:k=!1,focusItemOnOpen:S}){const R=Cx(),T=Di(),[E,C]=Dl(c,f,d,"LegacyMenu.SubMenu"),_=c!==void 0,D=t==="hover"&&(!_||r==null),[A,M]=v.useState(null),{focusItemOnHoverEnabled:B,markKeyboardNavigation:P,markPointerNavigation:N,resetFocusItemOnHover:W}=IO(),[$,F]=v.useState(""),[z,U]=v.useState(!1),H=v.useRef([]),K=v.useRef([]),q=v.useRef(null),Y=v.useId(),O=v.useRef(null),j=v.useRef(new Set);N8(R,E);const V=D8();v.useEffect(()=>{V&&V.setSubMenuOpen(E)},[E,V]);const L=v.useRef(E);v.useEffect(()=>{const rt=L.current;L.current=E,rt!==E&&(F(""),E||M(null),W())},[E,W]);const X=v.useCallback(rt=>{C(rt)},[C]);v.useEffect(()=>{if(V)return V.registerSubMenuOpener(()=>X(!0)),()=>{V.registerSubMenuOpener(null)}},[V,X]);const se=v.useCallback((rt,ct,it)=>{const ft=q.current;!rt&&t==="hover"&&(it==="hover"||it==="safe-polygon")&&(m||ft?.value&&ft.ownerDocument.activeElement===ft)||X(rt)},[m,X,t]),ne=v.useCallback(()=>{X(!1)},[X]),le=n??(t==="hover"?T==="rtl"?"left-start":"right-start":"bottom-start"),ce={mainAxis:-2,alignmentAxis:-2},ue=s??(a?ce:t==="hover"?ce:4),{refs:ge,floatingStyles:Se,context:Ae}=Ix({nodeId:R,open:E,onOpenChange:se,placement:le,middleware:[ix(ue),ox(),sx({crossAxis:le.startsWith("left")||le.startsWith("right")}),ax({padding:8,apply({availableWidth:rt,availableHeight:ct,elements:it}){it.floating.style.setProperty(MO,`${Math.max(0,Math.floor(rt))}px`),it.floating.style.setProperty(Dx,`${Math.max(0,Math.floor(ct))}px`)}})],whileElementsMounted:Lp,transform:!1});v.useLayoutEffect(()=>{const rt=r?.current;rt&&ge.setReference(rt)}),mF(D&&E&&!y,ge.domReference);const{activeId:ke}=H8(R,E),xe=ke!=null?0:h??75,Re=NN(Ae,{enabled:D,delay:{open:xe},handleClose:UN({blockPointerEvents:!1,requireIntent:!1})}),Me=DN(Ae,{enabled:t==="click"&&!_}),ze=Yh(),Fe=LN(Ae,{ancestorScroll:b,bubbles:!0,outsidePressEvent:"click",outsidePress:ze}),ye=PN(Ae,{role:"menu"}),_e=zN(Ae,{listRef:H,activeIndex:A,onNavigate:M,nested:!0,rtl:T==="rtl",loop:!0,focusItemOnOpen:k?!1:S??!0,virtual:z||k,focusItemOnHover:B&&!k}),ee=BN(Ae,{listRef:K,activeIndex:A,onMatch:z?void 0:M,enabled:!z&&!k}),{getReferenceProps:fe,getFloatingProps:Q,getItemProps:re}=jN([Re,Me,Fe,ye,_e,ee]),we=OO(re,E),Pe=v.useCallback(rt=>{const{role:ct,...it}=_O(fe(rt));return it},[fe]),Ye=v.useCallback(rt=>{const ct=j.current;return ct.add(rt),()=>{ct.delete(rt)}},[]),Ze=v.useCallback(()=>O.current!==null,[]),bt=v.useCallback(rt=>{O.current=rt;for(const ct of j.current)ct();r||ge.setReference(rt)},[r,ge.setReference]),Je=v.useCallback(()=>({...Pe(),id:Y,ref:bt,"aria-haspopup":"menu","aria-expanded":E}),[Pe,bt,Y,E]),{isMounted:xt,styles:St}=$N(Ae,{duration:{open:0,close:hF},initial:{opacity:0,transform:"scale(1)"}}),nt=v.useMemo(()=>({isOpen:E,isMounted:xt,setIsOpen:X,closeFromKeyboard:ne,activeIndex:A,setActiveIndex:M,markKeyboardNavigation:P,markPointerNavigation:N,trigger:t,closeOnSelect:l,nodeId:R,activeDescendantIdPrefix:z?R:void 0,listRef:H,labelsRef:K,searchInputRef:q,searchValue:$,setSearchValue:F,hasSearchInput:z,setHasSearchInput:U,triggerId:Y,subscribeTriggerElement:Ye,hasTriggerElement:Ze,refs:ge,floatingStyles:Se,transitionStyles:St,context:Ae,getReferenceProps:Pe,getFloatingProps:Q,getItemProps:we,getTriggerProps:Je,virtualFocus:k}),[E,xt,X,ne,A,t,P,N,l,R,$,z,Y,Ye,Ze,k,ge,Se,St,Ae,Pe,Q,we,Je]);return g.jsx(_x,{id:R,children:g.jsx(Zh.Provider,{value:nt,children:e})})}function J8({children:e,disabled:t=!1,label:n,leading:r,leadingStyle:s,trailing:a,contentStyle:l,trailingStyle:c}){const{activeIndex:f,getItemProps:d,activeDescendantIdPrefix:h}=af("LegacyMenu.SubMenuTrigger"),{shouldAllowPointerInteraction:m}=Yi("LegacyMenu.SubMenuTrigger"),b=Qh("LegacyMenu.SubMenuTrigger"),y=sf(),k=Di(),S=y==="body",R=n??(typeof e=="string"?e:""),{ref:T,index:E}=qh({label:R||null}),C=f===E,_=Jc([T,b.refs.setReference]),D=g.jsx(qt,{name:"chevron-right",color:"tertiary"}),A=d8({disabled:t,expanded:b.isOpen,focused:C}),M={role:"menuitem","aria-haspopup":"menu","aria-expanded":b.isOpen,"data-component":"menu-submenu-trigger","data-expanded":b.isOpen||void 0,tabIndex:C?0:-1,"aria-disabled":t||void 0,"data-disabled":t||void 0,"data-focused":C||void 0,[Vl]:y,className:A.className,style:A.style,...b.getReferenceProps(d({...of(h,E),onMouseDown(N){m(N.nativeEvent)||(N.preventDefault(),N.stopPropagation())},onClick(N){if(!m(N.nativeEvent)){N.preventDefault(),N.stopPropagation();return}!t&&b.trigger==="hover"&&b.setIsOpen(!0)},onKeyDown(N){(Gl(N.key,k)==="end"||N.key==="Enter"||N.key===" ")&&!t&&(N.preventDefault(),N.stopPropagation(),b.setIsOpen(!0))}}))},B=w8(),P=g.jsx(Ll,{disabled:t,leading:r,leadingStyle:s,contentStyle:l,trailing:a!=null?g.jsx("div",{className:B.className,style:B.style,"data-component":"menu-submenu-right-section",children:a}):void 0,rightFallback:D,trailingStyle:c,children:e});return S?g.jsx("li",{ref:_,...M,children:P}):g.jsx("div",{ref:_,...M,children:P})}function eq({children:e,label:t,showChevron:n=!0,onKeyDown:r,closeOnSelect:s,...a}){const l=Qh("LegacyMenu.SubMenuItem"),c=Di(),f=t??(typeof e=="string"?e:""),d=m=>{a.disabled||(r?.(m),!m.defaultPrevented&&Gl(m.key,c)==="end"&&(m.preventDefault(),m.stopPropagation(),l.setIsOpen(!0)))},h=n?g.jsx(qt,{name:"chevron-right",color:"tertiary"}):void 0;return g.jsx(rI,{...a,contextPart:"LegacyMenu.SubMenuItem",itemLabel:f,closeOnSelect:s??l.closeOnSelect,"aria-haspopup":"menu","aria-expanded":l.isOpen,referenceRef:l.refs.setReference,itemPropsTransform:l.getReferenceProps,onKeyDown:d,trailingAccessory:h,children:e})}function tq({children:e,header:t,footer:n,"aria-label":r,"data-testid":s,onPointerEnter:a,keepSearchFocus:l=!1,className:c,surfaceStyle:f,contentStyle:d,listStyle:h,width:m,minWidth:b,maxWidth:y,maxHeight:k,size:S,contentPadding:R}){const T=ya(),E=Qh("LegacyMenu.SubMenuContent"),C=Di(),_=va(),{portalLayerStyles:D}=ql("popover",E.isMounted),A=S??T?.menuSize??"sm",{virtualFocus:M}=E,B=v.useSyncExternalStore(E.subscribeTriggerElement,E.hasTriggerElement,()=>!1);if(!E.isMounted)return null;const P={...E.floatingStyles,...E.transitionStyles,...D,...Lx({width:m,minWidth:b,maxWidth:y,clampToAvailableWidth:!0}),...jx({isOpen:E.isOpen,isPositioned:E.context.isPositioned})},N=Ux({className:c,size:A,surfaceStyle:f,style:P}),W=Hx(d),$=qx(!1,h),F=DO(k),z=t!=null||n!=null,U=Vx(z?{maxHeight:F}:void 0),H=Gx(),K=Wx(),q=R===void 0?W.style:{...W.style,padding:R,scrollPaddingBlock:R},Y=V=>{V.stopPropagation()},O=B?E.triggerId:void 0,j=V=>{E.markPointerNavigation();const L=NO(V,E.listRef);if(L!=null&&L!==E.activeIndex&&E.setActiveIndex(L),!l||L==null)return;const X=E.searchInputRef.current;if(X==null)return;const se=X.ownerDocument.activeElement;se!==X&&(se instanceof HTMLInputElement||se instanceof HTMLTextAreaElement||X.focus({preventScroll:!0}))};return g.jsx(Ax,{..._?{root:_}:{},children:g.jsx(Ox,{context:E.context,disabled:M,initialFocus:E.hasSearchInput?E.searchInputRef:-1,returnFocus:!1,modal:!1,closeOnFocusOut:E.trigger==="click",children:g.jsx("div",{ref:E.refs.setFloating,className:N.className,style:N.style,"data-component":"menu-popup","data-submenu":"","data-size":A,...s?{"data-testid":s}:{},...E.getFloatingProps({...O===void 0?{}:{"aria-labelledby":O},onClick:Y,onPointerEnter:a,onMouseMove(V){j(V.target)},onPointerMove(V){j(V.target)},onKeyDown(V){if(RO(V)&&E.markKeyboardNavigation(),Gl(V.key,C)==="start"||V.key==="Escape"){V.preventDefault(),V.stopPropagation(),E.closeFromKeyboard();const L=E.refs.domReference.current;L instanceof HTMLElement&&L.focus()}}}),children:g.jsx(eI.Provider,{value:!0,children:g.jsx(Is,{menuSize:A,children:g.jsx(t0,{layerNodeId:E.nodeId,children:g.jsx(BO,{activeIndex:E.activeIndex,setIsOpen:E.setIsOpen,getItemProps:E.getItemProps,searchValue:E.searchValue,closeOnSelect:E.closeOnSelect,virtualFocus:M,activeDescendantIdPrefix:E.activeDescendantIdPrefix,children:g.jsx(TN,{elementsRef:E.listRef,labelsRef:E.labelsRef,children:z?g.jsxs("div",{className:U.className,style:U.style,role:"menu","aria-label":r??"Submenu","data-component":"menu-layout",children:[t!=null?g.jsx("div",{className:H.className,style:H.style,"data-component":"menu-header",children:g.jsx(Es,{value:"header",children:t})}):null,g.jsx(Nl,{className:XO,rootStyle:zO(),maxHeight:"none","data-component":"menu-body-scroll",children:g.jsx("div",{className:W.className,style:q,"data-component":"menu-content",children:g.jsx("ul",{role:"presentation",className:$.className,style:$.style,"data-component":"menu-list",children:g.jsx(Es,{value:"body",children:g.jsx(nh,{children:e})})})})}),n!=null?g.jsx("div",{className:K.className,style:K.style,"data-component":"menu-footer",children:g.jsx(Es,{value:"footer",children:n})}):null]}):g.jsx(Nl,{maxHeight:F,children:g.jsx("div",{className:W.className,style:q,"data-component":"menu-content",children:g.jsx("ul",{role:"menu","aria-label":r??"Submenu",className:$.className,style:$.style,"data-component":"menu-list",children:g.jsx(Es,{value:"body",children:g.jsx(nh,{children:e})})})})})})})})})})})})})}function nq({children:e,label:t,ignoreSearch:n,...r}){const s=t??(typeof e=="string"?e:"");return r0(s,n,"LegacyMenu.SwitchItem")?g.jsx(rq,{...r,itemLabel:s,children:e}):null}function rq({children:e,"data-testid":t,checked:n,defaultChecked:r=!1,onChange:s,disabled:a=!1,switchVariant:l,leading:c,leadingStyle:f,trailing:d,contentStyle:h,trailingStyle:m,rootStyle:b,tooltip:y,closeOnSelect:k,itemLabel:S}){const{activeIndex:R,getItemProps:T,setIsOpen:E,closeOnSelect:C,activeDescendantIdPrefix:_}=af("LegacyMenu.SwitchItem"),{shouldAllowPointerInteraction:D}=Yi("LegacyMenu.SwitchItem"),A=uf(),M=n0(),B=sf(),P=B==="body",N=k??C??!1,[W,$]=v.useState(r),F=n!==void 0,z=F?n:W,{ref:U,index:H}=qh({label:S||null}),K=R===H,q=v.useCallback(()=>{if(a)return;const ne=!z;F||$(ne);const oe={defaultPrevented:!1,preventDefault:()=>{oe.defaultPrevented=!0}};s?.(ne,oe),N&&!oe.defaultPrevented&&M(E)},[a,z,F,s,N,E,M]),Y=v.useCallback(ne=>{if(!D(ne.nativeEvent)){ne.preventDefault(),ne.stopPropagation();return}ne.preventDefault(),ne.stopPropagation(),q()},[q,D]),O=v.useCallback(ne=>{a||(ne.key==="Enter"||ne.key===" ")&&(ne.preventDefault(),ne.stopPropagation(),q())},[a,q]),j=T({...of(_,H),onClick:Y,onKeyDown:O}),V=f8({disabled:a,focused:K,inSubmenu:A},b),L={role:"menuitemcheckbox","aria-checked":z,tabIndex:K?0:-1,"aria-disabled":a||void 0,"data-checked":z||void 0,"data-component":"menu-toggle-row","data-disabled":a||void 0,"data-focused":K||void 0,...t?{"data-testid":t}:{},[Vl]:B,className:V.className,style:V.style,...j},X=g.jsx(Ll,{disabled:a,leading:c,leadingStyle:f,contentStyle:h,trailing:d,trailingStyle:m,trailingAccessory:g.jsx(P9,{checked:z,disabled:a,size:"sm",variant:l}),children:e}),se=P?g.jsx("li",{ref:U,...L,children:X}):g.jsx("div",{ref:U,...L,children:X});return y!=null?g.jsx(lf,{content:y,openDelay:0,closeDelay:0,children:se}):se}function iq({title:e,subtitle:t,inline:n=!1,wrapSubtitle:r=!1}){const s=g8(n),a=b8(n),l=y8({inline:n,wrap:r});return g.jsxs("div",{className:s.className,style:s.style,"data-inline":n||void 0,children:[g.jsx(Qp,{size:"md",weight:"regular",color:"primary",className:a.className,style:a.style,children:e}),t!=null?g.jsx(Qp,{size:"sm",weight:"regular",color:"tertiary",className:l.className,style:l.style,"data-wrap":r||void 0,children:t}):null]})}const sq={title:{kZKoxP:"ui-xk0z11",kB7OPa:"ui-9f619",kVQacm:"ui-b3r6kr",$$css:!0}};function oq({title:e,divider:t}){const n=QO(!1,sq.title),r=S8();return g.jsxs(g.Fragment,{children:[t?g.jsx("div",{role:"presentation","aria-hidden":"true",className:r.className,style:r.style}):null,e!==void 0?g.jsx("div",{role:"presentation",className:n.className,"data-component":"menu-section-title",style:n.style,children:g.jsx("span",{children:e})}):null]})}const Ac=typeof window<"u"?v.useLayoutEffect:v.useEffect;function ST(e){if(e!==void 0)switch(typeof e){case"number":return e;case"string":{if(e.endsWith("px"))return parseFloat(e);break}}}function aq({box:e,defaultHeight:t,defaultWidth:n,disabled:r,element:s,mode:a,style:l}){const{styleHeight:c,styleWidth:f}=v.useMemo(()=>({styleHeight:ST(l?.height),styleWidth:ST(l?.width)}),[l?.height,l?.width]),[d,h]=v.useState({height:t,width:n}),m=r||c!==void 0||a==="only-width"||c!==void 0&&f!==void 0;return Ac(()=>{if(s===null||m)return;const b=new ResizeObserver(y=>{for(const k of y){const{contentRect:S,target:R}=k;s===R&&h(T=>T.height===S.height&&T.width===S.width?T:{height:S.height,width:S.width})}});return b.observe(s,{box:e}),()=>{b?.unobserve(s)}},[e,m,s,c,f]),v.useMemo(()=>({height:c??d.height,width:f??d.width}),[d,c,f])}function lq(e){const t=v.useRef(()=>{throw new Error("Cannot call during render.")});return Ac(()=>{t.current=e},[e]),v.useCallback(n=>t.current?.(n),[t])}function ey({containerElement:e,direction:t,isRtl:n,scrollOffset:r}){return r}function yo(e,t="Assertion error"){if(!e)throw console.error(t),Error(t)}function yc(e,t){if(e===t)return!0;if(!!e!=!!t||(yo(e!==void 0),yo(t!==void 0),Object.keys(e).length!==Object.keys(t).length))return!1;for(const n in e)if(!Object.is(t[n],e[n]))return!1;return!0}function uI({cachedBounds:e,itemCount:t,itemSize:n}){if(t===0)return 0;if(typeof n=="number")return t*n;{const r=e.get(e.size===0?0:e.size-1);yo(r!==void 0,"Unexpected bounds cache miss");const s=(r.scrollOffset+r.size)/e.size;return t*s}}function uq({align:e,cachedBounds:t,index:n,itemCount:r,itemSize:s,containerScrollOffset:a,containerSize:l}){if(n<0||n>=r)throw RangeError(`Invalid index specified: ${n}`,{cause:`Index ${n} is not within the range of 0 - ${r-1}`});const c=uI({cachedBounds:t,itemCount:r,itemSize:s}),f=t.get(n),d=Math.max(0,Math.min(c-l,f.scrollOffset)),h=Math.max(0,f.scrollOffset-l+f.size);switch(e==="smart"&&(a>=h&&a<=d?e="auto":e="center"),e){case"start":return d;case"end":return h;case"center":return f.scrollOffset<=l/2?0:f.scrollOffset+f.size/2>=c-l/2?c-l:f.scrollOffset+f.size/2-l/2;default:return a>=h&&a<=d?a:a<h?h:d}}function wT({cachedBounds:e,containerScrollOffset:t,containerSize:n,itemCount:r,overscanCount:s}){const a=r-1;let l=0,c=-1,f=0,d=-1,h=0;for(;h<a;){const m=e.get(h);if(m.scrollOffset+m.size>t)break;h++}for(l=h,f=Math.max(0,l-s);h<a;){const m=e.get(h);if(m.scrollOffset+m.size>=t+n)break;h++}return c=Math.min(a,h),d=Math.min(r-1,c+s),l<0&&(l=0,c=-1,f=0,d=-1),{startIndexVisible:l,stopIndexVisible:c,startIndexOverscan:f,stopIndexOverscan:d}}function cq({itemCount:e,itemProps:t,itemSize:n}){const r=new Map;return{get(s){for(yo(s<e,`Invalid index ${s}`);r.size-1<s;){const l=r.size;let c;switch(typeof n){case"function":{c=n(l,t);break}case"number":{c=n;break}}if(l===0)r.set(l,{size:c,scrollOffset:0});else{const f=r.get(l-1);yo(f!==void 0,`Unexpected bounds cache miss for index ${s}`),r.set(l,{scrollOffset:f.scrollOffset+f.size,size:c})}}const a=r.get(s);return yo(a!==void 0,`Unexpected bounds cache miss for index ${s}`),a},set(s,a){r.set(s,a)},get size(){return r.size}}}function fq({itemCount:e,itemProps:t,itemSize:n}){return v.useMemo(()=>cq({itemCount:e,itemProps:t,itemSize:n}),[e,t,n])}function dq({containerSize:e,itemSize:t}){let n;return typeof t==="string"?(yo(t.endsWith("%"),`Invalid item size: "${t}"; string values must be percentages (e.g. "100%")`),yo(e!==void 0,"Container size must be defined if a percentage item size is specified"),n=e*parseInt(t)/100):n=t,n}function pq({containerElement:e,containerStyle:t,defaultContainerSize:n=0,direction:r,isRtl:s=!1,itemCount:a,itemProps:l,itemSize:c,onResize:f,overscanCount:d}){const[h,m]=v.useState({startIndexVisible:0,startIndexOverscan:0,stopIndexVisible:-1,stopIndexOverscan:-1}),{startIndexVisible:b,startIndexOverscan:y,stopIndexVisible:k,stopIndexOverscan:S}={startIndexVisible:Math.min(a-1,h.startIndexVisible),startIndexOverscan:Math.min(a-1,h.startIndexOverscan),stopIndexVisible:Math.min(a-1,h.stopIndexVisible),stopIndexOverscan:Math.min(a-1,h.stopIndexOverscan)},{height:R=n,width:T=n}=aq({defaultHeight:n,defaultWidth:void 0,element:e,mode:"only-height",style:t}),E=v.useRef({height:0,width:0}),C=R,_=dq({containerSize:C,itemSize:c});v.useLayoutEffect(()=>{if(typeof f=="function"){const N=E.current;(N.height!==R||N.width!==T)&&(f({height:R,width:T},{...N}),N.height=R,N.width=T)}},[R,f,T]);const D=fq({itemCount:a,itemProps:l,itemSize:_}),A=v.useCallback(N=>D.get(N),[D]),M=v.useCallback(()=>uI({cachedBounds:D,itemCount:a,itemSize:_}),[D,a,_]),B=v.useCallback(N=>{const W=ey({containerElement:e,direction:r,isRtl:s,scrollOffset:N});return wT({cachedBounds:D,containerScrollOffset:W,containerSize:C,itemCount:a,overscanCount:d})},[D,e,C,r,s,a,d]);Ac(()=>{const N=e?.scrollTop??0;m(B(N))},[e,r,B]),Ac(()=>{if(!e)return;const N=()=>{m(W=>{const{scrollLeft:$,scrollTop:F}=e,z=ey({containerElement:e,direction:r,isRtl:s,scrollOffset:F}),U=wT({cachedBounds:D,containerScrollOffset:z,containerSize:C,itemCount:a,overscanCount:d});return yc(U,W)?W:U})};return e.addEventListener("scroll",N),()=>{e.removeEventListener("scroll",N)}},[D,e,C,r,a,d]);const P=lq(({align:N="auto",containerScrollOffset:W,index:$})=>{let F=uq({align:N,cachedBounds:D,containerScrollOffset:W,containerSize:C,index:$,itemCount:a,itemSize:_});if(e){if(F=ey({containerElement:e,direction:r,isRtl:s,scrollOffset:F}),typeof e.scrollTo!="function"){const z=B(F);yc(h,z)||m(z)}return F}});return{getCellBounds:A,getEstimatedSize:M,scrollToIndex:P,startIndexOverscan:y,startIndexVisible:b,stopIndexOverscan:S,stopIndexVisible:k}}function hq(e){return v.useMemo(()=>e,Object.values(e))}function mq(e,t){const{ariaAttributes:n,style:r,...s}=e,{ariaAttributes:a,style:l,...c}=t;return yc(n,a)&&yc(r,l)&&yc(s,c)}function gq(e){return e!=null&&typeof e=="object"&&"getAverageRowHeight"in e&&typeof e.getAverageRowHeight=="function"}const bq="data-react-window-index";function yq({children:e,className:t,defaultHeight:n=0,listRef:r,onResize:s,onRowsRendered:a,overscanCount:l=3,rowComponent:c,rowCount:f,rowHeight:d,rowProps:h,tagName:m="div",style:b,...y}){const k=hq(h),S=v.useMemo(()=>v.memo(c,mq),[c]),[R,T]=v.useState(null),E=gq(d),C=v.useMemo(()=>E?F=>d.getRowHeight(F)??d.getAverageRowHeight():d,[E,d]),{getCellBounds:_,getEstimatedSize:D,scrollToIndex:A,startIndexOverscan:M,startIndexVisible:B,stopIndexOverscan:P,stopIndexVisible:N}=pq({containerElement:R,containerStyle:b,defaultContainerSize:n,direction:"vertical",itemCount:f,itemProps:k,itemSize:C,onResize:s,overscanCount:l});v.useImperativeHandle(r,()=>({get element(){return R},scrollToRow({align:F="auto",behavior:z="auto",index:U}){const H=A({align:F,containerScrollOffset:R?.scrollTop??0,index:U});typeof R?.scrollTo=="function"&&R.scrollTo({behavior:z,top:H})}}),[R,A]),Ac(()=>{if(!R)return;const F=Array.from(R.children).filter((z,U)=>{if(z.hasAttribute("aria-hidden"))return!1;const H=`${M+U}`;return z.setAttribute(bq,H),!0});if(E)return d.observeRowElements(F)},[R,E,d,M,P]),v.useEffect(()=>{M>=0&&P>=0&&a&&a({startIndex:B,stopIndex:N},{startIndex:M,stopIndex:P})},[a,M,B,P,N]);const W=v.useMemo(()=>{const F=[];if(f>0)for(let z=M;z<=P;z++){const U=_(z);F.push(v.createElement(S,{...k,ariaAttributes:{"aria-posinset":z+1,"aria-setsize":f,role:"listitem"},key:z,index:z,style:{position:"absolute",left:0,transform:`translateY(${U.scrollOffset}px)`,height:E?void 0:U.size,width:"100%"}}))}return F},[S,_,E,f,k,M,P]),$=g.jsx("div",{"aria-hidden":!0,style:{height:D(),width:"100%",zIndex:-1}});return v.createElement(m,{role:"list",...y,className:t,ref:T,style:{position:"relative",maxHeight:"100%",flexGrow:1,overflowY:"auto",...b}},W,e,$)}const cI=v.createContext(null);function vq(e){const t=v.useContext(cI);if(!t)throw new Error(`${e} must be used within LegacyMenu.VirtualizedContent`);return t}function xq({children:e,activeIndex:t,setIsOpen:n,getItemProps:r,listRef:s,closeOnSelect:a,onRowElementChange:l}){const c=v.useMemo(()=>({activeIndex:t,setIsOpen:n,getItemProps:r,listRef:s,closeOnSelect:a,onRowElementChange:l}),[t,n,r,s,a,l]);return g.jsx(cI.Provider,{value:c,children:e})}const kq=4,ET="ui-menu--virtualized";function Sq({index:e,style:t,items:n,activeIndex:r,renderItem:s,onMouseMove:a}){const l=n[e],c=r===e,f=R8();return g.jsx("div",{className:f.className,style:{...t,...f.style},onMouseMove:d=>a(e,d),children:s(l,e,c)})}function wq({items:e,itemHeight:t,renderItem:n,getItemLabel:r,header:s,footer:a,emptyState:l,"aria-label":c,className:f,style:d,surfaceStyle:h,maxHeight:m,width:b="200px",size:y,backdrop:k,closeOnSelect:S=!0,overscanCount:R=5,getItemKey:T,onPreserveActiveIndex:E,renderActivePreview:C,ref:_}){const D=ya(),{isOpen:A,isMounted:M,activeIndex:B,setActiveIndex:P,setIsOpen:N,virtualFocus:W,enableHover:$,nodeId:F,listRef:z,labelsRef:U,searchValue:H,refs:K,floatingStyles:q,middlewareData:Y,transitionStyles:O,context:j,getFloatingProps:V,getItemProps:L,dismissCauseRef:X,returnFocusOnSelect:se,returnFocus:ne}=Yi("LegacyMenu.VirtualizedContent"),oe=v.useRef(null),le=v.useRef(null),ce=v.useRef(B);ce.current=B;const Ee=v.useRef(null),[be,ue]=v.useState(null),[ge,Se]=v.useState(null),Ae=k??!$,ke=Yh(),{portalLayerStyles:xe}=ql("popover",M),Re=v.useRef(null),Me=v.useRef(void 0),ze=v.useRef(e),Fe=v.useRef(B),ye=v.useRef(null);v.useEffect(()=>{r?U.current=e.map(je=>r(je)):U.current=e.map(()=>null),z.current.length!==e.length&&(z.current.length=e.length)},[e,r,U,z]),v.useLayoutEffect(()=>{const je=ze.current!==e,Ie=Fe.current!==B;if(ze.current=e,Fe.current=B,T===void 0||B==null){Me.current=void 0;return}const We=Me.current;if(je&&!Ie&&We!==void 0){const Et=e.findIndex(Ne=>T(Ne)===We);if(Et>=0&&Et!==B){ye.current=Et,E===void 0?P(Et):E(Et);return}}const dt=e[B];Me.current=dt===void 0?void 0:T(dt)},[B,T,e,E,P]);const _e=j.placement.startsWith("top"),ee=_e&&M?Y.bottomAnchor?.bottom??null:null,fe=v.useRef(null);v.useLayoutEffect(()=>{if(!A){fe.current=null,Re.current=null;return}if(B==null||fe.current===B)return;fe.current=B;const je=ye.current===B;if(ye.current=null,je)return;const Ie=Re.current===B;Re.current=null,!Ie&&(B<0||B>=e.length||le.current?.scrollToRow({index:B,align:"smart",behavior:"instant"}))},[A,B,e.length]);const Q=v.useRef(H),re=v.useRef(A);v.useEffect(()=>{const je=Q.current,Ie=re.current;Q.current=H,re.current=A,!(!A||!Ie||je===H)&&(e.length>0&&le.current?.scrollToRow({index:0,align:"start",behavior:"instant"}),P(e.length>0?0:null))},[A,e.length,H,P]);const we=v.useCallback((je,Ie)=>{Ee.current=je,ue(We=>We===je?We:je),Se(We=>We===Ie?We:Ie)},[]);v.useLayoutEffect(()=>{if(!A||B==null||B<0||B>=e.length){we(null,null);return}const je=z.current[B];je!=null&&we(je,B)},[B,A,e.length,z,we]);const Pe=v.useCallback((je,Ie)=>{je===ce.current&&Ie!=null&&we(Ie,je)},[we]),Ye=v.useRef(null),Ze=v.useCallback((je,Ie)=>{const We=Ye.current;Ye.current={x:Ie.clientX,y:Ie.clientY},!(We!==null&&We.x===Ie.clientX&&We.y===Ie.clientY)&&B!==je&&(Re.current=je,P(je))},[B,P]),bt=v.useCallback(je=>{je.key==="Escape"&&(X.current="escape")},[X]),Je=v.useCallback(je=>{ke(je.nativeEvent)&&(X.current="backdrop",N(!1))},[X,N,ke]),xt=v.useCallback(je=>{if(!ke(je.nativeEvent))return;je.preventDefault(),X.current="backdrop",N(!1);const dt=document.elementsFromPoint(je.clientX,je.clientY).find(Et=>!Et.classList.contains(Fx));dt&&dt.dispatchEvent(new MouseEvent("contextmenu",{bubbles:!0,cancelable:!0,view:window,clientX:je.clientX,clientY:je.clientY,screenX:je.screenX,screenY:je.screenY,button:je.button,buttons:je.buttons,ctrlKey:je.ctrlKey,shiftKey:je.shiftKey,altKey:je.altKey,metaKey:je.metaKey}))},[X,N,ke]),St=Jc([K.setFloating,oe,_]),nt=va();if(!M)return null;const rt=m??cF,ct=typeof t=="number"?e.length*t:e.reduce((je,Ie,We)=>je+t(We),0),it=Math.min(ct,Math.max(0,rt-kq*2)),ft=y??D?.menuSize??"sm",Lt={...q,...O,...d,...Lx({width:b}),...xe,..._e&&ee!==null?{top:"auto",bottom:ee}:{},...jx({isOpen:A,isPositioned:j.isPositioned})},Pt=ZO(xe),At=Ux({className:f?`${ET} ${f}`:ET,size:ft,style:Lt,surfaceStyle:h}),Z=Vx(),me=Gx(),Le=Hx(),Xe=qx(!0),Ct=C8(),lt=Wx(),He=A&&ge!=null&&ge>=0&&ge<e.length&&be!=null&&C!=null?C(ge,{rowElement:be,menuContentElement:oe.current}):null,qe=He!=null&&be!=null,De={items:e,activeIndex:B,renderItem:n,onMouseMove:Ze};return g.jsxs(Ax,{...nt?{root:nt}:{},children:[Ae&&g.jsx("div",{className:Pt.className,style:Pt.style,"data-component":"menu-backdrop",onClick:Je,onContextMenu:xt,role:"none"}),g.jsx(Ox,{context:j,initialFocus:-1,returnFocus:ne??(X.current!=="backdrop"&&(X.current!=="selection"||se)),modal:!W&&A,children:g.jsx("div",{ref:St,className:At.className,style:At.style,tabIndex:-1,"data-component":"menu-popup","data-virtualized":"","data-size":ft,...V({"aria-label":c??"Menu","aria-labelledby":void 0,onKeyDown:bt,onMouseDown:W?je=>{je.stopPropagation()}:void 0}),children:g.jsx(Is,{menuSize:ft,children:g.jsx("div",{className:Z.className,style:Z.style,"data-component":"menu-layout",role:"none",children:g.jsx(cO,{dismiss:!A,children:g.jsx(t0,{layerNodeId:F,children:g.jsx(xq,{activeIndex:B,setIsOpen:N,getItemProps:L,listRef:z,closeOnSelect:S,onRowElementChange:Pe,children:g.jsxs(nh,{children:[s!=null?g.jsx("div",{className:me.className,style:me.style,"data-component":"menu-header",children:g.jsx(Es,{value:"header",children:s})}):null,e.length>0?g.jsx("div",{className:Le.className,style:Le.style,"data-component":"menu-content",children:g.jsx("div",{className:Xe.className,style:Xe.style,"data-component":"menu-list",role:"presentation",children:g.jsx(yq,{listRef:le,className:Ct.className,role:"none",rowComponent:Sq,rowProps:De,rowCount:e.length,rowHeight:t,overscanCount:R,"data-native-scrollbar":"none",style:{height:it}})})}):l,a!=null?g.jsx("div",{className:lt.className,style:lt.style,"data-component":"menu-footer",children:g.jsx(Es,{value:"footer",children:a})}):null,C!=null?g.jsx(lI,{open:qe,placement:"right-start",anchorRef:Ee,offset:6,closeOnSelect:!1,virtualFocus:!0,children:qe?He:null}):null]})})})})})})})})]})}function Eq({index:e,children:t,disabled:n=!1,onSelect:r,onMouseDown:s,leading:a,leadingStyle:l,contentStyle:c,trailing:f,trailingStyle:d,wideLeftSection:h=!1,tooltip:m,tooltipContentKey:b,closeOnSelect:y,description:k,variant:S="default",checked:R,ref:T}){const{shouldAllowPointerInteraction:E,virtualFocus:C,activeDescendantIdPrefix:_}=Yi("LegacyMenu.VirtualizedItem"),D=uf(),{activeIndex:A,setIsOpen:M,getItemProps:B,listRef:P,closeOnSelect:N,onRowElementChange:W}=vq("LegacyMenu.VirtualizedItem"),$=y??N??!0,F=A===e,z=v.useCallback(be=>{P.current[e]=be,W?.(e,be),typeof T=="function"?T(be):T&&(T.current=be)},[e,P,W,T]),U=()=>{if(n)return;const be={defaultPrevented:!1,preventDefault:()=>{be.defaultPrevented=!0}};r?.(be),$&&!be.defaultPrevented&&M(!1)},H=be=>{if(!E(be.nativeEvent)){be.preventDefault(),be.stopPropagation();return}U()},K=be=>{n||(be.key==="Enter"||be.key===" ")&&(be.preventDefault(),U())},q=be=>{if(!E(be.nativeEvent)){be.preventDefault(),be.stopPropagation();return}s?.(be),!be.defaultPrevented&&C&&be.preventDefault()},{onMouseMove:Y,onPointerLeave:O,...j}=B({...of(_,e),onClick:H,onKeyDown:K,onMouseDown:q}),V=Yx(),L=Xx(),X=Zx(),se=k!=null?g.jsxs("div",{className:V.className,style:V.style,children:[g.jsx("div",{className:L.className,style:L.style,children:t}),g.jsx("div",{className:X.className,style:X.style,"data-component":"menu-item-description",children:k})]}):t,ne=Kx({disabled:n,focused:F,inSubmenu:D,variant:S}),oe=R!==void 0,le=oe&&a==null?g.jsx(FA,{checked:R,disabled:n}):a,ce=oe?{role:"menuitemcheckbox","aria-checked":R,"data-checked":R||void 0}:{role:"menuitem"},Ee=g.jsx("li",{ref:z,...ce,tabIndex:F?0:-1,"aria-disabled":n||void 0,"data-component":"menu-row","data-disabled":n||void 0,"data-focused":F||void 0,"data-has-description":k!=null||void 0,"data-variant":S!=="default"?S:void 0,"data-wide-left":h||void 0,[Vl]:"body",className:ne.className,style:ne.style,...j,children:g.jsx(Ll,{disabled:n,leading:le,leadingStyle:l,contentStyle:c,trailing:f,trailingStyle:d,wideLeft:h,children:se})});return m!=null?g.jsx(lf,{content:m,contentKey:b,children:Ee}):Ee}function TT({children:e,open:t,defaultOpen:n,onOpenChange:r,activeIndex:s,onActiveIndexChange:a,placement:l,offset:c,flip:f,closeOnSelect:d,instantClose:h,instantTransitions:m,returnFocusOnSelect:b,returnFocus:y,focusItemOnOpen:k,virtualFocus:S,shouldKeepOpenDuringDrag:R,lockPositionWhileOpen:T,dismissOnReferenceScroll:E}){return g.jsx(vF,{open:t,defaultOpen:n,onOpenChange:r,activeIndex:s,onActiveIndexChange:a,placement:l,offset:c,flip:f,closeOnSelect:d,instantClose:h,instantTransitions:m,returnFocusOnSelect:b,returnFocus:y,focusItemOnOpen:k,virtualFocus:S,shouldKeepOpenDuringDrag:R,lockPositionWhileOpen:T,dismissOnReferenceScroll:E,children:e})}function Tq(e){return Ao()===null?g.jsx(d5,{children:g.jsx(TT,{...e})}):g.jsx(TT,{...e})}function fI(e,t,n){const{ref:r,...s}=n,a=qN({defaultTagName:"button",props:s,ref:r,render:e});return t?e:a}function Rq({children:e,disabled:t=!1}){const{getTriggerProps:n}=Yi("LegacyMenu.Trigger");return fI(e,t,n())}function Cq({children:e,onClick:t,disabled:n=!1}){const{getTriggerProps:r,setHasHoverTrigger:s,setIsOpen:a}=Yi("LegacyMenu.HoverTrigger");v.useEffect(()=>{if(!n)return s(!0),()=>s(!1)},[n,s]);const l=r();return fI(e,n,{...l,onPointerDown:Xu(void 0,Xu(l.onPointerDown,c=>{c.button===2&&a(!1)})),onContextMenu:Xu(void 0,Xu(l.onContextMenu,c=>{a(!1),c.stopPropagation()})),onClick:Xu(t,c=>{l.onClick?.(c)})})}const _q=Object.assign(lI,{useContext:O8}),ei=Object.assign(Tq,{useContext:LO,useLayerContext:K8,Trigger:Rq,HoverTrigger:Cq,Content:G8,Item:nI,CheckboxItem:P8,TextItem:iq,SwitchItem:nq,Section:Q8,SearchInput:X8,EmptyState:W8,LoadingState:Y8,ExpandableSection:L8,ExpandableSectionTrigger:j8,ExpandableSectionContent:z8,SubMenu:_q,SubMenuItem:eq,SubMenuTrigger:J8,SubMenuContent:tq,VirtualizedContent:wq,VirtualizedItem:Eq,VirtualizedSectionHeader:oq}),dI=v.createContext(void 0);function i0(){const e=v.useContext(dI);if(e===void 0)throw new Error(In(64));return e}let Aq=(function(e){return e.activationDirection="data-activation-direction",e.orientation="data-orientation",e})({});const Jh={tabActivationDirection:e=>({[Aq.activationDirection]:e})},pI=v.forwardRef(function(t,n){const{className:r,defaultValue:s=0,onValueChange:a,orientation:l="horizontal",render:c,value:f,style:d,...h}=t,m=t.defaultValue!==void 0,b=v.useRef([]),[y,k]=v.useState(()=>new Map),[S,R]=Al({controlled:f,default:s,name:"Tabs",state:"value"}),T=f!==void 0,[E,C]=v.useState(()=>new Map),_=v.useRef(void 0),D=v.useCallback(ce=>{if(ce===void 0)return null;for(const[Ee,be]of E.entries())if(be!=null&&ce===(be.value??be.index))return Ee;return null},[E]),[A,M]=v.useState(()=>({previousValue:S,tabActivationDirection:"none"})),{previousValue:B,tabActivationDirection:P}=A;let N=P,W=!1;B!==S&&(N=RT(B,S,l,E),W=B!=null&&S!=null&&D(S)==null);const $=W?B:S,F=B!==$||P!==N;Ve(()=>{F&&M({previousValue:$,tabActivationDirection:N})},[$,F,N]);const z=Ke((ce,Ee)=>{const be=RT(S,ce,l,E);Ee.activationDirection=be,a?.(ce,Ee),!Ee.isCanceled&&R(ce)}),U=Ke((ce,Ee)=>{a?.(ce,Rt(Ee,void 0,void 0,{activationDirection:"none"}))}),H=Ke((ce,Ee)=>{k(be=>{if(be.get(ce)===Ee)return be;const ue=new Map(be);return ue.set(ce,Ee),ue})}),K=Ke((ce,Ee)=>{k(be=>{if(!be.has(ce)||be.get(ce)!==Ee)return be;const ue=new Map(be);return ue.delete(ce),ue})}),q=v.useCallback(ce=>y.get(ce),[y]),Y=v.useCallback(ce=>{for(const Ee of E.values())if(ce===Ee?.value)return Ee?.id},[E]),O=v.useMemo(()=>({getTabElementBySelectedValue:D,getTabIdByPanelValue:Y,getTabPanelIdByValue:q,onValueChange:z,orientation:l,registerMountedTabPanel:H,setTabMap:C,unregisterMountedTabPanel:K,tabActivationDirection:N,value:S}),[D,Y,q,z,l,H,C,K,N,S]),j=v.useMemo(()=>{for(const ce of E.values())if(ce!=null&&ce.value===S)return ce},[E,S]),V=v.useMemo(()=>{for(const ce of E.values())if(ce!=null&&!ce.disabled)return ce.value},[E]),L=v.useRef(!m),X=v.useRef(s),se=v.useRef(m),ne=v.useRef(!1);Ve(()=>{if(T)return;function ce(ge,Se){R(ge),M(Ae=>Ae.previousValue===ge&&Ae.tabActivationDirection==="none"?Ae:{previousValue:ge,tabActivationDirection:"none"}),U(ge,Se),L.current=!1}if(E.size===0){ne.current&&S!==null&&!_.current?.isConnected&&ce(null,Aw);return}ne.current=!0,_.current=E.keys().next().value;const Ee=j?.disabled,be=j==null&&S!==null;if(!Ee&&S===X.current&&(se.current=!1),se.current&&Ee&&S===X.current)return;const ue=L.current;if(Ee||be){const ge=V??null;if(S===ge){L.current=!1;return}let Se=Aw;ue?Se=Nw:Ee&&(Se=p_),ce(ge,Se);return}ue&&j!=null&&(U(S,Nw),L.current=!1)},[V,T,U,j,R,E,S]);const le=bn("div",t,{state:{orientation:l,tabActivationDirection:N},ref:n,props:h,stateAttributesMapping:Jh});return g.jsx(dI.Provider,{value:O,children:g.jsx(wx,{elementsRef:b,children:le})})});function RT(e,t,n,r){if(e==null||t==null)return"none";let s=null,a=null;for(const[f,d]of r.entries()){if(d==null)continue;const h=d.value??d.index;if(e===h&&(s=f),t===h&&(a=f),s!=null&&a!=null)break}if(s==null||a==null)return s!==a&&(typeof e=="number"||typeof e=="string")&&typeof e==typeof t?n==="horizontal"?t>e?"right":"left":t>e?"down":"up":"none";const l=s.getBoundingClientRect(),c=a.getBoundingClientRect();if(n==="horizontal"){if(c.left<l.left)return"left";if(c.left>l.left)return"right"}else{if(c.top<l.top)return"up";if(c.top>l.top)return"down"}return"none"}const hI=v.createContext(void 0);function mI(){const e=v.useContext(hI);if(e===void 0)throw new Error(In(65));return e}const gI=v.forwardRef(function(t,n){const{className:r,disabled:s=!1,render:a,value:l,id:c,nativeButton:f=!0,style:d,...h}=t,{value:m,getTabPanelIdByValue:b,orientation:y,tabActivationDirection:k}=i0(),{activateOnFocus:S,highlightedTabIndex:R,onTabActivation:T,registerTabResizeObserverElement:E,setHighlightedTabIndex:C,tabsListElement:_}=mI(),D=Fl(c),A=v.useMemo(()=>({disabled:s,id:D,value:l}),[s,D,l]),{compositeProps:M,compositeRef:B,index:P}=KN({metadata:A}),N=l===m,W=v.useRef(!1),$=v.useRef(null);Ve(()=>{const L=$.current;if(L)return E(L)},[E]),Ve(()=>{if(W.current){W.current=!1;return}if(!(N&&P>-1&&R!==P))return;const L=_;if(L!=null){const X=pr(Wt(L));if(X&&ht(L,X))return}s||C(P)},[N,P,R,C,s,_]);const{getButtonProps:F,buttonRef:z}=$l({disabled:s,native:f,focusableWhenDisabled:!0}),U=b(l),H=v.useRef(!1),K=v.useRef(!1);function q(L){N||s||T(l,Rt(Ni,L.nativeEvent,void 0,{activationDirection:"none"}))}function Y(L){N||(P>-1&&!s&&C(P),!s&&S&&(!H.current||H.current&&K.current)&&T(l,Rt(Ni,L.nativeEvent,void 0,{activationDirection:"none"})))}function O(L){if(N||s)return;H.current=!0;function X(){H.current=!1,K.current=!1}(!L.button||L.button===0)&&(K.current=!0,Wt(L.currentTarget).addEventListener("pointerup",X,{once:!0}))}return bn("button",t,{state:{disabled:s,active:N,orientation:y,tabActivationDirection:k},ref:[n,z,B,$],props:[M,{role:"tab","aria-controls":U,"aria-selected":N,id:D,onClick:q,onFocus:Y,onPointerDown:O,[mO]:N?"":void 0,onKeyDownCapture(){W.current=!0}},h,F],stateAttributesMapping:Jh})});function Nq(){return Zn}function Oq(){return!1}function Iq(){return!0}function Mq(){return lx.useSyncExternalStore(Nq,Oq,Iq)}const Dq='!function(){const t=document.currentScript.previousElementSibling;if(!t)return;const e=t.closest(\'[role="tablist"]\');if(!e)return;const i=e.querySelector("[data-active]");if(!i)return;if(0===i.offsetWidth||0===e.offsetWidth)return;let o=0,n=0,h=0,l=0,r=0,f=0;function s(t){const e=getComputedStyle(t);let i=parseFloat(e.width)||0,o=parseFloat(e.height)||0;return(Math.round(i)!==t.offsetWidth||Math.round(o)!==t.offsetHeight)&&(i=t.offsetWidth,o=t.offsetHeight),{width:i,height:o}}if(null!=i&&null!=e){const{width:t,height:c}=s(i),{width:u,height:d}=s(e),a=i.getBoundingClientRect(),g=e.getBoundingClientRect(),p=u>0?g.width/u:1,b=d>0?g.height/d:1;if(Math.abs(p)>Number.EPSILON&&Math.abs(b)>Number.EPSILON){const t=a.left-g.left,i=a.top-g.top;o=t/p+e.scrollLeft-e.clientLeft,h=i/b+e.scrollTop-e.clientTop}else o=i.offsetLeft,h=i.offsetTop;r=t,f=c,n=e.scrollWidth-o-r,l=e.scrollHeight-h-f}function c(e,i){t.style.setProperty(`--active-tab-${e}`,`${i}px`)}c("left",o),c("right",n),c("top",h),c("bottom",l),c("width",r),c("height",f),r>0&&f>0&&t.removeAttribute("hidden")}();';let al=(function(e){return e.activeTabLeft="--active-tab-left",e.activeTabRight="--active-tab-right",e.activeTabTop="--active-tab-top",e.activeTabBottom="--active-tab-bottom",e.activeTabWidth="--active-tab-width",e.activeTabHeight="--active-tab-height",e})({});const Lq=v.createContext(void 0),jq={disableStyleElements:!1};function bI(){return v.useContext(Lq)??jq}const zq={...Jh,activeTabPosition:()=>null,activeTabSize:()=>null},yI=v.forwardRef(function(t,n){const{className:r,render:s,renderBeforeHydration:a=!1,style:l,...c}=t,{nonce:f}=bI(),{getTabElementBySelectedValue:d,orientation:h,tabActivationDirection:m,value:b}=i0(),{tabsListElement:y,registerIndicatorUpdateListener:k}=mI(),S=Mq(),R=$$();v.useEffect(()=>k(R),[k,R]);let T=0,E=0,C=0,_=0,D=0,A=0,M=!1;if(b!=null&&y!=null){const z=d(b);if(z!=null){M=!0;const{width:U,height:H}=uT(z),{width:K,height:q}=uT(y),Y=z.getBoundingClientRect(),O=y.getBoundingClientRect(),j=K>0?O.width/K:1,V=q>0?O.height/q:1;if(Math.abs(j)>Number.EPSILON&&Math.abs(V)>Number.EPSILON){const X=Y.left-O.left,se=Y.top-O.top;T=X/j+y.scrollLeft-y.clientLeft,C=se/V+y.scrollTop-y.clientTop}else T=z.offsetLeft,C=z.offsetTop;D=U,A=H,E=y.scrollWidth-T-D,_=y.scrollHeight-C-A}}const B=M?{left:T,right:E,top:C,bottom:_}:null,P=M?{width:D,height:A}:null,N=M?{[al.activeTabLeft]:`${T}px`,[al.activeTabRight]:`${E}px`,[al.activeTabTop]:`${C}px`,[al.activeTabBottom]:`${_}px`,[al.activeTabWidth]:`${D}px`,[al.activeTabHeight]:`${A}px`}:void 0,W=M&&D>0&&A>0,F=bn("span",t,{state:{orientation:h,activeTabPosition:B,activeTabSize:P,tabActivationDirection:m},ref:n,props:[{role:"presentation",style:N,hidden:!W},c,{suppressHydrationWarning:!0}],stateAttributesMapping:zq});return b==null?null:g.jsxs(v.Fragment,{children:[F,S&&a&&g.jsx("script",{nonce:f,dangerouslySetInnerHTML:{__html:Dq},suppressHydrationWarning:!0})]})}),vI=v.forwardRef(function(t,n){const{activateOnFocus:r=!1,className:s,loopFocus:a=!0,render:l,style:c,...f}=t,{onValueChange:d,orientation:h,value:m,setTabMap:b,tabActivationDirection:y}=i0(),[k,S]=v.useState(0),[R,T]=v.useState(null),E=v.useRef(new Set),C=v.useRef(new Set),_=v.useRef(null);Ve(()=>{if(typeof ResizeObserver>"u")return;const W=new ResizeObserver(()=>{E.current.forEach($=>{$()})});return _.current=W,R&&W.observe(R),C.current.forEach($=>{W.observe($)}),()=>{W.disconnect(),_.current=null}},[R]);const D=Ke(W=>(E.current.add(W),()=>{E.current.delete(W)})),A=Ke(W=>(C.current.add(W),_.current?.observe(W),()=>{C.current.delete(W),_.current?.unobserve(W)})),M=Ke((W,$)=>{W!==m&&d(W,$)}),B={orientation:h,tabActivationDirection:y},P={"aria-orientation":h==="vertical"?"vertical":void 0,role:"tablist"},N=v.useMemo(()=>({activateOnFocus:r,highlightedTabIndex:k,registerIndicatorUpdateListener:D,registerTabResizeObserverElement:A,onTabActivation:M,setHighlightedTabIndex:S,tabsListElement:R}),[r,k,D,A,M,S,R]);return g.jsx(hI.Provider,{value:N,children:g.jsx(N9,{render:l,className:s,style:c,state:B,refs:[n,T],props:[P,f],stateAttributesMapping:Jh,highlightedIndex:k,enableHomeAndEndKeys:!0,loopFocus:a,orientation:h,onHighlightedIndexChange:S,onMapChange:b,disabledIndices:ko})})}),Wd={base:{k1xSpc:"ui-3nfvp2",kGNEyG:"ui-1qjc9v5",kB7OPa:"ui-9f619",kVAEAm:"ui-1n2onr6",kzQI83:"ui-1iyjqo2",k7Eaqz:"ui-euugli",ks0D6T:"ui-193iq5w",$$css:!0},default:{kWkggS:"ui-flfp0o",$$css:!0},padded:{kLKAdn:"ui-493x5y",kpe85a:"ui-14ndyrl",kGO01o:"ui-b6dno7",kE3dHu:"ui-1e7ydrk",$$css:!0},rounded:{kaIpWk:"ui-1i4c3av",$$css:!0}},Pq={sm:{kZKoxP:"ui-1e94bgo",$$css:!0},md:{kZKoxP:"ui-170hpbr",$$css:!0},lg:{kZKoxP:"ui-t8t6p",$$css:!0},xl:{kZKoxP:"ui-12tj2o0",$$css:!0}},$q={sm:{kZKoxP:"ui-jmh96e",$$css:!0},md:{kZKoxP:"ui-17n66dt",$$css:!0},lg:{kZKoxP:"ui-y8quj6",$$css:!0},xl:{kZKoxP:"ui-1wl7iu6",$$css:!0}},Bq={sm:{kaIpWk:"ui-1yjdzib",$$css:!0},md:{kaIpWk:"ui-17dxljr",$$css:!0},lg:{kaIpWk:"ui-172nrg4",$$css:!0},xl:{kaIpWk:"ui-1y34t1",$$css:!0}},Fq={sm:{kaIpWk:"ui-13mijux",$$css:!0},md:{kaIpWk:"ui-1k9pyrz",$$css:!0},lg:{kaIpWk:"ui-1fkry76",$$css:!0},xl:{kaIpWk:"ui-126z3em",$$css:!0}},CT={base:{kVAEAm:"ui-10l6tqk",kY2c9j:"ui-1ja2u2z",kfzvcC:"ui-47corl",kB7OPa:"ui-9f619",kbCHJM:"ui-vbikie",k87sOh:"ui-10uur0e",kzqmXN:"ui-offw1",kZKoxP:"ui-1gezbiy",kWkggS:"ui-i07v4r",k1ekBW:"ui-98hnz2",kIyJzY:"ui-1bqoo3p ui-sagj69",kAMwcw:"ui-1tkypeg",$$css:!0},rounded:{kaIpWk:"ui-1i4c3av",$$css:!0}},Kd={base:{kysU6D:"ui-jyslct",kzQI83:"ui-1c4vz4f",kmuXW:"ui-2lah0s",kCS8Yb:"ui-dl72j9",kVAEAm:"ui-1n2onr6",kY2c9j:"ui-1vjfegm",kWkggS:"ui-jbqb8w",kMwMTN:"ui-19aaqeu ui-1qp4pc4 ui-1gfq6vl",k1ekBW:"ui-1gbuem2",kIyJzY:"ui-g3p6pi ui-sagj69",kAMwcw:"ui-6ekqhr",$$css:!0},fullWidth:{kzQI83:"ui-1iyjqo2",kCS8Yb:"ui-1r8uery",$$css:!0},compact:{kMwMTN:"ui-4b2ntj ui-1qp4pc4 ui-1gfq6vl",$$css:!0},rounded:{kaIpWk:"ui-1i4c3av",$$css:!0}};function xI(e,t){return e==="outline"?Fq[t]:Bq[t]}function Uq(e,t){return e==="outline"?$q[t]:Hi[t]}const kI=v.createContext(null);function qq(){const e=v.use(kI);if(e===null)throw new Error("SegmentedControl.Item must be used within SegmentedControl");return e}function Hq({value:e,defaultValue:t,onValueChange:n,variant:r="default",size:s="md",rounded:a=!1,disabled:l=!1,fullWidth:c=!1,children:f,"aria-label":d,"aria-labelledby":h,...m}){const b=v.useMemo(()=>({variant:r,size:s,rounded:a,disabled:l,fullWidth:c}),[l,c,a,s,r]);return g.jsx(kI.Provider,{value:b,children:g.jsx(pI,{...m,value:e,defaultValue:t,onValueChange:n,"data-component":"segmented-control","data-size":s,"data-variant":r,"data-rounded":a||void 0,...{0:{className:"ui-3nfvp2 ui-1qjc9v5 ui-9f619 ui-2lah0s ui-eq5yr9 ui-193iq5w"},1:{className:"ui-3nfvp2 ui-1qjc9v5 ui-9f619 ui-2lah0s ui-193iq5w ui-h8yej3"}}[!!c<<0],children:g.jsxs(vI,{activateOnFocus:!0,"aria-label":d,"aria-labelledby":h,"data-component":"segmented-control-list","data-disabled":l||void 0,...zt(Wd.base,Wd.padded,Pq[s],r==="default"&&Wd.default,r==="outline"&&la.outline,a?Wd.rounded:ws[s]),children:[f,g.jsx(yI,{"data-component":"segmented-control-indicator",...zt(CT.base,a?CT.rounded:xI(r,s))})]})})})}function Vq({value:e,disabled:t=!1,children:n,...r}){const s=qq();return g.jsx(gI,{...r,value:e,disabled:s.disabled||t,"data-component":"segmented-control-item","data-size":s.size,"data-variant":s.variant,"data-rounded":s.rounded||void 0,...zt(vx.root,Ei.content,Mh.root,s.rounded?Kd.rounded:xI(s.variant,s.size),Uq(s.variant,s.size),Ei.size[s.size],s.size==="sm"?Ms.root:Ei.typography[s.size],Kd.base,s.variant==="compact"&&Kd.compact,s.fullWidth&&Kd.fullWidth),children:n})}const vc=Object.assign(Hq,{Item:Vq}),SI=v.createContext(null),wI=v.createContext(null);function Ds(){const e=v.useContext(SI);if(e===null)throw new Error(In(60));return e}function EI(){const e=v.useContext(wI);if(e===null)throw new Error(In(61));return e}const pt={id:tt(e=>e.id),labelId:tt(e=>e.labelId),modal:tt(e=>e.modal),multiple:tt(e=>e.multiple),items:tt(e=>e.items),itemToStringLabel:tt(e=>e.itemToStringLabel),itemToStringValue:tt(e=>e.itemToStringValue),isItemEqualToValue:tt(e=>e.isItemEqualToValue),value:tt(e=>e.value),hasSelectedValue:tt(e=>{const{value:t,multiple:n,itemToStringValue:r}=e;return t==null?!1:n&&Array.isArray(t)?t.length>0:Jo(t,r)!==""}),hasNullItemLabel:tt((e,t)=>t?r4(e.items):!1),open:tt(e=>e.open),mounted:tt(e=>e.mounted),forceMount:tt(e=>e.forceMount),transitionStatus:tt(e=>e.transitionStatus),openMethod:tt(e=>e.openMethod),activeIndex:tt(e=>e.activeIndex),selectedIndex:tt(e=>e.selectedIndex),isActive:tt((e,t)=>e.activeIndex===t),isSelected:tt((e,t)=>{const n=e.isItemEqualToValue,r=e.value;return e.multiple?Array.isArray(r)&&r.some(s=>ua(t,s,n)):ua(t,r,n)}),isSelectedByFocus:tt((e,t)=>e.selectedIndex===t),popupProps:tt(e=>e.popupProps),triggerProps:tt(e=>e.triggerProps),triggerElement:tt(e=>e.triggerElement),positionerElement:tt(e=>e.positionerElement),listElement:tt(e=>e.listElement),popupSide:tt(e=>e.popupSide),scrollUpArrowVisible:tt(e=>e.scrollUpArrowVisible),scrollDownArrowVisible:tt(e=>e.scrollDownArrowVisible),hasScrollArrows:tt(e=>e.hasScrollArrows)};function lc(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const vs=1;function TI(e,t){return Math.max(0,e-t)}function Gq(e,t){if(t<=0)return 0;const n=lc(e,0,t),r=n,s=t-n,a=r<=vs,l=s<=vs;return a&&l?r<=s?0:t:a?0:l?t:n}function Wq(e){const{id:t,value:n,defaultValue:r=null,onValueChange:s,open:a,defaultOpen:l=!1,onOpenChange:c,name:f,form:d,autoComplete:h,disabled:m=!1,readOnly:b=!1,required:y=!1,modal:k=!0,actionsRef:S,inputRef:R,onOpenChangeComplete:T,items:E,multiple:C=!1,itemToStringLabel:_,itemToStringValue:D,isItemEqualToValue:A=e4,highlightItemOnHover:M=!0,children:B}=e,{clearErrors:P}=BA(),{setDirty:N,setTouched:W,setFocused:$,validityData:F,setFilled:z,name:U,disabled:H,validation:K,validationMode:q}=Dh(),Y=Sx({id:t}),O=H||m,j=U??f,[V,L]=Al({controlled:n,default:C?r??ko:r,name:"Select",state:"value"}),[X,se]=Al({controlled:a,default:l,name:"Select",state:"open"}),ne=v.useRef([]),oe=v.useRef([]),le=v.useRef(null),ce=v.useRef(null),Ee=v.useRef(0),be=v.useRef(null),ue=v.useRef([]),ge=v.useRef(!1),Se=v.useRef(null),Ae=v.useRef(null),ke=v.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0}),xe=v.useRef(!1),{mounted:Re,setMounted:Me,transitionStatus:ze}=Yc(X),{openMethod:Fe,triggerProps:ye}=k3(X),_e=zr(()=>new nA({id:Y,labelId:void 0,modal:k,multiple:C,itemToStringLabel:_,itemToStringValue:D,isItemEqualToValue:A,value:V,open:X,mounted:Re,transitionStatus:ze,items:E,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:{},triggerProps:{},triggerElement:null,positionerElement:null,listElement:null,popupSide:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1})).current,ee=mt(_e,pt.activeIndex),fe=mt(_e,pt.selectedIndex),Q=mt(_e,pt.triggerElement),re=mt(_e,pt.positionerElement),we=c9(Fe),Pe=Fe??we??null,Ye=v.useMemo(()=>C?"":Jo(V,D),[C,V,D]),Ze=v.useMemo(()=>C&&Array.isArray(V)?V.map(Ie=>Jo(Ie,D)):Jo(V,D),[C,V,D]),bt=On(_e.state.triggerElement),Je=Ke(()=>Ze);$A(bt,Y,V,Je,!O,f);const xt=v.useRef(V),St=C?Array.isArray(V)&&V.length>0:V!=null&&Jo(V,D)!=="";Ve(()=>{V!==xt.current&&_e.set("forceMount",!0)},[_e,V]),Ve(()=>{z(St)},[St,z]),Ve(function(){const We=ue.current;let dt;if(C){const Et=Array.isArray(V)?V:[];if(Et.length===0)dt=null;else{const Ne=Et[Et.length-1],Tt=mc(We,Ne,A);dt=Tt===-1?null:Tt}}else{const Et=mc(We,V,A);dt=Et===-1?null:Et}dt===null&&(Ae.current=null),!X&&_e.set("selectedIndex",dt)},[St,C,X,V,ue,A,_e,Ae]);function nt(Ie){const We=F.initialValue;return Array.isArray(Ie)&&Array.isArray(We)?!z6(Ie,We,(dt,Et)=>ua(dt,Et,A)):Ie!==We}TA(V,()=>{P(j),N(nt(V)),K.change(V)});const rt=Ke((Ie,We)=>{c?.(Ie,We),!We.isCanceled&&(se(Ie),!Ie&&(We.reason===vh||We.reason===Vv)&&(W(!0),$(!1),q==="onBlur"&&K.commit(V)))}),ct=Ke(()=>{Me(!1),_e.update({activeIndex:null,openMethod:null}),T?.(!1)});_o({enabled:!S,open:X,ref:le,onComplete(){X||ct()}}),v.useImperativeHandle(S,()=>({unmount:ct}),[ct]);const it=Ke((Ie,We)=>{s?.(Ie,We),!We.isCanceled&&L(Ie)}),ft=Ke(()=>{const Ie=_e.state.listElement||le.current;if(!Ie)return;const We=TI(Ie.scrollHeight,Ie.clientHeight),dt=Gq(Ie.scrollTop,We),Et=dt>0,Ne=dt<We;_e.state.scrollUpArrowVisible!==Et&&_e.set("scrollUpArrowVisible",Et),_e.state.scrollDownArrowVisible!==Ne&&_e.set("scrollDownArrowVisible",Ne)}),Lt=mA({open:X,onOpenChange:rt,elements:{reference:Q,floating:re}}),Pt=DP(Lt,{enabled:!b&&!O,event:"mousedown"}),At=nx(Lt),Z=Q$(Lt,{enabled:!b&&!O,listRef:ne,activeIndex:ee,selectedIndex:fe,disabledIndices:ko,onNavigate(Ie){Ie===null&&!X||_e.set("activeIndex",Ie)},focusItemOnHover:M}),me=J$(Lt,{enabled:!b&&!O&&(X||!C),listRef:oe,activeIndex:ee,selectedIndex:fe,disabledIndices:Ie=>YN(ne.current[Ie]),onMatch(Ie){X?_e.set("activeIndex",Ie):it(ue.current[Ie],Rt("none"))},onTyping(Ie){ge.current=Ie}}),Le=v.useMemo(()=>{const Ie=Gi(me.reference,Z.reference,At.reference,Pt.reference,ye);return Y&&(Ie.id=Y),Ie},[Pt.reference,me.reference,Z.reference,At.reference,ye,Y]),Xe=v.useMemo(()=>Gi(fx,me.floating,Z.floating,At.floating),[me.floating,Z.floating,At.floating]),Ct=Z.item??Bn;J_(()=>{_e.update({popupProps:Xe,triggerProps:Le})}),Ve(()=>{_e.update({id:Y,modal:k,multiple:C,value:V,open:X,mounted:Re,transitionStatus:ze,popupProps:Xe,triggerProps:Le,items:E,itemToStringLabel:_,itemToStringValue:D,isItemEqualToValue:A,openMethod:Pe})},[_e,Y,k,C,V,X,Re,ze,Xe,Le,E,_,D,A,Pe]);const lt=v.useMemo(()=>({store:_e,name:j,required:y,disabled:O,readOnly:b,multiple:C,highlightItemOnHover:M,setValue:it,setOpen:rt,listRef:ne,popupRef:le,scrollHandlerRef:ce,handleScrollArrowVisibility:ft,scrollArrowsMountedCountRef:Ee,itemProps:Ct,valueRef:be,valuesRef:ue,labelsRef:oe,typingRef:ge,selectionRef:ke,firstItemTextRef:Se,selectedItemTextRef:Ae,validation:K,onOpenChangeComplete:T,alignItemWithTriggerActiveRef:xe,initialValueRef:xt}),[_e,j,y,O,b,C,M,it,rt,Ct,K,T,ft]),He=xo(R,K.inputRef),qe=C&&Array.isArray(V)&&V.length>0,De=C?void 0:j,je=v.useMemo(()=>!C||!Array.isArray(V)||!j?null:V.map(Ie=>{const We=Jo(Ie,D);return g.jsx("input",{type:"hidden",form:d,name:j,value:We,disabled:O},We)}),[C,V,d,j,D,O]);return g.jsx(SI.Provider,{value:lt,children:g.jsxs(wI.Provider,{value:Lt,children:[B,g.jsx("input",{...K.getValidationProps(O,{onFocus(){_e.state.triggerElement?.focus({focusVisible:!0})},onChange(Ie){if(Ie.nativeEvent.defaultPrevented||O||b)return;const We=Ie.currentTarget.value,dt=Rt(Ni,Ie.nativeEvent);function Et(){if(C)return;const Ne=We.toLowerCase();let Tt=ue.current.findIndex(rn=>Jo(rn,D).toLowerCase()===Ne||KA(rn,_).toLowerCase()===Ne);Tt===-1&&(Tt=ue.current.findIndex((rn,_n)=>{const Yn=oe.current[_n];return Yn!=null&&Yn.toLowerCase()===Ne}));const Qt=Tt===-1?void 0:ue.current[Tt];Qt!=null&&it(Qt,dt)}_e.set("forceMount",!0),queueMicrotask(Et)}}),id:Y&&De==null?`${Y}-hidden-input`:void 0,form:d,name:De,autoComplete:h,value:Ye,disabled:O,required:y&&!qe,readOnly:b,ref:He,style:j?nP:x_,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),je]})})}const Yd=2,Kq=400,Yq={...wz,...Zc,popupSide:e=>e?{"data-popup-side":e}:null,value:()=>null},Xq=v.forwardRef(function(t,n){const{render:r,className:s,id:a,disabled:l=!1,nativeButton:c=!0,style:f,...d}=t,{setTouched:h,setFocused:m,validationMode:b,state:y,disabled:k}=Dh(),{labelId:S}=xx(),{store:R,setOpen:T,selectionRef:E,validation:C,readOnly:_,required:D,alignItemWithTriggerActiveRef:A,disabled:M}=Ds(),B=k||M||l,P=mt(R,pt.open),N=mt(R,pt.mounted),W=mt(R,pt.value),$=mt(R,pt.triggerProps),F=mt(R,pt.positionerElement),z=mt(R,pt.listElement),U=mt(R,pt.popupSide),H=mt(R,pt.id),K=mt(R,pt.labelId),q=mt(R,pt.hasSelectedValue),Y=N&&F?U:null,O=a??H,j=s4(S,K);Sx({id:O});const V=On(F),L=v.useRef(null),{getButtonProps:X,buttonRef:se}=$l({disabled:B,native:c}),ne=Ke(ge=>{R.set("triggerElement",ge)}),oe=bi(),le=bi(),ce=bi();v.useEffect(()=>{if(P)return ce.start(Kq,()=>{E.current.allowUnselectedMouseUp=!0,E.current.allowSelectedMouseUp=!0}),()=>{ce.clear()};E.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0},le.clear()},[P,E,le,ce]);const Ee=Gi($,{id:O,role:"combobox","aria-expanded":P?"true":"false","aria-haspopup":"listbox","aria-controls":P?z?.id??Np(F)?.id:void 0,"aria-labelledby":j,"aria-readonly":_||void 0,"aria-required":D||void 0,tabIndex:B?-1:0,onFocus(ge){m(!0),P&&A.current&&T(!1,Rt(Ni,ge.nativeEvent)),oe.start(0,()=>{R.set("forceMount",!0)})},onBlur(ge){ht(F,ge.relatedTarget)||(h(!0),m(!1),b==="onBlur"&&C.commit(W))},onMouseDown(ge){if(P)return;const Se=Wt(ge.currentTarget);function Ae(ke){if(!L.current)return;const xe=ke.target;if(ht(L.current,xe)||ht(V.current,xe))return;const Re=o4(L.current);ke.clientX>=Re.left-Yd&&ke.clientX<=Re.right+Yd&&ke.clientY>=Re.top-Yd&&ke.clientY<=Re.bottom+Yd||T(!1,Rt(Dz,ke))}le.start(0,()=>{Se.addEventListener("mouseup",Ae,{once:!0})})}},d,X),be=C.getValidationProps(B,Ee);be.role="combobox";const ue={...y,open:P,disabled:B,value:W,readOnly:_,popupSide:Y,placeholder:!q};return bn("button",t,{ref:[n,L,se,ne],state:ue,stateAttributesMapping:Yq,props:be})}),Zq={value:()=>null},Qq=v.forwardRef(function(t,n){const{className:r,render:s,children:a,placeholder:l,style:c,...f}=t,{store:d,valueRef:h}=Ds(),m=mt(d,pt.value),b=mt(d,pt.items),y=mt(d,pt.itemToStringLabel),k=mt(d,pt.hasSelectedValue),S=!k&&l!=null&&a==null,R=mt(d,pt.hasNullItemLabel,S),T={value:m,placeholder:!k};let E=null;return typeof a=="function"?E=a(m):a!=null?E=a:!k&&l!=null&&!R?E=l:Array.isArray(m)?E=i4(m,b,y):E=YA(m,b,y),bn("span",t,{state:T,ref:[n,h],props:[{children:E},f],stateAttributesMapping:Zq})}),Jq=v.createContext(void 0),e7=v.forwardRef(function(t,n){const{store:r}=Ds(),s=mt(r,pt.mounted),a=mt(r,pt.forceMount);return s||a?g.jsx(Jq.Provider,{value:!0,children:g.jsx(RP,{ref:n,...t})}):null}),t7={...Wc,...To},n7=v.forwardRef(function(t,n){const{render:r,className:s,style:a,...l}=t,{store:c}=Ds(),f=mt(c,pt.open),d=mt(c,pt.mounted),h=mt(c,pt.transitionStatus);return bn("div",t,{state:{open:f,transitionStatus:h},ref:n,props:[{role:"presentation",hidden:!d,style:{userSelect:"none",WebkitUserSelect:"none"}},l],stateAttributesMapping:t7})}),RI=v.createContext(void 0);function CI(){const e=v.useContext(RI);if(!e)throw new Error(In(59));return e}function rh(e,t){e&&Object.assign(e.style,t)}const _I={position:"relative",maxHeight:"100%",overflowX:"hidden",overflowY:"auto"},r7={position:"fixed"},i7=v.forwardRef(function(t,n){const{anchor:r,positionMethod:s="absolute",className:a,render:l,side:c="bottom",align:f="center",sideOffset:d=0,alignOffset:h=0,collisionBoundary:m="clipping-ancestors",collisionPadding:b,arrowPadding:y=5,sticky:k=!1,disableAnchorTracking:S,alignItemWithTrigger:R=!0,collisionAvoidance:T=wP,style:E,...C}=t,{store:_,listRef:D,labelsRef:A,alignItemWithTriggerActiveRef:M,selectedItemTextRef:B,valuesRef:P,initialValueRef:N,popupRef:W,setValue:$}=Ds(),F=EI(),z=mt(_,pt.open),U=mt(_,pt.mounted),H=mt(_,pt.modal),K=mt(_,pt.value),q=mt(_,pt.openMethod),Y=mt(_,pt.positionerElement),O=mt(_,pt.triggerElement),j=mt(_,pt.isItemEqualToValue),V=mt(_,pt.transitionStatus),L=v.useRef(null),X=v.useRef(null),[se,ne]=v.useState(R),oe=U&&se&&q!=="touch";!U&&se!==R&&ne(R),Ve(()=>{U||(pt.scrollUpArrowVisible(_.state)&&_.set("scrollUpArrowVisible",!1),pt.scrollDownArrowVisible(_.state)&&_.set("scrollDownArrowVisible",!1))},[_,U]),v.useImperativeHandle(M,()=>oe),g4((oe||H)&&z,q==="touch",Y,O);const le=Ex({anchor:r,floatingRootContext:F,positionMethod:s,mounted:U,side:c,sideOffset:d,align:f,alignOffset:h,arrowPadding:y,collisionBoundary:m,collisionPadding:b,sticky:k,disableAnchorTracking:S??oe,collisionAvoidance:T,keepMounted:!0}),ce=oe?"none":le.side,Ee=oe?r7:le.positionerStyles,be={open:z,side:ce,align:le.align,anchorHidden:le.anchorHidden};Ve(()=>{_.set("popupSide",le.side)},[_,le.side]);const ue=Ke(xe=>{_.set("positionerElement",xe)}),ge=Tx(t,be,{styles:Ee,transitionStatus:V,props:C,refs:[n,ue],hidden:!U,inert:!z}),Se=v.useRef(0),Ae=Ke(xe=>{if(xe.size===0&&Se.current===0||P.current.length===0)return;const Re=Se.current;if(Se.current=xe.size,xe.size===Re)return;const Me=Rt(Ni);if(Re!==0&&!_.state.multiple&&K!==null&&mc(P.current,K,j)===-1){const Fe=N.current,_e=Fe!=null&&mc(P.current,Fe,j)!==-1?Fe:null;$(_e,Me),_e===null&&(_.set("selectedIndex",null),B.current=null)}if(Re!==0&&_.state.multiple&&Array.isArray(K)){const ze=ye=>mc(P.current,ye,j)!==-1,Fe=K.filter(ye=>ze(ye));(Fe.length!==K.length||Fe.some(ye=>!t4(K,ye,j)))&&($(Fe,Me),Fe.length===0&&(_.set("selectedIndex",null),B.current=null))}if(z&&oe){_.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});const ze={height:""};rh(Y,ze),rh(W.current,ze)}}),ke=v.useMemo(()=>({...le,side:ce,alignItemWithTriggerActive:oe,setControlledAlignItemWithTrigger:ne,scrollUpArrowRef:L,scrollDownArrowRef:X}),[le,ce,oe,ne]);return g.jsx(wx,{elementsRef:D,labelsRef:A,onMapChange:Ae,children:g.jsxs(RI.Provider,{value:ke,children:[U&&H&&g.jsx(f3,{inert:c3(!z),cutout:O}),ge]})})}),Xd="base-ui-disable-scrollbar",ev={className:Xd,getElement(e){return g.jsx("style",{nonce:e,href:Xd,precedence:"base-ui:low",children:`.${Xd}{scrollbar-width:none}.${Xd}::-webkit-scrollbar{display:none}`})}},s7={...Wc,...To},o7=v.forwardRef(function(t,n){const{render:r,className:s,style:a,finalFocus:l,...c}=t,{store:f,popupRef:d,onOpenChangeComplete:h,setOpen:m,valueRef:b,firstItemTextRef:y,selectedItemTextRef:k,multiple:S,handleScrollArrowVisibility:R,scrollHandlerRef:T,listRef:E,highlightItemOnHover:C}=Ds(),{side:_,align:D,alignItemWithTriggerActive:A,isPositioned:M,setControlledAlignItemWithTrigger:B}=CI(),P=l9()!=null,N=EI(),W=Di(),{nonce:$,disableStyleElements:F}=bI(),z=mt(f,pt.id),U=mt(f,pt.open),H=mt(f,pt.openMethod),K=mt(f,pt.mounted),q=mt(f,pt.popupProps),Y=mt(f,pt.transitionStatus),O=mt(f,pt.triggerElement),j=mt(f,pt.positionerElement),V=mt(f,pt.listElement),L=v.useRef(!1),X=v.useRef(!1),se=v.useRef({}),ne=Rl(),oe=Ke(be=>{if(!j||!d.current||!X.current)return;if(L.current||!A){R();return}const ue=j.style.top==="0px",ge=j.style.bottom==="0px";if(!ue&&!ge){R();return}const Se=AT(j),Ae=uc(j.getBoundingClientRect().height,"y",Se),ke=Wt(j),xe=xn(j),Re=xe.getComputedStyle(j),Me=parseFloat(Re.marginTop),ze=parseFloat(Re.marginBottom),Fe=_T(xe.getComputedStyle(d.current)),ye=Math.min(ke.documentElement.clientHeight-Me-ze,Fe),_e=be.scrollTop,ee=Zd(be);let fe=0,Q=null,re=!1,we=!1;const Pe=Je=>{j.style.height=`${Je}px`},Ye=(Je,xt)=>{const St=lc(Je,0,ye-Ae);St>0&&Pe(Ae+St),be.scrollTop=xt,ye-(Ae+St)<=vs&&(L.current=!0),R()},Ze=ue?ee-_e:_e,bt=Math.min(Ae+Ze,ye);if(fe=bt,Ze<=vs){Ye(Ze,ue?ee:0);return}if(ye-bt>vs)ue?we=!0:Q=0;else if(re=!0,ge&&_e<ee){const Je=Ae+Ze-ye;Q=_e-(Ze-Je)}if(fe=Math.ceil(fe),fe!==0&&Pe(fe),we||Q!=null){const Je=Zd(be),xt=we?Je:lc(Q,0,Je);Math.abs(be.scrollTop-xt)>vs&&(be.scrollTop=xt)}(re||fe>=ye-vs)&&(L.current=!0),R()});v.useImperativeHandle(T,()=>oe,[oe]),_o({open:U,ref:d,onComplete(){U&&h?.(!0)}});const le={open:U,transitionStatus:Y,side:_,align:D};Ve(()=>{!j||!d.current||Object.keys(se.current).length||(se.current={top:j.style.top||"0",left:j.style.left||"0",right:j.style.right,height:j.style.height,bottom:j.style.bottom,minHeight:j.style.minHeight,maxHeight:j.style.maxHeight,marginTop:j.style.marginTop,marginBottom:j.style.marginBottom})},[d,j]),Ve(()=>{U||A||(X.current=!1,L.current=!1,rh(j,se.current))},[U,A,j,d]),Ve(()=>{const be=d.current;if(!U||!O||!j||!be||A&&!M||f.state.transitionStatus==="ending")return;if(!A){X.current=!0,ne.request(R),be.style.removeProperty("--transform-origin");return}const ue=a7(be);be.style.removeProperty("--transform-origin");try{let ge=k.current;ge?.isConnected||(ge=!pt.hasSelectedValue(f.state)&&y.current?.isConnected?y.current:null);const Se=b.current,Ae=xn(j),ke=Ae.getComputedStyle(j),xe=Ae.getComputedStyle(be),Re=Wt(O),Me=AT(O),ze=Qd(O.getBoundingClientRect(),Me),Fe=Qd(j.getBoundingClientRect(),Me),ye=ze.height,_e=V||be,ee=_e.scrollHeight,fe=parseFloat(xe.borderBottomWidth),Q=parseFloat(ke.marginTop)||10,re=parseFloat(ke.marginBottom)||10,we=parseFloat(ke.minHeight)||100,Pe=_T(xe),Ye=5,Ze=5,bt=20,Je=Re.documentElement.clientHeight-Q-re,xt=Re.documentElement.clientWidth,St=Je-ze.bottom+ye;let nt,rt=W==="rtl"?ze.right-Fe.width:ze.left,ct=0;if(ge&&Se){const lt=Qd(Se.getBoundingClientRect(),Me);nt=Qd(ge.getBoundingClientRect(),Me),rt=Fe.left+(W==="rtl"?lt.right-nt.right:lt.left-nt.left);const He=lt.top-ze.top+lt.height/2;ct=nt.top-Fe.top+nt.height/2-He}const it=St+ct+re+fe;let ft=Math.min(Je,it);const Lt=Je-Q-re,Pt=it-ft,At=xt-Ze;j.style.left=`${lc(rt,Ye,At-Fe.width)}px`,j.style.height=`${ft}px`,j.style.maxHeight="none",j.style.marginTop=`${Q}px`,j.style.marginBottom=`${re}px`,be.style.height="100%";const Z=Zd(_e),me=Pt>=Z-vs;me&&(ft=Math.min(Je,Fe.height)-(Pt-Z));const Le=ze.top<bt||ze.bottom>Je-bt||Math.ceil(ft)+vs<Math.min(ee,we),Xe=(Ae.visualViewport?.scale??1)!==1&&Ro;if(Le||Xe){X.current=!0,rh(j,se.current),B(!1);return}const Ct=Math.max(we,ft);if(me){const lt=Math.max(0,Je-it);j.style.top=Fe.height>=Lt?"0":`${lt}px`,j.style.height=`${ft}px`,_e.scrollTop=Zd(_e)}else j.style.bottom="0",_e.scrollTop=Pt;if(nt){const lt=Fe.top,He=Fe.height,qe=nt.top+nt.height/2,De=He>0?(qe-lt)/He*100:50,je=lc(De,0,100);be.style.setProperty("--transform-origin",`50% ${je}%`)}(Ct===Je||ft>=Pe)&&(L.current=!0),R(),C&&f.state.selectedIndex===null&&f.state.activeIndex===null&&E.current[0]!=null&&f.set("activeIndex",0),X.current=!0}finally{ue()}},[f,U,j,O,b,y,k,d,R,A,B,ne,V,E,C,W,M]),v.useEffect(()=>{if(!A||!j||!U)return;const be=xn(j);function ue(ge){m(!1,Rt(Lz,ge))}return Dt(be,"resize",ue)},[m,A,j,U]);const ce={...V?{role:"presentation","aria-orientation":void 0}:{role:"listbox","aria-multiselectable":S||void 0,id:`${z}-list`},onKeyDown(be){P&&EA.has(be.key)&&be.stopPropagation()},onScroll(be){V||oe(be.currentTarget)},...A&&{style:V?{height:"100%"}:_I}},Ee=bn("div",t,{ref:[n,d],state:le,stateAttributesMapping:s7,props:[q,ce,Lh(Y),{className:!V&&A?ev.className:void 0},c]});return g.jsxs(v.Fragment,{children:[!F&&ev.getElement($),g.jsx(MP,{context:N,modal:!1,disabled:!K,openInteractionType:H,returnFocus:l,restoreFocus:!0,children:Ee})]})});function _T(e){const t=e.maxHeight||"";return t.endsWith("px")&&parseFloat(t)||1/0}function Zd(e){return TI(e.scrollHeight,e.clientHeight)}function AT(e){return G_.getScale(e)}function uc(e,t,n){return e/n[t]}function Qd(e,t){return Tc({x:uc(e.x,"x",t),y:uc(e.y,"y",t),width:uc(e.width,"x",t),height:uc(e.height,"y",t)})}const NT=[["transform","none"],["scale","1"],["translate","0 0"]];function a7(e){const{style:t}=e,n={};for(const[r,s]of NT)n[r]=t.getPropertyValue(r),t.setProperty(r,s,"important");return()=>{for(const[r]of NT){const s=n[r];s?t.setProperty(r,s):t.removeProperty(r)}}}const l7=v.forwardRef(function(t,n){const{render:r,className:s,style:a,...l}=t,{store:c,scrollHandlerRef:f}=Ds(),{alignItemWithTriggerActive:d}=CI(),h=mt(c,pt.hasScrollArrows),m=mt(c,pt.openMethod),b=mt(c,pt.multiple),k={id:`${mt(c,pt.id)}-list`,role:"listbox","aria-multiselectable":b||void 0,onScroll(R){f.current?.(R.currentTarget)},...d&&{style:_I},className:h&&m!=="touch"?ev.className:void 0},S=Ke(R=>{c.set("listElement",R)});return bn("div",t,{ref:[n,S],props:[k,l]})}),AI=v.createContext(void 0);function s0(){const e=v.useContext(AI);if(!e)throw new Error(In(57));return e}const u7=v.memo(v.forwardRef(function(t,n){const{render:r,className:s,style:a,value:l=null,label:c,disabled:f=!1,nativeButton:d=!1,...h}=t,m=v.useRef(null),b=eN({label:c,textRef:m,indexGuessBehavior:JA.GuessFromOrder}),{store:y,itemProps:k,setOpen:S,setValue:R,selectionRef:T,typingRef:E,valuesRef:C,multiple:_,selectedItemTextRef:D,disabled:A,readOnly:M}=Ds(),B=mt(y,pt.isActive,b.index),P=mt(y,pt.open),N=mt(y,pt.isSelected,l),W=mt(y,pt.isSelectedByFocus,b.index),$=mt(y,pt.isItemEqualToValue),F=b.index,z=F!==-1,U=v.useRef(null);Ve(()=>{if(!z)return;const oe=C.current;return oe[F]=l,()=>{delete oe[F]}},[z,F,l,C]),Ve(()=>{if(!z)return;const oe=y.state.value;let le=oe;_&&Array.isArray(oe)&&(le=oe.length>0?oe[oe.length-1]:void 0),le!==void 0&&ua(l,le,$)&&(y.set("selectedIndex",F),m.current&&(D.current=m.current))},[z,F,_,$,y,l,D]);const H=v.useRef(null),K=v.useRef("mouse"),q=v.useRef(!1),{getButtonProps:Y,buttonRef:O}=$l({disabled:f,focusableWhenDisabled:!0,native:d,composite:!0}),j={disabled:f,selected:N,highlighted:B};function V(oe){if(A||M)return;const le=y.state.value;if(_){const ce=Array.isArray(le)?le:[],Ee=N?n4(ce,l,$):[...ce,l];R(Ee,Rt(vb,oe))}else R(l,Rt(vb,oe)),S(!1,Rt(vb,oe))}function L(){T.current.dragY=0}const X={role:"option","aria-selected":N,tabIndex:P&&B?0:-1,onKeyDown(oe){H.current=oe.key,y.set("activeIndex",F),oe.key===" "&&E.current&&oe.preventDefault()},onClick(oe){const le=oe.type==="click"&&K.current!=="touch",ce=oe.nativeEvent.pointerType,Ee=le&&Yv(oe.nativeEvent)&&(ce!==void 0||B),be=le&&!Ee&&!q.current;q.current=!1,!(oe.type==="keydown"&&H.current===null)&&(f||oe.type==="keydown"&&H.current===" "&&E.current||be||(H.current=null,V(oe.nativeEvent)))},onPointerEnter(oe){K.current=oe.pointerType},onPointerMove(oe){if(oe.pointerType==="mouse"&&oe.buttons===1){const le=T.current;le.dragY+=oe.movementY,le.dragY**2>=64&&(le.allowUnselectedMouseUp=!0)}},onPointerDown(oe){K.current=oe.pointerType,q.current=!0,L()},onMouseUp(){if(L(),f||K.current==="touch"||q.current)return;const oe=!T.current.allowSelectedMouseUp&&N,le=!T.current.allowUnselectedMouseUp&&!N;oe||le||(q.current=!0,U.current?.click(),q.current=!1)}},se=bn("div",t,{ref:[O,n,b.ref,U],state:j,props:[k,X,h,Y]}),ne=v.useMemo(()=>({selected:N,index:F,textRef:m,selectedByFocus:W,hasRegistered:z}),[N,F,m,W,z]);return g.jsx(AI.Provider,{value:ne,children:se})})),OT=v.forwardRef(function(t,n){const r=t.keepMounted??!1,{selected:s}=s0();return r||s?g.jsx(c7,{...t,ref:n}):null}),c7=v.memo(v.forwardRef((e,t)=>{const{render:n,className:r,style:s,keepMounted:a,...l}=e,{selected:c}=s0(),f=v.useRef(null),{transitionStatus:d,setMounted:h}=Yc(c),b=bn("span",e,{ref:[t,f],state:{selected:c,transitionStatus:d},props:[{"aria-hidden":!0,children:"✔️"},l],stateAttributesMapping:To});return _o({open:c,ref:f,onComplete(){c||h(!1)}}),b})),f7=v.memo(v.forwardRef(function(t,n){const{index:r,textRef:s,selectedByFocus:a,hasRegistered:l}=s0(),{firstItemTextRef:c,selectedItemTextRef:f}=Ds(),{render:d,className:h,style:m,...b}=t,y=v.useCallback(S=>{S&&(l&&r===0&&(c.current=S),l&&a&&(f.current=S))},[c,f,r,a,l]);return bn("div",t,{ref:[y,n,s],props:b})})),NI="lg",OI="outline",d7={"ui--default-marker":"ui--default-marker",$$css:!0},Vi={base:{kysU6D:"ui-jyslct",keoZOQ:"ui-dj266r",k71WvV:"ui-14z9mp",k1K539:"ui-at24cr",keTefX:"ui-1lziwak",k63SB2:"ui-1pd3egz",k1xSpc:"ui-78zum5",kXwgrk:"ui-1q0g3np",kGNEyG:"ui-6s0dn4",kOIVth:"ui-11twubx",$$css:!0},sizeLg:{kLKAdn:"ui-f6zju3",kwRFfy:"ui-1msowdo",kGO01o:"ui-cnij5n",kZCmMZ:"ui-1uxnm1j",$$css:!0},sizeMd:{kLKAdn:"ui-493x5y",kwRFfy:"ui-1tlft3r",kGO01o:"ui-b6dno7",kZCmMZ:"ui-v853mj",$$css:!0},shapeRounded:{kaIpWk:"ui-1043rbw",$$css:!0},shapePill:{kaIpWk:"ui-1i4c3av",$$css:!0},frameContentLg:{keoZOQ:"ui-1m79sar",k1K539:"ui-1w4rq16",keTefX:"ui-1t34h19",k71WvV:"ui-u45m27",$$css:!0},frameContentMd:{keoZOQ:"ui-lvyip8",k1K539:"ui-b4cpfm",keTefX:"ui-1hk7dha",k71WvV:"ui-yy14hb",$$css:!0},frameContentHugFalseLg:{kzqmXN:"ui-lai49p",$$css:!0},frameContentHugFalseMd:{kzqmXN:"ui-u0r5jw",$$css:!0},hugFalse:{kzqmXN:"ui-h8yej3",kjj79g:"ui-13a6bvl",$$css:!0}},IT={base:{kUk6DE:"ui-98rzlu",k7Eaqz:"ui-euugli",k9WMMc:"ui-1yc453h",kMwMTN:"ui-15rks2t",$$css:!0},placeholder:{kMwMTN:"ui-4b2ntj ui-1s8h5yg",$$css:!0}},p7="sm",h7={md:Vi.sizeMd,lg:Vi.sizeLg},m7={md:Vi.frameContentMd,lg:Vi.frameContentLg},g7={md:Vi.frameContentHugFalseMd,lg:Vi.frameContentHugFalseLg};function b7({children:e,variant:t=OI,frame:n="container",shape:r="rounded",size:s=NI,hug:a=!0,className:l,style:c,rootStyle:f,labelStyle:d,disabled:h=!1,id:m,leading:b,trailing:y,open:k,placeholder:S,hideChevron:R=!1,ref:T,"data-popup-open":E,...C}){const _=e==null&&S!=null,D=k??(E!==void 0&&E!==!1),A=k===void 0?E:k||void 0,M=bx(t,void 0),B=zt(vx.root,Vi.base,Cs.root,Hi[s],h7[s],Ci.appearance,M.applyControlTone&&yx.foreground,M.applyFilledColors&&Ci.colors,M.applyNonFilledBackground&&la.background,t==="outline"&&la.outline,D&&Ci.engaged,!a&&Vi.hugFalse,r==="pill"?Vi.shapePill:Vi.shapeRounded,n==="content"&&m7[s],n==="content"&&!a&&g7[s],f,d7),P=zt(Hl.root,Mh.root,IT.base,_&&IT.placeholder,d),N={className:"ui-78zum5 ui-6s0dn4 ui-2lah0s ui-1mh7f6w ui-1s8h5yg"},W={0:{className:"ui-2lah0s ui-1mh7f6w ui-1s8h5yg"},1:{className:"ui-2lah0s ui-7qsbfx"}}[!!D<<0];return g.jsxs(gx,{...C,ref:T,id:m,className:sn("ui-select-trigger",B.className,l),style:{...B.style,...c},"data-popup-open":A,"data-variant":t,"data-size":s,disabled:h,children:[b!=null&&g.jsx("span",{className:N.className,style:N.style,children:b}),g.jsx("span",{className:sn("ui-select-label",P.className),style:P.style,children:_?S:e}),y!=null&&g.jsx("span",{className:N.className,style:N.style,children:y}),R?null:g.jsx(qt,{name:"chevron-down",size:10,className:sn("ui-select-icon",W.className),style:W.style})]})}const MT={backdrop:{kVAEAm:"ui-ixxii4",kpwlN0:"ui-10a8y8t",kWkggS:"ui-jbqb8w",$$css:!0},backdropZIndex:e=>[{kY2c9j:e!=null?"ui-r3buco":e,$$css:!0},{"--x-zIndex":e??void 0}]},II=v.createContext(null);function o0(){const e=v.useContext(II);if(!e)throw new Error("Select internals must be used within Select");return e}function y7(){const e=o0(),t=e.hasValue?g.jsx(Qq,{}):void 0;return g.jsx(Xq,{disabled:e.disabled,id:e.id,...e.ariaLabel!==void 0?{"aria-label":e.ariaLabel}:{},...e.ariaLabelledBy!==void 0?{"aria-labelledby":e.ariaLabelledBy}:{},render:e.renderTrigger??((n,r)=>g.jsx(b7,{...n,className:sn(n.className,e.className),disabled:e.disabled,frame:e.frame,hug:e.hug,hideChevron:e.hideChevron,leading:e.leading,labelStyle:e.labelStyle,open:r.open,placeholder:e.placeholder,rootStyle:e.rootStyle,trailing:e.trailing,shape:e.shape,size:e.size,variant:e.variant})),children:t})}function v7({children:e}){const t=o0(),n=va(),{zIndex:r,portalLayerStyles:s}=ql("popover",t.open),a=Fh(t.placement,t.offset,!1,t.collisionSide),l=t.matchAnchorWidth?"var(--anchor-width)":t.contentWidth;return g.jsxs(e7,{container:n??void 0,style:s,children:[g.jsx(n7,{"data-component":"select-backdrop",...zt(MT.backdrop,r!==null&&MT.backdropZIndex(r-1))}),g.jsx(i7,{align:a.align,alignItemWithTrigger:!1,alignOffset:a.alignOffset,collisionAvoidance:a.collisionAvoidance,"data-component":"select-positioner",positionMethod:a.positionMethod,side:a.side,sideOffset:a.sideOffset,...zh(R4),children:g.jsx(o7,{"data-block-global-shortcuts":t.open?"Escape":void 0,"data-component":"select-popup","data-size":t.menuSize,...zt(D4,jh,L4[t.menuSize],l!==void 0?j4(l):z4,t.contentStyle),children:g.jsx(Is,{menuSize:t.menuSize,children:g.jsx(vB,{children:g.jsx(l7,{"aria-label":t.ariaLabel??"Select an option",...zt(P4),children:e})})})})})]})}function x7({option:e}){o0();const t=e.description!==void 0,n=g.jsxs(u7,{disabled:e.disabled,label:typeof e.label=="string"?e.label:void 0,value:e.value,"data-component":"select-item","data-has-description":t||void 0,...zt($4),children:[e.leading!=null?g.jsx("span",{...zt(Mb,G4,t&&Db),children:e.leading}):null,g.jsxs("span",{...zt(B4,t&&q4),children:[g.jsxs(f7,{...zt(e.labelMeta!=null&&U4),children:[g.jsx("span",{...zt(F4),children:e.label}),e.labelMeta!=null?g.jsx("span",{...zt(V4),children:e.labelMeta}):null]}),t?g.jsx("span",{"data-component":"select-item-description",...zt(H4,Ms.root),children:e.description}):null]}),e.trailing!=null?g.jsxs("span",{"data-component":"select-item-end",...zt(Mb,_E,W4,t&&Db),children:[e.trailing,g.jsx(OT,{"data-component":"select-item-indicator",children:g.jsx(qt,{color:"primary",name:"check","aria-hidden":!0})})]}):g.jsx(OT,{"data-component":"select-item-indicator",...zt(Mb,_E,t&&Db),children:g.jsx(qt,{color:"primary",name:"check","aria-hidden":!0})})]});return e.tooltip==null?n:g.jsx(lf,{closeDelay:e.tooltipCloseDelay,content:e.tooltip,openDelay:e.tooltipOpenDelay,children:n})}function k7({value:e,defaultValue:t,onValueChange:n,open:r,defaultOpen:s,onOpenChange:a,options:l,placeholder:c,variant:f=OI,frame:d="container",shape:h="rounded",size:m=NI,menuSize:b,contentWidth:y,matchAnchorWidth:k=!1,hug:S=!0,disabled:R=!1,className:T,renderTrigger:E,placement:C="bottom-start",offset:_=4,collisionSide:D="flip","aria-label":A,"aria-labelledby":M,id:B,leading:P,trailing:N,labelStyle:W,rootStyle:$,hideChevron:F=!1,contentStyle:z,...U}){const[H,K]=Dl(e,t,void 0,"Select.Root (value)"),q=H!=null&&l.some(ne=>ne.value===H),[Y,O]=Dl(r,s??!1,void 0,"Select.Root (open)"),j=b??"sm",V=v.useCallback((ne,oe)=>{n?.(ne,oe),!oe.isCanceled&&K(ne)},[n,K]),L=v.useCallback((ne,oe)=>{a?.(ne,oe),!oe.isCanceled&&O(ne)},[a,O]),X=v.useMemo(()=>({hasValue:q,variant:f,frame:d,shape:h,size:m,menuSize:j,hug:S,disabled:R,open:Y,placement:C,offset:_,collisionSide:D,id:B,ariaLabel:A,ariaLabelledBy:M,placeholder:c,leading:P,trailing:N,labelStyle:W,rootStyle:$,hideChevron:F,contentStyle:z,className:T,renderTrigger:E,contentWidth:y,matchAnchorWidth:k}),[A,M,T,D,z,y,R,d,S,q,F,B,Y,W,P,k,_,C,c,j,$,N,E,h,m,f]),se=l.map(ne=>({label:ne.label,value:ne.value}));return g.jsx(II.Provider,{value:X,children:g.jsx(Is,{iconSize:p7,children:g.jsxs(Wq,{...U,defaultOpen:s,defaultValue:t,disabled:R,id:B,items:se,onOpenChange:L,onValueChange:V,open:r,value:e,children:[g.jsx(y7,{}),g.jsx(v7,{children:l.map((ne,oe)=>g.jsx(x7,{option:ne},typeof ne.value=="string"||typeof ne.value=="number"?String(ne.value):oe))})]})})})}const S7=v.createContext(void 0);function w7(e=!0){const t=v.useContext(S7);if(t===void 0&&!e)throw new Error(In(7));return t}const E7=v.forwardRef(function(t,n){const{className:r,defaultPressed:s=!1,disabled:a=!1,form:l,onPressedChange:c,pressed:f,render:d,type:h,value:m,nativeButton:b=!0,style:y,...k}=t,S=Fl(m||void 0),R=w7(),T=R?.value??[],E=R?void 0:s,C=(a||R?.disabled)??!1,[_,D]=Al({controlled:R?S!==void 0&&T.indexOf(S)>-1:f,default:E,name:"Toggle",state:"pressed"}),{getButtonProps:A,buttonRef:M}=$l({disabled:C,native:b}),B={disabled:C,pressed:_},P=[M,n],N=[{"aria-pressed":_,onClick(F){const z=!_,U=Rt(Ni,F.nativeEvent);c?.(z,U),!U.isCanceled&&(S&&R?.setGroupValue?.(S,z,U),!U.isCanceled&&D(z))}},k,A],W=bn("button",t,{enabled:!R,state:B,ref:P,props:N}),$=v.useMemo(()=>({disabled:C,focusableWhenDisabled:!1}),[C]);return R?g.jsx(u9,{tag:"button",render:d,className:r,style:y,metadata:$,state:B,refs:P,props:N}):W});function DT(e,t,n,r){return typeof e=="string"?g.jsx(qt,{"aria-hidden":"true",name:e,rootStyle:r,size:n,variant:t}):g.jsx("span",{...HN(n),"aria-hidden":"true",children:e})}function T7({icon:e,pressedIcon:t,pressed:n,iconVariant:r,iconSize:s,iconStyle:a}){return g.jsxs("span",{className:"ui-rvj5dj ui-6s0dn4 ui-1o2pa38 ui-c8icb0 ui-47corl ui-1heor9g","aria-hidden":"true",children:[g.jsx("span",{className:"ui-1ms6mhf ui-gkxs2y ui-3nfvp2 ui-6s0dn4 ui-l56j7k ui-1g0ag68 ui-g01cxk ui-6rycqq ui-fimr68 ui-1owdx9d ui-tea3wc ui-1qzdkne ui-nejef0 ui-4wkmsb ui-7pq1vu ui-6ekqhr","data-swap-active":!n||void 0,children:DT(e,r,s,a)}),g.jsx("span",{className:"ui-1ms6mhf ui-gkxs2y ui-3nfvp2 ui-6s0dn4 ui-l56j7k ui-1g0ag68 ui-g01cxk ui-6rycqq ui-fimr68 ui-1owdx9d ui-tea3wc ui-1qzdkne ui-nejef0 ui-4wkmsb ui-7pq1vu ui-6ekqhr","data-swap-active":n||void 0,children:DT(t,r,s,a)})]})}function R7({icon:e,pressedIcon:t=e,iconVariant:n="outline",variant:r,rounded:s,frame:a="container",size:l,iconSize:c,tone:f,rootStyle:d,iconStyle:h,disabled:m,"aria-label":b,"aria-labelledby":y,...k}){const S=ya(),{size:R,innerIconSize:T,disabled:E,variant:C,tone:_}=GN({disabled:m,enforced:S,iconSize:c,size:l,tone:f,variant:r}),D=VN({enforcedRootStyle:S?.iconButtonRootStyle,frame:a,rootStyle:d,rounded:s,size:R,tone:_,variant:C});return g.jsx(E7,{...k,className:sn("ui-icon-button",D.rootAttrs.className),style:D.rootAttrs.style,...D.dataAttrs,"aria-label":b,"aria-labelledby":y,"data-component":"toggle-icon-button",disabled:E,render:(A,M)=>g.jsx("button",{...A,"data-pressed":void 0,children:g.jsx(T7,{icon:e,iconSize:T,iconStyle:[S?.iconButtonIconStyle,h],iconVariant:n,pressed:M.pressed,pressedIcon:t})})})}function C7({pressed:e,...t}){return g.jsx(R7,{...t,pressed:e,variant:e?"secondary":"ghost"})}const LT=e=>{let t;const n=new Set,r=(d,h)=>{const m=typeof d=="function"?d(t):d;if(!Object.is(m,t)){const b=t;t=h??(typeof m!="object"||m===null)?m:Object.assign({},t,m),n.forEach(y=>y(t,b))}},s=()=>t,c={setState:r,getState:s,getInitialState:()=>f,subscribe:d=>(n.add(d),()=>n.delete(d))},f=t=e(r,s,c);return c},_7=(e=>e?LT(e):LT),A7=e=>e;function N7(e,t=A7){const n=sc.useSyncExternalStore(e.subscribe,sc.useCallback(()=>t(e.getState()),[e,t]),sc.useCallback(()=>t(e.getInitialState()),[e,t]));return sc.useDebugValue(n),n}const O7=/^\/internal\/agent-serve\/agents\/(asd_[0-9a-f]{32})\/engine(?:\/|$)/,I7=/^asd-([0-9a-f]{32})\.agents\.cursorusercontent\.com$/;function M7(e=window.location.pathname,t=window.location.hostname){const n=I7.exec(t.toLowerCase());if(n!==null)return{publicId:`asd_${n[1]}`,mountPath:""};const r=O7.exec(e);if(r===null)return null;const s=r[1];return{publicId:s,mountPath:`/internal/agent-serve/agents/${s}/engine`}}function D7(e=window.location.search){return new URLSearchParams(e).get("embed")==="1"}function MI(e=window.location,t=window.history){const n=e.hash.startsWith("#")?e.hash.slice(1):e.hash;if(n==="")return"";const s=new URLSearchParams(n).get("access")?.trim()??"";return s===""?"":(t.replaceState(null,"",`${e.pathname}${e.search}`),s)}function L7(e,t=window){const n=()=>{const r=MI(t.location,t.history);r!==""&&e(r)};return t.addEventListener("hashchange",n),()=>t.removeEventListener("hashchange",n)}function DI(e){const t=typeof e=="string"?e:e!==null&&typeof e=="object"&&typeof e.url=="string"?e.url:null;if(t===null)return null;let n;try{n=new URL(t)}catch{return null}return n.protocol==="http:"||n.protocol==="https:"?t:null}function LI(e){return{kind:typeof e.kind=="string"&&e.kind!==""?e.kind:"artifact",title:typeof e.title=="string"&&e.title.trim()!==""?e.title:void 0,url:DI(e.data)??void 0,artifactId:typeof e.id=="string"&&e.id!==""?e.id:void 0,data:e.data}}function tv(e){if(!Number.isFinite(e)||e<0)return"";if(e<1024)return`${e} B`;const t=["KB","MB","GB"];let n=e,r="B";for(const s of t){if(n<1024)break;n/=1024,r=s}return`${n>=10?Math.round(n):Math.round(n*10)/10} ${r}`}function j7(e){if(e===void 0||e.trim()==="")return!0;const t=e.split(";")[0]?.trim().toLowerCase()??"";return t.startsWith("text/")||t.endsWith("+json")||t.endsWith("+xml")||t==="application/json"||t==="application/x-ndjson"||t==="application/xml"||t==="application/javascript"||t==="application/yaml"||t==="application/x-yaml"||t==="application/toml"||t==="application/sql"?!0:!(t.startsWith("image/")||t.startsWith("audio/")||t.startsWith("video/")||t.startsWith("font/")||t==="application/pdf"||t==="application/zip"||t==="application/gzip")}function z7(e){return/\u0000|[\u0001-\u0008\u000b\u000e-\u001f]{4}/.test(e)}function P7(e,t){const n=e?.split(";")[0]?.trim().toLowerCase()??"";if(n==="text/x-diff"||n==="text/x-patch")return!0;const r=t.slice(0,4e3);return/^diff --git /m.test(r)||/^--- /m.test(r)&&/^\+\+\+ /m.test(r)&&/^@@ /m.test(r)}function $7(e){return e.startsWith("+++")||e.startsWith("---")?"meta":e.startsWith("+")?"add":e.startsWith("-")?"del":e.startsWith("@@")?"hunk":e.startsWith("diff ")||e.startsWith("index ")||e.startsWith("new file mode")||e.startsWith("deleted file mode")||e.startsWith("rename from")||e.startsWith("rename to")||e.startsWith("similarity index")||e.startsWith("Binary files ")?"meta":"ctx"}function B7(e){const t=e.title?.trim();return t!==void 0&&t!==""?t:`${e.kind} · ${e.id}`}function F7(e){const t=new Set;for(const n of e)t.add(n.kind);return[...t].sort((n,r)=>n.localeCompare(r))}function jT(e){const t=Date.parse(e.updatedAt);return Number.isNaN(t)?0:t}function jI(e){return[...e].sort((t,n)=>jT(n)-jT(t))}function U7(e,t){return t===null?e:e.filter(n=>n.kind===t)}function q7(e){const t=new Map,n=[];for(const s of jI(e)){const a=s.sessionId;if(a===void 0||a===""){n.push(s);continue}const l=t.get(a);l===void 0?t.set(a,[s]):l.push(s)}const r=[...t.entries()].map(([s,a])=>({sessionId:s,artifacts:a}));return n.length>0&&r.push({sessionId:null,artifacts:n}),r}const H7=["home","runs","evals","logs"],nv="section",V7="home",G7={agent:"home"};function W7(e){const t=e?.trim()??"";return t===""?null:H7.includes(t)?t:G7[t]??null}function K7(e){let t=null,n=null,r=null;try{const s=new URL(e,"https://playground.invalid"),a=s.searchParams.get("sessionId")?.trim()??"";t=a.length>0?a:null;const l=s.searchParams.get("view")?.trim()??"";n=l.length>0?l:null,r=W7(s.searchParams.get(nv))}catch{return{sessionId:null,view:null,section:null}}return n==="logs"&&r===null&&(r="logs"),{sessionId:t,view:n,section:r}}function zI(e){try{const t=new URL(window.location.href);e===V7?t.searchParams.delete(nv):t.searchParams.set(nv,e);const n=t.toString();if(n===window.location.href)return;history.replaceState(null,"",n)}catch{}}const Y7="cursor-playground",X7=["https://cursor.com","https://www.cursor.com","https://prod.cursor.com","https://staging.cursor.com","http://localhost:4000","https://localhost:4000"];function Z7(e=document.referrer,t=window.parent!==window){if(!t||e==="")return null;let n;try{n=new URL(e).origin}catch{return null}return X7.includes(n)?n:null}function Q7(e,t,n=Z7(),r){if(n===null)return;const s={source:Y7,type:"state",view:e};t!==void 0&&(s.sessionId=t),r!==void 0&&(s.section=r),window.parent.postMessage(s,n)}const zT=e=>Number.isFinite(e)?e:0;function J7(e){return{days:Math.trunc(e/864e5),hours:Math.trunc(e/36e5%24),minutes:Math.trunc(e/6e4%60),seconds:Math.trunc(e/1e3%60),milliseconds:Math.trunc(e%1e3),microseconds:Math.trunc(zT(e*1e3)%1e3),nanoseconds:Math.trunc(zT(e*1e6)%1e3)}}function eH(e){return{days:e/86400000n,hours:e/3600000n%24n,minutes:e/60000n%60n,seconds:e/1000n%60n,milliseconds:e%1000n,microseconds:0n,nanoseconds:0n}}function tH(e){switch(typeof e){case"number":{if(Number.isFinite(e))return J7(e);break}case"bigint":return eH(e)}throw new TypeError("Expected a finite number or bigint")}const nH=e=>e===0||e===0n,rH=(e,t)=>t===1||t===1n?e:`${e}s`,iH=1e-7,sH=24n*60n*60n*1000n;function oH(e,t){const n=typeof e=="bigint";if(!n&&!Number.isFinite(e))throw new TypeError("Expected a finite number or bigint");t={...t};const r=e<0?"-":"";e=e<0?-e:e,t.colonNotation&&(t.compact=!1,t.formatSubMilliseconds=!1,t.separateMilliseconds=!1,t.verbose=!1),t.compact&&(t.unitCount=1,t.secondsDecimalDigits=0,t.millisecondsDecimalDigits=0);let s=[];const a=(h,m)=>{const b=Math.floor(h*10**m+iH);return(Math.round(b)/10**m).toFixed(m)},l=(h,m,b,y)=>{if(!((s.length===0||!t.colonNotation)&&nH(h)&&!(t.colonNotation&&b==="m"))){if(y??=String(h),t.colonNotation){const k=y.includes(".")?y.split(".")[0].length:y.length,S=s.length>0?2:1;y="0".repeat(Math.max(0,S-k))+y}else y+=t.verbose?" "+rH(m,h):b;s.push(y)}},c=tH(e),f=BigInt(c.days);if(t.hideYearAndDays?l(BigInt(f)*24n+BigInt(c.hours),"hour","h"):(t.hideYear?l(f,"day","d"):(l(f/365n,"year","y"),l(f%365n,"day","d")),l(Number(c.hours),"hour","h")),l(Number(c.minutes),"minute","m"),!t.hideSeconds)if(t.separateMilliseconds||t.formatSubMilliseconds||!t.colonNotation&&e<1e3){const h=Number(c.seconds),m=Number(c.milliseconds),b=Number(c.microseconds),y=Number(c.nanoseconds);if(l(h,"second","s"),t.formatSubMilliseconds)l(m,"millisecond","ms"),l(b,"microsecond","µs"),l(y,"nanosecond","ns");else{const k=m+b/1e3+y/1e6,S=typeof t.millisecondsDecimalDigits=="number"?t.millisecondsDecimalDigits:0,R=k>=1?Math.round(k):Math.ceil(k),T=S?k.toFixed(S):R;l(Number.parseFloat(T),"millisecond","ms",T)}}else{const h=(n?Number(e%sH):e)/1e3%60,m=typeof t.secondsDecimalDigits=="number"?t.secondsDecimalDigits:1,b=a(h,m),y=t.keepDecimalsOnWholeSeconds?b:b.replace(/\.0+$/,"");l(Number.parseFloat(y),"second","s",y)}if(s.length===0)return r+"0"+(t.verbose?" milliseconds":"ms");const d=t.colonNotation?":":" ";return typeof t.unitCount=="number"&&(s=s.slice(0,Math.max(t.unitCount,1))),r+s.join(d)}var PI="en",a0={},rv={};function $I(){return PI}function BI(e){PI=e}function aH(e){return a0[e]}function FI(e){if(!e)throw new Error("No locale data passed");a0[e.locale]=e,rv[e.locale.toLowerCase()]=e.locale}function PT(e){if(a0[e])return e;if(rv[e.toLowerCase()])return rv[e.toLowerCase()]}function UI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.localeMatcher||"lookup";switch(n){case"lookup":return $T(e);case"best fit":return $T(e);default:throw new RangeError('Invalid "localeMatcher" option: '.concat(n))}}function $T(e){var t=PT(e);if(t)return t;for(var n=e.split("-");e.length>1;){n.pop(),e=n.join("-");var r=PT(e);if(r)return r}}var te={af:function(t){return t==1?"one":"other"},ak:function(t){return t==0||t==1?"one":"other"},am:function(t){return t>=0&&t<=1?"one":"other"},ar:function(t){var n=String(t).split("."),r=Number(n[0])==t,s=r&&n[0].slice(-2);return t==0?"zero":t==1?"one":t==2?"two":s>=3&&s<=10?"few":s>=11&&s<=99?"many":"other"},ast:function(t){var n=String(t).split("."),r=!n[1];return t==1&&r?"one":"other"},be:function(t){var n=String(t).split("."),r=Number(n[0])==t,s=r&&n[0].slice(-1),a=r&&n[0].slice(-2);return s==1&&a!=11?"one":s>=2&&s<=4&&(a<12||a>14)?"few":r&&s==0||s>=5&&s<=9||a>=11&&a<=14?"many":"other"},blo:function(t){return t==0?"zero":t==1?"one":"other"},br:function(t){var n=String(t).split("."),r=Number(n[0])==t,s=r&&n[0].slice(-1),a=r&&n[0].slice(-2),l=r&&n[0].slice(-6);return s==1&&a!=11&&a!=71&&a!=91?"one":s==2&&a!=12&&a!=72&&a!=92?"two":(s==3||s==4||s==9)&&(a<10||a>19)&&(a<70||a>79)&&(a<90||a>99)?"few":t!=0&&r&&l==0?"many":"other"},bs:function(t){var n=String(t).split("."),r=n[0],s=n[1]||"",a=!n[1],l=r.slice(-1),c=r.slice(-2),f=s.slice(-1),d=s.slice(-2);return a&&l==1&&c!=11||f==1&&d!=11?"one":a&&l>=2&&l<=4&&(c<12||c>14)||f>=2&&f<=4&&(d<12||d>14)?"few":"other"},ca:function(t,n){var r=String(t).split("."),s=r[0],a=!r[1],l=s.slice(-6);return t==1&&a?"one":!n&&s!=0&&l==0&&a||n>5?"many":"other"},ceb:function(t){var n=String(t).split("."),r=n[0],s=n[1]||"",a=!n[1],l=r.slice(-1),c=s.slice(-1);return a&&(r==1||r==2||r==3)||a&&l!=4&&l!=6&&l!=9||!a&&c!=4&&c!=6&&c!=9?"one":"other"},cs:function(t){var n=String(t).split("."),r=n[0],s=!n[1];return t==1&&s?"one":r>=2&&r<=4&&s?"few":s?"other":"many"},cy:function(t){return t==0?"zero":t==1?"one":t==2?"two":t==3?"few":t==6?"many":"other"},da:function(t){var n=String(t).split("."),r=n[0],s=Number(n[0])==t;return t==1||!s&&(r==0||r==1)?"one":"other"},dsb:function(t){var n=String(t).split("."),r=n[0],s=n[1]||"",a=!n[1],l=r.slice(-2),c=s.slice(-2);return a&&l==1||c==1?"one":a&&l==2||c==2?"two":a&&(l==3||l==4)||c==3||c==4?"few":"other"},dz:function(t){return"other"},es:function(t,n){var r=String(t).split("."),s=r[0],a=!r[1],l=s.slice(-6);return t==1?"one":!n&&s!=0&&l==0&&a||n>5?"many":"other"},ff:function(t){return t>=0&&t<2?"one":"other"},fr:function(t,n){var r=String(t).split("."),s=r[0],a=!r[1],l=s.slice(-6);return t>=0&&t<2?"one":!n&&s!=0&&l==0&&a||n>5?"many":"other"},ga:function(t){var n=String(t).split("."),r=Number(n[0])==t;return t==1?"one":t==2?"two":r&&t>=3&&t<=6?"few":r&&t>=7&&t<=10?"many":"other"},gd:function(t){var n=String(t).split("."),r=Number(n[0])==t;return t==1||t==11?"one":t==2||t==12?"two":r&&t>=3&&t<=10||r&&t>=13&&t<=19?"few":"other"},he:function(t){var n=String(t).split("."),r=n[0],s=!n[1];return r==1&&s||r==0&&!s?"one":r==2&&s?"two":"other"},is:function(t){var n=String(t).split("."),r=n[0],s=(n[1]||"").replace(/0+$/,""),a=Number(n[0])==t,l=r.slice(-1),c=r.slice(-2);return a&&l==1&&c!=11||s%10==1&&s%100!=11?"one":"other"},lt:function(t){var n=String(t).split("."),r=n[1]||"",s=Number(n[0])==t,a=s&&n[0].slice(-1),l=s&&n[0].slice(-2);return a==1&&(l<11||l>19)?"one":a>=2&&a<=9&&(l<11||l>19)?"few":r!=0?"many":"other"},lv:function(t){var n=String(t).split("."),r=n[1]||"",s=r.length,a=Number(n[0])==t,l=a&&n[0].slice(-1),c=a&&n[0].slice(-2),f=r.slice(-2),d=r.slice(-1);return a&&l==0||c>=11&&c<=19||s==2&&f>=11&&f<=19?"zero":l==1&&c!=11||s==2&&d==1&&f!=11||s!=2&&d==1?"one":"other"},mk:function(t){var n=String(t).split("."),r=n[0],s=n[1]||"",a=!n[1],l=r.slice(-1),c=r.slice(-2),f=s.slice(-1),d=s.slice(-2);return a&&l==1&&c!=11||f==1&&d!=11?"one":"other"},mt:function(t){var n=String(t).split("."),r=Number(n[0])==t,s=r&&n[0].slice(-2);return t==1?"one":t==2?"two":t==0||s>=3&&s<=10?"few":s>=11&&s<=19?"many":"other"},pl:function(t){var n=String(t).split("."),r=n[0],s=!n[1],a=r.slice(-1),l=r.slice(-2);return t==1&&s?"one":s&&a>=2&&a<=4&&(l<12||l>14)?"few":s&&r!=1&&(a==0||a==1)||s&&a>=5&&a<=9||s&&l>=12&&l<=14?"many":"other"},pt:function(t,n){var r=String(t).split("."),s=r[0],a=!r[1],l=s.slice(-6);return s==0||s==1?"one":!n&&s!=0&&l==0&&a||n>5?"many":"other"},ro:function(t){var n=String(t).split("."),r=!n[1],s=Number(n[0])==t,a=s&&n[0].slice(-2);return t==1&&r?"one":!r||t==0||t!=1&&a>=1&&a<=19?"few":"other"},ru:function(t){var n=String(t).split("."),r=n[0],s=!n[1],a=r.slice(-1),l=r.slice(-2);return s&&a==1&&l!=11?"one":s&&a>=2&&a<=4&&(l<12||l>14)?"few":s&&a==0||s&&a>=5&&a<=9||s&&l>=11&&l<=14?"many":"other"},se:function(t){return t==1?"one":t==2?"two":"other"},si:function(t){var n=String(t).split("."),r=n[0],s=n[1]||"";return t==0||t==1||r==0&&s==1?"one":"other"},sl:function(t){var n=String(t).split("."),r=n[0],s=!n[1],a=r.slice(-2);return s&&a==1?"one":s&&a==2?"two":s&&(a==3||a==4)||!s?"few":"other"}};te.as=te.am;te.az=te.af;te.bal=te.af;te.bg=te.af;te.bn=te.am;te.brx=te.af;te.ce=te.af;te.chr=te.af;te.csw=te.ak;te.cv=te.blo;te.de=te.ast;te.doi=te.am;te.ee=te.af;te.el=te.af;te.en=te.ast;te.eo=te.af;te.et=te.ast;te.eu=te.af;te.fa=te.am;te.fi=te.ast;te.fil=te.ceb;te.fo=te.af;te.fur=te.af;te.fy=te.ast;te.gl=te.ast;te.gu=te.am;te.ha=te.af;te.hi=te.am;te.hr=te.bs;te.hsb=te.dsb;te.hu=te.af;te.hy=te.ff;te.ia=te.ast;te.id=te.dz;te.ie=te.ast;te.ig=te.dz;te.ii=te.dz;te.it=te.ca;te.ja=te.dz;te.jgo=te.af;te.jv=te.dz;te.ka=te.af;te.kea=te.dz;te.kk=te.af;te.kl=te.af;te.km=te.dz;te.kn=te.am;te.ko=te.dz;te.kok=te.am;te.ks=te.af;te.ksh=te.blo;te.ku=te.af;te.ky=te.af;te.lb=te.af;te.lkt=te.dz;te.lld=te.ca;te.lo=te.dz;te.ml=te.af;te.mn=te.af;te.mr=te.af;te.ms=te.dz;te.my=te.dz;te.nb=te.af;te.ne=te.af;te.nl=te.ast;te.nn=te.af;te.no=te.af;te.nqo=te.dz;te.nso=te.ak;te.om=te.af;te.or=te.af;te.pa=te.ak;te.pcm=te.am;te.ps=te.af;te.rm=te.af;te.sah=te.dz;te.sc=te.ast;te.scn=te.ca;te.sd=te.af;te.sk=te.cs;te.so=te.af;te.sq=te.af;te.sr=te.bs;te.su=te.dz;te.sv=te.ast;te.sw=te.ast;te.syr=te.af;te.ta=te.af;te.te=te.af;te.th=te.dz;te.ti=te.ak;te.tk=te.af;te.tn=te.af;te.to=te.dz;te.tr=te.af;te.ug=te.af;te.uk=te.ru;te.ur=te.ast;te.uz=te.af;te.vec=te.ca;te.vi=te.dz;te.wae=te.af;te.wo=te.dz;te.xh=te.af;te.yi=te.ast;te.yo=te.dz;te.yue=te.dz;te.zh=te.dz;te.zu=te.am;function BT(e){return e==="pt-PT"?e:uH(e)}var lH=/^([a-z0-9]+)/i;function uH(e){var t=e.match(lH);if(!t)throw new TypeError("Invalid locale: ".concat(e));return t[1]}function Nc(e){"@babel/helpers - typeof";return Nc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nc(e)}function cH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function FT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,dH(r.key),r)}}function fH(e,t,n){return t&&FT(e.prototype,t),n&&FT(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function dH(e){var t=pH(e,"string");return Nc(t)=="symbol"?t:t+""}function pH(e,t){if(Nc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Nc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var iv=(function(){function e(t,n){cH(this,e);var r=e.supportedLocalesOf(t);if(r.length===0)throw new RangeError("Unsupported locale: "+t);if(n&&n.type!=="cardinal")throw new RangeError('Only "cardinal" "type" is supported');this.$=te[BT(r[0])]}return fH(e,[{key:"select",value:function(n){return this.$(n)}}],[{key:"supportedLocalesOf",value:function(n){return typeof n=="string"&&(n=[n]),n.filter(function(r){return te[BT(r)]})}}]),e})();function jl(e){"@babel/helpers - typeof";return jl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jl(e)}function UT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function qT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?UT(Object(n),!0).forEach(function(r){hH(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hH(e,t,n){return(t=qI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HT(e,t){return yH(e)||bH(e,t)||gH(e,t)||mH()}function mH(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.