@lovelybunch/api 1.0.76-alpha.8 → 1.0.76

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 (185) hide show
  1. package/dist/lib/git.d.ts +3 -0
  2. package/dist/lib/git.js +35 -0
  3. package/dist/routes/api/v1/ai/route.js +214 -152
  4. package/dist/routes/api/v1/config/route.js +13 -9
  5. package/dist/routes/api/v1/context/agents/route.js +159 -0
  6. package/dist/routes/api/v1/context/index.js +6 -4
  7. package/dist/routes/api/v1/context/memory/route.js +163 -0
  8. package/dist/routes/api/v1/context/team/route.js +159 -0
  9. package/dist/routes/api/v1/git/index.js +27 -1
  10. package/dist/routes/api/v1/jobs/[id]/route.d.ts +26 -32
  11. package/dist/routes/api/v1/jobs/[id]/route.js +3 -3
  12. package/dist/routes/api/v1/jobs/route.d.ts +33 -33
  13. package/dist/routes/api/v1/jobs/route.js +17 -2
  14. package/dist/routes/api/v1/mcp/index.js +194 -21
  15. package/dist/routes/api/v1/resources/generate/route.js +10 -3
  16. package/package.json +4 -4
  17. package/static/assets/ActivityPage-sJEQn6DK.js +1 -0
  18. package/static/assets/AgentsContextEditPage-DU3qIXk9.js +9 -0
  19. package/static/assets/AgentsContextPage-tJ-LhFYb.js +1 -0
  20. package/static/assets/{ApiKeysSettingsPage-BhaH6ZYP.js → ApiKeysSettingsPage-Bg84BQHV.js} +2 -2
  21. package/static/assets/{AuthSettingsPage-D0MQlHyh.js → AuthSettingsPage-Bwr7uP3z.js} +1 -1
  22. package/static/assets/{CallbackPage-Bz4m3_W8.js → CallbackPage-BFn0Np2S.js} +1 -1
  23. package/static/assets/CodePage-kp4s3wCJ.js +2 -0
  24. package/static/assets/{CollapsibleSection-CxX11hr-.js → CollapsibleSection-CNs1mvsZ.js} +1 -1
  25. package/static/assets/{DashboardPage-B3HR1UM7.js → DashboardPage-DMJSzzgD.js} +9 -19
  26. package/static/assets/{GitPage-Dm36PRw_.js → GitPage-uqene8zj.js} +3 -3
  27. package/static/assets/{GitSettingsPage-CRWcjgVI.js → GitSettingsPage-CLswbZsT.js} +2 -2
  28. package/static/assets/{IdentityPage-YCkmdyzR.js → IdentityPage-BDTPXEo7.js} +2 -2
  29. package/static/assets/{ImplementationStepsEditor-u3dPxmKW.js → ImplementationStepsEditor-D4cvhPhz.js} +2 -2
  30. package/static/assets/IntegrationsSettingsPage-o7NXZGt9.js +1 -0
  31. package/static/assets/JobDetailPage-DuEiPz6X.js +1 -0
  32. package/static/assets/KnowledgeDetailPage-DFVud_VC.js +1 -0
  33. package/static/assets/{KnowledgeEditPage-DhrF6UPg.js → KnowledgeEditPage-XG6HKK7E.js} +1 -1
  34. package/static/assets/{KnowledgePage-_gZhpTe3.js → KnowledgePage-B2zI3xwW.js} +2 -2
  35. package/static/assets/{LoginPage-Cc1Ac2j4.js → LoginPage-CUJRxwXy.js} +1 -1
  36. package/static/assets/MailInboxPage-BlCG-tba.js +1 -0
  37. package/static/assets/MailProcessingModal-BJIdHOqK.js +1 -0
  38. package/static/assets/MailReadPage-MoNo_gmW.js +1 -0
  39. package/static/assets/{MailSentPage-Dj63oQ5D.js → MailSentPage-QzpuIJmT.js} +1 -1
  40. package/static/assets/{McpSettingsPage-DYZ0QNbp.js → McpSettingsPage-BZcCGkGM.js} +1 -1
  41. package/static/assets/MemoryEditPage-DXSQoCT4.js +13 -0
  42. package/static/assets/MemoryPage-oBnyuvSf.js +1 -0
  43. package/static/assets/NewKnowledgePage-deMsezK8.js +1 -0
  44. package/static/assets/{NewSkillPage-BEn18f2A.js → NewSkillPage-DRYWdrlV.js} +1 -1
  45. package/static/assets/{NewTaskPage-CSlncpI5.js → NewTaskPage-B6xdic5_.js} +2 -2
  46. package/static/assets/{NotFoundPage-C4x0lGai.js → NotFoundPage-Bxu9uKFO.js} +1 -1
  47. package/static/assets/{NotificationsSettingsPage-C9YnfRlj.js → NotificationsSettingsPage-CLgtsCVM.js} +1 -1
  48. package/static/assets/{PromptsSettingsPage-Chc4da1S.js → PromptsSettingsPage-BWaELCjG.js} +1 -1
  49. package/static/assets/{ResourceDetailPage-DDYKQxpM.js → ResourceDetailPage-CMPDRdVM.js} +1 -1
  50. package/static/assets/ResourcesPage-DspYILfG.js +41 -0
  51. package/static/assets/{RoleEditPage-Ccfu1tn1.js → RoleEditPage-DXtzicVZ.js} +1 -1
  52. package/static/assets/{RolePage-CcdEUjSm.js → RolePage-DafGURGp.js} +1 -1
  53. package/static/assets/{RulesSettingsPage-Cz1g_eAj.js → RulesSettingsPage-E8V9cexV.js} +1 -1
  54. package/static/assets/RunDetailPage-DsxkqFst.js +1 -0
  55. package/static/assets/SchedulePage-B2YvNDHr.js +4 -0
  56. package/static/assets/{SkillDetailPage-sJg-L8A8.js → SkillDetailPage-CWkqSfuT.js} +1 -1
  57. package/static/assets/{SkillEditPage-BksV7GmD.js → SkillEditPage-DwyebzFV.js} +1 -1
  58. package/static/assets/{SkillsPage-CwarkJmZ.js → SkillsPage-CauK65X_.js} +2 -2
  59. package/static/assets/{SkillsSettingsPage-DTnBlBdE.js → SkillsSettingsPage-DXMRv3jR.js} +1 -1
  60. package/static/assets/{SourceInput-CWazIr6v.js → SourceInput-C0iKqbQ1.js} +1 -1
  61. package/static/assets/{TagInput-Bgyxb_JU.js → TagInput-Ct-WRvTs.js} +1 -1
  62. package/static/assets/{TaskDetailPage-DlmG1kZR.js → TaskDetailPage-CApk2iBh.js} +1 -1
  63. package/static/assets/{TaskEditPage-BnpNeed_.js → TaskEditPage-NgOVShfK.js} +1 -1
  64. package/static/assets/{TasksPage-CXeTMpgy.js → TasksPage-BoPrP_Rl.js} +3 -3
  65. package/static/assets/TeamEditPage-ChY6mYm8.js +9 -0
  66. package/static/assets/TeamPage-DH-dJhFG.js +1 -0
  67. package/static/assets/{TerminalPage-BLcPt381.js → TerminalPage-CRhcscF2.js} +1 -1
  68. package/static/assets/TerminalSessionPage-CSCQg2sn.js +3 -0
  69. package/static/assets/{UserPreferencesPage-BNwEqlRW.js → UserPreferencesPage-DxCSWJnS.js} +1 -1
  70. package/static/assets/{UserSettingsPage-BRafqkiD.js → UserSettingsPage-DKkOLNPV.js} +1 -1
  71. package/static/assets/UtilitiesPage-CBNSvixW.js +1 -0
  72. package/static/assets/{alert-Ci2-OWZ_.js → alert-Dw_RSroN.js} +1 -1
  73. package/static/assets/{arrow-down-C6Flf0DF.js → arrow-down-UClxXzT-.js} +1 -1
  74. package/static/assets/{arrow-left-7TCkaJlN.js → arrow-left-DWmf9YJp.js} +1 -1
  75. package/static/assets/{arrow-up-down-tqbfiBy6.js → arrow-up-down-Btc3okb3.js} +1 -1
  76. package/static/assets/{arrow-up-DeQAxOPq.js → arrow-up-fLCh7Hvh.js} +1 -1
  77. package/static/assets/{badge-D4vHU_w_.js → badge-vIqE5SOP.js} +1 -1
  78. package/static/assets/{browser-modal-BiaqhKHm.js → browser-modal-DgMJTsMd.js} +2 -2
  79. package/static/assets/{card-xkODbJy-.js → card-DPLdBoa5.js} +1 -1
  80. package/static/assets/{chevron-left-CvpfJBPQ.js → chevron-left-CiNaLX-v.js} +1 -1
  81. package/static/assets/{chevron-up-BB-6OS4z.js → chevron-up-DFd-7wxW.js} +1 -1
  82. package/static/assets/{chevrons-up-CLKrQHMU.js → chevrons-up-BfU70OcQ.js} +1 -1
  83. package/static/assets/{circle-alert-lnP0-w3N.js → circle-alert-Mv00T-P2.js} +1 -1
  84. package/static/assets/{circle-check-big-Dbo-OmWQ.js → circle-check-big-BEY1IoIP.js} +1 -1
  85. package/static/assets/{circle-check-BPkEav83.js → circle-check-xMiP6SLO.js} +1 -1
  86. package/static/assets/{circle-play-BbtBIeo3.js → circle-play-iZZwaGbV.js} +1 -1
  87. package/static/assets/{circle-x-BBwi8e5G.js → circle-x-z3iynaE7.js} +1 -1
  88. package/static/assets/{clipboard-Ce816tAO.js → clipboard-C8wZRPDH.js} +1 -1
  89. package/static/assets/{clock-BIeoO5Mt.js → clock-C_9shc08.js} +1 -1
  90. package/static/assets/{code-DTW3giBe.js → code-DH-sRhus.js} +1 -1
  91. package/static/assets/{download-BgKxfry9.js → download-CE8b59ER.js} +1 -1
  92. package/static/assets/{external-link--RjKXREe.js → external-link-DPyKt8NE.js} +1 -1
  93. package/static/assets/{eye--K-OgK7L.js → eye-BpGD-yoS.js} +1 -1
  94. package/static/assets/{folder-git-2-Bgv7r0zC.js → folder-git-2-BIw4zbmy.js} +1 -1
  95. package/static/assets/globe-CUo7eHKN.js +6 -0
  96. package/static/assets/{index-Di7xMYoG.js → index-B07hel4U.js} +1 -1
  97. package/static/assets/{index-DF_KNbKf.js → index-BCwmQxLC.js} +1 -1
  98. package/static/assets/{index-D9xZafJb.js → index-BOKaM9K-.js} +1 -1
  99. package/static/assets/{index-Cd5hBt4x.js → index-BaR4iUzg.js} +1 -1
  100. package/static/assets/index-BcCuKdbf.css +1 -0
  101. package/static/assets/{index-Db5-BoCU.js → index-Bfb3OTwj.js} +1 -1
  102. package/static/assets/{index-Do92mBFr.js → index-Bkt1rQVV.js} +1 -1
  103. package/static/assets/{index-BD9UBXsr.js → index-C65b3D5_.js} +1 -1
  104. package/static/assets/{index-BbrX1XcC.js → index-CGbmjmEy.js} +1 -1
  105. package/static/assets/{index-4RuWYO4M.js → index-CTouvf2d.js} +1 -1
  106. package/static/assets/{index-Dt_WtbUU.js → index-Cdwx6Zps.js} +1 -1
  107. package/static/assets/{index-iIFwHD3L.js → index-ClO9-JVh.js} +1 -1
  108. package/static/assets/{index-BteQHbZ1.js → index-CpJ0uBf3.js} +1 -1
  109. package/static/assets/{index-LMsLdXw_.js → index-CsBxEWw5.js} +1 -1
  110. package/static/assets/{index-CW9pK_cZ.js → index-DZAYfTI2.js} +1 -1
  111. package/static/assets/{index-BkEdELOI.js → index-Dkr9CBL7.js} +1 -1
  112. package/static/assets/{index-BQYB8kWb.js → index-DnZKG-_7.js} +1 -1
  113. package/static/assets/index-UXL5-kaP.js +497 -0
  114. package/static/assets/{index-Ch4GVR8L.js → index-iB8oed57.js} +1 -1
  115. package/static/assets/{index-R44k73Ca.js → index-jaRIZ6SY.js} +1 -1
  116. package/static/assets/{info-DgZN3xWF.js → info-D-UNBNx2.js} +1 -1
  117. package/static/assets/{label-DvPENm3h.js → label-8VKluf9w.js} +1 -1
  118. package/static/assets/{markdown-editor-DpZxV-fa.js → markdown-editor-DBdRsbP2.js} +3 -3
  119. package/static/assets/{message-square-CoaQYehb.js → message-square-CO8kDUed.js} +1 -1
  120. package/static/assets/{paperclip-ChugoOAp.js → paperclip-DlLXZbru.js} +1 -1
  121. package/static/assets/{pause-m9YcgxdE.js → pause-zSiaxJBu.js} +1 -1
  122. package/static/assets/{play-DtFz_MLh.js → play-DVBhRokt.js} +1 -1
  123. package/static/assets/{radio-group-C5Te9bVb.js → radio-group-CThYUcA4.js} +1 -1
  124. package/static/assets/{refresh-cw-B1bWW9Rg.js → refresh-cw-tXYl1ePu.js} +1 -1
  125. package/static/assets/{search-CPOHeeUa.js → search-BxF7Wwex.js} +1 -1
  126. package/static/assets/{select-B1v2u6hQ.js → select-CyHFRA1Y.js} +1 -1
  127. package/static/assets/server-lRxThHjr.js +6 -0
  128. package/static/assets/{switch-Bf1Cq3P6.js → switch-BUpDbrux.js} +1 -1
  129. package/static/assets/tabs-DkvCmQEX.js +1 -0
  130. package/static/assets/{tag-Cz4z82t0.js → tag-CkcZNLnh.js} +1 -1
  131. package/static/assets/{terminal-preview-DTUohQ5b.js → terminal-preview-CLWDhoOZ.js} +1 -1
  132. package/static/assets/triangle-alert-CmjG_mbF.js +6 -0
  133. package/static/assets/{use-terminal-CFbQv1ie.js → use-terminal-D3iV7-iC.js} +1 -1
  134. package/static/assets/{video-B6ZJ-Epb.js → video-CY_dOujm.js} +1 -1
  135. package/static/index.html +2 -2
  136. package/dist/lib/mcp-client.d.ts +0 -39
  137. package/dist/lib/mcp-client.js +0 -131
  138. package/dist/routes/api/v1/ai/tools.d.ts +0 -17
  139. package/dist/routes/api/v1/ai/tools.js +0 -931
  140. package/dist/routes/api/v1/context/knowledge/[filename]/index.d.ts +0 -1
  141. package/dist/routes/api/v1/context/knowledge/[filename]/index.js +0 -1
  142. package/dist/routes/api/v1/context/knowledge/[filename]/route.js +0 -254
  143. package/dist/routes/api/v1/context/knowledge/index.d.ts +0 -1
  144. package/dist/routes/api/v1/context/knowledge/index.js +0 -1
  145. package/dist/routes/api/v1/context/knowledge/route.js +0 -176
  146. package/dist/routes/api/v1/proposals/[id]/route.d.ts +0 -337
  147. package/dist/routes/api/v1/proposals/[id]/route.js +0 -165
  148. package/dist/routes/api/v1/proposals/index.d.ts +0 -3
  149. package/dist/routes/api/v1/proposals/index.js +0 -10
  150. package/dist/routes/api/v1/proposals/route.d.ts +0 -315
  151. package/dist/routes/api/v1/proposals/route.js +0 -129
  152. package/dist/routes/api/v1/terminal/[proposalId]/create/index.d.ts +0 -3
  153. package/dist/routes/api/v1/terminal/[proposalId]/create/index.js +0 -5
  154. package/dist/routes/api/v1/terminal/[proposalId]/create/route.d.ts +0 -10
  155. package/dist/routes/api/v1/terminal/[proposalId]/create/route.js +0 -27
  156. package/dist/routes/api/v1/terminal/[proposalId]/destroy/index.js +0 -5
  157. package/dist/routes/api/v1/terminal/[proposalId]/destroy/route.d.ts +0 -10
  158. package/dist/routes/api/v1/terminal/[proposalId]/destroy/route.js +0 -21
  159. package/dist/routes/api/v1/terminal/[proposalId]/resize/index.d.ts +0 -3
  160. package/dist/routes/api/v1/terminal/[proposalId]/resize/index.js +0 -5
  161. package/dist/routes/api/v1/terminal/[proposalId]/resize/route.d.ts +0 -10
  162. package/dist/routes/api/v1/terminal/[proposalId]/resize/route.js +0 -21
  163. package/static/assets/ActivityPage-uL-Qknui.js +0 -1
  164. package/static/assets/ArchitectureEditPage-BWKyKi3T.js +0 -21
  165. package/static/assets/ArchitecturePage-Dtm0OAac.js +0 -1
  166. package/static/assets/CodePage-BuO2K_xx.js +0 -2
  167. package/static/assets/IntegrationsSettingsPage-Z8xCUmX9.js +0 -1
  168. package/static/assets/JobDetailPage-B8Za82RA.js +0 -1
  169. package/static/assets/KnowledgeDetailPage-CR9c4_WD.js +0 -1
  170. package/static/assets/MailInboxPage-B_h1Kz4D.js +0 -1
  171. package/static/assets/MailProcessingModal-D_qEwqmL.js +0 -6
  172. package/static/assets/MailReadPage-_q-xk_cX.js +0 -1
  173. package/static/assets/NewKnowledgePage-BEVMYnKG.js +0 -9
  174. package/static/assets/ProjectEditPage-X0-4mEAS.js +0 -11
  175. package/static/assets/ProjectPage-D8OX1GKt.js +0 -1
  176. package/static/assets/ResourcesPage-BmOpgt3L.js +0 -41
  177. package/static/assets/SchedulePage-CGxZHEL-.js +0 -4
  178. package/static/assets/TerminalSessionPage-CeAd8IAy.js +0 -8
  179. package/static/assets/UtilitiesPage-BPX_Unxu.js +0 -1
  180. package/static/assets/index-DH_vXhd4.css +0 -1
  181. package/static/assets/index-PyVlsLW8.js +0 -487
  182. package/static/assets/tabs-DAbCZiFC.js +0 -1
  183. /package/dist/routes/api/v1/context/{knowledge/[filename] → agents}/route.d.ts +0 -0
  184. /package/dist/routes/api/v1/context/{knowledge → memory}/route.d.ts +0 -0
  185. /package/dist/routes/api/v1/{terminal/[proposalId]/destroy/index.d.ts → context/team/route.d.ts} +0 -0
@@ -1,487 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardPage-B3HR1UM7.js","assets/card-xkODbJy-.js","assets/badge-D4vHU_w_.js","assets/status-utils-PwF3DXLL.js","assets/label-DvPENm3h.js","assets/select-B1v2u6hQ.js","assets/index-BQYB8kWb.js","assets/chevron-up-BB-6OS4z.js","assets/use-terminal-CFbQv1ie.js","assets/terminal-preview-DTUohQ5b.js","assets/xterm-DTxiCjtJ.js","assets/xterm-qxJ8_QYu.css","assets/circle-check-BPkEav83.js","assets/chevron-left-CvpfJBPQ.js","assets/search-CPOHeeUa.js","assets/code-DTW3giBe.js","assets/folder-git-2-Bgv7r0zC.js","assets/external-link--RjKXREe.js","assets/play-DtFz_MLh.js","assets/clock-BIeoO5Mt.js","assets/circle-check-big-Dbo-OmWQ.js","assets/LoginPage-Cc1Ac2j4.js","assets/tabs-DAbCZiFC.js","assets/CallbackPage-Bz4m3_W8.js","assets/circle-x-BBwi8e5G.js","assets/TasksPage-CXeTMpgy.js","assets/TaskDetailPage-DlmG1kZR.js","assets/clipboard-B9ndUJKl.js","assets/arrow-left-7TCkaJlN.js","assets/clipboard-Ce816tAO.js","assets/arrow-up-down-tqbfiBy6.js","assets/info-DgZN3xWF.js","assets/message-square-CoaQYehb.js","assets/TaskEditPage-BnpNeed_.js","assets/markdown-editor-DpZxV-fa.js","assets/markdown-editor-B6HEtSkH.css","assets/CollapsibleSection-CxX11hr-.js","assets/ImplementationStepsEditor-u3dPxmKW.js","assets/TagInput-Bgyxb_JU.js","assets/NewTaskPage-CSlncpI5.js","assets/TerminalPage-BLcPt381.js","assets/refresh-cw-B1bWW9Rg.js","assets/chevrons-up-CLKrQHMU.js","assets/circle-play-BbtBIeo3.js","assets/terminal-xj47PT8r.css","assets/TerminalSessionPage-CeAd8IAy.js","assets/radio-group-C5Te9bVb.js","assets/arrow-down-C6Flf0DF.js","assets/pipeline-builders-Bkf0wt_O.js","assets/eye--K-OgK7L.js","assets/UtilitiesPage-BPX_Unxu.js","assets/CodePage-BuO2K_xx.js","assets/SkillsPage-CwarkJmZ.js","assets/browser-modal-BiaqhKHm.js","assets/registry-ANRa5WBi.js","assets/SkillDetailPage-sJg-L8A8.js","assets/NewSkillPage-BEn18f2A.js","assets/SkillEditPage-BksV7GmD.js","assets/ResourcesPage-BmOpgt3L.js","assets/video-B6ZJ-Epb.js","assets/download-BgKxfry9.js","assets/tag-Cz4z82t0.js","assets/ResourceDetailPage-DDYKQxpM.js","assets/KnowledgePage-_gZhpTe3.js","assets/arrow-up-DeQAxOPq.js","assets/KnowledgeDetailPage-CR9c4_WD.js","assets/KnowledgeEditPage-DhrF6UPg.js","assets/SourceInput-CWazIr6v.js","assets/NewKnowledgePage-BEVMYnKG.js","assets/ProjectPage-D8OX1GKt.js","assets/ProjectEditPage-X0-4mEAS.js","assets/ArchitecturePage-Dtm0OAac.js","assets/ArchitectureEditPage-BWKyKi3T.js","assets/RolePage-CcdEUjSm.js","assets/RoleEditPage-Ccfu1tn1.js","assets/IdentityPage-YCkmdyzR.js","assets/alert-Ci2-OWZ_.js","assets/UserSettingsPage-BRafqkiD.js","assets/AuthSettingsPage-D0MQlHyh.js","assets/switch-Bf1Cq3P6.js","assets/circle-alert-lnP0-w3N.js","assets/ApiKeysSettingsPage-BhaH6ZYP.js","assets/SkillsSettingsPage-DTnBlBdE.js","assets/IntegrationsSettingsPage-Z8xCUmX9.js","assets/GitSettingsPage-CRWcjgVI.js","assets/McpSettingsPage-DYZ0QNbp.js","assets/PromptsSettingsPage-Chc4da1S.js","assets/RulesSettingsPage-Cz1g_eAj.js","assets/NotificationsSettingsPage-C9YnfRlj.js","assets/GitPage-Dm36PRw_.js","assets/SchedulePage-CGxZHEL-.js","assets/pause-m9YcgxdE.js","assets/JobDetailPage-B8Za82RA.js","assets/UserPreferencesPage-BNwEqlRW.js","assets/ActivityPage-uL-Qknui.js","assets/MailInboxPage-B_h1Kz4D.js","assets/MailProcessingModal-D_qEwqmL.js","assets/paperclip-ChugoOAp.js","assets/MailReadPage-_q-xk_cX.js","assets/MailSentPage-Dj63oQ5D.js"])))=>i.map(i=>d[i]);
2
- function OA(e,n){for(var r=0;r<n.length;r++){const i=n[r];if(typeof i!="string"&&!Array.isArray(i)){for(const o in i)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(i,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>i[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))i(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const c of s.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&i(c)}).observe(document,{childList:!0,subtree:!0});function r(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(o){if(o.ep)return;o.ep=!0;const s=r(o);fetch(o.href,s)}})();var DB=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function lc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Yd={exports:{}},so={};/**
3
- * @license React
4
- * react-jsx-runtime.production.js
5
- *
6
- * Copyright (c) Meta Platforms, Inc. and affiliates.
7
- *
8
- * This source code is licensed under the MIT license found in the
9
- * LICENSE file in the root directory of this source tree.
10
- */var vx;function LA(){if(vx)return so;vx=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(i,o,s){var c=null;if(s!==void 0&&(c=""+s),o.key!==void 0&&(c=""+o.key),"key"in o){s={};for(var f in o)f!=="key"&&(s[f]=o[f])}else s=o;return o=s.ref,{$$typeof:e,type:i,key:c,ref:o!==void 0?o:null,props:s}}return so.Fragment=n,so.jsx=r,so.jsxs=r,so}var xx;function zA(){return xx||(xx=1,Yd.exports=LA()),Yd.exports}var g=zA(),Kd={exports:{}},Oe={};/**
11
- * @license React
12
- * react.production.js
13
- *
14
- * Copyright (c) Meta Platforms, Inc. and affiliates.
15
- *
16
- * This source code is licensed under the MIT license found in the
17
- * LICENSE file in the root directory of this source tree.
18
- */var bx;function PA(){if(bx)return Oe;bx=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),y=Symbol.iterator;function b(E){return E===null||typeof E!="object"?null:(E=y&&E[y]||E["@@iterator"],typeof E=="function"?E:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,k={};function T(E,Z,oe){this.props=E,this.context=Z,this.refs=k,this.updater=oe||w}T.prototype.isReactComponent={},T.prototype.setState=function(E,Z){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,Z,"setState")},T.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function A(){}A.prototype=T.prototype;function _(E,Z,oe){this.props=E,this.context=Z,this.refs=k,this.updater=oe||w}var N=_.prototype=new A;N.constructor=_,C(N,T.prototype),N.isPureReactComponent=!0;var O=Array.isArray,z={H:null,A:null,T:null,S:null,V:null},j=Object.prototype.hasOwnProperty;function $(E,Z,oe,M,se,Se){return oe=Se.ref,{$$typeof:e,type:E,key:Z,ref:oe!==void 0?oe:null,props:Se}}function G(E,Z){return $(E.type,Z,void 0,void 0,void 0,E.props)}function ee(E){return typeof E=="object"&&E!==null&&E.$$typeof===e}function P(E){var Z={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(oe){return Z[oe]})}var ne=/\/+/g;function ae(E,Z){return typeof E=="object"&&E!==null&&E.key!=null?P(""+E.key):Z.toString(36)}function le(){}function H(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(le,le):(E.status="pending",E.then(function(Z){E.status==="pending"&&(E.status="fulfilled",E.value=Z)},function(Z){E.status==="pending"&&(E.status="rejected",E.reason=Z)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function Q(E,Z,oe,M,se){var Se=typeof E;(Se==="undefined"||Se==="boolean")&&(E=null);var he=!1;if(E===null)he=!0;else switch(Se){case"bigint":case"string":case"number":he=!0;break;case"object":switch(E.$$typeof){case e:case n:he=!0;break;case m:return he=E._init,Q(he(E._payload),Z,oe,M,se)}}if(he)return se=se(E),he=M===""?"."+ae(E,0):M,O(se)?(oe="",he!=null&&(oe=he.replace(ne,"$&/")+"/"),Q(se,Z,oe,"",function(Qe){return Qe})):se!=null&&(ee(se)&&(se=G(se,oe+(se.key==null||E&&E.key===se.key?"":(""+se.key).replace(ne,"$&/")+"/")+he)),Z.push(se)),1;he=0;var xe=M===""?".":M+":";if(O(E))for(var Ee=0;Ee<E.length;Ee++)M=E[Ee],Se=xe+ae(M,Ee),he+=Q(M,Z,oe,Se,se);else if(Ee=b(E),typeof Ee=="function")for(E=Ee.call(E),Ee=0;!(M=E.next()).done;)M=M.value,Se=xe+ae(M,Ee++),he+=Q(M,Z,oe,Se,se);else if(Se==="object"){if(typeof E.then=="function")return Q(H(E),Z,oe,M,se);throw Z=String(E),Error("Objects are not valid as a React child (found: "+(Z==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":Z)+"). If you meant to render a collection of children, use an array instead.")}return he}function L(E,Z,oe){if(E==null)return E;var M=[],se=0;return Q(E,M,"","",function(Se){return Z.call(oe,Se,se++)}),M}function K(E){if(E._status===-1){var Z=E._result;Z=Z(),Z.then(function(oe){(E._status===0||E._status===-1)&&(E._status=1,E._result=oe)},function(oe){(E._status===0||E._status===-1)&&(E._status=2,E._result=oe)}),E._status===-1&&(E._status=0,E._result=Z)}if(E._status===1)return E._result.default;throw E._result}var U=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof E=="object"&&E!==null&&typeof E.message=="string"?String(E.message):String(E),error:E});if(!window.dispatchEvent(Z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)};function J(){}return Oe.Children={map:L,forEach:function(E,Z,oe){L(E,function(){Z.apply(this,arguments)},oe)},count:function(E){var Z=0;return L(E,function(){Z++}),Z},toArray:function(E){return L(E,function(Z){return Z})||[]},only:function(E){if(!ee(E))throw Error("React.Children.only expected to receive a single React element child.");return E}},Oe.Component=T,Oe.Fragment=r,Oe.Profiler=o,Oe.PureComponent=_,Oe.StrictMode=i,Oe.Suspense=h,Oe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=z,Oe.__COMPILER_RUNTIME={__proto__:null,c:function(E){return z.H.useMemoCache(E)}},Oe.cache=function(E){return function(){return E.apply(null,arguments)}},Oe.cloneElement=function(E,Z,oe){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var M=C({},E.props),se=E.key,Se=void 0;if(Z!=null)for(he in Z.ref!==void 0&&(Se=void 0),Z.key!==void 0&&(se=""+Z.key),Z)!j.call(Z,he)||he==="key"||he==="__self"||he==="__source"||he==="ref"&&Z.ref===void 0||(M[he]=Z[he]);var he=arguments.length-2;if(he===1)M.children=oe;else if(1<he){for(var xe=Array(he),Ee=0;Ee<he;Ee++)xe[Ee]=arguments[Ee+2];M.children=xe}return $(E.type,se,void 0,void 0,Se,M)},Oe.createContext=function(E){return E={$$typeof:c,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:s,_context:E},E},Oe.createElement=function(E,Z,oe){var M,se={},Se=null;if(Z!=null)for(M in Z.key!==void 0&&(Se=""+Z.key),Z)j.call(Z,M)&&M!=="key"&&M!=="__self"&&M!=="__source"&&(se[M]=Z[M]);var he=arguments.length-2;if(he===1)se.children=oe;else if(1<he){for(var xe=Array(he),Ee=0;Ee<he;Ee++)xe[Ee]=arguments[Ee+2];se.children=xe}if(E&&E.defaultProps)for(M in he=E.defaultProps,he)se[M]===void 0&&(se[M]=he[M]);return $(E,Se,void 0,void 0,null,se)},Oe.createRef=function(){return{current:null}},Oe.forwardRef=function(E){return{$$typeof:f,render:E}},Oe.isValidElement=ee,Oe.lazy=function(E){return{$$typeof:m,_payload:{_status:-1,_result:E},_init:K}},Oe.memo=function(E,Z){return{$$typeof:d,type:E,compare:Z===void 0?null:Z}},Oe.startTransition=function(E){var Z=z.T,oe={};z.T=oe;try{var M=E(),se=z.S;se!==null&&se(oe,M),typeof M=="object"&&M!==null&&typeof M.then=="function"&&M.then(J,U)}catch(Se){U(Se)}finally{z.T=Z}},Oe.unstable_useCacheRefresh=function(){return z.H.useCacheRefresh()},Oe.use=function(E){return z.H.use(E)},Oe.useActionState=function(E,Z,oe){return z.H.useActionState(E,Z,oe)},Oe.useCallback=function(E,Z){return z.H.useCallback(E,Z)},Oe.useContext=function(E){return z.H.useContext(E)},Oe.useDebugValue=function(){},Oe.useDeferredValue=function(E,Z){return z.H.useDeferredValue(E,Z)},Oe.useEffect=function(E,Z,oe){var M=z.H;if(typeof oe=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return M.useEffect(E,Z)},Oe.useId=function(){return z.H.useId()},Oe.useImperativeHandle=function(E,Z,oe){return z.H.useImperativeHandle(E,Z,oe)},Oe.useInsertionEffect=function(E,Z){return z.H.useInsertionEffect(E,Z)},Oe.useLayoutEffect=function(E,Z){return z.H.useLayoutEffect(E,Z)},Oe.useMemo=function(E,Z){return z.H.useMemo(E,Z)},Oe.useOptimistic=function(E,Z){return z.H.useOptimistic(E,Z)},Oe.useReducer=function(E,Z,oe){return z.H.useReducer(E,Z,oe)},Oe.useRef=function(E){return z.H.useRef(E)},Oe.useState=function(E){return z.H.useState(E)},Oe.useSyncExternalStore=function(E,Z,oe){return z.H.useSyncExternalStore(E,Z,oe)},Oe.useTransition=function(){return z.H.useTransition()},Oe.version="19.1.1",Oe}var wx;function vp(){return wx||(wx=1,Kd.exports=PA()),Kd.exports}var x=vp();const fa=lc(x),w0=OA({__proto__:null,default:fa},[x]);var Xd={exports:{}},uo={},Qd={exports:{}},Zd={};/**
19
- * @license React
20
- * scheduler.production.js
21
- *
22
- * Copyright (c) Meta Platforms, Inc. and affiliates.
23
- *
24
- * This source code is licensed under the MIT license found in the
25
- * LICENSE file in the root directory of this source tree.
26
- */var Sx;function IA(){return Sx||(Sx=1,(function(e){function n(L,K){var U=L.length;L.push(K);e:for(;0<U;){var J=U-1>>>1,E=L[J];if(0<o(E,K))L[J]=K,L[U]=E,U=J;else break e}}function r(L){return L.length===0?null:L[0]}function i(L){if(L.length===0)return null;var K=L[0],U=L.pop();if(U!==K){L[0]=U;e:for(var J=0,E=L.length,Z=E>>>1;J<Z;){var oe=2*(J+1)-1,M=L[oe],se=oe+1,Se=L[se];if(0>o(M,U))se<E&&0>o(Se,M)?(L[J]=Se,L[se]=U,J=se):(L[J]=M,L[oe]=U,J=oe);else if(se<E&&0>o(Se,U))L[J]=Se,L[se]=U,J=se;else break e}}return K}function o(L,K){var U=L.sortIndex-K.sortIndex;return U!==0?U:L.id-K.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var c=Date,f=c.now();e.unstable_now=function(){return c.now()-f}}var h=[],d=[],m=1,y=null,b=3,w=!1,C=!1,k=!1,T=!1,A=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;function O(L){for(var K=r(d);K!==null;){if(K.callback===null)i(d);else if(K.startTime<=L)i(d),K.sortIndex=K.expirationTime,n(h,K);else break;K=r(d)}}function z(L){if(k=!1,O(L),!C)if(r(h)!==null)C=!0,j||(j=!0,ae());else{var K=r(d);K!==null&&Q(z,K.startTime-L)}}var j=!1,$=-1,G=5,ee=-1;function P(){return T?!0:!(e.unstable_now()-ee<G)}function ne(){if(T=!1,j){var L=e.unstable_now();ee=L;var K=!0;try{e:{C=!1,k&&(k=!1,_($),$=-1),w=!0;var U=b;try{t:{for(O(L),y=r(h);y!==null&&!(y.expirationTime>L&&P());){var J=y.callback;if(typeof J=="function"){y.callback=null,b=y.priorityLevel;var E=J(y.expirationTime<=L);if(L=e.unstable_now(),typeof E=="function"){y.callback=E,O(L),K=!0;break t}y===r(h)&&i(h),O(L)}else i(h);y=r(h)}if(y!==null)K=!0;else{var Z=r(d);Z!==null&&Q(z,Z.startTime-L),K=!1}}break e}finally{y=null,b=U,w=!1}K=void 0}}finally{K?ae():j=!1}}}var ae;if(typeof N=="function")ae=function(){N(ne)};else if(typeof MessageChannel<"u"){var le=new MessageChannel,H=le.port2;le.port1.onmessage=ne,ae=function(){H.postMessage(null)}}else ae=function(){A(ne,0)};function Q(L,K){$=A(function(){L(e.unstable_now())},K)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(L){L.callback=null},e.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):G=0<L?Math.floor(1e3/L):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(L){switch(b){case 1:case 2:case 3:var K=3;break;default:K=b}var U=b;b=K;try{return L()}finally{b=U}},e.unstable_requestPaint=function(){T=!0},e.unstable_runWithPriority=function(L,K){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var U=b;b=L;try{return K()}finally{b=U}},e.unstable_scheduleCallback=function(L,K,U){var J=e.unstable_now();switch(typeof U=="object"&&U!==null?(U=U.delay,U=typeof U=="number"&&0<U?J+U:J):U=J,L){case 1:var E=-1;break;case 2:E=250;break;case 5:E=1073741823;break;case 4:E=1e4;break;default:E=5e3}return E=U+E,L={id:m++,callback:K,priorityLevel:L,startTime:U,expirationTime:E,sortIndex:-1},U>J?(L.sortIndex=U,n(d,L),r(h)===null&&L===r(d)&&(k?(_($),$=-1):k=!0,Q(z,U-J))):(L.sortIndex=E,n(h,L),C||w||(C=!0,j||(j=!0,ae()))),L},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(L){var K=b;return function(){var U=b;b=K;try{return L.apply(this,arguments)}finally{b=U}}}})(Zd)),Zd}var Ex;function BA(){return Ex||(Ex=1,Qd.exports=IA()),Qd.exports}var Wd={exports:{}},qt={};/**
27
- * @license React
28
- * react-dom.production.js
29
- *
30
- * Copyright (c) Meta Platforms, Inc. and affiliates.
31
- *
32
- * This source code is licensed under the MIT license found in the
33
- * LICENSE file in the root directory of this source tree.
34
- */var Cx;function UA(){if(Cx)return qt;Cx=1;var e=vp();function n(h){var d="https://react.dev/errors/"+h;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)d+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+h+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},o=Symbol.for("react.portal");function s(h,d,m){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:y==null?null:""+y,children:h,containerInfo:d,implementation:m}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(h,d){if(h==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return qt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,qt.createPortal=function(h,d){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(n(299));return s(h,d,null,m)},qt.flushSync=function(h){var d=c.T,m=i.p;try{if(c.T=null,i.p=2,h)return h()}finally{c.T=d,i.p=m,i.d.f()}},qt.preconnect=function(h,d){typeof h=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,i.d.C(h,d))},qt.prefetchDNS=function(h){typeof h=="string"&&i.d.D(h)},qt.preinit=function(h,d){if(typeof h=="string"&&d&&typeof d.as=="string"){var m=d.as,y=f(m,d.crossOrigin),b=typeof d.integrity=="string"?d.integrity:void 0,w=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;m==="style"?i.d.S(h,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:y,integrity:b,fetchPriority:w}):m==="script"&&i.d.X(h,{crossOrigin:y,integrity:b,fetchPriority:w,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},qt.preinitModule=function(h,d){if(typeof h=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var m=f(d.as,d.crossOrigin);i.d.M(h,{crossOrigin:m,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&i.d.M(h)},qt.preload=function(h,d){if(typeof h=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var m=d.as,y=f(m,d.crossOrigin);i.d.L(h,m,{crossOrigin:y,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},qt.preloadModule=function(h,d){if(typeof h=="string")if(d){var m=f(d.as,d.crossOrigin);i.d.m(h,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:m,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else i.d.m(h)},qt.requestFormReset=function(h){i.d.r(h)},qt.unstable_batchedUpdates=function(h,d){return h(d)},qt.useFormState=function(h,d,m){return c.H.useFormState(h,d,m)},qt.useFormStatus=function(){return c.H.useHostTransitionStatus()},qt.version="19.1.1",qt}var kx;function S0(){if(kx)return Wd.exports;kx=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(n){console.error(n)}}return e(),Wd.exports=UA(),Wd.exports}/**
35
- * @license React
36
- * react-dom-client.production.js
37
- *
38
- * Copyright (c) Meta Platforms, Inc. and affiliates.
39
- *
40
- * This source code is licensed under the MIT license found in the
41
- * LICENSE file in the root directory of this source tree.
42
- */var Ax;function HA(){if(Ax)return uo;Ax=1;var e=BA(),n=vp(),r=S0();function i(t){var a="https://react.dev/errors/"+t;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)a+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+t+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function s(t){var a=t,l=t;if(t.alternate)for(;a.return;)a=a.return;else{t=a;do a=t,(a.flags&4098)!==0&&(l=a.return),t=a.return;while(t)}return a.tag===3?l:null}function c(t){if(t.tag===13){var a=t.memoizedState;if(a===null&&(t=t.alternate,t!==null&&(a=t.memoizedState)),a!==null)return a.dehydrated}return null}function f(t){if(s(t)!==t)throw Error(i(188))}function h(t){var a=t.alternate;if(!a){if(a=s(t),a===null)throw Error(i(188));return a!==t?null:t}for(var l=t,u=a;;){var p=l.return;if(p===null)break;var v=p.alternate;if(v===null){if(u=p.return,u!==null){l=u;continue}break}if(p.child===v.child){for(v=p.child;v;){if(v===l)return f(p),t;if(v===u)return f(p),a;v=v.sibling}throw Error(i(188))}if(l.return!==u.return)l=p,u=v;else{for(var S=!1,R=p.child;R;){if(R===l){S=!0,l=p,u=v;break}if(R===u){S=!0,u=p,l=v;break}R=R.sibling}if(!S){for(R=v.child;R;){if(R===l){S=!0,l=v,u=p;break}if(R===u){S=!0,u=v,l=p;break}R=R.sibling}if(!S)throw Error(i(189))}}if(l.alternate!==u)throw Error(i(190))}if(l.tag!==3)throw Error(i(188));return l.stateNode.current===l?t:a}function d(t){var a=t.tag;if(a===5||a===26||a===27||a===6)return t;for(t=t.child;t!==null;){if(a=d(t),a!==null)return a;t=t.sibling}return null}var m=Object.assign,y=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),A=Symbol.for("react.provider"),_=Symbol.for("react.consumer"),N=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),G=Symbol.for("react.lazy"),ee=Symbol.for("react.activity"),P=Symbol.for("react.memo_cache_sentinel"),ne=Symbol.iterator;function ae(t){return t===null||typeof t!="object"?null:(t=ne&&t[ne]||t["@@iterator"],typeof t=="function"?t:null)}var le=Symbol.for("react.client.reference");function H(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===le?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case C:return"Fragment";case T:return"Profiler";case k:return"StrictMode";case z:return"Suspense";case j:return"SuspenseList";case ee:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case w:return"Portal";case N:return(t.displayName||"Context")+".Provider";case _:return(t._context.displayName||"Context")+".Consumer";case O:var a=t.render;return t=t.displayName,t||(t=a.displayName||a.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case $:return a=t.displayName||null,a!==null?a:H(t.type)||"Memo";case G:a=t._payload,t=t._init;try{return H(t(a))}catch{}}return null}var Q=Array.isArray,L=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U={pending:!1,data:null,method:null,action:null},J=[],E=-1;function Z(t){return{current:t}}function oe(t){0>E||(t.current=J[E],J[E]=null,E--)}function M(t,a){E++,J[E]=t.current,t.current=a}var se=Z(null),Se=Z(null),he=Z(null),xe=Z(null);function Ee(t,a){switch(M(he,a),M(Se,t),M(se,null),a.nodeType){case 9:case 11:t=(t=a.documentElement)&&(t=t.namespaceURI)?Gv(t):0;break;default:if(t=a.tagName,a=a.namespaceURI)a=Gv(a),t=Yv(a,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}oe(se),M(se,t)}function Qe(){oe(se),oe(Se),oe(he)}function bt(t){t.memoizedState!==null&&M(xe,t);var a=se.current,l=Yv(a,t.type);a!==l&&(M(Se,t),M(se,l))}function Rt(t){Se.current===t&&(oe(se),oe(Se)),xe.current===t&&(oe(xe),ro._currentValue=U)}var It=Object.prototype.hasOwnProperty,Yt=e.unstable_scheduleCallback,ba=e.unstable_cancelCallback,Wn=e.unstable_shouldYield,Jn=e.unstable_requestPaint,Dt=e.unstable_now,Br=e.unstable_getCurrentPriorityLevel,Jt=e.unstable_ImmediatePriority,wn=e.unstable_UserBlockingPriority,mr=e.unstable_NormalPriority,Wa=e.unstable_LowPriority,wa=e.unstable_IdlePriority,Ja=e.log,Ur=e.unstable_setDisableYieldValue,W=null,ue=null;function Ce(t){if(typeof Ja=="function"&&Ur(t),ue&&typeof ue.setStrictMode=="function")try{ue.setStrictMode(W,t)}catch{}}var Re=Math.clz32?Math.clz32:Pn,Ye=Math.log,Kt=Math.LN2;function Pn(t){return t>>>=0,t===0?32:31-(Ye(t)/Kt|0)|0}var Bt=256,un=4194304;function Ot(t){var a=t&42;if(a!==0)return a;switch(t&-t){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:case 262144:case 524288:case 1048576:case 2097152:return t&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function mt(t,a,l){var u=t.pendingLanes;if(u===0)return 0;var p=0,v=t.suspendedLanes,S=t.pingedLanes;t=t.warmLanes;var R=u&134217727;return R!==0?(u=R&~v,u!==0?p=Ot(u):(S&=R,S!==0?p=Ot(S):l||(l=R&~t,l!==0&&(p=Ot(l))))):(R=u&~v,R!==0?p=Ot(R):S!==0?p=Ot(S):l||(l=u&~t,l!==0&&(p=Ot(l)))),p===0?0:a!==0&&a!==p&&(a&v)===0&&(v=p&-p,l=a&-a,v>=l||v===32&&(l&4194048)!==0)?a:p}function Ut(t,a){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&a)===0}function X(t,a){switch(t){case 1:case 2:case 4:case 8:case 64:return a+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 a+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 de(){var t=Bt;return Bt<<=1,(Bt&4194048)===0&&(Bt=256),t}function pe(){var t=un;return un<<=1,(un&62914560)===0&&(un=4194304),t}function be(t){for(var a=[],l=0;31>l;l++)a.push(t);return a}function _e(t,a){t.pendingLanes|=a,a!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Je(t,a,l,u,p,v){var S=t.pendingLanes;t.pendingLanes=l,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=l,t.entangledLanes&=l,t.errorRecoveryDisabledLanes&=l,t.shellSuspendCounter=0;var R=t.entanglements,D=t.expirationTimes,q=t.hiddenUpdates;for(l=S&~l;0<l;){var te=31-Re(l),ie=1<<te;R[te]=0,D[te]=-1;var V=q[te];if(V!==null)for(q[te]=null,te=0;te<V.length;te++){var Y=V[te];Y!==null&&(Y.lane&=-536870913)}l&=~ie}u!==0&&Ht(t,u,0),v!==0&&p===0&&t.tag!==0&&(t.suspendedLanes|=v&~(S&~a))}function Ht(t,a,l){t.pendingLanes|=a,t.suspendedLanes&=~a;var u=31-Re(a);t.entangledLanes|=a,t.entanglements[u]=t.entanglements[u]|1073741824|l&4194090}function Sa(t,a){var l=t.entangledLanes|=a;for(t=t.entanglements;l;){var u=31-Re(l),p=1<<u;p&a|t[u]&a&&(t[u]|=a),l&=~p}}function $e(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function en(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function In(){var t=K.p;return t!==0?t:(t=window.event,t===void 0?32:dx(t.type))}function Bn(t,a){var l=K.p;try{return K.p=t,a()}finally{K.p=l}}var ot=Math.random().toString(36).slice(2),st="__reactFiber$"+ot,gt="__reactProps$"+ot,er="__reactContainer$"+ot,Un="__reactEvents$"+ot,ei="__reactListeners$"+ot,gr="__reactHandles$"+ot,Sn="__reactResources$"+ot,pl="__reactMarker$"+ot;function Bc(t){delete t[st],delete t[gt],delete t[Un],delete t[ei],delete t[gr]}function ti(t){var a=t[st];if(a)return a;for(var l=t.parentNode;l;){if(a=l[er]||l[st]){if(l=a.alternate,a.child!==null||l!==null&&l.child!==null)for(t=Zv(t);t!==null;){if(l=t[st])return l;t=Zv(t)}return a}t=l,l=t.parentNode}return null}function ni(t){if(t=t[st]||t[er]){var a=t.tag;if(a===5||a===6||a===13||a===26||a===27||a===3)return t}return null}function ml(t){var a=t.tag;if(a===5||a===26||a===27||a===6)return t.stateNode;throw Error(i(33))}function ri(t){var a=t[Sn];return a||(a=t[Sn]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function _t(t){t[pl]=!0}var Lm=new Set,zm={};function Ea(t,a){ai(t,a),ai(t+"Capture",a)}function ai(t,a){for(zm[t]=a,t=0;t<a.length;t++)Lm.add(a[t])}var Ak=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]*$"),Pm={},Im={};function Tk(t){return It.call(Im,t)?!0:It.call(Pm,t)?!1:Ak.test(t)?Im[t]=!0:(Pm[t]=!0,!1)}function ss(t,a,l){if(Tk(a))if(l===null)t.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":t.removeAttribute(a);return;case"boolean":var u=a.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){t.removeAttribute(a);return}}t.setAttribute(a,""+l)}}function us(t,a,l){if(l===null)t.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(a);return}t.setAttribute(a,""+l)}}function yr(t,a,l,u){if(u===null)t.removeAttribute(l);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(l);return}t.setAttributeNS(a,l,""+u)}}var Uc,Bm;function ii(t){if(Uc===void 0)try{throw Error()}catch(l){var a=l.stack.trim().match(/\n( *(at )?)/);Uc=a&&a[1]||"",Bm=-1<l.stack.indexOf(`
43
- at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
44
- `+Uc+t+Bm}var Hc=!1;function Fc(t,a){if(!t||Hc)return"";Hc=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(a){var ie=function(){throw Error()};if(Object.defineProperty(ie.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ie,[])}catch(Y){var V=Y}Reflect.construct(t,[],ie)}else{try{ie.call()}catch(Y){V=Y}t.call(ie.prototype)}}else{try{throw Error()}catch(Y){V=Y}(ie=t())&&typeof ie.catch=="function"&&ie.catch(function(){})}}catch(Y){if(Y&&V&&typeof Y.stack=="string")return[Y.stack,V.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var p=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");p&&p.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var v=u.DetermineComponentFrameRoot(),S=v[0],R=v[1];if(S&&R){var D=S.split(`
45
- `),q=R.split(`
46
- `);for(p=u=0;u<D.length&&!D[u].includes("DetermineComponentFrameRoot");)u++;for(;p<q.length&&!q[p].includes("DetermineComponentFrameRoot");)p++;if(u===D.length||p===q.length)for(u=D.length-1,p=q.length-1;1<=u&&0<=p&&D[u]!==q[p];)p--;for(;1<=u&&0<=p;u--,p--)if(D[u]!==q[p]){if(u!==1||p!==1)do if(u--,p--,0>p||D[u]!==q[p]){var te=`
47
- `+D[u].replace(" at new "," at ");return t.displayName&&te.includes("<anonymous>")&&(te=te.replace("<anonymous>",t.displayName)),te}while(1<=u&&0<=p);break}}}finally{Hc=!1,Error.prepareStackTrace=l}return(l=t?t.displayName||t.name:"")?ii(l):""}function Rk(t){switch(t.tag){case 26:case 27:case 5:return ii(t.type);case 16:return ii("Lazy");case 13:return ii("Suspense");case 19:return ii("SuspenseList");case 0:case 15:return Fc(t.type,!1);case 11:return Fc(t.type.render,!1);case 1:return Fc(t.type,!0);case 31:return ii("Activity");default:return""}}function Um(t){try{var a="";do a+=Rk(t),t=t.return;while(t);return a}catch(l){return`
48
- Error generating stack: `+l.message+`
49
- `+l.stack}}function En(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Hm(t){var a=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function _k(t){var a=Hm(t)?"checked":"value",l=Object.getOwnPropertyDescriptor(t.constructor.prototype,a),u=""+t[a];if(!t.hasOwnProperty(a)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var p=l.get,v=l.set;return Object.defineProperty(t,a,{configurable:!0,get:function(){return p.call(this)},set:function(S){u=""+S,v.call(this,S)}}),Object.defineProperty(t,a,{enumerable:l.enumerable}),{getValue:function(){return u},setValue:function(S){u=""+S},stopTracking:function(){t._valueTracker=null,delete t[a]}}}}function cs(t){t._valueTracker||(t._valueTracker=_k(t))}function Fm(t){if(!t)return!1;var a=t._valueTracker;if(!a)return!0;var l=a.getValue(),u="";return t&&(u=Hm(t)?t.checked?"true":"false":t.value),t=u,t!==l?(a.setValue(t),!0):!1}function fs(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var Nk=/[\n"\\]/g;function Cn(t){return t.replace(Nk,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function qc(t,a,l,u,p,v,S,R){t.name="",S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?t.type=S:t.removeAttribute("type"),a!=null?S==="number"?(a===0&&t.value===""||t.value!=a)&&(t.value=""+En(a)):t.value!==""+En(a)&&(t.value=""+En(a)):S!=="submit"&&S!=="reset"||t.removeAttribute("value"),a!=null?Vc(t,S,En(a)):l!=null?Vc(t,S,En(l)):u!=null&&t.removeAttribute("value"),p==null&&v!=null&&(t.defaultChecked=!!v),p!=null&&(t.checked=p&&typeof p!="function"&&typeof p!="symbol"),R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"?t.name=""+En(R):t.removeAttribute("name")}function qm(t,a,l,u,p,v,S,R){if(v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(t.type=v),a!=null||l!=null){if(!(v!=="submit"&&v!=="reset"||a!=null))return;l=l!=null?""+En(l):"",a=a!=null?""+En(a):l,R||a===t.value||(t.value=a),t.defaultValue=a}u=u??p,u=typeof u!="function"&&typeof u!="symbol"&&!!u,t.checked=R?t.checked:!!u,t.defaultChecked=!!u,S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"&&(t.name=S)}function Vc(t,a,l){a==="number"&&fs(t.ownerDocument)===t||t.defaultValue===""+l||(t.defaultValue=""+l)}function li(t,a,l,u){if(t=t.options,a){a={};for(var p=0;p<l.length;p++)a["$"+l[p]]=!0;for(l=0;l<t.length;l++)p=a.hasOwnProperty("$"+t[l].value),t[l].selected!==p&&(t[l].selected=p),p&&u&&(t[l].defaultSelected=!0)}else{for(l=""+En(l),a=null,p=0;p<t.length;p++){if(t[p].value===l){t[p].selected=!0,u&&(t[p].defaultSelected=!0);return}a!==null||t[p].disabled||(a=t[p])}a!==null&&(a.selected=!0)}}function Vm(t,a,l){if(a!=null&&(a=""+En(a),a!==t.value&&(t.value=a),l==null)){t.defaultValue!==a&&(t.defaultValue=a);return}t.defaultValue=l!=null?""+En(l):""}function $m(t,a,l,u){if(a==null){if(u!=null){if(l!=null)throw Error(i(92));if(Q(u)){if(1<u.length)throw Error(i(93));u=u[0]}l=u}l==null&&(l=""),a=l}l=En(a),t.defaultValue=l,u=t.textContent,u===l&&u!==""&&u!==null&&(t.value=u)}function oi(t,a){if(a){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=a;return}}t.textContent=a}var Mk=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 Gm(t,a,l){var u=a.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?u?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="":u?t.setProperty(a,l):typeof l!="number"||l===0||Mk.has(a)?a==="float"?t.cssFloat=l:t[a]=(""+l).trim():t[a]=l+"px"}function Ym(t,a,l){if(a!=null&&typeof a!="object")throw Error(i(62));if(t=t.style,l!=null){for(var u in l)!l.hasOwnProperty(u)||a!=null&&a.hasOwnProperty(u)||(u.indexOf("--")===0?t.setProperty(u,""):u==="float"?t.cssFloat="":t[u]="");for(var p in a)u=a[p],a.hasOwnProperty(p)&&l[p]!==u&&Gm(t,p,u)}else for(var v in a)a.hasOwnProperty(v)&&Gm(t,v,a[v])}function $c(t){if(t.indexOf("-")===-1)return!1;switch(t){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 jk=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"]]),Dk=/^[\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 ds(t){return Dk.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}var Gc=null;function Yc(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var si=null,ui=null;function Km(t){var a=ni(t);if(a&&(t=a.stateNode)){var l=t[gt]||null;e:switch(t=a.stateNode,a.type){case"input":if(qc(t,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),a=l.name,l.type==="radio"&&a!=null){for(l=t;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Cn(""+a)+'"][type="radio"]'),a=0;a<l.length;a++){var u=l[a];if(u!==t&&u.form===t.form){var p=u[gt]||null;if(!p)throw Error(i(90));qc(u,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name)}}for(a=0;a<l.length;a++)u=l[a],u.form===t.form&&Fm(u)}break e;case"textarea":Vm(t,l.value,l.defaultValue);break e;case"select":a=l.value,a!=null&&li(t,!!l.multiple,a,!1)}}}var Kc=!1;function Xm(t,a,l){if(Kc)return t(a,l);Kc=!0;try{var u=t(a);return u}finally{if(Kc=!1,(si!==null||ui!==null)&&(Zs(),si&&(a=si,t=ui,ui=si=null,Km(a),t)))for(a=0;a<t.length;a++)Km(t[a])}}function gl(t,a){var l=t.stateNode;if(l===null)return null;var u=l[gt]||null;if(u===null)return null;l=u[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(t=t.type,u=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!u;break e;default:t=!1}if(t)return null;if(l&&typeof l!="function")throw Error(i(231,a,typeof l));return l}var vr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Xc=!1;if(vr)try{var yl={};Object.defineProperty(yl,"passive",{get:function(){Xc=!0}}),window.addEventListener("test",yl,yl),window.removeEventListener("test",yl,yl)}catch{Xc=!1}var Hr=null,Qc=null,hs=null;function Qm(){if(hs)return hs;var t,a=Qc,l=a.length,u,p="value"in Hr?Hr.value:Hr.textContent,v=p.length;for(t=0;t<l&&a[t]===p[t];t++);var S=l-t;for(u=1;u<=S&&a[l-u]===p[v-u];u++);return hs=p.slice(t,1<u?1-u:void 0)}function ps(t){var a=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&a===13&&(t=13)):t=a,t===10&&(t=13),32<=t||t===13?t:0}function ms(){return!0}function Zm(){return!1}function tn(t){function a(l,u,p,v,S){this._reactName=l,this._targetInst=p,this.type=u,this.nativeEvent=v,this.target=S,this.currentTarget=null;for(var R in t)t.hasOwnProperty(R)&&(l=t[R],this[R]=l?l(v):v[R]);return this.isDefaultPrevented=(v.defaultPrevented!=null?v.defaultPrevented:v.returnValue===!1)?ms:Zm,this.isPropagationStopped=Zm,this}return m(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=ms)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=ms)},persist:function(){},isPersistent:ms}),a}var Ca={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},gs=tn(Ca),vl=m({},Ca,{view:0,detail:0}),Ok=tn(vl),Zc,Wc,xl,ys=m({},vl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ef,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==xl&&(xl&&t.type==="mousemove"?(Zc=t.screenX-xl.screenX,Wc=t.screenY-xl.screenY):Wc=Zc=0,xl=t),Zc)},movementY:function(t){return"movementY"in t?t.movementY:Wc}}),Wm=tn(ys),Lk=m({},ys,{dataTransfer:0}),zk=tn(Lk),Pk=m({},vl,{relatedTarget:0}),Jc=tn(Pk),Ik=m({},Ca,{animationName:0,elapsedTime:0,pseudoElement:0}),Bk=tn(Ik),Uk=m({},Ca,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Hk=tn(Uk),Fk=m({},Ca,{data:0}),Jm=tn(Fk),qk={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Vk={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"},$k={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Gk(t){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(t):(t=$k[t])?!!a[t]:!1}function ef(){return Gk}var Yk=m({},vl,{key:function(t){if(t.key){var a=qk[t.key]||t.key;if(a!=="Unidentified")return a}return t.type==="keypress"?(t=ps(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Vk[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ef,charCode:function(t){return t.type==="keypress"?ps(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?ps(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Kk=tn(Yk),Xk=m({},ys,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),eg=tn(Xk),Qk=m({},vl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ef}),Zk=tn(Qk),Wk=m({},Ca,{propertyName:0,elapsedTime:0,pseudoElement:0}),Jk=tn(Wk),e2=m({},ys,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),t2=tn(e2),n2=m({},Ca,{newState:0,oldState:0}),r2=tn(n2),a2=[9,13,27,32],tf=vr&&"CompositionEvent"in window,bl=null;vr&&"documentMode"in document&&(bl=document.documentMode);var i2=vr&&"TextEvent"in window&&!bl,tg=vr&&(!tf||bl&&8<bl&&11>=bl),ng=" ",rg=!1;function ag(t,a){switch(t){case"keyup":return a2.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ig(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var ci=!1;function l2(t,a){switch(t){case"compositionend":return ig(a);case"keypress":return a.which!==32?null:(rg=!0,ng);case"textInput":return t=a.data,t===ng&&rg?null:t;default:return null}}function o2(t,a){if(ci)return t==="compositionend"||!tf&&ag(t,a)?(t=Qm(),hs=Qc=Hr=null,ci=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return tg&&a.locale!=="ko"?null:a.data;default:return null}}var s2={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 lg(t){var a=t&&t.nodeName&&t.nodeName.toLowerCase();return a==="input"?!!s2[t.type]:a==="textarea"}function og(t,a,l,u){si?ui?ui.push(u):ui=[u]:si=u,a=ru(a,"onChange"),0<a.length&&(l=new gs("onChange","change",null,l,u),t.push({event:l,listeners:a}))}var wl=null,Sl=null;function u2(t){Hv(t,0)}function vs(t){var a=ml(t);if(Fm(a))return t}function sg(t,a){if(t==="change")return a}var ug=!1;if(vr){var nf;if(vr){var rf="oninput"in document;if(!rf){var cg=document.createElement("div");cg.setAttribute("oninput","return;"),rf=typeof cg.oninput=="function"}nf=rf}else nf=!1;ug=nf&&(!document.documentMode||9<document.documentMode)}function fg(){wl&&(wl.detachEvent("onpropertychange",dg),Sl=wl=null)}function dg(t){if(t.propertyName==="value"&&vs(Sl)){var a=[];og(a,Sl,t,Yc(t)),Xm(u2,a)}}function c2(t,a,l){t==="focusin"?(fg(),wl=a,Sl=l,wl.attachEvent("onpropertychange",dg)):t==="focusout"&&fg()}function f2(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return vs(Sl)}function d2(t,a){if(t==="click")return vs(a)}function h2(t,a){if(t==="input"||t==="change")return vs(a)}function p2(t,a){return t===a&&(t!==0||1/t===1/a)||t!==t&&a!==a}var cn=typeof Object.is=="function"?Object.is:p2;function El(t,a){if(cn(t,a))return!0;if(typeof t!="object"||t===null||typeof a!="object"||a===null)return!1;var l=Object.keys(t),u=Object.keys(a);if(l.length!==u.length)return!1;for(u=0;u<l.length;u++){var p=l[u];if(!It.call(a,p)||!cn(t[p],a[p]))return!1}return!0}function hg(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function pg(t,a){var l=hg(t);t=0;for(var u;l;){if(l.nodeType===3){if(u=t+l.textContent.length,t<=a&&u>=a)return{node:l,offset:a-t};t=u}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=hg(l)}}function mg(t,a){return t&&a?t===a?!0:t&&t.nodeType===3?!1:a&&a.nodeType===3?mg(t,a.parentNode):"contains"in t?t.contains(a):t.compareDocumentPosition?!!(t.compareDocumentPosition(a)&16):!1:!1}function gg(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var a=fs(t.document);a instanceof t.HTMLIFrameElement;){try{var l=typeof a.contentWindow.location.href=="string"}catch{l=!1}if(l)t=a.contentWindow;else break;a=fs(t.document)}return a}function af(t){var a=t&&t.nodeName&&t.nodeName.toLowerCase();return a&&(a==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||a==="textarea"||t.contentEditable==="true")}var m2=vr&&"documentMode"in document&&11>=document.documentMode,fi=null,lf=null,Cl=null,of=!1;function yg(t,a,l){var u=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;of||fi==null||fi!==fs(u)||(u=fi,"selectionStart"in u&&af(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),Cl&&El(Cl,u)||(Cl=u,u=ru(lf,"onSelect"),0<u.length&&(a=new gs("onSelect","select",null,a,l),t.push({event:a,listeners:u}),a.target=fi)))}function ka(t,a){var l={};return l[t.toLowerCase()]=a.toLowerCase(),l["Webkit"+t]="webkit"+a,l["Moz"+t]="moz"+a,l}var di={animationend:ka("Animation","AnimationEnd"),animationiteration:ka("Animation","AnimationIteration"),animationstart:ka("Animation","AnimationStart"),transitionrun:ka("Transition","TransitionRun"),transitionstart:ka("Transition","TransitionStart"),transitioncancel:ka("Transition","TransitionCancel"),transitionend:ka("Transition","TransitionEnd")},sf={},vg={};vr&&(vg=document.createElement("div").style,"AnimationEvent"in window||(delete di.animationend.animation,delete di.animationiteration.animation,delete di.animationstart.animation),"TransitionEvent"in window||delete di.transitionend.transition);function Aa(t){if(sf[t])return sf[t];if(!di[t])return t;var a=di[t],l;for(l in a)if(a.hasOwnProperty(l)&&l in vg)return sf[t]=a[l];return t}var xg=Aa("animationend"),bg=Aa("animationiteration"),wg=Aa("animationstart"),g2=Aa("transitionrun"),y2=Aa("transitionstart"),v2=Aa("transitioncancel"),Sg=Aa("transitionend"),Eg=new Map,uf="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(" ");uf.push("scrollEnd");function Hn(t,a){Eg.set(t,a),Ea(a,[t])}var Cg=new WeakMap;function kn(t,a){if(typeof t=="object"&&t!==null){var l=Cg.get(t);return l!==void 0?l:(a={value:t,source:a,stack:Um(a)},Cg.set(t,a),a)}return{value:t,source:a,stack:Um(a)}}var An=[],hi=0,cf=0;function xs(){for(var t=hi,a=cf=hi=0;a<t;){var l=An[a];An[a++]=null;var u=An[a];An[a++]=null;var p=An[a];An[a++]=null;var v=An[a];if(An[a++]=null,u!==null&&p!==null){var S=u.pending;S===null?p.next=p:(p.next=S.next,S.next=p),u.pending=p}v!==0&&kg(l,p,v)}}function bs(t,a,l,u){An[hi++]=t,An[hi++]=a,An[hi++]=l,An[hi++]=u,cf|=u,t.lanes|=u,t=t.alternate,t!==null&&(t.lanes|=u)}function ff(t,a,l,u){return bs(t,a,l,u),ws(t)}function pi(t,a){return bs(t,null,null,a),ws(t)}function kg(t,a,l){t.lanes|=l;var u=t.alternate;u!==null&&(u.lanes|=l);for(var p=!1,v=t.return;v!==null;)v.childLanes|=l,u=v.alternate,u!==null&&(u.childLanes|=l),v.tag===22&&(t=v.stateNode,t===null||t._visibility&1||(p=!0)),t=v,v=v.return;return t.tag===3?(v=t.stateNode,p&&a!==null&&(p=31-Re(l),t=v.hiddenUpdates,u=t[p],u===null?t[p]=[a]:u.push(a),a.lane=l|536870912),v):null}function ws(t){if(50<Xl)throw Xl=0,yd=null,Error(i(185));for(var a=t.return;a!==null;)t=a,a=t.return;return t.tag===3?t.stateNode:null}var mi={};function x2(t,a,l,u){this.tag=t,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function fn(t,a,l,u){return new x2(t,a,l,u)}function df(t){return t=t.prototype,!(!t||!t.isReactComponent)}function xr(t,a){var l=t.alternate;return l===null?(l=fn(t.tag,a,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l.alternate=t,t.alternate=l):(l.pendingProps=a,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=t.flags&65011712,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,a=t.dependencies,l.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l.refCleanup=t.refCleanup,l}function Ag(t,a){t.flags&=65011714;var l=t.alternate;return l===null?(t.childLanes=0,t.lanes=a,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=l.childLanes,t.lanes=l.lanes,t.child=l.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=l.memoizedProps,t.memoizedState=l.memoizedState,t.updateQueue=l.updateQueue,t.type=l.type,a=l.dependencies,t.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),t}function Ss(t,a,l,u,p,v){var S=0;if(u=t,typeof t=="function")df(t)&&(S=1);else if(typeof t=="string")S=wA(t,l,se.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case ee:return t=fn(31,l,a,p),t.elementType=ee,t.lanes=v,t;case C:return Ta(l.children,p,v,a);case k:S=8,p|=24;break;case T:return t=fn(12,l,a,p|2),t.elementType=T,t.lanes=v,t;case z:return t=fn(13,l,a,p),t.elementType=z,t.lanes=v,t;case j:return t=fn(19,l,a,p),t.elementType=j,t.lanes=v,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case A:case N:S=10;break e;case _:S=9;break e;case O:S=11;break e;case $:S=14;break e;case G:S=16,u=null;break e}S=29,l=Error(i(130,t===null?"null":typeof t,"")),u=null}return a=fn(S,l,a,p),a.elementType=t,a.type=u,a.lanes=v,a}function Ta(t,a,l,u){return t=fn(7,t,u,a),t.lanes=l,t}function hf(t,a,l){return t=fn(6,t,null,a),t.lanes=l,t}function pf(t,a,l){return a=fn(4,t.children!==null?t.children:[],t.key,a),a.lanes=l,a.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},a}var gi=[],yi=0,Es=null,Cs=0,Tn=[],Rn=0,Ra=null,br=1,wr="";function _a(t,a){gi[yi++]=Cs,gi[yi++]=Es,Es=t,Cs=a}function Tg(t,a,l){Tn[Rn++]=br,Tn[Rn++]=wr,Tn[Rn++]=Ra,Ra=t;var u=br;t=wr;var p=32-Re(u)-1;u&=~(1<<p),l+=1;var v=32-Re(a)+p;if(30<v){var S=p-p%5;v=(u&(1<<S)-1).toString(32),u>>=S,p-=S,br=1<<32-Re(a)+p|l<<p|u,wr=v+t}else br=1<<v|l<<p|u,wr=t}function mf(t){t.return!==null&&(_a(t,1),Tg(t,1,0))}function gf(t){for(;t===Es;)Es=gi[--yi],gi[yi]=null,Cs=gi[--yi],gi[yi]=null;for(;t===Ra;)Ra=Tn[--Rn],Tn[Rn]=null,wr=Tn[--Rn],Tn[Rn]=null,br=Tn[--Rn],Tn[Rn]=null}var Xt=null,dt=null,Ke=!1,Na=null,tr=!1,yf=Error(i(519));function Ma(t){var a=Error(i(418,""));throw Tl(kn(a,t)),yf}function Rg(t){var a=t.stateNode,l=t.type,u=t.memoizedProps;switch(a[st]=t,a[gt]=u,l){case"dialog":Ue("cancel",a),Ue("close",a);break;case"iframe":case"object":case"embed":Ue("load",a);break;case"video":case"audio":for(l=0;l<Zl.length;l++)Ue(Zl[l],a);break;case"source":Ue("error",a);break;case"img":case"image":case"link":Ue("error",a),Ue("load",a);break;case"details":Ue("toggle",a);break;case"input":Ue("invalid",a),qm(a,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0),cs(a);break;case"select":Ue("invalid",a);break;case"textarea":Ue("invalid",a),$m(a,u.value,u.defaultValue,u.children),cs(a)}l=u.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||a.textContent===""+l||u.suppressHydrationWarning===!0||$v(a.textContent,l)?(u.popover!=null&&(Ue("beforetoggle",a),Ue("toggle",a)),u.onScroll!=null&&Ue("scroll",a),u.onScrollEnd!=null&&Ue("scrollend",a),u.onClick!=null&&(a.onclick=au),a=!0):a=!1,a||Ma(t)}function _g(t){for(Xt=t.return;Xt;)switch(Xt.tag){case 5:case 13:tr=!1;return;case 27:case 3:tr=!0;return;default:Xt=Xt.return}}function kl(t){if(t!==Xt)return!1;if(!Ke)return _g(t),Ke=!0,!1;var a=t.tag,l;if((l=a!==3&&a!==27)&&((l=a===5)&&(l=t.type,l=!(l!=="form"&&l!=="button")||Dd(t.type,t.memoizedProps)),l=!l),l&&dt&&Ma(t),_g(t),a===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(i(317));e:{for(t=t.nextSibling,a=0;t;){if(t.nodeType===8)if(l=t.data,l==="/$"){if(a===0){dt=qn(t.nextSibling);break e}a--}else l!=="$"&&l!=="$!"&&l!=="$?"||a++;t=t.nextSibling}dt=null}}else a===27?(a=dt,ra(t.type)?(t=Pd,Pd=null,dt=t):dt=a):dt=Xt?qn(t.stateNode.nextSibling):null;return!0}function Al(){dt=Xt=null,Ke=!1}function Ng(){var t=Na;return t!==null&&(an===null?an=t:an.push.apply(an,t),Na=null),t}function Tl(t){Na===null?Na=[t]:Na.push(t)}var vf=Z(null),ja=null,Sr=null;function Fr(t,a,l){M(vf,a._currentValue),a._currentValue=l}function Er(t){t._currentValue=vf.current,oe(vf)}function xf(t,a,l){for(;t!==null;){var u=t.alternate;if((t.childLanes&a)!==a?(t.childLanes|=a,u!==null&&(u.childLanes|=a)):u!==null&&(u.childLanes&a)!==a&&(u.childLanes|=a),t===l)break;t=t.return}}function bf(t,a,l,u){var p=t.child;for(p!==null&&(p.return=t);p!==null;){var v=p.dependencies;if(v!==null){var S=p.child;v=v.firstContext;e:for(;v!==null;){var R=v;v=p;for(var D=0;D<a.length;D++)if(R.context===a[D]){v.lanes|=l,R=v.alternate,R!==null&&(R.lanes|=l),xf(v.return,l,t),u||(S=null);break e}v=R.next}}else if(p.tag===18){if(S=p.return,S===null)throw Error(i(341));S.lanes|=l,v=S.alternate,v!==null&&(v.lanes|=l),xf(S,l,t),S=null}else S=p.child;if(S!==null)S.return=p;else for(S=p;S!==null;){if(S===t){S=null;break}if(p=S.sibling,p!==null){p.return=S.return,S=p;break}S=S.return}p=S}}function Rl(t,a,l,u){t=null;for(var p=a,v=!1;p!==null;){if(!v){if((p.flags&524288)!==0)v=!0;else if((p.flags&262144)!==0)break}if(p.tag===10){var S=p.alternate;if(S===null)throw Error(i(387));if(S=S.memoizedProps,S!==null){var R=p.type;cn(p.pendingProps.value,S.value)||(t!==null?t.push(R):t=[R])}}else if(p===xe.current){if(S=p.alternate,S===null)throw Error(i(387));S.memoizedState.memoizedState!==p.memoizedState.memoizedState&&(t!==null?t.push(ro):t=[ro])}p=p.return}t!==null&&bf(a,t,l,u),a.flags|=262144}function ks(t){for(t=t.firstContext;t!==null;){if(!cn(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Da(t){ja=t,Sr=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Ft(t){return Mg(ja,t)}function As(t,a){return ja===null&&Da(t),Mg(t,a)}function Mg(t,a){var l=a._currentValue;if(a={context:a,memoizedValue:l,next:null},Sr===null){if(t===null)throw Error(i(308));Sr=a,t.dependencies={lanes:0,firstContext:a},t.flags|=524288}else Sr=Sr.next=a;return l}var b2=typeof AbortController<"u"?AbortController:function(){var t=[],a=this.signal={aborted:!1,addEventListener:function(l,u){t.push(u)}};this.abort=function(){a.aborted=!0,t.forEach(function(l){return l()})}},w2=e.unstable_scheduleCallback,S2=e.unstable_NormalPriority,kt={$$typeof:N,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function wf(){return{controller:new b2,data:new Map,refCount:0}}function _l(t){t.refCount--,t.refCount===0&&w2(S2,function(){t.controller.abort()})}var Nl=null,Sf=0,vi=0,xi=null;function E2(t,a){if(Nl===null){var l=Nl=[];Sf=0,vi=Cd(),xi={status:"pending",value:void 0,then:function(u){l.push(u)}}}return Sf++,a.then(jg,jg),a}function jg(){if(--Sf===0&&Nl!==null){xi!==null&&(xi.status="fulfilled");var t=Nl;Nl=null,vi=0,xi=null;for(var a=0;a<t.length;a++)(0,t[a])()}}function C2(t,a){var l=[],u={status:"pending",value:null,reason:null,then:function(p){l.push(p)}};return t.then(function(){u.status="fulfilled",u.value=a;for(var p=0;p<l.length;p++)(0,l[p])(a)},function(p){for(u.status="rejected",u.reason=p,p=0;p<l.length;p++)(0,l[p])(void 0)}),u}var Dg=L.S;L.S=function(t,a){typeof a=="object"&&a!==null&&typeof a.then=="function"&&E2(t,a),Dg!==null&&Dg(t,a)};var Oa=Z(null);function Ef(){var t=Oa.current;return t!==null?t:it.pooledCache}function Ts(t,a){a===null?M(Oa,Oa.current):M(Oa,a.pool)}function Og(){var t=Ef();return t===null?null:{parent:kt._currentValue,pool:t}}var Ml=Error(i(460)),Lg=Error(i(474)),Rs=Error(i(542)),Cf={then:function(){}};function zg(t){return t=t.status,t==="fulfilled"||t==="rejected"}function _s(){}function Pg(t,a,l){switch(l=t[l],l===void 0?t.push(a):l!==a&&(a.then(_s,_s),a=l),a.status){case"fulfilled":return a.value;case"rejected":throw t=a.reason,Bg(t),t;default:if(typeof a.status=="string")a.then(_s,_s);else{if(t=it,t!==null&&100<t.shellSuspendCounter)throw Error(i(482));t=a,t.status="pending",t.then(function(u){if(a.status==="pending"){var p=a;p.status="fulfilled",p.value=u}},function(u){if(a.status==="pending"){var p=a;p.status="rejected",p.reason=u}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw t=a.reason,Bg(t),t}throw jl=a,Ml}}var jl=null;function Ig(){if(jl===null)throw Error(i(459));var t=jl;return jl=null,t}function Bg(t){if(t===Ml||t===Rs)throw Error(i(483))}var qr=!1;function kf(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Af(t,a){t=t.updateQueue,a.updateQueue===t&&(a.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Vr(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function $r(t,a,l){var u=t.updateQueue;if(u===null)return null;if(u=u.shared,(Ze&2)!==0){var p=u.pending;return p===null?a.next=a:(a.next=p.next,p.next=a),u.pending=a,a=ws(t),kg(t,null,l),a}return bs(t,u,a,l),ws(t)}function Dl(t,a,l){if(a=a.updateQueue,a!==null&&(a=a.shared,(l&4194048)!==0)){var u=a.lanes;u&=t.pendingLanes,l|=u,a.lanes=l,Sa(t,l)}}function Tf(t,a){var l=t.updateQueue,u=t.alternate;if(u!==null&&(u=u.updateQueue,l===u)){var p=null,v=null;if(l=l.firstBaseUpdate,l!==null){do{var S={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};v===null?p=v=S:v=v.next=S,l=l.next}while(l!==null);v===null?p=v=a:v=v.next=a}else p=v=a;l={baseState:u.baseState,firstBaseUpdate:p,lastBaseUpdate:v,shared:u.shared,callbacks:u.callbacks},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=a:t.next=a,l.lastBaseUpdate=a}var Rf=!1;function Ol(){if(Rf){var t=xi;if(t!==null)throw t}}function Ll(t,a,l,u){Rf=!1;var p=t.updateQueue;qr=!1;var v=p.firstBaseUpdate,S=p.lastBaseUpdate,R=p.shared.pending;if(R!==null){p.shared.pending=null;var D=R,q=D.next;D.next=null,S===null?v=q:S.next=q,S=D;var te=t.alternate;te!==null&&(te=te.updateQueue,R=te.lastBaseUpdate,R!==S&&(R===null?te.firstBaseUpdate=q:R.next=q,te.lastBaseUpdate=D))}if(v!==null){var ie=p.baseState;S=0,te=q=D=null,R=v;do{var V=R.lane&-536870913,Y=V!==R.lane;if(Y?(qe&V)===V:(u&V)===V){V!==0&&V===vi&&(Rf=!0),te!==null&&(te=te.next={lane:0,tag:R.tag,payload:R.payload,callback:null,next:null});e:{var je=t,Ne=R;V=a;var nt=l;switch(Ne.tag){case 1:if(je=Ne.payload,typeof je=="function"){ie=je.call(nt,ie,V);break e}ie=je;break e;case 3:je.flags=je.flags&-65537|128;case 0:if(je=Ne.payload,V=typeof je=="function"?je.call(nt,ie,V):je,V==null)break e;ie=m({},ie,V);break e;case 2:qr=!0}}V=R.callback,V!==null&&(t.flags|=64,Y&&(t.flags|=8192),Y=p.callbacks,Y===null?p.callbacks=[V]:Y.push(V))}else Y={lane:V,tag:R.tag,payload:R.payload,callback:R.callback,next:null},te===null?(q=te=Y,D=ie):te=te.next=Y,S|=V;if(R=R.next,R===null){if(R=p.shared.pending,R===null)break;Y=R,R=Y.next,Y.next=null,p.lastBaseUpdate=Y,p.shared.pending=null}}while(!0);te===null&&(D=ie),p.baseState=D,p.firstBaseUpdate=q,p.lastBaseUpdate=te,v===null&&(p.shared.lanes=0),Jr|=S,t.lanes=S,t.memoizedState=ie}}function Ug(t,a){if(typeof t!="function")throw Error(i(191,t));t.call(a)}function Hg(t,a){var l=t.callbacks;if(l!==null)for(t.callbacks=null,t=0;t<l.length;t++)Ug(l[t],a)}var bi=Z(null),Ns=Z(0);function Fg(t,a){t=Nr,M(Ns,t),M(bi,a),Nr=t|a.baseLanes}function _f(){M(Ns,Nr),M(bi,bi.current)}function Nf(){Nr=Ns.current,oe(bi),oe(Ns)}var Gr=0,ze=null,et=null,wt=null,Ms=!1,wi=!1,La=!1,js=0,zl=0,Si=null,k2=0;function yt(){throw Error(i(321))}function Mf(t,a){if(a===null)return!1;for(var l=0;l<a.length&&l<t.length;l++)if(!cn(t[l],a[l]))return!1;return!0}function jf(t,a,l,u,p,v){return Gr=v,ze=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,L.H=t===null||t.memoizedState===null?ky:Ay,La=!1,v=l(u,p),La=!1,wi&&(v=Vg(a,l,u,p)),qg(t),v}function qg(t){L.H=Is;var a=et!==null&&et.next!==null;if(Gr=0,wt=et=ze=null,Ms=!1,zl=0,Si=null,a)throw Error(i(300));t===null||Nt||(t=t.dependencies,t!==null&&ks(t)&&(Nt=!0))}function Vg(t,a,l,u){ze=t;var p=0;do{if(wi&&(Si=null),zl=0,wi=!1,25<=p)throw Error(i(301));if(p+=1,wt=et=null,t.updateQueue!=null){var v=t.updateQueue;v.lastEffect=null,v.events=null,v.stores=null,v.memoCache!=null&&(v.memoCache.index=0)}L.H=j2,v=a(l,u)}while(wi);return v}function A2(){var t=L.H,a=t.useState()[0];return a=typeof a.then=="function"?Pl(a):a,t=t.useState()[0],(et!==null?et.memoizedState:null)!==t&&(ze.flags|=1024),a}function Df(){var t=js!==0;return js=0,t}function Of(t,a,l){a.updateQueue=t.updateQueue,a.flags&=-2053,t.lanes&=~l}function Lf(t){if(Ms){for(t=t.memoizedState;t!==null;){var a=t.queue;a!==null&&(a.pending=null),t=t.next}Ms=!1}Gr=0,wt=et=ze=null,wi=!1,zl=js=0,Si=null}function nn(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return wt===null?ze.memoizedState=wt=t:wt=wt.next=t,wt}function St(){if(et===null){var t=ze.alternate;t=t!==null?t.memoizedState:null}else t=et.next;var a=wt===null?ze.memoizedState:wt.next;if(a!==null)wt=a,et=t;else{if(t===null)throw ze.alternate===null?Error(i(467)):Error(i(310));et=t,t={memoizedState:et.memoizedState,baseState:et.baseState,baseQueue:et.baseQueue,queue:et.queue,next:null},wt===null?ze.memoizedState=wt=t:wt=wt.next=t}return wt}function zf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Pl(t){var a=zl;return zl+=1,Si===null&&(Si=[]),t=Pg(Si,t,a),a=ze,(wt===null?a.memoizedState:wt.next)===null&&(a=a.alternate,L.H=a===null||a.memoizedState===null?ky:Ay),t}function Ds(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Pl(t);if(t.$$typeof===N)return Ft(t)}throw Error(i(438,String(t)))}function Pf(t){var a=null,l=ze.updateQueue;if(l!==null&&(a=l.memoCache),a==null){var u=ze.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(a={data:u.data.map(function(p){return p.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),l===null&&(l=zf(),ze.updateQueue=l),l.memoCache=a,l=a.data[a.index],l===void 0)for(l=a.data[a.index]=Array(t),u=0;u<t;u++)l[u]=P;return a.index++,l}function Cr(t,a){return typeof a=="function"?a(t):a}function Os(t){var a=St();return If(a,et,t)}function If(t,a,l){var u=t.queue;if(u===null)throw Error(i(311));u.lastRenderedReducer=l;var p=t.baseQueue,v=u.pending;if(v!==null){if(p!==null){var S=p.next;p.next=v.next,v.next=S}a.baseQueue=p=v,u.pending=null}if(v=t.baseState,p===null)t.memoizedState=v;else{a=p.next;var R=S=null,D=null,q=a,te=!1;do{var ie=q.lane&-536870913;if(ie!==q.lane?(qe&ie)===ie:(Gr&ie)===ie){var V=q.revertLane;if(V===0)D!==null&&(D=D.next={lane:0,revertLane:0,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null}),ie===vi&&(te=!0);else if((Gr&V)===V){q=q.next,V===vi&&(te=!0);continue}else ie={lane:0,revertLane:q.revertLane,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null},D===null?(R=D=ie,S=v):D=D.next=ie,ze.lanes|=V,Jr|=V;ie=q.action,La&&l(v,ie),v=q.hasEagerState?q.eagerState:l(v,ie)}else V={lane:ie,revertLane:q.revertLane,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null},D===null?(R=D=V,S=v):D=D.next=V,ze.lanes|=ie,Jr|=ie;q=q.next}while(q!==null&&q!==a);if(D===null?S=v:D.next=R,!cn(v,t.memoizedState)&&(Nt=!0,te&&(l=xi,l!==null)))throw l;t.memoizedState=v,t.baseState=S,t.baseQueue=D,u.lastRenderedState=v}return p===null&&(u.lanes=0),[t.memoizedState,u.dispatch]}function Bf(t){var a=St(),l=a.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=t;var u=l.dispatch,p=l.pending,v=a.memoizedState;if(p!==null){l.pending=null;var S=p=p.next;do v=t(v,S.action),S=S.next;while(S!==p);cn(v,a.memoizedState)||(Nt=!0),a.memoizedState=v,a.baseQueue===null&&(a.baseState=v),l.lastRenderedState=v}return[v,u]}function $g(t,a,l){var u=ze,p=St(),v=Ke;if(v){if(l===void 0)throw Error(i(407));l=l()}else l=a();var S=!cn((et||p).memoizedState,l);S&&(p.memoizedState=l,Nt=!0),p=p.queue;var R=Kg.bind(null,u,p,t);if(Il(2048,8,R,[t]),p.getSnapshot!==a||S||wt!==null&&wt.memoizedState.tag&1){if(u.flags|=2048,Ei(9,Ls(),Yg.bind(null,u,p,l,a),null),it===null)throw Error(i(349));v||(Gr&124)!==0||Gg(u,a,l)}return l}function Gg(t,a,l){t.flags|=16384,t={getSnapshot:a,value:l},a=ze.updateQueue,a===null?(a=zf(),ze.updateQueue=a,a.stores=[t]):(l=a.stores,l===null?a.stores=[t]:l.push(t))}function Yg(t,a,l,u){a.value=l,a.getSnapshot=u,Xg(a)&&Qg(t)}function Kg(t,a,l){return l(function(){Xg(a)&&Qg(t)})}function Xg(t){var a=t.getSnapshot;t=t.value;try{var l=a();return!cn(t,l)}catch{return!0}}function Qg(t){var a=pi(t,2);a!==null&&gn(a,t,2)}function Uf(t){var a=nn();if(typeof t=="function"){var l=t;if(t=l(),La){Ce(!0);try{l()}finally{Ce(!1)}}}return a.memoizedState=a.baseState=t,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cr,lastRenderedState:t},a}function Zg(t,a,l,u){return t.baseState=l,If(t,et,typeof u=="function"?u:Cr)}function T2(t,a,l,u,p){if(Ps(t))throw Error(i(485));if(t=a.action,t!==null){var v={payload:p,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(S){v.listeners.push(S)}};L.T!==null?l(!0):v.isTransition=!1,u(v),l=a.pending,l===null?(v.next=a.pending=v,Wg(a,v)):(v.next=l.next,a.pending=l.next=v)}}function Wg(t,a){var l=a.action,u=a.payload,p=t.state;if(a.isTransition){var v=L.T,S={};L.T=S;try{var R=l(p,u),D=L.S;D!==null&&D(S,R),Jg(t,a,R)}catch(q){Hf(t,a,q)}finally{L.T=v}}else try{v=l(p,u),Jg(t,a,v)}catch(q){Hf(t,a,q)}}function Jg(t,a,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(u){ey(t,a,u)},function(u){return Hf(t,a,u)}):ey(t,a,l)}function ey(t,a,l){a.status="fulfilled",a.value=l,ty(a),t.state=l,a=t.pending,a!==null&&(l=a.next,l===a?t.pending=null:(l=l.next,a.next=l,Wg(t,l)))}function Hf(t,a,l){var u=t.pending;if(t.pending=null,u!==null){u=u.next;do a.status="rejected",a.reason=l,ty(a),a=a.next;while(a!==u)}t.action=null}function ty(t){t=t.listeners;for(var a=0;a<t.length;a++)(0,t[a])()}function ny(t,a){return a}function ry(t,a){if(Ke){var l=it.formState;if(l!==null){e:{var u=ze;if(Ke){if(dt){t:{for(var p=dt,v=tr;p.nodeType!==8;){if(!v){p=null;break t}if(p=qn(p.nextSibling),p===null){p=null;break t}}v=p.data,p=v==="F!"||v==="F"?p:null}if(p){dt=qn(p.nextSibling),u=p.data==="F!";break e}}Ma(u)}u=!1}u&&(a=l[0])}}return l=nn(),l.memoizedState=l.baseState=a,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ny,lastRenderedState:a},l.queue=u,l=Sy.bind(null,ze,u),u.dispatch=l,u=Uf(!1),v=Gf.bind(null,ze,!1,u.queue),u=nn(),p={state:a,dispatch:null,action:t,pending:null},u.queue=p,l=T2.bind(null,ze,p,v,l),p.dispatch=l,u.memoizedState=t,[a,l,!1]}function ay(t){var a=St();return iy(a,et,t)}function iy(t,a,l){if(a=If(t,a,ny)[0],t=Os(Cr)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var u=Pl(a)}catch(S){throw S===Ml?Rs:S}else u=a;a=St();var p=a.queue,v=p.dispatch;return l!==a.memoizedState&&(ze.flags|=2048,Ei(9,Ls(),R2.bind(null,p,l),null)),[u,v,t]}function R2(t,a){t.action=a}function ly(t){var a=St(),l=et;if(l!==null)return iy(a,l,t);St(),a=a.memoizedState,l=St();var u=l.queue.dispatch;return l.memoizedState=t,[a,u,!1]}function Ei(t,a,l,u){return t={tag:t,create:l,deps:u,inst:a,next:null},a=ze.updateQueue,a===null&&(a=zf(),ze.updateQueue=a),l=a.lastEffect,l===null?a.lastEffect=t.next=t:(u=l.next,l.next=t,t.next=u,a.lastEffect=t),t}function Ls(){return{destroy:void 0,resource:void 0}}function oy(){return St().memoizedState}function zs(t,a,l,u){var p=nn();u=u===void 0?null:u,ze.flags|=t,p.memoizedState=Ei(1|a,Ls(),l,u)}function Il(t,a,l,u){var p=St();u=u===void 0?null:u;var v=p.memoizedState.inst;et!==null&&u!==null&&Mf(u,et.memoizedState.deps)?p.memoizedState=Ei(a,v,l,u):(ze.flags|=t,p.memoizedState=Ei(1|a,v,l,u))}function sy(t,a){zs(8390656,8,t,a)}function uy(t,a){Il(2048,8,t,a)}function cy(t,a){return Il(4,2,t,a)}function fy(t,a){return Il(4,4,t,a)}function dy(t,a){if(typeof a=="function"){t=t();var l=a(t);return function(){typeof l=="function"?l():a(null)}}if(a!=null)return t=t(),a.current=t,function(){a.current=null}}function hy(t,a,l){l=l!=null?l.concat([t]):null,Il(4,4,dy.bind(null,a,t),l)}function Ff(){}function py(t,a){var l=St();a=a===void 0?null:a;var u=l.memoizedState;return a!==null&&Mf(a,u[1])?u[0]:(l.memoizedState=[t,a],t)}function my(t,a){var l=St();a=a===void 0?null:a;var u=l.memoizedState;if(a!==null&&Mf(a,u[1]))return u[0];if(u=t(),La){Ce(!0);try{t()}finally{Ce(!1)}}return l.memoizedState=[u,a],u}function qf(t,a,l){return l===void 0||(Gr&1073741824)!==0?t.memoizedState=a:(t.memoizedState=l,t=vv(),ze.lanes|=t,Jr|=t,l)}function gy(t,a,l,u){return cn(l,a)?l:bi.current!==null?(t=qf(t,l,u),cn(t,a)||(Nt=!0),t):(Gr&42)===0?(Nt=!0,t.memoizedState=l):(t=vv(),ze.lanes|=t,Jr|=t,a)}function yy(t,a,l,u,p){var v=K.p;K.p=v!==0&&8>v?v:8;var S=L.T,R={};L.T=R,Gf(t,!1,a,l);try{var D=p(),q=L.S;if(q!==null&&q(R,D),D!==null&&typeof D=="object"&&typeof D.then=="function"){var te=C2(D,u);Bl(t,a,te,mn(t))}else Bl(t,a,u,mn(t))}catch(ie){Bl(t,a,{then:function(){},status:"rejected",reason:ie},mn())}finally{K.p=v,L.T=S}}function _2(){}function Vf(t,a,l,u){if(t.tag!==5)throw Error(i(476));var p=vy(t).queue;yy(t,p,a,U,l===null?_2:function(){return xy(t),l(u)})}function vy(t){var a=t.memoizedState;if(a!==null)return a;a={memoizedState:U,baseState:U,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cr,lastRenderedState:U},next:null};var l={};return a.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cr,lastRenderedState:l},next:null},t.memoizedState=a,t=t.alternate,t!==null&&(t.memoizedState=a),a}function xy(t){var a=vy(t).next.queue;Bl(t,a,{},mn())}function $f(){return Ft(ro)}function by(){return St().memoizedState}function wy(){return St().memoizedState}function N2(t){for(var a=t.return;a!==null;){switch(a.tag){case 24:case 3:var l=mn();t=Vr(l);var u=$r(a,t,l);u!==null&&(gn(u,a,l),Dl(u,a,l)),a={cache:wf()},t.payload=a;return}a=a.return}}function M2(t,a,l){var u=mn();l={lane:u,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null},Ps(t)?Ey(a,l):(l=ff(t,a,l,u),l!==null&&(gn(l,t,u),Cy(l,a,u)))}function Sy(t,a,l){var u=mn();Bl(t,a,l,u)}function Bl(t,a,l,u){var p={lane:u,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null};if(Ps(t))Ey(a,p);else{var v=t.alternate;if(t.lanes===0&&(v===null||v.lanes===0)&&(v=a.lastRenderedReducer,v!==null))try{var S=a.lastRenderedState,R=v(S,l);if(p.hasEagerState=!0,p.eagerState=R,cn(R,S))return bs(t,a,p,0),it===null&&xs(),!1}catch{}finally{}if(l=ff(t,a,p,u),l!==null)return gn(l,t,u),Cy(l,a,u),!0}return!1}function Gf(t,a,l,u){if(u={lane:2,revertLane:Cd(),action:u,hasEagerState:!1,eagerState:null,next:null},Ps(t)){if(a)throw Error(i(479))}else a=ff(t,l,u,2),a!==null&&gn(a,t,2)}function Ps(t){var a=t.alternate;return t===ze||a!==null&&a===ze}function Ey(t,a){wi=Ms=!0;var l=t.pending;l===null?a.next=a:(a.next=l.next,l.next=a),t.pending=a}function Cy(t,a,l){if((l&4194048)!==0){var u=a.lanes;u&=t.pendingLanes,l|=u,a.lanes=l,Sa(t,l)}}var Is={readContext:Ft,use:Ds,useCallback:yt,useContext:yt,useEffect:yt,useImperativeHandle:yt,useLayoutEffect:yt,useInsertionEffect:yt,useMemo:yt,useReducer:yt,useRef:yt,useState:yt,useDebugValue:yt,useDeferredValue:yt,useTransition:yt,useSyncExternalStore:yt,useId:yt,useHostTransitionStatus:yt,useFormState:yt,useActionState:yt,useOptimistic:yt,useMemoCache:yt,useCacheRefresh:yt},ky={readContext:Ft,use:Ds,useCallback:function(t,a){return nn().memoizedState=[t,a===void 0?null:a],t},useContext:Ft,useEffect:sy,useImperativeHandle:function(t,a,l){l=l!=null?l.concat([t]):null,zs(4194308,4,dy.bind(null,a,t),l)},useLayoutEffect:function(t,a){return zs(4194308,4,t,a)},useInsertionEffect:function(t,a){zs(4,2,t,a)},useMemo:function(t,a){var l=nn();a=a===void 0?null:a;var u=t();if(La){Ce(!0);try{t()}finally{Ce(!1)}}return l.memoizedState=[u,a],u},useReducer:function(t,a,l){var u=nn();if(l!==void 0){var p=l(a);if(La){Ce(!0);try{l(a)}finally{Ce(!1)}}}else p=a;return u.memoizedState=u.baseState=p,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:p},u.queue=t,t=t.dispatch=M2.bind(null,ze,t),[u.memoizedState,t]},useRef:function(t){var a=nn();return t={current:t},a.memoizedState=t},useState:function(t){t=Uf(t);var a=t.queue,l=Sy.bind(null,ze,a);return a.dispatch=l,[t.memoizedState,l]},useDebugValue:Ff,useDeferredValue:function(t,a){var l=nn();return qf(l,t,a)},useTransition:function(){var t=Uf(!1);return t=yy.bind(null,ze,t.queue,!0,!1),nn().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,a,l){var u=ze,p=nn();if(Ke){if(l===void 0)throw Error(i(407));l=l()}else{if(l=a(),it===null)throw Error(i(349));(qe&124)!==0||Gg(u,a,l)}p.memoizedState=l;var v={value:l,getSnapshot:a};return p.queue=v,sy(Kg.bind(null,u,v,t),[t]),u.flags|=2048,Ei(9,Ls(),Yg.bind(null,u,v,l,a),null),l},useId:function(){var t=nn(),a=it.identifierPrefix;if(Ke){var l=wr,u=br;l=(u&~(1<<32-Re(u)-1)).toString(32)+l,a="«"+a+"R"+l,l=js++,0<l&&(a+="H"+l.toString(32)),a+="»"}else l=k2++,a="«"+a+"r"+l.toString(32)+"»";return t.memoizedState=a},useHostTransitionStatus:$f,useFormState:ry,useActionState:ry,useOptimistic:function(t){var a=nn();a.memoizedState=a.baseState=t;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=l,a=Gf.bind(null,ze,!0,l),l.dispatch=a,[t,a]},useMemoCache:Pf,useCacheRefresh:function(){return nn().memoizedState=N2.bind(null,ze)}},Ay={readContext:Ft,use:Ds,useCallback:py,useContext:Ft,useEffect:uy,useImperativeHandle:hy,useInsertionEffect:cy,useLayoutEffect:fy,useMemo:my,useReducer:Os,useRef:oy,useState:function(){return Os(Cr)},useDebugValue:Ff,useDeferredValue:function(t,a){var l=St();return gy(l,et.memoizedState,t,a)},useTransition:function(){var t=Os(Cr)[0],a=St().memoizedState;return[typeof t=="boolean"?t:Pl(t),a]},useSyncExternalStore:$g,useId:by,useHostTransitionStatus:$f,useFormState:ay,useActionState:ay,useOptimistic:function(t,a){var l=St();return Zg(l,et,t,a)},useMemoCache:Pf,useCacheRefresh:wy},j2={readContext:Ft,use:Ds,useCallback:py,useContext:Ft,useEffect:uy,useImperativeHandle:hy,useInsertionEffect:cy,useLayoutEffect:fy,useMemo:my,useReducer:Bf,useRef:oy,useState:function(){return Bf(Cr)},useDebugValue:Ff,useDeferredValue:function(t,a){var l=St();return et===null?qf(l,t,a):gy(l,et.memoizedState,t,a)},useTransition:function(){var t=Bf(Cr)[0],a=St().memoizedState;return[typeof t=="boolean"?t:Pl(t),a]},useSyncExternalStore:$g,useId:by,useHostTransitionStatus:$f,useFormState:ly,useActionState:ly,useOptimistic:function(t,a){var l=St();return et!==null?Zg(l,et,t,a):(l.baseState=t,[t,l.queue.dispatch])},useMemoCache:Pf,useCacheRefresh:wy},Ci=null,Ul=0;function Bs(t){var a=Ul;return Ul+=1,Ci===null&&(Ci=[]),Pg(Ci,t,a)}function Hl(t,a){a=a.props.ref,t.ref=a!==void 0?a:null}function Us(t,a){throw a.$$typeof===y?Error(i(525)):(t=Object.prototype.toString.call(a),Error(i(31,t==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":t)))}function Ty(t){var a=t._init;return a(t._payload)}function Ry(t){function a(B,I){if(t){var F=B.deletions;F===null?(B.deletions=[I],B.flags|=16):F.push(I)}}function l(B,I){if(!t)return null;for(;I!==null;)a(B,I),I=I.sibling;return null}function u(B){for(var I=new Map;B!==null;)B.key!==null?I.set(B.key,B):I.set(B.index,B),B=B.sibling;return I}function p(B,I){return B=xr(B,I),B.index=0,B.sibling=null,B}function v(B,I,F){return B.index=F,t?(F=B.alternate,F!==null?(F=F.index,F<I?(B.flags|=67108866,I):F):(B.flags|=67108866,I)):(B.flags|=1048576,I)}function S(B){return t&&B.alternate===null&&(B.flags|=67108866),B}function R(B,I,F,re){return I===null||I.tag!==6?(I=hf(F,B.mode,re),I.return=B,I):(I=p(I,F),I.return=B,I)}function D(B,I,F,re){var ge=F.type;return ge===C?te(B,I,F.props.children,re,F.key):I!==null&&(I.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===G&&Ty(ge)===I.type)?(I=p(I,F.props),Hl(I,F),I.return=B,I):(I=Ss(F.type,F.key,F.props,null,B.mode,re),Hl(I,F),I.return=B,I)}function q(B,I,F,re){return I===null||I.tag!==4||I.stateNode.containerInfo!==F.containerInfo||I.stateNode.implementation!==F.implementation?(I=pf(F,B.mode,re),I.return=B,I):(I=p(I,F.children||[]),I.return=B,I)}function te(B,I,F,re,ge){return I===null||I.tag!==7?(I=Ta(F,B.mode,re,ge),I.return=B,I):(I=p(I,F),I.return=B,I)}function ie(B,I,F){if(typeof I=="string"&&I!==""||typeof I=="number"||typeof I=="bigint")return I=hf(""+I,B.mode,F),I.return=B,I;if(typeof I=="object"&&I!==null){switch(I.$$typeof){case b:return F=Ss(I.type,I.key,I.props,null,B.mode,F),Hl(F,I),F.return=B,F;case w:return I=pf(I,B.mode,F),I.return=B,I;case G:var re=I._init;return I=re(I._payload),ie(B,I,F)}if(Q(I)||ae(I))return I=Ta(I,B.mode,F,null),I.return=B,I;if(typeof I.then=="function")return ie(B,Bs(I),F);if(I.$$typeof===N)return ie(B,As(B,I),F);Us(B,I)}return null}function V(B,I,F,re){var ge=I!==null?I.key:null;if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return ge!==null?null:R(B,I,""+F,re);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case b:return F.key===ge?D(B,I,F,re):null;case w:return F.key===ge?q(B,I,F,re):null;case G:return ge=F._init,F=ge(F._payload),V(B,I,F,re)}if(Q(F)||ae(F))return ge!==null?null:te(B,I,F,re,null);if(typeof F.then=="function")return V(B,I,Bs(F),re);if(F.$$typeof===N)return V(B,I,As(B,F),re);Us(B,F)}return null}function Y(B,I,F,re,ge){if(typeof re=="string"&&re!==""||typeof re=="number"||typeof re=="bigint")return B=B.get(F)||null,R(I,B,""+re,ge);if(typeof re=="object"&&re!==null){switch(re.$$typeof){case b:return B=B.get(re.key===null?F:re.key)||null,D(I,B,re,ge);case w:return B=B.get(re.key===null?F:re.key)||null,q(I,B,re,ge);case G:var Ie=re._init;return re=Ie(re._payload),Y(B,I,F,re,ge)}if(Q(re)||ae(re))return B=B.get(F)||null,te(I,B,re,ge,null);if(typeof re.then=="function")return Y(B,I,F,Bs(re),ge);if(re.$$typeof===N)return Y(B,I,F,As(I,re),ge);Us(I,re)}return null}function je(B,I,F,re){for(var ge=null,Ie=null,we=I,Me=I=0,jt=null;we!==null&&Me<F.length;Me++){we.index>Me?(jt=we,we=null):jt=we.sibling;var Ge=V(B,we,F[Me],re);if(Ge===null){we===null&&(we=jt);break}t&&we&&Ge.alternate===null&&a(B,we),I=v(Ge,I,Me),Ie===null?ge=Ge:Ie.sibling=Ge,Ie=Ge,we=jt}if(Me===F.length)return l(B,we),Ke&&_a(B,Me),ge;if(we===null){for(;Me<F.length;Me++)we=ie(B,F[Me],re),we!==null&&(I=v(we,I,Me),Ie===null?ge=we:Ie.sibling=we,Ie=we);return Ke&&_a(B,Me),ge}for(we=u(we);Me<F.length;Me++)jt=Y(we,B,Me,F[Me],re),jt!==null&&(t&&jt.alternate!==null&&we.delete(jt.key===null?Me:jt.key),I=v(jt,I,Me),Ie===null?ge=jt:Ie.sibling=jt,Ie=jt);return t&&we.forEach(function(sa){return a(B,sa)}),Ke&&_a(B,Me),ge}function Ne(B,I,F,re){if(F==null)throw Error(i(151));for(var ge=null,Ie=null,we=I,Me=I=0,jt=null,Ge=F.next();we!==null&&!Ge.done;Me++,Ge=F.next()){we.index>Me?(jt=we,we=null):jt=we.sibling;var sa=V(B,we,Ge.value,re);if(sa===null){we===null&&(we=jt);break}t&&we&&sa.alternate===null&&a(B,we),I=v(sa,I,Me),Ie===null?ge=sa:Ie.sibling=sa,Ie=sa,we=jt}if(Ge.done)return l(B,we),Ke&&_a(B,Me),ge;if(we===null){for(;!Ge.done;Me++,Ge=F.next())Ge=ie(B,Ge.value,re),Ge!==null&&(I=v(Ge,I,Me),Ie===null?ge=Ge:Ie.sibling=Ge,Ie=Ge);return Ke&&_a(B,Me),ge}for(we=u(we);!Ge.done;Me++,Ge=F.next())Ge=Y(we,B,Me,Ge.value,re),Ge!==null&&(t&&Ge.alternate!==null&&we.delete(Ge.key===null?Me:Ge.key),I=v(Ge,I,Me),Ie===null?ge=Ge:Ie.sibling=Ge,Ie=Ge);return t&&we.forEach(function(DA){return a(B,DA)}),Ke&&_a(B,Me),ge}function nt(B,I,F,re){if(typeof F=="object"&&F!==null&&F.type===C&&F.key===null&&(F=F.props.children),typeof F=="object"&&F!==null){switch(F.$$typeof){case b:e:{for(var ge=F.key;I!==null;){if(I.key===ge){if(ge=F.type,ge===C){if(I.tag===7){l(B,I.sibling),re=p(I,F.props.children),re.return=B,B=re;break e}}else if(I.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===G&&Ty(ge)===I.type){l(B,I.sibling),re=p(I,F.props),Hl(re,F),re.return=B,B=re;break e}l(B,I);break}else a(B,I);I=I.sibling}F.type===C?(re=Ta(F.props.children,B.mode,re,F.key),re.return=B,B=re):(re=Ss(F.type,F.key,F.props,null,B.mode,re),Hl(re,F),re.return=B,B=re)}return S(B);case w:e:{for(ge=F.key;I!==null;){if(I.key===ge)if(I.tag===4&&I.stateNode.containerInfo===F.containerInfo&&I.stateNode.implementation===F.implementation){l(B,I.sibling),re=p(I,F.children||[]),re.return=B,B=re;break e}else{l(B,I);break}else a(B,I);I=I.sibling}re=pf(F,B.mode,re),re.return=B,B=re}return S(B);case G:return ge=F._init,F=ge(F._payload),nt(B,I,F,re)}if(Q(F))return je(B,I,F,re);if(ae(F)){if(ge=ae(F),typeof ge!="function")throw Error(i(150));return F=ge.call(F),Ne(B,I,F,re)}if(typeof F.then=="function")return nt(B,I,Bs(F),re);if(F.$$typeof===N)return nt(B,I,As(B,F),re);Us(B,F)}return typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint"?(F=""+F,I!==null&&I.tag===6?(l(B,I.sibling),re=p(I,F),re.return=B,B=re):(l(B,I),re=hf(F,B.mode,re),re.return=B,B=re),S(B)):l(B,I)}return function(B,I,F,re){try{Ul=0;var ge=nt(B,I,F,re);return Ci=null,ge}catch(we){if(we===Ml||we===Rs)throw we;var Ie=fn(29,we,null,B.mode);return Ie.lanes=re,Ie.return=B,Ie}finally{}}}var ki=Ry(!0),_y=Ry(!1),_n=Z(null),nr=null;function Yr(t){var a=t.alternate;M(At,At.current&1),M(_n,t),nr===null&&(a===null||bi.current!==null||a.memoizedState!==null)&&(nr=t)}function Ny(t){if(t.tag===22){if(M(At,At.current),M(_n,t),nr===null){var a=t.alternate;a!==null&&a.memoizedState!==null&&(nr=t)}}else Kr()}function Kr(){M(At,At.current),M(_n,_n.current)}function kr(t){oe(_n),nr===t&&(nr=null),oe(At)}var At=Z(0);function Hs(t){for(var a=t;a!==null;){if(a.tag===13){var l=a.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||zd(l)))return a}else if(a.tag===19&&a.memoizedProps.revealOrder!==void 0){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===t)break;for(;a.sibling===null;){if(a.return===null||a.return===t)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}function Yf(t,a,l,u){a=t.memoizedState,l=l(u,a),l=l==null?a:m({},a,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var Kf={enqueueSetState:function(t,a,l){t=t._reactInternals;var u=mn(),p=Vr(u);p.payload=a,l!=null&&(p.callback=l),a=$r(t,p,u),a!==null&&(gn(a,t,u),Dl(a,t,u))},enqueueReplaceState:function(t,a,l){t=t._reactInternals;var u=mn(),p=Vr(u);p.tag=1,p.payload=a,l!=null&&(p.callback=l),a=$r(t,p,u),a!==null&&(gn(a,t,u),Dl(a,t,u))},enqueueForceUpdate:function(t,a){t=t._reactInternals;var l=mn(),u=Vr(l);u.tag=2,a!=null&&(u.callback=a),a=$r(t,u,l),a!==null&&(gn(a,t,l),Dl(a,t,l))}};function My(t,a,l,u,p,v,S){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(u,v,S):a.prototype&&a.prototype.isPureReactComponent?!El(l,u)||!El(p,v):!0}function jy(t,a,l,u){t=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(l,u),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(l,u),a.state!==t&&Kf.enqueueReplaceState(a,a.state,null)}function za(t,a){var l=a;if("ref"in a){l={};for(var u in a)u!=="ref"&&(l[u]=a[u])}if(t=t.defaultProps){l===a&&(l=m({},l));for(var p in t)l[p]===void 0&&(l[p]=t[p])}return l}var Fs=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)};function Dy(t){Fs(t)}function Oy(t){console.error(t)}function Ly(t){Fs(t)}function qs(t,a){try{var l=t.onUncaughtError;l(a.value,{componentStack:a.stack})}catch(u){setTimeout(function(){throw u})}}function zy(t,a,l){try{var u=t.onCaughtError;u(l.value,{componentStack:l.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(p){setTimeout(function(){throw p})}}function Xf(t,a,l){return l=Vr(l),l.tag=3,l.payload={element:null},l.callback=function(){qs(t,a)},l}function Py(t){return t=Vr(t),t.tag=3,t}function Iy(t,a,l,u){var p=l.type.getDerivedStateFromError;if(typeof p=="function"){var v=u.value;t.payload=function(){return p(v)},t.callback=function(){zy(a,l,u)}}var S=l.stateNode;S!==null&&typeof S.componentDidCatch=="function"&&(t.callback=function(){zy(a,l,u),typeof p!="function"&&(ea===null?ea=new Set([this]):ea.add(this));var R=u.stack;this.componentDidCatch(u.value,{componentStack:R!==null?R:""})})}function D2(t,a,l,u,p){if(l.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(a=l.alternate,a!==null&&Rl(a,l,p,!0),l=_n.current,l!==null){switch(l.tag){case 13:return nr===null?xd():l.alternate===null&&ht===0&&(ht=3),l.flags&=-257,l.flags|=65536,l.lanes=p,u===Cf?l.flags|=16384:(a=l.updateQueue,a===null?l.updateQueue=new Set([u]):a.add(u),wd(t,u,p)),!1;case 22:return l.flags|=65536,u===Cf?l.flags|=16384:(a=l.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([u])},l.updateQueue=a):(l=a.retryQueue,l===null?a.retryQueue=new Set([u]):l.add(u)),wd(t,u,p)),!1}throw Error(i(435,l.tag))}return wd(t,u,p),xd(),!1}if(Ke)return a=_n.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=p,u!==yf&&(t=Error(i(422),{cause:u}),Tl(kn(t,l)))):(u!==yf&&(a=Error(i(423),{cause:u}),Tl(kn(a,l))),t=t.current.alternate,t.flags|=65536,p&=-p,t.lanes|=p,u=kn(u,l),p=Xf(t.stateNode,u,p),Tf(t,p),ht!==4&&(ht=2)),!1;var v=Error(i(520),{cause:u});if(v=kn(v,l),Kl===null?Kl=[v]:Kl.push(v),ht!==4&&(ht=2),a===null)return!0;u=kn(u,l),l=a;do{switch(l.tag){case 3:return l.flags|=65536,t=p&-p,l.lanes|=t,t=Xf(l.stateNode,u,t),Tf(l,t),!1;case 1:if(a=l.type,v=l.stateNode,(l.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(ea===null||!ea.has(v))))return l.flags|=65536,p&=-p,l.lanes|=p,p=Py(p),Iy(p,t,l,u),Tf(l,p),!1}l=l.return}while(l!==null);return!1}var By=Error(i(461)),Nt=!1;function Lt(t,a,l,u){a.child=t===null?_y(a,null,l,u):ki(a,t.child,l,u)}function Uy(t,a,l,u,p){l=l.render;var v=a.ref;if("ref"in u){var S={};for(var R in u)R!=="ref"&&(S[R]=u[R])}else S=u;return Da(a),u=jf(t,a,l,S,v,p),R=Df(),t!==null&&!Nt?(Of(t,a,p),Ar(t,a,p)):(Ke&&R&&mf(a),a.flags|=1,Lt(t,a,u,p),a.child)}function Hy(t,a,l,u,p){if(t===null){var v=l.type;return typeof v=="function"&&!df(v)&&v.defaultProps===void 0&&l.compare===null?(a.tag=15,a.type=v,Fy(t,a,v,u,p)):(t=Ss(l.type,null,u,a,a.mode,p),t.ref=a.ref,t.return=a,a.child=t)}if(v=t.child,!rd(t,p)){var S=v.memoizedProps;if(l=l.compare,l=l!==null?l:El,l(S,u)&&t.ref===a.ref)return Ar(t,a,p)}return a.flags|=1,t=xr(v,u),t.ref=a.ref,t.return=a,a.child=t}function Fy(t,a,l,u,p){if(t!==null){var v=t.memoizedProps;if(El(v,u)&&t.ref===a.ref)if(Nt=!1,a.pendingProps=u=v,rd(t,p))(t.flags&131072)!==0&&(Nt=!0);else return a.lanes=t.lanes,Ar(t,a,p)}return Qf(t,a,l,u,p)}function qy(t,a,l){var u=a.pendingProps,p=u.children,v=t!==null?t.memoizedState:null;if(u.mode==="hidden"){if((a.flags&128)!==0){if(u=v!==null?v.baseLanes|l:l,t!==null){for(p=a.child=t.child,v=0;p!==null;)v=v|p.lanes|p.childLanes,p=p.sibling;a.childLanes=v&~u}else a.childLanes=0,a.child=null;return Vy(t,a,u,l)}if((l&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},t!==null&&Ts(a,v!==null?v.cachePool:null),v!==null?Fg(a,v):_f(),Ny(a);else return a.lanes=a.childLanes=536870912,Vy(t,a,v!==null?v.baseLanes|l:l,l)}else v!==null?(Ts(a,v.cachePool),Fg(a,v),Kr(),a.memoizedState=null):(t!==null&&Ts(a,null),_f(),Kr());return Lt(t,a,p,l),a.child}function Vy(t,a,l,u){var p=Ef();return p=p===null?null:{parent:kt._currentValue,pool:p},a.memoizedState={baseLanes:l,cachePool:p},t!==null&&Ts(a,null),_f(),Ny(a),t!==null&&Rl(t,a,u,!0),null}function Vs(t,a){var l=a.ref;if(l===null)t!==null&&t.ref!==null&&(a.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(i(284));(t===null||t.ref!==l)&&(a.flags|=4194816)}}function Qf(t,a,l,u,p){return Da(a),l=jf(t,a,l,u,void 0,p),u=Df(),t!==null&&!Nt?(Of(t,a,p),Ar(t,a,p)):(Ke&&u&&mf(a),a.flags|=1,Lt(t,a,l,p),a.child)}function $y(t,a,l,u,p,v){return Da(a),a.updateQueue=null,l=Vg(a,u,l,p),qg(t),u=Df(),t!==null&&!Nt?(Of(t,a,v),Ar(t,a,v)):(Ke&&u&&mf(a),a.flags|=1,Lt(t,a,l,v),a.child)}function Gy(t,a,l,u,p){if(Da(a),a.stateNode===null){var v=mi,S=l.contextType;typeof S=="object"&&S!==null&&(v=Ft(S)),v=new l(u,v),a.memoizedState=v.state!==null&&v.state!==void 0?v.state:null,v.updater=Kf,a.stateNode=v,v._reactInternals=a,v=a.stateNode,v.props=u,v.state=a.memoizedState,v.refs={},kf(a),S=l.contextType,v.context=typeof S=="object"&&S!==null?Ft(S):mi,v.state=a.memoizedState,S=l.getDerivedStateFromProps,typeof S=="function"&&(Yf(a,l,S,u),v.state=a.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof v.getSnapshotBeforeUpdate=="function"||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(S=v.state,typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount(),S!==v.state&&Kf.enqueueReplaceState(v,v.state,null),Ll(a,u,v,p),Ol(),v.state=a.memoizedState),typeof v.componentDidMount=="function"&&(a.flags|=4194308),u=!0}else if(t===null){v=a.stateNode;var R=a.memoizedProps,D=za(l,R);v.props=D;var q=v.context,te=l.contextType;S=mi,typeof te=="object"&&te!==null&&(S=Ft(te));var ie=l.getDerivedStateFromProps;te=typeof ie=="function"||typeof v.getSnapshotBeforeUpdate=="function",R=a.pendingProps!==R,te||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(R||q!==S)&&jy(a,v,u,S),qr=!1;var V=a.memoizedState;v.state=V,Ll(a,u,v,p),Ol(),q=a.memoizedState,R||V!==q||qr?(typeof ie=="function"&&(Yf(a,l,ie,u),q=a.memoizedState),(D=qr||My(a,l,D,u,V,q,S))?(te||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount()),typeof v.componentDidMount=="function"&&(a.flags|=4194308)):(typeof v.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=u,a.memoizedState=q),v.props=u,v.state=q,v.context=S,u=D):(typeof v.componentDidMount=="function"&&(a.flags|=4194308),u=!1)}else{v=a.stateNode,Af(t,a),S=a.memoizedProps,te=za(l,S),v.props=te,ie=a.pendingProps,V=v.context,q=l.contextType,D=mi,typeof q=="object"&&q!==null&&(D=Ft(q)),R=l.getDerivedStateFromProps,(q=typeof R=="function"||typeof v.getSnapshotBeforeUpdate=="function")||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(S!==ie||V!==D)&&jy(a,v,u,D),qr=!1,V=a.memoizedState,v.state=V,Ll(a,u,v,p),Ol();var Y=a.memoizedState;S!==ie||V!==Y||qr||t!==null&&t.dependencies!==null&&ks(t.dependencies)?(typeof R=="function"&&(Yf(a,l,R,u),Y=a.memoizedState),(te=qr||My(a,l,te,u,V,Y,D)||t!==null&&t.dependencies!==null&&ks(t.dependencies))?(q||typeof v.UNSAFE_componentWillUpdate!="function"&&typeof v.componentWillUpdate!="function"||(typeof v.componentWillUpdate=="function"&&v.componentWillUpdate(u,Y,D),typeof v.UNSAFE_componentWillUpdate=="function"&&v.UNSAFE_componentWillUpdate(u,Y,D)),typeof v.componentDidUpdate=="function"&&(a.flags|=4),typeof v.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof v.componentDidUpdate!="function"||S===t.memoizedProps&&V===t.memoizedState||(a.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||S===t.memoizedProps&&V===t.memoizedState||(a.flags|=1024),a.memoizedProps=u,a.memoizedState=Y),v.props=u,v.state=Y,v.context=D,u=te):(typeof v.componentDidUpdate!="function"||S===t.memoizedProps&&V===t.memoizedState||(a.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||S===t.memoizedProps&&V===t.memoizedState||(a.flags|=1024),u=!1)}return v=u,Vs(t,a),u=(a.flags&128)!==0,v||u?(v=a.stateNode,l=u&&typeof l.getDerivedStateFromError!="function"?null:v.render(),a.flags|=1,t!==null&&u?(a.child=ki(a,t.child,null,p),a.child=ki(a,null,l,p)):Lt(t,a,l,p),a.memoizedState=v.state,t=a.child):t=Ar(t,a,p),t}function Yy(t,a,l,u){return Al(),a.flags|=256,Lt(t,a,l,u),a.child}var Zf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Wf(t){return{baseLanes:t,cachePool:Og()}}function Jf(t,a,l){return t=t!==null?t.childLanes&~l:0,a&&(t|=Nn),t}function Ky(t,a,l){var u=a.pendingProps,p=!1,v=(a.flags&128)!==0,S;if((S=v)||(S=t!==null&&t.memoizedState===null?!1:(At.current&2)!==0),S&&(p=!0,a.flags&=-129),S=(a.flags&32)!==0,a.flags&=-33,t===null){if(Ke){if(p?Yr(a):Kr(),Ke){var R=dt,D;if(D=R){e:{for(D=R,R=tr;D.nodeType!==8;){if(!R){R=null;break e}if(D=qn(D.nextSibling),D===null){R=null;break e}}R=D}R!==null?(a.memoizedState={dehydrated:R,treeContext:Ra!==null?{id:br,overflow:wr}:null,retryLane:536870912,hydrationErrors:null},D=fn(18,null,null,0),D.stateNode=R,D.return=a,a.child=D,Xt=a,dt=null,D=!0):D=!1}D||Ma(a)}if(R=a.memoizedState,R!==null&&(R=R.dehydrated,R!==null))return zd(R)?a.lanes=32:a.lanes=536870912,null;kr(a)}return R=u.children,u=u.fallback,p?(Kr(),p=a.mode,R=$s({mode:"hidden",children:R},p),u=Ta(u,p,l,null),R.return=a,u.return=a,R.sibling=u,a.child=R,p=a.child,p.memoizedState=Wf(l),p.childLanes=Jf(t,S,l),a.memoizedState=Zf,u):(Yr(a),ed(a,R))}if(D=t.memoizedState,D!==null&&(R=D.dehydrated,R!==null)){if(v)a.flags&256?(Yr(a),a.flags&=-257,a=td(t,a,l)):a.memoizedState!==null?(Kr(),a.child=t.child,a.flags|=128,a=null):(Kr(),p=u.fallback,R=a.mode,u=$s({mode:"visible",children:u.children},R),p=Ta(p,R,l,null),p.flags|=2,u.return=a,p.return=a,u.sibling=p,a.child=u,ki(a,t.child,null,l),u=a.child,u.memoizedState=Wf(l),u.childLanes=Jf(t,S,l),a.memoizedState=Zf,a=p);else if(Yr(a),zd(R)){if(S=R.nextSibling&&R.nextSibling.dataset,S)var q=S.dgst;S=q,u=Error(i(419)),u.stack="",u.digest=S,Tl({value:u,source:null,stack:null}),a=td(t,a,l)}else if(Nt||Rl(t,a,l,!1),S=(l&t.childLanes)!==0,Nt||S){if(S=it,S!==null&&(u=l&-l,u=(u&42)!==0?1:$e(u),u=(u&(S.suspendedLanes|l))!==0?0:u,u!==0&&u!==D.retryLane))throw D.retryLane=u,pi(t,u),gn(S,t,u),By;R.data==="$?"||xd(),a=td(t,a,l)}else R.data==="$?"?(a.flags|=192,a.child=t.child,a=null):(t=D.treeContext,dt=qn(R.nextSibling),Xt=a,Ke=!0,Na=null,tr=!1,t!==null&&(Tn[Rn++]=br,Tn[Rn++]=wr,Tn[Rn++]=Ra,br=t.id,wr=t.overflow,Ra=a),a=ed(a,u.children),a.flags|=4096);return a}return p?(Kr(),p=u.fallback,R=a.mode,D=t.child,q=D.sibling,u=xr(D,{mode:"hidden",children:u.children}),u.subtreeFlags=D.subtreeFlags&65011712,q!==null?p=xr(q,p):(p=Ta(p,R,l,null),p.flags|=2),p.return=a,u.return=a,u.sibling=p,a.child=u,u=p,p=a.child,R=t.child.memoizedState,R===null?R=Wf(l):(D=R.cachePool,D!==null?(q=kt._currentValue,D=D.parent!==q?{parent:q,pool:q}:D):D=Og(),R={baseLanes:R.baseLanes|l,cachePool:D}),p.memoizedState=R,p.childLanes=Jf(t,S,l),a.memoizedState=Zf,u):(Yr(a),l=t.child,t=l.sibling,l=xr(l,{mode:"visible",children:u.children}),l.return=a,l.sibling=null,t!==null&&(S=a.deletions,S===null?(a.deletions=[t],a.flags|=16):S.push(t)),a.child=l,a.memoizedState=null,l)}function ed(t,a){return a=$s({mode:"visible",children:a},t.mode),a.return=t,t.child=a}function $s(t,a){return t=fn(22,t,null,a),t.lanes=0,t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},t}function td(t,a,l){return ki(a,t.child,null,l),t=ed(a,a.pendingProps.children),t.flags|=2,a.memoizedState=null,t}function Xy(t,a,l){t.lanes|=a;var u=t.alternate;u!==null&&(u.lanes|=a),xf(t.return,a,l)}function nd(t,a,l,u,p){var v=t.memoizedState;v===null?t.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:u,tail:l,tailMode:p}:(v.isBackwards=a,v.rendering=null,v.renderingStartTime=0,v.last=u,v.tail=l,v.tailMode=p)}function Qy(t,a,l){var u=a.pendingProps,p=u.revealOrder,v=u.tail;if(Lt(t,a,u.children,l),u=At.current,(u&2)!==0)u=u&1|2,a.flags|=128;else{if(t!==null&&(t.flags&128)!==0)e:for(t=a.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Xy(t,l,a);else if(t.tag===19)Xy(t,l,a);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===a)break e;for(;t.sibling===null;){if(t.return===null||t.return===a)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}u&=1}switch(M(At,u),p){case"forwards":for(l=a.child,p=null;l!==null;)t=l.alternate,t!==null&&Hs(t)===null&&(p=l),l=l.sibling;l=p,l===null?(p=a.child,a.child=null):(p=l.sibling,l.sibling=null),nd(a,!1,p,l,v);break;case"backwards":for(l=null,p=a.child,a.child=null;p!==null;){if(t=p.alternate,t!==null&&Hs(t)===null){a.child=p;break}t=p.sibling,p.sibling=l,l=p,p=t}nd(a,!0,l,null,v);break;case"together":nd(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function Ar(t,a,l){if(t!==null&&(a.dependencies=t.dependencies),Jr|=a.lanes,(l&a.childLanes)===0)if(t!==null){if(Rl(t,a,l,!1),(l&a.childLanes)===0)return null}else return null;if(t!==null&&a.child!==t.child)throw Error(i(153));if(a.child!==null){for(t=a.child,l=xr(t,t.pendingProps),a.child=l,l.return=a;t.sibling!==null;)t=t.sibling,l=l.sibling=xr(t,t.pendingProps),l.return=a;l.sibling=null}return a.child}function rd(t,a){return(t.lanes&a)!==0?!0:(t=t.dependencies,!!(t!==null&&ks(t)))}function O2(t,a,l){switch(a.tag){case 3:Ee(a,a.stateNode.containerInfo),Fr(a,kt,t.memoizedState.cache),Al();break;case 27:case 5:bt(a);break;case 4:Ee(a,a.stateNode.containerInfo);break;case 10:Fr(a,a.type,a.memoizedProps.value);break;case 13:var u=a.memoizedState;if(u!==null)return u.dehydrated!==null?(Yr(a),a.flags|=128,null):(l&a.child.childLanes)!==0?Ky(t,a,l):(Yr(a),t=Ar(t,a,l),t!==null?t.sibling:null);Yr(a);break;case 19:var p=(t.flags&128)!==0;if(u=(l&a.childLanes)!==0,u||(Rl(t,a,l,!1),u=(l&a.childLanes)!==0),p){if(u)return Qy(t,a,l);a.flags|=128}if(p=a.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),M(At,At.current),u)break;return null;case 22:case 23:return a.lanes=0,qy(t,a,l);case 24:Fr(a,kt,t.memoizedState.cache)}return Ar(t,a,l)}function Zy(t,a,l){if(t!==null)if(t.memoizedProps!==a.pendingProps)Nt=!0;else{if(!rd(t,l)&&(a.flags&128)===0)return Nt=!1,O2(t,a,l);Nt=(t.flags&131072)!==0}else Nt=!1,Ke&&(a.flags&1048576)!==0&&Tg(a,Cs,a.index);switch(a.lanes=0,a.tag){case 16:e:{t=a.pendingProps;var u=a.elementType,p=u._init;if(u=p(u._payload),a.type=u,typeof u=="function")df(u)?(t=za(u,t),a.tag=1,a=Gy(null,a,u,t,l)):(a.tag=0,a=Qf(null,a,u,t,l));else{if(u!=null){if(p=u.$$typeof,p===O){a.tag=11,a=Uy(null,a,u,t,l);break e}else if(p===$){a.tag=14,a=Hy(null,a,u,t,l);break e}}throw a=H(u)||u,Error(i(306,a,""))}}return a;case 0:return Qf(t,a,a.type,a.pendingProps,l);case 1:return u=a.type,p=za(u,a.pendingProps),Gy(t,a,u,p,l);case 3:e:{if(Ee(a,a.stateNode.containerInfo),t===null)throw Error(i(387));u=a.pendingProps;var v=a.memoizedState;p=v.element,Af(t,a),Ll(a,u,null,l);var S=a.memoizedState;if(u=S.cache,Fr(a,kt,u),u!==v.cache&&bf(a,[kt],l,!0),Ol(),u=S.element,v.isDehydrated)if(v={element:u,isDehydrated:!1,cache:S.cache},a.updateQueue.baseState=v,a.memoizedState=v,a.flags&256){a=Yy(t,a,u,l);break e}else if(u!==p){p=kn(Error(i(424)),a),Tl(p),a=Yy(t,a,u,l);break e}else{switch(t=a.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(dt=qn(t.firstChild),Xt=a,Ke=!0,Na=null,tr=!0,l=_y(a,null,u,l),a.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Al(),u===p){a=Ar(t,a,l);break e}Lt(t,a,u,l)}a=a.child}return a;case 26:return Vs(t,a),t===null?(l=tx(a.type,null,a.pendingProps,null))?a.memoizedState=l:Ke||(l=a.type,t=a.pendingProps,u=iu(he.current).createElement(l),u[st]=a,u[gt]=t,Pt(u,l,t),_t(u),a.stateNode=u):a.memoizedState=tx(a.type,t.memoizedProps,a.pendingProps,t.memoizedState),null;case 27:return bt(a),t===null&&Ke&&(u=a.stateNode=Wv(a.type,a.pendingProps,he.current),Xt=a,tr=!0,p=dt,ra(a.type)?(Pd=p,dt=qn(u.firstChild)):dt=p),Lt(t,a,a.pendingProps.children,l),Vs(t,a),t===null&&(a.flags|=4194304),a.child;case 5:return t===null&&Ke&&((p=u=dt)&&(u=sA(u,a.type,a.pendingProps,tr),u!==null?(a.stateNode=u,Xt=a,dt=qn(u.firstChild),tr=!1,p=!0):p=!1),p||Ma(a)),bt(a),p=a.type,v=a.pendingProps,S=t!==null?t.memoizedProps:null,u=v.children,Dd(p,v)?u=null:S!==null&&Dd(p,S)&&(a.flags|=32),a.memoizedState!==null&&(p=jf(t,a,A2,null,null,l),ro._currentValue=p),Vs(t,a),Lt(t,a,u,l),a.child;case 6:return t===null&&Ke&&((t=l=dt)&&(l=uA(l,a.pendingProps,tr),l!==null?(a.stateNode=l,Xt=a,dt=null,t=!0):t=!1),t||Ma(a)),null;case 13:return Ky(t,a,l);case 4:return Ee(a,a.stateNode.containerInfo),u=a.pendingProps,t===null?a.child=ki(a,null,u,l):Lt(t,a,u,l),a.child;case 11:return Uy(t,a,a.type,a.pendingProps,l);case 7:return Lt(t,a,a.pendingProps,l),a.child;case 8:return Lt(t,a,a.pendingProps.children,l),a.child;case 12:return Lt(t,a,a.pendingProps.children,l),a.child;case 10:return u=a.pendingProps,Fr(a,a.type,u.value),Lt(t,a,u.children,l),a.child;case 9:return p=a.type._context,u=a.pendingProps.children,Da(a),p=Ft(p),u=u(p),a.flags|=1,Lt(t,a,u,l),a.child;case 14:return Hy(t,a,a.type,a.pendingProps,l);case 15:return Fy(t,a,a.type,a.pendingProps,l);case 19:return Qy(t,a,l);case 31:return u=a.pendingProps,l=a.mode,u={mode:u.mode,children:u.children},t===null?(l=$s(u,l),l.ref=a.ref,a.child=l,l.return=a,a=l):(l=xr(t.child,u),l.ref=a.ref,a.child=l,l.return=a,a=l),a;case 22:return qy(t,a,l);case 24:return Da(a),u=Ft(kt),t===null?(p=Ef(),p===null&&(p=it,v=wf(),p.pooledCache=v,v.refCount++,v!==null&&(p.pooledCacheLanes|=l),p=v),a.memoizedState={parent:u,cache:p},kf(a),Fr(a,kt,p)):((t.lanes&l)!==0&&(Af(t,a),Ll(a,null,null,l),Ol()),p=t.memoizedState,v=a.memoizedState,p.parent!==u?(p={parent:u,cache:u},a.memoizedState=p,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=p),Fr(a,kt,u)):(u=v.cache,Fr(a,kt,u),u!==p.cache&&bf(a,[kt],l,!0))),Lt(t,a,a.pendingProps.children,l),a.child;case 29:throw a.pendingProps}throw Error(i(156,a.tag))}function Tr(t){t.flags|=4}function Wy(t,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!lx(a)){if(a=_n.current,a!==null&&((qe&4194048)===qe?nr!==null:(qe&62914560)!==qe&&(qe&536870912)===0||a!==nr))throw jl=Cf,Lg;t.flags|=8192}}function Gs(t,a){a!==null&&(t.flags|=4),t.flags&16384&&(a=t.tag!==22?pe():536870912,t.lanes|=a,_i|=a)}function Fl(t,a){if(!Ke)switch(t.tailMode){case"hidden":a=t.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t.tail=null:l.sibling=null;break;case"collapsed":l=t.tail;for(var u=null;l!==null;)l.alternate!==null&&(u=l),l=l.sibling;u===null?a||t.tail===null?t.tail=null:t.tail.sibling=null:u.sibling=null}}function ft(t){var a=t.alternate!==null&&t.alternate.child===t.child,l=0,u=0;if(a)for(var p=t.child;p!==null;)l|=p.lanes|p.childLanes,u|=p.subtreeFlags&65011712,u|=p.flags&65011712,p.return=t,p=p.sibling;else for(p=t.child;p!==null;)l|=p.lanes|p.childLanes,u|=p.subtreeFlags,u|=p.flags,p.return=t,p=p.sibling;return t.subtreeFlags|=u,t.childLanes=l,a}function L2(t,a,l){var u=a.pendingProps;switch(gf(a),a.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ft(a),null;case 1:return ft(a),null;case 3:return l=a.stateNode,u=null,t!==null&&(u=t.memoizedState.cache),a.memoizedState.cache!==u&&(a.flags|=2048),Er(kt),Qe(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&(kl(a)?Tr(a):t===null||t.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,Ng())),ft(a),null;case 26:return l=a.memoizedState,t===null?(Tr(a),l!==null?(ft(a),Wy(a,l)):(ft(a),a.flags&=-16777217)):l?l!==t.memoizedState?(Tr(a),ft(a),Wy(a,l)):(ft(a),a.flags&=-16777217):(t.memoizedProps!==u&&Tr(a),ft(a),a.flags&=-16777217),null;case 27:Rt(a),l=he.current;var p=a.type;if(t!==null&&a.stateNode!=null)t.memoizedProps!==u&&Tr(a);else{if(!u){if(a.stateNode===null)throw Error(i(166));return ft(a),null}t=se.current,kl(a)?Rg(a):(t=Wv(p,u,l),a.stateNode=t,Tr(a))}return ft(a),null;case 5:if(Rt(a),l=a.type,t!==null&&a.stateNode!=null)t.memoizedProps!==u&&Tr(a);else{if(!u){if(a.stateNode===null)throw Error(i(166));return ft(a),null}if(t=se.current,kl(a))Rg(a);else{switch(p=iu(he.current),t){case 1:t=p.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:t=p.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":t=p.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":t=p.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":t=p.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild);break;case"select":t=typeof u.is=="string"?p.createElement("select",{is:u.is}):p.createElement("select"),u.multiple?t.multiple=!0:u.size&&(t.size=u.size);break;default:t=typeof u.is=="string"?p.createElement(l,{is:u.is}):p.createElement(l)}}t[st]=a,t[gt]=u;e:for(p=a.child;p!==null;){if(p.tag===5||p.tag===6)t.appendChild(p.stateNode);else if(p.tag!==4&&p.tag!==27&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===a)break e;for(;p.sibling===null;){if(p.return===null||p.return===a)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}a.stateNode=t;e:switch(Pt(t,l,u),l){case"button":case"input":case"select":case"textarea":t=!!u.autoFocus;break e;case"img":t=!0;break e;default:t=!1}t&&Tr(a)}}return ft(a),a.flags&=-16777217,null;case 6:if(t&&a.stateNode!=null)t.memoizedProps!==u&&Tr(a);else{if(typeof u!="string"&&a.stateNode===null)throw Error(i(166));if(t=he.current,kl(a)){if(t=a.stateNode,l=a.memoizedProps,u=null,p=Xt,p!==null)switch(p.tag){case 27:case 5:u=p.memoizedProps}t[st]=a,t=!!(t.nodeValue===l||u!==null&&u.suppressHydrationWarning===!0||$v(t.nodeValue,l)),t||Ma(a)}else t=iu(t).createTextNode(u),t[st]=a,a.stateNode=t}return ft(a),null;case 13:if(u=a.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(p=kl(a),u!==null&&u.dehydrated!==null){if(t===null){if(!p)throw Error(i(318));if(p=a.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(i(317));p[st]=a}else Al(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;ft(a),p=!1}else p=Ng(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=p),p=!0;if(!p)return a.flags&256?(kr(a),a):(kr(a),null)}if(kr(a),(a.flags&128)!==0)return a.lanes=l,a;if(l=u!==null,t=t!==null&&t.memoizedState!==null,l){u=a.child,p=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(p=u.alternate.memoizedState.cachePool.pool);var v=null;u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(v=u.memoizedState.cachePool.pool),v!==p&&(u.flags|=2048)}return l!==t&&l&&(a.child.flags|=8192),Gs(a,a.updateQueue),ft(a),null;case 4:return Qe(),t===null&&Rd(a.stateNode.containerInfo),ft(a),null;case 10:return Er(a.type),ft(a),null;case 19:if(oe(At),p=a.memoizedState,p===null)return ft(a),null;if(u=(a.flags&128)!==0,v=p.rendering,v===null)if(u)Fl(p,!1);else{if(ht!==0||t!==null&&(t.flags&128)!==0)for(t=a.child;t!==null;){if(v=Hs(t),v!==null){for(a.flags|=128,Fl(p,!1),t=v.updateQueue,a.updateQueue=t,Gs(a,t),a.subtreeFlags=0,t=l,l=a.child;l!==null;)Ag(l,t),l=l.sibling;return M(At,At.current&1|2),a.child}t=t.sibling}p.tail!==null&&Dt()>Xs&&(a.flags|=128,u=!0,Fl(p,!1),a.lanes=4194304)}else{if(!u)if(t=Hs(v),t!==null){if(a.flags|=128,u=!0,t=t.updateQueue,a.updateQueue=t,Gs(a,t),Fl(p,!0),p.tail===null&&p.tailMode==="hidden"&&!v.alternate&&!Ke)return ft(a),null}else 2*Dt()-p.renderingStartTime>Xs&&l!==536870912&&(a.flags|=128,u=!0,Fl(p,!1),a.lanes=4194304);p.isBackwards?(v.sibling=a.child,a.child=v):(t=p.last,t!==null?t.sibling=v:a.child=v,p.last=v)}return p.tail!==null?(a=p.tail,p.rendering=a,p.tail=a.sibling,p.renderingStartTime=Dt(),a.sibling=null,t=At.current,M(At,u?t&1|2:t&1),a):(ft(a),null);case 22:case 23:return kr(a),Nf(),u=a.memoizedState!==null,t!==null?t.memoizedState!==null!==u&&(a.flags|=8192):u&&(a.flags|=8192),u?(l&536870912)!==0&&(a.flags&128)===0&&(ft(a),a.subtreeFlags&6&&(a.flags|=8192)):ft(a),l=a.updateQueue,l!==null&&Gs(a,l.retryQueue),l=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==l&&(a.flags|=2048),t!==null&&oe(Oa),null;case 24:return l=null,t!==null&&(l=t.memoizedState.cache),a.memoizedState.cache!==l&&(a.flags|=2048),Er(kt),ft(a),null;case 25:return null;case 30:return null}throw Error(i(156,a.tag))}function z2(t,a){switch(gf(a),a.tag){case 1:return t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 3:return Er(kt),Qe(),t=a.flags,(t&65536)!==0&&(t&128)===0?(a.flags=t&-65537|128,a):null;case 26:case 27:case 5:return Rt(a),null;case 13:if(kr(a),t=a.memoizedState,t!==null&&t.dehydrated!==null){if(a.alternate===null)throw Error(i(340));Al()}return t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 19:return oe(At),null;case 4:return Qe(),null;case 10:return Er(a.type),null;case 22:case 23:return kr(a),Nf(),t!==null&&oe(Oa),t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 24:return Er(kt),null;case 25:return null;default:return null}}function Jy(t,a){switch(gf(a),a.tag){case 3:Er(kt),Qe();break;case 26:case 27:case 5:Rt(a);break;case 4:Qe();break;case 13:kr(a);break;case 19:oe(At);break;case 10:Er(a.type);break;case 22:case 23:kr(a),Nf(),t!==null&&oe(Oa);break;case 24:Er(kt)}}function ql(t,a){try{var l=a.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var p=u.next;l=p;do{if((l.tag&t)===t){u=void 0;var v=l.create,S=l.inst;u=v(),S.destroy=u}l=l.next}while(l!==p)}}catch(R){rt(a,a.return,R)}}function Xr(t,a,l){try{var u=a.updateQueue,p=u!==null?u.lastEffect:null;if(p!==null){var v=p.next;u=v;do{if((u.tag&t)===t){var S=u.inst,R=S.destroy;if(R!==void 0){S.destroy=void 0,p=a;var D=l,q=R;try{q()}catch(te){rt(p,D,te)}}}u=u.next}while(u!==v)}}catch(te){rt(a,a.return,te)}}function ev(t){var a=t.updateQueue;if(a!==null){var l=t.stateNode;try{Hg(a,l)}catch(u){rt(t,t.return,u)}}}function tv(t,a,l){l.props=za(t.type,t.memoizedProps),l.state=t.memoizedState;try{l.componentWillUnmount()}catch(u){rt(t,a,u)}}function Vl(t,a){try{var l=t.ref;if(l!==null){switch(t.tag){case 26:case 27:case 5:var u=t.stateNode;break;case 30:u=t.stateNode;break;default:u=t.stateNode}typeof l=="function"?t.refCleanup=l(u):l.current=u}}catch(p){rt(t,a,p)}}function rr(t,a){var l=t.ref,u=t.refCleanup;if(l!==null)if(typeof u=="function")try{u()}catch(p){rt(t,a,p)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(p){rt(t,a,p)}else l.current=null}function nv(t){var a=t.type,l=t.memoizedProps,u=t.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":l.autoFocus&&u.focus();break e;case"img":l.src?u.src=l.src:l.srcSet&&(u.srcset=l.srcSet)}}catch(p){rt(t,t.return,p)}}function ad(t,a,l){try{var u=t.stateNode;rA(u,t.type,l,a),u[gt]=a}catch(p){rt(t,t.return,p)}}function rv(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&ra(t.type)||t.tag===4}function id(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||rv(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&ra(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function ld(t,a,l){var u=t.tag;if(u===5||u===6)t=t.stateNode,a?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(t,a):(a=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,a.appendChild(t),l=l._reactRootContainer,l!=null||a.onclick!==null||(a.onclick=au));else if(u!==4&&(u===27&&ra(t.type)&&(l=t.stateNode,a=null),t=t.child,t!==null))for(ld(t,a,l),t=t.sibling;t!==null;)ld(t,a,l),t=t.sibling}function Ys(t,a,l){var u=t.tag;if(u===5||u===6)t=t.stateNode,a?l.insertBefore(t,a):l.appendChild(t);else if(u!==4&&(u===27&&ra(t.type)&&(l=t.stateNode),t=t.child,t!==null))for(Ys(t,a,l),t=t.sibling;t!==null;)Ys(t,a,l),t=t.sibling}function av(t){var a=t.stateNode,l=t.memoizedProps;try{for(var u=t.type,p=a.attributes;p.length;)a.removeAttributeNode(p[0]);Pt(a,u,l),a[st]=t,a[gt]=l}catch(v){rt(t,t.return,v)}}var Rr=!1,vt=!1,od=!1,iv=typeof WeakSet=="function"?WeakSet:Set,Mt=null;function P2(t,a){if(t=t.containerInfo,Md=fu,t=gg(t),af(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else e:{l=(l=t.ownerDocument)&&l.defaultView||window;var u=l.getSelection&&l.getSelection();if(u&&u.rangeCount!==0){l=u.anchorNode;var p=u.anchorOffset,v=u.focusNode;u=u.focusOffset;try{l.nodeType,v.nodeType}catch{l=null;break e}var S=0,R=-1,D=-1,q=0,te=0,ie=t,V=null;t:for(;;){for(var Y;ie!==l||p!==0&&ie.nodeType!==3||(R=S+p),ie!==v||u!==0&&ie.nodeType!==3||(D=S+u),ie.nodeType===3&&(S+=ie.nodeValue.length),(Y=ie.firstChild)!==null;)V=ie,ie=Y;for(;;){if(ie===t)break t;if(V===l&&++q===p&&(R=S),V===v&&++te===u&&(D=S),(Y=ie.nextSibling)!==null)break;ie=V,V=ie.parentNode}ie=Y}l=R===-1||D===-1?null:{start:R,end:D}}else l=null}l=l||{start:0,end:0}}else l=null;for(jd={focusedElem:t,selectionRange:l},fu=!1,Mt=a;Mt!==null;)if(a=Mt,t=a.child,(a.subtreeFlags&1024)!==0&&t!==null)t.return=a,Mt=t;else for(;Mt!==null;){switch(a=Mt,v=a.alternate,t=a.flags,a.tag){case 0:break;case 11:case 15:break;case 1:if((t&1024)!==0&&v!==null){t=void 0,l=a,p=v.memoizedProps,v=v.memoizedState,u=l.stateNode;try{var je=za(l.type,p,l.elementType===l.type);t=u.getSnapshotBeforeUpdate(je,v),u.__reactInternalSnapshotBeforeUpdate=t}catch(Ne){rt(l,l.return,Ne)}}break;case 3:if((t&1024)!==0){if(t=a.stateNode.containerInfo,l=t.nodeType,l===9)Ld(t);else if(l===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Ld(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(i(163))}if(t=a.sibling,t!==null){t.return=a.return,Mt=t;break}Mt=a.return}}function lv(t,a,l){var u=l.flags;switch(l.tag){case 0:case 11:case 15:Qr(t,l),u&4&&ql(5,l);break;case 1:if(Qr(t,l),u&4)if(t=l.stateNode,a===null)try{t.componentDidMount()}catch(S){rt(l,l.return,S)}else{var p=za(l.type,a.memoizedProps);a=a.memoizedState;try{t.componentDidUpdate(p,a,t.__reactInternalSnapshotBeforeUpdate)}catch(S){rt(l,l.return,S)}}u&64&&ev(l),u&512&&Vl(l,l.return);break;case 3:if(Qr(t,l),u&64&&(t=l.updateQueue,t!==null)){if(a=null,l.child!==null)switch(l.child.tag){case 27:case 5:a=l.child.stateNode;break;case 1:a=l.child.stateNode}try{Hg(t,a)}catch(S){rt(l,l.return,S)}}break;case 27:a===null&&u&4&&av(l);case 26:case 5:Qr(t,l),a===null&&u&4&&nv(l),u&512&&Vl(l,l.return);break;case 12:Qr(t,l);break;case 13:Qr(t,l),u&4&&uv(t,l),u&64&&(t=l.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(l=G2.bind(null,l),cA(t,l))));break;case 22:if(u=l.memoizedState!==null||Rr,!u){a=a!==null&&a.memoizedState!==null||vt,p=Rr;var v=vt;Rr=u,(vt=a)&&!v?Zr(t,l,(l.subtreeFlags&8772)!==0):Qr(t,l),Rr=p,vt=v}break;case 30:break;default:Qr(t,l)}}function ov(t){var a=t.alternate;a!==null&&(t.alternate=null,ov(a)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(a=t.stateNode,a!==null&&Bc(a)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var ut=null,rn=!1;function _r(t,a,l){for(l=l.child;l!==null;)sv(t,a,l),l=l.sibling}function sv(t,a,l){if(ue&&typeof ue.onCommitFiberUnmount=="function")try{ue.onCommitFiberUnmount(W,l)}catch{}switch(l.tag){case 26:vt||rr(l,a),_r(t,a,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:vt||rr(l,a);var u=ut,p=rn;ra(l.type)&&(ut=l.stateNode,rn=!1),_r(t,a,l),Jl(l.stateNode),ut=u,rn=p;break;case 5:vt||rr(l,a);case 6:if(u=ut,p=rn,ut=null,_r(t,a,l),ut=u,rn=p,ut!==null)if(rn)try{(ut.nodeType===9?ut.body:ut.nodeName==="HTML"?ut.ownerDocument.body:ut).removeChild(l.stateNode)}catch(v){rt(l,a,v)}else try{ut.removeChild(l.stateNode)}catch(v){rt(l,a,v)}break;case 18:ut!==null&&(rn?(t=ut,Qv(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,l.stateNode),oo(t)):Qv(ut,l.stateNode));break;case 4:u=ut,p=rn,ut=l.stateNode.containerInfo,rn=!0,_r(t,a,l),ut=u,rn=p;break;case 0:case 11:case 14:case 15:vt||Xr(2,l,a),vt||Xr(4,l,a),_r(t,a,l);break;case 1:vt||(rr(l,a),u=l.stateNode,typeof u.componentWillUnmount=="function"&&tv(l,a,u)),_r(t,a,l);break;case 21:_r(t,a,l);break;case 22:vt=(u=vt)||l.memoizedState!==null,_r(t,a,l),vt=u;break;default:_r(t,a,l)}}function uv(t,a){if(a.memoizedState===null&&(t=a.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{oo(t)}catch(l){rt(a,a.return,l)}}function I2(t){switch(t.tag){case 13:case 19:var a=t.stateNode;return a===null&&(a=t.stateNode=new iv),a;case 22:return t=t.stateNode,a=t._retryCache,a===null&&(a=t._retryCache=new iv),a;default:throw Error(i(435,t.tag))}}function sd(t,a){var l=I2(t);a.forEach(function(u){var p=Y2.bind(null,t,u);l.has(u)||(l.add(u),u.then(p,p))})}function dn(t,a){var l=a.deletions;if(l!==null)for(var u=0;u<l.length;u++){var p=l[u],v=t,S=a,R=S;e:for(;R!==null;){switch(R.tag){case 27:if(ra(R.type)){ut=R.stateNode,rn=!1;break e}break;case 5:ut=R.stateNode,rn=!1;break e;case 3:case 4:ut=R.stateNode.containerInfo,rn=!0;break e}R=R.return}if(ut===null)throw Error(i(160));sv(v,S,p),ut=null,rn=!1,v=p.alternate,v!==null&&(v.return=null),p.return=null}if(a.subtreeFlags&13878)for(a=a.child;a!==null;)cv(a,t),a=a.sibling}var Fn=null;function cv(t,a){var l=t.alternate,u=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:dn(a,t),hn(t),u&4&&(Xr(3,t,t.return),ql(3,t),Xr(5,t,t.return));break;case 1:dn(a,t),hn(t),u&512&&(vt||l===null||rr(l,l.return)),u&64&&Rr&&(t=t.updateQueue,t!==null&&(u=t.callbacks,u!==null&&(l=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=l===null?u:l.concat(u))));break;case 26:var p=Fn;if(dn(a,t),hn(t),u&512&&(vt||l===null||rr(l,l.return)),u&4){var v=l!==null?l.memoizedState:null;if(u=t.memoizedState,l===null)if(u===null)if(t.stateNode===null){e:{u=t.type,l=t.memoizedProps,p=p.ownerDocument||p;t:switch(u){case"title":v=p.getElementsByTagName("title")[0],(!v||v[pl]||v[st]||v.namespaceURI==="http://www.w3.org/2000/svg"||v.hasAttribute("itemprop"))&&(v=p.createElement(u),p.head.insertBefore(v,p.querySelector("head > title"))),Pt(v,u,l),v[st]=t,_t(v),u=v;break e;case"link":var S=ax("link","href",p).get(u+(l.href||""));if(S){for(var R=0;R<S.length;R++)if(v=S[R],v.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&v.getAttribute("rel")===(l.rel==null?null:l.rel)&&v.getAttribute("title")===(l.title==null?null:l.title)&&v.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){S.splice(R,1);break t}}v=p.createElement(u),Pt(v,u,l),p.head.appendChild(v);break;case"meta":if(S=ax("meta","content",p).get(u+(l.content||""))){for(R=0;R<S.length;R++)if(v=S[R],v.getAttribute("content")===(l.content==null?null:""+l.content)&&v.getAttribute("name")===(l.name==null?null:l.name)&&v.getAttribute("property")===(l.property==null?null:l.property)&&v.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&v.getAttribute("charset")===(l.charSet==null?null:l.charSet)){S.splice(R,1);break t}}v=p.createElement(u),Pt(v,u,l),p.head.appendChild(v);break;default:throw Error(i(468,u))}v[st]=t,_t(v),u=v}t.stateNode=u}else ix(p,t.type,t.stateNode);else t.stateNode=rx(p,u,t.memoizedProps);else v!==u?(v===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):v.count--,u===null?ix(p,t.type,t.stateNode):rx(p,u,t.memoizedProps)):u===null&&t.stateNode!==null&&ad(t,t.memoizedProps,l.memoizedProps)}break;case 27:dn(a,t),hn(t),u&512&&(vt||l===null||rr(l,l.return)),l!==null&&u&4&&ad(t,t.memoizedProps,l.memoizedProps);break;case 5:if(dn(a,t),hn(t),u&512&&(vt||l===null||rr(l,l.return)),t.flags&32){p=t.stateNode;try{oi(p,"")}catch(Y){rt(t,t.return,Y)}}u&4&&t.stateNode!=null&&(p=t.memoizedProps,ad(t,p,l!==null?l.memoizedProps:p)),u&1024&&(od=!0);break;case 6:if(dn(a,t),hn(t),u&4){if(t.stateNode===null)throw Error(i(162));u=t.memoizedProps,l=t.stateNode;try{l.nodeValue=u}catch(Y){rt(t,t.return,Y)}}break;case 3:if(su=null,p=Fn,Fn=lu(a.containerInfo),dn(a,t),Fn=p,hn(t),u&4&&l!==null&&l.memoizedState.isDehydrated)try{oo(a.containerInfo)}catch(Y){rt(t,t.return,Y)}od&&(od=!1,fv(t));break;case 4:u=Fn,Fn=lu(t.stateNode.containerInfo),dn(a,t),hn(t),Fn=u;break;case 12:dn(a,t),hn(t);break;case 13:dn(a,t),hn(t),t.child.flags&8192&&t.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(pd=Dt()),u&4&&(u=t.updateQueue,u!==null&&(t.updateQueue=null,sd(t,u)));break;case 22:p=t.memoizedState!==null;var D=l!==null&&l.memoizedState!==null,q=Rr,te=vt;if(Rr=q||p,vt=te||D,dn(a,t),vt=te,Rr=q,hn(t),u&8192)e:for(a=t.stateNode,a._visibility=p?a._visibility&-2:a._visibility|1,p&&(l===null||D||Rr||vt||Pa(t)),l=null,a=t;;){if(a.tag===5||a.tag===26){if(l===null){D=l=a;try{if(v=D.stateNode,p)S=v.style,typeof S.setProperty=="function"?S.setProperty("display","none","important"):S.display="none";else{R=D.stateNode;var ie=D.memoizedProps.style,V=ie!=null&&ie.hasOwnProperty("display")?ie.display:null;R.style.display=V==null||typeof V=="boolean"?"":(""+V).trim()}}catch(Y){rt(D,D.return,Y)}}}else if(a.tag===6){if(l===null){D=a;try{D.stateNode.nodeValue=p?"":D.memoizedProps}catch(Y){rt(D,D.return,Y)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===t)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===t)break e;for(;a.sibling===null;){if(a.return===null||a.return===t)break e;l===a&&(l=null),a=a.return}l===a&&(l=null),a.sibling.return=a.return,a=a.sibling}u&4&&(u=t.updateQueue,u!==null&&(l=u.retryQueue,l!==null&&(u.retryQueue=null,sd(t,l))));break;case 19:dn(a,t),hn(t),u&4&&(u=t.updateQueue,u!==null&&(t.updateQueue=null,sd(t,u)));break;case 30:break;case 21:break;default:dn(a,t),hn(t)}}function hn(t){var a=t.flags;if(a&2){try{for(var l,u=t.return;u!==null;){if(rv(u)){l=u;break}u=u.return}if(l==null)throw Error(i(160));switch(l.tag){case 27:var p=l.stateNode,v=id(t);Ys(t,v,p);break;case 5:var S=l.stateNode;l.flags&32&&(oi(S,""),l.flags&=-33);var R=id(t);Ys(t,R,S);break;case 3:case 4:var D=l.stateNode.containerInfo,q=id(t);ld(t,q,D);break;default:throw Error(i(161))}}catch(te){rt(t,t.return,te)}t.flags&=-3}a&4096&&(t.flags&=-4097)}function fv(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var a=t;fv(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),t=t.sibling}}function Qr(t,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)lv(t,a.alternate,a),a=a.sibling}function Pa(t){for(t=t.child;t!==null;){var a=t;switch(a.tag){case 0:case 11:case 14:case 15:Xr(4,a,a.return),Pa(a);break;case 1:rr(a,a.return);var l=a.stateNode;typeof l.componentWillUnmount=="function"&&tv(a,a.return,l),Pa(a);break;case 27:Jl(a.stateNode);case 26:case 5:rr(a,a.return),Pa(a);break;case 22:a.memoizedState===null&&Pa(a);break;case 30:Pa(a);break;default:Pa(a)}t=t.sibling}}function Zr(t,a,l){for(l=l&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var u=a.alternate,p=t,v=a,S=v.flags;switch(v.tag){case 0:case 11:case 15:Zr(p,v,l),ql(4,v);break;case 1:if(Zr(p,v,l),u=v,p=u.stateNode,typeof p.componentDidMount=="function")try{p.componentDidMount()}catch(q){rt(u,u.return,q)}if(u=v,p=u.updateQueue,p!==null){var R=u.stateNode;try{var D=p.shared.hiddenCallbacks;if(D!==null)for(p.shared.hiddenCallbacks=null,p=0;p<D.length;p++)Ug(D[p],R)}catch(q){rt(u,u.return,q)}}l&&S&64&&ev(v),Vl(v,v.return);break;case 27:av(v);case 26:case 5:Zr(p,v,l),l&&u===null&&S&4&&nv(v),Vl(v,v.return);break;case 12:Zr(p,v,l);break;case 13:Zr(p,v,l),l&&S&4&&uv(p,v);break;case 22:v.memoizedState===null&&Zr(p,v,l),Vl(v,v.return);break;case 30:break;default:Zr(p,v,l)}a=a.sibling}}function ud(t,a){var l=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),t=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(t=a.memoizedState.cachePool.pool),t!==l&&(t!=null&&t.refCount++,l!=null&&_l(l))}function cd(t,a){t=null,a.alternate!==null&&(t=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==t&&(a.refCount++,t!=null&&_l(t))}function ar(t,a,l,u){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)dv(t,a,l,u),a=a.sibling}function dv(t,a,l,u){var p=a.flags;switch(a.tag){case 0:case 11:case 15:ar(t,a,l,u),p&2048&&ql(9,a);break;case 1:ar(t,a,l,u);break;case 3:ar(t,a,l,u),p&2048&&(t=null,a.alternate!==null&&(t=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==t&&(a.refCount++,t!=null&&_l(t)));break;case 12:if(p&2048){ar(t,a,l,u),t=a.stateNode;try{var v=a.memoizedProps,S=v.id,R=v.onPostCommit;typeof R=="function"&&R(S,a.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(D){rt(a,a.return,D)}}else ar(t,a,l,u);break;case 13:ar(t,a,l,u);break;case 23:break;case 22:v=a.stateNode,S=a.alternate,a.memoizedState!==null?v._visibility&2?ar(t,a,l,u):$l(t,a):v._visibility&2?ar(t,a,l,u):(v._visibility|=2,Ai(t,a,l,u,(a.subtreeFlags&10256)!==0)),p&2048&&ud(S,a);break;case 24:ar(t,a,l,u),p&2048&&cd(a.alternate,a);break;default:ar(t,a,l,u)}}function Ai(t,a,l,u,p){for(p=p&&(a.subtreeFlags&10256)!==0,a=a.child;a!==null;){var v=t,S=a,R=l,D=u,q=S.flags;switch(S.tag){case 0:case 11:case 15:Ai(v,S,R,D,p),ql(8,S);break;case 23:break;case 22:var te=S.stateNode;S.memoizedState!==null?te._visibility&2?Ai(v,S,R,D,p):$l(v,S):(te._visibility|=2,Ai(v,S,R,D,p)),p&&q&2048&&ud(S.alternate,S);break;case 24:Ai(v,S,R,D,p),p&&q&2048&&cd(S.alternate,S);break;default:Ai(v,S,R,D,p)}a=a.sibling}}function $l(t,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var l=t,u=a,p=u.flags;switch(u.tag){case 22:$l(l,u),p&2048&&ud(u.alternate,u);break;case 24:$l(l,u),p&2048&&cd(u.alternate,u);break;default:$l(l,u)}a=a.sibling}}var Gl=8192;function Ti(t){if(t.subtreeFlags&Gl)for(t=t.child;t!==null;)hv(t),t=t.sibling}function hv(t){switch(t.tag){case 26:Ti(t),t.flags&Gl&&t.memoizedState!==null&&EA(Fn,t.memoizedState,t.memoizedProps);break;case 5:Ti(t);break;case 3:case 4:var a=Fn;Fn=lu(t.stateNode.containerInfo),Ti(t),Fn=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=Gl,Gl=16777216,Ti(t),Gl=a):Ti(t));break;default:Ti(t)}}function pv(t){var a=t.alternate;if(a!==null&&(t=a.child,t!==null)){a.child=null;do a=t.sibling,t.sibling=null,t=a;while(t!==null)}}function Yl(t){var a=t.deletions;if((t.flags&16)!==0){if(a!==null)for(var l=0;l<a.length;l++){var u=a[l];Mt=u,gv(u,t)}pv(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)mv(t),t=t.sibling}function mv(t){switch(t.tag){case 0:case 11:case 15:Yl(t),t.flags&2048&&Xr(9,t,t.return);break;case 3:Yl(t);break;case 12:Yl(t);break;case 22:var a=t.stateNode;t.memoizedState!==null&&a._visibility&2&&(t.return===null||t.return.tag!==13)?(a._visibility&=-3,Ks(t)):Yl(t);break;default:Yl(t)}}function Ks(t){var a=t.deletions;if((t.flags&16)!==0){if(a!==null)for(var l=0;l<a.length;l++){var u=a[l];Mt=u,gv(u,t)}pv(t)}for(t=t.child;t!==null;){switch(a=t,a.tag){case 0:case 11:case 15:Xr(8,a,a.return),Ks(a);break;case 22:l=a.stateNode,l._visibility&2&&(l._visibility&=-3,Ks(a));break;default:Ks(a)}t=t.sibling}}function gv(t,a){for(;Mt!==null;){var l=Mt;switch(l.tag){case 0:case 11:case 15:Xr(8,l,a);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var u=l.memoizedState.cachePool.pool;u!=null&&u.refCount++}break;case 24:_l(l.memoizedState.cache)}if(u=l.child,u!==null)u.return=l,Mt=u;else e:for(l=t;Mt!==null;){u=Mt;var p=u.sibling,v=u.return;if(ov(u),u===l){Mt=null;break e}if(p!==null){p.return=v,Mt=p;break e}Mt=v}}}var B2={getCacheForType:function(t){var a=Ft(kt),l=a.data.get(t);return l===void 0&&(l=t(),a.data.set(t,l)),l}},U2=typeof WeakMap=="function"?WeakMap:Map,Ze=0,it=null,Be=null,qe=0,We=0,pn=null,Wr=!1,Ri=!1,fd=!1,Nr=0,ht=0,Jr=0,Ia=0,dd=0,Nn=0,_i=0,Kl=null,an=null,hd=!1,pd=0,Xs=1/0,Qs=null,ea=null,zt=0,ta=null,Ni=null,Mi=0,md=0,gd=null,yv=null,Xl=0,yd=null;function mn(){if((Ze&2)!==0&&qe!==0)return qe&-qe;if(L.T!==null){var t=vi;return t!==0?t:Cd()}return In()}function vv(){Nn===0&&(Nn=(qe&536870912)===0||Ke?de():536870912);var t=_n.current;return t!==null&&(t.flags|=32),Nn}function gn(t,a,l){(t===it&&(We===2||We===9)||t.cancelPendingCommit!==null)&&(ji(t,0),na(t,qe,Nn,!1)),_e(t,l),((Ze&2)===0||t!==it)&&(t===it&&((Ze&2)===0&&(Ia|=l),ht===4&&na(t,qe,Nn,!1)),ir(t))}function xv(t,a,l){if((Ze&6)!==0)throw Error(i(327));var u=!l&&(a&124)===0&&(a&t.expiredLanes)===0||Ut(t,a),p=u?q2(t,a):bd(t,a,!0),v=u;do{if(p===0){Ri&&!u&&na(t,a,0,!1);break}else{if(l=t.current.alternate,v&&!H2(l)){p=bd(t,a,!1),v=!1;continue}if(p===2){if(v=a,t.errorRecoveryDisabledLanes&v)var S=0;else S=t.pendingLanes&-536870913,S=S!==0?S:S&536870912?536870912:0;if(S!==0){a=S;e:{var R=t;p=Kl;var D=R.current.memoizedState.isDehydrated;if(D&&(ji(R,S).flags|=256),S=bd(R,S,!1),S!==2){if(fd&&!D){R.errorRecoveryDisabledLanes|=v,Ia|=v,p=4;break e}v=an,an=p,v!==null&&(an===null?an=v:an.push.apply(an,v))}p=S}if(v=!1,p!==2)continue}}if(p===1){ji(t,0),na(t,a,0,!0);break}e:{switch(u=t,v=p,v){case 0:case 1:throw Error(i(345));case 4:if((a&4194048)!==a)break;case 6:na(u,a,Nn,!Wr);break e;case 2:an=null;break;case 3:case 5:break;default:throw Error(i(329))}if((a&62914560)===a&&(p=pd+300-Dt(),10<p)){if(na(u,a,Nn,!Wr),mt(u,0,!0)!==0)break e;u.timeoutHandle=Kv(bv.bind(null,u,l,an,Qs,hd,a,Nn,Ia,_i,Wr,v,2,-0,0),p);break e}bv(u,l,an,Qs,hd,a,Nn,Ia,_i,Wr,v,0,-0,0)}}break}while(!0);ir(t)}function bv(t,a,l,u,p,v,S,R,D,q,te,ie,V,Y){if(t.timeoutHandle=-1,ie=a.subtreeFlags,(ie&8192||(ie&16785408)===16785408)&&(no={stylesheets:null,count:0,unsuspend:SA},hv(a),ie=CA(),ie!==null)){t.cancelPendingCommit=ie(Tv.bind(null,t,a,v,l,u,p,S,R,D,te,1,V,Y)),na(t,v,S,!q);return}Tv(t,a,v,l,u,p,S,R,D)}function H2(t){for(var a=t;;){var l=a.tag;if((l===0||l===11||l===15)&&a.flags&16384&&(l=a.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var u=0;u<l.length;u++){var p=l[u],v=p.getSnapshot;p=p.value;try{if(!cn(v(),p))return!1}catch{return!1}}if(l=a.child,a.subtreeFlags&16384&&l!==null)l.return=a,a=l;else{if(a===t)break;for(;a.sibling===null;){if(a.return===null||a.return===t)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function na(t,a,l,u){a&=~dd,a&=~Ia,t.suspendedLanes|=a,t.pingedLanes&=~a,u&&(t.warmLanes|=a),u=t.expirationTimes;for(var p=a;0<p;){var v=31-Re(p),S=1<<v;u[v]=-1,p&=~S}l!==0&&Ht(t,l,a)}function Zs(){return(Ze&6)===0?(Ql(0),!1):!0}function vd(){if(Be!==null){if(We===0)var t=Be.return;else t=Be,Sr=ja=null,Lf(t),Ci=null,Ul=0,t=Be;for(;t!==null;)Jy(t.alternate,t),t=t.return;Be=null}}function ji(t,a){var l=t.timeoutHandle;l!==-1&&(t.timeoutHandle=-1,iA(l)),l=t.cancelPendingCommit,l!==null&&(t.cancelPendingCommit=null,l()),vd(),it=t,Be=l=xr(t.current,null),qe=a,We=0,pn=null,Wr=!1,Ri=Ut(t,a),fd=!1,_i=Nn=dd=Ia=Jr=ht=0,an=Kl=null,hd=!1,(a&8)!==0&&(a|=a&32);var u=t.entangledLanes;if(u!==0)for(t=t.entanglements,u&=a;0<u;){var p=31-Re(u),v=1<<p;a|=t[p],u&=~v}return Nr=a,xs(),l}function wv(t,a){ze=null,L.H=Is,a===Ml||a===Rs?(a=Ig(),We=3):a===Lg?(a=Ig(),We=4):We=a===By?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,pn=a,Be===null&&(ht=1,qs(t,kn(a,t.current)))}function Sv(){var t=L.H;return L.H=Is,t===null?Is:t}function Ev(){var t=L.A;return L.A=B2,t}function xd(){ht=4,Wr||(qe&4194048)!==qe&&_n.current!==null||(Ri=!0),(Jr&134217727)===0&&(Ia&134217727)===0||it===null||na(it,qe,Nn,!1)}function bd(t,a,l){var u=Ze;Ze|=2;var p=Sv(),v=Ev();(it!==t||qe!==a)&&(Qs=null,ji(t,a)),a=!1;var S=ht;e:do try{if(We!==0&&Be!==null){var R=Be,D=pn;switch(We){case 8:vd(),S=6;break e;case 3:case 2:case 9:case 6:_n.current===null&&(a=!0);var q=We;if(We=0,pn=null,Di(t,R,D,q),l&&Ri){S=0;break e}break;default:q=We,We=0,pn=null,Di(t,R,D,q)}}F2(),S=ht;break}catch(te){wv(t,te)}while(!0);return a&&t.shellSuspendCounter++,Sr=ja=null,Ze=u,L.H=p,L.A=v,Be===null&&(it=null,qe=0,xs()),S}function F2(){for(;Be!==null;)Cv(Be)}function q2(t,a){var l=Ze;Ze|=2;var u=Sv(),p=Ev();it!==t||qe!==a?(Qs=null,Xs=Dt()+500,ji(t,a)):Ri=Ut(t,a);e:do try{if(We!==0&&Be!==null){a=Be;var v=pn;t:switch(We){case 1:We=0,pn=null,Di(t,a,v,1);break;case 2:case 9:if(zg(v)){We=0,pn=null,kv(a);break}a=function(){We!==2&&We!==9||it!==t||(We=7),ir(t)},v.then(a,a);break e;case 3:We=7;break e;case 4:We=5;break e;case 7:zg(v)?(We=0,pn=null,kv(a)):(We=0,pn=null,Di(t,a,v,7));break;case 5:var S=null;switch(Be.tag){case 26:S=Be.memoizedState;case 5:case 27:var R=Be;if(!S||lx(S)){We=0,pn=null;var D=R.sibling;if(D!==null)Be=D;else{var q=R.return;q!==null?(Be=q,Ws(q)):Be=null}break t}}We=0,pn=null,Di(t,a,v,5);break;case 6:We=0,pn=null,Di(t,a,v,6);break;case 8:vd(),ht=6;break e;default:throw Error(i(462))}}V2();break}catch(te){wv(t,te)}while(!0);return Sr=ja=null,L.H=u,L.A=p,Ze=l,Be!==null?0:(it=null,qe=0,xs(),ht)}function V2(){for(;Be!==null&&!Wn();)Cv(Be)}function Cv(t){var a=Zy(t.alternate,t,Nr);t.memoizedProps=t.pendingProps,a===null?Ws(t):Be=a}function kv(t){var a=t,l=a.alternate;switch(a.tag){case 15:case 0:a=$y(l,a,a.pendingProps,a.type,void 0,qe);break;case 11:a=$y(l,a,a.pendingProps,a.type.render,a.ref,qe);break;case 5:Lf(a);default:Jy(l,a),a=Be=Ag(a,Nr),a=Zy(l,a,Nr)}t.memoizedProps=t.pendingProps,a===null?Ws(t):Be=a}function Di(t,a,l,u){Sr=ja=null,Lf(a),Ci=null,Ul=0;var p=a.return;try{if(D2(t,p,a,l,qe)){ht=1,qs(t,kn(l,t.current)),Be=null;return}}catch(v){if(p!==null)throw Be=p,v;ht=1,qs(t,kn(l,t.current)),Be=null;return}a.flags&32768?(Ke||u===1?t=!0:Ri||(qe&536870912)!==0?t=!1:(Wr=t=!0,(u===2||u===9||u===3||u===6)&&(u=_n.current,u!==null&&u.tag===13&&(u.flags|=16384))),Av(a,t)):Ws(a)}function Ws(t){var a=t;do{if((a.flags&32768)!==0){Av(a,Wr);return}t=a.return;var l=L2(a.alternate,a,Nr);if(l!==null){Be=l;return}if(a=a.sibling,a!==null){Be=a;return}Be=a=t}while(a!==null);ht===0&&(ht=5)}function Av(t,a){do{var l=z2(t.alternate,t);if(l!==null){l.flags&=32767,Be=l;return}if(l=t.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!a&&(t=t.sibling,t!==null)){Be=t;return}Be=t=l}while(t!==null);ht=6,Be=null}function Tv(t,a,l,u,p,v,S,R,D){t.cancelPendingCommit=null;do Js();while(zt!==0);if((Ze&6)!==0)throw Error(i(327));if(a!==null){if(a===t.current)throw Error(i(177));if(v=a.lanes|a.childLanes,v|=cf,Je(t,l,v,S,R,D),t===it&&(Be=it=null,qe=0),Ni=a,ta=t,Mi=l,md=v,gd=p,yv=u,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,K2(mr,function(){return jv(),null})):(t.callbackNode=null,t.callbackPriority=0),u=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||u){u=L.T,L.T=null,p=K.p,K.p=2,S=Ze,Ze|=4;try{P2(t,a,l)}finally{Ze=S,K.p=p,L.T=u}}zt=1,Rv(),_v(),Nv()}}function Rv(){if(zt===1){zt=0;var t=ta,a=Ni,l=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||l){l=L.T,L.T=null;var u=K.p;K.p=2;var p=Ze;Ze|=4;try{cv(a,t);var v=jd,S=gg(t.containerInfo),R=v.focusedElem,D=v.selectionRange;if(S!==R&&R&&R.ownerDocument&&mg(R.ownerDocument.documentElement,R)){if(D!==null&&af(R)){var q=D.start,te=D.end;if(te===void 0&&(te=q),"selectionStart"in R)R.selectionStart=q,R.selectionEnd=Math.min(te,R.value.length);else{var ie=R.ownerDocument||document,V=ie&&ie.defaultView||window;if(V.getSelection){var Y=V.getSelection(),je=R.textContent.length,Ne=Math.min(D.start,je),nt=D.end===void 0?Ne:Math.min(D.end,je);!Y.extend&&Ne>nt&&(S=nt,nt=Ne,Ne=S);var B=pg(R,Ne),I=pg(R,nt);if(B&&I&&(Y.rangeCount!==1||Y.anchorNode!==B.node||Y.anchorOffset!==B.offset||Y.focusNode!==I.node||Y.focusOffset!==I.offset)){var F=ie.createRange();F.setStart(B.node,B.offset),Y.removeAllRanges(),Ne>nt?(Y.addRange(F),Y.extend(I.node,I.offset)):(F.setEnd(I.node,I.offset),Y.addRange(F))}}}}for(ie=[],Y=R;Y=Y.parentNode;)Y.nodeType===1&&ie.push({element:Y,left:Y.scrollLeft,top:Y.scrollTop});for(typeof R.focus=="function"&&R.focus(),R=0;R<ie.length;R++){var re=ie[R];re.element.scrollLeft=re.left,re.element.scrollTop=re.top}}fu=!!Md,jd=Md=null}finally{Ze=p,K.p=u,L.T=l}}t.current=a,zt=2}}function _v(){if(zt===2){zt=0;var t=ta,a=Ni,l=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||l){l=L.T,L.T=null;var u=K.p;K.p=2;var p=Ze;Ze|=4;try{lv(t,a.alternate,a)}finally{Ze=p,K.p=u,L.T=l}}zt=3}}function Nv(){if(zt===4||zt===3){zt=0,Jn();var t=ta,a=Ni,l=Mi,u=yv;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?zt=5:(zt=0,Ni=ta=null,Mv(t,t.pendingLanes));var p=t.pendingLanes;if(p===0&&(ea=null),en(l),a=a.stateNode,ue&&typeof ue.onCommitFiberRoot=="function")try{ue.onCommitFiberRoot(W,a,void 0,(a.current.flags&128)===128)}catch{}if(u!==null){a=L.T,p=K.p,K.p=2,L.T=null;try{for(var v=t.onRecoverableError,S=0;S<u.length;S++){var R=u[S];v(R.value,{componentStack:R.stack})}}finally{L.T=a,K.p=p}}(Mi&3)!==0&&Js(),ir(t),p=t.pendingLanes,(l&4194090)!==0&&(p&42)!==0?t===yd?Xl++:(Xl=0,yd=t):Xl=0,Ql(0)}}function Mv(t,a){(t.pooledCacheLanes&=a)===0&&(a=t.pooledCache,a!=null&&(t.pooledCache=null,_l(a)))}function Js(t){return Rv(),_v(),Nv(),jv()}function jv(){if(zt!==5)return!1;var t=ta,a=md;md=0;var l=en(Mi),u=L.T,p=K.p;try{K.p=32>l?32:l,L.T=null,l=gd,gd=null;var v=ta,S=Mi;if(zt=0,Ni=ta=null,Mi=0,(Ze&6)!==0)throw Error(i(331));var R=Ze;if(Ze|=4,mv(v.current),dv(v,v.current,S,l),Ze=R,Ql(0,!1),ue&&typeof ue.onPostCommitFiberRoot=="function")try{ue.onPostCommitFiberRoot(W,v)}catch{}return!0}finally{K.p=p,L.T=u,Mv(t,a)}}function Dv(t,a,l){a=kn(l,a),a=Xf(t.stateNode,a,2),t=$r(t,a,2),t!==null&&(_e(t,2),ir(t))}function rt(t,a,l){if(t.tag===3)Dv(t,t,l);else for(;a!==null;){if(a.tag===3){Dv(a,t,l);break}else if(a.tag===1){var u=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(ea===null||!ea.has(u))){t=kn(l,t),l=Py(2),u=$r(a,l,2),u!==null&&(Iy(l,u,a,t),_e(u,2),ir(u));break}}a=a.return}}function wd(t,a,l){var u=t.pingCache;if(u===null){u=t.pingCache=new U2;var p=new Set;u.set(a,p)}else p=u.get(a),p===void 0&&(p=new Set,u.set(a,p));p.has(l)||(fd=!0,p.add(l),t=$2.bind(null,t,a,l),a.then(t,t))}function $2(t,a,l){var u=t.pingCache;u!==null&&u.delete(a),t.pingedLanes|=t.suspendedLanes&l,t.warmLanes&=~l,it===t&&(qe&l)===l&&(ht===4||ht===3&&(qe&62914560)===qe&&300>Dt()-pd?(Ze&2)===0&&ji(t,0):dd|=l,_i===qe&&(_i=0)),ir(t)}function Ov(t,a){a===0&&(a=pe()),t=pi(t,a),t!==null&&(_e(t,a),ir(t))}function G2(t){var a=t.memoizedState,l=0;a!==null&&(l=a.retryLane),Ov(t,l)}function Y2(t,a){var l=0;switch(t.tag){case 13:var u=t.stateNode,p=t.memoizedState;p!==null&&(l=p.retryLane);break;case 19:u=t.stateNode;break;case 22:u=t.stateNode._retryCache;break;default:throw Error(i(314))}u!==null&&u.delete(a),Ov(t,l)}function K2(t,a){return Yt(t,a)}var eu=null,Oi=null,Sd=!1,tu=!1,Ed=!1,Ba=0;function ir(t){t!==Oi&&t.next===null&&(Oi===null?eu=Oi=t:Oi=Oi.next=t),tu=!0,Sd||(Sd=!0,Q2())}function Ql(t,a){if(!Ed&&tu){Ed=!0;do for(var l=!1,u=eu;u!==null;){if(t!==0){var p=u.pendingLanes;if(p===0)var v=0;else{var S=u.suspendedLanes,R=u.pingedLanes;v=(1<<31-Re(42|t)+1)-1,v&=p&~(S&~R),v=v&201326741?v&201326741|1:v?v|2:0}v!==0&&(l=!0,Iv(u,v))}else v=qe,v=mt(u,u===it?v:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(v&3)===0||Ut(u,v)||(l=!0,Iv(u,v));u=u.next}while(l);Ed=!1}}function X2(){Lv()}function Lv(){tu=Sd=!1;var t=0;Ba!==0&&(aA()&&(t=Ba),Ba=0);for(var a=Dt(),l=null,u=eu;u!==null;){var p=u.next,v=zv(u,a);v===0?(u.next=null,l===null?eu=p:l.next=p,p===null&&(Oi=l)):(l=u,(t!==0||(v&3)!==0)&&(tu=!0)),u=p}Ql(t)}function zv(t,a){for(var l=t.suspendedLanes,u=t.pingedLanes,p=t.expirationTimes,v=t.pendingLanes&-62914561;0<v;){var S=31-Re(v),R=1<<S,D=p[S];D===-1?((R&l)===0||(R&u)!==0)&&(p[S]=X(R,a)):D<=a&&(t.expiredLanes|=R),v&=~R}if(a=it,l=qe,l=mt(t,t===a?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),u=t.callbackNode,l===0||t===a&&(We===2||We===9)||t.cancelPendingCommit!==null)return u!==null&&u!==null&&ba(u),t.callbackNode=null,t.callbackPriority=0;if((l&3)===0||Ut(t,l)){if(a=l&-l,a===t.callbackPriority)return a;switch(u!==null&&ba(u),en(l)){case 2:case 8:l=wn;break;case 32:l=mr;break;case 268435456:l=wa;break;default:l=mr}return u=Pv.bind(null,t),l=Yt(l,u),t.callbackPriority=a,t.callbackNode=l,a}return u!==null&&u!==null&&ba(u),t.callbackPriority=2,t.callbackNode=null,2}function Pv(t,a){if(zt!==0&&zt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var l=t.callbackNode;if(Js()&&t.callbackNode!==l)return null;var u=qe;return u=mt(t,t===it?u:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),u===0?null:(xv(t,u,a),zv(t,Dt()),t.callbackNode!=null&&t.callbackNode===l?Pv.bind(null,t):null)}function Iv(t,a){if(Js())return null;xv(t,a,!0)}function Q2(){lA(function(){(Ze&6)!==0?Yt(Jt,X2):Lv()})}function Cd(){return Ba===0&&(Ba=de()),Ba}function Bv(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:ds(""+t)}function Uv(t,a){var l=a.ownerDocument.createElement("input");return l.name=a.name,l.value=a.value,t.id&&l.setAttribute("form",t.id),a.parentNode.insertBefore(l,a),t=new FormData(t),l.parentNode.removeChild(l),t}function Z2(t,a,l,u,p){if(a==="submit"&&l&&l.stateNode===p){var v=Bv((p[gt]||null).action),S=u.submitter;S&&(a=(a=S[gt]||null)?Bv(a.formAction):S.getAttribute("formAction"),a!==null&&(v=a,S=null));var R=new gs("action","action",null,u,p);t.push({event:R,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(Ba!==0){var D=S?Uv(p,S):new FormData(p);Vf(l,{pending:!0,data:D,method:p.method,action:v},null,D)}}else typeof v=="function"&&(R.preventDefault(),D=S?Uv(p,S):new FormData(p),Vf(l,{pending:!0,data:D,method:p.method,action:v},v,D))},currentTarget:p}]})}}for(var kd=0;kd<uf.length;kd++){var Ad=uf[kd],W2=Ad.toLowerCase(),J2=Ad[0].toUpperCase()+Ad.slice(1);Hn(W2,"on"+J2)}Hn(xg,"onAnimationEnd"),Hn(bg,"onAnimationIteration"),Hn(wg,"onAnimationStart"),Hn("dblclick","onDoubleClick"),Hn("focusin","onFocus"),Hn("focusout","onBlur"),Hn(g2,"onTransitionRun"),Hn(y2,"onTransitionStart"),Hn(v2,"onTransitionCancel"),Hn(Sg,"onTransitionEnd"),ai("onMouseEnter",["mouseout","mouseover"]),ai("onMouseLeave",["mouseout","mouseover"]),ai("onPointerEnter",["pointerout","pointerover"]),ai("onPointerLeave",["pointerout","pointerover"]),Ea("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ea("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ea("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ea("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ea("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ea("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Zl="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(" "),eA=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Zl));function Hv(t,a){a=(a&4)!==0;for(var l=0;l<t.length;l++){var u=t[l],p=u.event;u=u.listeners;e:{var v=void 0;if(a)for(var S=u.length-1;0<=S;S--){var R=u[S],D=R.instance,q=R.currentTarget;if(R=R.listener,D!==v&&p.isPropagationStopped())break e;v=R,p.currentTarget=q;try{v(p)}catch(te){Fs(te)}p.currentTarget=null,v=D}else for(S=0;S<u.length;S++){if(R=u[S],D=R.instance,q=R.currentTarget,R=R.listener,D!==v&&p.isPropagationStopped())break e;v=R,p.currentTarget=q;try{v(p)}catch(te){Fs(te)}p.currentTarget=null,v=D}}}}function Ue(t,a){var l=a[Un];l===void 0&&(l=a[Un]=new Set);var u=t+"__bubble";l.has(u)||(Fv(a,t,2,!1),l.add(u))}function Td(t,a,l){var u=0;a&&(u|=4),Fv(l,t,u,a)}var nu="_reactListening"+Math.random().toString(36).slice(2);function Rd(t){if(!t[nu]){t[nu]=!0,Lm.forEach(function(l){l!=="selectionchange"&&(eA.has(l)||Td(l,!1,t),Td(l,!0,t))});var a=t.nodeType===9?t:t.ownerDocument;a===null||a[nu]||(a[nu]=!0,Td("selectionchange",!1,a))}}function Fv(t,a,l,u){switch(dx(a)){case 2:var p=TA;break;case 8:p=RA;break;default:p=Fd}l=p.bind(null,a,l,t),p=void 0,!Xc||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(p=!0),u?p!==void 0?t.addEventListener(a,l,{capture:!0,passive:p}):t.addEventListener(a,l,!0):p!==void 0?t.addEventListener(a,l,{passive:p}):t.addEventListener(a,l,!1)}function _d(t,a,l,u,p){var v=u;if((a&1)===0&&(a&2)===0&&u!==null)e:for(;;){if(u===null)return;var S=u.tag;if(S===3||S===4){var R=u.stateNode.containerInfo;if(R===p)break;if(S===4)for(S=u.return;S!==null;){var D=S.tag;if((D===3||D===4)&&S.stateNode.containerInfo===p)return;S=S.return}for(;R!==null;){if(S=ti(R),S===null)return;if(D=S.tag,D===5||D===6||D===26||D===27){u=v=S;continue e}R=R.parentNode}}u=u.return}Xm(function(){var q=v,te=Yc(l),ie=[];e:{var V=Eg.get(t);if(V!==void 0){var Y=gs,je=t;switch(t){case"keypress":if(ps(l)===0)break e;case"keydown":case"keyup":Y=Kk;break;case"focusin":je="focus",Y=Jc;break;case"focusout":je="blur",Y=Jc;break;case"beforeblur":case"afterblur":Y=Jc;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Y=Wm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Y=zk;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Y=Zk;break;case xg:case bg:case wg:Y=Bk;break;case Sg:Y=Jk;break;case"scroll":case"scrollend":Y=Ok;break;case"wheel":Y=t2;break;case"copy":case"cut":case"paste":Y=Hk;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Y=eg;break;case"toggle":case"beforetoggle":Y=r2}var Ne=(a&4)!==0,nt=!Ne&&(t==="scroll"||t==="scrollend"),B=Ne?V!==null?V+"Capture":null:V;Ne=[];for(var I=q,F;I!==null;){var re=I;if(F=re.stateNode,re=re.tag,re!==5&&re!==26&&re!==27||F===null||B===null||(re=gl(I,B),re!=null&&Ne.push(Wl(I,re,F))),nt)break;I=I.return}0<Ne.length&&(V=new Y(V,je,null,l,te),ie.push({event:V,listeners:Ne}))}}if((a&7)===0){e:{if(V=t==="mouseover"||t==="pointerover",Y=t==="mouseout"||t==="pointerout",V&&l!==Gc&&(je=l.relatedTarget||l.fromElement)&&(ti(je)||je[er]))break e;if((Y||V)&&(V=te.window===te?te:(V=te.ownerDocument)?V.defaultView||V.parentWindow:window,Y?(je=l.relatedTarget||l.toElement,Y=q,je=je?ti(je):null,je!==null&&(nt=s(je),Ne=je.tag,je!==nt||Ne!==5&&Ne!==27&&Ne!==6)&&(je=null)):(Y=null,je=q),Y!==je)){if(Ne=Wm,re="onMouseLeave",B="onMouseEnter",I="mouse",(t==="pointerout"||t==="pointerover")&&(Ne=eg,re="onPointerLeave",B="onPointerEnter",I="pointer"),nt=Y==null?V:ml(Y),F=je==null?V:ml(je),V=new Ne(re,I+"leave",Y,l,te),V.target=nt,V.relatedTarget=F,re=null,ti(te)===q&&(Ne=new Ne(B,I+"enter",je,l,te),Ne.target=F,Ne.relatedTarget=nt,re=Ne),nt=re,Y&&je)t:{for(Ne=Y,B=je,I=0,F=Ne;F;F=Li(F))I++;for(F=0,re=B;re;re=Li(re))F++;for(;0<I-F;)Ne=Li(Ne),I--;for(;0<F-I;)B=Li(B),F--;for(;I--;){if(Ne===B||B!==null&&Ne===B.alternate)break t;Ne=Li(Ne),B=Li(B)}Ne=null}else Ne=null;Y!==null&&qv(ie,V,Y,Ne,!1),je!==null&&nt!==null&&qv(ie,nt,je,Ne,!0)}}e:{if(V=q?ml(q):window,Y=V.nodeName&&V.nodeName.toLowerCase(),Y==="select"||Y==="input"&&V.type==="file")var ge=sg;else if(lg(V))if(ug)ge=h2;else{ge=f2;var Ie=c2}else Y=V.nodeName,!Y||Y.toLowerCase()!=="input"||V.type!=="checkbox"&&V.type!=="radio"?q&&$c(q.elementType)&&(ge=sg):ge=d2;if(ge&&(ge=ge(t,q))){og(ie,ge,l,te);break e}Ie&&Ie(t,V,q),t==="focusout"&&q&&V.type==="number"&&q.memoizedProps.value!=null&&Vc(V,"number",V.value)}switch(Ie=q?ml(q):window,t){case"focusin":(lg(Ie)||Ie.contentEditable==="true")&&(fi=Ie,lf=q,Cl=null);break;case"focusout":Cl=lf=fi=null;break;case"mousedown":of=!0;break;case"contextmenu":case"mouseup":case"dragend":of=!1,yg(ie,l,te);break;case"selectionchange":if(m2)break;case"keydown":case"keyup":yg(ie,l,te)}var we;if(tf)e:{switch(t){case"compositionstart":var Me="onCompositionStart";break e;case"compositionend":Me="onCompositionEnd";break e;case"compositionupdate":Me="onCompositionUpdate";break e}Me=void 0}else ci?ag(t,l)&&(Me="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&(Me="onCompositionStart");Me&&(tg&&l.locale!=="ko"&&(ci||Me!=="onCompositionStart"?Me==="onCompositionEnd"&&ci&&(we=Qm()):(Hr=te,Qc="value"in Hr?Hr.value:Hr.textContent,ci=!0)),Ie=ru(q,Me),0<Ie.length&&(Me=new Jm(Me,t,null,l,te),ie.push({event:Me,listeners:Ie}),we?Me.data=we:(we=ig(l),we!==null&&(Me.data=we)))),(we=i2?l2(t,l):o2(t,l))&&(Me=ru(q,"onBeforeInput"),0<Me.length&&(Ie=new Jm("onBeforeInput","beforeinput",null,l,te),ie.push({event:Ie,listeners:Me}),Ie.data=we)),Z2(ie,t,q,l,te)}Hv(ie,a)})}function Wl(t,a,l){return{instance:t,listener:a,currentTarget:l}}function ru(t,a){for(var l=a+"Capture",u=[];t!==null;){var p=t,v=p.stateNode;if(p=p.tag,p!==5&&p!==26&&p!==27||v===null||(p=gl(t,l),p!=null&&u.unshift(Wl(t,p,v)),p=gl(t,a),p!=null&&u.push(Wl(t,p,v))),t.tag===3)return u;t=t.return}return[]}function Li(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function qv(t,a,l,u,p){for(var v=a._reactName,S=[];l!==null&&l!==u;){var R=l,D=R.alternate,q=R.stateNode;if(R=R.tag,D!==null&&D===u)break;R!==5&&R!==26&&R!==27||q===null||(D=q,p?(q=gl(l,v),q!=null&&S.unshift(Wl(l,q,D))):p||(q=gl(l,v),q!=null&&S.push(Wl(l,q,D)))),l=l.return}S.length!==0&&t.push({event:a,listeners:S})}var tA=/\r\n?/g,nA=/\u0000|\uFFFD/g;function Vv(t){return(typeof t=="string"?t:""+t).replace(tA,`
50
- `).replace(nA,"")}function $v(t,a){return a=Vv(a),Vv(t)===a}function au(){}function tt(t,a,l,u,p,v){switch(l){case"children":typeof u=="string"?a==="body"||a==="textarea"&&u===""||oi(t,u):(typeof u=="number"||typeof u=="bigint")&&a!=="body"&&oi(t,""+u);break;case"className":us(t,"class",u);break;case"tabIndex":us(t,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":us(t,l,u);break;case"style":Ym(t,u,v);break;case"data":if(a!=="object"){us(t,"data",u);break}case"src":case"href":if(u===""&&(a!=="a"||l!=="href")){t.removeAttribute(l);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){t.removeAttribute(l);break}u=ds(""+u),t.setAttribute(l,u);break;case"action":case"formAction":if(typeof u=="function"){t.setAttribute(l,"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 v=="function"&&(l==="formAction"?(a!=="input"&&tt(t,a,"name",p.name,p,null),tt(t,a,"formEncType",p.formEncType,p,null),tt(t,a,"formMethod",p.formMethod,p,null),tt(t,a,"formTarget",p.formTarget,p,null)):(tt(t,a,"encType",p.encType,p,null),tt(t,a,"method",p.method,p,null),tt(t,a,"target",p.target,p,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){t.removeAttribute(l);break}u=ds(""+u),t.setAttribute(l,u);break;case"onClick":u!=null&&(t.onclick=au);break;case"onScroll":u!=null&&Ue("scroll",t);break;case"onScrollEnd":u!=null&&Ue("scrollend",t);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(i(61));if(l=u.__html,l!=null){if(p.children!=null)throw Error(i(60));t.innerHTML=l}}break;case"multiple":t.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":t.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){t.removeAttribute("xlink:href");break}l=ds(""+u),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":u!=null&&typeof u!="function"&&typeof u!="symbol"?t.setAttribute(l,""+u):t.removeAttribute(l);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":u&&typeof u!="function"&&typeof u!="symbol"?t.setAttribute(l,""):t.removeAttribute(l);break;case"capture":case"download":u===!0?t.setAttribute(l,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?t.setAttribute(l,u):t.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?t.setAttribute(l,u):t.removeAttribute(l);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?t.removeAttribute(l):t.setAttribute(l,u);break;case"popover":Ue("beforetoggle",t),Ue("toggle",t),ss(t,"popover",u);break;case"xlinkActuate":yr(t,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":yr(t,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":yr(t,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":yr(t,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":yr(t,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":yr(t,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":yr(t,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":yr(t,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":yr(t,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":ss(t,"is",u);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=jk.get(l)||l,ss(t,l,u))}}function Nd(t,a,l,u,p,v){switch(l){case"style":Ym(t,u,v);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(i(61));if(l=u.__html,l!=null){if(p.children!=null)throw Error(i(60));t.innerHTML=l}}break;case"children":typeof u=="string"?oi(t,u):(typeof u=="number"||typeof u=="bigint")&&oi(t,""+u);break;case"onScroll":u!=null&&Ue("scroll",t);break;case"onScrollEnd":u!=null&&Ue("scrollend",t);break;case"onClick":u!=null&&(t.onclick=au);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!zm.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(p=l.endsWith("Capture"),a=l.slice(2,p?l.length-7:void 0),v=t[gt]||null,v=v!=null?v[l]:null,typeof v=="function"&&t.removeEventListener(a,v,p),typeof u=="function")){typeof v!="function"&&v!==null&&(l in t?t[l]=null:t.hasAttribute(l)&&t.removeAttribute(l)),t.addEventListener(a,u,p);break e}l in t?t[l]=u:u===!0?t.setAttribute(l,""):ss(t,l,u)}}}function Pt(t,a,l){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ue("error",t),Ue("load",t);var u=!1,p=!1,v;for(v in l)if(l.hasOwnProperty(v)){var S=l[v];if(S!=null)switch(v){case"src":u=!0;break;case"srcSet":p=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:tt(t,a,v,S,l,null)}}p&&tt(t,a,"srcSet",l.srcSet,l,null),u&&tt(t,a,"src",l.src,l,null);return;case"input":Ue("invalid",t);var R=v=S=p=null,D=null,q=null;for(u in l)if(l.hasOwnProperty(u)){var te=l[u];if(te!=null)switch(u){case"name":p=te;break;case"type":S=te;break;case"checked":D=te;break;case"defaultChecked":q=te;break;case"value":v=te;break;case"defaultValue":R=te;break;case"children":case"dangerouslySetInnerHTML":if(te!=null)throw Error(i(137,a));break;default:tt(t,a,u,te,l,null)}}qm(t,v,R,D,q,S,p,!1),cs(t);return;case"select":Ue("invalid",t),u=S=v=null;for(p in l)if(l.hasOwnProperty(p)&&(R=l[p],R!=null))switch(p){case"value":v=R;break;case"defaultValue":S=R;break;case"multiple":u=R;default:tt(t,a,p,R,l,null)}a=v,l=S,t.multiple=!!u,a!=null?li(t,!!u,a,!1):l!=null&&li(t,!!u,l,!0);return;case"textarea":Ue("invalid",t),v=p=u=null;for(S in l)if(l.hasOwnProperty(S)&&(R=l[S],R!=null))switch(S){case"value":u=R;break;case"defaultValue":p=R;break;case"children":v=R;break;case"dangerouslySetInnerHTML":if(R!=null)throw Error(i(91));break;default:tt(t,a,S,R,l,null)}$m(t,u,p,v),cs(t);return;case"option":for(D in l)if(l.hasOwnProperty(D)&&(u=l[D],u!=null))switch(D){case"selected":t.selected=u&&typeof u!="function"&&typeof u!="symbol";break;default:tt(t,a,D,u,l,null)}return;case"dialog":Ue("beforetoggle",t),Ue("toggle",t),Ue("cancel",t),Ue("close",t);break;case"iframe":case"object":Ue("load",t);break;case"video":case"audio":for(u=0;u<Zl.length;u++)Ue(Zl[u],t);break;case"image":Ue("error",t),Ue("load",t);break;case"details":Ue("toggle",t);break;case"embed":case"source":case"link":Ue("error",t),Ue("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(q in l)if(l.hasOwnProperty(q)&&(u=l[q],u!=null))switch(q){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:tt(t,a,q,u,l,null)}return;default:if($c(a)){for(te in l)l.hasOwnProperty(te)&&(u=l[te],u!==void 0&&Nd(t,a,te,u,l,void 0));return}}for(R in l)l.hasOwnProperty(R)&&(u=l[R],u!=null&&tt(t,a,R,u,l,null))}function rA(t,a,l,u){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var p=null,v=null,S=null,R=null,D=null,q=null,te=null;for(Y in l){var ie=l[Y];if(l.hasOwnProperty(Y)&&ie!=null)switch(Y){case"checked":break;case"value":break;case"defaultValue":D=ie;default:u.hasOwnProperty(Y)||tt(t,a,Y,null,u,ie)}}for(var V in u){var Y=u[V];if(ie=l[V],u.hasOwnProperty(V)&&(Y!=null||ie!=null))switch(V){case"type":v=Y;break;case"name":p=Y;break;case"checked":q=Y;break;case"defaultChecked":te=Y;break;case"value":S=Y;break;case"defaultValue":R=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(i(137,a));break;default:Y!==ie&&tt(t,a,V,Y,u,ie)}}qc(t,S,R,D,q,te,v,p);return;case"select":Y=S=R=V=null;for(v in l)if(D=l[v],l.hasOwnProperty(v)&&D!=null)switch(v){case"value":break;case"multiple":Y=D;default:u.hasOwnProperty(v)||tt(t,a,v,null,u,D)}for(p in u)if(v=u[p],D=l[p],u.hasOwnProperty(p)&&(v!=null||D!=null))switch(p){case"value":V=v;break;case"defaultValue":R=v;break;case"multiple":S=v;default:v!==D&&tt(t,a,p,v,u,D)}a=R,l=S,u=Y,V!=null?li(t,!!l,V,!1):!!u!=!!l&&(a!=null?li(t,!!l,a,!0):li(t,!!l,l?[]:"",!1));return;case"textarea":Y=V=null;for(R in l)if(p=l[R],l.hasOwnProperty(R)&&p!=null&&!u.hasOwnProperty(R))switch(R){case"value":break;case"children":break;default:tt(t,a,R,null,u,p)}for(S in u)if(p=u[S],v=l[S],u.hasOwnProperty(S)&&(p!=null||v!=null))switch(S){case"value":V=p;break;case"defaultValue":Y=p;break;case"children":break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(i(91));break;default:p!==v&&tt(t,a,S,p,u,v)}Vm(t,V,Y);return;case"option":for(var je in l)if(V=l[je],l.hasOwnProperty(je)&&V!=null&&!u.hasOwnProperty(je))switch(je){case"selected":t.selected=!1;break;default:tt(t,a,je,null,u,V)}for(D in u)if(V=u[D],Y=l[D],u.hasOwnProperty(D)&&V!==Y&&(V!=null||Y!=null))switch(D){case"selected":t.selected=V&&typeof V!="function"&&typeof V!="symbol";break;default:tt(t,a,D,V,u,Y)}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 Ne in l)V=l[Ne],l.hasOwnProperty(Ne)&&V!=null&&!u.hasOwnProperty(Ne)&&tt(t,a,Ne,null,u,V);for(q in u)if(V=u[q],Y=l[q],u.hasOwnProperty(q)&&V!==Y&&(V!=null||Y!=null))switch(q){case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(i(137,a));break;default:tt(t,a,q,V,u,Y)}return;default:if($c(a)){for(var nt in l)V=l[nt],l.hasOwnProperty(nt)&&V!==void 0&&!u.hasOwnProperty(nt)&&Nd(t,a,nt,void 0,u,V);for(te in u)V=u[te],Y=l[te],!u.hasOwnProperty(te)||V===Y||V===void 0&&Y===void 0||Nd(t,a,te,V,u,Y);return}}for(var B in l)V=l[B],l.hasOwnProperty(B)&&V!=null&&!u.hasOwnProperty(B)&&tt(t,a,B,null,u,V);for(ie in u)V=u[ie],Y=l[ie],!u.hasOwnProperty(ie)||V===Y||V==null&&Y==null||tt(t,a,ie,V,u,Y)}var Md=null,jd=null;function iu(t){return t.nodeType===9?t:t.ownerDocument}function Gv(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Yv(t,a){if(t===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&a==="foreignObject"?0:t}function Dd(t,a){return t==="textarea"||t==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var Od=null;function aA(){var t=window.event;return t&&t.type==="popstate"?t===Od?!1:(Od=t,!0):(Od=null,!1)}var Kv=typeof setTimeout=="function"?setTimeout:void 0,iA=typeof clearTimeout=="function"?clearTimeout:void 0,Xv=typeof Promise=="function"?Promise:void 0,lA=typeof queueMicrotask=="function"?queueMicrotask:typeof Xv<"u"?function(t){return Xv.resolve(null).then(t).catch(oA)}:Kv;function oA(t){setTimeout(function(){throw t})}function ra(t){return t==="head"}function Qv(t,a){var l=a,u=0,p=0;do{var v=l.nextSibling;if(t.removeChild(l),v&&v.nodeType===8)if(l=v.data,l==="/$"){if(0<u&&8>u){l=u;var S=t.ownerDocument;if(l&1&&Jl(S.documentElement),l&2&&Jl(S.body),l&4)for(l=S.head,Jl(l),S=l.firstChild;S;){var R=S.nextSibling,D=S.nodeName;S[pl]||D==="SCRIPT"||D==="STYLE"||D==="LINK"&&S.rel.toLowerCase()==="stylesheet"||l.removeChild(S),S=R}}if(p===0){t.removeChild(v),oo(a);return}p--}else l==="$"||l==="$?"||l==="$!"?p++:u=l.charCodeAt(0)-48;else u=0;l=v}while(l);oo(a)}function Ld(t){var a=t.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var l=a;switch(a=a.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Ld(l),Bc(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}t.removeChild(l)}}function sA(t,a,l,u){for(;t.nodeType===1;){var p=l;if(t.nodeName.toLowerCase()!==a.toLowerCase()){if(!u&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(u){if(!t[pl])switch(a){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(v=t.getAttribute("rel"),v==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(v!==p.rel||t.getAttribute("href")!==(p.href==null||p.href===""?null:p.href)||t.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin)||t.getAttribute("title")!==(p.title==null?null:p.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(v=t.getAttribute("src"),(v!==(p.src==null?null:p.src)||t.getAttribute("type")!==(p.type==null?null:p.type)||t.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin))&&v&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(a==="input"&&t.type==="hidden"){var v=p.name==null?null:""+p.name;if(p.type==="hidden"&&t.getAttribute("name")===v)return t}else return t;if(t=qn(t.nextSibling),t===null)break}return null}function uA(t,a,l){if(a==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=qn(t.nextSibling),t===null))return null;return t}function zd(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState==="complete"}function cA(t,a){var l=t.ownerDocument;if(t.data!=="$?"||l.readyState==="complete")a();else{var u=function(){a(),l.removeEventListener("DOMContentLoaded",u)};l.addEventListener("DOMContentLoaded",u),t._reactRetry=u}}function qn(t){for(;t!=null;t=t.nextSibling){var a=t.nodeType;if(a===1||a===3)break;if(a===8){if(a=t.data,a==="$"||a==="$!"||a==="$?"||a==="F!"||a==="F")break;if(a==="/$")return null}}return t}var Pd=null;function Zv(t){t=t.previousSibling;for(var a=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"){if(a===0)return t;a--}else l==="/$"&&a++}t=t.previousSibling}return null}function Wv(t,a,l){switch(a=iu(l),t){case"html":if(t=a.documentElement,!t)throw Error(i(452));return t;case"head":if(t=a.head,!t)throw Error(i(453));return t;case"body":if(t=a.body,!t)throw Error(i(454));return t;default:throw Error(i(451))}}function Jl(t){for(var a=t.attributes;a.length;)t.removeAttributeNode(a[0]);Bc(t)}var Mn=new Map,Jv=new Set;function lu(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Mr=K.d;K.d={f:fA,r:dA,D:hA,C:pA,L:mA,m:gA,X:vA,S:yA,M:xA};function fA(){var t=Mr.f(),a=Zs();return t||a}function dA(t){var a=ni(t);a!==null&&a.tag===5&&a.type==="form"?xy(a):Mr.r(t)}var zi=typeof document>"u"?null:document;function ex(t,a,l){var u=zi;if(u&&typeof a=="string"&&a){var p=Cn(a);p='link[rel="'+t+'"][href="'+p+'"]',typeof l=="string"&&(p+='[crossorigin="'+l+'"]'),Jv.has(p)||(Jv.add(p),t={rel:t,crossOrigin:l,href:a},u.querySelector(p)===null&&(a=u.createElement("link"),Pt(a,"link",t),_t(a),u.head.appendChild(a)))}}function hA(t){Mr.D(t),ex("dns-prefetch",t,null)}function pA(t,a){Mr.C(t,a),ex("preconnect",t,a)}function mA(t,a,l){Mr.L(t,a,l);var u=zi;if(u&&t&&a){var p='link[rel="preload"][as="'+Cn(a)+'"]';a==="image"&&l&&l.imageSrcSet?(p+='[imagesrcset="'+Cn(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(p+='[imagesizes="'+Cn(l.imageSizes)+'"]')):p+='[href="'+Cn(t)+'"]';var v=p;switch(a){case"style":v=Pi(t);break;case"script":v=Ii(t)}Mn.has(v)||(t=m({rel:"preload",href:a==="image"&&l&&l.imageSrcSet?void 0:t,as:a},l),Mn.set(v,t),u.querySelector(p)!==null||a==="style"&&u.querySelector(eo(v))||a==="script"&&u.querySelector(to(v))||(a=u.createElement("link"),Pt(a,"link",t),_t(a),u.head.appendChild(a)))}}function gA(t,a){Mr.m(t,a);var l=zi;if(l&&t){var u=a&&typeof a.as=="string"?a.as:"script",p='link[rel="modulepreload"][as="'+Cn(u)+'"][href="'+Cn(t)+'"]',v=p;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":v=Ii(t)}if(!Mn.has(v)&&(t=m({rel:"modulepreload",href:t},a),Mn.set(v,t),l.querySelector(p)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(to(v)))return}u=l.createElement("link"),Pt(u,"link",t),_t(u),l.head.appendChild(u)}}}function yA(t,a,l){Mr.S(t,a,l);var u=zi;if(u&&t){var p=ri(u).hoistableStyles,v=Pi(t);a=a||"default";var S=p.get(v);if(!S){var R={loading:0,preload:null};if(S=u.querySelector(eo(v)))R.loading=5;else{t=m({rel:"stylesheet",href:t,"data-precedence":a},l),(l=Mn.get(v))&&Id(t,l);var D=S=u.createElement("link");_t(D),Pt(D,"link",t),D._p=new Promise(function(q,te){D.onload=q,D.onerror=te}),D.addEventListener("load",function(){R.loading|=1}),D.addEventListener("error",function(){R.loading|=2}),R.loading|=4,ou(S,a,u)}S={type:"stylesheet",instance:S,count:1,state:R},p.set(v,S)}}}function vA(t,a){Mr.X(t,a);var l=zi;if(l&&t){var u=ri(l).hoistableScripts,p=Ii(t),v=u.get(p);v||(v=l.querySelector(to(p)),v||(t=m({src:t,async:!0},a),(a=Mn.get(p))&&Bd(t,a),v=l.createElement("script"),_t(v),Pt(v,"link",t),l.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},u.set(p,v))}}function xA(t,a){Mr.M(t,a);var l=zi;if(l&&t){var u=ri(l).hoistableScripts,p=Ii(t),v=u.get(p);v||(v=l.querySelector(to(p)),v||(t=m({src:t,async:!0,type:"module"},a),(a=Mn.get(p))&&Bd(t,a),v=l.createElement("script"),_t(v),Pt(v,"link",t),l.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},u.set(p,v))}}function tx(t,a,l,u){var p=(p=he.current)?lu(p):null;if(!p)throw Error(i(446));switch(t){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(a=Pi(l.href),l=ri(p).hoistableStyles,u=l.get(a),u||(u={type:"style",instance:null,count:0,state:null},l.set(a,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){t=Pi(l.href);var v=ri(p).hoistableStyles,S=v.get(t);if(S||(p=p.ownerDocument||p,S={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},v.set(t,S),(v=p.querySelector(eo(t)))&&!v._p&&(S.instance=v,S.state.loading=5),Mn.has(t)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Mn.set(t,l),v||bA(p,t,l,S.state))),a&&u===null)throw Error(i(528,""));return S}if(a&&u!==null)throw Error(i(529,""));return null;case"script":return a=l.async,l=l.src,typeof l=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=Ii(l),l=ri(p).hoistableScripts,u=l.get(a),u||(u={type:"script",instance:null,count:0,state:null},l.set(a,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,t))}}function Pi(t){return'href="'+Cn(t)+'"'}function eo(t){return'link[rel="stylesheet"]['+t+"]"}function nx(t){return m({},t,{"data-precedence":t.precedence,precedence:null})}function bA(t,a,l,u){t.querySelector('link[rel="preload"][as="style"]['+a+"]")?u.loading=1:(a=t.createElement("link"),u.preload=a,a.addEventListener("load",function(){return u.loading|=1}),a.addEventListener("error",function(){return u.loading|=2}),Pt(a,"link",l),_t(a),t.head.appendChild(a))}function Ii(t){return'[src="'+Cn(t)+'"]'}function to(t){return"script[async]"+t}function rx(t,a,l){if(a.count++,a.instance===null)switch(a.type){case"style":var u=t.querySelector('style[data-href~="'+Cn(l.href)+'"]');if(u)return a.instance=u,_t(u),u;var p=m({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return u=(t.ownerDocument||t).createElement("style"),_t(u),Pt(u,"style",p),ou(u,l.precedence,t),a.instance=u;case"stylesheet":p=Pi(l.href);var v=t.querySelector(eo(p));if(v)return a.state.loading|=4,a.instance=v,_t(v),v;u=nx(l),(p=Mn.get(p))&&Id(u,p),v=(t.ownerDocument||t).createElement("link"),_t(v);var S=v;return S._p=new Promise(function(R,D){S.onload=R,S.onerror=D}),Pt(v,"link",u),a.state.loading|=4,ou(v,l.precedence,t),a.instance=v;case"script":return v=Ii(l.src),(p=t.querySelector(to(v)))?(a.instance=p,_t(p),p):(u=l,(p=Mn.get(v))&&(u=m({},l),Bd(u,p)),t=t.ownerDocument||t,p=t.createElement("script"),_t(p),Pt(p,"link",u),t.head.appendChild(p),a.instance=p);case"void":return null;default:throw Error(i(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(u=a.instance,a.state.loading|=4,ou(u,l.precedence,t));return a.instance}function ou(t,a,l){for(var u=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),p=u.length?u[u.length-1]:null,v=p,S=0;S<u.length;S++){var R=u[S];if(R.dataset.precedence===a)v=R;else if(v!==p)break}v?v.parentNode.insertBefore(t,v.nextSibling):(a=l.nodeType===9?l.head:l,a.insertBefore(t,a.firstChild))}function Id(t,a){t.crossOrigin==null&&(t.crossOrigin=a.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=a.referrerPolicy),t.title==null&&(t.title=a.title)}function Bd(t,a){t.crossOrigin==null&&(t.crossOrigin=a.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=a.referrerPolicy),t.integrity==null&&(t.integrity=a.integrity)}var su=null;function ax(t,a,l){if(su===null){var u=new Map,p=su=new Map;p.set(l,u)}else p=su,u=p.get(l),u||(u=new Map,p.set(l,u));if(u.has(t))return u;for(u.set(t,null),l=l.getElementsByTagName(t),p=0;p<l.length;p++){var v=l[p];if(!(v[pl]||v[st]||t==="link"&&v.getAttribute("rel")==="stylesheet")&&v.namespaceURI!=="http://www.w3.org/2000/svg"){var S=v.getAttribute(a)||"";S=t+S;var R=u.get(S);R?R.push(v):u.set(S,[v])}}return u}function ix(t,a,l){t=t.ownerDocument||t,t.head.insertBefore(l,a==="title"?t.querySelector("head > title"):null)}function wA(t,a,l){if(l===1||a.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return t=a.disabled,typeof a.precedence=="string"&&t==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function lx(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}var no=null;function SA(){}function EA(t,a,l){if(no===null)throw Error(i(475));var u=no;if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var p=Pi(l.href),v=t.querySelector(eo(p));if(v){t=v._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(u.count++,u=uu.bind(u),t.then(u,u)),a.state.loading|=4,a.instance=v,_t(v);return}v=t.ownerDocument||t,l=nx(l),(p=Mn.get(p))&&Id(l,p),v=v.createElement("link"),_t(v);var S=v;S._p=new Promise(function(R,D){S.onload=R,S.onerror=D}),Pt(v,"link",l),a.instance=v}u.stylesheets===null&&(u.stylesheets=new Map),u.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(u.count++,a=uu.bind(u),t.addEventListener("load",a),t.addEventListener("error",a))}}function CA(){if(no===null)throw Error(i(475));var t=no;return t.stylesheets&&t.count===0&&Ud(t,t.stylesheets),0<t.count?function(a){var l=setTimeout(function(){if(t.stylesheets&&Ud(t,t.stylesheets),t.unsuspend){var u=t.unsuspend;t.unsuspend=null,u()}},6e4);return t.unsuspend=a,function(){t.unsuspend=null,clearTimeout(l)}}:null}function uu(){if(this.count--,this.count===0){if(this.stylesheets)Ud(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var cu=null;function Ud(t,a){t.stylesheets=null,t.unsuspend!==null&&(t.count++,cu=new Map,a.forEach(kA,t),cu=null,uu.call(t))}function kA(t,a){if(!(a.state.loading&4)){var l=cu.get(t);if(l)var u=l.get(null);else{l=new Map,cu.set(t,l);for(var p=t.querySelectorAll("link[data-precedence],style[data-precedence]"),v=0;v<p.length;v++){var S=p[v];(S.nodeName==="LINK"||S.getAttribute("media")!=="not all")&&(l.set(S.dataset.precedence,S),u=S)}u&&l.set(null,u)}p=a.instance,S=p.getAttribute("data-precedence"),v=l.get(S)||u,v===u&&l.set(null,p),l.set(S,p),this.count++,u=uu.bind(this),p.addEventListener("load",u),p.addEventListener("error",u),v?v.parentNode.insertBefore(p,v.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(p,t.firstChild)),a.state.loading|=4}}var ro={$$typeof:N,Provider:null,Consumer:null,_currentValue:U,_currentValue2:U,_threadCount:0};function AA(t,a,l,u,p,v,S,R){this.tag=1,this.containerInfo=t,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=be(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=be(0),this.hiddenUpdates=be(null),this.identifierPrefix=u,this.onUncaughtError=p,this.onCaughtError=v,this.onRecoverableError=S,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map}function ox(t,a,l,u,p,v,S,R,D,q,te,ie){return t=new AA(t,a,l,S,R,D,q,ie),a=1,v===!0&&(a|=24),v=fn(3,null,null,a),t.current=v,v.stateNode=t,a=wf(),a.refCount++,t.pooledCache=a,a.refCount++,v.memoizedState={element:u,isDehydrated:l,cache:a},kf(v),t}function sx(t){return t?(t=mi,t):mi}function ux(t,a,l,u,p,v){p=sx(p),u.context===null?u.context=p:u.pendingContext=p,u=Vr(a),u.payload={element:l},v=v===void 0?null:v,v!==null&&(u.callback=v),l=$r(t,u,a),l!==null&&(gn(l,t,a),Dl(l,t,a))}function cx(t,a){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<a?l:a}}function Hd(t,a){cx(t,a),(t=t.alternate)&&cx(t,a)}function fx(t){if(t.tag===13){var a=pi(t,67108864);a!==null&&gn(a,t,67108864),Hd(t,67108864)}}var fu=!0;function TA(t,a,l,u){var p=L.T;L.T=null;var v=K.p;try{K.p=2,Fd(t,a,l,u)}finally{K.p=v,L.T=p}}function RA(t,a,l,u){var p=L.T;L.T=null;var v=K.p;try{K.p=8,Fd(t,a,l,u)}finally{K.p=v,L.T=p}}function Fd(t,a,l,u){if(fu){var p=qd(u);if(p===null)_d(t,a,u,du,l),hx(t,u);else if(NA(p,t,a,l,u))u.stopPropagation();else if(hx(t,u),a&4&&-1<_A.indexOf(t)){for(;p!==null;){var v=ni(p);if(v!==null)switch(v.tag){case 3:if(v=v.stateNode,v.current.memoizedState.isDehydrated){var S=Ot(v.pendingLanes);if(S!==0){var R=v;for(R.pendingLanes|=2,R.entangledLanes|=2;S;){var D=1<<31-Re(S);R.entanglements[1]|=D,S&=~D}ir(v),(Ze&6)===0&&(Xs=Dt()+500,Ql(0))}}break;case 13:R=pi(v,2),R!==null&&gn(R,v,2),Zs(),Hd(v,2)}if(v=qd(u),v===null&&_d(t,a,u,du,l),v===p)break;p=v}p!==null&&u.stopPropagation()}else _d(t,a,u,null,l)}}function qd(t){return t=Yc(t),Vd(t)}var du=null;function Vd(t){if(du=null,t=ti(t),t!==null){var a=s(t);if(a===null)t=null;else{var l=a.tag;if(l===13){if(t=c(a),t!==null)return t;t=null}else if(l===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;t=null}else a!==t&&(t=null)}}return du=t,null}function dx(t){switch(t){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(Br()){case Jt:return 2;case wn:return 8;case mr:case Wa:return 32;case wa:return 268435456;default:return 32}default:return 32}}var $d=!1,aa=null,ia=null,la=null,ao=new Map,io=new Map,oa=[],_A="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 hx(t,a){switch(t){case"focusin":case"focusout":aa=null;break;case"dragenter":case"dragleave":ia=null;break;case"mouseover":case"mouseout":la=null;break;case"pointerover":case"pointerout":ao.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":io.delete(a.pointerId)}}function lo(t,a,l,u,p,v){return t===null||t.nativeEvent!==v?(t={blockedOn:a,domEventName:l,eventSystemFlags:u,nativeEvent:v,targetContainers:[p]},a!==null&&(a=ni(a),a!==null&&fx(a)),t):(t.eventSystemFlags|=u,a=t.targetContainers,p!==null&&a.indexOf(p)===-1&&a.push(p),t)}function NA(t,a,l,u,p){switch(a){case"focusin":return aa=lo(aa,t,a,l,u,p),!0;case"dragenter":return ia=lo(ia,t,a,l,u,p),!0;case"mouseover":return la=lo(la,t,a,l,u,p),!0;case"pointerover":var v=p.pointerId;return ao.set(v,lo(ao.get(v)||null,t,a,l,u,p)),!0;case"gotpointercapture":return v=p.pointerId,io.set(v,lo(io.get(v)||null,t,a,l,u,p)),!0}return!1}function px(t){var a=ti(t.target);if(a!==null){var l=s(a);if(l!==null){if(a=l.tag,a===13){if(a=c(l),a!==null){t.blockedOn=a,Bn(t.priority,function(){if(l.tag===13){var u=mn();u=$e(u);var p=pi(l,u);p!==null&&gn(p,l,u),Hd(l,u)}});return}}else if(a===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null}function hu(t){if(t.blockedOn!==null)return!1;for(var a=t.targetContainers;0<a.length;){var l=qd(t.nativeEvent);if(l===null){l=t.nativeEvent;var u=new l.constructor(l.type,l);Gc=u,l.target.dispatchEvent(u),Gc=null}else return a=ni(l),a!==null&&fx(a),t.blockedOn=l,!1;a.shift()}return!0}function mx(t,a,l){hu(t)&&l.delete(a)}function MA(){$d=!1,aa!==null&&hu(aa)&&(aa=null),ia!==null&&hu(ia)&&(ia=null),la!==null&&hu(la)&&(la=null),ao.forEach(mx),io.forEach(mx)}function pu(t,a){t.blockedOn===a&&(t.blockedOn=null,$d||($d=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,MA)))}var mu=null;function gx(t){mu!==t&&(mu=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){mu===t&&(mu=null);for(var a=0;a<t.length;a+=3){var l=t[a],u=t[a+1],p=t[a+2];if(typeof u!="function"){if(Vd(u||l)===null)continue;break}var v=ni(l);v!==null&&(t.splice(a,3),a-=3,Vf(v,{pending:!0,data:p,method:l.method,action:u},u,p))}}))}function oo(t){function a(D){return pu(D,t)}aa!==null&&pu(aa,t),ia!==null&&pu(ia,t),la!==null&&pu(la,t),ao.forEach(a),io.forEach(a);for(var l=0;l<oa.length;l++){var u=oa[l];u.blockedOn===t&&(u.blockedOn=null)}for(;0<oa.length&&(l=oa[0],l.blockedOn===null);)px(l),l.blockedOn===null&&oa.shift();if(l=(t.ownerDocument||t).$$reactFormReplay,l!=null)for(u=0;u<l.length;u+=3){var p=l[u],v=l[u+1],S=p[gt]||null;if(typeof v=="function")S||gx(l);else if(S){var R=null;if(v&&v.hasAttribute("formAction")){if(p=v,S=v[gt]||null)R=S.formAction;else if(Vd(p)!==null)continue}else R=S.action;typeof R=="function"?l[u+1]=R:(l.splice(u,3),u-=3),gx(l)}}}function Gd(t){this._internalRoot=t}gu.prototype.render=Gd.prototype.render=function(t){var a=this._internalRoot;if(a===null)throw Error(i(409));var l=a.current,u=mn();ux(l,u,t,a,null,null)},gu.prototype.unmount=Gd.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var a=t.containerInfo;ux(t.current,2,null,t,null,null),Zs(),a[er]=null}};function gu(t){this._internalRoot=t}gu.prototype.unstable_scheduleHydration=function(t){if(t){var a=In();t={blockedOn:null,target:t,priority:a};for(var l=0;l<oa.length&&a!==0&&a<oa[l].priority;l++);oa.splice(l,0,t),l===0&&px(t)}};var yx=n.version;if(yx!=="19.1.1")throw Error(i(527,yx,"19.1.1"));K.findDOMNode=function(t){var a=t._reactInternals;if(a===void 0)throw typeof t.render=="function"?Error(i(188)):(t=Object.keys(t).join(","),Error(i(268,t)));return t=h(a),t=t!==null?d(t):null,t=t===null?null:t.stateNode,t};var jA={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var yu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!yu.isDisabled&&yu.supportsFiber)try{W=yu.inject(jA),ue=yu}catch{}}return uo.createRoot=function(t,a){if(!o(t))throw Error(i(299));var l=!1,u="",p=Dy,v=Oy,S=Ly,R=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(u=a.identifierPrefix),a.onUncaughtError!==void 0&&(p=a.onUncaughtError),a.onCaughtError!==void 0&&(v=a.onCaughtError),a.onRecoverableError!==void 0&&(S=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(R=a.unstable_transitionCallbacks)),a=ox(t,1,!1,null,null,l,u,p,v,S,R,null),t[er]=a.current,Rd(t),new Gd(a)},uo.hydrateRoot=function(t,a,l){if(!o(t))throw Error(i(299));var u=!1,p="",v=Dy,S=Oy,R=Ly,D=null,q=null;return l!=null&&(l.unstable_strictMode===!0&&(u=!0),l.identifierPrefix!==void 0&&(p=l.identifierPrefix),l.onUncaughtError!==void 0&&(v=l.onUncaughtError),l.onCaughtError!==void 0&&(S=l.onCaughtError),l.onRecoverableError!==void 0&&(R=l.onRecoverableError),l.unstable_transitionCallbacks!==void 0&&(D=l.unstable_transitionCallbacks),l.formState!==void 0&&(q=l.formState)),a=ox(t,1,!0,a,l??null,u,p,v,S,R,D,q),a.context=sx(null),l=a.current,u=mn(),u=$e(u),p=Vr(u),p.callback=null,$r(l,p,u),l=u,a.current.lanes=l,_e(a,l),ir(a),t[er]=a.current,Rd(t),new gu(a)},uo.version="19.1.1",uo}var Tx;function FA(){if(Tx)return Xd.exports;Tx=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(n){console.error(n)}}return e(),Xd.exports=HA(),Xd.exports}var qA=FA();const VA="modulepreload",$A=function(e){return"/"+e},Rx={},De=function(n,r,i){let o=Promise.resolve();if(r&&r.length>0){let h=function(d){return Promise.all(d.map(m=>Promise.resolve(m).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),f=c?.nonce||c?.getAttribute("nonce");o=h(r.map(d=>{if(d=$A(d),d in Rx)return;Rx[d]=!0;const m=d.endsWith(".css"),y=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${y}`))return;const b=document.createElement("link");if(b.rel=m?"stylesheet":VA,m||(b.as="script"),b.crossOrigin="",b.href=d,f&&b.setAttribute("nonce",f),document.head.appendChild(b),m)return new Promise((w,C)=>{b.addEventListener("load",w),b.addEventListener("error",()=>C(new Error(`Unable to preload CSS for ${d}`)))})}))}function s(c){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=c,window.dispatchEvent(f),!f.defaultPrevented)throw c}return o.then(c=>{for(const f of c||[])f.status==="rejected"&&s(f.reason);return n().catch(s)})};/**
51
- * react-router v7.8.2
52
- *
53
- * Copyright (c) Remix Software Inc.
54
- *
55
- * This source code is licensed under the MIT license found in the
56
- * LICENSE.md file in the root directory of this source tree.
57
- *
58
- * @license MIT
59
- */var _x="popstate";function GA(e={}){function n(i,o){let{pathname:s,search:c,hash:f}=i.location;return zh("",{pathname:s,search:c,hash:f},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function r(i,o){return typeof o=="string"?o:Ao(o)}return KA(n,r,null,e)}function ct(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function On(e,n){if(!e){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function YA(){return Math.random().toString(36).substring(2,10)}function Nx(e,n){return{usr:e.state,key:e.key,idx:n}}function zh(e,n,r=null,i){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof n=="string"?rl(n):n,state:r,key:n&&n.key||i||YA()}}function Ao({pathname:e="/",search:n="",hash:r=""}){return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function rl(e){let n={};if(e){let r=e.indexOf("#");r>=0&&(n.hash=e.substring(r),e=e.substring(0,r));let i=e.indexOf("?");i>=0&&(n.search=e.substring(i),e=e.substring(0,i)),e&&(n.pathname=e)}return n}function KA(e,n,r,i={}){let{window:o=document.defaultView,v5Compat:s=!1}=i,c=o.history,f="POP",h=null,d=m();d==null&&(d=0,c.replaceState({...c.state,idx:d},""));function m(){return(c.state||{idx:null}).idx}function y(){f="POP";let T=m(),A=T==null?null:T-d;d=T,h&&h({action:f,location:k.location,delta:A})}function b(T,A){f="PUSH";let _=zh(k.location,T,A);d=m()+1;let N=Nx(_,d),O=k.createHref(_);try{c.pushState(N,"",O)}catch(z){if(z instanceof DOMException&&z.name==="DataCloneError")throw z;o.location.assign(O)}s&&h&&h({action:f,location:k.location,delta:1})}function w(T,A){f="REPLACE";let _=zh(k.location,T,A);d=m();let N=Nx(_,d),O=k.createHref(_);c.replaceState(N,"",O),s&&h&&h({action:f,location:k.location,delta:0})}function C(T){return XA(T)}let k={get action(){return f},get location(){return e(o,c)},listen(T){if(h)throw new Error("A history only accepts one active listener");return o.addEventListener(_x,y),h=T,()=>{o.removeEventListener(_x,y),h=null}},createHref(T){return n(o,T)},createURL:C,encodeLocation(T){let A=C(T);return{pathname:A.pathname,search:A.search,hash:A.hash}},push:b,replace:w,go(T){return c.go(T)}};return k}function XA(e,n=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),ct(r,"No window.location.(origin|href) available to create URL");let i=typeof e=="string"?e:Ao(e);return i=i.replace(/ $/,"%20"),!n&&i.startsWith("//")&&(i=r+i),new URL(i,r)}function E0(e,n,r="/"){return QA(e,n,r,!1)}function QA(e,n,r,i){let o=typeof n=="string"?rl(n):n,s=Or(o.pathname||"/",r);if(s==null)return null;let c=C0(e);ZA(c);let f=null;for(let h=0;f==null&&h<c.length;++h){let d=sT(s);f=lT(c[h],d,i)}return f}function C0(e,n=[],r=[],i="",o=!1){let s=(c,f,h=o,d)=>{let m={relativePath:d===void 0?c.path||"":d,caseSensitive:c.caseSensitive===!0,childrenIndex:f,route:c};if(m.relativePath.startsWith("/")){if(!m.relativePath.startsWith(i)&&h)return;ct(m.relativePath.startsWith(i),`Absolute route path "${m.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),m.relativePath=m.relativePath.slice(i.length)}let y=Dr([i,m.relativePath]),b=r.concat(m);c.children&&c.children.length>0&&(ct(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),C0(c.children,n,b,y,h)),!(c.path==null&&!c.index)&&n.push({path:y,score:aT(y,c.index),routesMeta:b})};return e.forEach((c,f)=>{if(c.path===""||!c.path?.includes("?"))s(c,f);else for(let h of k0(c.path))s(c,f,!0,h)}),n}function k0(e){let n=e.split("/");if(n.length===0)return[];let[r,...i]=n,o=r.endsWith("?"),s=r.replace(/\?$/,"");if(i.length===0)return o?[s,""]:[s];let c=k0(i.join("/")),f=[];return f.push(...c.map(h=>h===""?s:[s,h].join("/"))),o&&f.push(...c),f.map(h=>e.startsWith("/")&&h===""?"/":h)}function ZA(e){e.sort((n,r)=>n.score!==r.score?r.score-n.score:iT(n.routesMeta.map(i=>i.childrenIndex),r.routesMeta.map(i=>i.childrenIndex)))}var WA=/^:[\w-]+$/,JA=3,eT=2,tT=1,nT=10,rT=-2,Mx=e=>e==="*";function aT(e,n){let r=e.split("/"),i=r.length;return r.some(Mx)&&(i+=rT),n&&(i+=eT),r.filter(o=>!Mx(o)).reduce((o,s)=>o+(WA.test(s)?JA:s===""?tT:nT),i)}function iT(e,n){return e.length===n.length&&e.slice(0,-1).every((i,o)=>i===n[o])?e[e.length-1]-n[n.length-1]:0}function lT(e,n,r=!1){let{routesMeta:i}=e,o={},s="/",c=[];for(let f=0;f<i.length;++f){let h=i[f],d=f===i.length-1,m=s==="/"?n:n.slice(s.length)||"/",y=$u({path:h.relativePath,caseSensitive:h.caseSensitive,end:d},m),b=h.route;if(!y&&d&&r&&!i[i.length-1].route.index&&(y=$u({path:h.relativePath,caseSensitive:h.caseSensitive,end:!1},m)),!y)return null;Object.assign(o,y.params),c.push({params:o,pathname:Dr([s,y.pathname]),pathnameBase:dT(Dr([s,y.pathnameBase])),route:b}),y.pathnameBase!=="/"&&(s=Dr([s,y.pathnameBase]))}return c}function $u(e,n){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,i]=oT(e.path,e.caseSensitive,e.end),o=n.match(r);if(!o)return null;let s=o[0],c=s.replace(/(.)\/+$/,"$1"),f=o.slice(1);return{params:i.reduce((d,{paramName:m,isOptional:y},b)=>{if(m==="*"){let C=f[b]||"";c=s.slice(0,s.length-C.length).replace(/(.)\/+$/,"$1")}const w=f[b];return y&&!w?d[m]=void 0:d[m]=(w||"").replace(/%2F/g,"/"),d},{}),pathname:s,pathnameBase:c,pattern:e}}function oT(e,n=!1,r=!0){On(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let i=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,f,h)=>(i.push({paramName:f,isOptional:h!=null}),h?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(i.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,n?void 0:"i"),i]}function sT(e){try{return e.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return On(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${n}).`),e}}function Or(e,n){if(n==="/")return e;if(!e.toLowerCase().startsWith(n.toLowerCase()))return null;let r=n.endsWith("/")?n.length-1:n.length,i=e.charAt(r);return i&&i!=="/"?null:e.slice(r)||"/"}function uT(e,n="/"){let{pathname:r,search:i="",hash:o=""}=typeof e=="string"?rl(e):e;return{pathname:r?r.startsWith("/")?r:cT(r,n):n,search:hT(i),hash:pT(o)}}function cT(e,n){let r=n.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function Jd(e,n,r,i){return`Cannot include a '${e}' character in a manually specified \`to.${n}\` field [${JSON.stringify(i)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function fT(e){return e.filter((n,r)=>r===0||n.route.path&&n.route.path.length>0)}function xp(e){let n=fT(e);return n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase)}function bp(e,n,r,i=!1){let o;typeof e=="string"?o=rl(e):(o={...e},ct(!o.pathname||!o.pathname.includes("?"),Jd("?","pathname","search",o)),ct(!o.pathname||!o.pathname.includes("#"),Jd("#","pathname","hash",o)),ct(!o.search||!o.search.includes("#"),Jd("#","search","hash",o)));let s=e===""||o.pathname==="",c=s?"/":o.pathname,f;if(c==null)f=r;else{let y=n.length-1;if(!i&&c.startsWith("..")){let b=c.split("/");for(;b[0]==="..";)b.shift(),y-=1;o.pathname=b.join("/")}f=y>=0?n[y]:"/"}let h=uT(o,f),d=c&&c!=="/"&&c.endsWith("/"),m=(s||c===".")&&r.endsWith("/");return!h.pathname.endsWith("/")&&(d||m)&&(h.pathname+="/"),h}var Dr=e=>e.join("/").replace(/\/\/+/g,"/"),dT=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),hT=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,pT=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function mT(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var A0=["POST","PUT","PATCH","DELETE"];new Set(A0);var gT=["GET",...A0];new Set(gT);var al=x.createContext(null);al.displayName="DataRouter";var oc=x.createContext(null);oc.displayName="DataRouterState";x.createContext(!1);var T0=x.createContext({isTransitioning:!1});T0.displayName="ViewTransition";var yT=x.createContext(new Map);yT.displayName="Fetchers";var vT=x.createContext(null);vT.displayName="Await";var Xn=x.createContext(null);Xn.displayName="Navigation";var Bo=x.createContext(null);Bo.displayName="Location";var Ln=x.createContext({outlet:null,matches:[],isDataRoute:!1});Ln.displayName="Route";var wp=x.createContext(null);wp.displayName="RouteError";function xT(e,{relative:n}={}){ct(il(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:i}=x.useContext(Xn),{hash:o,pathname:s,search:c}=Ho(e,{relative:n}),f=s;return r!=="/"&&(f=s==="/"?r:Dr([r,s])),i.createHref({pathname:f,search:c,hash:o})}function il(){return x.useContext(Bo)!=null}function on(){return ct(il(),"useLocation() may be used only in the context of a <Router> component."),x.useContext(Bo).location}var R0="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function _0(e){x.useContext(Xn).static||x.useLayoutEffect(e)}function Uo(){let{isDataRoute:e}=x.useContext(Ln);return e?OT():bT()}function bT(){ct(il(),"useNavigate() may be used only in the context of a <Router> component.");let e=x.useContext(al),{basename:n,navigator:r}=x.useContext(Xn),{matches:i}=x.useContext(Ln),{pathname:o}=on(),s=JSON.stringify(xp(i)),c=x.useRef(!1);return _0(()=>{c.current=!0}),x.useCallback((h,d={})=>{if(On(c.current,R0),!c.current)return;if(typeof h=="number"){r.go(h);return}let m=bp(h,JSON.parse(s),o,d.relative==="path");e==null&&n!=="/"&&(m.pathname=m.pathname==="/"?n:Dr([n,m.pathname])),(d.replace?r.replace:r.push)(m,d.state,d)},[n,r,s,o,e])}var wT=x.createContext(null);function ST(e){let n=x.useContext(Ln).outlet;return n&&x.createElement(wT.Provider,{value:e},n)}function OB(){let{matches:e}=x.useContext(Ln),n=e[e.length-1];return n?n.params:{}}function Ho(e,{relative:n}={}){let{matches:r}=x.useContext(Ln),{pathname:i}=on(),o=JSON.stringify(xp(r));return x.useMemo(()=>bp(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function ET(e,n){return N0(e,n)}function N0(e,n,r,i,o){ct(il(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=x.useContext(Xn),{matches:c}=x.useContext(Ln),f=c[c.length-1],h=f?f.params:{},d=f?f.pathname:"/",m=f?f.pathnameBase:"/",y=f&&f.route;{let _=y&&y.path||"";M0(d,!y||_.endsWith("*")||_.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${_}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
60
-
61
- Please change the parent <Route path="${_}"> to <Route path="${_==="/"?"*":`${_}/*`}">.`)}let b=on(),w;if(n){let _=typeof n=="string"?rl(n):n;ct(m==="/"||_.pathname?.startsWith(m),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${m}" but pathname "${_.pathname}" was given in the \`location\` prop.`),w=_}else w=b;let C=w.pathname||"/",k=C;if(m!=="/"){let _=m.replace(/^\//,"").split("/");k="/"+C.replace(/^\//,"").split("/").slice(_.length).join("/")}let T=E0(e,{pathname:k});On(y||T!=null,`No routes matched location "${w.pathname}${w.search}${w.hash}" `),On(T==null||T[T.length-1].route.element!==void 0||T[T.length-1].route.Component!==void 0||T[T.length-1].route.lazy!==void 0,`Matched leaf route at location "${w.pathname}${w.search}${w.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let A=RT(T&&T.map(_=>Object.assign({},_,{params:Object.assign({},h,_.params),pathname:Dr([m,s.encodeLocation?s.encodeLocation(_.pathname).pathname:_.pathname]),pathnameBase:_.pathnameBase==="/"?m:Dr([m,s.encodeLocation?s.encodeLocation(_.pathnameBase).pathname:_.pathnameBase])})),c,r,i,o);return n&&A?x.createElement(Bo.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...w},navigationType:"POP"}},A):A}function CT(){let e=DT(),n=mT(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:i},s={padding:"2px 4px",backgroundColor:i},c=null;return console.error("Error handled by React Router default ErrorBoundary:",e),c=x.createElement(x.Fragment,null,x.createElement("p",null,"💿 Hey developer 👋"),x.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",x.createElement("code",{style:s},"ErrorBoundary")," or"," ",x.createElement("code",{style:s},"errorElement")," prop on your route.")),x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},n),r?x.createElement("pre",{style:o},r):null,c)}var kT=x.createElement(CT,null),AT=class extends x.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){this.props.unstable_onError?this.props.unstable_onError(e,n):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?x.createElement(Ln.Provider,{value:this.props.routeContext},x.createElement(wp.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function TT({routeContext:e,match:n,children:r}){let i=x.useContext(al);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),x.createElement(Ln.Provider,{value:e},r)}function RT(e,n=[],r=null,i=null,o=null){if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(n.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let s=e,c=r?.errors;if(c!=null){let d=s.findIndex(m=>m.route.id&&c?.[m.route.id]!==void 0);ct(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),s=s.slice(0,Math.min(s.length,d+1))}let f=!1,h=-1;if(r)for(let d=0;d<s.length;d++){let m=s[d];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(h=d),m.route.id){let{loaderData:y,errors:b}=r,w=m.route.loader&&!y.hasOwnProperty(m.route.id)&&(!b||b[m.route.id]===void 0);if(m.route.lazy||w){f=!0,h>=0?s=s.slice(0,h+1):s=[s[0]];break}}}return s.reduceRight((d,m,y)=>{let b,w=!1,C=null,k=null;r&&(b=c&&m.route.id?c[m.route.id]:void 0,C=m.route.errorElement||kT,f&&(h<0&&y===0?(M0("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,k=null):h===y&&(w=!0,k=m.route.hydrateFallbackElement||null)));let T=n.concat(s.slice(0,y+1)),A=()=>{let _;return b?_=C:w?_=k:m.route.Component?_=x.createElement(m.route.Component,null):m.route.element?_=m.route.element:_=d,x.createElement(TT,{match:m,routeContext:{outlet:d,matches:T,isDataRoute:r!=null},children:_})};return r&&(m.route.ErrorBoundary||m.route.errorElement||y===0)?x.createElement(AT,{location:r.location,revalidation:r.revalidation,component:C,error:b,children:A(),routeContext:{outlet:null,matches:T,isDataRoute:!0},unstable_onError:i}):A()},null)}function Sp(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function _T(e){let n=x.useContext(al);return ct(n,Sp(e)),n}function NT(e){let n=x.useContext(oc);return ct(n,Sp(e)),n}function MT(e){let n=x.useContext(Ln);return ct(n,Sp(e)),n}function Ep(e){let n=MT(e),r=n.matches[n.matches.length-1];return ct(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function jT(){return Ep("useRouteId")}function DT(){let e=x.useContext(wp),n=NT("useRouteError"),r=Ep("useRouteError");return e!==void 0?e:n.errors?.[r]}function OT(){let{router:e}=_T("useNavigate"),n=Ep("useNavigate"),r=x.useRef(!1);return _0(()=>{r.current=!0}),x.useCallback(async(o,s={})=>{On(r.current,R0),r.current&&(typeof o=="number"?e.navigate(o):await e.navigate(o,{fromRouteId:n,...s}))},[e,n])}var jx={};function M0(e,n,r){!n&&!jx[e]&&(jx[e]=!0,On(!1,r))}x.memo(LT);function LT({routes:e,future:n,state:r,unstable_onError:i}){return N0(e,void 0,r,i,n)}function j0({to:e,replace:n,state:r,relative:i}){ct(il(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=x.useContext(Xn);On(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:s}=x.useContext(Ln),{pathname:c}=on(),f=Uo(),h=bp(e,xp(s),c,i==="path"),d=JSON.stringify(h);return x.useEffect(()=>{f(JSON.parse(d),{replace:n,state:r,relative:i})},[f,d,i,n,r]),null}function Cp(e){return ST(e.context)}function ke(e){ct(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function zT({basename:e="/",children:n=null,location:r,navigationType:i="POP",navigator:o,static:s=!1}){ct(!il(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),f=x.useMemo(()=>({basename:c,navigator:o,static:s,future:{}}),[c,o,s]);typeof r=="string"&&(r=rl(r));let{pathname:h="/",search:d="",hash:m="",state:y=null,key:b="default"}=r,w=x.useMemo(()=>{let C=Or(h,c);return C==null?null:{location:{pathname:C,search:d,hash:m,state:y,key:b},navigationType:i}},[c,h,d,m,y,b,i]);return On(w!=null,`<Router basename="${c}"> is not able to match the URL "${h}${d}${m}" because it does not start with the basename, so the <Router> won't render anything.`),w==null?null:x.createElement(Xn.Provider,{value:f},x.createElement(Bo.Provider,{children:n,value:w}))}function PT({children:e,location:n}){return ET(Ph(e),n)}function Ph(e,n=[]){let r=[];return x.Children.forEach(e,(i,o)=>{if(!x.isValidElement(i))return;let s=[...n,o];if(i.type===x.Fragment){r.push.apply(r,Ph(i.props.children,s));return}ct(i.type===ke,`[${typeof i.type=="string"?i.type:i.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),ct(!i.props.index||!i.props.children,"An index route cannot have child routes.");let c={id:i.props.id||s.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,loader:i.props.loader,action:i.props.action,hydrateFallbackElement:i.props.hydrateFallbackElement,HydrateFallback:i.props.HydrateFallback,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.hasErrorBoundary===!0||i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(c.children=Ph(i.props.children,s)),r.push(c)}),r}var Du="get",Ou="application/x-www-form-urlencoded";function sc(e){return e!=null&&typeof e.tagName=="string"}function IT(e){return sc(e)&&e.tagName.toLowerCase()==="button"}function BT(e){return sc(e)&&e.tagName.toLowerCase()==="form"}function UT(e){return sc(e)&&e.tagName.toLowerCase()==="input"}function HT(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function FT(e,n){return e.button===0&&(!n||n==="_self")&&!HT(e)}function Ih(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((n,r)=>{let i=e[r];return n.concat(Array.isArray(i)?i.map(o=>[r,o]):[[r,i]])},[]))}function qT(e,n){let r=Ih(e);return n&&n.forEach((i,o)=>{r.has(o)||n.getAll(o).forEach(s=>{r.append(o,s)})}),r}var vu=null;function VT(){if(vu===null)try{new FormData(document.createElement("form"),0),vu=!1}catch{vu=!0}return vu}var $T=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function eh(e){return e!=null&&!$T.has(e)?(On(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ou}"`),null):e}function GT(e,n){let r,i,o,s,c;if(BT(e)){let f=e.getAttribute("action");i=f?Or(f,n):null,r=e.getAttribute("method")||Du,o=eh(e.getAttribute("enctype"))||Ou,s=new FormData(e)}else if(IT(e)||UT(e)&&(e.type==="submit"||e.type==="image")){let f=e.form;if(f==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let h=e.getAttribute("formaction")||f.getAttribute("action");if(i=h?Or(h,n):null,r=e.getAttribute("formmethod")||f.getAttribute("method")||Du,o=eh(e.getAttribute("formenctype"))||eh(f.getAttribute("enctype"))||Ou,s=new FormData(f,e),!VT()){let{name:d,type:m,value:y}=e;if(m==="image"){let b=d?`${d}.`:"";s.append(`${b}x`,"0"),s.append(`${b}y`,"0")}else d&&s.append(d,y)}}else{if(sc(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Du,i=null,o=Ou,c=e}return s&&o==="text/plain"&&(c=s,s=void 0),{action:i,method:r.toLowerCase(),encType:o,formData:s,body:c}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function kp(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function YT(e,n,r){let i=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return i.pathname==="/"?i.pathname=`_root.${r}`:n&&Or(i.pathname,n)==="/"?i.pathname=`${n.replace(/\/$/,"")}/_root.${r}`:i.pathname=`${i.pathname.replace(/\/$/,"")}.${r}`,i}async function KT(e,n){if(e.id in n)return n[e.id];try{let r=await import(e.module);return n[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function XT(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function QT(e,n,r){let i=await Promise.all(e.map(async o=>{let s=n.routes[o.route.id];if(s){let c=await KT(s,r);return c.links?c.links():[]}return[]}));return eR(i.flat(1).filter(XT).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function Dx(e,n,r,i,o,s){let c=(h,d)=>r[d]?h.route.id!==r[d].route.id:!0,f=(h,d)=>r[d].pathname!==h.pathname||r[d].route.path?.endsWith("*")&&r[d].params["*"]!==h.params["*"];return s==="assets"?n.filter((h,d)=>c(h,d)||f(h,d)):s==="data"?n.filter((h,d)=>{let m=i.routes[h.route.id];if(!m||!m.hasLoader)return!1;if(c(h,d)||f(h,d))return!0;if(h.route.shouldRevalidate){let y=h.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:h.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}function ZT(e,n,{includeHydrateFallback:r}={}){return WT(e.map(i=>{let o=n.routes[i.route.id];if(!o)return[];let s=[o.module];return o.clientActionModule&&(s=s.concat(o.clientActionModule)),o.clientLoaderModule&&(s=s.concat(o.clientLoaderModule)),r&&o.hydrateFallbackModule&&(s=s.concat(o.hydrateFallbackModule)),o.imports&&(s=s.concat(o.imports)),s}).flat(1))}function WT(e){return[...new Set(e)]}function JT(e){let n={},r=Object.keys(e).sort();for(let i of r)n[i]=e[i];return n}function eR(e,n){let r=new Set;return new Set(n),e.reduce((i,o)=>{let s=JSON.stringify(JT(o));return r.has(s)||(r.add(s),i.push({key:s,link:o})),i},[])}function D0(){let e=x.useContext(al);return kp(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function tR(){let e=x.useContext(oc);return kp(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Ap=x.createContext(void 0);Ap.displayName="FrameworkContext";function O0(){let e=x.useContext(Ap);return kp(e,"You must render this element inside a <HydratedRouter> element"),e}function nR(e,n){let r=x.useContext(Ap),[i,o]=x.useState(!1),[s,c]=x.useState(!1),{onFocus:f,onBlur:h,onMouseEnter:d,onMouseLeave:m,onTouchStart:y}=n,b=x.useRef(null);x.useEffect(()=>{if(e==="render"&&c(!0),e==="viewport"){let k=A=>{A.forEach(_=>{c(_.isIntersecting)})},T=new IntersectionObserver(k,{threshold:.5});return b.current&&T.observe(b.current),()=>{T.disconnect()}}},[e]),x.useEffect(()=>{if(i){let k=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(k)}}},[i]);let w=()=>{o(!0)},C=()=>{o(!1),c(!1)};return r?e!=="intent"?[s,b,{}]:[s,b,{onFocus:co(f,w),onBlur:co(h,C),onMouseEnter:co(d,w),onMouseLeave:co(m,C),onTouchStart:co(y,w)}]:[!1,b,{}]}function co(e,n){return r=>{e&&e(r),r.defaultPrevented||n(r)}}function rR({page:e,...n}){let{router:r}=D0(),i=x.useMemo(()=>E0(r.routes,e,r.basename),[r.routes,e,r.basename]);return i?x.createElement(iR,{page:e,matches:i,...n}):null}function aR(e){let{manifest:n,routeModules:r}=O0(),[i,o]=x.useState([]);return x.useEffect(()=>{let s=!1;return QT(e,n,r).then(c=>{s||o(c)}),()=>{s=!0}},[e,n,r]),i}function iR({page:e,matches:n,...r}){let i=on(),{manifest:o,routeModules:s}=O0(),{basename:c}=D0(),{loaderData:f,matches:h}=tR(),d=x.useMemo(()=>Dx(e,n,h,o,i,"data"),[e,n,h,o,i]),m=x.useMemo(()=>Dx(e,n,h,o,i,"assets"),[e,n,h,o,i]),y=x.useMemo(()=>{if(e===i.pathname+i.search+i.hash)return[];let C=new Set,k=!1;if(n.forEach(A=>{let _=o.routes[A.route.id];!_||!_.hasLoader||(!d.some(N=>N.route.id===A.route.id)&&A.route.id in f&&s[A.route.id]?.shouldRevalidate||_.hasClientLoader?k=!0:C.add(A.route.id))}),C.size===0)return[];let T=YT(e,c,"data");return k&&C.size>0&&T.searchParams.set("_routes",n.filter(A=>C.has(A.route.id)).map(A=>A.route.id).join(",")),[T.pathname+T.search]},[c,f,i,o,d,n,e,s]),b=x.useMemo(()=>ZT(m,o),[m,o]),w=aR(m);return x.createElement(x.Fragment,null,y.map(C=>x.createElement("link",{key:C,rel:"prefetch",as:"fetch",href:C,...r})),b.map(C=>x.createElement("link",{key:C,rel:"modulepreload",href:C,...r})),w.map(({key:C,link:k})=>x.createElement("link",{key:C,nonce:r.nonce,...k})))}function lR(...e){return n=>{e.forEach(r=>{typeof r=="function"?r(n):r!=null&&(r.current=n)})}}var L0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{L0&&(window.__reactRouterVersion="7.8.2")}catch{}function oR({basename:e,children:n,window:r}){let i=x.useRef();i.current==null&&(i.current=GA({window:r,v5Compat:!0}));let o=i.current,[s,c]=x.useState({action:o.action,location:o.location}),f=x.useCallback(h=>{x.startTransition(()=>c(h))},[c]);return x.useLayoutEffect(()=>o.listen(f),[o,f]),x.createElement(zT,{basename:e,children:n,location:s.location,navigationType:s.action,navigator:o})}var z0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,$n=x.forwardRef(function({onClick:n,discover:r="render",prefetch:i="none",relative:o,reloadDocument:s,replace:c,state:f,target:h,to:d,preventScrollReset:m,viewTransition:y,...b},w){let{basename:C}=x.useContext(Xn),k=typeof d=="string"&&z0.test(d),T,A=!1;if(typeof d=="string"&&k&&(T=d,L0))try{let ee=new URL(window.location.href),P=d.startsWith("//")?new URL(ee.protocol+d):new URL(d),ne=Or(P.pathname,C);P.origin===ee.origin&&ne!=null?d=ne+P.search+P.hash:A=!0}catch{On(!1,`<Link to="${d}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let _=xT(d,{relative:o}),[N,O,z]=nR(i,b),j=fR(d,{replace:c,state:f,target:h,preventScrollReset:m,relative:o,viewTransition:y});function $(ee){n&&n(ee),ee.defaultPrevented||j(ee)}let G=x.createElement("a",{...b,...z,href:T||_,onClick:A||s?n:$,ref:lR(w,O),target:h,"data-discover":!k&&r==="render"?"true":void 0});return N&&!k?x.createElement(x.Fragment,null,G,x.createElement(rR,{page:_})):G});$n.displayName="Link";var sR=x.forwardRef(function({"aria-current":n="page",caseSensitive:r=!1,className:i="",end:o=!1,style:s,to:c,viewTransition:f,children:h,...d},m){let y=Ho(c,{relative:d.relative}),b=on(),w=x.useContext(oc),{navigator:C,basename:k}=x.useContext(Xn),T=w!=null&&gR(y)&&f===!0,A=C.encodeLocation?C.encodeLocation(y).pathname:y.pathname,_=b.pathname,N=w&&w.navigation&&w.navigation.location?w.navigation.location.pathname:null;r||(_=_.toLowerCase(),N=N?N.toLowerCase():null,A=A.toLowerCase()),N&&k&&(N=Or(N,k)||N);const O=A!=="/"&&A.endsWith("/")?A.length-1:A.length;let z=_===A||!o&&_.startsWith(A)&&_.charAt(O)==="/",j=N!=null&&(N===A||!o&&N.startsWith(A)&&N.charAt(A.length)==="/"),$={isActive:z,isPending:j,isTransitioning:T},G=z?n:void 0,ee;typeof i=="function"?ee=i($):ee=[i,z?"active":null,j?"pending":null,T?"transitioning":null].filter(Boolean).join(" ");let P=typeof s=="function"?s($):s;return x.createElement($n,{...d,"aria-current":G,className:ee,ref:m,style:P,to:c,viewTransition:f},typeof h=="function"?h($):h)});sR.displayName="NavLink";var uR=x.forwardRef(({discover:e="render",fetcherKey:n,navigate:r,reloadDocument:i,replace:o,state:s,method:c=Du,action:f,onSubmit:h,relative:d,preventScrollReset:m,viewTransition:y,...b},w)=>{let C=pR(),k=mR(f,{relative:d}),T=c.toLowerCase()==="get"?"get":"post",A=typeof f=="string"&&z0.test(f),_=N=>{if(h&&h(N),N.defaultPrevented)return;N.preventDefault();let O=N.nativeEvent.submitter,z=O?.getAttribute("formmethod")||c;C(O||N.currentTarget,{fetcherKey:n,method:z,navigate:r,replace:o,state:s,relative:d,preventScrollReset:m,viewTransition:y})};return x.createElement("form",{ref:w,method:T,action:k,onSubmit:i?h:_,...b,"data-discover":!A&&e==="render"?"true":void 0})});uR.displayName="Form";function cR(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function P0(e){let n=x.useContext(al);return ct(n,cR(e)),n}function fR(e,{target:n,replace:r,state:i,preventScrollReset:o,relative:s,viewTransition:c}={}){let f=Uo(),h=on(),d=Ho(e,{relative:s});return x.useCallback(m=>{if(FT(m,n)){m.preventDefault();let y=r!==void 0?r:Ao(h)===Ao(d);f(e,{replace:y,state:i,preventScrollReset:o,relative:s,viewTransition:c})}},[h,f,d,r,i,n,e,o,s,c])}function LB(e){On(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let n=x.useRef(Ih(e)),r=x.useRef(!1),i=on(),o=x.useMemo(()=>qT(i.search,r.current?null:n.current),[i.search]),s=Uo(),c=x.useCallback((f,h)=>{const d=Ih(typeof f=="function"?f(new URLSearchParams(o)):f);r.current=!0,s("?"+d,h)},[s,o]);return[o,c]}var dR=0,hR=()=>`__${String(++dR)}__`;function pR(){let{router:e}=P0("useSubmit"),{basename:n}=x.useContext(Xn),r=jT();return x.useCallback(async(i,o={})=>{let{action:s,method:c,encType:f,formData:h,body:d}=GT(i,n);if(o.navigate===!1){let m=o.fetcherKey||hR();await e.fetch(m,r,o.action||s,{preventScrollReset:o.preventScrollReset,formData:h,body:d,formMethod:o.method||c,formEncType:o.encType||f,flushSync:o.flushSync})}else await e.navigate(o.action||s,{preventScrollReset:o.preventScrollReset,formData:h,body:d,formMethod:o.method||c,formEncType:o.encType||f,replace:o.replace,state:o.state,fromRouteId:r,flushSync:o.flushSync,viewTransition:o.viewTransition})},[e,n,r])}function mR(e,{relative:n}={}){let{basename:r}=x.useContext(Xn),i=x.useContext(Ln);ct(i,"useFormAction must be used inside a RouteContext");let[o]=i.matches.slice(-1),s={...Ho(e||".",{relative:n})},c=on();if(e==null){s.search=c.search;let f=new URLSearchParams(s.search),h=f.getAll("index");if(h.some(m=>m==="")){f.delete("index"),h.filter(y=>y).forEach(y=>f.append("index",y));let m=f.toString();s.search=m?`?${m}`:""}}return(!e||e===".")&&o.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(s.pathname=s.pathname==="/"?r:Dr([r,s.pathname])),Ao(s)}function gR(e,{relative:n}={}){let r=x.useContext(T0);ct(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=P0("useViewTransitionState"),o=Ho(e,{relative:n});if(!r.isTransitioning)return!1;let s=Or(r.currentLocation.pathname,i)||r.currentLocation.pathname,c=Or(r.nextLocation.pathname,i)||r.nextLocation.pathname;return $u(o.pathname,c)!=null||$u(o.pathname,s)!=null}var uc=S0();const yR=lc(uc);var cc=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},fc=typeof window>"u"||"Deno"in globalThis;function Vn(){}function vR(e,n){return typeof e=="function"?e(n):e}function xR(e){return typeof e=="number"&&e>=0&&e!==1/0}function bR(e,n){return Math.max(e+(n||0)-Date.now(),0)}function Bh(e,n){return typeof e=="function"?e(n):e}function wR(e,n){return typeof e=="function"?e(n):e}function Ox(e,n){const{type:r="all",exact:i,fetchStatus:o,predicate:s,queryKey:c,stale:f}=e;if(c){if(i){if(n.queryHash!==Tp(c,n.options))return!1}else if(!Ro(n.queryKey,c))return!1}if(r!=="all"){const h=n.isActive();if(r==="active"&&!h||r==="inactive"&&h)return!1}return!(typeof f=="boolean"&&n.isStale()!==f||o&&o!==n.state.fetchStatus||s&&!s(n))}function Lx(e,n){const{exact:r,status:i,predicate:o,mutationKey:s}=e;if(s){if(!n.options.mutationKey)return!1;if(r){if(To(n.options.mutationKey)!==To(s))return!1}else if(!Ro(n.options.mutationKey,s))return!1}return!(i&&n.state.status!==i||o&&!o(n))}function Tp(e,n){return(n?.queryKeyHashFn||To)(e)}function To(e){return JSON.stringify(e,(n,r)=>Uh(r)?Object.keys(r).sort().reduce((i,o)=>(i[o]=r[o],i),{}):r)}function Ro(e,n){return e===n?!0:typeof e!=typeof n?!1:e&&n&&typeof e=="object"&&typeof n=="object"?Object.keys(n).every(r=>Ro(e[r],n[r])):!1}function I0(e,n){if(e===n)return e;const r=zx(e)&&zx(n);if(r||Uh(e)&&Uh(n)){const i=r?e:Object.keys(e),o=i.length,s=r?n:Object.keys(n),c=s.length,f=r?[]:{},h=new Set(i);let d=0;for(let m=0;m<c;m++){const y=r?m:s[m];(!r&&h.has(y)||r)&&e[y]===void 0&&n[y]===void 0?(f[y]=void 0,d++):(f[y]=I0(e[y],n[y]),f[y]===e[y]&&e[y]!==void 0&&d++)}return o===c&&d===o?e:f}return n}function zx(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Uh(e){if(!Px(e))return!1;const n=e.constructor;if(n===void 0)return!0;const r=n.prototype;return!(!Px(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Px(e){return Object.prototype.toString.call(e)==="[object Object]"}function SR(e){return new Promise(n=>{setTimeout(n,e)})}function ER(e,n,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,n):r.structuralSharing!==!1?I0(e,n):n}function CR(e,n,r=0){const i=[...e,n];return r&&i.length>r?i.slice(1):i}function kR(e,n,r=0){const i=[n,...e];return r&&i.length>r?i.slice(0,-1):i}var Rp=Symbol();function B0(e,n){return!e.queryFn&&n?.initialPromise?()=>n.initialPromise:!e.queryFn||e.queryFn===Rp?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var AR=class extends cc{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!fc&&window.addEventListener){const n=()=>e();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(n=>{n(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},U0=new AR,TR=class extends cc{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!fc&&window.addEventListener){const n=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(r=>{r(e)}))}isOnline(){return this.#e}},Gu=new TR;function RR(){let e,n;const r=new Promise((o,s)=>{e=o,n=s});r.status="pending",r.catch(()=>{});function i(o){Object.assign(r,o),delete r.resolve,delete r.reject}return r.resolve=o=>{i({status:"fulfilled",value:o}),e(o)},r.reject=o=>{i({status:"rejected",reason:o}),n(o)},r}function _R(e){return Math.min(1e3*2**e,3e4)}function H0(e){return(e??"online")==="online"?Gu.isOnline():!0}var F0=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function q0(e){let n=!1,r=0,i;const o=RR(),s=()=>o.status!=="pending",c=k=>{s()||(b(new F0(k)),e.abort?.())},f=()=>{n=!0},h=()=>{n=!1},d=()=>U0.isFocused()&&(e.networkMode==="always"||Gu.isOnline())&&e.canRun(),m=()=>H0(e.networkMode)&&e.canRun(),y=k=>{s()||(i?.(),o.resolve(k))},b=k=>{s()||(i?.(),o.reject(k))},w=()=>new Promise(k=>{i=T=>{(s()||d())&&k(T)},e.onPause?.()}).then(()=>{i=void 0,s()||e.onContinue?.()}),C=()=>{if(s())return;let k;const T=r===0?e.initialPromise:void 0;try{k=T??e.fn()}catch(A){k=Promise.reject(A)}Promise.resolve(k).then(y).catch(A=>{if(s())return;const _=e.retry??(fc?0:3),N=e.retryDelay??_R,O=typeof N=="function"?N(r,A):N,z=_===!0||typeof _=="number"&&r<_||typeof _=="function"&&_(r,A);if(n||!z){b(A);return}r++,e.onFail?.(r,A),SR(O).then(()=>d()?void 0:w()).then(()=>{n?b(A):C()})})};return{promise:o,status:()=>o.status,cancel:c,continue:()=>(i?.(),o),cancelRetry:f,continueRetry:h,canStart:m,start:()=>(m()?C():w().then(C),o)}}var NR=e=>setTimeout(e,0);function MR(){let e=[],n=0,r=f=>{f()},i=f=>{f()},o=NR;const s=f=>{n?e.push(f):o(()=>{r(f)})},c=()=>{const f=e;e=[],f.length&&o(()=>{i(()=>{f.forEach(h=>{r(h)})})})};return{batch:f=>{let h;n++;try{h=f()}finally{n--,n||c()}return h},batchCalls:f=>(...h)=>{s(()=>{f(...h)})},schedule:s,setNotifyFunction:f=>{r=f},setBatchNotifyFunction:f=>{i=f},setScheduler:f=>{o=f}}}var Qt=MR(),V0=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),xR(this.gcTime)&&(this.#e=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(fc?1/0:300*1e3))}clearGcTimeout(){this.#e&&(clearTimeout(this.#e),this.#e=void 0)}},jR=class extends V0{#e;#t;#n;#a;#r;#l;#o;constructor(e){super(),this.#o=!1,this.#l=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#a=e.client,this.#n=this.#a.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=OR(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(e){this.options={...this.#l,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,n){const r=ER(this.state.data,e,this.options);return this.#i({data:r,type:"success",dataUpdatedAt:n?.updatedAt,manual:n?.manual}),r}setState(e,n){this.#i({type:"setState",state:e,setStateOptions:n})}cancel(e){const n=this.#r?.promise;return this.#r?.cancel(e),n?n.then(Vn).catch(Vn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>wR(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Rp||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Bh(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!bR(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(n=>n.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(n=>n.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(n=>n!==e),this.observers.length||(this.#r&&(this.#o?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(e,n){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&n?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){const f=this.observers.find(h=>h.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,i=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(this.#o=!0,r.signal)})},o=()=>{const f=B0(this.options,n),d=(()=>{const m={client:this.#a,queryKey:this.queryKey,meta:this.meta};return i(m),m})();return this.#o=!1,this.options.persister?this.options.persister(f,d,this):f(d)},c=(()=>{const f={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:this.#a,state:this.state,fetchFn:o};return i(f),f})();this.options.behavior?.onFetch(c,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==c.fetchOptions?.meta)&&this.#i({type:"fetch",meta:c.fetchOptions?.meta}),this.#r=q0({initialPromise:n?.initialPromise,fn:c.fetchFn,abort:r.abort.bind(r),onFail:(f,h)=>{this.#i({type:"failed",failureCount:f,error:h})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0});try{const f=await this.#r.start();if(f===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(f),this.#n.config.onSuccess?.(f,this),this.#n.config.onSettled?.(f,this.state.error,this),f}catch(f){if(f instanceof F0){if(f.silent)return this.#r.promise;if(f.revert){if(this.setState({...this.#t,fetchStatus:"idle"}),this.state.data===void 0)throw f;return this.state.data}}throw this.#i({type:"error",error:f}),this.#n.config.onError?.(f,this),this.#n.config.onSettled?.(this.state.data,f,this),f}finally{this.scheduleGc()}}#i(e){const n=r=>{switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...DR(r.data,this.options),fetchMeta:e.meta??null};case"success":const i={...r,data:e.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?i:void 0,i;case"error":const o=e.error;return{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}};this.state=n(this.state),Qt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function DR(e,n){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:H0(n.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function OR(e){const n=typeof e.initialData=="function"?e.initialData():e.initialData,r=n!==void 0,i=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:n,dataUpdateCount:0,dataUpdatedAt:r?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var LR=class extends cc{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,n,r){const i=n.queryKey,o=n.queryHash??Tp(i,n);let s=this.get(o);return s||(s=new jR({client:e,queryKey:i,queryHash:o,options:e.defaultQueryOptions(n),state:r,defaultOptions:e.getQueryDefaults(i)}),this.add(s)),s}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const n=this.#e.get(e.queryHash);n&&(e.destroy(),n===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Qt.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const n={exact:!0,...e};return this.getAll().find(r=>Ox(n,r))}findAll(e={}){const n=this.getAll();return Object.keys(e).length>0?n.filter(r=>Ox(e,r)):n}notify(e){Qt.batch(()=>{this.listeners.forEach(n=>{n(e)})})}onFocus(){Qt.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Qt.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},zR=class extends V0{#e;#t;#n;constructor(e){super(),this.mutationId=e.mutationId,this.#t=e.mutationCache,this.#e=[],this.state=e.state||PR(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#e.includes(e)||(this.#e.push(e),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#e=this.#e.filter(n=>n!==e),this.scheduleGc(),this.#t.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#t.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(e){const n=()=>{this.#a({type:"continue"})};this.#n=q0({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(o,s)=>{this.#a({type:"failed",failureCount:o,error:s})},onPause:()=>{this.#a({type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#t.canRun(this)});const r=this.state.status==="pending",i=!this.#n.canStart();try{if(r)n();else{this.#a({type:"pending",variables:e,isPaused:i}),await this.#t.config.onMutate?.(e,this);const s=await this.options.onMutate?.(e);s!==this.state.context&&this.#a({type:"pending",context:s,variables:e,isPaused:i})}const o=await this.#n.start();return await this.#t.config.onSuccess?.(o,e,this.state.context,this),await this.options.onSuccess?.(o,e,this.state.context),await this.#t.config.onSettled?.(o,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(o,null,e,this.state.context),this.#a({type:"success",data:o}),o}catch(o){try{throw await this.#t.config.onError?.(o,e,this.state.context,this),await this.options.onError?.(o,e,this.state.context),await this.#t.config.onSettled?.(void 0,o,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,o,e,this.state.context),o}finally{this.#a({type:"error",error:o})}}finally{this.#t.runNext(this)}}#a(e){const n=r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Qt.batch(()=>{this.#e.forEach(r=>{r.onMutationUpdate(e)}),this.#t.notify({mutation:this,type:"updated",action:e})})}};function PR(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var IR=class extends cc{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,n,r){const i=new zR({mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(n),state:r});return this.add(i),i}add(e){this.#e.add(e);const n=xu(e);if(typeof n=="string"){const r=this.#t.get(n);r?r.push(e):this.#t.set(n,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const n=xu(e);if(typeof n=="string"){const r=this.#t.get(n);if(r)if(r.length>1){const i=r.indexOf(e);i!==-1&&r.splice(i,1)}else r[0]===e&&this.#t.delete(n)}}this.notify({type:"removed",mutation:e})}canRun(e){const n=xu(e);if(typeof n=="string"){const i=this.#t.get(n)?.find(o=>o.state.status==="pending");return!i||i===e}else return!0}runNext(e){const n=xu(e);return typeof n=="string"?this.#t.get(n)?.find(i=>i!==e&&i.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Qt.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const n={exact:!0,...e};return this.getAll().find(r=>Lx(n,r))}findAll(e={}){return this.getAll().filter(n=>Lx(e,n))}notify(e){Qt.batch(()=>{this.listeners.forEach(n=>{n(e)})})}resumePausedMutations(){const e=this.getAll().filter(n=>n.state.isPaused);return Qt.batch(()=>Promise.all(e.map(n=>n.continue().catch(Vn))))}};function xu(e){return e.options.scope?.id}function Ix(e){return{onFetch:(n,r)=>{const i=n.options,o=n.fetchOptions?.meta?.fetchMore?.direction,s=n.state.data?.pages||[],c=n.state.data?.pageParams||[];let f={pages:[],pageParams:[]},h=0;const d=async()=>{let m=!1;const y=C=>{Object.defineProperty(C,"signal",{enumerable:!0,get:()=>(n.signal.aborted?m=!0:n.signal.addEventListener("abort",()=>{m=!0}),n.signal)})},b=B0(n.options,n.fetchOptions),w=async(C,k,T)=>{if(m)return Promise.reject();if(k==null&&C.pages.length)return Promise.resolve(C);const _=(()=>{const j={client:n.client,queryKey:n.queryKey,pageParam:k,direction:T?"backward":"forward",meta:n.options.meta};return y(j),j})(),N=await b(_),{maxPages:O}=n.options,z=T?kR:CR;return{pages:z(C.pages,N,O),pageParams:z(C.pageParams,k,O)}};if(o&&s.length){const C=o==="backward",k=C?BR:Bx,T={pages:s,pageParams:c},A=k(i,T);f=await w(T,A,C)}else{const C=e??s.length;do{const k=h===0?c[0]??i.initialPageParam:Bx(i,f);if(h>0&&k==null)break;f=await w(f,k),h++}while(h<C)}return f};n.options.persister?n.fetchFn=()=>n.options.persister?.(d,{client:n.client,queryKey:n.queryKey,meta:n.options.meta,signal:n.signal},r):n.fetchFn=d}}}function Bx(e,{pages:n,pageParams:r}){const i=n.length-1;return n.length>0?e.getNextPageParam(n[i],n,r[i],r):void 0}function BR(e,{pages:n,pageParams:r}){return n.length>0?e.getPreviousPageParam?.(n[0],n,r[0],r):void 0}var UR=class{#e;#t;#n;#a;#r;#l;#o;#i;constructor(e={}){this.#e=e.queryCache||new LR,this.#t=e.mutationCache||new IR,this.#n=e.defaultOptions||{},this.#a=new Map,this.#r=new Map,this.#l=0}mount(){this.#l++,this.#l===1&&(this.#o=U0.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=Gu.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#l--,this.#l===0&&(this.#o?.(),this.#o=void 0,this.#i?.(),this.#i=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const n=this.defaultQueryOptions({queryKey:e});return this.#e.get(n.queryHash)?.state.data}ensureQueryData(e){const n=this.defaultQueryOptions(e),r=this.#e.build(this,n),i=r.state.data;return i===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(Bh(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(i))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:n,state:r})=>{const i=r.data;return[n,i]})}setQueryData(e,n,r){const i=this.defaultQueryOptions({queryKey:e}),s=this.#e.get(i.queryHash)?.state.data,c=vR(n,s);if(c!==void 0)return this.#e.build(this,i).setData(c,{...r,manual:!0})}setQueriesData(e,n,r){return Qt.batch(()=>this.#e.findAll(e).map(({queryKey:i})=>[i,this.setQueryData(i,n,r)]))}getQueryState(e){const n=this.defaultQueryOptions({queryKey:e});return this.#e.get(n.queryHash)?.state}removeQueries(e){const n=this.#e;Qt.batch(()=>{n.findAll(e).forEach(r=>{n.remove(r)})})}resetQueries(e,n){const r=this.#e;return Qt.batch(()=>(r.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...e},n)))}cancelQueries(e,n={}){const r={revert:!0,...n},i=Qt.batch(()=>this.#e.findAll(e).map(o=>o.cancel(r)));return Promise.all(i).then(Vn).catch(Vn)}invalidateQueries(e,n={}){return Qt.batch(()=>(this.#e.findAll(e).forEach(r=>{r.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},n)))}refetchQueries(e,n={}){const r={...n,cancelRefetch:n.cancelRefetch??!0},i=Qt.batch(()=>this.#e.findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let s=o.fetch(void 0,r);return r.throwOnError||(s=s.catch(Vn)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(i).then(Vn)}fetchQuery(e){const n=this.defaultQueryOptions(e);n.retry===void 0&&(n.retry=!1);const r=this.#e.build(this,n);return r.isStaleByTime(Bh(n.staleTime,r))?r.fetch(n):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Vn).catch(Vn)}fetchInfiniteQuery(e){return e.behavior=Ix(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Vn).catch(Vn)}ensureInfiniteQueryData(e){return e.behavior=Ix(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Gu.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,n){this.#a.set(To(e),{queryKey:e,defaultOptions:n})}getQueryDefaults(e){const n=[...this.#a.values()],r={};return n.forEach(i=>{Ro(e,i.queryKey)&&Object.assign(r,i.defaultOptions)}),r}setMutationDefaults(e,n){this.#r.set(To(e),{mutationKey:e,defaultOptions:n})}getMutationDefaults(e){const n=[...this.#r.values()],r={};return n.forEach(i=>{Ro(e,i.mutationKey)&&Object.assign(r,i.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const n={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return n.queryHash||(n.queryHash=Tp(n.queryKey,n)),n.refetchOnReconnect===void 0&&(n.refetchOnReconnect=n.networkMode!=="always"),n.throwOnError===void 0&&(n.throwOnError=!!n.suspense),!n.networkMode&&n.persister&&(n.networkMode="offlineFirst"),n.queryFn===Rp&&(n.enabled=!1),n}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},HR=x.createContext(void 0),FR=({client:e,children:n})=>(x.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),g.jsx(HR.Provider,{value:e,children:n}));const qR={theme:"system",setTheme:()=>null},$0=x.createContext(qR);function VR({children:e,defaultTheme:n="system",storageKey:r="ui-theme",...i}){const[o,s]=x.useState(n);x.useEffect(()=>{const f=localStorage?.getItem(r);f&&s(f)},[r]),x.useEffect(()=>{const f=window.document.documentElement;if(f.classList.remove("light","dark","coconut"),o==="system"){const h=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";f.classList.add(h);return}f.classList.add(o)},[o]);const c={theme:o,setTheme:f=>{localStorage?.setItem(r,f),s(f)}};return g.jsx($0.Provider,{...i,value:c,children:e})}const zB=()=>{const e=x.useContext($0);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e},xt="",PB="https://app.coconut.dev";async function Bi(e,n={}){const r=`${xt}${e}`,i={headers:{"Content-Type":"application/json",...n.headers},...n},o=await fetch(r,i);if(!o.ok)throw new Error(`API request failed: ${o.status} ${o.statusText}`);return o.json()}const IB=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}`,G0=x.createContext(void 0);function $R({children:e}){const[n,r]=x.useState({user:null,isAuthenticated:!1,isLoading:!0,authEnabled:!1}),i=x.useCallback(async()=>{try{const h=await Bi("/api/v1/auth/status");if(!h.success){r({user:null,isAuthenticated:!1,isLoading:!1,authEnabled:!1});return}if(!(h.data?.enabled||!1)){r({user:null,isAuthenticated:!1,isLoading:!1,authEnabled:!1});return}try{const m=await Bi("/api/v1/auth/me");m.success&&m.data?.user?r({user:m.data.user,isAuthenticated:!0,isLoading:!1,authEnabled:!0}):r({user:null,isAuthenticated:!1,isLoading:!1,authEnabled:!0})}catch{r({user:null,isAuthenticated:!1,isLoading:!1,authEnabled:!0})}}catch(h){console.error("Failed to check auth status:",h),r({user:null,isAuthenticated:!1,isLoading:!1,authEnabled:!1})}},[]);x.useEffect(()=>{i()},[i]);const o=x.useCallback(async(h,d)=>{const m=await Bi("/api/v1/auth/login",{method:"POST",body:JSON.stringify({email:h,password:d})});if(!m.success)throw new Error(m.error||"Login failed");r({user:m.data.user,isAuthenticated:!0,isLoading:!1,authEnabled:!0})},[]),s=x.useCallback(async(h,d,m)=>{const y=await Bi("/api/v1/auth/register",{method:"POST",body:JSON.stringify({email:h,password:d,name:m})});if(!y.success)throw new Error(y.error||"Registration failed");r({user:y.data.user,isAuthenticated:!0,isLoading:!1,authEnabled:!0})},[]),c=x.useCallback(async()=>{await Bi("/api/v1/auth/logout",{method:"POST"}),r({user:null,isAuthenticated:!1,isLoading:!1,authEnabled:!0})},[]),f=x.useCallback(async()=>{try{const h=await Bi("/api/v1/auth/me");h.success&&h.data?.user&&r(d=>({...d,user:h.data.user,isAuthenticated:!0}))}catch(h){console.error("Failed to refresh user:",h)}},[]);return g.jsx(G0.Provider,{value:{...n,login:o,register:s,logout:c,refreshUser:f,checkAuthStatus:i},children:e})}function Y0(){const e=x.useContext(G0);if(e===void 0)throw new Error("useAuth must be used within an AuthProvider");return e}const K0=x.createContext(null);function GR(){const e=x.useContext(K0);if(!e)throw new Error("useSidebarBadges must be used within SidebarBadgeProvider");return e}function YR({children:e,pollInterval:n=1e4}){const[r,i]=x.useState({codeSessions:0,gitChanges:0,terminalSessions:0,runningScheduledJobs:0}),[o,s]=x.useState(!0),c=x.useCallback(async()=>{try{const[h,d,m]=await Promise.allSettled([fetch(`${xt}/api/v1/terminal/sessions`).then(b=>b.json()),fetch(`${xt}/api/v1/git/status`).then(b=>b.json()),fetch(`${xt}/api/v1/jobs`).then(b=>b.json())]),y={codeSessions:0,gitChanges:0,terminalSessions:0,runningScheduledJobs:0};if(h.status==="fulfilled"&&h.value?.sessions){const b=h.value.sessions;y.codeSessions=b.filter(w=>w.taskId?.startsWith("cp-")||w.taskId?.startsWith("sk-")).length,y.terminalSessions=b.filter(w=>!w.taskId?.startsWith("cp-")&&!w.taskId?.startsWith("sk-")).length}if(d.status==="fulfilled"&&d.value?.success&&d.value?.data?.changes&&(y.gitChanges=d.value.data.changes.length),m.status==="fulfilled"&&m.value?.success&&m.value?.data){const b=Array.isArray(m.value.data)?m.value.data:[],w=b.filter(C=>{if(!C.runs||!Array.isArray(C.runs)||C.runs.length===0)return!1;const k=C.runs[0],T=k&&k.status==="running";return T&&console.log("[SidebarBadge] Running job detected:",{name:C.name,status:k.status,startedAt:k.startedAt,finishedAt:k.finishedAt}),T});y.runningScheduledJobs=w.length,(w.length>0||b.length>0)&&console.log("[SidebarBadge] Jobs summary:",{total:b.length,running:w.length,runningJobNames:w.map(C=>C.name)})}i(y)}catch(h){console.error("Failed to fetch sidebar badges:",h)}finally{s(!1)}},[]);x.useEffect(()=>{c()},[c]),x.useEffect(()=>{const h=setInterval(c,n);return()=>clearInterval(h)},[c,n]),x.useEffect(()=>{const h=()=>{console.log("[SidebarBadge] Tab focused, refreshing badges..."),c()};return window.addEventListener("focus",h),()=>window.removeEventListener("focus",h)},[c]);const f={badges:r,loading:o,refresh:c};return g.jsx(K0.Provider,{value:f,children:e})}function KR({children:e}){const[n]=x.useState(()=>new UR({defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!1}}}));return g.jsx(FR,{client:n,children:g.jsx(VR,{defaultTheme:"system",storageKey:"coconut-ui-theme",children:g.jsx($R,{children:g.jsx(YR,{children:e})})})})}const XR=1,QR=1e6;let th=0;function ZR(){return th=(th+1)%Number.MAX_SAFE_INTEGER,th.toString()}const nh=new Map,Ux=e=>{if(nh.has(e))return;const n=setTimeout(()=>{nh.delete(e),wo({type:"REMOVE_TOAST",toastId:e})},QR);nh.set(e,n)},WR=(e,n)=>{switch(n.type){case"ADD_TOAST":return{...e,toasts:[n.toast,...e.toasts].slice(0,XR)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(r=>r.id===n.toast.id?{...r,...n.toast}:r)};case"DISMISS_TOAST":{const{toastId:r}=n;return r?Ux(r):e.toasts.forEach(i=>{Ux(i.id)}),{...e,toasts:e.toasts.map(i=>i.id===r||r===void 0?{...i,open:!1}:i)}}case"REMOVE_TOAST":return n.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(r=>r.id!==n.toastId)}}},Lu=[];let zu={toasts:[]};function wo(e){zu=WR(zu,e),Lu.forEach(n=>{n(zu)})}function Hh({...e}){const n=ZR(),r=o=>wo({type:"UPDATE_TOAST",toast:{...o,id:n}}),i=()=>wo({type:"DISMISS_TOAST",toastId:n});return wo({type:"ADD_TOAST",toast:{...e,id:n,open:!0,onOpenChange:o=>{o||i()}}}),{id:n,dismiss:i,update:r}}function JR(){const[e,n]=x.useState(zu);return x.useEffect(()=>(Lu.push(n),()=>{const r=Lu.indexOf(n);r>-1&&Lu.splice(r,1)}),[e]),{...e,toast:Hh,dismiss:r=>wo({type:"DISMISS_TOAST",toastId:r})}}function me(e,n,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e?.(o),r===!1||!o.defaultPrevented)return n?.(o)}}function Hx(e,n){if(typeof e=="function")return e(n);e!=null&&(e.current=n)}function dc(...e){return n=>{let r=!1;const i=e.map(o=>{const s=Hx(o,n);return!r&&typeof s=="function"&&(r=!0),s});if(r)return()=>{for(let o=0;o<i.length;o++){const s=i[o];typeof s=="function"?s():Hx(e[o],null)}}}}function Xe(...e){return x.useCallback(dc(...e),e)}function e_(e,n){const r=x.createContext(n),i=s=>{const{children:c,...f}=s,h=x.useMemo(()=>f,Object.values(f));return g.jsx(r.Provider,{value:h,children:c})};i.displayName=e+"Provider";function o(s){const c=x.useContext(r);if(c)return c;if(n!==void 0)return n;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[i,o]}function Qn(e,n=[]){let r=[];function i(s,c){const f=x.createContext(c),h=r.length;r=[...r,c];const d=y=>{const{scope:b,children:w,...C}=y,k=b?.[e]?.[h]||f,T=x.useMemo(()=>C,Object.values(C));return g.jsx(k.Provider,{value:T,children:w})};d.displayName=s+"Provider";function m(y,b){const w=b?.[e]?.[h]||f,C=x.useContext(w);if(C)return C;if(c!==void 0)return c;throw new Error(`\`${y}\` must be used within \`${s}\``)}return[d,m]}const o=()=>{const s=r.map(c=>x.createContext(c));return function(f){const h=f?.[e]||s;return x.useMemo(()=>({[`__scope${e}`]:{...f,[e]:h}}),[f,h])}};return o.scopeName=e,[i,t_(o,...n)]}function t_(...e){const n=e[0];if(e.length===1)return n;const r=()=>{const i=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const c=i.reduce((f,{useScope:h,scopeName:d})=>{const y=h(s)[`__scope${d}`];return{...f,...y}},{});return x.useMemo(()=>({[`__scope${n.scopeName}`]:c}),[c])}};return r.scopeName=n.scopeName,r}function Wi(e){const n=n_(e),r=x.forwardRef((i,o)=>{const{children:s,...c}=i,f=x.Children.toArray(s),h=f.find(r_);if(h){const d=h.props.children,m=f.map(y=>y===h?x.Children.count(d)>1?x.Children.only(null):x.isValidElement(d)?d.props.children:null:y);return g.jsx(n,{...c,ref:o,children:x.isValidElement(d)?x.cloneElement(d,void 0,m):null})}return g.jsx(n,{...c,ref:o,children:s})});return r.displayName=`${e}.Slot`,r}var ll=Wi("Slot");function n_(e){const n=x.forwardRef((r,i)=>{const{children:o,...s}=r;if(x.isValidElement(o)){const c=i_(o),f=a_(s,o.props);return o.type!==x.Fragment&&(f.ref=i?dc(i,c):c),x.cloneElement(o,f)}return x.Children.count(o)>1?x.Children.only(null):null});return n.displayName=`${e}.SlotClone`,n}var X0=Symbol("radix.slottable");function Q0(e){const n=({children:r})=>g.jsx(g.Fragment,{children:r});return n.displayName=`${e}.Slottable`,n.__radixId=X0,n}function r_(e){return x.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===X0}function a_(e,n){const r={...n};for(const i in n){const o=e[i],s=n[i];/^on[A-Z]/.test(i)?o&&s?r[i]=(...f)=>{const h=s(...f);return o(...f),h}:o&&(r[i]=o):i==="style"?r[i]={...o,...s}:i==="className"&&(r[i]=[o,s].filter(Boolean).join(" "))}return{...e,...r}}function i_(e){let n=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=n&&"isReactWarning"in n&&n.isReactWarning;return r?e.ref:(n=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=n&&"isReactWarning"in n&&n.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function _p(e){const n=e+"CollectionProvider",[r,i]=Qn(n),[o,s]=r(n,{collectionRef:{current:null},itemMap:new Map}),c=k=>{const{scope:T,children:A}=k,_=fa.useRef(null),N=fa.useRef(new Map).current;return g.jsx(o,{scope:T,itemMap:N,collectionRef:_,children:A})};c.displayName=n;const f=e+"CollectionSlot",h=Wi(f),d=fa.forwardRef((k,T)=>{const{scope:A,children:_}=k,N=s(f,A),O=Xe(T,N.collectionRef);return g.jsx(h,{ref:O,children:_})});d.displayName=f;const m=e+"CollectionItemSlot",y="data-radix-collection-item",b=Wi(m),w=fa.forwardRef((k,T)=>{const{scope:A,children:_,...N}=k,O=fa.useRef(null),z=Xe(T,O),j=s(m,A);return fa.useEffect(()=>(j.itemMap.set(O,{ref:O,...N}),()=>void j.itemMap.delete(O))),g.jsx(b,{[y]:"",ref:z,children:_})});w.displayName=m;function C(k){const T=s(e+"CollectionConsumer",k);return fa.useCallback(()=>{const _=T.collectionRef.current;if(!_)return[];const N=Array.from(_.querySelectorAll(`[${y}]`));return Array.from(T.itemMap.values()).sort((j,$)=>N.indexOf(j.ref.current)-N.indexOf($.ref.current))},[T.collectionRef,T.itemMap])}return[{Provider:c,Slot:d,ItemSlot:w},C,i]}var l_=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Fe=l_.reduce((e,n)=>{const r=Wi(`Primitive.${n}`),i=x.forwardRef((o,s)=>{const{asChild:c,...f}=o,h=c?r:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(h,{...f,ref:s})});return i.displayName=`Primitive.${n}`,{...e,[n]:i}},{});function Np(e,n){e&&uc.flushSync(()=>e.dispatchEvent(n))}function Ct(e){const n=x.useRef(e);return x.useEffect(()=>{n.current=e}),x.useMemo(()=>(...r)=>n.current?.(...r),[])}function o_(e,n=globalThis?.document){const r=Ct(e);x.useEffect(()=>{const i=o=>{o.key==="Escape"&&r(o)};return n.addEventListener("keydown",i,{capture:!0}),()=>n.removeEventListener("keydown",i,{capture:!0})},[r,n])}var s_="DismissableLayer",Fh="dismissableLayer.update",u_="dismissableLayer.pointerDownOutside",c_="dismissableLayer.focusOutside",Fx,Z0=x.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Fo=x.forwardRef((e,n)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:c,onDismiss:f,...h}=e,d=x.useContext(Z0),[m,y]=x.useState(null),b=m?.ownerDocument??globalThis?.document,[,w]=x.useState({}),C=Xe(n,$=>y($)),k=Array.from(d.layers),[T]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),A=k.indexOf(T),_=m?k.indexOf(m):-1,N=d.layersWithOutsidePointerEventsDisabled.size>0,O=_>=A,z=d_($=>{const G=$.target,ee=[...d.branches].some(P=>P.contains(G));!O||ee||(o?.($),c?.($),$.defaultPrevented||f?.())},b),j=h_($=>{const G=$.target;[...d.branches].some(P=>P.contains(G))||(s?.($),c?.($),$.defaultPrevented||f?.())},b);return o_($=>{_===d.layers.size-1&&(i?.($),!$.defaultPrevented&&f&&($.preventDefault(),f()))},b),x.useEffect(()=>{if(m)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Fx=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(m)),d.layers.add(m),qx(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=Fx)}},[m,b,r,d]),x.useEffect(()=>()=>{m&&(d.layers.delete(m),d.layersWithOutsidePointerEventsDisabled.delete(m),qx())},[m,d]),x.useEffect(()=>{const $=()=>w({});return document.addEventListener(Fh,$),()=>document.removeEventListener(Fh,$)},[]),g.jsx(Fe.div,{...h,ref:C,style:{pointerEvents:N?O?"auto":"none":void 0,...e.style},onFocusCapture:me(e.onFocusCapture,j.onFocusCapture),onBlurCapture:me(e.onBlurCapture,j.onBlurCapture),onPointerDownCapture:me(e.onPointerDownCapture,z.onPointerDownCapture)})});Fo.displayName=s_;var f_="DismissableLayerBranch",W0=x.forwardRef((e,n)=>{const r=x.useContext(Z0),i=x.useRef(null),o=Xe(n,i);return x.useEffect(()=>{const s=i.current;if(s)return r.branches.add(s),()=>{r.branches.delete(s)}},[r.branches]),g.jsx(Fe.div,{...e,ref:o})});W0.displayName=f_;function d_(e,n=globalThis?.document){const r=Ct(e),i=x.useRef(!1),o=x.useRef(()=>{});return x.useEffect(()=>{const s=f=>{if(f.target&&!i.current){let h=function(){J0(u_,r,d,{discrete:!0})};const d={originalEvent:f};f.pointerType==="touch"?(n.removeEventListener("click",o.current),o.current=h,n.addEventListener("click",o.current,{once:!0})):h()}else n.removeEventListener("click",o.current);i.current=!1},c=window.setTimeout(()=>{n.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(c),n.removeEventListener("pointerdown",s),n.removeEventListener("click",o.current)}},[n,r]),{onPointerDownCapture:()=>i.current=!0}}function h_(e,n=globalThis?.document){const r=Ct(e),i=x.useRef(!1);return x.useEffect(()=>{const o=s=>{s.target&&!i.current&&J0(c_,r,{originalEvent:s},{discrete:!1})};return n.addEventListener("focusin",o),()=>n.removeEventListener("focusin",o)},[n,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function qx(){const e=new CustomEvent(Fh);document.dispatchEvent(e)}function J0(e,n,r,{discrete:i}){const o=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});n&&o.addEventListener(e,n,{once:!0}),i?Np(o,s):o.dispatchEvent(s)}var p_=Fo,m_=W0,cr=globalThis?.document?x.useLayoutEffect:()=>{},g_="Portal",qo=x.forwardRef((e,n)=>{const{container:r,...i}=e,[o,s]=x.useState(!1);cr(()=>s(!0),[]);const c=r||o&&globalThis?.document?.body;return c?yR.createPortal(g.jsx(Fe.div,{...i,ref:n}),c):null});qo.displayName=g_;function y_(e,n){return x.useReducer((r,i)=>n[r][i]??r,e)}var $t=e=>{const{present:n,children:r}=e,i=v_(n),o=typeof r=="function"?r({present:i.isPresent}):x.Children.only(r),s=Xe(i.ref,x_(o));return typeof r=="function"||i.isPresent?x.cloneElement(o,{ref:s}):null};$t.displayName="Presence";function v_(e){const[n,r]=x.useState(),i=x.useRef(null),o=x.useRef(e),s=x.useRef("none"),c=e?"mounted":"unmounted",[f,h]=y_(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{const d=bu(i.current);s.current=f==="mounted"?d:"none"},[f]),cr(()=>{const d=i.current,m=o.current;if(m!==e){const b=s.current,w=bu(d);e?h("MOUNT"):w==="none"||d?.display==="none"?h("UNMOUNT"):h(m&&b!==w?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,h]),cr(()=>{if(n){let d;const m=n.ownerDocument.defaultView??window,y=w=>{const k=bu(i.current).includes(CSS.escape(w.animationName));if(w.target===n&&k&&(h("ANIMATION_END"),!o.current)){const T=n.style.animationFillMode;n.style.animationFillMode="forwards",d=m.setTimeout(()=>{n.style.animationFillMode==="forwards"&&(n.style.animationFillMode=T)})}},b=w=>{w.target===n&&(s.current=bu(i.current))};return n.addEventListener("animationstart",b),n.addEventListener("animationcancel",y),n.addEventListener("animationend",y),()=>{m.clearTimeout(d),n.removeEventListener("animationstart",b),n.removeEventListener("animationcancel",y),n.removeEventListener("animationend",y)}}else h("ANIMATION_END")},[n,h]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:x.useCallback(d=>{i.current=d?getComputedStyle(d):null,r(d)},[])}}function bu(e){return e?.animationName||"none"}function x_(e){let n=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=n&&"isReactWarning"in n&&n.isReactWarning;return r?e.ref:(n=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=n&&"isReactWarning"in n&&n.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var b_=w0[" useInsertionEffect ".trim().toString()]||cr;function ol({prop:e,defaultProp:n,onChange:r=()=>{},caller:i}){const[o,s,c]=w_({defaultProp:n,onChange:r}),f=e!==void 0,h=f?e:o;{const m=x.useRef(e!==void 0);x.useEffect(()=>{const y=m.current;y!==f&&console.warn(`${i} is changing from ${y?"controlled":"uncontrolled"} to ${f?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),m.current=f},[f,i])}const d=x.useCallback(m=>{if(f){const y=S_(m)?m(e):m;y!==e&&c.current?.(y)}else s(m)},[f,e,s,c]);return[h,d]}function w_({defaultProp:e,onChange:n}){const[r,i]=x.useState(e),o=x.useRef(r),s=x.useRef(n);return b_(()=>{s.current=n},[n]),x.useEffect(()=>{o.current!==r&&(s.current?.(r),o.current=r)},[r,o]),[r,i,s]}function S_(e){return typeof e=="function"}var E_=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),C_="VisuallyHidden",hc=x.forwardRef((e,n)=>g.jsx(Fe.span,{...e,ref:n,style:{...E_,...e.style}}));hc.displayName=C_;var k_=hc,Mp="ToastProvider",[jp,A_,T_]=_p("Toast"),[e1,BB]=Qn("Toast",[T_]),[R_,pc]=e1(Mp),t1=e=>{const{__scopeToast:n,label:r="Notification",duration:i=5e3,swipeDirection:o="right",swipeThreshold:s=50,children:c}=e,[f,h]=x.useState(null),[d,m]=x.useState(0),y=x.useRef(!1),b=x.useRef(!1);return r.trim()||console.error(`Invalid prop \`label\` supplied to \`${Mp}\`. Expected non-empty \`string\`.`),g.jsx(jp.Provider,{scope:n,children:g.jsx(R_,{scope:n,label:r,duration:i,swipeDirection:o,swipeThreshold:s,toastCount:d,viewport:f,onViewportChange:h,onToastAdd:x.useCallback(()=>m(w=>w+1),[]),onToastRemove:x.useCallback(()=>m(w=>w-1),[]),isFocusedToastEscapeKeyDownRef:y,isClosePausedRef:b,children:c})})};t1.displayName=Mp;var n1="ToastViewport",__=["F8"],qh="toast.viewportPause",Vh="toast.viewportResume",r1=x.forwardRef((e,n)=>{const{__scopeToast:r,hotkey:i=__,label:o="Notifications ({hotkey})",...s}=e,c=pc(n1,r),f=A_(r),h=x.useRef(null),d=x.useRef(null),m=x.useRef(null),y=x.useRef(null),b=Xe(n,y,c.onViewportChange),w=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),C=c.toastCount>0;x.useEffect(()=>{const T=A=>{i.length!==0&&i.every(N=>A[N]||A.code===N)&&y.current?.focus()};return document.addEventListener("keydown",T),()=>document.removeEventListener("keydown",T)},[i]),x.useEffect(()=>{const T=h.current,A=y.current;if(C&&T&&A){const _=()=>{if(!c.isClosePausedRef.current){const j=new CustomEvent(qh);A.dispatchEvent(j),c.isClosePausedRef.current=!0}},N=()=>{if(c.isClosePausedRef.current){const j=new CustomEvent(Vh);A.dispatchEvent(j),c.isClosePausedRef.current=!1}},O=j=>{!T.contains(j.relatedTarget)&&N()},z=()=>{T.contains(document.activeElement)||N()};return T.addEventListener("focusin",_),T.addEventListener("focusout",O),T.addEventListener("pointermove",_),T.addEventListener("pointerleave",z),window.addEventListener("blur",_),window.addEventListener("focus",N),()=>{T.removeEventListener("focusin",_),T.removeEventListener("focusout",O),T.removeEventListener("pointermove",_),T.removeEventListener("pointerleave",z),window.removeEventListener("blur",_),window.removeEventListener("focus",N)}}},[C,c.isClosePausedRef]);const k=x.useCallback(({tabbingDirection:T})=>{const _=f().map(N=>{const O=N.ref.current,z=[O,...F_(O)];return T==="forwards"?z:z.reverse()});return(T==="forwards"?_.reverse():_).flat()},[f]);return x.useEffect(()=>{const T=y.current;if(T){const A=_=>{const N=_.altKey||_.ctrlKey||_.metaKey;if(_.key==="Tab"&&!N){const z=document.activeElement,j=_.shiftKey;if(_.target===T&&j){d.current?.focus();return}const ee=k({tabbingDirection:j?"backwards":"forwards"}),P=ee.findIndex(ne=>ne===z);rh(ee.slice(P+1))?_.preventDefault():j?d.current?.focus():m.current?.focus()}};return T.addEventListener("keydown",A),()=>T.removeEventListener("keydown",A)}},[f,k]),g.jsxs(m_,{ref:h,role:"region","aria-label":o.replace("{hotkey}",w),tabIndex:-1,style:{pointerEvents:C?void 0:"none"},children:[C&&g.jsx($h,{ref:d,onFocusFromOutsideViewport:()=>{const T=k({tabbingDirection:"forwards"});rh(T)}}),g.jsx(jp.Slot,{scope:r,children:g.jsx(Fe.ol,{tabIndex:-1,...s,ref:b})}),C&&g.jsx($h,{ref:m,onFocusFromOutsideViewport:()=>{const T=k({tabbingDirection:"backwards"});rh(T)}})]})});r1.displayName=n1;var a1="ToastFocusProxy",$h=x.forwardRef((e,n)=>{const{__scopeToast:r,onFocusFromOutsideViewport:i,...o}=e,s=pc(a1,r);return g.jsx(hc,{tabIndex:0,...o,ref:n,style:{position:"fixed"},onFocus:c=>{const f=c.relatedTarget;!s.viewport?.contains(f)&&i()}})});$h.displayName=a1;var Vo="Toast",N_="toast.swipeStart",M_="toast.swipeMove",j_="toast.swipeCancel",D_="toast.swipeEnd",i1=x.forwardRef((e,n)=>{const{forceMount:r,open:i,defaultOpen:o,onOpenChange:s,...c}=e,[f,h]=ol({prop:i,defaultProp:o??!0,onChange:s,caller:Vo});return g.jsx($t,{present:r||f,children:g.jsx(z_,{open:f,...c,ref:n,onClose:()=>h(!1),onPause:Ct(e.onPause),onResume:Ct(e.onResume),onSwipeStart:me(e.onSwipeStart,d=>{d.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:me(e.onSwipeMove,d=>{const{x:m,y}=d.detail.delta;d.currentTarget.setAttribute("data-swipe","move"),d.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${m}px`),d.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${y}px`)}),onSwipeCancel:me(e.onSwipeCancel,d=>{d.currentTarget.setAttribute("data-swipe","cancel"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),d.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:me(e.onSwipeEnd,d=>{const{x:m,y}=d.detail.delta;d.currentTarget.setAttribute("data-swipe","end"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),d.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${m}px`),d.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${y}px`),h(!1)})})})});i1.displayName=Vo;var[O_,L_]=e1(Vo,{onClose(){}}),z_=x.forwardRef((e,n)=>{const{__scopeToast:r,type:i="foreground",duration:o,open:s,onClose:c,onEscapeKeyDown:f,onPause:h,onResume:d,onSwipeStart:m,onSwipeMove:y,onSwipeCancel:b,onSwipeEnd:w,...C}=e,k=pc(Vo,r),[T,A]=x.useState(null),_=Xe(n,H=>A(H)),N=x.useRef(null),O=x.useRef(null),z=o||k.duration,j=x.useRef(0),$=x.useRef(z),G=x.useRef(0),{onToastAdd:ee,onToastRemove:P}=k,ne=Ct(()=>{T?.contains(document.activeElement)&&k.viewport?.focus(),c()}),ae=x.useCallback(H=>{!H||H===1/0||(window.clearTimeout(G.current),j.current=new Date().getTime(),G.current=window.setTimeout(ne,H))},[ne]);x.useEffect(()=>{const H=k.viewport;if(H){const Q=()=>{ae($.current),d?.()},L=()=>{const K=new Date().getTime()-j.current;$.current=$.current-K,window.clearTimeout(G.current),h?.()};return H.addEventListener(qh,L),H.addEventListener(Vh,Q),()=>{H.removeEventListener(qh,L),H.removeEventListener(Vh,Q)}}},[k.viewport,z,h,d,ae]),x.useEffect(()=>{s&&!k.isClosePausedRef.current&&ae(z)},[s,z,k.isClosePausedRef,ae]),x.useEffect(()=>(ee(),()=>P()),[ee,P]);const le=x.useMemo(()=>T?d1(T):null,[T]);return k.viewport?g.jsxs(g.Fragment,{children:[le&&g.jsx(P_,{__scopeToast:r,role:"status","aria-live":i==="foreground"?"assertive":"polite",children:le}),g.jsx(O_,{scope:r,onClose:ne,children:uc.createPortal(g.jsx(jp.ItemSlot,{scope:r,children:g.jsx(p_,{asChild:!0,onEscapeKeyDown:me(f,()=>{k.isFocusedToastEscapeKeyDownRef.current||ne(),k.isFocusedToastEscapeKeyDownRef.current=!1}),children:g.jsx(Fe.li,{tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":k.swipeDirection,...C,ref:_,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:me(e.onKeyDown,H=>{H.key==="Escape"&&(f?.(H.nativeEvent),H.nativeEvent.defaultPrevented||(k.isFocusedToastEscapeKeyDownRef.current=!0,ne()))}),onPointerDown:me(e.onPointerDown,H=>{H.button===0&&(N.current={x:H.clientX,y:H.clientY})}),onPointerMove:me(e.onPointerMove,H=>{if(!N.current)return;const Q=H.clientX-N.current.x,L=H.clientY-N.current.y,K=!!O.current,U=["left","right"].includes(k.swipeDirection),J=["left","up"].includes(k.swipeDirection)?Math.min:Math.max,E=U?J(0,Q):0,Z=U?0:J(0,L),oe=H.pointerType==="touch"?10:2,M={x:E,y:Z},se={originalEvent:H,delta:M};K?(O.current=M,wu(M_,y,se,{discrete:!1})):Vx(M,k.swipeDirection,oe)?(O.current=M,wu(N_,m,se,{discrete:!1}),H.target.setPointerCapture(H.pointerId)):(Math.abs(Q)>oe||Math.abs(L)>oe)&&(N.current=null)}),onPointerUp:me(e.onPointerUp,H=>{const Q=O.current,L=H.target;if(L.hasPointerCapture(H.pointerId)&&L.releasePointerCapture(H.pointerId),O.current=null,N.current=null,Q){const K=H.currentTarget,U={originalEvent:H,delta:Q};Vx(Q,k.swipeDirection,k.swipeThreshold)?wu(D_,w,U,{discrete:!0}):wu(j_,b,U,{discrete:!0}),K.addEventListener("click",J=>J.preventDefault(),{once:!0})}})})})}),k.viewport)})]}):null}),P_=e=>{const{__scopeToast:n,children:r,...i}=e,o=pc(Vo,n),[s,c]=x.useState(!1),[f,h]=x.useState(!1);return U_(()=>c(!0)),x.useEffect(()=>{const d=window.setTimeout(()=>h(!0),1e3);return()=>window.clearTimeout(d)},[]),f?null:g.jsx(qo,{asChild:!0,children:g.jsx(hc,{...i,children:s&&g.jsxs(g.Fragment,{children:[o.label," ",r]})})})},I_="ToastTitle",l1=x.forwardRef((e,n)=>{const{__scopeToast:r,...i}=e;return g.jsx(Fe.div,{...i,ref:n})});l1.displayName=I_;var B_="ToastDescription",o1=x.forwardRef((e,n)=>{const{__scopeToast:r,...i}=e;return g.jsx(Fe.div,{...i,ref:n})});o1.displayName=B_;var s1="ToastAction",u1=x.forwardRef((e,n)=>{const{altText:r,...i}=e;return r.trim()?g.jsx(f1,{altText:r,asChild:!0,children:g.jsx(Dp,{...i,ref:n})}):(console.error(`Invalid prop \`altText\` supplied to \`${s1}\`. Expected non-empty \`string\`.`),null)});u1.displayName=s1;var c1="ToastClose",Dp=x.forwardRef((e,n)=>{const{__scopeToast:r,...i}=e,o=L_(c1,r);return g.jsx(f1,{asChild:!0,children:g.jsx(Fe.button,{type:"button",...i,ref:n,onClick:me(e.onClick,o.onClose)})})});Dp.displayName=c1;var f1=x.forwardRef((e,n)=>{const{__scopeToast:r,altText:i,...o}=e;return g.jsx(Fe.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":i||void 0,...o,ref:n})});function d1(e){const n=[];return Array.from(e.childNodes).forEach(i=>{if(i.nodeType===i.TEXT_NODE&&i.textContent&&n.push(i.textContent),H_(i)){const o=i.ariaHidden||i.hidden||i.style.display==="none",s=i.dataset.radixToastAnnounceExclude==="";if(!o)if(s){const c=i.dataset.radixToastAnnounceAlt;c&&n.push(c)}else n.push(...d1(i))}}),n}function wu(e,n,r,{discrete:i}){const o=r.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});n&&o.addEventListener(e,n,{once:!0}),i?Np(o,s):o.dispatchEvent(s)}var Vx=(e,n,r=0)=>{const i=Math.abs(e.x),o=Math.abs(e.y),s=i>o;return n==="left"||n==="right"?s&&i>r:!s&&o>r};function U_(e=()=>{}){const n=Ct(e);cr(()=>{let r=0,i=0;return r=window.requestAnimationFrame(()=>i=window.requestAnimationFrame(n)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(i)}},[n])}function H_(e){return e.nodeType===e.ELEMENT_NODE}function F_(e){const n=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const o=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||o?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)n.push(r.currentNode);return n}function rh(e){const n=document.activeElement;return e.some(r=>r===n?!0:(r.focus(),document.activeElement!==n))}var q_=t1,h1=r1,p1=i1,m1=l1,g1=o1,y1=u1,v1=Dp;function x1(e){var n,r,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(n=0;n<o;n++)e[n]&&(r=x1(e[n]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}function b1(){for(var e,n,r=0,i="",o=arguments.length;r<o;r++)(e=arguments[r])&&(n=x1(e))&&(i&&(i+=" "),i+=n);return i}const $x=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Gx=b1,mc=(e,n)=>r=>{var i;if(n?.variants==null)return Gx(e,r?.class,r?.className);const{variants:o,defaultVariants:s}=n,c=Object.keys(o).map(d=>{const m=r?.[d],y=s?.[d];if(m===null)return null;const b=$x(m)||$x(y);return o[d][b]}),f=r&&Object.entries(r).reduce((d,m)=>{let[y,b]=m;return b===void 0||(d[y]=b),d},{}),h=n==null||(i=n.compoundVariants)===null||i===void 0?void 0:i.reduce((d,m)=>{let{class:y,className:b,...w}=m;return Object.entries(w).every(C=>{let[k,T]=C;return Array.isArray(T)?T.includes({...s,...f}[k]):{...s,...f}[k]===T})?[...d,y,b]:d},[]);return Gx(e,c,h,r?.class,r?.className)};/**
62
- * @license lucide-react v0.542.0 - ISC
63
- *
64
- * This source code is licensed under the ISC license.
65
- * See the LICENSE file in the root directory of this source tree.
66
- */const V_=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),$_=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,r,i)=>i?i.toUpperCase():r.toLowerCase()),Yx=e=>{const n=$_(e);return n.charAt(0).toUpperCase()+n.slice(1)},w1=(...e)=>e.filter((n,r,i)=>!!n&&n.trim()!==""&&i.indexOf(n)===r).join(" ").trim(),G_=e=>{for(const n in e)if(n.startsWith("aria-")||n==="role"||n==="title")return!0};/**
67
- * @license lucide-react v0.542.0 - ISC
68
- *
69
- * This source code is licensed under the ISC license.
70
- * See the LICENSE file in the root directory of this source tree.
71
- */var Y_={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
72
- * @license lucide-react v0.542.0 - ISC
73
- *
74
- * This source code is licensed under the ISC license.
75
- * See the LICENSE file in the root directory of this source tree.
76
- */const K_=x.forwardRef(({color:e="currentColor",size:n=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:o="",children:s,iconNode:c,...f},h)=>x.createElement("svg",{ref:h,...Y_,width:n,height:n,stroke:e,strokeWidth:i?Number(r)*24/Number(n):r,className:w1("lucide",o),...!s&&!G_(f)&&{"aria-hidden":"true"},...f},[...c.map(([d,m])=>x.createElement(d,m)),...Array.isArray(s)?s:[s]]));/**
77
- * @license lucide-react v0.542.0 - ISC
78
- *
79
- * This source code is licensed under the ISC license.
80
- * See the LICENSE file in the root directory of this source tree.
81
- */const Te=(e,n)=>{const r=x.forwardRef(({className:i,...o},s)=>x.createElement(K_,{ref:s,iconNode:n,className:w1(`lucide-${V_(Yx(e))}`,`lucide-${e}`,i),...o}));return r.displayName=Yx(e),r};/**
82
- * @license lucide-react v0.542.0 - ISC
83
- *
84
- * This source code is licensed under the ISC license.
85
- * See the LICENSE file in the root directory of this source tree.
86
- */const X_=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],Q_=Te("activity",X_);/**
87
- * @license lucide-react v0.542.0 - ISC
88
- *
89
- * This source code is licensed under the ISC license.
90
- * See the LICENSE file in the root directory of this source tree.
91
- */const Z_=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],W_=Te("bell",Z_);/**
92
- * @license lucide-react v0.542.0 - ISC
93
- *
94
- * This source code is licensed under the ISC license.
95
- * See the LICENSE file in the root directory of this source tree.
96
- */const J_=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],So=Te("bot",J_);/**
97
- * @license lucide-react v0.542.0 - ISC
98
- *
99
- * This source code is licensed under the ISC license.
100
- * See the LICENSE file in the root directory of this source tree.
101
- */const eN=[["path",{d:"M16 14v2.2l1.6 1",key:"fo4ql5"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]],tN=Te("calendar-clock",eN);/**
102
- * @license lucide-react v0.542.0 - ISC
103
- *
104
- * This source code is licensed under the ISC license.
105
- * See the LICENSE file in the root directory of this source tree.
106
- */const nN=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],rN=Te("calendar",nN);/**
107
- * @license lucide-react v0.542.0 - ISC
108
- *
109
- * This source code is licensed under the ISC license.
110
- * See the LICENSE file in the root directory of this source tree.
111
- */const aN=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Op=Te("check",aN);/**
112
- * @license lucide-react v0.542.0 - ISC
113
- *
114
- * This source code is licensed under the ISC license.
115
- * See the LICENSE file in the root directory of this source tree.
116
- */const iN=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],lN=Te("chevron-down",iN);/**
117
- * @license lucide-react v0.542.0 - ISC
118
- *
119
- * This source code is licensed under the ISC license.
120
- * See the LICENSE file in the root directory of this source tree.
121
- */const oN=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],sN=Te("chevron-right",oN);/**
122
- * @license lucide-react v0.542.0 - ISC
123
- *
124
- * This source code is licensed under the ISC license.
125
- * See the LICENSE file in the root directory of this source tree.
126
- */const uN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],cN=Te("circle",uN);/**
127
- * @license lucide-react v0.542.0 - ISC
128
- *
129
- * This source code is licensed under the ISC license.
130
- * See the LICENSE file in the root directory of this source tree.
131
- */const fN=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],dN=Te("copy",fN);/**
132
- * @license lucide-react v0.542.0 - ISC
133
- *
134
- * This source code is licensed under the ISC license.
135
- * See the LICENSE file in the root directory of this source tree.
136
- */const hN=[["path",{d:"m15 15 6 6",key:"1s409w"}],["path",{d:"m15 9 6-6",key:"ko1vev"}],["path",{d:"M21 16v5h-5",key:"1ck2sf"}],["path",{d:"M21 8V3h-5",key:"1qoq8a"}],["path",{d:"M3 16v5h5",key:"1t08am"}],["path",{d:"m3 21 6-6",key:"wwnumi"}],["path",{d:"M3 8V3h5",key:"1ln10m"}],["path",{d:"M9 9 3 3",key:"v551iv"}]],pN=Te("expand",hN);/**
137
- * @license lucide-react v0.542.0 - ISC
138
- *
139
- * This source code is licensed under the ISC license.
140
- * See the LICENSE file in the root directory of this source tree.
141
- */const mN=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],_o=Te("file-text",mN);/**
142
- * @license lucide-react v0.542.0 - ISC
143
- *
144
- * This source code is licensed under the ISC license.
145
- * See the LICENSE file in the root directory of this source tree.
146
- */const gN=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]],Kx=Te("file",gN);/**
147
- * @license lucide-react v0.542.0 - ISC
148
- *
149
- * This source code is licensed under the ISC license.
150
- * See the LICENSE file in the root directory of this source tree.
151
- */const yN=[["path",{d:"M15 2a2 2 0 0 1 1.414.586l4 4A2 2 0 0 1 21 8v7a2 2 0 0 1-2 2h-8a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z",key:"1vo8kb"}],["path",{d:"M15 2v4a2 2 0 0 0 2 2h4",key:"sud9ri"}],["path",{d:"M5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1",key:"l4dndm"}]],vN=Te("files",yN);/**
152
- * @license lucide-react v0.542.0 - ISC
153
- *
154
- * This source code is licensed under the ISC license.
155
- * See the LICENSE file in the root directory of this source tree.
156
- */const xN=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],bN=Te("folder-open",xN);/**
157
- * @license lucide-react v0.542.0 - ISC
158
- *
159
- * This source code is licensed under the ISC license.
160
- * See the LICENSE file in the root directory of this source tree.
161
- */const wN=[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]],SN=Te("folder-tree",wN);/**
162
- * @license lucide-react v0.542.0 - ISC
163
- *
164
- * This source code is licensed under the ISC license.
165
- * See the LICENSE file in the root directory of this source tree.
166
- */const EN=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],Pu=Te("folder",EN);/**
167
- * @license lucide-react v0.542.0 - ISC
168
- *
169
- * This source code is licensed under the ISC license.
170
- * See the LICENSE file in the root directory of this source tree.
171
- */const CN=[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]],S1=Te("git-branch",CN);/**
172
- * @license lucide-react v0.542.0 - ISC
173
- *
174
- * This source code is licensed under the ISC license.
175
- * See the LICENSE file in the root directory of this source tree.
176
- */const kN=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],AN=Te("history",kN);/**
177
- * @license lucide-react v0.542.0 - ISC
178
- *
179
- * This source code is licensed under the ISC license.
180
- * See the LICENSE file in the root directory of this source tree.
181
- */const TN=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]],RN=Te("house",TN);/**
182
- * @license lucide-react v0.542.0 - ISC
183
- *
184
- * This source code is licensed under the ISC license.
185
- * See the LICENSE file in the root directory of this source tree.
186
- */const _N=[["path",{d:"M16 10h2",key:"8sgtl7"}],["path",{d:"M16 14h2",key:"epxaof"}],["path",{d:"M6.17 15a3 3 0 0 1 5.66 0",key:"n6f512"}],["circle",{cx:"9",cy:"11",r:"2",key:"yxgjnd"}],["rect",{x:"2",y:"5",width:"20",height:"14",rx:"2",key:"qneu4z"}]],NN=Te("id-card",_N);/**
187
- * @license lucide-react v0.542.0 - ISC
188
- *
189
- * This source code is licensed under the ISC license.
190
- * See the LICENSE file in the root directory of this source tree.
191
- */const MN=[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]],jN=Te("inbox",MN);/**
192
- * @license lucide-react v0.542.0 - ISC
193
- *
194
- * This source code is licensed under the ISC license.
195
- * See the LICENSE file in the root directory of this source tree.
196
- */const DN=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],ON=Te("key",DN);/**
197
- * @license lucide-react v0.542.0 - ISC
198
- *
199
- * This source code is licensed under the ISC license.
200
- * See the LICENSE file in the root directory of this source tree.
201
- */const LN=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Yu=Te("loader-circle",LN);/**
202
- * @license lucide-react v0.542.0 - ISC
203
- *
204
- * This source code is licensed under the ISC license.
205
- * See the LICENSE file in the root directory of this source tree.
206
- */const zN=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],PN=Te("log-out",zN);/**
207
- * @license lucide-react v0.542.0 - ISC
208
- *
209
- * This source code is licensed under the ISC license.
210
- * See the LICENSE file in the root directory of this source tree.
211
- */const IN=[["path",{d:"M21.2 8.4c.5.38.8.97.8 1.6v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V10a2 2 0 0 1 .8-1.6l8-6a2 2 0 0 1 2.4 0l8 6Z",key:"1jhwl8"}],["path",{d:"m22 10-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 10",key:"1qfld7"}]],BN=Te("mail-open",IN);/**
212
- * @license lucide-react v0.542.0 - ISC
213
- *
214
- * This source code is licensed under the ISC license.
215
- * See the LICENSE file in the root directory of this source tree.
216
- */const UN=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],HN=Te("mail",UN);/**
217
- * @license lucide-react v0.542.0 - ISC
218
- *
219
- * This source code is licensed under the ISC license.
220
- * See the LICENSE file in the root directory of this source tree.
221
- */const FN=[["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 18h16",key:"19g7jn"}],["path",{d:"M4 6h16",key:"1o0s65"}]],qN=Te("menu",FN);/**
222
- * @license lucide-react v0.542.0 - ISC
223
- *
224
- * This source code is licensed under the ISC license.
225
- * See the LICENSE file in the root directory of this source tree.
226
- */const VN=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],ah=Te("message-circle",VN);/**
227
- * @license lucide-react v0.542.0 - ISC
228
- *
229
- * This source code is licensed under the ISC license.
230
- * See the LICENSE file in the root directory of this source tree.
231
- */const $N=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]],GN=Te("network",$N);/**
232
- * @license lucide-react v0.542.0 - ISC
233
- *
234
- * This source code is licensed under the ISC license.
235
- * See the LICENSE file in the root directory of this source tree.
236
- */const YN=[["path",{d:"M2 6h4",key:"aawbzj"}],["path",{d:"M2 10h4",key:"l0bgd4"}],["path",{d:"M2 14h4",key:"1gsvsf"}],["path",{d:"M2 18h4",key:"1bu2t1"}],["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["path",{d:"M16 2v20",key:"rotuqe"}]],KN=Te("notebook",YN);/**
237
- * @license lucide-react v0.542.0 - ISC
238
- *
239
- * This source code is licensed under the ISC license.
240
- * See the LICENSE file in the root directory of this source tree.
241
- */const XN=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],QN=Te("panel-left",XN);/**
242
- * @license lucide-react v0.542.0 - ISC
243
- *
244
- * This source code is licensed under the ISC license.
245
- * See the LICENSE file in the root directory of this source tree.
246
- */const ZN=[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M9 8V2",key:"14iosj"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z",key:"osxo6l"}]],WN=Te("plug",ZN);/**
247
- * @license lucide-react v0.542.0 - ISC
248
- *
249
- * This source code is licensed under the ISC license.
250
- * See the LICENSE file in the root directory of this source tree.
251
- */const JN=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],eM=Te("plus",JN);/**
252
- * @license lucide-react v0.542.0 - ISC
253
- *
254
- * This source code is licensed under the ISC license.
255
- * See the LICENSE file in the root directory of this source tree.
256
- */const tM=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],nM=Te("save",tM);/**
257
- * @license lucide-react v0.542.0 - ISC
258
- *
259
- * This source code is licensed under the ISC license.
260
- * See the LICENSE file in the root directory of this source tree.
261
- */const rM=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],E1=Te("send",rM);/**
262
- * @license lucide-react v0.542.0 - ISC
263
- *
264
- * This source code is licensed under the ISC license.
265
- * See the LICENSE file in the root directory of this source tree.
266
- */const aM=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],iM=Te("server",aM);/**
267
- * @license lucide-react v0.542.0 - ISC
268
- *
269
- * This source code is licensed under the ISC license.
270
- * See the LICENSE file in the root directory of this source tree.
271
- */const lM=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],oM=Te("settings",lM);/**
272
- * @license lucide-react v0.542.0 - ISC
273
- *
274
- * This source code is licensed under the ISC license.
275
- * See the LICENSE file in the root directory of this source tree.
276
- */const sM=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],uM=Te("shield",sM);/**
277
- * @license lucide-react v0.542.0 - ISC
278
- *
279
- * This source code is licensed under the ISC license.
280
- * See the LICENSE file in the root directory of this source tree.
281
- */const cM=[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]],fM=Te("sliders-horizontal",cM);/**
282
- * @license lucide-react v0.542.0 - ISC
283
- *
284
- * This source code is licensed under the ISC license.
285
- * See the LICENSE file in the root directory of this source tree.
286
- */const dM=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],Iu=Te("sparkles",dM);/**
287
- * @license lucide-react v0.542.0 - ISC
288
- *
289
- * This source code is licensed under the ISC license.
290
- * See the LICENSE file in the root directory of this source tree.
291
- */const hM=[["path",{d:"M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344",key:"2acyp4"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],pM=Te("square-check-big",hM);/**
292
- * @license lucide-react v0.542.0 - ISC
293
- *
294
- * This source code is licensed under the ISC license.
295
- * See the LICENSE file in the root directory of this source tree.
296
- */const mM=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],gM=Te("square-pen",mM);/**
297
- * @license lucide-react v0.542.0 - ISC
298
- *
299
- * This source code is licensed under the ISC license.
300
- * See the LICENSE file in the root directory of this source tree.
301
- */const yM=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],vM=Te("square",yM);/**
302
- * @license lucide-react v0.542.0 - ISC
303
- *
304
- * This source code is licensed under the ISC license.
305
- * See the LICENSE file in the root directory of this source tree.
306
- */const xM=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],bM=Te("terminal",xM);/**
307
- * @license lucide-react v0.542.0 - ISC
308
- *
309
- * This source code is licensed under the ISC license.
310
- * See the LICENSE file in the root directory of this source tree.
311
- */const wM=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],SM=Te("trash-2",wM);/**
312
- * @license lucide-react v0.542.0 - ISC
313
- *
314
- * This source code is licensed under the ISC license.
315
- * See the LICENSE file in the root directory of this source tree.
316
- */const EM=[["path",{d:"M13 8c0-2.76-2.46-5-5.5-5S2 5.24 2 8h2l1-1 1 1h4",key:"foxbe7"}],["path",{d:"M13 7.14A5.82 5.82 0 0 1 16.5 6c3.04 0 5.5 2.24 5.5 5h-3l-1-1-1 1h-3",key:"18arnh"}],["path",{d:"M5.89 9.71c-2.15 2.15-2.3 5.47-.35 7.43l4.24-4.25.7-.7.71-.71 2.12-2.12c-1.95-1.96-5.27-1.8-7.42.35",key:"ywahnh"}],["path",{d:"M11 15.5c.5 2.5-.17 4.5-1 6.5h4c2-5.5-.5-12-1-14",key:"ft0feo"}]],CM=Te("tree-palm",EM);/**
317
- * @license lucide-react v0.542.0 - ISC
318
- *
319
- * This source code is licensed under the ISC license.
320
- * See the LICENSE file in the root directory of this source tree.
321
- */const kM=[["path",{d:"M11.5 15H7a4 4 0 0 0-4 4v2",key:"15lzij"}],["path",{d:"M21.378 16.626a1 1 0 0 0-3.004-3.004l-4.01 4.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"1817ys"}],["circle",{cx:"10",cy:"7",r:"4",key:"e45bow"}]],AM=Te("user-pen",kM);/**
322
- * @license lucide-react v0.542.0 - ISC
323
- *
324
- * This source code is licensed under the ISC license.
325
- * See the LICENSE file in the root directory of this source tree.
326
- */const TM=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],RM=Te("user",TM);/**
327
- * @license lucide-react v0.542.0 - ISC
328
- *
329
- * This source code is licensed under the ISC license.
330
- * See the LICENSE file in the root directory of this source tree.
331
- */const _M=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],NM=Te("wrench",_M);/**
332
- * @license lucide-react v0.542.0 - ISC
333
- *
334
- * This source code is licensed under the ISC license.
335
- * See the LICENSE file in the root directory of this source tree.
336
- */const MM=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Yi=Te("x",MM);/**
337
- * @license lucide-react v0.542.0 - ISC
338
- *
339
- * This source code is licensed under the ISC license.
340
- * See the LICENSE file in the root directory of this source tree.
341
- */const jM=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],DM=Te("zap",jM),Lp="-",OM=e=>{const n=zM(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:c=>{const f=c.split(Lp);return f[0]===""&&f.length!==1&&f.shift(),C1(f,n)||LM(c)},getConflictingClassGroupIds:(c,f)=>{const h=r[c]||[];return f&&i[c]?[...h,...i[c]]:h}}},C1=(e,n)=>{if(e.length===0)return n.classGroupId;const r=e[0],i=n.nextPart.get(r),o=i?C1(e.slice(1),i):void 0;if(o)return o;if(n.validators.length===0)return;const s=e.join(Lp);return n.validators.find(({validator:c})=>c(s))?.classGroupId},Xx=/^\[(.+)\]$/,LM=e=>{if(Xx.test(e)){const n=Xx.exec(e)[1],r=n?.substring(0,n.indexOf(":"));if(r)return"arbitrary.."+r}},zM=e=>{const{theme:n,classGroups:r}=e,i={nextPart:new Map,validators:[]};for(const o in r)Gh(r[o],i,o,n);return i},Gh=(e,n,r,i)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?n:Qx(n,o);s.classGroupId=r;return}if(typeof o=="function"){if(PM(o)){Gh(o(i),n,r,i);return}n.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([s,c])=>{Gh(c,Qx(n,s),r,i)})})},Qx=(e,n)=>{let r=e;return n.split(Lp).forEach(i=>{r.nextPart.has(i)||r.nextPart.set(i,{nextPart:new Map,validators:[]}),r=r.nextPart.get(i)}),r},PM=e=>e.isThemeGetter,IM=e=>{if(e<1)return{get:()=>{},set:()=>{}};let n=0,r=new Map,i=new Map;const o=(s,c)=>{r.set(s,c),n++,n>e&&(n=0,i=r,r=new Map)};return{get(s){let c=r.get(s);if(c!==void 0)return c;if((c=i.get(s))!==void 0)return o(s,c),c},set(s,c){r.has(s)?r.set(s,c):o(s,c)}}},Yh="!",Kh=":",BM=Kh.length,UM=e=>{const{prefix:n,experimentalParseClassName:r}=e;let i=o=>{const s=[];let c=0,f=0,h=0,d;for(let C=0;C<o.length;C++){let k=o[C];if(c===0&&f===0){if(k===Kh){s.push(o.slice(h,C)),h=C+BM;continue}if(k==="/"){d=C;continue}}k==="["?c++:k==="]"?c--:k==="("?f++:k===")"&&f--}const m=s.length===0?o:o.substring(h),y=HM(m),b=y!==m,w=d&&d>h?d-h:void 0;return{modifiers:s,hasImportantModifier:b,baseClassName:y,maybePostfixModifierPosition:w}};if(n){const o=n+Kh,s=i;i=c=>c.startsWith(o)?s(c.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:c,maybePostfixModifierPosition:void 0}}if(r){const o=i;i=s=>r({className:s,parseClassName:o})}return i},HM=e=>e.endsWith(Yh)?e.substring(0,e.length-1):e.startsWith(Yh)?e.substring(1):e,FM=e=>{const n=Object.fromEntries(e.orderSensitiveModifiers.map(i=>[i,!0]));return i=>{if(i.length<=1)return i;const o=[];let s=[];return i.forEach(c=>{c[0]==="["||n[c]?(o.push(...s.sort(),c),s=[]):s.push(c)}),o.push(...s.sort()),o}},qM=e=>({cache:IM(e.cacheSize),parseClassName:UM(e),sortModifiers:FM(e),...OM(e)}),VM=/\s+/,$M=(e,n)=>{const{parseClassName:r,getClassGroupId:i,getConflictingClassGroupIds:o,sortModifiers:s}=n,c=[],f=e.trim().split(VM);let h="";for(let d=f.length-1;d>=0;d-=1){const m=f[d],{isExternal:y,modifiers:b,hasImportantModifier:w,baseClassName:C,maybePostfixModifierPosition:k}=r(m);if(y){h=m+(h.length>0?" "+h:h);continue}let T=!!k,A=i(T?C.substring(0,k):C);if(!A){if(!T){h=m+(h.length>0?" "+h:h);continue}if(A=i(C),!A){h=m+(h.length>0?" "+h:h);continue}T=!1}const _=s(b).join(":"),N=w?_+Yh:_,O=N+A;if(c.includes(O))continue;c.push(O);const z=o(A,T);for(let j=0;j<z.length;++j){const $=z[j];c.push(N+$)}h=m+(h.length>0?" "+h:h)}return h};function GM(){let e=0,n,r,i="";for(;e<arguments.length;)(n=arguments[e++])&&(r=k1(n))&&(i&&(i+=" "),i+=r);return i}const k1=e=>{if(typeof e=="string")return e;let n,r="";for(let i=0;i<e.length;i++)e[i]&&(n=k1(e[i]))&&(r&&(r+=" "),r+=n);return r};function YM(e,...n){let r,i,o,s=c;function c(h){const d=n.reduce((m,y)=>y(m),e());return r=qM(d),i=r.cache.get,o=r.cache.set,s=f,f(h)}function f(h){const d=i(h);if(d)return d;const m=$M(h,r);return o(h,m),m}return function(){return s(GM.apply(null,arguments))}}const Tt=e=>{const n=r=>r[e]||[];return n.isThemeGetter=!0,n},A1=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,T1=/^\((?:(\w[\w-]*):)?(.+)\)$/i,KM=/^\d+\/\d+$/,XM=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,QM=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ZM=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,WM=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,JM=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ui=e=>KM.test(e),Pe=e=>!!e&&!Number.isNaN(Number(e)),ua=e=>!!e&&Number.isInteger(Number(e)),ih=e=>e.endsWith("%")&&Pe(e.slice(0,-1)),jr=e=>XM.test(e),ej=()=>!0,tj=e=>QM.test(e)&&!ZM.test(e),R1=()=>!1,nj=e=>WM.test(e),rj=e=>JM.test(e),aj=e=>!ye(e)&&!ve(e),ij=e=>sl(e,M1,R1),ye=e=>A1.test(e),Ua=e=>sl(e,j1,tj),lh=e=>sl(e,cj,Pe),Zx=e=>sl(e,_1,R1),lj=e=>sl(e,N1,rj),Su=e=>sl(e,D1,nj),ve=e=>T1.test(e),fo=e=>ul(e,j1),oj=e=>ul(e,fj),Wx=e=>ul(e,_1),sj=e=>ul(e,M1),uj=e=>ul(e,N1),Eu=e=>ul(e,D1,!0),sl=(e,n,r)=>{const i=A1.exec(e);return i?i[1]?n(i[1]):r(i[2]):!1},ul=(e,n,r=!1)=>{const i=T1.exec(e);return i?i[1]?n(i[1]):r:!1},_1=e=>e==="position"||e==="percentage",N1=e=>e==="image"||e==="url",M1=e=>e==="length"||e==="size"||e==="bg-size",j1=e=>e==="length",cj=e=>e==="number",fj=e=>e==="family-name",D1=e=>e==="shadow",dj=()=>{const e=Tt("color"),n=Tt("font"),r=Tt("text"),i=Tt("font-weight"),o=Tt("tracking"),s=Tt("leading"),c=Tt("breakpoint"),f=Tt("container"),h=Tt("spacing"),d=Tt("radius"),m=Tt("shadow"),y=Tt("inset-shadow"),b=Tt("text-shadow"),w=Tt("drop-shadow"),C=Tt("blur"),k=Tt("perspective"),T=Tt("aspect"),A=Tt("ease"),_=Tt("animate"),N=()=>["auto","avoid","all","avoid-page","page","left","right","column"],O=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],z=()=>[...O(),ve,ye],j=()=>["auto","hidden","clip","visible","scroll"],$=()=>["auto","contain","none"],G=()=>[ve,ye,h],ee=()=>[Ui,"full","auto",...G()],P=()=>[ua,"none","subgrid",ve,ye],ne=()=>["auto",{span:["full",ua,ve,ye]},ua,ve,ye],ae=()=>[ua,"auto",ve,ye],le=()=>["auto","min","max","fr",ve,ye],H=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Q=()=>["start","end","center","stretch","center-safe","end-safe"],L=()=>["auto",...G()],K=()=>[Ui,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...G()],U=()=>[e,ve,ye],J=()=>[...O(),Wx,Zx,{position:[ve,ye]}],E=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Z=()=>["auto","cover","contain",sj,ij,{size:[ve,ye]}],oe=()=>[ih,fo,Ua],M=()=>["","none","full",d,ve,ye],se=()=>["",Pe,fo,Ua],Se=()=>["solid","dashed","dotted","double"],he=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],xe=()=>[Pe,ih,Wx,Zx],Ee=()=>["","none",C,ve,ye],Qe=()=>["none",Pe,ve,ye],bt=()=>["none",Pe,ve,ye],Rt=()=>[Pe,ve,ye],It=()=>[Ui,"full",...G()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[jr],breakpoint:[jr],color:[ej],container:[jr],"drop-shadow":[jr],ease:["in","out","in-out"],font:[aj],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[jr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[jr],shadow:[jr],spacing:["px",Pe],text:[jr],"text-shadow":[jr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ui,ye,ve,T]}],container:["container"],columns:[{columns:[Pe,ye,ve,f]}],"break-after":[{"break-after":N()}],"break-before":[{"break-before":N()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:z()}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:$()}],"overscroll-x":[{"overscroll-x":$()}],"overscroll-y":[{"overscroll-y":$()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ee()}],"inset-x":[{"inset-x":ee()}],"inset-y":[{"inset-y":ee()}],start:[{start:ee()}],end:[{end:ee()}],top:[{top:ee()}],right:[{right:ee()}],bottom:[{bottom:ee()}],left:[{left:ee()}],visibility:["visible","invisible","collapse"],z:[{z:[ua,"auto",ve,ye]}],basis:[{basis:[Ui,"full","auto",f,...G()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Pe,Ui,"auto","initial","none",ye]}],grow:[{grow:["",Pe,ve,ye]}],shrink:[{shrink:["",Pe,ve,ye]}],order:[{order:[ua,"first","last","none",ve,ye]}],"grid-cols":[{"grid-cols":P()}],"col-start-end":[{col:ne()}],"col-start":[{"col-start":ae()}],"col-end":[{"col-end":ae()}],"grid-rows":[{"grid-rows":P()}],"row-start-end":[{row:ne()}],"row-start":[{"row-start":ae()}],"row-end":[{"row-end":ae()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":le()}],"auto-rows":[{"auto-rows":le()}],gap:[{gap:G()}],"gap-x":[{"gap-x":G()}],"gap-y":[{"gap-y":G()}],"justify-content":[{justify:[...H(),"normal"]}],"justify-items":[{"justify-items":[...Q(),"normal"]}],"justify-self":[{"justify-self":["auto",...Q()]}],"align-content":[{content:["normal",...H()]}],"align-items":[{items:[...Q(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Q(),{baseline:["","last"]}]}],"place-content":[{"place-content":H()}],"place-items":[{"place-items":[...Q(),"baseline"]}],"place-self":[{"place-self":["auto",...Q()]}],p:[{p:G()}],px:[{px:G()}],py:[{py:G()}],ps:[{ps:G()}],pe:[{pe:G()}],pt:[{pt:G()}],pr:[{pr:G()}],pb:[{pb:G()}],pl:[{pl:G()}],m:[{m:L()}],mx:[{mx:L()}],my:[{my:L()}],ms:[{ms:L()}],me:[{me:L()}],mt:[{mt:L()}],mr:[{mr:L()}],mb:[{mb:L()}],ml:[{ml:L()}],"space-x":[{"space-x":G()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":G()}],"space-y-reverse":["space-y-reverse"],size:[{size:K()}],w:[{w:[f,"screen",...K()]}],"min-w":[{"min-w":[f,"screen","none",...K()]}],"max-w":[{"max-w":[f,"screen","none","prose",{screen:[c]},...K()]}],h:[{h:["screen","lh",...K()]}],"min-h":[{"min-h":["screen","lh","none",...K()]}],"max-h":[{"max-h":["screen","lh",...K()]}],"font-size":[{text:["base",r,fo,Ua]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,ve,lh]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ih,ye]}],"font-family":[{font:[oj,ye,n]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,ve,ye]}],"line-clamp":[{"line-clamp":[Pe,"none",ve,lh]}],leading:[{leading:[s,...G()]}],"list-image":[{"list-image":["none",ve,ye]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ve,ye]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:U()}],"text-color":[{text:U()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Se(),"wavy"]}],"text-decoration-thickness":[{decoration:[Pe,"from-font","auto",ve,Ua]}],"text-decoration-color":[{decoration:U()}],"underline-offset":[{"underline-offset":[Pe,"auto",ve,ye]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:G()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ve,ye]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ve,ye]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:J()}],"bg-repeat":[{bg:E()}],"bg-size":[{bg:Z()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ua,ve,ye],radial:["",ve,ye],conic:[ua,ve,ye]},uj,lj]}],"bg-color":[{bg:U()}],"gradient-from-pos":[{from:oe()}],"gradient-via-pos":[{via:oe()}],"gradient-to-pos":[{to:oe()}],"gradient-from":[{from:U()}],"gradient-via":[{via:U()}],"gradient-to":[{to:U()}],rounded:[{rounded:M()}],"rounded-s":[{"rounded-s":M()}],"rounded-e":[{"rounded-e":M()}],"rounded-t":[{"rounded-t":M()}],"rounded-r":[{"rounded-r":M()}],"rounded-b":[{"rounded-b":M()}],"rounded-l":[{"rounded-l":M()}],"rounded-ss":[{"rounded-ss":M()}],"rounded-se":[{"rounded-se":M()}],"rounded-ee":[{"rounded-ee":M()}],"rounded-es":[{"rounded-es":M()}],"rounded-tl":[{"rounded-tl":M()}],"rounded-tr":[{"rounded-tr":M()}],"rounded-br":[{"rounded-br":M()}],"rounded-bl":[{"rounded-bl":M()}],"border-w":[{border:se()}],"border-w-x":[{"border-x":se()}],"border-w-y":[{"border-y":se()}],"border-w-s":[{"border-s":se()}],"border-w-e":[{"border-e":se()}],"border-w-t":[{"border-t":se()}],"border-w-r":[{"border-r":se()}],"border-w-b":[{"border-b":se()}],"border-w-l":[{"border-l":se()}],"divide-x":[{"divide-x":se()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":se()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Se(),"hidden","none"]}],"divide-style":[{divide:[...Se(),"hidden","none"]}],"border-color":[{border:U()}],"border-color-x":[{"border-x":U()}],"border-color-y":[{"border-y":U()}],"border-color-s":[{"border-s":U()}],"border-color-e":[{"border-e":U()}],"border-color-t":[{"border-t":U()}],"border-color-r":[{"border-r":U()}],"border-color-b":[{"border-b":U()}],"border-color-l":[{"border-l":U()}],"divide-color":[{divide:U()}],"outline-style":[{outline:[...Se(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Pe,ve,ye]}],"outline-w":[{outline:["",Pe,fo,Ua]}],"outline-color":[{outline:U()}],shadow:[{shadow:["","none",m,Eu,Su]}],"shadow-color":[{shadow:U()}],"inset-shadow":[{"inset-shadow":["none",y,Eu,Su]}],"inset-shadow-color":[{"inset-shadow":U()}],"ring-w":[{ring:se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:U()}],"ring-offset-w":[{"ring-offset":[Pe,Ua]}],"ring-offset-color":[{"ring-offset":U()}],"inset-ring-w":[{"inset-ring":se()}],"inset-ring-color":[{"inset-ring":U()}],"text-shadow":[{"text-shadow":["none",b,Eu,Su]}],"text-shadow-color":[{"text-shadow":U()}],opacity:[{opacity:[Pe,ve,ye]}],"mix-blend":[{"mix-blend":[...he(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":he()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Pe]}],"mask-image-linear-from-pos":[{"mask-linear-from":xe()}],"mask-image-linear-to-pos":[{"mask-linear-to":xe()}],"mask-image-linear-from-color":[{"mask-linear-from":U()}],"mask-image-linear-to-color":[{"mask-linear-to":U()}],"mask-image-t-from-pos":[{"mask-t-from":xe()}],"mask-image-t-to-pos":[{"mask-t-to":xe()}],"mask-image-t-from-color":[{"mask-t-from":U()}],"mask-image-t-to-color":[{"mask-t-to":U()}],"mask-image-r-from-pos":[{"mask-r-from":xe()}],"mask-image-r-to-pos":[{"mask-r-to":xe()}],"mask-image-r-from-color":[{"mask-r-from":U()}],"mask-image-r-to-color":[{"mask-r-to":U()}],"mask-image-b-from-pos":[{"mask-b-from":xe()}],"mask-image-b-to-pos":[{"mask-b-to":xe()}],"mask-image-b-from-color":[{"mask-b-from":U()}],"mask-image-b-to-color":[{"mask-b-to":U()}],"mask-image-l-from-pos":[{"mask-l-from":xe()}],"mask-image-l-to-pos":[{"mask-l-to":xe()}],"mask-image-l-from-color":[{"mask-l-from":U()}],"mask-image-l-to-color":[{"mask-l-to":U()}],"mask-image-x-from-pos":[{"mask-x-from":xe()}],"mask-image-x-to-pos":[{"mask-x-to":xe()}],"mask-image-x-from-color":[{"mask-x-from":U()}],"mask-image-x-to-color":[{"mask-x-to":U()}],"mask-image-y-from-pos":[{"mask-y-from":xe()}],"mask-image-y-to-pos":[{"mask-y-to":xe()}],"mask-image-y-from-color":[{"mask-y-from":U()}],"mask-image-y-to-color":[{"mask-y-to":U()}],"mask-image-radial":[{"mask-radial":[ve,ye]}],"mask-image-radial-from-pos":[{"mask-radial-from":xe()}],"mask-image-radial-to-pos":[{"mask-radial-to":xe()}],"mask-image-radial-from-color":[{"mask-radial-from":U()}],"mask-image-radial-to-color":[{"mask-radial-to":U()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":O()}],"mask-image-conic-pos":[{"mask-conic":[Pe]}],"mask-image-conic-from-pos":[{"mask-conic-from":xe()}],"mask-image-conic-to-pos":[{"mask-conic-to":xe()}],"mask-image-conic-from-color":[{"mask-conic-from":U()}],"mask-image-conic-to-color":[{"mask-conic-to":U()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:J()}],"mask-repeat":[{mask:E()}],"mask-size":[{mask:Z()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ve,ye]}],filter:[{filter:["","none",ve,ye]}],blur:[{blur:Ee()}],brightness:[{brightness:[Pe,ve,ye]}],contrast:[{contrast:[Pe,ve,ye]}],"drop-shadow":[{"drop-shadow":["","none",w,Eu,Su]}],"drop-shadow-color":[{"drop-shadow":U()}],grayscale:[{grayscale:["",Pe,ve,ye]}],"hue-rotate":[{"hue-rotate":[Pe,ve,ye]}],invert:[{invert:["",Pe,ve,ye]}],saturate:[{saturate:[Pe,ve,ye]}],sepia:[{sepia:["",Pe,ve,ye]}],"backdrop-filter":[{"backdrop-filter":["","none",ve,ye]}],"backdrop-blur":[{"backdrop-blur":Ee()}],"backdrop-brightness":[{"backdrop-brightness":[Pe,ve,ye]}],"backdrop-contrast":[{"backdrop-contrast":[Pe,ve,ye]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Pe,ve,ye]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Pe,ve,ye]}],"backdrop-invert":[{"backdrop-invert":["",Pe,ve,ye]}],"backdrop-opacity":[{"backdrop-opacity":[Pe,ve,ye]}],"backdrop-saturate":[{"backdrop-saturate":[Pe,ve,ye]}],"backdrop-sepia":[{"backdrop-sepia":["",Pe,ve,ye]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":G()}],"border-spacing-x":[{"border-spacing-x":G()}],"border-spacing-y":[{"border-spacing-y":G()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ve,ye]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Pe,"initial",ve,ye]}],ease:[{ease:["linear","initial",A,ve,ye]}],delay:[{delay:[Pe,ve,ye]}],animate:[{animate:["none",_,ve,ye]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,ve,ye]}],"perspective-origin":[{"perspective-origin":z()}],rotate:[{rotate:Qe()}],"rotate-x":[{"rotate-x":Qe()}],"rotate-y":[{"rotate-y":Qe()}],"rotate-z":[{"rotate-z":Qe()}],scale:[{scale:bt()}],"scale-x":[{"scale-x":bt()}],"scale-y":[{"scale-y":bt()}],"scale-z":[{"scale-z":bt()}],"scale-3d":["scale-3d"],skew:[{skew:Rt()}],"skew-x":[{"skew-x":Rt()}],"skew-y":[{"skew-y":Rt()}],transform:[{transform:[ve,ye,"","none","gpu","cpu"]}],"transform-origin":[{origin:z()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:It()}],"translate-x":[{"translate-x":It()}],"translate-y":[{"translate-y":It()}],"translate-z":[{"translate-z":It()}],"translate-none":["translate-none"],accent:[{accent:U()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:U()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ve,ye]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":G()}],"scroll-mx":[{"scroll-mx":G()}],"scroll-my":[{"scroll-my":G()}],"scroll-ms":[{"scroll-ms":G()}],"scroll-me":[{"scroll-me":G()}],"scroll-mt":[{"scroll-mt":G()}],"scroll-mr":[{"scroll-mr":G()}],"scroll-mb":[{"scroll-mb":G()}],"scroll-ml":[{"scroll-ml":G()}],"scroll-p":[{"scroll-p":G()}],"scroll-px":[{"scroll-px":G()}],"scroll-py":[{"scroll-py":G()}],"scroll-ps":[{"scroll-ps":G()}],"scroll-pe":[{"scroll-pe":G()}],"scroll-pt":[{"scroll-pt":G()}],"scroll-pr":[{"scroll-pr":G()}],"scroll-pb":[{"scroll-pb":G()}],"scroll-pl":[{"scroll-pl":G()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ve,ye]}],fill:[{fill:["none",...U()]}],"stroke-w":[{stroke:[Pe,fo,Ua,lh]}],stroke:[{stroke:["none",...U()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},hj=YM(dj);function fe(...e){return hj(b1(e))}const pj=q_,O1=x.forwardRef(({className:e,...n},r)=>g.jsx(h1,{ref:r,className:fe("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...n}));O1.displayName=h1.displayName;const mj=mc("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),L1=x.forwardRef(({className:e,variant:n,...r},i)=>g.jsx(p1,{ref:i,className:fe(mj({variant:n}),e),...r}));L1.displayName=p1.displayName;const gj=x.forwardRef(({className:e,...n},r)=>g.jsx(y1,{ref:r,className:fe("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...n}));gj.displayName=y1.displayName;const z1=x.forwardRef(({className:e,...n},r)=>g.jsx(v1,{ref:r,className:fe("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...n,children:g.jsx(Yi,{className:"h-4 w-4"})}));z1.displayName=v1.displayName;const P1=x.forwardRef(({className:e,...n},r)=>g.jsx(m1,{ref:r,className:fe("text-sm font-semibold",e),...n}));P1.displayName=m1.displayName;const I1=x.forwardRef(({className:e,...n},r)=>g.jsx(g1,{ref:r,className:fe("text-sm opacity-90",e),...n}));I1.displayName=g1.displayName;function yj(){const{toasts:e}=JR();return g.jsxs(pj,{children:[e.map(function({id:n,title:r,description:i,action:o,...s}){return g.jsxs(L1,{...s,children:[g.jsxs("div",{className:"grid gap-1",children:[r&&g.jsx(P1,{children:r}),i&&g.jsx(I1,{children:i})]}),o,g.jsx(z1,{})]},n)}),g.jsx(O1,{})]})}function vj({children:e}){const{isAuthenticated:n,authEnabled:r,isLoading:i}=Y0(),o=on();return i?g.jsx("div",{className:"min-h-screen flex items-center justify-center",children:g.jsx(Yu,{className:"h-8 w-8 animate-spin text-muted-foreground"})}):r?n?g.jsx(g.Fragment,{children:e}):g.jsx(j0,{to:"/login",state:{from:o},replace:!0}):g.jsx(g.Fragment,{children:e})}function xj(){return g.jsx("div",{className:"flex items-center justify-center min-h-screen",children:g.jsxs("div",{className:"flex flex-col items-center gap-4",children:[g.jsx(Yu,{className:"h-8 w-8 animate-spin text-primary"}),g.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading..."})]})})}const oh=768;function B1(){const[e,n]=x.useState(void 0);return x.useEffect(()=>{const r=window.matchMedia(`(max-width: ${oh-1}px)`),i=()=>{n(window.innerWidth<oh)};return r.addEventListener("change",i),n(window.innerWidth<oh),()=>r.removeEventListener("change",i)},[]),!!e}const zp=mc("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),pt=x.forwardRef(({className:e,variant:n,size:r,asChild:i=!1,...o},s)=>{const c=i?ll:"button";return g.jsx(c,{className:fe(zp({variant:n,size:r,className:e})),ref:s,...o})});pt.displayName="Button";const U1=x.forwardRef(({className:e,type:n,...r},i)=>g.jsx("input",{type:n,className:fe("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:i,...r}));U1.displayName="Input";var bj="Separator",Jx="horizontal",wj=["horizontal","vertical"],H1=x.forwardRef((e,n)=>{const{decorative:r,orientation:i=Jx,...o}=e,s=Sj(i)?i:Jx,f=r?{role:"none"}:{"aria-orientation":s==="vertical"?s:void 0,role:"separator"};return g.jsx(Fe.div,{"data-orientation":s,...f,...o,ref:n})});H1.displayName=bj;function Sj(e){return wj.includes(e)}var F1=H1;const q1=x.forwardRef(({className:e,orientation:n="horizontal",decorative:r=!0,...i},o)=>g.jsx(F1,{ref:o,decorative:r,orientation:n,className:fe("shrink-0 bg-border",n==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...i}));q1.displayName=F1.displayName;var Ej=w0[" useId ".trim().toString()]||(()=>{}),Cj=0;function $a(e){const[n,r]=x.useState(Ej());return cr(()=>{r(i=>i??String(Cj++))},[e]),e||(n?`radix-${n}`:"")}var sh="focusScope.autoFocusOnMount",uh="focusScope.autoFocusOnUnmount",eb={bubbles:!1,cancelable:!0},kj="FocusScope",Pp=x.forwardRef((e,n)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...c}=e,[f,h]=x.useState(null),d=Ct(o),m=Ct(s),y=x.useRef(null),b=Xe(n,k=>h(k)),w=x.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;x.useEffect(()=>{if(i){let k=function(N){if(w.paused||!f)return;const O=N.target;f.contains(O)?y.current=O:da(y.current,{select:!0})},T=function(N){if(w.paused||!f)return;const O=N.relatedTarget;O!==null&&(f.contains(O)||da(y.current,{select:!0}))},A=function(N){if(document.activeElement===document.body)for(const z of N)z.removedNodes.length>0&&da(f)};document.addEventListener("focusin",k),document.addEventListener("focusout",T);const _=new MutationObserver(A);return f&&_.observe(f,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",k),document.removeEventListener("focusout",T),_.disconnect()}}},[i,f,w.paused]),x.useEffect(()=>{if(f){nb.add(w);const k=document.activeElement;if(!f.contains(k)){const A=new CustomEvent(sh,eb);f.addEventListener(sh,d),f.dispatchEvent(A),A.defaultPrevented||(Aj(Mj(V1(f)),{select:!0}),document.activeElement===k&&da(f))}return()=>{f.removeEventListener(sh,d),setTimeout(()=>{const A=new CustomEvent(uh,eb);f.addEventListener(uh,m),f.dispatchEvent(A),A.defaultPrevented||da(k??document.body,{select:!0}),f.removeEventListener(uh,m),nb.remove(w)},0)}}},[f,d,m,w]);const C=x.useCallback(k=>{if(!r&&!i||w.paused)return;const T=k.key==="Tab"&&!k.altKey&&!k.ctrlKey&&!k.metaKey,A=document.activeElement;if(T&&A){const _=k.currentTarget,[N,O]=Tj(_);N&&O?!k.shiftKey&&A===O?(k.preventDefault(),r&&da(N,{select:!0})):k.shiftKey&&A===N&&(k.preventDefault(),r&&da(O,{select:!0})):A===_&&k.preventDefault()}},[r,i,w.paused]);return g.jsx(Fe.div,{tabIndex:-1,...c,ref:b,onKeyDown:C})});Pp.displayName=kj;function Aj(e,{select:n=!1}={}){const r=document.activeElement;for(const i of e)if(da(i,{select:n}),document.activeElement!==r)return}function Tj(e){const n=V1(e),r=tb(n,e),i=tb(n.reverse(),e);return[r,i]}function V1(e){const n=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const o=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||o?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)n.push(r.currentNode);return n}function tb(e,n){for(const r of e)if(!Rj(r,{upTo:n}))return r}function Rj(e,{upTo:n}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n!==void 0&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function _j(e){return e instanceof HTMLInputElement&&"select"in e}function da(e,{select:n=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&_j(e)&&n&&e.select()}}var nb=Nj();function Nj(){let e=[];return{add(n){const r=e[0];n!==r&&r?.pause(),e=rb(e,n),e.unshift(n)},remove(n){e=rb(e,n),e[0]?.resume()}}}function rb(e,n){const r=[...e],i=r.indexOf(n);return i!==-1&&r.splice(i,1),r}function Mj(e){return e.filter(n=>n.tagName!=="A")}var ch=0;function $1(){x.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ab()),document.body.insertAdjacentElement("beforeend",e[1]??ab()),ch++,()=>{ch===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),ch--}},[])}function ab(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var or=function(){return or=Object.assign||function(n){for(var r,i=1,o=arguments.length;i<o;i++){r=arguments[i];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[s]=r[s])}return n},or.apply(this,arguments)};function G1(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r}function jj(e,n,r){if(r||arguments.length===2)for(var i=0,o=n.length,s;i<o;i++)(s||!(i in n))&&(s||(s=Array.prototype.slice.call(n,0,i)),s[i]=n[i]);return e.concat(s||Array.prototype.slice.call(n))}var Bu="right-scroll-bar-position",Uu="width-before-scroll-bar",Dj="with-scroll-bars-hidden",Oj="--removed-body-scroll-bar-size";function fh(e,n){return typeof e=="function"?e(n):e&&(e.current=n),e}function Lj(e,n){var r=x.useState(function(){return{value:e,callback:n,facade:{get current(){return r.value},set current(i){var o=r.value;o!==i&&(r.value=i,r.callback(i,o))}}}})[0];return r.callback=n,r.facade}var zj=typeof window<"u"?x.useLayoutEffect:x.useEffect,ib=new WeakMap;function Pj(e,n){var r=Lj(null,function(i){return e.forEach(function(o){return fh(o,i)})});return zj(function(){var i=ib.get(r);if(i){var o=new Set(i),s=new Set(e),c=r.current;o.forEach(function(f){s.has(f)||fh(f,null)}),s.forEach(function(f){o.has(f)||fh(f,c)})}ib.set(r,e)},[e]),r}function Ij(e){return e}function Bj(e,n){n===void 0&&(n=Ij);var r=[],i=!1,o={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(s){var c=n(s,i);return r.push(c),function(){r=r.filter(function(f){return f!==c})}},assignSyncMedium:function(s){for(i=!0;r.length;){var c=r;r=[],c.forEach(s)}r={push:function(f){return s(f)},filter:function(){return r}}},assignMedium:function(s){i=!0;var c=[];if(r.length){var f=r;r=[],f.forEach(s),c=r}var h=function(){var m=c;c=[],m.forEach(s)},d=function(){return Promise.resolve().then(h)};d(),r={push:function(m){c.push(m),d()},filter:function(m){return c=c.filter(m),r}}}};return o}function Uj(e){e===void 0&&(e={});var n=Bj(null);return n.options=or({async:!0,ssr:!1},e),n}var Y1=function(e){var n=e.sideCar,r=G1(e,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=n.read();if(!i)throw new Error("Sidecar medium not found");return x.createElement(i,or({},r))};Y1.isSideCarExport=!0;function Hj(e,n){return e.useMedium(n),Y1}var K1=Uj(),dh=function(){},gc=x.forwardRef(function(e,n){var r=x.useRef(null),i=x.useState({onScrollCapture:dh,onWheelCapture:dh,onTouchMoveCapture:dh}),o=i[0],s=i[1],c=e.forwardProps,f=e.children,h=e.className,d=e.removeScrollBar,m=e.enabled,y=e.shards,b=e.sideCar,w=e.noRelative,C=e.noIsolation,k=e.inert,T=e.allowPinchZoom,A=e.as,_=A===void 0?"div":A,N=e.gapMode,O=G1(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),z=b,j=Pj([r,n]),$=or(or({},O),o);return x.createElement(x.Fragment,null,m&&x.createElement(z,{sideCar:K1,removeScrollBar:d,shards:y,noRelative:w,noIsolation:C,inert:k,setCallbacks:s,allowPinchZoom:!!T,lockRef:r,gapMode:N}),c?x.cloneElement(x.Children.only(f),or(or({},$),{ref:j})):x.createElement(_,or({},$,{className:h,ref:j}),f))});gc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};gc.classNames={fullWidth:Uu,zeroRight:Bu};var Fj=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function qj(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var n=Fj();return n&&e.setAttribute("nonce",n),e}function Vj(e,n){e.styleSheet?e.styleSheet.cssText=n:e.appendChild(document.createTextNode(n))}function $j(e){var n=document.head||document.getElementsByTagName("head")[0];n.appendChild(e)}var Gj=function(){var e=0,n=null;return{add:function(r){e==0&&(n=qj())&&(Vj(n,r),$j(n)),e++},remove:function(){e--,!e&&n&&(n.parentNode&&n.parentNode.removeChild(n),n=null)}}},Yj=function(){var e=Gj();return function(n,r){x.useEffect(function(){return e.add(n),function(){e.remove()}},[n&&r])}},X1=function(){var e=Yj(),n=function(r){var i=r.styles,o=r.dynamic;return e(i,o),null};return n},Kj={left:0,top:0,right:0,gap:0},hh=function(e){return parseInt(e||"",10)||0},Xj=function(e){var n=window.getComputedStyle(document.body),r=n[e==="padding"?"paddingLeft":"marginLeft"],i=n[e==="padding"?"paddingTop":"marginTop"],o=n[e==="padding"?"paddingRight":"marginRight"];return[hh(r),hh(i),hh(o)]},Qj=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Kj;var n=Xj(e),r=document.documentElement.clientWidth,i=window.innerWidth;return{left:n[0],top:n[1],right:n[2],gap:Math.max(0,i-r+n[2]-n[0])}},Zj=X1(),Ki="data-scroll-locked",Wj=function(e,n,r,i){var o=e.left,s=e.top,c=e.right,f=e.gap;return r===void 0&&(r="margin"),`
342
- .`.concat(Dj,` {
343
- overflow: hidden `).concat(i,`;
344
- padding-right: `).concat(f,"px ").concat(i,`;
345
- }
346
- body[`).concat(Ki,`] {
347
- overflow: hidden `).concat(i,`;
348
- overscroll-behavior: contain;
349
- `).concat([n&&"position: relative ".concat(i,";"),r==="margin"&&`
350
- padding-left: `.concat(o,`px;
351
- padding-top: `).concat(s,`px;
352
- padding-right: `).concat(c,`px;
353
- margin-left:0;
354
- margin-top:0;
355
- margin-right: `).concat(f,"px ").concat(i,`;
356
- `),r==="padding"&&"padding-right: ".concat(f,"px ").concat(i,";")].filter(Boolean).join(""),`
357
- }
358
-
359
- .`).concat(Bu,` {
360
- right: `).concat(f,"px ").concat(i,`;
361
- }
362
-
363
- .`).concat(Uu,` {
364
- margin-right: `).concat(f,"px ").concat(i,`;
365
- }
366
-
367
- .`).concat(Bu," .").concat(Bu,` {
368
- right: 0 `).concat(i,`;
369
- }
370
-
371
- .`).concat(Uu," .").concat(Uu,` {
372
- margin-right: 0 `).concat(i,`;
373
- }
374
-
375
- body[`).concat(Ki,`] {
376
- `).concat(Oj,": ").concat(f,`px;
377
- }
378
- `)},lb=function(){var e=parseInt(document.body.getAttribute(Ki)||"0",10);return isFinite(e)?e:0},Jj=function(){x.useEffect(function(){return document.body.setAttribute(Ki,(lb()+1).toString()),function(){var e=lb()-1;e<=0?document.body.removeAttribute(Ki):document.body.setAttribute(Ki,e.toString())}},[])},eD=function(e){var n=e.noRelative,r=e.noImportant,i=e.gapMode,o=i===void 0?"margin":i;Jj();var s=x.useMemo(function(){return Qj(o)},[o]);return x.createElement(Zj,{styles:Wj(s,!n,o,r?"":"!important")})},Xh=!1;if(typeof window<"u")try{var Cu=Object.defineProperty({},"passive",{get:function(){return Xh=!0,!0}});window.addEventListener("test",Cu,Cu),window.removeEventListener("test",Cu,Cu)}catch{Xh=!1}var Hi=Xh?{passive:!1}:!1,tD=function(e){return e.tagName==="TEXTAREA"},Q1=function(e,n){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[n]!=="hidden"&&!(r.overflowY===r.overflowX&&!tD(e)&&r[n]==="visible")},nD=function(e){return Q1(e,"overflowY")},rD=function(e){return Q1(e,"overflowX")},ob=function(e,n){var r=n.ownerDocument,i=n;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var o=Z1(e,i);if(o){var s=W1(e,i),c=s[1],f=s[2];if(c>f)return!0}i=i.parentNode}while(i&&i!==r.body);return!1},aD=function(e){var n=e.scrollTop,r=e.scrollHeight,i=e.clientHeight;return[n,r,i]},iD=function(e){var n=e.scrollLeft,r=e.scrollWidth,i=e.clientWidth;return[n,r,i]},Z1=function(e,n){return e==="v"?nD(n):rD(n)},W1=function(e,n){return e==="v"?aD(n):iD(n)},lD=function(e,n){return e==="h"&&n==="rtl"?-1:1},oD=function(e,n,r,i,o){var s=lD(e,window.getComputedStyle(n).direction),c=s*i,f=r.target,h=n.contains(f),d=!1,m=c>0,y=0,b=0;do{if(!f)break;var w=W1(e,f),C=w[0],k=w[1],T=w[2],A=k-T-s*C;(C||A)&&Z1(e,f)&&(y+=A,b+=C);var _=f.parentNode;f=_&&_.nodeType===Node.DOCUMENT_FRAGMENT_NODE?_.host:_}while(!h&&f!==document.body||h&&(n.contains(f)||n===f));return(m&&Math.abs(y)<1||!m&&Math.abs(b)<1)&&(d=!0),d},ku=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},sb=function(e){return[e.deltaX,e.deltaY]},ub=function(e){return e&&"current"in e?e.current:e},sD=function(e,n){return e[0]===n[0]&&e[1]===n[1]},uD=function(e){return`
379
- .block-interactivity-`.concat(e,` {pointer-events: none;}
380
- .allow-interactivity-`).concat(e,` {pointer-events: all;}
381
- `)},cD=0,Fi=[];function fD(e){var n=x.useRef([]),r=x.useRef([0,0]),i=x.useRef(),o=x.useState(cD++)[0],s=x.useState(X1)[0],c=x.useRef(e);x.useEffect(function(){c.current=e},[e]),x.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var k=jj([e.lockRef.current],(e.shards||[]).map(ub),!0).filter(Boolean);return k.forEach(function(T){return T.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),k.forEach(function(T){return T.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var f=x.useCallback(function(k,T){if("touches"in k&&k.touches.length===2||k.type==="wheel"&&k.ctrlKey)return!c.current.allowPinchZoom;var A=ku(k),_=r.current,N="deltaX"in k?k.deltaX:_[0]-A[0],O="deltaY"in k?k.deltaY:_[1]-A[1],z,j=k.target,$=Math.abs(N)>Math.abs(O)?"h":"v";if("touches"in k&&$==="h"&&j.type==="range")return!1;var G=ob($,j);if(!G)return!0;if(G?z=$:(z=$==="v"?"h":"v",G=ob($,j)),!G)return!1;if(!i.current&&"changedTouches"in k&&(N||O)&&(i.current=z),!z)return!0;var ee=i.current||z;return oD(ee,T,k,ee==="h"?N:O)},[]),h=x.useCallback(function(k){var T=k;if(!(!Fi.length||Fi[Fi.length-1]!==s)){var A="deltaY"in T?sb(T):ku(T),_=n.current.filter(function(z){return z.name===T.type&&(z.target===T.target||T.target===z.shadowParent)&&sD(z.delta,A)})[0];if(_&&_.should){T.cancelable&&T.preventDefault();return}if(!_){var N=(c.current.shards||[]).map(ub).filter(Boolean).filter(function(z){return z.contains(T.target)}),O=N.length>0?f(T,N[0]):!c.current.noIsolation;O&&T.cancelable&&T.preventDefault()}}},[]),d=x.useCallback(function(k,T,A,_){var N={name:k,delta:T,target:A,should:_,shadowParent:dD(A)};n.current.push(N),setTimeout(function(){n.current=n.current.filter(function(O){return O!==N})},1)},[]),m=x.useCallback(function(k){r.current=ku(k),i.current=void 0},[]),y=x.useCallback(function(k){d(k.type,sb(k),k.target,f(k,e.lockRef.current))},[]),b=x.useCallback(function(k){d(k.type,ku(k),k.target,f(k,e.lockRef.current))},[]);x.useEffect(function(){return Fi.push(s),e.setCallbacks({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:b}),document.addEventListener("wheel",h,Hi),document.addEventListener("touchmove",h,Hi),document.addEventListener("touchstart",m,Hi),function(){Fi=Fi.filter(function(k){return k!==s}),document.removeEventListener("wheel",h,Hi),document.removeEventListener("touchmove",h,Hi),document.removeEventListener("touchstart",m,Hi)}},[]);var w=e.removeScrollBar,C=e.inert;return x.createElement(x.Fragment,null,C?x.createElement(s,{styles:uD(o)}):null,w?x.createElement(eD,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function dD(e){for(var n=null;e!==null;)e instanceof ShadowRoot&&(n=e.host,e=e.host),e=e.parentNode;return n}const hD=Hj(K1,fD);var Ip=x.forwardRef(function(e,n){return x.createElement(gc,or({},e,{ref:n,sideCar:hD}))});Ip.classNames=gc.classNames;var pD=function(e){if(typeof document>"u")return null;var n=Array.isArray(e)?e[0]:e;return n.ownerDocument.body},qi=new WeakMap,Au=new WeakMap,Tu={},ph=0,J1=function(e){return e&&(e.host||J1(e.parentNode))},mD=function(e,n){return n.map(function(r){if(e.contains(r))return r;var i=J1(r);return i&&e.contains(i)?i:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},gD=function(e,n,r,i){var o=mD(n,Array.isArray(e)?e:[e]);Tu[r]||(Tu[r]=new WeakMap);var s=Tu[r],c=[],f=new Set,h=new Set(o),d=function(y){!y||f.has(y)||(f.add(y),d(y.parentNode))};o.forEach(d);var m=function(y){!y||h.has(y)||Array.prototype.forEach.call(y.children,function(b){if(f.has(b))m(b);else try{var w=b.getAttribute(i),C=w!==null&&w!=="false",k=(qi.get(b)||0)+1,T=(s.get(b)||0)+1;qi.set(b,k),s.set(b,T),c.push(b),k===1&&C&&Au.set(b,!0),T===1&&b.setAttribute(r,"true"),C||b.setAttribute(i,"true")}catch(A){console.error("aria-hidden: cannot operate on ",b,A)}})};return m(n),f.clear(),ph++,function(){c.forEach(function(y){var b=qi.get(y)-1,w=s.get(y)-1;qi.set(y,b),s.set(y,w),b||(Au.has(y)||y.removeAttribute(i),Au.delete(y)),w||y.removeAttribute(r)}),ph--,ph||(qi=new WeakMap,qi=new WeakMap,Au=new WeakMap,Tu={})}},ew=function(e,n,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),o=pD(e);return o?(i.push.apply(i,Array.from(o.querySelectorAll("[aria-live], script"))),gD(i,o,r,"aria-hidden")):function(){return null}},yc="Dialog",[tw,nw]=Qn(yc),[yD,Zn]=tw(yc),rw=e=>{const{__scopeDialog:n,children:r,open:i,defaultOpen:o,onOpenChange:s,modal:c=!0}=e,f=x.useRef(null),h=x.useRef(null),[d,m]=ol({prop:i,defaultProp:o??!1,onChange:s,caller:yc});return g.jsx(yD,{scope:n,triggerRef:f,contentRef:h,contentId:$a(),titleId:$a(),descriptionId:$a(),open:d,onOpenChange:m,onOpenToggle:x.useCallback(()=>m(y=>!y),[m]),modal:c,children:r})};rw.displayName=yc;var aw="DialogTrigger",iw=x.forwardRef((e,n)=>{const{__scopeDialog:r,...i}=e,o=Zn(aw,r),s=Xe(n,o.triggerRef);return g.jsx(Fe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Hp(o.open),...i,ref:s,onClick:me(e.onClick,o.onOpenToggle)})});iw.displayName=aw;var Bp="DialogPortal",[vD,lw]=tw(Bp,{forceMount:void 0}),ow=e=>{const{__scopeDialog:n,forceMount:r,children:i,container:o}=e,s=Zn(Bp,n);return g.jsx(vD,{scope:n,forceMount:r,children:x.Children.map(i,c=>g.jsx($t,{present:r||s.open,children:g.jsx(qo,{asChild:!0,container:o,children:c})}))})};ow.displayName=Bp;var Ku="DialogOverlay",sw=x.forwardRef((e,n)=>{const r=lw(Ku,e.__scopeDialog),{forceMount:i=r.forceMount,...o}=e,s=Zn(Ku,e.__scopeDialog);return s.modal?g.jsx($t,{present:i||s.open,children:g.jsx(bD,{...o,ref:n})}):null});sw.displayName=Ku;var xD=Wi("DialogOverlay.RemoveScroll"),bD=x.forwardRef((e,n)=>{const{__scopeDialog:r,...i}=e,o=Zn(Ku,r);return g.jsx(Ip,{as:xD,allowPinchZoom:!0,shards:[o.contentRef],children:g.jsx(Fe.div,{"data-state":Hp(o.open),...i,ref:n,style:{pointerEvents:"auto",...i.style}})})}),Ga="DialogContent",uw=x.forwardRef((e,n)=>{const r=lw(Ga,e.__scopeDialog),{forceMount:i=r.forceMount,...o}=e,s=Zn(Ga,e.__scopeDialog);return g.jsx($t,{present:i||s.open,children:s.modal?g.jsx(wD,{...o,ref:n}):g.jsx(SD,{...o,ref:n})})});uw.displayName=Ga;var wD=x.forwardRef((e,n)=>{const r=Zn(Ga,e.__scopeDialog),i=x.useRef(null),o=Xe(n,r.contentRef,i);return x.useEffect(()=>{const s=i.current;if(s)return ew(s)},[]),g.jsx(cw,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:me(e.onCloseAutoFocus,s=>{s.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:me(e.onPointerDownOutside,s=>{const c=s.detail.originalEvent,f=c.button===0&&c.ctrlKey===!0;(c.button===2||f)&&s.preventDefault()}),onFocusOutside:me(e.onFocusOutside,s=>s.preventDefault())})}),SD=x.forwardRef((e,n)=>{const r=Zn(Ga,e.__scopeDialog),i=x.useRef(!1),o=x.useRef(!1);return g.jsx(cw,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(i.current||r.triggerRef.current?.focus(),s.preventDefault()),i.current=!1,o.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(i.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=s.target;r.triggerRef.current?.contains(c)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),cw=x.forwardRef((e,n)=>{const{__scopeDialog:r,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:s,...c}=e,f=Zn(Ga,r),h=x.useRef(null),d=Xe(n,h);return $1(),g.jsxs(g.Fragment,{children:[g.jsx(Pp,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:o,onUnmountAutoFocus:s,children:g.jsx(Fo,{role:"dialog",id:f.contentId,"aria-describedby":f.descriptionId,"aria-labelledby":f.titleId,"data-state":Hp(f.open),...c,ref:d,onDismiss:()=>f.onOpenChange(!1)})}),g.jsxs(g.Fragment,{children:[g.jsx(CD,{titleId:f.titleId}),g.jsx(AD,{contentRef:h,descriptionId:f.descriptionId})]})]})}),Up="DialogTitle",fw=x.forwardRef((e,n)=>{const{__scopeDialog:r,...i}=e,o=Zn(Up,r);return g.jsx(Fe.h2,{id:o.titleId,...i,ref:n})});fw.displayName=Up;var dw="DialogDescription",hw=x.forwardRef((e,n)=>{const{__scopeDialog:r,...i}=e,o=Zn(dw,r);return g.jsx(Fe.p,{id:o.descriptionId,...i,ref:n})});hw.displayName=dw;var pw="DialogClose",mw=x.forwardRef((e,n)=>{const{__scopeDialog:r,...i}=e,o=Zn(pw,r);return g.jsx(Fe.button,{type:"button",...i,ref:n,onClick:me(e.onClick,()=>o.onOpenChange(!1))})});mw.displayName=pw;function Hp(e){return e?"open":"closed"}var gw="DialogTitleWarning",[ED,yw]=e_(gw,{contentName:Ga,titleName:Up,docsSlug:"dialog"}),CD=({titleId:e})=>{const n=yw(gw),r=`\`${n.contentName}\` requires a \`${n.titleName}\` for the component to be accessible for screen reader users.
382
-
383
- If you want to hide the \`${n.titleName}\`, you can wrap it with our VisuallyHidden component.
384
-
385
- For more information, see https://radix-ui.com/primitives/docs/components/${n.docsSlug}`;return x.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},kD="DialogDescriptionWarning",AD=({contentRef:e,descriptionId:n})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${yw(kD).contentName}}.`;return x.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");n&&o&&(document.getElementById(n)||console.warn(i))},[i,e,n]),null},Fp=rw,vw=iw,qp=ow,$o=sw,Go=uw,Yo=fw,Ko=hw,vc=mw;const xw=Fp,TD=qp,bw=x.forwardRef(({className:e,...n},r)=>g.jsx($o,{className:fe("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...n,ref:r}));bw.displayName=$o.displayName;const RD=mc("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Vp=x.forwardRef(({side:e="right",className:n,children:r,...i},o)=>g.jsxs(TD,{children:[g.jsx(bw,{}),g.jsxs(Go,{ref:o,className:fe(RD({side:e}),n),...i,children:[r,g.jsxs(vc,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[g.jsx(Yi,{className:"h-4 w-4"}),g.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Vp.displayName=Go.displayName;const $p=({className:e,...n})=>g.jsx("div",{className:fe("flex flex-col space-y-2 text-center sm:text-left",e),...n});$p.displayName="SheetHeader";const Gp=x.forwardRef(({className:e,...n},r)=>g.jsx(Yo,{ref:r,className:fe("text-lg font-semibold text-foreground",e),...n}));Gp.displayName=Yo.displayName;const ww=x.forwardRef(({className:e,...n},r)=>g.jsx(Ko,{ref:r,className:fe("text-sm text-muted-foreground",e),...n}));ww.displayName=Ko.displayName;function cb({className:e,...n}){return g.jsx("div",{className:fe("animate-pulse rounded-md bg-muted",e),...n})}const _D=["top","right","bottom","left"],ya=Math.min,vn=Math.max,Xu=Math.round,Ru=Math.floor,ur=e=>({x:e,y:e}),ND={left:"right",right:"left",bottom:"top",top:"bottom"},MD={start:"end",end:"start"};function Qh(e,n,r){return vn(e,ya(n,r))}function Lr(e,n){return typeof e=="function"?e(n):e}function zr(e){return e.split("-")[0]}function cl(e){return e.split("-")[1]}function Yp(e){return e==="x"?"y":"x"}function Kp(e){return e==="y"?"height":"width"}const jD=new Set(["top","bottom"]);function sr(e){return jD.has(zr(e))?"y":"x"}function Xp(e){return Yp(sr(e))}function DD(e,n,r){r===void 0&&(r=!1);const i=cl(e),o=Xp(e),s=Kp(o);let c=o==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return n.reference[s]>n.floating[s]&&(c=Qu(c)),[c,Qu(c)]}function OD(e){const n=Qu(e);return[Zh(e),n,Zh(n)]}function Zh(e){return e.replace(/start|end/g,n=>MD[n])}const fb=["left","right"],db=["right","left"],LD=["top","bottom"],zD=["bottom","top"];function PD(e,n,r){switch(e){case"top":case"bottom":return r?n?db:fb:n?fb:db;case"left":case"right":return n?LD:zD;default:return[]}}function ID(e,n,r,i){const o=cl(e);let s=PD(zr(e),r==="start",i);return o&&(s=s.map(c=>c+"-"+o),n&&(s=s.concat(s.map(Zh)))),s}function Qu(e){return e.replace(/left|right|bottom|top/g,n=>ND[n])}function BD(e){return{top:0,right:0,bottom:0,left:0,...e}}function Sw(e){return typeof e!="number"?BD(e):{top:e,right:e,bottom:e,left:e}}function Zu(e){const{x:n,y:r,width:i,height:o}=e;return{width:i,height:o,top:r,left:n,right:n+i,bottom:r+o,x:n,y:r}}function hb(e,n,r){let{reference:i,floating:o}=e;const s=sr(n),c=Xp(n),f=Kp(c),h=zr(n),d=s==="y",m=i.x+i.width/2-o.width/2,y=i.y+i.height/2-o.height/2,b=i[f]/2-o[f]/2;let w;switch(h){case"top":w={x:m,y:i.y-o.height};break;case"bottom":w={x:m,y:i.y+i.height};break;case"right":w={x:i.x+i.width,y};break;case"left":w={x:i.x-o.width,y};break;default:w={x:i.x,y:i.y}}switch(cl(n)){case"start":w[c]-=b*(r&&d?-1:1);break;case"end":w[c]+=b*(r&&d?-1:1);break}return w}const UD=async(e,n,r)=>{const{placement:i="bottom",strategy:o="absolute",middleware:s=[],platform:c}=r,f=s.filter(Boolean),h=await(c.isRTL==null?void 0:c.isRTL(n));let d=await c.getElementRects({reference:e,floating:n,strategy:o}),{x:m,y}=hb(d,i,h),b=i,w={},C=0;for(let k=0;k<f.length;k++){const{name:T,fn:A}=f[k],{x:_,y:N,data:O,reset:z}=await A({x:m,y,initialPlacement:i,placement:b,strategy:o,middlewareData:w,rects:d,platform:c,elements:{reference:e,floating:n}});m=_??m,y=N??y,w={...w,[T]:{...w[T],...O}},z&&C<=50&&(C++,typeof z=="object"&&(z.placement&&(b=z.placement),z.rects&&(d=z.rects===!0?await c.getElementRects({reference:e,floating:n,strategy:o}):z.rects),{x:m,y}=hb(d,b,h)),k=-1)}return{x:m,y,placement:b,strategy:o,middlewareData:w}};async function No(e,n){var r;n===void 0&&(n={});const{x:i,y:o,platform:s,rects:c,elements:f,strategy:h}=e,{boundary:d="clippingAncestors",rootBoundary:m="viewport",elementContext:y="floating",altBoundary:b=!1,padding:w=0}=Lr(n,e),C=Sw(w),T=f[b?y==="floating"?"reference":"floating":y],A=Zu(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(T)))==null||r?T:T.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(f.floating)),boundary:d,rootBoundary:m,strategy:h})),_=y==="floating"?{x:i,y:o,width:c.floating.width,height:c.floating.height}:c.reference,N=await(s.getOffsetParent==null?void 0:s.getOffsetParent(f.floating)),O=await(s.isElement==null?void 0:s.isElement(N))?await(s.getScale==null?void 0:s.getScale(N))||{x:1,y:1}:{x:1,y:1},z=Zu(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:_,offsetParent:N,strategy:h}):_);return{top:(A.top-z.top+C.top)/O.y,bottom:(z.bottom-A.bottom+C.bottom)/O.y,left:(A.left-z.left+C.left)/O.x,right:(z.right-A.right+C.right)/O.x}}const HD=e=>({name:"arrow",options:e,async fn(n){const{x:r,y:i,placement:o,rects:s,platform:c,elements:f,middlewareData:h}=n,{element:d,padding:m=0}=Lr(e,n)||{};if(d==null)return{};const y=Sw(m),b={x:r,y:i},w=Xp(o),C=Kp(w),k=await c.getDimensions(d),T=w==="y",A=T?"top":"left",_=T?"bottom":"right",N=T?"clientHeight":"clientWidth",O=s.reference[C]+s.reference[w]-b[w]-s.floating[C],z=b[w]-s.reference[w],j=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d));let $=j?j[N]:0;(!$||!await(c.isElement==null?void 0:c.isElement(j)))&&($=f.floating[N]||s.floating[C]);const G=O/2-z/2,ee=$/2-k[C]/2-1,P=ya(y[A],ee),ne=ya(y[_],ee),ae=P,le=$-k[C]-ne,H=$/2-k[C]/2+G,Q=Qh(ae,H,le),L=!h.arrow&&cl(o)!=null&&H!==Q&&s.reference[C]/2-(H<ae?P:ne)-k[C]/2<0,K=L?H<ae?H-ae:H-le:0;return{[w]:b[w]+K,data:{[w]:Q,centerOffset:H-Q-K,...L&&{alignmentOffset:K}},reset:L}}}),FD=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(n){var r,i;const{placement:o,middlewareData:s,rects:c,initialPlacement:f,platform:h,elements:d}=n,{mainAxis:m=!0,crossAxis:y=!0,fallbackPlacements:b,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:k=!0,...T}=Lr(e,n);if((r=s.arrow)!=null&&r.alignmentOffset)return{};const A=zr(o),_=sr(f),N=zr(f)===f,O=await(h.isRTL==null?void 0:h.isRTL(d.floating)),z=b||(N||!k?[Qu(f)]:OD(f)),j=C!=="none";!b&&j&&z.push(...ID(f,k,C,O));const $=[f,...z],G=await No(n,T),ee=[];let P=((i=s.flip)==null?void 0:i.overflows)||[];if(m&&ee.push(G[A]),y){const H=DD(o,c,O);ee.push(G[H[0]],G[H[1]])}if(P=[...P,{placement:o,overflows:ee}],!ee.every(H=>H<=0)){var ne,ae;const H=(((ne=s.flip)==null?void 0:ne.index)||0)+1,Q=$[H];if(Q&&(!(y==="alignment"?_!==sr(Q):!1)||P.every(U=>sr(U.placement)===_?U.overflows[0]>0:!0)))return{data:{index:H,overflows:P},reset:{placement:Q}};let L=(ae=P.filter(K=>K.overflows[0]<=0).sort((K,U)=>K.overflows[1]-U.overflows[1])[0])==null?void 0:ae.placement;if(!L)switch(w){case"bestFit":{var le;const K=(le=P.filter(U=>{if(j){const J=sr(U.placement);return J===_||J==="y"}return!0}).map(U=>[U.placement,U.overflows.filter(J=>J>0).reduce((J,E)=>J+E,0)]).sort((U,J)=>U[1]-J[1])[0])==null?void 0:le[0];K&&(L=K);break}case"initialPlacement":L=f;break}if(o!==L)return{reset:{placement:L}}}return{}}}};function pb(e,n){return{top:e.top-n.height,right:e.right-n.width,bottom:e.bottom-n.height,left:e.left-n.width}}function mb(e){return _D.some(n=>e[n]>=0)}const qD=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(n){const{rects:r}=n,{strategy:i="referenceHidden",...o}=Lr(e,n);switch(i){case"referenceHidden":{const s=await No(n,{...o,elementContext:"reference"}),c=pb(s,r.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:mb(c)}}}case"escaped":{const s=await No(n,{...o,altBoundary:!0}),c=pb(s,r.floating);return{data:{escapedOffsets:c,escaped:mb(c)}}}default:return{}}}}},Ew=new Set(["left","top"]);async function VD(e,n){const{placement:r,platform:i,elements:o}=e,s=await(i.isRTL==null?void 0:i.isRTL(o.floating)),c=zr(r),f=cl(r),h=sr(r)==="y",d=Ew.has(c)?-1:1,m=s&&h?-1:1,y=Lr(n,e);let{mainAxis:b,crossAxis:w,alignmentAxis:C}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return f&&typeof C=="number"&&(w=f==="end"?C*-1:C),h?{x:w*m,y:b*d}:{x:b*d,y:w*m}}const $D=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(n){var r,i;const{x:o,y:s,placement:c,middlewareData:f}=n,h=await VD(n,e);return c===((r=f.offset)==null?void 0:r.placement)&&(i=f.arrow)!=null&&i.alignmentOffset?{}:{x:o+h.x,y:s+h.y,data:{...h,placement:c}}}}},GD=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(n){const{x:r,y:i,placement:o}=n,{mainAxis:s=!0,crossAxis:c=!1,limiter:f={fn:T=>{let{x:A,y:_}=T;return{x:A,y:_}}},...h}=Lr(e,n),d={x:r,y:i},m=await No(n,h),y=sr(zr(o)),b=Yp(y);let w=d[b],C=d[y];if(s){const T=b==="y"?"top":"left",A=b==="y"?"bottom":"right",_=w+m[T],N=w-m[A];w=Qh(_,w,N)}if(c){const T=y==="y"?"top":"left",A=y==="y"?"bottom":"right",_=C+m[T],N=C-m[A];C=Qh(_,C,N)}const k=f.fn({...n,[b]:w,[y]:C});return{...k,data:{x:k.x-r,y:k.y-i,enabled:{[b]:s,[y]:c}}}}}},YD=function(e){return e===void 0&&(e={}),{options:e,fn(n){const{x:r,y:i,placement:o,rects:s,middlewareData:c}=n,{offset:f=0,mainAxis:h=!0,crossAxis:d=!0}=Lr(e,n),m={x:r,y:i},y=sr(o),b=Yp(y);let w=m[b],C=m[y];const k=Lr(f,n),T=typeof k=="number"?{mainAxis:k,crossAxis:0}:{mainAxis:0,crossAxis:0,...k};if(h){const N=b==="y"?"height":"width",O=s.reference[b]-s.floating[N]+T.mainAxis,z=s.reference[b]+s.reference[N]-T.mainAxis;w<O?w=O:w>z&&(w=z)}if(d){var A,_;const N=b==="y"?"width":"height",O=Ew.has(zr(o)),z=s.reference[y]-s.floating[N]+(O&&((A=c.offset)==null?void 0:A[y])||0)+(O?0:T.crossAxis),j=s.reference[y]+s.reference[N]+(O?0:((_=c.offset)==null?void 0:_[y])||0)-(O?T.crossAxis:0);C<z?C=z:C>j&&(C=j)}return{[b]:w,[y]:C}}}},KD=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(n){var r,i;const{placement:o,rects:s,platform:c,elements:f}=n,{apply:h=()=>{},...d}=Lr(e,n),m=await No(n,d),y=zr(o),b=cl(o),w=sr(o)==="y",{width:C,height:k}=s.floating;let T,A;y==="top"||y==="bottom"?(T=y,A=b===(await(c.isRTL==null?void 0:c.isRTL(f.floating))?"start":"end")?"left":"right"):(A=y,T=b==="end"?"top":"bottom");const _=k-m.top-m.bottom,N=C-m.left-m.right,O=ya(k-m[T],_),z=ya(C-m[A],N),j=!n.middlewareData.shift;let $=O,G=z;if((r=n.middlewareData.shift)!=null&&r.enabled.x&&(G=N),(i=n.middlewareData.shift)!=null&&i.enabled.y&&($=_),j&&!b){const P=vn(m.left,0),ne=vn(m.right,0),ae=vn(m.top,0),le=vn(m.bottom,0);w?G=C-2*(P!==0||ne!==0?P+ne:vn(m.left,m.right)):$=k-2*(ae!==0||le!==0?ae+le:vn(m.top,m.bottom))}await h({...n,availableWidth:G,availableHeight:$});const ee=await c.getDimensions(f.floating);return C!==ee.width||k!==ee.height?{reset:{rects:!0}}:{}}}};function xc(){return typeof window<"u"}function fl(e){return Cw(e)?(e.nodeName||"").toLowerCase():"#document"}function xn(e){var n;return(e==null||(n=e.ownerDocument)==null?void 0:n.defaultView)||window}function dr(e){var n;return(n=(Cw(e)?e.ownerDocument:e.document)||window.document)==null?void 0:n.documentElement}function Cw(e){return xc()?e instanceof Node||e instanceof xn(e).Node:!1}function Yn(e){return xc()?e instanceof Element||e instanceof xn(e).Element:!1}function fr(e){return xc()?e instanceof HTMLElement||e instanceof xn(e).HTMLElement:!1}function gb(e){return!xc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof xn(e).ShadowRoot}const XD=new Set(["inline","contents"]);function Xo(e){const{overflow:n,overflowX:r,overflowY:i,display:o}=Kn(e);return/auto|scroll|overlay|hidden|clip/.test(n+i+r)&&!XD.has(o)}const QD=new Set(["table","td","th"]);function ZD(e){return QD.has(fl(e))}const WD=[":popover-open",":modal"];function bc(e){return WD.some(n=>{try{return e.matches(n)}catch{return!1}})}const JD=["transform","translate","scale","rotate","perspective"],eO=["transform","translate","scale","rotate","perspective","filter"],tO=["paint","layout","strict","content"];function Qp(e){const n=Zp(),r=Yn(e)?Kn(e):e;return JD.some(i=>r[i]?r[i]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!n&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!n&&(r.filter?r.filter!=="none":!1)||eO.some(i=>(r.willChange||"").includes(i))||tO.some(i=>(r.contain||"").includes(i))}function nO(e){let n=va(e);for(;fr(n)&&!Ji(n);){if(Qp(n))return n;if(bc(n))return null;n=va(n)}return null}function Zp(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const rO=new Set(["html","body","#document"]);function Ji(e){return rO.has(fl(e))}function Kn(e){return xn(e).getComputedStyle(e)}function wc(e){return Yn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function va(e){if(fl(e)==="html")return e;const n=e.assignedSlot||e.parentNode||gb(e)&&e.host||dr(e);return gb(n)?n.host:n}function kw(e){const n=va(e);return Ji(n)?e.ownerDocument?e.ownerDocument.body:e.body:fr(n)&&Xo(n)?n:kw(n)}function Mo(e,n,r){var i;n===void 0&&(n=[]),r===void 0&&(r=!0);const o=kw(e),s=o===((i=e.ownerDocument)==null?void 0:i.body),c=xn(o);if(s){const f=Wh(c);return n.concat(c,c.visualViewport||[],Xo(o)?o:[],f&&r?Mo(f):[])}return n.concat(o,Mo(o,[],r))}function Wh(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Aw(e){const n=Kn(e);let r=parseFloat(n.width)||0,i=parseFloat(n.height)||0;const o=fr(e),s=o?e.offsetWidth:r,c=o?e.offsetHeight:i,f=Xu(r)!==s||Xu(i)!==c;return f&&(r=s,i=c),{width:r,height:i,$:f}}function Wp(e){return Yn(e)?e:e.contextElement}function Xi(e){const n=Wp(e);if(!fr(n))return ur(1);const r=n.getBoundingClientRect(),{width:i,height:o,$:s}=Aw(n);let c=(s?Xu(r.width):r.width)/i,f=(s?Xu(r.height):r.height)/o;return(!c||!Number.isFinite(c))&&(c=1),(!f||!Number.isFinite(f))&&(f=1),{x:c,y:f}}const aO=ur(0);function Tw(e){const n=xn(e);return!Zp()||!n.visualViewport?aO:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function iO(e,n,r){return n===void 0&&(n=!1),!r||n&&r!==xn(e)?!1:n}function Ya(e,n,r,i){n===void 0&&(n=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),s=Wp(e);let c=ur(1);n&&(i?Yn(i)&&(c=Xi(i)):c=Xi(e));const f=iO(s,r,i)?Tw(s):ur(0);let h=(o.left+f.x)/c.x,d=(o.top+f.y)/c.y,m=o.width/c.x,y=o.height/c.y;if(s){const b=xn(s),w=i&&Yn(i)?xn(i):i;let C=b,k=Wh(C);for(;k&&i&&w!==C;){const T=Xi(k),A=k.getBoundingClientRect(),_=Kn(k),N=A.left+(k.clientLeft+parseFloat(_.paddingLeft))*T.x,O=A.top+(k.clientTop+parseFloat(_.paddingTop))*T.y;h*=T.x,d*=T.y,m*=T.x,y*=T.y,h+=N,d+=O,C=xn(k),k=Wh(C)}}return Zu({width:m,height:y,x:h,y:d})}function Sc(e,n){const r=wc(e).scrollLeft;return n?n.left+r:Ya(dr(e)).left+r}function Rw(e,n){const r=e.getBoundingClientRect(),i=r.left+n.scrollLeft-Sc(e,r),o=r.top+n.scrollTop;return{x:i,y:o}}function lO(e){let{elements:n,rect:r,offsetParent:i,strategy:o}=e;const s=o==="fixed",c=dr(i),f=n?bc(n.floating):!1;if(i===c||f&&s)return r;let h={scrollLeft:0,scrollTop:0},d=ur(1);const m=ur(0),y=fr(i);if((y||!y&&!s)&&((fl(i)!=="body"||Xo(c))&&(h=wc(i)),fr(i))){const w=Ya(i);d=Xi(i),m.x=w.x+i.clientLeft,m.y=w.y+i.clientTop}const b=c&&!y&&!s?Rw(c,h):ur(0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-h.scrollLeft*d.x+m.x+b.x,y:r.y*d.y-h.scrollTop*d.y+m.y+b.y}}function oO(e){return Array.from(e.getClientRects())}function sO(e){const n=dr(e),r=wc(e),i=e.ownerDocument.body,o=vn(n.scrollWidth,n.clientWidth,i.scrollWidth,i.clientWidth),s=vn(n.scrollHeight,n.clientHeight,i.scrollHeight,i.clientHeight);let c=-r.scrollLeft+Sc(e);const f=-r.scrollTop;return Kn(i).direction==="rtl"&&(c+=vn(n.clientWidth,i.clientWidth)-o),{width:o,height:s,x:c,y:f}}const yb=25;function uO(e,n){const r=xn(e),i=dr(e),o=r.visualViewport;let s=i.clientWidth,c=i.clientHeight,f=0,h=0;if(o){s=o.width,c=o.height;const m=Zp();(!m||m&&n==="fixed")&&(f=o.offsetLeft,h=o.offsetTop)}const d=Sc(i);if(d<=0){const m=i.ownerDocument,y=m.body,b=getComputedStyle(y),w=m.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,C=Math.abs(i.clientWidth-y.clientWidth-w);C<=yb&&(s-=C)}else d<=yb&&(s+=d);return{width:s,height:c,x:f,y:h}}const cO=new Set(["absolute","fixed"]);function fO(e,n){const r=Ya(e,!0,n==="fixed"),i=r.top+e.clientTop,o=r.left+e.clientLeft,s=fr(e)?Xi(e):ur(1),c=e.clientWidth*s.x,f=e.clientHeight*s.y,h=o*s.x,d=i*s.y;return{width:c,height:f,x:h,y:d}}function vb(e,n,r){let i;if(n==="viewport")i=uO(e,r);else if(n==="document")i=sO(dr(e));else if(Yn(n))i=fO(n,r);else{const o=Tw(e);i={x:n.x-o.x,y:n.y-o.y,width:n.width,height:n.height}}return Zu(i)}function _w(e,n){const r=va(e);return r===n||!Yn(r)||Ji(r)?!1:Kn(r).position==="fixed"||_w(r,n)}function dO(e,n){const r=n.get(e);if(r)return r;let i=Mo(e,[],!1).filter(f=>Yn(f)&&fl(f)!=="body"),o=null;const s=Kn(e).position==="fixed";let c=s?va(e):e;for(;Yn(c)&&!Ji(c);){const f=Kn(c),h=Qp(c);!h&&f.position==="fixed"&&(o=null),(s?!h&&!o:!h&&f.position==="static"&&!!o&&cO.has(o.position)||Xo(c)&&!h&&_w(e,c))?i=i.filter(m=>m!==c):o=f,c=va(c)}return n.set(e,i),i}function hO(e){let{element:n,boundary:r,rootBoundary:i,strategy:o}=e;const c=[...r==="clippingAncestors"?bc(n)?[]:dO(n,this._c):[].concat(r),i],f=c[0],h=c.reduce((d,m)=>{const y=vb(n,m,o);return d.top=vn(y.top,d.top),d.right=ya(y.right,d.right),d.bottom=ya(y.bottom,d.bottom),d.left=vn(y.left,d.left),d},vb(n,f,o));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}}function pO(e){const{width:n,height:r}=Aw(e);return{width:n,height:r}}function mO(e,n,r){const i=fr(n),o=dr(n),s=r==="fixed",c=Ya(e,!0,s,n);let f={scrollLeft:0,scrollTop:0};const h=ur(0);function d(){h.x=Sc(o)}if(i||!i&&!s)if((fl(n)!=="body"||Xo(o))&&(f=wc(n)),i){const w=Ya(n,!0,s,n);h.x=w.x+n.clientLeft,h.y=w.y+n.clientTop}else o&&d();s&&!i&&o&&d();const m=o&&!i&&!s?Rw(o,f):ur(0),y=c.left+f.scrollLeft-h.x-m.x,b=c.top+f.scrollTop-h.y-m.y;return{x:y,y:b,width:c.width,height:c.height}}function mh(e){return Kn(e).position==="static"}function xb(e,n){if(!fr(e)||Kn(e).position==="fixed")return null;if(n)return n(e);let r=e.offsetParent;return dr(e)===r&&(r=r.ownerDocument.body),r}function Nw(e,n){const r=xn(e);if(bc(e))return r;if(!fr(e)){let o=va(e);for(;o&&!Ji(o);){if(Yn(o)&&!mh(o))return o;o=va(o)}return r}let i=xb(e,n);for(;i&&ZD(i)&&mh(i);)i=xb(i,n);return i&&Ji(i)&&mh(i)&&!Qp(i)?r:i||nO(e)||r}const gO=async function(e){const n=this.getOffsetParent||Nw,r=this.getDimensions,i=await r(e.floating);return{reference:mO(e.reference,await n(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function yO(e){return Kn(e).direction==="rtl"}const vO={convertOffsetParentRelativeRectToViewportRelativeRect:lO,getDocumentElement:dr,getClippingRect:hO,getOffsetParent:Nw,getElementRects:gO,getClientRects:oO,getDimensions:pO,getScale:Xi,isElement:Yn,isRTL:yO};function Mw(e,n){return e.x===n.x&&e.y===n.y&&e.width===n.width&&e.height===n.height}function xO(e,n){let r=null,i;const o=dr(e);function s(){var f;clearTimeout(i),(f=r)==null||f.disconnect(),r=null}function c(f,h){f===void 0&&(f=!1),h===void 0&&(h=1),s();const d=e.getBoundingClientRect(),{left:m,top:y,width:b,height:w}=d;if(f||n(),!b||!w)return;const C=Ru(y),k=Ru(o.clientWidth-(m+b)),T=Ru(o.clientHeight-(y+w)),A=Ru(m),N={rootMargin:-C+"px "+-k+"px "+-T+"px "+-A+"px",threshold:vn(0,ya(1,h))||1};let O=!0;function z(j){const $=j[0].intersectionRatio;if($!==h){if(!O)return c();$?c(!1,$):i=setTimeout(()=>{c(!1,1e-7)},1e3)}$===1&&!Mw(d,e.getBoundingClientRect())&&c(),O=!1}try{r=new IntersectionObserver(z,{...N,root:o.ownerDocument})}catch{r=new IntersectionObserver(z,N)}r.observe(e)}return c(!0),s}function bO(e,n,r,i){i===void 0&&(i={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:h=!1}=i,d=Wp(e),m=o||s?[...d?Mo(d):[],...Mo(n)]:[];m.forEach(A=>{o&&A.addEventListener("scroll",r,{passive:!0}),s&&A.addEventListener("resize",r)});const y=d&&f?xO(d,r):null;let b=-1,w=null;c&&(w=new ResizeObserver(A=>{let[_]=A;_&&_.target===d&&w&&(w.unobserve(n),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var N;(N=w)==null||N.observe(n)})),r()}),d&&!h&&w.observe(d),w.observe(n));let C,k=h?Ya(e):null;h&&T();function T(){const A=Ya(e);k&&!Mw(k,A)&&r(),k=A,C=requestAnimationFrame(T)}return r(),()=>{var A;m.forEach(_=>{o&&_.removeEventListener("scroll",r),s&&_.removeEventListener("resize",r)}),y?.(),(A=w)==null||A.disconnect(),w=null,h&&cancelAnimationFrame(C)}}const wO=$D,SO=GD,EO=FD,CO=KD,kO=qD,bb=HD,AO=YD,TO=(e,n,r)=>{const i=new Map,o={platform:vO,...r},s={...o.platform,_c:i};return UD(e,n,{...o,platform:s})};var RO=typeof document<"u",_O=function(){},Hu=RO?x.useLayoutEffect:_O;function Wu(e,n){if(e===n)return!0;if(typeof e!=typeof n)return!1;if(typeof e=="function"&&e.toString()===n.toString())return!0;let r,i,o;if(e&&n&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==n.length)return!1;for(i=r;i--!==0;)if(!Wu(e[i],n[i]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!{}.hasOwnProperty.call(n,o[i]))return!1;for(i=r;i--!==0;){const s=o[i];if(!(s==="_owner"&&e.$$typeof)&&!Wu(e[s],n[s]))return!1}return!0}return e!==e&&n!==n}function jw(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function wb(e,n){const r=jw(e);return Math.round(n*r)/r}function gh(e){const n=x.useRef(e);return Hu(()=>{n.current=e}),n}function NO(e){e===void 0&&(e={});const{placement:n="bottom",strategy:r="absolute",middleware:i=[],platform:o,elements:{reference:s,floating:c}={},transform:f=!0,whileElementsMounted:h,open:d}=e,[m,y]=x.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[b,w]=x.useState(i);Wu(b,i)||w(i);const[C,k]=x.useState(null),[T,A]=x.useState(null),_=x.useCallback(U=>{U!==j.current&&(j.current=U,k(U))},[]),N=x.useCallback(U=>{U!==$.current&&($.current=U,A(U))},[]),O=s||C,z=c||T,j=x.useRef(null),$=x.useRef(null),G=x.useRef(m),ee=h!=null,P=gh(h),ne=gh(o),ae=gh(d),le=x.useCallback(()=>{if(!j.current||!$.current)return;const U={placement:n,strategy:r,middleware:b};ne.current&&(U.platform=ne.current),TO(j.current,$.current,U).then(J=>{const E={...J,isPositioned:ae.current!==!1};H.current&&!Wu(G.current,E)&&(G.current=E,uc.flushSync(()=>{y(E)}))})},[b,n,r,ne,ae]);Hu(()=>{d===!1&&G.current.isPositioned&&(G.current.isPositioned=!1,y(U=>({...U,isPositioned:!1})))},[d]);const H=x.useRef(!1);Hu(()=>(H.current=!0,()=>{H.current=!1}),[]),Hu(()=>{if(O&&(j.current=O),z&&($.current=z),O&&z){if(P.current)return P.current(O,z,le);le()}},[O,z,le,P,ee]);const Q=x.useMemo(()=>({reference:j,floating:$,setReference:_,setFloating:N}),[_,N]),L=x.useMemo(()=>({reference:O,floating:z}),[O,z]),K=x.useMemo(()=>{const U={position:r,left:0,top:0};if(!L.floating)return U;const J=wb(L.floating,m.x),E=wb(L.floating,m.y);return f?{...U,transform:"translate("+J+"px, "+E+"px)",...jw(L.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:J,top:E}},[r,f,L.floating,m.x,m.y]);return x.useMemo(()=>({...m,update:le,refs:Q,elements:L,floatingStyles:K}),[m,le,Q,L,K])}const MO=e=>{function n(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:i,padding:o}=typeof e=="function"?e(r):e;return i&&n(i)?i.current!=null?bb({element:i.current,padding:o}).fn(r):{}:i?bb({element:i,padding:o}).fn(r):{}}}},jO=(e,n)=>({...wO(e),options:[e,n]}),DO=(e,n)=>({...SO(e),options:[e,n]}),OO=(e,n)=>({...AO(e),options:[e,n]}),LO=(e,n)=>({...EO(e),options:[e,n]}),zO=(e,n)=>({...CO(e),options:[e,n]}),PO=(e,n)=>({...kO(e),options:[e,n]}),IO=(e,n)=>({...MO(e),options:[e,n]});var BO="Arrow",Dw=x.forwardRef((e,n)=>{const{children:r,width:i=10,height:o=5,...s}=e;return g.jsx(Fe.svg,{...s,ref:n,width:i,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:g.jsx("polygon",{points:"0,0 30,0 15,10"})})});Dw.displayName=BO;var UO=Dw;function Ow(e){const[n,r]=x.useState(void 0);return cr(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let c,f;if("borderBoxSize"in s){const h=s.borderBoxSize,d=Array.isArray(h)?h[0]:h;c=d.inlineSize,f=d.blockSize}else c=e.offsetWidth,f=e.offsetHeight;r({width:c,height:f})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else r(void 0)},[e]),n}var Jp="Popper",[Lw,Ec]=Qn(Jp),[HO,zw]=Lw(Jp),Pw=e=>{const{__scopePopper:n,children:r}=e,[i,o]=x.useState(null);return g.jsx(HO,{scope:n,anchor:i,onAnchorChange:o,children:r})};Pw.displayName=Jp;var Iw="PopperAnchor",Bw=x.forwardRef((e,n)=>{const{__scopePopper:r,virtualRef:i,...o}=e,s=zw(Iw,r),c=x.useRef(null),f=Xe(n,c),h=x.useRef(null);return x.useEffect(()=>{const d=h.current;h.current=i?.current||c.current,d!==h.current&&s.onAnchorChange(h.current)}),i?null:g.jsx(Fe.div,{...o,ref:f})});Bw.displayName=Iw;var em="PopperContent",[FO,qO]=Lw(em),Uw=x.forwardRef((e,n)=>{const{__scopePopper:r,side:i="bottom",sideOffset:o=0,align:s="center",alignOffset:c=0,arrowPadding:f=0,avoidCollisions:h=!0,collisionBoundary:d=[],collisionPadding:m=0,sticky:y="partial",hideWhenDetached:b=!1,updatePositionStrategy:w="optimized",onPlaced:C,...k}=e,T=zw(em,r),[A,_]=x.useState(null),N=Xe(n,xe=>_(xe)),[O,z]=x.useState(null),j=Ow(O),$=j?.width??0,G=j?.height??0,ee=i+(s!=="center"?"-"+s:""),P=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},ne=Array.isArray(d)?d:[d],ae=ne.length>0,le={padding:P,boundary:ne.filter($O),altBoundary:ae},{refs:H,floatingStyles:Q,placement:L,isPositioned:K,middlewareData:U}=NO({strategy:"fixed",placement:ee,whileElementsMounted:(...xe)=>bO(...xe,{animationFrame:w==="always"}),elements:{reference:T.anchor},middleware:[jO({mainAxis:o+G,alignmentAxis:c}),h&&DO({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?OO():void 0,...le}),h&&LO({...le}),zO({...le,apply:({elements:xe,rects:Ee,availableWidth:Qe,availableHeight:bt})=>{const{width:Rt,height:It}=Ee.reference,Yt=xe.floating.style;Yt.setProperty("--radix-popper-available-width",`${Qe}px`),Yt.setProperty("--radix-popper-available-height",`${bt}px`),Yt.setProperty("--radix-popper-anchor-width",`${Rt}px`),Yt.setProperty("--radix-popper-anchor-height",`${It}px`)}}),O&&IO({element:O,padding:f}),GO({arrowWidth:$,arrowHeight:G}),b&&PO({strategy:"referenceHidden",...le})]}),[J,E]=qw(L),Z=Ct(C);cr(()=>{K&&Z?.()},[K,Z]);const oe=U.arrow?.x,M=U.arrow?.y,se=U.arrow?.centerOffset!==0,[Se,he]=x.useState();return cr(()=>{A&&he(window.getComputedStyle(A).zIndex)},[A]),g.jsx("div",{ref:H.setFloating,"data-radix-popper-content-wrapper":"",style:{...Q,transform:K?Q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Se,"--radix-popper-transform-origin":[U.transformOrigin?.x,U.transformOrigin?.y].join(" "),...U.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:g.jsx(FO,{scope:r,placedSide:J,onArrowChange:z,arrowX:oe,arrowY:M,shouldHideArrow:se,children:g.jsx(Fe.div,{"data-side":J,"data-align":E,...k,ref:N,style:{...k.style,animation:K?void 0:"none"}})})})});Uw.displayName=em;var Hw="PopperArrow",VO={top:"bottom",right:"left",bottom:"top",left:"right"},Fw=x.forwardRef(function(n,r){const{__scopePopper:i,...o}=n,s=qO(Hw,i),c=VO[s.placedSide];return g.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:g.jsx(UO,{...o,ref:r,style:{...o.style,display:"block"}})})});Fw.displayName=Hw;function $O(e){return e!==null}var GO=e=>({name:"transformOrigin",options:e,fn(n){const{placement:r,rects:i,middlewareData:o}=n,c=o.arrow?.centerOffset!==0,f=c?0:e.arrowWidth,h=c?0:e.arrowHeight,[d,m]=qw(r),y={start:"0%",center:"50%",end:"100%"}[m],b=(o.arrow?.x??0)+f/2,w=(o.arrow?.y??0)+h/2;let C="",k="";return d==="bottom"?(C=c?y:`${b}px`,k=`${-h}px`):d==="top"?(C=c?y:`${b}px`,k=`${i.floating.height+h}px`):d==="right"?(C=`${-h}px`,k=c?y:`${w}px`):d==="left"&&(C=`${i.floating.width+h}px`,k=c?y:`${w}px`),{data:{x:C,y:k}}}});function qw(e){const[n,r="center"]=e.split("-");return[n,r]}var Vw=Pw,$w=Bw,Gw=Uw,Yw=Fw,[Cc,UB]=Qn("Tooltip",[Ec]),kc=Ec(),Kw="TooltipProvider",YO=700,Jh="tooltip.open",[KO,tm]=Cc(Kw),Xw=e=>{const{__scopeTooltip:n,delayDuration:r=YO,skipDelayDuration:i=300,disableHoverableContent:o=!1,children:s}=e,c=x.useRef(!0),f=x.useRef(!1),h=x.useRef(0);return x.useEffect(()=>{const d=h.current;return()=>window.clearTimeout(d)},[]),g.jsx(KO,{scope:n,isOpenDelayedRef:c,delayDuration:r,onOpen:x.useCallback(()=>{window.clearTimeout(h.current),c.current=!1},[]),onClose:x.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>c.current=!0,i)},[i]),isPointerInTransitRef:f,onPointerInTransitChange:x.useCallback(d=>{f.current=d},[]),disableHoverableContent:o,children:s})};Xw.displayName=Kw;var jo="Tooltip",[XO,Qo]=Cc(jo),Qw=e=>{const{__scopeTooltip:n,children:r,open:i,defaultOpen:o,onOpenChange:s,disableHoverableContent:c,delayDuration:f}=e,h=tm(jo,e.__scopeTooltip),d=kc(n),[m,y]=x.useState(null),b=$a(),w=x.useRef(0),C=c??h.disableHoverableContent,k=f??h.delayDuration,T=x.useRef(!1),[A,_]=ol({prop:i,defaultProp:o??!1,onChange:$=>{$?(h.onOpen(),document.dispatchEvent(new CustomEvent(Jh))):h.onClose(),s?.($)},caller:jo}),N=x.useMemo(()=>A?T.current?"delayed-open":"instant-open":"closed",[A]),O=x.useCallback(()=>{window.clearTimeout(w.current),w.current=0,T.current=!1,_(!0)},[_]),z=x.useCallback(()=>{window.clearTimeout(w.current),w.current=0,_(!1)},[_]),j=x.useCallback(()=>{window.clearTimeout(w.current),w.current=window.setTimeout(()=>{T.current=!0,_(!0),w.current=0},k)},[k,_]);return x.useEffect(()=>()=>{w.current&&(window.clearTimeout(w.current),w.current=0)},[]),g.jsx(Vw,{...d,children:g.jsx(XO,{scope:n,contentId:b,open:A,stateAttribute:N,trigger:m,onTriggerChange:y,onTriggerEnter:x.useCallback(()=>{h.isOpenDelayedRef.current?j():O()},[h.isOpenDelayedRef,j,O]),onTriggerLeave:x.useCallback(()=>{C?z():(window.clearTimeout(w.current),w.current=0)},[z,C]),onOpen:O,onClose:z,disableHoverableContent:C,children:r})})};Qw.displayName=jo;var ep="TooltipTrigger",Zw=x.forwardRef((e,n)=>{const{__scopeTooltip:r,...i}=e,o=Qo(ep,r),s=tm(ep,r),c=kc(r),f=x.useRef(null),h=Xe(n,f,o.onTriggerChange),d=x.useRef(!1),m=x.useRef(!1),y=x.useCallback(()=>d.current=!1,[]);return x.useEffect(()=>()=>document.removeEventListener("pointerup",y),[y]),g.jsx($w,{asChild:!0,...c,children:g.jsx(Fe.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...i,ref:h,onPointerMove:me(e.onPointerMove,b=>{b.pointerType!=="touch"&&!m.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),m.current=!0)}),onPointerLeave:me(e.onPointerLeave,()=>{o.onTriggerLeave(),m.current=!1}),onPointerDown:me(e.onPointerDown,()=>{o.open&&o.onClose(),d.current=!0,document.addEventListener("pointerup",y,{once:!0})}),onFocus:me(e.onFocus,()=>{d.current||o.onOpen()}),onBlur:me(e.onBlur,o.onClose),onClick:me(e.onClick,o.onClose)})})});Zw.displayName=ep;var nm="TooltipPortal",[QO,ZO]=Cc(nm,{forceMount:void 0}),Ww=e=>{const{__scopeTooltip:n,forceMount:r,children:i,container:o}=e,s=Qo(nm,n);return g.jsx(QO,{scope:n,forceMount:r,children:g.jsx($t,{present:r||s.open,children:g.jsx(qo,{asChild:!0,container:o,children:i})})})};Ww.displayName=nm;var el="TooltipContent",Jw=x.forwardRef((e,n)=>{const r=ZO(el,e.__scopeTooltip),{forceMount:i=r.forceMount,side:o="top",...s}=e,c=Qo(el,e.__scopeTooltip);return g.jsx($t,{present:i||c.open,children:c.disableHoverableContent?g.jsx(eS,{side:o,...s,ref:n}):g.jsx(WO,{side:o,...s,ref:n})})}),WO=x.forwardRef((e,n)=>{const r=Qo(el,e.__scopeTooltip),i=tm(el,e.__scopeTooltip),o=x.useRef(null),s=Xe(n,o),[c,f]=x.useState(null),{trigger:h,onClose:d}=r,m=o.current,{onPointerInTransitChange:y}=i,b=x.useCallback(()=>{f(null),y(!1)},[y]),w=x.useCallback((C,k)=>{const T=C.currentTarget,A={x:C.clientX,y:C.clientY},_=n4(A,T.getBoundingClientRect()),N=r4(A,_),O=a4(k.getBoundingClientRect()),z=l4([...N,...O]);f(z),y(!0)},[y]);return x.useEffect(()=>()=>b(),[b]),x.useEffect(()=>{if(h&&m){const C=T=>w(T,m),k=T=>w(T,h);return h.addEventListener("pointerleave",C),m.addEventListener("pointerleave",k),()=>{h.removeEventListener("pointerleave",C),m.removeEventListener("pointerleave",k)}}},[h,m,w,b]),x.useEffect(()=>{if(c){const C=k=>{const T=k.target,A={x:k.clientX,y:k.clientY},_=h?.contains(T)||m?.contains(T),N=!i4(A,c);_?b():N&&(b(),d())};return document.addEventListener("pointermove",C),()=>document.removeEventListener("pointermove",C)}},[h,m,c,d,b]),g.jsx(eS,{...e,ref:s})}),[JO,e4]=Cc(jo,{isInside:!1}),t4=Q0("TooltipContent"),eS=x.forwardRef((e,n)=>{const{__scopeTooltip:r,children:i,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:c,...f}=e,h=Qo(el,r),d=kc(r),{onClose:m}=h;return x.useEffect(()=>(document.addEventListener(Jh,m),()=>document.removeEventListener(Jh,m)),[m]),x.useEffect(()=>{if(h.trigger){const y=b=>{b.target?.contains(h.trigger)&&m()};return window.addEventListener("scroll",y,{capture:!0}),()=>window.removeEventListener("scroll",y,{capture:!0})}},[h.trigger,m]),g.jsx(Fo,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:y=>y.preventDefault(),onDismiss:m,children:g.jsxs(Gw,{"data-state":h.stateAttribute,...d,...f,ref:n,style:{...f.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[g.jsx(t4,{children:i}),g.jsx(JO,{scope:r,isInside:!0,children:g.jsx(k_,{id:h.contentId,role:"tooltip",children:o||i})})]})})});Jw.displayName=el;var tS="TooltipArrow",nS=x.forwardRef((e,n)=>{const{__scopeTooltip:r,...i}=e,o=kc(r);return e4(tS,r).isInside?null:g.jsx(Yw,{...o,...i,ref:n})});nS.displayName=tS;function n4(e,n){const r=Math.abs(n.top-e.y),i=Math.abs(n.bottom-e.y),o=Math.abs(n.right-e.x),s=Math.abs(n.left-e.x);switch(Math.min(r,i,o,s)){case s:return"left";case o:return"right";case r:return"top";case i:return"bottom";default:throw new Error("unreachable")}}function r4(e,n,r=5){const i=[];switch(n){case"top":i.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":i.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":i.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":i.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return i}function a4(e){const{top:n,right:r,bottom:i,left:o}=e;return[{x:o,y:n},{x:r,y:n},{x:r,y:i},{x:o,y:i}]}function i4(e,n){const{x:r,y:i}=e;let o=!1;for(let s=0,c=n.length-1;s<n.length;c=s++){const f=n[s],h=n[c],d=f.x,m=f.y,y=h.x,b=h.y;m>i!=b>i&&r<(y-d)*(i-m)/(b-m)+d&&(o=!o)}return o}function l4(e){const n=e.slice();return n.sort((r,i)=>r.x<i.x?-1:r.x>i.x?1:r.y<i.y?-1:r.y>i.y?1:0),o4(n)}function o4(e){if(e.length<=1)return e.slice();const n=[];for(let i=0;i<e.length;i++){const o=e[i];for(;n.length>=2;){const s=n[n.length-1],c=n[n.length-2];if((s.x-c.x)*(o.y-c.y)>=(s.y-c.y)*(o.x-c.x))n.pop();else break}n.push(o)}n.pop();const r=[];for(let i=e.length-1;i>=0;i--){const o=e[i];for(;r.length>=2;){const s=r[r.length-1],c=r[r.length-2];if((s.x-c.x)*(o.y-c.y)>=(s.y-c.y)*(o.x-c.x))r.pop();else break}r.push(o)}return r.pop(),n.length===1&&r.length===1&&n[0].x===r[0].x&&n[0].y===r[0].y?n:n.concat(r)}var s4=Xw,u4=Qw,c4=Zw,HB=Ww,rS=Jw,FB=nS;const f4=s4,d4=u4,h4=c4,aS=x.forwardRef(({className:e,sideOffset:n=4,...r},i)=>g.jsx(rS,{ref:i,sideOffset:n,className:fe("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r}));aS.displayName=rS.displayName;const p4="sidebar_state",m4=3600*24*7,g4="16rem",y4="18rem",v4="3rem",x4="b",iS=x.createContext(null);function Ac(){const e=x.useContext(iS);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const lS=x.forwardRef(({defaultOpen:e=!0,open:n,onOpenChange:r,className:i,style:o,children:s,...c},f)=>{const h=B1(),[d,m]=x.useState(!1),[y,b]=x.useState(e),w=n??y,C=x.useCallback(_=>{const N=typeof _=="function"?_(w):_;r?r(N):b(N),document.cookie=`${p4}=${N}; path=/; max-age=${m4}`},[r,w]),k=x.useCallback(()=>h?m(_=>!_):C(_=>!_),[h,C,m]);x.useEffect(()=>{const _=N=>{N.key===x4&&(N.metaKey||N.ctrlKey)&&(N.preventDefault(),k())};return window.addEventListener("keydown",_),()=>window.removeEventListener("keydown",_)},[k]);const T=w?"expanded":"collapsed",A=x.useMemo(()=>({state:T,open:w,setOpen:C,isMobile:h,openMobile:d,setOpenMobile:m,toggleSidebar:k}),[T,w,C,h,d,m,k]);return g.jsx(iS.Provider,{value:A,children:g.jsx(f4,{delayDuration:0,children:g.jsx("div",{style:{"--sidebar-width":g4,"--sidebar-width-icon":v4,...o},className:fe("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",i),ref:f,...c,children:s})})})});lS.displayName="SidebarProvider";const oS=x.forwardRef(({side:e="left",variant:n="sidebar",collapsible:r="offcanvas",className:i,children:o,...s},c)=>{const{isMobile:f,state:h,openMobile:d,setOpenMobile:m}=Ac();return r==="none"?g.jsx("div",{className:fe("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",i),ref:c,...s,children:o}):f?g.jsx(xw,{open:d,onOpenChange:m,...s,children:g.jsxs(Vp,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":y4},side:e,children:[g.jsxs($p,{className:"sr-only",children:[g.jsx(Gp,{children:"Sidebar"}),g.jsx(ww,{children:"Displays the mobile sidebar."})]}),g.jsx("div",{className:"flex h-full w-full flex-col",children:o})]})}):g.jsxs("div",{ref:c,className:"group peer hidden text-sidebar-foreground md:block","data-state":h,"data-collapsible":h==="collapsed"?r:"","data-variant":n,"data-side":e,children:[g.jsx("div",{className:fe("relative w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",n==="floating"||n==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),g.jsx("div",{className:fe("fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",n==="floating"||n==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",i),...s,children:g.jsx("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:o})})]})});oS.displayName="Sidebar";const sS=x.forwardRef(({className:e,onClick:n,...r},i)=>{const{toggleSidebar:o}=Ac();return g.jsxs(pt,{ref:i,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:fe("h-7 w-7",e),onClick:s=>{n?.(s),o()},...r,children:[g.jsx(QN,{}),g.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});sS.displayName="SidebarTrigger";const b4=x.forwardRef(({className:e,...n},r)=>{const{toggleSidebar:i}=Ac();return g.jsx("button",{ref:r,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:i,title:"Toggle Sidebar",className:fe("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...n})});b4.displayName="SidebarRail";const uS=x.forwardRef(({className:e,...n},r)=>g.jsx("main",{ref:r,className:fe("relative flex w-full flex-1 flex-col bg-background","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),...n}));uS.displayName="SidebarInset";const w4=x.forwardRef(({className:e,...n},r)=>g.jsx(U1,{ref:r,"data-sidebar":"input",className:fe("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...n}));w4.displayName="SidebarInput";const cS=x.forwardRef(({className:e,...n},r)=>g.jsx("div",{ref:r,"data-sidebar":"header",className:fe("flex flex-col gap-2 p-2",e),...n}));cS.displayName="SidebarHeader";const fS=x.forwardRef(({className:e,...n},r)=>g.jsx("div",{ref:r,"data-sidebar":"footer",className:fe("flex flex-col gap-2 p-2",e),...n}));fS.displayName="SidebarFooter";const S4=x.forwardRef(({className:e,...n},r)=>g.jsx(q1,{ref:r,"data-sidebar":"separator",className:fe("mx-2 w-auto bg-sidebar-border",e),...n}));S4.displayName="SidebarSeparator";const dS=x.forwardRef(({className:e,...n},r)=>g.jsx("div",{ref:r,"data-sidebar":"content",className:fe("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...n}));dS.displayName="SidebarContent";const yo=x.forwardRef(({className:e,...n},r)=>g.jsx("div",{ref:r,"data-sidebar":"group",className:fe("relative flex w-full min-w-0 flex-col p-2",e),...n}));yo.displayName="SidebarGroup";const Fu=x.forwardRef(({className:e,asChild:n=!1,...r},i)=>{const o=n?ll:"div";return g.jsx(o,{ref:i,"data-sidebar":"group-label",className:fe("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...r})});Fu.displayName="SidebarGroupLabel";const E4=x.forwardRef(({className:e,asChild:n=!1,...r},i)=>{const o=n?ll:"button";return g.jsx(o,{ref:i,"data-sidebar":"group-action",className:fe("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...r})});E4.displayName="SidebarGroupAction";const vo=x.forwardRef(({className:e,...n},r)=>g.jsx("div",{ref:r,"data-sidebar":"group-content",className:fe("w-full text-sm",e),...n}));vo.displayName="SidebarGroupContent";const Va=x.forwardRef(({className:e,...n},r)=>g.jsx("ul",{ref:r,"data-sidebar":"menu",className:fe("flex w-full min-w-0 flex-col gap-1",e),...n}));Va.displayName="SidebarMenu";const ha=x.forwardRef(({className:e,...n},r)=>g.jsx("li",{ref:r,"data-sidebar":"menu-item",className:fe("group/menu-item relative",e),...n}));ha.displayName="SidebarMenuItem";const C4=mc("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-active data-[active=true]:font-medium data-[active=true]:text-sidebar-active-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),pa=x.forwardRef(({asChild:e=!1,isActive:n=!1,variant:r="default",size:i="default",tooltip:o,className:s,...c},f)=>{const h=e?ll:"button",{isMobile:d,state:m}=Ac(),y=g.jsx(h,{ref:f,"data-sidebar":"menu-button","data-size":i,"data-active":n,className:fe(C4({variant:r,size:i}),s),...c});return o?(typeof o=="string"&&(o={children:o}),g.jsxs(d4,{children:[g.jsx(h4,{asChild:!0,children:y}),g.jsx(aS,{side:"right",align:"center",hidden:m!=="collapsed"||d,...o})]})):y});pa.displayName="SidebarMenuButton";const k4=x.forwardRef(({className:e,asChild:n=!1,showOnHover:r=!1,...i},o)=>{const s=n?ll:"button";return g.jsx(s,{ref:o,"data-sidebar":"menu-action",className:fe("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",r&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-active-foreground md:opacity-0",e),...i})});k4.displayName="SidebarMenuAction";const tp=x.forwardRef(({className:e,...n},r)=>g.jsx("div",{ref:r,"data-sidebar":"menu-badge",className:fe("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-full px-1.5 text-xs font-semibold tabular-nums shadow-sm","transition-all duration-200 ease-in-out hover:scale-110","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...n}));tp.displayName="SidebarMenuBadge";const A4=x.forwardRef(({className:e,showIcon:n=!1,...r},i)=>{const o=x.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return g.jsxs("div",{ref:i,"data-sidebar":"menu-skeleton",className:fe("flex h-8 items-center gap-2 rounded-md px-2",e),...r,children:[n&&g.jsx(cb,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),g.jsx(cb,{className:"h-4 max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":o}})]})});A4.displayName="SidebarMenuSkeleton";const hS=x.forwardRef(({className:e,...n},r)=>g.jsx("ul",{ref:r,"data-sidebar":"menu-sub",className:fe("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...n}));hS.displayName="SidebarMenuSub";const pS=x.forwardRef(({...e},n)=>g.jsx("li",{ref:n,...e}));pS.displayName="SidebarMenuSubItem";const mS=x.forwardRef(({asChild:e=!1,size:n="md",isActive:r,className:i,...o},s)=>{const c=e?ll:"a";return g.jsx(c,{ref:s,"data-sidebar":"menu-sub-button","data-size":n,"data-active":r,className:fe("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-active data-[active=true]:text-sidebar-active-foreground",n==="sm"&&"text-xs",n==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",i),...o})});mS.displayName="SidebarMenuSubButton";const T4="1.0.76-alpha.8",R4={version:T4};function _4({className:e}){return g.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,children:[g.jsx("path",{d:"M13 8c0-2.76-2.46-5-5.5-5S2 5.24 2 8h2l1-1 1 1h4"}),g.jsx("path",{d:"M13 7.14A5.82 5.82 0 0 1 16.5 6c3.04 0 5.5 2.24 5.5 5h-3l-1-1-1 1h-3"}),g.jsx("path",{d:"M5.89 9.71c-2.15 2.15-2.3 5.47-.35 7.43l4.24-4.25.7-.7.71-.71 2.12-2.12c-1.95-1.96-5.27-1.8-7.42.35"}),g.jsx("path",{d:"M11 15.5c.5 2.5-.17 4.5-1 6.5h4c2-5.5-.5-12-1-14"})]})}function Ha(e,n){if(n==="/")return e==="/";const r=e.match(/^\/terminal\/([^/]+)/);if(r){const i=r[1];if(n==="/agents")return i.startsWith("cp-")||i.startsWith("sk-");if(n==="/terminal")return!i.startsWith("cp-")&&!i.startsWith("sk-")}return e===n||e.startsWith(n+"/")}const N4=[{title:"Home",url:"/",icon:RN},{title:"Tasks",url:"/tasks",icon:pM},{title:"Skills",url:"/skills",icon:DM},{title:"Mail",url:"/mail",icon:HN}],M4=[{title:"Agents",url:"/agents",icon:So},{title:"Jobs",url:"/schedule",icon:tN},{title:"Utilities",url:"/utilities",icon:NM}],j4=[{title:"Knowledge",url:"/knowledge",icon:_o},{title:"Resources",url:"/resources",icon:bN}],Sb=[{title:"Overview",url:"/context/project",icon:_o},{title:"Architecture",url:"/context/architecture",icon:iM},{title:"Role",url:"/context/role",icon:AM}],D4=[{title:"Source Control",url:"/git",icon:S1},{title:"Terminal",url:"/terminal",icon:bM},{title:"Identity",url:"/identity",icon:NN},{title:"Activity",url:"/activity",icon:Q_}],O4=[{title:"Documentation",url:"https://docs.coconut.dev/studio",icon:KN,external:!0},{title:"Settings",url:"/settings/user",icon:oM}];function L4(){const{badges:e}=GR(),n=on(),[r,i]=x.useState(!1);return x.useEffect(()=>{Sb.some(s=>Ha(n.pathname,s.url))&&i(!0)},[n.pathname]),g.jsxs(oS,{className:"bg-sidebar border-r border-sidebar-border",children:[g.jsx(cS,{children:g.jsx(Va,{children:g.jsx(ha,{children:g.jsx(pa,{size:"lg",asChild:!0,className:"[&>svg]:!size-8",children:g.jsxs($n,{to:"/",children:[g.jsx(_4,{className:"size-8"}),g.jsxs("div",{className:"flex flex-col gap-0.5",children:[g.jsxs("span",{className:"font-semibold",children:[g.jsx("span",{className:"bg-gradient-to-r from-amber-500 via-orange-500 to-yellow-600 bg-clip-text text-transparent",children:"Coconut"}),g.jsx("span",{children:" Studio"})]}),g.jsxs("span",{className:"text-xs text-muted-foreground",children:["v",R4.version]})]})]})})})})}),g.jsxs(dS,{children:[g.jsx(yo,{children:g.jsx(vo,{children:g.jsx(Va,{children:N4.map(o=>g.jsx(ha,{children:g.jsx(pa,{asChild:!0,isActive:Ha(n.pathname,o.url),children:g.jsxs($n,{to:o.url,children:[g.jsx(o.icon,{}),g.jsx("span",{children:o.title})]})})},o.title))})})}),g.jsxs(yo,{children:[g.jsx(Fu,{children:"Work"}),g.jsx(vo,{children:g.jsx(Va,{children:M4.map(o=>{let s=0;return o.title==="Agents"&&e.codeSessions>0?s=e.codeSessions:o.title==="Jobs"&&e.runningScheduledJobs>0&&(s=e.runningScheduledJobs),g.jsxs(ha,{children:[g.jsx(pa,{asChild:!0,isActive:Ha(n.pathname,o.url),children:g.jsxs($n,{to:o.url,children:[g.jsx(o.icon,{}),g.jsx("span",{children:o.title})]})}),s>0&&g.jsx(tp,{className:"bg-blue-600 text-white dark:bg-blue-500",children:s})]},o.title)})})})]}),g.jsxs(yo,{children:[g.jsx(Fu,{children:"Assets"}),g.jsx(vo,{children:g.jsxs(Va,{children:[j4.map(o=>g.jsx(ha,{children:g.jsx(pa,{asChild:!0,isActive:Ha(n.pathname,o.url),children:g.jsxs($n,{to:o.url,children:[g.jsx(o.icon,{}),g.jsx("span",{children:o.title})]})})},o.title)),g.jsxs(ha,{children:[g.jsxs(pa,{onClick:()=>i(o=>!o),"data-state":r?"open":"closed",className:"w-full",children:[g.jsx(SN,{}),g.jsx("span",{children:"Context"}),g.jsx(lN,{className:`ml-auto size-4 shrink-0 transition-transform duration-200 ${r?"rotate-180":""}`})]}),r&&g.jsx(hS,{children:Sb.map(o=>g.jsx(pS,{children:g.jsx(mS,{asChild:!0,isActive:Ha(n.pathname,o.url),children:g.jsxs($n,{to:o.url,children:[g.jsx(o.icon,{}),g.jsx("span",{children:o.title})]})})},o.title))})]})]})})]}),g.jsxs(yo,{children:[g.jsx(Fu,{children:"System"}),g.jsx(vo,{children:g.jsx(Va,{children:D4.map(o=>{let s=0;return o.title==="Source Control"&&e.gitChanges>0?s=e.gitChanges:o.title==="Terminal"&&e.terminalSessions>0&&(s=e.terminalSessions),g.jsxs(ha,{children:[g.jsx(pa,{asChild:!0,isActive:Ha(n.pathname,o.url),children:g.jsxs($n,{to:o.url,children:[g.jsx(o.icon,{}),g.jsx("span",{children:o.title})]})}),s>0&&g.jsx(tp,{className:"bg-blue-600 text-white dark:bg-blue-500",children:s})]},o.title)})})})]})]}),g.jsx(fS,{children:g.jsx(Va,{children:O4.map(o=>g.jsx(ha,{children:g.jsx(pa,{asChild:!0,isActive:!o.external&&Ha(n.pathname,o.url==="/settings/user"?"/settings":o.url),children:o.external?g.jsxs("a",{href:o.url,target:"_blank",rel:"noopener noreferrer",children:[g.jsx(o.icon,{}),g.jsx("span",{children:o.title})]}):g.jsxs($n,{to:o.url,children:[g.jsx(o.icon,{}),g.jsx("span",{children:o.title})]})})},o.title))})})]})}function z4(e){const n=e.match(/\bres-\d+-[a-z0-9]+\b/g);return n?[...new Set(n)]:[]}const Tc=Fp,qB=vw,P4=qp,gS=x.forwardRef(({className:e,...n},r)=>g.jsx($o,{ref:r,className:fe("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...n}));gS.displayName=$o.displayName;const Zo=x.forwardRef(({className:e,children:n,...r},i)=>g.jsxs(P4,{children:[g.jsx(gS,{}),g.jsxs(Go,{ref:i,className:fe("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...r,children:[n,g.jsxs(vc,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[g.jsx(Yi,{className:"h-4 w-4"}),g.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Zo.displayName=Go.displayName;const Wo=({className:e,...n})=>g.jsx("div",{className:fe("flex flex-col space-y-1.5 text-center sm:text-left",e),...n});Wo.displayName="DialogHeader";const yS=({className:e,...n})=>g.jsx("div",{className:fe("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...n});yS.displayName="DialogFooter";const Jo=x.forwardRef(({className:e,...n},r)=>g.jsx(Yo,{ref:r,className:fe("text-lg font-semibold leading-none tracking-tight",e),...n}));Jo.displayName=Yo.displayName;const xo=x.forwardRef(({className:e,...n},r)=>g.jsx(Ko,{ref:r,className:fe("text-sm text-muted-foreground",e),...n}));xo.displayName=Ko.displayName;function yh({className:e,...n}){return g.jsx("kbd",{"data-slot":"kbd",className:fe("inline-flex h-5 items-center justify-center rounded border border-muted-foreground/30 bg-muted/50 px-1.5 font-sans text-[11px] font-medium text-muted-foreground shadow-sm",e),...n})}function VB({className:e,...n}){return g.jsx("span",{"data-slot":"kbd-group",className:fe("inline-flex items-center gap-0.5",e),...n})}function $B(){}function I4(e,n){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const B4=/[$_\p{ID_Start}]/u,U4=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,H4=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,F4=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,q4=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,vS={};function GB(e){return e?B4.test(String.fromCodePoint(e)):!1}function YB(e,n){const i=(n||vS).jsx?H4:U4;return e?i.test(String.fromCodePoint(e)):!1}function Eb(e,n){return(vS.jsx?q4:F4).test(e)}const V4=/[ \t\n\f\r]/g;function $4(e){return typeof e=="object"?e.type==="text"?Cb(e.value):!1:Cb(e)}function Cb(e){return e.replace(V4,"")===""}class es{constructor(n,r,i){this.normal=r,this.property=n,i&&(this.space=i)}}es.prototype.normal={};es.prototype.property={};es.prototype.space=void 0;function xS(e,n){const r={},i={};for(const o of e)Object.assign(r,o.property),Object.assign(i,o.normal);return new es(r,i,n)}function np(e){return e.toLowerCase()}class sn{constructor(n,r){this.attribute=r,this.property=n}}sn.prototype.attribute="";sn.prototype.booleanish=!1;sn.prototype.boolean=!1;sn.prototype.commaOrSpaceSeparated=!1;sn.prototype.commaSeparated=!1;sn.prototype.defined=!1;sn.prototype.mustUseProperty=!1;sn.prototype.number=!1;sn.prototype.overloadedBoolean=!1;sn.prototype.property="";sn.prototype.spaceSeparated=!1;sn.prototype.space=void 0;let G4=0;const Le=Xa(),Et=Xa(),rp=Xa(),ce=Xa(),lt=Xa(),Qi=Xa(),yn=Xa();function Xa(){return 2**++G4}const ap=Object.freeze(Object.defineProperty({__proto__:null,boolean:Le,booleanish:Et,commaOrSpaceSeparated:yn,commaSeparated:Qi,number:ce,overloadedBoolean:rp,spaceSeparated:lt},Symbol.toStringTag,{value:"Module"})),vh=Object.keys(ap);class rm extends sn{constructor(n,r,i,o){let s=-1;if(super(n,r),kb(this,"space",o),typeof i=="number")for(;++s<vh.length;){const c=vh[s];kb(this,vh[s],(i&ap[c])===ap[c])}}}rm.prototype.defined=!0;function kb(e,n,r){r&&(e[n]=r)}function dl(e){const n={},r={};for(const[i,o]of Object.entries(e.properties)){const s=new rm(i,e.transform(e.attributes||{},i),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(s.mustUseProperty=!0),n[i]=s,r[np(i)]=i,r[np(s.attribute)]=i}return new es(n,r,e.space)}const bS=dl({properties:{ariaActiveDescendant:null,ariaAtomic:Et,ariaAutoComplete:null,ariaBusy:Et,ariaChecked:Et,ariaColCount:ce,ariaColIndex:ce,ariaColSpan:ce,ariaControls:lt,ariaCurrent:null,ariaDescribedBy:lt,ariaDetails:null,ariaDisabled:Et,ariaDropEffect:lt,ariaErrorMessage:null,ariaExpanded:Et,ariaFlowTo:lt,ariaGrabbed:Et,ariaHasPopup:null,ariaHidden:Et,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:lt,ariaLevel:ce,ariaLive:null,ariaModal:Et,ariaMultiLine:Et,ariaMultiSelectable:Et,ariaOrientation:null,ariaOwns:lt,ariaPlaceholder:null,ariaPosInSet:ce,ariaPressed:Et,ariaReadOnly:Et,ariaRelevant:null,ariaRequired:Et,ariaRoleDescription:lt,ariaRowCount:ce,ariaRowIndex:ce,ariaRowSpan:ce,ariaSelected:Et,ariaSetSize:ce,ariaSort:null,ariaValueMax:ce,ariaValueMin:ce,ariaValueNow:ce,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function wS(e,n){return n in e?e[n]:n}function SS(e,n){return wS(e,n.toLowerCase())}const Y4=dl({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Qi,acceptCharset:lt,accessKey:lt,action:null,allow:null,allowFullScreen:Le,allowPaymentRequest:Le,allowUserMedia:Le,alt:null,as:null,async:Le,autoCapitalize:null,autoComplete:lt,autoFocus:Le,autoPlay:Le,blocking:lt,capture:null,charSet:null,checked:Le,cite:null,className:lt,cols:ce,colSpan:null,content:null,contentEditable:Et,controls:Le,controlsList:lt,coords:ce|Qi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Le,defer:Le,dir:null,dirName:null,disabled:Le,download:rp,draggable:Et,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Le,formTarget:null,headers:lt,height:ce,hidden:rp,high:ce,href:null,hrefLang:null,htmlFor:lt,httpEquiv:lt,id:null,imageSizes:null,imageSrcSet:null,inert:Le,inputMode:null,integrity:null,is:null,isMap:Le,itemId:null,itemProp:lt,itemRef:lt,itemScope:Le,itemType:lt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Le,low:ce,manifest:null,max:null,maxLength:ce,media:null,method:null,min:null,minLength:ce,multiple:Le,muted:Le,name:null,nonce:null,noModule:Le,noValidate:Le,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Le,optimum:ce,pattern:null,ping:lt,placeholder:null,playsInline:Le,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Le,referrerPolicy:null,rel:lt,required:Le,reversed:Le,rows:ce,rowSpan:ce,sandbox:lt,scope:null,scoped:Le,seamless:Le,selected:Le,shadowRootClonable:Le,shadowRootDelegatesFocus:Le,shadowRootMode:null,shape:null,size:ce,sizes:null,slot:null,span:ce,spellCheck:Et,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ce,step:null,style:null,tabIndex:ce,target:null,title:null,translate:null,type:null,typeMustMatch:Le,useMap:null,value:Et,width:ce,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:lt,axis:null,background:null,bgColor:null,border:ce,borderColor:null,bottomMargin:ce,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Le,declare:Le,event:null,face:null,frame:null,frameBorder:null,hSpace:ce,leftMargin:ce,link:null,longDesc:null,lowSrc:null,marginHeight:ce,marginWidth:ce,noResize:Le,noHref:Le,noShade:Le,noWrap:Le,object:null,profile:null,prompt:null,rev:null,rightMargin:ce,rules:null,scheme:null,scrolling:Et,standby:null,summary:null,text:null,topMargin:ce,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ce,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Le,disableRemotePlayback:Le,prefix:null,property:null,results:ce,security:null,unselectable:null},space:"html",transform:SS}),K4=dl({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",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",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:yn,accentHeight:ce,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ce,amplitude:ce,arabicForm:null,ascent:ce,attributeName:null,attributeType:null,azimuth:ce,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ce,by:null,calcMode:null,capHeight:ce,className:lt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ce,diffuseConstant:ce,direction:null,display:null,dur:null,divisor:ce,dominantBaseline:null,download:Le,dx:null,dy:null,edgeMode:null,editable:null,elevation:ce,enableBackground:null,end:null,event:null,exponent:ce,externalResourcesRequired:null,fill:null,fillOpacity:ce,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Qi,g2:Qi,glyphName:Qi,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ce,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ce,horizOriginX:ce,horizOriginY:ce,id:null,ideographic:ce,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ce,k:ce,k1:ce,k2:ce,k3:ce,k4:ce,kernelMatrix:yn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ce,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ce,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ce,overlineThickness:ce,paintOrder:null,panose1:null,path:null,pathLength:ce,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:lt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ce,pointsAtY:ce,pointsAtZ:ce,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:yn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:yn,rev:yn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:yn,requiredFeatures:yn,requiredFonts:yn,requiredFormats:yn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ce,specularExponent:ce,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ce,strikethroughThickness:ce,string:null,stroke:null,strokeDashArray:yn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ce,strokeOpacity:ce,strokeWidth:null,style:null,surfaceScale:ce,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:yn,tabIndex:ce,tableValues:null,target:null,targetX:ce,targetY:ce,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:yn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ce,underlineThickness:ce,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ce,values:null,vAlphabetic:ce,vMathematical:ce,vectorEffect:null,vHanging:ce,vIdeographic:ce,version:null,vertAdvY:ce,vertOriginX:ce,vertOriginY:ce,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ce,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:wS}),ES=dl({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}}),CS=dl({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:SS}),kS=dl({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),X4={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Q4=/[A-Z]/g,Ab=/-[a-z]/g,Z4=/^data[-\w.:]+$/i;function W4(e,n){const r=np(n);let i=n,o=sn;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&Z4.test(n)){if(n.charAt(4)==="-"){const s=n.slice(5).replace(Ab,eL);i="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=n.slice(4);if(!Ab.test(s)){let c=s.replace(Q4,J4);c.charAt(0)!=="-"&&(c="-"+c),n="data"+c}}o=rm}return new o(i,n)}function J4(e){return"-"+e.toLowerCase()}function eL(e){return e.charAt(1).toUpperCase()}const tL=xS([bS,Y4,ES,CS,kS],"html"),am=xS([bS,K4,ES,CS,kS],"svg");function nL(e){return e.join(" ").trim()}var Vi={},xh,Tb;function rL(){if(Tb)return xh;Tb=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,f=/^\s+|\s+$/g,h=`
386
- `,d="/",m="*",y="",b="comment",w="declaration";xh=function(k,T){if(typeof k!="string")throw new TypeError("First argument must be a string");if(!k)return[];T=T||{};var A=1,_=1;function N(le){var H=le.match(n);H&&(A+=H.length);var Q=le.lastIndexOf(h);_=~Q?le.length-Q:_+le.length}function O(){var le={line:A,column:_};return function(H){return H.position=new z(le),G(),H}}function z(le){this.start=le,this.end={line:A,column:_},this.source=T.source}z.prototype.content=k;function j(le){var H=new Error(T.source+":"+A+":"+_+": "+le);if(H.reason=le,H.filename=T.source,H.line=A,H.column=_,H.source=k,!T.silent)throw H}function $(le){var H=le.exec(k);if(H){var Q=H[0];return N(Q),k=k.slice(Q.length),H}}function G(){$(r)}function ee(le){var H;for(le=le||[];H=P();)H!==!1&&le.push(H);return le}function P(){var le=O();if(!(d!=k.charAt(0)||m!=k.charAt(1))){for(var H=2;y!=k.charAt(H)&&(m!=k.charAt(H)||d!=k.charAt(H+1));)++H;if(H+=2,y===k.charAt(H-1))return j("End of comment missing");var Q=k.slice(2,H-2);return _+=2,N(Q),k=k.slice(H),_+=2,le({type:b,comment:Q})}}function ne(){var le=O(),H=$(i);if(H){if(P(),!$(o))return j("property missing ':'");var Q=$(s),L=le({type:w,property:C(H[0].replace(e,y)),value:Q?C(Q[0].replace(e,y)):y});return $(c),L}}function ae(){var le=[];ee(le);for(var H;H=ne();)H!==!1&&(le.push(H),ee(le));return le}return G(),ae()};function C(k){return k?k.replace(f,y):y}return xh}var Rb;function aL(){if(Rb)return Vi;Rb=1;var e=Vi&&Vi.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Vi,"__esModule",{value:!0}),Vi.default=r;var n=e(rL());function r(i,o){var s=null;if(!i||typeof i!="string")return s;var c=(0,n.default)(i),f=typeof o=="function";return c.forEach(function(h){if(h.type==="declaration"){var d=h.property,m=h.value;f?o(d,m,h):m&&(s=s||{},s[d]=m)}}),s}return Vi}var ho={},_b;function iL(){if(_b)return ho;_b=1,Object.defineProperty(ho,"__esModule",{value:!0}),ho.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,s=function(d){return!d||r.test(d)||e.test(d)},c=function(d,m){return m.toUpperCase()},f=function(d,m){return"".concat(m,"-")},h=function(d,m){return m===void 0&&(m={}),s(d)?d:(d=d.toLowerCase(),m.reactCompat?d=d.replace(o,f):d=d.replace(i,f),d.replace(n,c))};return ho.camelCase=h,ho}var po,Nb;function lL(){if(Nb)return po;Nb=1;var e=po&&po.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},n=e(aL()),r=iL();function i(o,s){var c={};return!o||typeof o!="string"||(0,n.default)(o,function(f,h){f&&h&&(c[(0,r.camelCase)(f,s)]=h)}),c}return i.default=i,po=i,po}var oL=lL();const sL=lc(oL),AS=TS("end"),im=TS("start");function TS(e){return n;function n(r){const i=r&&r.position&&r.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function RS(e){const n=im(e),r=AS(e);if(n&&r)return{start:n,end:r}}function Eo(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Mb(e.position):"start"in e||"end"in e?Mb(e):"line"in e||"column"in e?ip(e):""}function ip(e){return jb(e&&e.line)+":"+jb(e&&e.column)}function Mb(e){return ip(e&&e.start)+"-"+ip(e&&e.end)}function jb(e){return e&&typeof e=="number"?e:1}class Gt extends Error{constructor(n,r,i){super(),typeof r=="string"&&(i=r,r=void 0);let o="",s={},c=!1;if(r&&("line"in r&&"column"in r?s={place:r}:"start"in r&&"end"in r?s={place:r}:"type"in r?s={ancestors:[r],place:r.position}:s={...r}),typeof n=="string"?o=n:!s.cause&&n&&(c=!0,o=n.message,s.cause=n),!s.ruleId&&!s.source&&typeof i=="string"){const h=i.indexOf(":");h===-1?s.ruleId=i:(s.source=i.slice(0,h),s.ruleId=i.slice(h+1))}if(!s.place&&s.ancestors&&s.ancestors){const h=s.ancestors[s.ancestors.length-1];h&&(s.place=h.position)}const f=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=f?f.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=f?f.line:void 0,this.name=Eo(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=c&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Gt.prototype.file="";Gt.prototype.name="";Gt.prototype.reason="";Gt.prototype.message="";Gt.prototype.stack="";Gt.prototype.column=void 0;Gt.prototype.line=void 0;Gt.prototype.ancestors=void 0;Gt.prototype.cause=void 0;Gt.prototype.fatal=void 0;Gt.prototype.place=void 0;Gt.prototype.ruleId=void 0;Gt.prototype.source=void 0;const lm={}.hasOwnProperty,uL=new Map,cL=/[A-Z]/g,fL=new Set(["table","tbody","thead","tfoot","tr"]),dL=new Set(["td","th"]),_S="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function hL(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=n.filePath||void 0;let i;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=wL(r,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=bL(r,n.jsx,n.jsxs)}const o={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:i,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?am:tL,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},s=NS(o,e,void 0);return s&&typeof s!="string"?s:o.create(e,o.Fragment,{children:s||void 0},void 0)}function NS(e,n,r){if(n.type==="element")return pL(e,n,r);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return mL(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return yL(e,n,r);if(n.type==="mdxjsEsm")return gL(e,n);if(n.type==="root")return vL(e,n,r);if(n.type==="text")return xL(e,n)}function pL(e,n,r){const i=e.schema;let o=i;n.tagName.toLowerCase()==="svg"&&i.space==="html"&&(o=am,e.schema=o),e.ancestors.push(n);const s=jS(e,n.tagName,!1),c=SL(e,n);let f=sm(e,n);return fL.has(n.tagName)&&(f=f.filter(function(h){return typeof h=="string"?!$4(h):!0})),MS(e,c,s,n),om(c,f),e.ancestors.pop(),e.schema=i,e.create(n,s,c,r)}function mL(e,n){if(n.data&&n.data.estree&&e.evaluater){const i=n.data.estree.body[0];return i.type,e.evaluater.evaluateExpression(i.expression)}Do(e,n.position)}function gL(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);Do(e,n.position)}function yL(e,n,r){const i=e.schema;let o=i;n.name==="svg"&&i.space==="html"&&(o=am,e.schema=o),e.ancestors.push(n);const s=n.name===null?e.Fragment:jS(e,n.name,!0),c=EL(e,n),f=sm(e,n);return MS(e,c,s,n),om(c,f),e.ancestors.pop(),e.schema=i,e.create(n,s,c,r)}function vL(e,n,r){const i={};return om(i,sm(e,n)),e.create(n,e.Fragment,i,r)}function xL(e,n){return n.value}function MS(e,n,r,i){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(n.node=i)}function om(e,n){if(n.length>0){const r=n.length>1?n:n[0];r&&(e.children=r)}}function bL(e,n,r){return i;function i(o,s,c,f){const d=Array.isArray(c.children)?r:n;return f?d(s,c,f):d(s,c)}}function wL(e,n){return r;function r(i,o,s,c){const f=Array.isArray(s.children),h=im(i);return n(o,s,c,f,{columnNumber:h?h.column-1:void 0,fileName:e,lineNumber:h?h.line:void 0},void 0)}}function SL(e,n){const r={};let i,o;for(o in n.properties)if(o!=="children"&&lm.call(n.properties,o)){const s=CL(e,o,n.properties[o]);if(s){const[c,f]=s;e.tableCellAlignToStyle&&c==="align"&&typeof f=="string"&&dL.has(n.tagName)?i=f:r[c]=f}}if(i){const s=r.style||(r.style={});s[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return r}function EL(e,n){const r={};for(const i of n.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const s=i.data.estree.body[0];s.type;const c=s.expression;c.type;const f=c.properties[0];f.type,Object.assign(r,e.evaluater.evaluateExpression(f.argument))}else Do(e,n.position);else{const o=i.name;let s;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const f=i.value.data.estree.body[0];f.type,s=e.evaluater.evaluateExpression(f.expression)}else Do(e,n.position);else s=i.value===null?!0:i.value;r[o]=s}return r}function sm(e,n){const r=[];let i=-1;const o=e.passKeys?new Map:uL;for(;++i<n.children.length;){const s=n.children[i];let c;if(e.passKeys){const h=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(h){const d=o.get(h)||0;c=h+"-"+d,o.set(h,d+1)}}const f=NS(e,s,c);f!==void 0&&r.push(f)}return r}function CL(e,n,r){const i=W4(e.schema,n);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=i.commaSeparated?I4(r):nL(r)),i.property==="style"){let o=typeof r=="object"?r:kL(e,String(r));return e.stylePropertyNameCase==="css"&&(o=AL(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&i.space?X4[i.property]||i.property:i.attribute,r]}}function kL(e,n){try{return sL(n,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const i=r,o=new Gt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=e.filePath||void 0,o.url=_S+"#cannot-parse-style-attribute",o}}function jS(e,n,r){let i;if(!r)i={type:"Literal",value:n};else if(n.includes(".")){const o=n.split(".");let s=-1,c;for(;++s<o.length;){const f=Eb(o[s])?{type:"Identifier",name:o[s]}:{type:"Literal",value:o[s]};c=c?{type:"MemberExpression",object:c,property:f,computed:!!(s&&f.type==="Literal"),optional:!1}:f}i=c}else i=Eb(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(i.type==="Literal"){const o=i.value;return lm.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(i);Do(e)}function Do(e,n){const r=new Gt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=_S+"#cannot-handle-mdx-estrees-without-createevaluater",r}function AL(e){const n={};let r;for(r in e)lm.call(e,r)&&(n[TL(r)]=e[r]);return n}function TL(e){let n=e.replace(cL,RL);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function RL(e){return"-"+e.toLowerCase()}const bh={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},_L={};function um(e,n){const r=_L,i=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,o=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return DS(e,i,o)}function DS(e,n,r){if(NL(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Db(e.children,n,r)}return Array.isArray(e)?Db(e,n,r):""}function Db(e,n,r){const i=[];let o=-1;for(;++o<e.length;)i[o]=DS(e[o],n,r);return i.join("")}function NL(e){return!!(e&&typeof e=="object")}const Ob=document.createElement("i");function cm(e){const n="&"+e+";";Ob.innerHTML=n;const r=Ob.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===n?!1:r}function bn(e,n,r,i){const o=e.length;let s=0,c;if(n<0?n=-n>o?0:o+n:n=n>o?o:n,r=r>0?r:0,i.length<1e4)c=Array.from(i),c.unshift(n,r),e.splice(...c);else for(r&&e.splice(n,r);s<i.length;)c=i.slice(s,s+1e4),c.unshift(n,0),e.splice(...c),s+=1e4,n+=1e4}function jn(e,n){return e.length>0?(bn(e,e.length,0,n),e):n}const Lb={}.hasOwnProperty;function OS(e){const n={};let r=-1;for(;++r<e.length;)ML(n,e[r]);return n}function ML(e,n){let r;for(r in n){const o=(Lb.call(e,r)?e[r]:void 0)||(e[r]={}),s=n[r];let c;if(s)for(c in s){Lb.call(o,c)||(o[c]=[]);const f=s[c];jL(o[c],Array.isArray(f)?f:f?[f]:[])}}}function jL(e,n){let r=-1;const i=[];for(;++r<n.length;)(n[r].add==="after"?e:i).push(n[r]);bn(e,0,0,i)}function LS(e,n){const r=Number.parseInt(e,n);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function Gn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Zt=xa(/[A-Za-z]/),Vt=xa(/[\dA-Za-z]/),DL=xa(/[#-'*+\--9=?A-Z^-~]/);function Ju(e){return e!==null&&(e<32||e===127)}const lp=xa(/\d/),OL=xa(/[\dA-Fa-f]/),LL=xa(/[!-/:-@[-`{-~]/);function Ae(e){return e!==null&&e<-2}function at(e){return e!==null&&(e<0||e===32)}function He(e){return e===-2||e===-1||e===32}const Rc=xa(new RegExp("\\p{P}|\\p{S}","u")),Ka=xa(/\s/);function xa(e){return n;function n(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function hl(e){const n=[];let r=-1,i=0,o=0;for(;++r<e.length;){const s=e.charCodeAt(r);let c="";if(s===37&&Vt(e.charCodeAt(r+1))&&Vt(e.charCodeAt(r+2)))o=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(c=String.fromCharCode(s));else if(s>55295&&s<57344){const f=e.charCodeAt(r+1);s<56320&&f>56319&&f<57344?(c=String.fromCharCode(s,f),o=1):c="�"}else c=String.fromCharCode(s);c&&(n.push(e.slice(i,r),encodeURIComponent(c)),i=r+o+1,c=""),o&&(r+=o,o=0)}return n.join("")+e.slice(i)}function Ve(e,n,r,i){const o=i?i-1:Number.POSITIVE_INFINITY;let s=0;return c;function c(h){return He(h)?(e.enter(r),f(h)):n(h)}function f(h){return He(h)&&s++<o?(e.consume(h),f):(e.exit(r),n(h))}}const zL={tokenize:PL};function PL(e){const n=e.attempt(this.parser.constructs.contentInitial,i,o);let r;return n;function i(f){if(f===null){e.consume(f);return}return e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),Ve(e,n,"linePrefix")}function o(f){return e.enter("paragraph"),s(f)}function s(f){const h=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=h),r=h,c(f)}function c(f){if(f===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(f);return}return Ae(f)?(e.consume(f),e.exit("chunkText"),s):(e.consume(f),c)}}const IL={tokenize:BL},zb={tokenize:UL};function BL(e){const n=this,r=[];let i=0,o,s,c;return f;function f(N){if(i<r.length){const O=r[i];return n.containerState=O[1],e.attempt(O[0].continuation,h,d)(N)}return d(N)}function h(N){if(i++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,o&&_();const O=n.events.length;let z=O,j;for(;z--;)if(n.events[z][0]==="exit"&&n.events[z][1].type==="chunkFlow"){j=n.events[z][1].end;break}A(i);let $=O;for(;$<n.events.length;)n.events[$][1].end={...j},$++;return bn(n.events,z+1,0,n.events.slice(O)),n.events.length=$,d(N)}return f(N)}function d(N){if(i===r.length){if(!o)return b(N);if(o.currentConstruct&&o.currentConstruct.concrete)return C(N);n.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(zb,m,y)(N)}function m(N){return o&&_(),A(i),b(N)}function y(N){return n.parser.lazy[n.now().line]=i!==r.length,c=n.now().offset,C(N)}function b(N){return n.containerState={},e.attempt(zb,w,C)(N)}function w(N){return i++,r.push([n.currentConstruct,n.containerState]),b(N)}function C(N){if(N===null){o&&_(),A(0),e.consume(N);return}return o=o||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:s}),k(N)}function k(N){if(N===null){T(e.exit("chunkFlow"),!0),A(0),e.consume(N);return}return Ae(N)?(e.consume(N),T(e.exit("chunkFlow")),i=0,n.interrupt=void 0,f):(e.consume(N),k)}function T(N,O){const z=n.sliceStream(N);if(O&&z.push(null),N.previous=s,s&&(s.next=N),s=N,o.defineSkip(N.start),o.write(z),n.parser.lazy[N.start.line]){let j=o.events.length;for(;j--;)if(o.events[j][1].start.offset<c&&(!o.events[j][1].end||o.events[j][1].end.offset>c))return;const $=n.events.length;let G=$,ee,P;for(;G--;)if(n.events[G][0]==="exit"&&n.events[G][1].type==="chunkFlow"){if(ee){P=n.events[G][1].end;break}ee=!0}for(A(i),j=$;j<n.events.length;)n.events[j][1].end={...P},j++;bn(n.events,G+1,0,n.events.slice($)),n.events.length=j}}function A(N){let O=r.length;for(;O-- >N;){const z=r[O];n.containerState=z[1],z[0].exit.call(n,e)}r.length=N}function _(){o.write([null]),s=void 0,o=void 0,n.containerState._closeFlow=void 0}}function UL(e,n,r){return Ve(e,e.attempt(this.parser.constructs.document,n,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function tl(e){if(e===null||at(e)||Ka(e))return 1;if(Rc(e))return 2}function _c(e,n,r){const i=[];let o=-1;for(;++o<e.length;){const s=e[o].resolveAll;s&&!i.includes(s)&&(n=s(n,r),i.push(s))}return n}const op={name:"attention",resolveAll:HL,tokenize:FL};function HL(e,n){let r=-1,i,o,s,c,f,h,d,m;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(i=r;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&n.sliceSerialize(e[i][1]).charCodeAt(0)===n.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[i][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;h=e[i][1].end.offset-e[i][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const y={...e[i][1].end},b={...e[r][1].start};Pb(y,-h),Pb(b,h),c={type:h>1?"strongSequence":"emphasisSequence",start:y,end:{...e[i][1].end}},f={type:h>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:b},s={type:h>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[r][1].start}},o={type:h>1?"strong":"emphasis",start:{...c.start},end:{...f.end}},e[i][1].end={...c.start},e[r][1].start={...f.end},d=[],e[i][1].end.offset-e[i][1].start.offset&&(d=jn(d,[["enter",e[i][1],n],["exit",e[i][1],n]])),d=jn(d,[["enter",o,n],["enter",c,n],["exit",c,n],["enter",s,n]]),d=jn(d,_c(n.parser.constructs.insideSpan.null,e.slice(i+1,r),n)),d=jn(d,[["exit",s,n],["enter",f,n],["exit",f,n],["exit",o,n]]),e[r][1].end.offset-e[r][1].start.offset?(m=2,d=jn(d,[["enter",e[r][1],n],["exit",e[r][1],n]])):m=0,bn(e,i-1,r-i+3,d),r=i+d.length-m-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function FL(e,n){const r=this.parser.constructs.attentionMarkers.null,i=this.previous,o=tl(i);let s;return c;function c(h){return s=h,e.enter("attentionSequence"),f(h)}function f(h){if(h===s)return e.consume(h),f;const d=e.exit("attentionSequence"),m=tl(h),y=!m||m===2&&o||r.includes(h),b=!o||o===2&&m||r.includes(i);return d._open=!!(s===42?y:y&&(o||!b)),d._close=!!(s===42?b:b&&(m||!y)),n(h)}}function Pb(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const qL={name:"autolink",tokenize:VL};function VL(e,n,r){let i=0;return o;function o(w){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(w),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(w){return Zt(w)?(e.consume(w),c):w===64?r(w):d(w)}function c(w){return w===43||w===45||w===46||Vt(w)?(i=1,f(w)):d(w)}function f(w){return w===58?(e.consume(w),i=0,h):(w===43||w===45||w===46||Vt(w))&&i++<32?(e.consume(w),f):(i=0,d(w))}function h(w){return w===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(w),e.exit("autolinkMarker"),e.exit("autolink"),n):w===null||w===32||w===60||Ju(w)?r(w):(e.consume(w),h)}function d(w){return w===64?(e.consume(w),m):DL(w)?(e.consume(w),d):r(w)}function m(w){return Vt(w)?y(w):r(w)}function y(w){return w===46?(e.consume(w),i=0,m):w===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(w),e.exit("autolinkMarker"),e.exit("autolink"),n):b(w)}function b(w){if((w===45||Vt(w))&&i++<63){const C=w===45?b:y;return e.consume(w),C}return r(w)}}const ts={partial:!0,tokenize:$L};function $L(e,n,r){return i;function i(s){return He(s)?Ve(e,o,"linePrefix")(s):o(s)}function o(s){return s===null||Ae(s)?n(s):r(s)}}const zS={continuation:{tokenize:YL},exit:KL,name:"blockQuote",tokenize:GL};function GL(e,n,r){const i=this;return o;function o(c){if(c===62){const f=i.containerState;return f.open||(e.enter("blockQuote",{_container:!0}),f.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(c),e.exit("blockQuoteMarker"),s}return r(c)}function s(c){return He(c)?(e.enter("blockQuotePrefixWhitespace"),e.consume(c),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(c))}}function YL(e,n,r){const i=this;return o;function o(c){return He(c)?Ve(e,s,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):s(c)}function s(c){return e.attempt(zS,n,r)(c)}}function KL(e){e.exit("blockQuote")}const PS={name:"characterEscape",tokenize:XL};function XL(e,n,r){return i;function i(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),o}function o(s){return LL(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):r(s)}}const IS={name:"characterReference",tokenize:QL};function QL(e,n,r){const i=this;let o=0,s,c;return f;function f(y){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(y),e.exit("characterReferenceMarker"),h}function h(y){return y===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(y),e.exit("characterReferenceMarkerNumeric"),d):(e.enter("characterReferenceValue"),s=31,c=Vt,m(y))}function d(y){return y===88||y===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(y),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,c=OL,m):(e.enter("characterReferenceValue"),s=7,c=lp,m(y))}function m(y){if(y===59&&o){const b=e.exit("characterReferenceValue");return c===Vt&&!cm(i.sliceSerialize(b))?r(y):(e.enter("characterReferenceMarker"),e.consume(y),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return c(y)&&o++<s?(e.consume(y),m):r(y)}}const Ib={partial:!0,tokenize:WL},Bb={concrete:!0,name:"codeFenced",tokenize:ZL};function ZL(e,n,r){const i=this,o={partial:!0,tokenize:z};let s=0,c=0,f;return h;function h(j){return d(j)}function d(j){const $=i.events[i.events.length-1];return s=$&&$[1].type==="linePrefix"?$[2].sliceSerialize($[1],!0).length:0,f=j,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),m(j)}function m(j){return j===f?(c++,e.consume(j),m):c<3?r(j):(e.exit("codeFencedFenceSequence"),He(j)?Ve(e,y,"whitespace")(j):y(j))}function y(j){return j===null||Ae(j)?(e.exit("codeFencedFence"),i.interrupt?n(j):e.check(Ib,k,O)(j)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),b(j))}function b(j){return j===null||Ae(j)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),y(j)):He(j)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Ve(e,w,"whitespace")(j)):j===96&&j===f?r(j):(e.consume(j),b)}function w(j){return j===null||Ae(j)?y(j):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),C(j))}function C(j){return j===null||Ae(j)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),y(j)):j===96&&j===f?r(j):(e.consume(j),C)}function k(j){return e.attempt(o,O,T)(j)}function T(j){return e.enter("lineEnding"),e.consume(j),e.exit("lineEnding"),A}function A(j){return s>0&&He(j)?Ve(e,_,"linePrefix",s+1)(j):_(j)}function _(j){return j===null||Ae(j)?e.check(Ib,k,O)(j):(e.enter("codeFlowValue"),N(j))}function N(j){return j===null||Ae(j)?(e.exit("codeFlowValue"),_(j)):(e.consume(j),N)}function O(j){return e.exit("codeFenced"),n(j)}function z(j,$,G){let ee=0;return P;function P(Q){return j.enter("lineEnding"),j.consume(Q),j.exit("lineEnding"),ne}function ne(Q){return j.enter("codeFencedFence"),He(Q)?Ve(j,ae,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Q):ae(Q)}function ae(Q){return Q===f?(j.enter("codeFencedFenceSequence"),le(Q)):G(Q)}function le(Q){return Q===f?(ee++,j.consume(Q),le):ee>=c?(j.exit("codeFencedFenceSequence"),He(Q)?Ve(j,H,"whitespace")(Q):H(Q)):G(Q)}function H(Q){return Q===null||Ae(Q)?(j.exit("codeFencedFence"),$(Q)):G(Q)}}}function WL(e,n,r){const i=this;return o;function o(c){return c===null?r(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s)}function s(c){return i.parser.lazy[i.now().line]?r(c):n(c)}}const wh={name:"codeIndented",tokenize:ez},JL={partial:!0,tokenize:tz};function ez(e,n,r){const i=this;return o;function o(d){return e.enter("codeIndented"),Ve(e,s,"linePrefix",5)(d)}function s(d){const m=i.events[i.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?c(d):r(d)}function c(d){return d===null?h(d):Ae(d)?e.attempt(JL,c,h)(d):(e.enter("codeFlowValue"),f(d))}function f(d){return d===null||Ae(d)?(e.exit("codeFlowValue"),c(d)):(e.consume(d),f)}function h(d){return e.exit("codeIndented"),n(d)}}function tz(e,n,r){const i=this;return o;function o(c){return i.parser.lazy[i.now().line]?r(c):Ae(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),o):Ve(e,s,"linePrefix",5)(c)}function s(c){const f=i.events[i.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?n(c):Ae(c)?o(c):r(c)}}const nz={name:"codeText",previous:az,resolve:rz,tokenize:iz};function rz(e){let n=e.length-4,r=3,i,o;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(i=r;++i<n;)if(e[i][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[n][1].type="codeTextPadding",r+=2,n-=2;break}}for(i=r-1,n++;++i<=n;)o===void 0?i!==n&&e[i][1].type!=="lineEnding"&&(o=i):(i===n||e[i][1].type==="lineEnding")&&(e[o][1].type="codeTextData",i!==o+2&&(e[o][1].end=e[i-1][1].end,e.splice(o+2,i-o-2),n-=i-o-2,i=o+2),o=void 0);return e}function az(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function iz(e,n,r){let i=0,o,s;return c;function c(y){return e.enter("codeText"),e.enter("codeTextSequence"),f(y)}function f(y){return y===96?(e.consume(y),i++,f):(e.exit("codeTextSequence"),h(y))}function h(y){return y===null?r(y):y===32?(e.enter("space"),e.consume(y),e.exit("space"),h):y===96?(s=e.enter("codeTextSequence"),o=0,m(y)):Ae(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),h):(e.enter("codeTextData"),d(y))}function d(y){return y===null||y===32||y===96||Ae(y)?(e.exit("codeTextData"),h(y)):(e.consume(y),d)}function m(y){return y===96?(e.consume(y),o++,m):o===i?(e.exit("codeTextSequence"),e.exit("codeText"),n(y)):(s.type="codeTextData",d(y))}}class lz{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,r){const i=r??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(n,i):n>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(n,r,i){const o=r||0;this.setCursor(Math.trunc(n));const s=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return i&&mo(this.left,i),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),mo(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),mo(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const r=this.left.splice(n,Number.POSITIVE_INFINITY);mo(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);mo(this.left,r.reverse())}}}function mo(e,n){let r=0;if(n.length<1e4)e.push(...n);else for(;r<n.length;)e.push(...n.slice(r,r+1e4)),r+=1e4}function BS(e){const n={};let r=-1,i,o,s,c,f,h,d;const m=new lz(e);for(;++r<m.length;){for(;r in n;)r=n[r];if(i=m.get(r),r&&i[1].type==="chunkFlow"&&m.get(r-1)[1].type==="listItemPrefix"&&(h=i[1]._tokenizer.events,s=0,s<h.length&&h[s][1].type==="lineEndingBlank"&&(s+=2),s<h.length&&h[s][1].type==="content"))for(;++s<h.length&&h[s][1].type!=="content";)h[s][1].type==="chunkText"&&(h[s][1]._isInFirstContentOfListItem=!0,s++);if(i[0]==="enter")i[1].contentType&&(Object.assign(n,oz(m,r)),r=n[r],d=!0);else if(i[1]._container){for(s=r,o=void 0;s--;)if(c=m.get(s),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(o&&(m.get(o)[1].type="lineEndingBlank"),c[1].type="lineEnding",o=s);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;o&&(i[1].end={...m.get(o)[1].start},f=m.slice(o,r),f.unshift(i),m.splice(o,r-o+1,f))}}return bn(e,0,Number.POSITIVE_INFINITY,m.slice(0)),!d}function oz(e,n){const r=e.get(n)[1],i=e.get(n)[2];let o=n-1;const s=[];let c=r._tokenizer;c||(c=i.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const f=c.events,h=[],d={};let m,y,b=-1,w=r,C=0,k=0;const T=[k];for(;w;){for(;e.get(++o)[1]!==w;);s.push(o),w._tokenizer||(m=i.sliceStream(w),w.next||m.push(null),y&&c.defineSkip(w.start),w._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(m),w._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),y=w,w=w.next}for(w=r;++b<f.length;)f[b][0]==="exit"&&f[b-1][0]==="enter"&&f[b][1].type===f[b-1][1].type&&f[b][1].start.line!==f[b][1].end.line&&(k=b+1,T.push(k),w._tokenizer=void 0,w.previous=void 0,w=w.next);for(c.events=[],w?(w._tokenizer=void 0,w.previous=void 0):T.pop(),b=T.length;b--;){const A=f.slice(T[b],T[b+1]),_=s.pop();h.push([_,_+A.length-1]),e.splice(_,2,A)}for(h.reverse(),b=-1;++b<h.length;)d[C+h[b][0]]=C+h[b][1],C+=h[b][1]-h[b][0]-1;return d}const sz={resolve:cz,tokenize:fz},uz={partial:!0,tokenize:dz};function cz(e){return BS(e),e}function fz(e,n){let r;return i;function i(f){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),o(f)}function o(f){return f===null?s(f):Ae(f)?e.check(uz,c,s)(f):(e.consume(f),o)}function s(f){return e.exit("chunkContent"),e.exit("content"),n(f)}function c(f){return e.consume(f),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,o}}function dz(e,n,r){const i=this;return o;function o(c){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),Ve(e,s,"linePrefix")}function s(c){if(c===null||Ae(c))return r(c);const f=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?n(c):e.interrupt(i.parser.constructs.flow,r,n)(c)}}function US(e,n,r,i,o,s,c,f,h){const d=h||Number.POSITIVE_INFINITY;let m=0;return y;function y(A){return A===60?(e.enter(i),e.enter(o),e.enter(s),e.consume(A),e.exit(s),b):A===null||A===32||A===41||Ju(A)?r(A):(e.enter(i),e.enter(c),e.enter(f),e.enter("chunkString",{contentType:"string"}),k(A))}function b(A){return A===62?(e.enter(s),e.consume(A),e.exit(s),e.exit(o),e.exit(i),n):(e.enter(f),e.enter("chunkString",{contentType:"string"}),w(A))}function w(A){return A===62?(e.exit("chunkString"),e.exit(f),b(A)):A===null||A===60||Ae(A)?r(A):(e.consume(A),A===92?C:w)}function C(A){return A===60||A===62||A===92?(e.consume(A),w):w(A)}function k(A){return!m&&(A===null||A===41||at(A))?(e.exit("chunkString"),e.exit(f),e.exit(c),e.exit(i),n(A)):m<d&&A===40?(e.consume(A),m++,k):A===41?(e.consume(A),m--,k):A===null||A===32||A===40||Ju(A)?r(A):(e.consume(A),A===92?T:k)}function T(A){return A===40||A===41||A===92?(e.consume(A),k):k(A)}}function HS(e,n,r,i,o,s){const c=this;let f=0,h;return d;function d(w){return e.enter(i),e.enter(o),e.consume(w),e.exit(o),e.enter(s),m}function m(w){return f>999||w===null||w===91||w===93&&!h||w===94&&!f&&"_hiddenFootnoteSupport"in c.parser.constructs?r(w):w===93?(e.exit(s),e.enter(o),e.consume(w),e.exit(o),e.exit(i),n):Ae(w)?(e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),m):(e.enter("chunkString",{contentType:"string"}),y(w))}function y(w){return w===null||w===91||w===93||Ae(w)||f++>999?(e.exit("chunkString"),m(w)):(e.consume(w),h||(h=!He(w)),w===92?b:y)}function b(w){return w===91||w===92||w===93?(e.consume(w),f++,y):y(w)}}function FS(e,n,r,i,o,s){let c;return f;function f(b){return b===34||b===39||b===40?(e.enter(i),e.enter(o),e.consume(b),e.exit(o),c=b===40?41:b,h):r(b)}function h(b){return b===c?(e.enter(o),e.consume(b),e.exit(o),e.exit(i),n):(e.enter(s),d(b))}function d(b){return b===c?(e.exit(s),h(c)):b===null?r(b):Ae(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),Ve(e,d,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),m(b))}function m(b){return b===c||b===null||Ae(b)?(e.exit("chunkString"),d(b)):(e.consume(b),b===92?y:m)}function y(b){return b===c||b===92?(e.consume(b),m):m(b)}}function Co(e,n){let r;return i;function i(o){return Ae(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),r=!0,i):He(o)?Ve(e,i,r?"linePrefix":"lineSuffix")(o):n(o)}}const hz={name:"definition",tokenize:mz},pz={partial:!0,tokenize:gz};function mz(e,n,r){const i=this;let o;return s;function s(w){return e.enter("definition"),c(w)}function c(w){return HS.call(i,e,f,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(w)}function f(w){return o=Gn(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),w===58?(e.enter("definitionMarker"),e.consume(w),e.exit("definitionMarker"),h):r(w)}function h(w){return at(w)?Co(e,d)(w):d(w)}function d(w){return US(e,m,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(w)}function m(w){return e.attempt(pz,y,y)(w)}function y(w){return He(w)?Ve(e,b,"whitespace")(w):b(w)}function b(w){return w===null||Ae(w)?(e.exit("definition"),i.parser.defined.push(o),n(w)):r(w)}}function gz(e,n,r){return i;function i(f){return at(f)?Co(e,o)(f):r(f)}function o(f){return FS(e,s,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(f)}function s(f){return He(f)?Ve(e,c,"whitespace")(f):c(f)}function c(f){return f===null||Ae(f)?n(f):r(f)}}const yz={name:"hardBreakEscape",tokenize:vz};function vz(e,n,r){return i;function i(s){return e.enter("hardBreakEscape"),e.consume(s),o}function o(s){return Ae(s)?(e.exit("hardBreakEscape"),n(s)):r(s)}}const xz={name:"headingAtx",resolve:bz,tokenize:wz};function bz(e,n){let r=e.length-2,i=3,o,s;return e[i][1].type==="whitespace"&&(i+=2),r-2>i&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(i===r-1||r-4>i&&e[r-2][1].type==="whitespace")&&(r-=i+1===r?2:4),r>i&&(o={type:"atxHeadingText",start:e[i][1].start,end:e[r][1].end},s={type:"chunkText",start:e[i][1].start,end:e[r][1].end,contentType:"text"},bn(e,i,r-i+1,[["enter",o,n],["enter",s,n],["exit",s,n],["exit",o,n]])),e}function wz(e,n,r){let i=0;return o;function o(m){return e.enter("atxHeading"),s(m)}function s(m){return e.enter("atxHeadingSequence"),c(m)}function c(m){return m===35&&i++<6?(e.consume(m),c):m===null||at(m)?(e.exit("atxHeadingSequence"),f(m)):r(m)}function f(m){return m===35?(e.enter("atxHeadingSequence"),h(m)):m===null||Ae(m)?(e.exit("atxHeading"),n(m)):He(m)?Ve(e,f,"whitespace")(m):(e.enter("atxHeadingText"),d(m))}function h(m){return m===35?(e.consume(m),h):(e.exit("atxHeadingSequence"),f(m))}function d(m){return m===null||m===35||at(m)?(e.exit("atxHeadingText"),f(m)):(e.consume(m),d)}}const Sz=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Ub=["pre","script","style","textarea"],Ez={concrete:!0,name:"htmlFlow",resolveTo:Az,tokenize:Tz},Cz={partial:!0,tokenize:_z},kz={partial:!0,tokenize:Rz};function Az(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function Tz(e,n,r){const i=this;let o,s,c,f,h;return d;function d(M){return m(M)}function m(M){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(M),y}function y(M){return M===33?(e.consume(M),b):M===47?(e.consume(M),s=!0,k):M===63?(e.consume(M),o=3,i.interrupt?n:E):Zt(M)?(e.consume(M),c=String.fromCharCode(M),T):r(M)}function b(M){return M===45?(e.consume(M),o=2,w):M===91?(e.consume(M),o=5,f=0,C):Zt(M)?(e.consume(M),o=4,i.interrupt?n:E):r(M)}function w(M){return M===45?(e.consume(M),i.interrupt?n:E):r(M)}function C(M){const se="CDATA[";return M===se.charCodeAt(f++)?(e.consume(M),f===se.length?i.interrupt?n:ae:C):r(M)}function k(M){return Zt(M)?(e.consume(M),c=String.fromCharCode(M),T):r(M)}function T(M){if(M===null||M===47||M===62||at(M)){const se=M===47,Se=c.toLowerCase();return!se&&!s&&Ub.includes(Se)?(o=1,i.interrupt?n(M):ae(M)):Sz.includes(c.toLowerCase())?(o=6,se?(e.consume(M),A):i.interrupt?n(M):ae(M)):(o=7,i.interrupt&&!i.parser.lazy[i.now().line]?r(M):s?_(M):N(M))}return M===45||Vt(M)?(e.consume(M),c+=String.fromCharCode(M),T):r(M)}function A(M){return M===62?(e.consume(M),i.interrupt?n:ae):r(M)}function _(M){return He(M)?(e.consume(M),_):P(M)}function N(M){return M===47?(e.consume(M),P):M===58||M===95||Zt(M)?(e.consume(M),O):He(M)?(e.consume(M),N):P(M)}function O(M){return M===45||M===46||M===58||M===95||Vt(M)?(e.consume(M),O):z(M)}function z(M){return M===61?(e.consume(M),j):He(M)?(e.consume(M),z):N(M)}function j(M){return M===null||M===60||M===61||M===62||M===96?r(M):M===34||M===39?(e.consume(M),h=M,$):He(M)?(e.consume(M),j):G(M)}function $(M){return M===h?(e.consume(M),h=null,ee):M===null||Ae(M)?r(M):(e.consume(M),$)}function G(M){return M===null||M===34||M===39||M===47||M===60||M===61||M===62||M===96||at(M)?z(M):(e.consume(M),G)}function ee(M){return M===47||M===62||He(M)?N(M):r(M)}function P(M){return M===62?(e.consume(M),ne):r(M)}function ne(M){return M===null||Ae(M)?ae(M):He(M)?(e.consume(M),ne):r(M)}function ae(M){return M===45&&o===2?(e.consume(M),L):M===60&&o===1?(e.consume(M),K):M===62&&o===4?(e.consume(M),Z):M===63&&o===3?(e.consume(M),E):M===93&&o===5?(e.consume(M),J):Ae(M)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(Cz,oe,le)(M)):M===null||Ae(M)?(e.exit("htmlFlowData"),le(M)):(e.consume(M),ae)}function le(M){return e.check(kz,H,oe)(M)}function H(M){return e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),Q}function Q(M){return M===null||Ae(M)?le(M):(e.enter("htmlFlowData"),ae(M))}function L(M){return M===45?(e.consume(M),E):ae(M)}function K(M){return M===47?(e.consume(M),c="",U):ae(M)}function U(M){if(M===62){const se=c.toLowerCase();return Ub.includes(se)?(e.consume(M),Z):ae(M)}return Zt(M)&&c.length<8?(e.consume(M),c+=String.fromCharCode(M),U):ae(M)}function J(M){return M===93?(e.consume(M),E):ae(M)}function E(M){return M===62?(e.consume(M),Z):M===45&&o===2?(e.consume(M),E):ae(M)}function Z(M){return M===null||Ae(M)?(e.exit("htmlFlowData"),oe(M)):(e.consume(M),Z)}function oe(M){return e.exit("htmlFlow"),n(M)}}function Rz(e,n,r){const i=this;return o;function o(c){return Ae(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):r(c)}function s(c){return i.parser.lazy[i.now().line]?r(c):n(c)}}function _z(e,n,r){return i;function i(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(ts,n,r)}}const Nz={name:"htmlText",tokenize:Mz};function Mz(e,n,r){const i=this;let o,s,c;return f;function f(E){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(E),h}function h(E){return E===33?(e.consume(E),d):E===47?(e.consume(E),z):E===63?(e.consume(E),N):Zt(E)?(e.consume(E),G):r(E)}function d(E){return E===45?(e.consume(E),m):E===91?(e.consume(E),s=0,C):Zt(E)?(e.consume(E),_):r(E)}function m(E){return E===45?(e.consume(E),w):r(E)}function y(E){return E===null?r(E):E===45?(e.consume(E),b):Ae(E)?(c=y,K(E)):(e.consume(E),y)}function b(E){return E===45?(e.consume(E),w):y(E)}function w(E){return E===62?L(E):E===45?b(E):y(E)}function C(E){const Z="CDATA[";return E===Z.charCodeAt(s++)?(e.consume(E),s===Z.length?k:C):r(E)}function k(E){return E===null?r(E):E===93?(e.consume(E),T):Ae(E)?(c=k,K(E)):(e.consume(E),k)}function T(E){return E===93?(e.consume(E),A):k(E)}function A(E){return E===62?L(E):E===93?(e.consume(E),A):k(E)}function _(E){return E===null||E===62?L(E):Ae(E)?(c=_,K(E)):(e.consume(E),_)}function N(E){return E===null?r(E):E===63?(e.consume(E),O):Ae(E)?(c=N,K(E)):(e.consume(E),N)}function O(E){return E===62?L(E):N(E)}function z(E){return Zt(E)?(e.consume(E),j):r(E)}function j(E){return E===45||Vt(E)?(e.consume(E),j):$(E)}function $(E){return Ae(E)?(c=$,K(E)):He(E)?(e.consume(E),$):L(E)}function G(E){return E===45||Vt(E)?(e.consume(E),G):E===47||E===62||at(E)?ee(E):r(E)}function ee(E){return E===47?(e.consume(E),L):E===58||E===95||Zt(E)?(e.consume(E),P):Ae(E)?(c=ee,K(E)):He(E)?(e.consume(E),ee):L(E)}function P(E){return E===45||E===46||E===58||E===95||Vt(E)?(e.consume(E),P):ne(E)}function ne(E){return E===61?(e.consume(E),ae):Ae(E)?(c=ne,K(E)):He(E)?(e.consume(E),ne):ee(E)}function ae(E){return E===null||E===60||E===61||E===62||E===96?r(E):E===34||E===39?(e.consume(E),o=E,le):Ae(E)?(c=ae,K(E)):He(E)?(e.consume(E),ae):(e.consume(E),H)}function le(E){return E===o?(e.consume(E),o=void 0,Q):E===null?r(E):Ae(E)?(c=le,K(E)):(e.consume(E),le)}function H(E){return E===null||E===34||E===39||E===60||E===61||E===96?r(E):E===47||E===62||at(E)?ee(E):(e.consume(E),H)}function Q(E){return E===47||E===62||at(E)?ee(E):r(E)}function L(E){return E===62?(e.consume(E),e.exit("htmlTextData"),e.exit("htmlText"),n):r(E)}function K(E){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),U}function U(E){return He(E)?Ve(e,J,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):J(E)}function J(E){return e.enter("htmlTextData"),c(E)}}const fm={name:"labelEnd",resolveAll:Lz,resolveTo:zz,tokenize:Pz},jz={tokenize:Iz},Dz={tokenize:Bz},Oz={tokenize:Uz};function Lz(e){let n=-1;const r=[];for(;++n<e.length;){const i=e[n][1];if(r.push(e[n]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const o=i.type==="labelImage"?4:2;i.type="data",n+=o}}return e.length!==r.length&&bn(e,0,e.length,r),e}function zz(e,n){let r=e.length,i=0,o,s,c,f;for(;r--;)if(o=e[r][1],s){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;e[r][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(c){if(e[r][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(s=r,o.type!=="labelLink")){i=2;break}}else o.type==="labelEnd"&&(c=r);const h={type:e[s][1].type==="labelLink"?"link":"image",start:{...e[s][1].start},end:{...e[e.length-1][1].end}},d={type:"label",start:{...e[s][1].start},end:{...e[c][1].end}},m={type:"labelText",start:{...e[s+i+2][1].end},end:{...e[c-2][1].start}};return f=[["enter",h,n],["enter",d,n]],f=jn(f,e.slice(s+1,s+i+3)),f=jn(f,[["enter",m,n]]),f=jn(f,_c(n.parser.constructs.insideSpan.null,e.slice(s+i+4,c-3),n)),f=jn(f,[["exit",m,n],e[c-2],e[c-1],["exit",d,n]]),f=jn(f,e.slice(c+1)),f=jn(f,[["exit",h,n]]),bn(e,s,e.length,f),e}function Pz(e,n,r){const i=this;let o=i.events.length,s,c;for(;o--;)if((i.events[o][1].type==="labelImage"||i.events[o][1].type==="labelLink")&&!i.events[o][1]._balanced){s=i.events[o][1];break}return f;function f(b){return s?s._inactive?y(b):(c=i.parser.defined.includes(Gn(i.sliceSerialize({start:s.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(b),e.exit("labelMarker"),e.exit("labelEnd"),h):r(b)}function h(b){return b===40?e.attempt(jz,m,c?m:y)(b):b===91?e.attempt(Dz,m,c?d:y)(b):c?m(b):y(b)}function d(b){return e.attempt(Oz,m,y)(b)}function m(b){return n(b)}function y(b){return s._balanced=!0,r(b)}}function Iz(e,n,r){return i;function i(y){return e.enter("resource"),e.enter("resourceMarker"),e.consume(y),e.exit("resourceMarker"),o}function o(y){return at(y)?Co(e,s)(y):s(y)}function s(y){return y===41?m(y):US(e,c,f,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(y)}function c(y){return at(y)?Co(e,h)(y):m(y)}function f(y){return r(y)}function h(y){return y===34||y===39||y===40?FS(e,d,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(y):m(y)}function d(y){return at(y)?Co(e,m)(y):m(y)}function m(y){return y===41?(e.enter("resourceMarker"),e.consume(y),e.exit("resourceMarker"),e.exit("resource"),n):r(y)}}function Bz(e,n,r){const i=this;return o;function o(f){return HS.call(i,e,s,c,"reference","referenceMarker","referenceString")(f)}function s(f){return i.parser.defined.includes(Gn(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?n(f):r(f)}function c(f){return r(f)}}function Uz(e,n,r){return i;function i(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),o}function o(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),n):r(s)}}const Hz={name:"labelStartImage",resolveAll:fm.resolveAll,tokenize:Fz};function Fz(e,n,r){const i=this;return o;function o(f){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(f),e.exit("labelImageMarker"),s}function s(f){return f===91?(e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelImage"),c):r(f)}function c(f){return f===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(f):n(f)}}const qz={name:"labelStartLink",resolveAll:fm.resolveAll,tokenize:Vz};function Vz(e,n,r){const i=this;return o;function o(c){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelLink"),s}function s(c){return c===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(c):n(c)}}const Sh={name:"lineEnding",tokenize:$z};function $z(e,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),Ve(e,n,"linePrefix")}}const qu={name:"thematicBreak",tokenize:Gz};function Gz(e,n,r){let i=0,o;return s;function s(d){return e.enter("thematicBreak"),c(d)}function c(d){return o=d,f(d)}function f(d){return d===o?(e.enter("thematicBreakSequence"),h(d)):i>=3&&(d===null||Ae(d))?(e.exit("thematicBreak"),n(d)):r(d)}function h(d){return d===o?(e.consume(d),i++,h):(e.exit("thematicBreakSequence"),He(d)?Ve(e,f,"whitespace")(d):f(d))}}const ln={continuation:{tokenize:Qz},exit:Wz,name:"list",tokenize:Xz},Yz={partial:!0,tokenize:Jz},Kz={partial:!0,tokenize:Zz};function Xz(e,n,r){const i=this,o=i.events[i.events.length-1];let s=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,c=0;return f;function f(w){const C=i.containerState.type||(w===42||w===43||w===45?"listUnordered":"listOrdered");if(C==="listUnordered"?!i.containerState.marker||w===i.containerState.marker:lp(w)){if(i.containerState.type||(i.containerState.type=C,e.enter(C,{_container:!0})),C==="listUnordered")return e.enter("listItemPrefix"),w===42||w===45?e.check(qu,r,d)(w):d(w);if(!i.interrupt||w===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),h(w)}return r(w)}function h(w){return lp(w)&&++c<10?(e.consume(w),h):(!i.interrupt||c<2)&&(i.containerState.marker?w===i.containerState.marker:w===41||w===46)?(e.exit("listItemValue"),d(w)):r(w)}function d(w){return e.enter("listItemMarker"),e.consume(w),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||w,e.check(ts,i.interrupt?r:m,e.attempt(Yz,b,y))}function m(w){return i.containerState.initialBlankLine=!0,s++,b(w)}function y(w){return He(w)?(e.enter("listItemPrefixWhitespace"),e.consume(w),e.exit("listItemPrefixWhitespace"),b):r(w)}function b(w){return i.containerState.size=s+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(w)}}function Qz(e,n,r){const i=this;return i.containerState._closeFlow=void 0,e.check(ts,o,s);function o(f){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,Ve(e,n,"listItemIndent",i.containerState.size+1)(f)}function s(f){return i.containerState.furtherBlankLines||!He(f)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,c(f)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(Kz,n,c)(f))}function c(f){return i.containerState._closeFlow=!0,i.interrupt=void 0,Ve(e,e.attempt(ln,n,r),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f)}}function Zz(e,n,r){const i=this;return Ve(e,o,"listItemIndent",i.containerState.size+1);function o(s){const c=i.events[i.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===i.containerState.size?n(s):r(s)}}function Wz(e){e.exit(this.containerState.type)}function Jz(e,n,r){const i=this;return Ve(e,o,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(s){const c=i.events[i.events.length-1];return!He(s)&&c&&c[1].type==="listItemPrefixWhitespace"?n(s):r(s)}}const Hb={name:"setextUnderline",resolveTo:e3,tokenize:t3};function e3(e,n){let r=e.length,i,o,s;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){i=r;break}e[r][1].type==="paragraph"&&(o=r)}else e[r][1].type==="content"&&e.splice(r,1),!s&&e[r][1].type==="definition"&&(s=r);const c={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[o][1].type="setextHeadingText",s?(e.splice(o,0,["enter",c,n]),e.splice(s+1,0,["exit",e[i][1],n]),e[i][1].end={...e[s][1].end}):e[i][1]=c,e.push(["exit",c,n]),e}function t3(e,n,r){const i=this;let o;return s;function s(d){let m=i.events.length,y;for(;m--;)if(i.events[m][1].type!=="lineEnding"&&i.events[m][1].type!=="linePrefix"&&i.events[m][1].type!=="content"){y=i.events[m][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||y)?(e.enter("setextHeadingLine"),o=d,c(d)):r(d)}function c(d){return e.enter("setextHeadingLineSequence"),f(d)}function f(d){return d===o?(e.consume(d),f):(e.exit("setextHeadingLineSequence"),He(d)?Ve(e,h,"lineSuffix")(d):h(d))}function h(d){return d===null||Ae(d)?(e.exit("setextHeadingLine"),n(d)):r(d)}}const n3={tokenize:r3};function r3(e){const n=this,r=e.attempt(ts,i,e.attempt(this.parser.constructs.flowInitial,o,Ve(e,e.attempt(this.parser.constructs.flow,o,e.attempt(sz,o)),"linePrefix")));return r;function i(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),n.currentConstruct=void 0,r}function o(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),n.currentConstruct=void 0,r}}const a3={resolveAll:VS()},i3=qS("string"),l3=qS("text");function qS(e){return{resolveAll:VS(e==="text"?o3:void 0),tokenize:n};function n(r){const i=this,o=this.parser.constructs[e],s=r.attempt(o,c,f);return c;function c(m){return d(m)?s(m):f(m)}function f(m){if(m===null){r.consume(m);return}return r.enter("data"),r.consume(m),h}function h(m){return d(m)?(r.exit("data"),s(m)):(r.consume(m),h)}function d(m){if(m===null)return!0;const y=o[m];let b=-1;if(y)for(;++b<y.length;){const w=y[b];if(!w.previous||w.previous.call(i,i.previous))return!0}return!1}}}function VS(e){return n;function n(r,i){let o=-1,s;for(;++o<=r.length;)s===void 0?r[o]&&r[o][1].type==="data"&&(s=o,o++):(!r[o]||r[o][1].type!=="data")&&(o!==s+2&&(r[s][1].end=r[o-1][1].end,r.splice(s+2,o-s-2),o=s+2),s=void 0);return e?e(r,i):r}}function o3(e,n){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const i=e[r-1][1],o=n.sliceStream(i);let s=o.length,c=-1,f=0,h;for(;s--;){const d=o[s];if(typeof d=="string"){for(c=d.length;d.charCodeAt(c-1)===32;)f++,c--;if(c)break;c=-1}else if(d===-2)h=!0,f++;else if(d!==-1){s++;break}}if(n._contentTypeTextTrailing&&r===e.length&&(f=0),f){const d={type:r===e.length||h||f<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?c:i.start._bufferIndex+c,_index:i.start._index+s,line:i.end.line,column:i.end.column-f,offset:i.end.offset-f},end:{...i.end}};i.end={...d.start},i.start.offset===i.end.offset?Object.assign(i,d):(e.splice(r,0,["enter",d,n],["exit",d,n]),r+=2)}r++}return e}const s3={42:ln,43:ln,45:ln,48:ln,49:ln,50:ln,51:ln,52:ln,53:ln,54:ln,55:ln,56:ln,57:ln,62:zS},u3={91:hz},c3={[-2]:wh,[-1]:wh,32:wh},f3={35:xz,42:qu,45:[Hb,qu],60:Ez,61:Hb,95:qu,96:Bb,126:Bb},d3={38:IS,92:PS},h3={[-5]:Sh,[-4]:Sh,[-3]:Sh,33:Hz,38:IS,42:op,60:[qL,Nz],91:qz,92:[yz,PS],93:fm,95:op,96:nz},p3={null:[op,a3]},m3={null:[42,95]},g3={null:[]},y3=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:m3,contentInitial:u3,disable:g3,document:s3,flow:f3,flowInitial:c3,insideSpan:p3,string:d3,text:h3},Symbol.toStringTag,{value:"Module"}));function v3(e,n,r){let i={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const o={},s=[];let c=[],f=[];const h={attempt:$(z),check:$(j),consume:_,enter:N,exit:O,interrupt:$(j,{interrupt:!0})},d={code:null,containerState:{},defineSkip:k,events:[],now:C,parser:e,previous:null,sliceSerialize:b,sliceStream:w,write:y};let m=n.tokenize.call(d,h);return n.resolveAll&&s.push(n),d;function y(ne){return c=jn(c,ne),T(),c[c.length-1]!==null?[]:(G(n,0),d.events=_c(s,d.events,d),d.events)}function b(ne,ae){return b3(w(ne),ae)}function w(ne){return x3(c,ne)}function C(){const{_bufferIndex:ne,_index:ae,line:le,column:H,offset:Q}=i;return{_bufferIndex:ne,_index:ae,line:le,column:H,offset:Q}}function k(ne){o[ne.line]=ne.column,P()}function T(){let ne;for(;i._index<c.length;){const ae=c[i._index];if(typeof ae=="string")for(ne=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===ne&&i._bufferIndex<ae.length;)A(ae.charCodeAt(i._bufferIndex));else A(ae)}}function A(ne){m=m(ne)}function _(ne){Ae(ne)?(i.line++,i.column=1,i.offset+=ne===-3?2:1,P()):ne!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===c[i._index].length&&(i._bufferIndex=-1,i._index++)),d.previous=ne}function N(ne,ae){const le=ae||{};return le.type=ne,le.start=C(),d.events.push(["enter",le,d]),f.push(le),le}function O(ne){const ae=f.pop();return ae.end=C(),d.events.push(["exit",ae,d]),ae}function z(ne,ae){G(ne,ae.from)}function j(ne,ae){ae.restore()}function $(ne,ae){return le;function le(H,Q,L){let K,U,J,E;return Array.isArray(H)?oe(H):"tokenize"in H?oe([H]):Z(H);function Z(he){return xe;function xe(Ee){const Qe=Ee!==null&&he[Ee],bt=Ee!==null&&he.null,Rt=[...Array.isArray(Qe)?Qe:Qe?[Qe]:[],...Array.isArray(bt)?bt:bt?[bt]:[]];return oe(Rt)(Ee)}}function oe(he){return K=he,U=0,he.length===0?L:M(he[U])}function M(he){return xe;function xe(Ee){return E=ee(),J=he,he.partial||(d.currentConstruct=he),he.name&&d.parser.constructs.disable.null.includes(he.name)?Se():he.tokenize.call(ae?Object.assign(Object.create(d),ae):d,h,se,Se)(Ee)}}function se(he){return ne(J,E),Q}function Se(he){return E.restore(),++U<K.length?M(K[U]):L}}}function G(ne,ae){ne.resolveAll&&!s.includes(ne)&&s.push(ne),ne.resolve&&bn(d.events,ae,d.events.length-ae,ne.resolve(d.events.slice(ae),d)),ne.resolveTo&&(d.events=ne.resolveTo(d.events,d))}function ee(){const ne=C(),ae=d.previous,le=d.currentConstruct,H=d.events.length,Q=Array.from(f);return{from:H,restore:L};function L(){i=ne,d.previous=ae,d.currentConstruct=le,d.events.length=H,f=Q,P()}}function P(){i.line in o&&i.column<2&&(i.column=o[i.line],i.offset+=o[i.line]-1)}}function x3(e,n){const r=n.start._index,i=n.start._bufferIndex,o=n.end._index,s=n.end._bufferIndex;let c;if(r===o)c=[e[r].slice(i,s)];else{if(c=e.slice(r,o),i>-1){const f=c[0];typeof f=="string"?c[0]=f.slice(i):c.shift()}s>0&&c.push(e[o].slice(0,s))}return c}function b3(e,n){let r=-1;const i=[];let o;for(;++r<e.length;){const s=e[r];let c;if(typeof s=="string")c=s;else switch(s){case-5:{c="\r";break}case-4:{c=`
387
- `;break}case-3:{c=`\r
388
- `;break}case-2:{c=n?" ":" ";break}case-1:{if(!n&&o)continue;c=" ";break}default:c=String.fromCharCode(s)}o=s===-2,i.push(c)}return i.join("")}function w3(e){const i={constructs:OS([y3,...(e||{}).extensions||[]]),content:o(zL),defined:[],document:o(IL),flow:o(n3),lazy:{},string:o(i3),text:o(l3)};return i;function o(s){return c;function c(f){return v3(i,s,f)}}}function S3(e){for(;!BS(e););return e}const Fb=/[\0\t\n\r]/g;function E3(){let e=1,n="",r=!0,i;return o;function o(s,c,f){const h=[];let d,m,y,b,w;for(s=n+(typeof s=="string"?s.toString():new TextDecoder(c||void 0).decode(s)),y=0,n="",r&&(s.charCodeAt(0)===65279&&y++,r=void 0);y<s.length;){if(Fb.lastIndex=y,d=Fb.exec(s),b=d&&d.index!==void 0?d.index:s.length,w=s.charCodeAt(b),!d){n=s.slice(y);break}if(w===10&&y===b&&i)h.push(-3),i=void 0;else switch(i&&(h.push(-5),i=void 0),y<b&&(h.push(s.slice(y,b)),e+=b-y),w){case 0:{h.push(65533),e++;break}case 9:{for(m=Math.ceil(e/4)*4,h.push(-2);e++<m;)h.push(-1);break}case 10:{h.push(-4),e=1;break}default:i=!0,e=1}y=b+1}return f&&(i&&h.push(-5),n&&h.push(n),h.push(null)),h}}const C3=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function k3(e){return e.replace(C3,A3)}function A3(e,n,r){if(n)return n;if(r.charCodeAt(0)===35){const o=r.charCodeAt(1),s=o===120||o===88;return LS(r.slice(s?2:1),s?16:10)}return cm(r)||e}const $S={}.hasOwnProperty;function T3(e,n,r){return typeof n!="string"&&(r=n,n=void 0),R3(r)(S3(w3(r).document().write(E3()(e,n,!0))))}function R3(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(Jt),autolinkProtocol:ee,autolinkEmail:ee,atxHeading:s(Wn),blockQuote:s(bt),characterEscape:ee,characterReference:ee,codeFenced:s(Rt),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:s(Rt,c),codeText:s(It,c),codeTextData:ee,data:ee,codeFlowValue:ee,definition:s(Yt),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:s(ba),hardBreakEscape:s(Jn),hardBreakTrailing:s(Jn),htmlFlow:s(Dt,c),htmlFlowData:ee,htmlText:s(Dt,c),htmlTextData:ee,image:s(Br),label:c,link:s(Jt),listItem:s(mr),listItemValue:b,listOrdered:s(wn,y),listUnordered:s(wn),paragraph:s(Wa),reference:M,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:s(Wn),strong:s(wa),thematicBreak:s(Ur)},exit:{atxHeading:h(),atxHeadingSequence:z,autolink:h(),autolinkEmail:Qe,autolinkProtocol:Ee,blockQuote:h(),characterEscapeValue:P,characterReferenceMarkerHexadecimal:Se,characterReferenceMarkerNumeric:Se,characterReferenceValue:he,characterReference:xe,codeFenced:h(T),codeFencedFence:k,codeFencedFenceInfo:w,codeFencedFenceMeta:C,codeFlowValue:P,codeIndented:h(A),codeText:h(Q),codeTextData:P,data:P,definition:h(),definitionDestinationString:O,definitionLabelString:_,definitionTitleString:N,emphasis:h(),hardBreakEscape:h(ae),hardBreakTrailing:h(ae),htmlFlow:h(le),htmlFlowData:P,htmlText:h(H),htmlTextData:P,image:h(K),label:J,labelText:U,lineEnding:ne,link:h(L),listItem:h(),listOrdered:h(),listUnordered:h(),paragraph:h(),referenceString:se,resourceDestinationString:E,resourceTitleString:Z,resource:oe,setextHeading:h(G),setextHeadingLineSequence:$,setextHeadingText:j,strong:h(),thematicBreak:h()}};GS(n,(e||{}).mdastExtensions||[]);const r={};return i;function i(W){let ue={type:"root",children:[]};const Ce={stack:[ue],tokenStack:[],config:n,enter:f,exit:d,buffer:c,resume:m,data:r},Re=[];let Ye=-1;for(;++Ye<W.length;)if(W[Ye][1].type==="listOrdered"||W[Ye][1].type==="listUnordered")if(W[Ye][0]==="enter")Re.push(Ye);else{const Kt=Re.pop();Ye=o(W,Kt,Ye)}for(Ye=-1;++Ye<W.length;){const Kt=n[W[Ye][0]];$S.call(Kt,W[Ye][1].type)&&Kt[W[Ye][1].type].call(Object.assign({sliceSerialize:W[Ye][2].sliceSerialize},Ce),W[Ye][1])}if(Ce.tokenStack.length>0){const Kt=Ce.tokenStack[Ce.tokenStack.length-1];(Kt[1]||qb).call(Ce,void 0,Kt[0])}for(ue.position={start:ca(W.length>0?W[0][1].start:{line:1,column:1,offset:0}),end:ca(W.length>0?W[W.length-2][1].end:{line:1,column:1,offset:0})},Ye=-1;++Ye<n.transforms.length;)ue=n.transforms[Ye](ue)||ue;return ue}function o(W,ue,Ce){let Re=ue-1,Ye=-1,Kt=!1,Pn,Bt,un,Ot;for(;++Re<=Ce;){const mt=W[Re];switch(mt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{mt[0]==="enter"?Ye++:Ye--,Ot=void 0;break}case"lineEndingBlank":{mt[0]==="enter"&&(Pn&&!Ot&&!Ye&&!un&&(un=Re),Ot=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ot=void 0}if(!Ye&&mt[0]==="enter"&&mt[1].type==="listItemPrefix"||Ye===-1&&mt[0]==="exit"&&(mt[1].type==="listUnordered"||mt[1].type==="listOrdered")){if(Pn){let Ut=Re;for(Bt=void 0;Ut--;){const X=W[Ut];if(X[1].type==="lineEnding"||X[1].type==="lineEndingBlank"){if(X[0]==="exit")continue;Bt&&(W[Bt][1].type="lineEndingBlank",Kt=!0),X[1].type="lineEnding",Bt=Ut}else if(!(X[1].type==="linePrefix"||X[1].type==="blockQuotePrefix"||X[1].type==="blockQuotePrefixWhitespace"||X[1].type==="blockQuoteMarker"||X[1].type==="listItemIndent"))break}un&&(!Bt||un<Bt)&&(Pn._spread=!0),Pn.end=Object.assign({},Bt?W[Bt][1].start:mt[1].end),W.splice(Bt||Re,0,["exit",Pn,mt[2]]),Re++,Ce++}if(mt[1].type==="listItemPrefix"){const Ut={type:"listItem",_spread:!1,start:Object.assign({},mt[1].start),end:void 0};Pn=Ut,W.splice(Re,0,["enter",Ut,mt[2]]),Re++,Ce++,un=void 0,Ot=!0}}}return W[ue][1]._spread=Kt,Ce}function s(W,ue){return Ce;function Ce(Re){f.call(this,W(Re),Re),ue&&ue.call(this,Re)}}function c(){this.stack.push({type:"fragment",children:[]})}function f(W,ue,Ce){this.stack[this.stack.length-1].children.push(W),this.stack.push(W),this.tokenStack.push([ue,Ce||void 0]),W.position={start:ca(ue.start),end:void 0}}function h(W){return ue;function ue(Ce){W&&W.call(this,Ce),d.call(this,Ce)}}function d(W,ue){const Ce=this.stack.pop(),Re=this.tokenStack.pop();if(Re)Re[0].type!==W.type&&(ue?ue.call(this,W,Re[0]):(Re[1]||qb).call(this,W,Re[0]));else throw new Error("Cannot close `"+W.type+"` ("+Eo({start:W.start,end:W.end})+"): it’s not open");Ce.position.end=ca(W.end)}function m(){return um(this.stack.pop())}function y(){this.data.expectingFirstListItemValue=!0}function b(W){if(this.data.expectingFirstListItemValue){const ue=this.stack[this.stack.length-2];ue.start=Number.parseInt(this.sliceSerialize(W),10),this.data.expectingFirstListItemValue=void 0}}function w(){const W=this.resume(),ue=this.stack[this.stack.length-1];ue.lang=W}function C(){const W=this.resume(),ue=this.stack[this.stack.length-1];ue.meta=W}function k(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function T(){const W=this.resume(),ue=this.stack[this.stack.length-1];ue.value=W.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function A(){const W=this.resume(),ue=this.stack[this.stack.length-1];ue.value=W.replace(/(\r?\n|\r)$/g,"")}function _(W){const ue=this.resume(),Ce=this.stack[this.stack.length-1];Ce.label=ue,Ce.identifier=Gn(this.sliceSerialize(W)).toLowerCase()}function N(){const W=this.resume(),ue=this.stack[this.stack.length-1];ue.title=W}function O(){const W=this.resume(),ue=this.stack[this.stack.length-1];ue.url=W}function z(W){const ue=this.stack[this.stack.length-1];if(!ue.depth){const Ce=this.sliceSerialize(W).length;ue.depth=Ce}}function j(){this.data.setextHeadingSlurpLineEnding=!0}function $(W){const ue=this.stack[this.stack.length-1];ue.depth=this.sliceSerialize(W).codePointAt(0)===61?1:2}function G(){this.data.setextHeadingSlurpLineEnding=void 0}function ee(W){const Ce=this.stack[this.stack.length-1].children;let Re=Ce[Ce.length-1];(!Re||Re.type!=="text")&&(Re=Ja(),Re.position={start:ca(W.start),end:void 0},Ce.push(Re)),this.stack.push(Re)}function P(W){const ue=this.stack.pop();ue.value+=this.sliceSerialize(W),ue.position.end=ca(W.end)}function ne(W){const ue=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Ce=ue.children[ue.children.length-1];Ce.position.end=ca(W.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(ue.type)&&(ee.call(this,W),P.call(this,W))}function ae(){this.data.atHardBreak=!0}function le(){const W=this.resume(),ue=this.stack[this.stack.length-1];ue.value=W}function H(){const W=this.resume(),ue=this.stack[this.stack.length-1];ue.value=W}function Q(){const W=this.resume(),ue=this.stack[this.stack.length-1];ue.value=W}function L(){const W=this.stack[this.stack.length-1];if(this.data.inReference){const ue=this.data.referenceType||"shortcut";W.type+="Reference",W.referenceType=ue,delete W.url,delete W.title}else delete W.identifier,delete W.label;this.data.referenceType=void 0}function K(){const W=this.stack[this.stack.length-1];if(this.data.inReference){const ue=this.data.referenceType||"shortcut";W.type+="Reference",W.referenceType=ue,delete W.url,delete W.title}else delete W.identifier,delete W.label;this.data.referenceType=void 0}function U(W){const ue=this.sliceSerialize(W),Ce=this.stack[this.stack.length-2];Ce.label=k3(ue),Ce.identifier=Gn(ue).toLowerCase()}function J(){const W=this.stack[this.stack.length-1],ue=this.resume(),Ce=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ce.type==="link"){const Re=W.children;Ce.children=Re}else Ce.alt=ue}function E(){const W=this.resume(),ue=this.stack[this.stack.length-1];ue.url=W}function Z(){const W=this.resume(),ue=this.stack[this.stack.length-1];ue.title=W}function oe(){this.data.inReference=void 0}function M(){this.data.referenceType="collapsed"}function se(W){const ue=this.resume(),Ce=this.stack[this.stack.length-1];Ce.label=ue,Ce.identifier=Gn(this.sliceSerialize(W)).toLowerCase(),this.data.referenceType="full"}function Se(W){this.data.characterReferenceType=W.type}function he(W){const ue=this.sliceSerialize(W),Ce=this.data.characterReferenceType;let Re;Ce?(Re=LS(ue,Ce==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Re=cm(ue);const Ye=this.stack[this.stack.length-1];Ye.value+=Re}function xe(W){const ue=this.stack.pop();ue.position.end=ca(W.end)}function Ee(W){P.call(this,W);const ue=this.stack[this.stack.length-1];ue.url=this.sliceSerialize(W)}function Qe(W){P.call(this,W);const ue=this.stack[this.stack.length-1];ue.url="mailto:"+this.sliceSerialize(W)}function bt(){return{type:"blockquote",children:[]}}function Rt(){return{type:"code",lang:null,meta:null,value:""}}function It(){return{type:"inlineCode",value:""}}function Yt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ba(){return{type:"emphasis",children:[]}}function Wn(){return{type:"heading",depth:0,children:[]}}function Jn(){return{type:"break"}}function Dt(){return{type:"html",value:""}}function Br(){return{type:"image",title:null,url:"",alt:null}}function Jt(){return{type:"link",title:null,url:"",children:[]}}function wn(W){return{type:"list",ordered:W.type==="listOrdered",start:null,spread:W._spread,children:[]}}function mr(W){return{type:"listItem",spread:W._spread,checked:null,children:[]}}function Wa(){return{type:"paragraph",children:[]}}function wa(){return{type:"strong",children:[]}}function Ja(){return{type:"text",value:""}}function Ur(){return{type:"thematicBreak"}}}function ca(e){return{line:e.line,column:e.column,offset:e.offset}}function GS(e,n){let r=-1;for(;++r<n.length;){const i=n[r];Array.isArray(i)?GS(e,i):_3(e,i)}}function _3(e,n){let r;for(r in n)if($S.call(n,r))switch(r){case"canContainEols":{const i=n[r];i&&e[r].push(...i);break}case"transforms":{const i=n[r];i&&e[r].push(...i);break}case"enter":case"exit":{const i=n[r];i&&Object.assign(e[r],i);break}}}function qb(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Eo({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Eo({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Eo({start:n.start,end:n.end})+") is still open")}function N3(e){const n=this;n.parser=r;function r(i){return T3(i,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function M3(e,n){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,r),e.applyData(n,r)}function j3(e,n){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,r),[e.applyData(n,r),{type:"text",value:`
389
- `}]}function D3(e,n){const r=n.value?n.value+`
390
- `:"",i={};n.lang&&(i.className=["language-"+n.lang]);let o={type:"element",tagName:"code",properties:i,children:[{type:"text",value:r}]};return n.meta&&(o.data={meta:n.meta}),e.patch(n,o),o=e.applyData(n,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(n,o),o}function O3(e,n){const r={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function L3(e,n){const r={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function z3(e,n){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(n.identifier).toUpperCase(),o=hl(i.toLowerCase()),s=e.footnoteOrder.indexOf(i);let c,f=e.footnoteCounts.get(i);f===void 0?(f=0,e.footnoteOrder.push(i),c=e.footnoteOrder.length):c=s+1,f+=1,e.footnoteCounts.set(i,f);const h={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+o,id:r+"fnref-"+o+(f>1?"-"+f:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};e.patch(n,h);const d={type:"element",tagName:"sup",properties:{},children:[h]};return e.patch(n,d),e.applyData(n,d)}function P3(e,n){const r={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function I3(e,n){if(e.options.allowDangerousHtml){const r={type:"raw",value:n.value};return e.patch(n,r),e.applyData(n,r)}}function YS(e,n){const r=n.referenceType;let i="]";if(r==="collapsed"?i+="[]":r==="full"&&(i+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+i}];const o=e.all(n),s=o[0];s&&s.type==="text"?s.value="["+s.value:o.unshift({type:"text",value:"["});const c=o[o.length-1];return c&&c.type==="text"?c.value+=i:o.push({type:"text",value:i}),o}function B3(e,n){const r=String(n.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return YS(e,n);const o={src:hl(i.url||""),alt:n.alt};i.title!==null&&i.title!==void 0&&(o.title=i.title);const s={type:"element",tagName:"img",properties:o,children:[]};return e.patch(n,s),e.applyData(n,s)}function U3(e,n){const r={src:hl(n.url)};n.alt!==null&&n.alt!==void 0&&(r.alt=n.alt),n.title!==null&&n.title!==void 0&&(r.title=n.title);const i={type:"element",tagName:"img",properties:r,children:[]};return e.patch(n,i),e.applyData(n,i)}function H3(e,n){const r={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,r);const i={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(n,i),e.applyData(n,i)}function F3(e,n){const r=String(n.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return YS(e,n);const o={href:hl(i.url||"")};i.title!==null&&i.title!==void 0&&(o.title=i.title);const s={type:"element",tagName:"a",properties:o,children:e.all(n)};return e.patch(n,s),e.applyData(n,s)}function q3(e,n){const r={href:hl(n.url)};n.title!==null&&n.title!==void 0&&(r.title=n.title);const i={type:"element",tagName:"a",properties:r,children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function V3(e,n,r){const i=e.all(n),o=r?$3(r):KS(n),s={},c=[];if(typeof n.checked=="boolean"){const m=i[0];let y;m&&m.type==="element"&&m.tagName==="p"?y=m:(y={type:"element",tagName:"p",properties:{},children:[]},i.unshift(y)),y.children.length>0&&y.children.unshift({type:"text",value:" "}),y.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let f=-1;for(;++f<i.length;){const m=i[f];(o||f!==0||m.type!=="element"||m.tagName!=="p")&&c.push({type:"text",value:`
391
- `}),m.type==="element"&&m.tagName==="p"&&!o?c.push(...m.children):c.push(m)}const h=i[i.length-1];h&&(o||h.type!=="element"||h.tagName!=="p")&&c.push({type:"text",value:`
392
- `});const d={type:"element",tagName:"li",properties:s,children:c};return e.patch(n,d),e.applyData(n,d)}function $3(e){let n=!1;if(e.type==="list"){n=e.spread||!1;const r=e.children;let i=-1;for(;!n&&++i<r.length;)n=KS(r[i])}return n}function KS(e){const n=e.spread;return n??e.children.length>1}function G3(e,n){const r={},i=e.all(n);let o=-1;for(typeof n.start=="number"&&n.start!==1&&(r.start=n.start);++o<i.length;){const c=i[o];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const s={type:"element",tagName:n.ordered?"ol":"ul",properties:r,children:e.wrap(i,!0)};return e.patch(n,s),e.applyData(n,s)}function Y3(e,n){const r={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function K3(e,n){const r={type:"root",children:e.wrap(e.all(n))};return e.patch(n,r),e.applyData(n,r)}function X3(e,n){const r={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function Q3(e,n){const r=e.all(n),i=r.shift(),o=[];if(i){const c={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(n.children[0],c),o.push(c)}if(r.length>0){const c={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},f=im(n.children[1]),h=AS(n.children[n.children.length-1]);f&&h&&(c.position={start:f,end:h}),o.push(c)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(n,s),e.applyData(n,s)}function Z3(e,n,r){const i=r?r.children:void 0,s=(i?i.indexOf(n):1)===0?"th":"td",c=r&&r.type==="table"?r.align:void 0,f=c?c.length:n.children.length;let h=-1;const d=[];for(;++h<f;){const y=n.children[h],b={},w=c?c[h]:void 0;w&&(b.align=w);let C={type:"element",tagName:s,properties:b,children:[]};y&&(C.children=e.all(y),e.patch(y,C),C=e.applyData(y,C)),d.push(C)}const m={type:"element",tagName:"tr",properties:{},children:e.wrap(d,!0)};return e.patch(n,m),e.applyData(n,m)}function W3(e,n){const r={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}const Vb=9,$b=32;function J3(e){const n=String(e),r=/\r?\n|\r/g;let i=r.exec(n),o=0;const s=[];for(;i;)s.push(Gb(n.slice(o,i.index),o>0,!0),i[0]),o=i.index+i[0].length,i=r.exec(n);return s.push(Gb(n.slice(o),o>0,!1)),s.join("")}function Gb(e,n,r){let i=0,o=e.length;if(n){let s=e.codePointAt(i);for(;s===Vb||s===$b;)i++,s=e.codePointAt(i)}if(r){let s=e.codePointAt(o-1);for(;s===Vb||s===$b;)o--,s=e.codePointAt(o-1)}return o>i?e.slice(i,o):""}function eP(e,n){const r={type:"text",value:J3(String(n.value))};return e.patch(n,r),e.applyData(n,r)}function tP(e,n){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,r),e.applyData(n,r)}const nP={blockquote:M3,break:j3,code:D3,delete:O3,emphasis:L3,footnoteReference:z3,heading:P3,html:I3,imageReference:B3,image:U3,inlineCode:H3,linkReference:F3,link:q3,listItem:V3,list:G3,paragraph:Y3,root:K3,strong:X3,table:Q3,tableCell:W3,tableRow:Z3,text:eP,thematicBreak:tP,toml:_u,yaml:_u,definition:_u,footnoteDefinition:_u};function _u(){}const XS=-1,Nc=0,ko=1,ec=2,dm=3,hm=4,pm=5,mm=6,QS=7,ZS=8,Yb=typeof self=="object"?self:globalThis,rP=(e,n)=>{const r=(o,s)=>(e.set(s,o),o),i=o=>{if(e.has(o))return e.get(o);const[s,c]=n[o];switch(s){case Nc:case XS:return r(c,o);case ko:{const f=r([],o);for(const h of c)f.push(i(h));return f}case ec:{const f=r({},o);for(const[h,d]of c)f[i(h)]=i(d);return f}case dm:return r(new Date(c),o);case hm:{const{source:f,flags:h}=c;return r(new RegExp(f,h),o)}case pm:{const f=r(new Map,o);for(const[h,d]of c)f.set(i(h),i(d));return f}case mm:{const f=r(new Set,o);for(const h of c)f.add(i(h));return f}case QS:{const{name:f,message:h}=c;return r(new Yb[f](h),o)}case ZS:return r(BigInt(c),o);case"BigInt":return r(Object(BigInt(c)),o);case"ArrayBuffer":return r(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:f}=new Uint8Array(c);return r(new DataView(f),c)}}return r(new Yb[s](c),o)};return i},Kb=e=>rP(new Map,e)(0),$i="",{toString:aP}={},{keys:iP}=Object,go=e=>{const n=typeof e;if(n!=="object"||!e)return[Nc,n];const r=aP.call(e).slice(8,-1);switch(r){case"Array":return[ko,$i];case"Object":return[ec,$i];case"Date":return[dm,$i];case"RegExp":return[hm,$i];case"Map":return[pm,$i];case"Set":return[mm,$i];case"DataView":return[ko,r]}return r.includes("Array")?[ko,r]:r.includes("Error")?[QS,r]:[ec,r]},Nu=([e,n])=>e===Nc&&(n==="function"||n==="symbol"),lP=(e,n,r,i)=>{const o=(c,f)=>{const h=i.push(c)-1;return r.set(f,h),h},s=c=>{if(r.has(c))return r.get(c);let[f,h]=go(c);switch(f){case Nc:{let m=c;switch(h){case"bigint":f=ZS,m=c.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+h);m=null;break;case"undefined":return o([XS],c)}return o([f,m],c)}case ko:{if(h){let b=c;return h==="DataView"?b=new Uint8Array(c.buffer):h==="ArrayBuffer"&&(b=new Uint8Array(c)),o([h,[...b]],c)}const m=[],y=o([f,m],c);for(const b of c)m.push(s(b));return y}case ec:{if(h)switch(h){case"BigInt":return o([h,c.toString()],c);case"Boolean":case"Number":case"String":return o([h,c.valueOf()],c)}if(n&&"toJSON"in c)return s(c.toJSON());const m=[],y=o([f,m],c);for(const b of iP(c))(e||!Nu(go(c[b])))&&m.push([s(b),s(c[b])]);return y}case dm:return o([f,c.toISOString()],c);case hm:{const{source:m,flags:y}=c;return o([f,{source:m,flags:y}],c)}case pm:{const m=[],y=o([f,m],c);for(const[b,w]of c)(e||!(Nu(go(b))||Nu(go(w))))&&m.push([s(b),s(w)]);return y}case mm:{const m=[],y=o([f,m],c);for(const b of c)(e||!Nu(go(b)))&&m.push(s(b));return y}}const{message:d}=c;return o([f,{name:h,message:d}],c)};return s},Xb=(e,{json:n,lossy:r}={})=>{const i=[];return lP(!(n||r),!!n,new Map,i)(e),i},Oo=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?Kb(Xb(e,n)):structuredClone(e):(e,n)=>Kb(Xb(e,n));function oP(e,n){const r=[{type:"text",value:"↩"}];return n>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),r}function sP(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function uP(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||oP,i=e.options.footnoteBackLabel||sP,o=e.options.footnoteLabel||"Footnotes",s=e.options.footnoteLabelTagName||"h2",c=e.options.footnoteLabelProperties||{className:["sr-only"]},f=[];let h=-1;for(;++h<e.footnoteOrder.length;){const d=e.footnoteById.get(e.footnoteOrder[h]);if(!d)continue;const m=e.all(d),y=String(d.identifier).toUpperCase(),b=hl(y.toLowerCase());let w=0;const C=[],k=e.footnoteCounts.get(y);for(;k!==void 0&&++w<=k;){C.length>0&&C.push({type:"text",value:" "});let _=typeof r=="string"?r:r(h,w);typeof _=="string"&&(_={type:"text",value:_}),C.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+b+(w>1?"-"+w:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(h,w),className:["data-footnote-backref"]},children:Array.isArray(_)?_:[_]})}const T=m[m.length-1];if(T&&T.type==="element"&&T.tagName==="p"){const _=T.children[T.children.length-1];_&&_.type==="text"?_.value+=" ":T.children.push({type:"text",value:" "}),T.children.push(...C)}else m.push(...C);const A={type:"element",tagName:"li",properties:{id:n+"fn-"+b},children:e.wrap(m,!0)};e.patch(d,A),f.push(A)}if(f.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...Oo(c),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
393
- `},{type:"element",tagName:"ol",properties:{},children:e.wrap(f,!0)},{type:"text",value:`
394
- `}]}}const Mc=(function(e){if(e==null)return hP;if(typeof e=="function")return jc(e);if(typeof e=="object")return Array.isArray(e)?cP(e):fP(e);if(typeof e=="string")return dP(e);throw new Error("Expected function, string, or object as test")});function cP(e){const n=[];let r=-1;for(;++r<e.length;)n[r]=Mc(e[r]);return jc(i);function i(...o){let s=-1;for(;++s<n.length;)if(n[s].apply(this,o))return!0;return!1}}function fP(e){const n=e;return jc(r);function r(i){const o=i;let s;for(s in e)if(o[s]!==n[s])return!1;return!0}}function dP(e){return jc(n);function n(r){return r&&r.type===e}}function jc(e){return n;function n(r,i,o){return!!(pP(r)&&e.call(this,r,typeof i=="number"?i:void 0,o||void 0))}}function hP(){return!0}function pP(e){return e!==null&&typeof e=="object"&&"type"in e}const WS=[],mP=!0,sp=!1,gP="skip";function JS(e,n,r,i){let o;typeof n=="function"&&typeof r!="function"?(i=r,r=n):o=n;const s=Mc(o),c=i?-1:1;f(e,void 0,[])();function f(h,d,m){const y=h&&typeof h=="object"?h:{};if(typeof y.type=="string"){const w=typeof y.tagName=="string"?y.tagName:typeof y.name=="string"?y.name:void 0;Object.defineProperty(b,"name",{value:"node ("+(h.type+(w?"<"+w+">":""))+")"})}return b;function b(){let w=WS,C,k,T;if((!n||s(h,d,m[m.length-1]||void 0))&&(w=yP(r(h,m)),w[0]===sp))return w;if("children"in h&&h.children){const A=h;if(A.children&&w[0]!==gP)for(k=(i?A.children.length:-1)+c,T=m.concat(A);k>-1&&k<A.children.length;){const _=A.children[k];if(C=f(_,k,T)(),C[0]===sp)return C;k=typeof C[1]=="number"?C[1]:k+c}}return w}}}function yP(e){return Array.isArray(e)?e:typeof e=="number"?[mP,e]:e==null?WS:[e]}function gm(e,n,r,i){let o,s,c;typeof n=="function"&&typeof r!="function"?(s=void 0,c=n,o=r):(s=n,c=r,o=i),JS(e,s,f,o);function f(h,d){const m=d[d.length-1],y=m?m.children.indexOf(h):void 0;return c(h,y,m)}}const up={}.hasOwnProperty,vP={};function xP(e,n){const r=n||vP,i=new Map,o=new Map,s=new Map,c={...nP,...r.handlers},f={all:d,applyData:wP,definitionById:i,footnoteById:o,footnoteCounts:s,footnoteOrder:[],handlers:c,one:h,options:r,patch:bP,wrap:EP};return gm(e,function(m){if(m.type==="definition"||m.type==="footnoteDefinition"){const y=m.type==="definition"?i:o,b=String(m.identifier).toUpperCase();y.has(b)||y.set(b,m)}}),f;function h(m,y){const b=m.type,w=f.handlers[b];if(up.call(f.handlers,b)&&w)return w(f,m,y);if(f.options.passThrough&&f.options.passThrough.includes(b)){if("children"in m){const{children:k,...T}=m,A=Oo(T);return A.children=f.all(m),A}return Oo(m)}return(f.options.unknownHandler||SP)(f,m,y)}function d(m){const y=[];if("children"in m){const b=m.children;let w=-1;for(;++w<b.length;){const C=f.one(b[w],m);if(C){if(w&&b[w-1].type==="break"&&(!Array.isArray(C)&&C.type==="text"&&(C.value=Qb(C.value)),!Array.isArray(C)&&C.type==="element")){const k=C.children[0];k&&k.type==="text"&&(k.value=Qb(k.value))}Array.isArray(C)?y.push(...C):y.push(C)}}}return y}}function bP(e,n){e.position&&(n.position=RS(e))}function wP(e,n){let r=n;if(e&&e.data){const i=e.data.hName,o=e.data.hChildren,s=e.data.hProperties;if(typeof i=="string")if(r.type==="element")r.tagName=i;else{const c="children"in r?r.children:[r];r={type:"element",tagName:i,properties:{},children:c}}r.type==="element"&&s&&Object.assign(r.properties,Oo(s)),"children"in r&&r.children&&o!==null&&o!==void 0&&(r.children=o)}return r}function SP(e,n){const r=n.data||{},i="value"in n&&!(up.call(r,"hProperties")||up.call(r,"hChildren"))?{type:"text",value:n.value}:{type:"element",tagName:"div",properties:{},children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function EP(e,n){const r=[];let i=-1;for(n&&r.push({type:"text",value:`
395
- `});++i<e.length;)i&&r.push({type:"text",value:`
396
- `}),r.push(e[i]);return n&&e.length>0&&r.push({type:"text",value:`
397
- `}),r}function Qb(e){let n=0,r=e.charCodeAt(n);for(;r===9||r===32;)n++,r=e.charCodeAt(n);return e.slice(n)}function Zb(e,n){const r=xP(e,n),i=r.one(e,void 0),o=uP(r),s=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return o&&s.children.push({type:"text",value:`
398
- `},o),s}function CP(e,n){return e&&"run"in e?async function(r,i){const o=Zb(r,{file:i,...n});await e.run(o,i)}:function(r,i){return Zb(r,{file:i,...e||n})}}function Wb(e){if(e)throw e}var Eh,Jb;function kP(){if(Jb)return Eh;Jb=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(d){return typeof Array.isArray=="function"?Array.isArray(d):n.call(d)==="[object Array]"},s=function(d){if(!d||n.call(d)!=="[object Object]")return!1;var m=e.call(d,"constructor"),y=d.constructor&&d.constructor.prototype&&e.call(d.constructor.prototype,"isPrototypeOf");if(d.constructor&&!m&&!y)return!1;var b;for(b in d);return typeof b>"u"||e.call(d,b)},c=function(d,m){r&&m.name==="__proto__"?r(d,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):d[m.name]=m.newValue},f=function(d,m){if(m==="__proto__")if(e.call(d,m)){if(i)return i(d,m).value}else return;return d[m]};return Eh=function h(){var d,m,y,b,w,C,k=arguments[0],T=1,A=arguments.length,_=!1;for(typeof k=="boolean"&&(_=k,k=arguments[1]||{},T=2),(k==null||typeof k!="object"&&typeof k!="function")&&(k={});T<A;++T)if(d=arguments[T],d!=null)for(m in d)y=f(k,m),b=f(d,m),k!==b&&(_&&b&&(s(b)||(w=o(b)))?(w?(w=!1,C=y&&o(y)?y:[]):C=y&&s(y)?y:{},c(k,{name:m,newValue:h(_,C,b)})):typeof b<"u"&&c(k,{name:m,newValue:b}));return k},Eh}var AP=kP();const Ch=lc(AP);function cp(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function TP(){const e=[],n={run:r,use:i};return n;function r(...o){let s=-1;const c=o.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);f(null,...o);function f(h,...d){const m=e[++s];let y=-1;if(h){c(h);return}for(;++y<o.length;)(d[y]===null||d[y]===void 0)&&(d[y]=o[y]);o=d,m?RP(m,f)(...d):c(null,...d)}}function i(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return e.push(o),n}}function RP(e,n){let r;return i;function i(...c){const f=e.length>c.length;let h;f&&c.push(o);try{h=e.apply(this,c)}catch(d){const m=d;if(f&&r)throw m;return o(m)}f||(h&&h.then&&typeof h.then=="function"?h.then(s,o):h instanceof Error?o(h):s(h))}function o(c,...f){r||(r=!0,n(c,...f))}function s(c){o(null,c)}}const lr={basename:_P,dirname:NP,extname:MP,join:jP,sep:"/"};function _P(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');ns(e);let r=0,i=-1,o=e.length,s;if(n===void 0||n.length===0||n.length>e.length){for(;o--;)if(e.codePointAt(o)===47){if(s){r=o+1;break}}else i<0&&(s=!0,i=o+1);return i<0?"":e.slice(r,i)}if(n===e)return"";let c=-1,f=n.length-1;for(;o--;)if(e.codePointAt(o)===47){if(s){r=o+1;break}}else c<0&&(s=!0,c=o+1),f>-1&&(e.codePointAt(o)===n.codePointAt(f--)?f<0&&(i=o):(f=-1,i=c));return r===i?i=c:i<0&&(i=e.length),e.slice(r,i)}function NP(e){if(ns(e),e.length===0)return".";let n=-1,r=e.length,i;for(;--r;)if(e.codePointAt(r)===47){if(i){n=r;break}}else i||(i=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function MP(e){ns(e);let n=e.length,r=-1,i=0,o=-1,s=0,c;for(;n--;){const f=e.codePointAt(n);if(f===47){if(c){i=n+1;break}continue}r<0&&(c=!0,r=n+1),f===46?o<0?o=n:s!==1&&(s=1):o>-1&&(s=-1)}return o<0||r<0||s===0||s===1&&o===r-1&&o===i+1?"":e.slice(o,r)}function jP(...e){let n=-1,r;for(;++n<e.length;)ns(e[n]),e[n]&&(r=r===void 0?e[n]:r+"/"+e[n]);return r===void 0?".":DP(r)}function DP(e){ns(e);const n=e.codePointAt(0)===47;let r=OP(e,!n);return r.length===0&&!n&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),n?"/"+r:r}function OP(e,n){let r="",i=0,o=-1,s=0,c=-1,f,h;for(;++c<=e.length;){if(c<e.length)f=e.codePointAt(c);else{if(f===47)break;f=47}if(f===47){if(!(o===c-1||s===1))if(o!==c-1&&s===2){if(r.length<2||i!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(h=r.lastIndexOf("/"),h!==r.length-1){h<0?(r="",i=0):(r=r.slice(0,h),i=r.length-1-r.lastIndexOf("/")),o=c,s=0;continue}}else if(r.length>0){r="",i=0,o=c,s=0;continue}}n&&(r=r.length>0?r+"/..":"..",i=2)}else r.length>0?r+="/"+e.slice(o+1,c):r=e.slice(o+1,c),i=c-o-1;o=c,s=0}else f===46&&s>-1?s++:s=-1}return r}function ns(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const LP={cwd:zP};function zP(){return"/"}function fp(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function PP(e){if(typeof e=="string")e=new URL(e);else if(!fp(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return IP(e)}function IP(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const n=e.pathname;let r=-1;for(;++r<n.length;)if(n.codePointAt(r)===37&&n.codePointAt(r+1)===50){const i=n.codePointAt(r+2);if(i===70||i===102){const o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(n)}const kh=["history","path","basename","stem","extname","dirname"];class eE{constructor(n){let r;n?fp(n)?r={path:n}:typeof n=="string"||BP(n)?r={value:n}:r=n:r={},this.cwd="cwd"in r?"":LP.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<kh.length;){const s=kh[i];s in r&&r[s]!==void 0&&r[s]!==null&&(this[s]=s==="history"?[...r[s]]:r[s])}let o;for(o in r)kh.includes(o)||(this[o]=r[o])}get basename(){return typeof this.path=="string"?lr.basename(this.path):void 0}set basename(n){Th(n,"basename"),Ah(n,"basename"),this.path=lr.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?lr.dirname(this.path):void 0}set dirname(n){e0(this.basename,"dirname"),this.path=lr.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?lr.extname(this.path):void 0}set extname(n){if(Ah(n,"extname"),e0(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=lr.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){fp(n)&&(n=PP(n)),Th(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?lr.basename(this.path,this.extname):void 0}set stem(n){Th(n,"stem"),Ah(n,"stem"),this.path=lr.join(this.dirname||"",n+(this.extname||""))}fail(n,r,i){const o=this.message(n,r,i);throw o.fatal=!0,o}info(n,r,i){const o=this.message(n,r,i);return o.fatal=void 0,o}message(n,r,i){const o=new Gt(n,r,i);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function Ah(e,n){if(e&&e.includes(lr.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+lr.sep+"`")}function Th(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function e0(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function BP(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const UP=(function(e){const i=this.constructor.prototype,o=i[e],s=function(){return o.apply(s,arguments)};return Object.setPrototypeOf(s,i),s}),HP={}.hasOwnProperty;class ym extends UP{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=TP()}copy(){const n=new ym;let r=-1;for(;++r<this.attachers.length;){const i=this.attachers[r];n.use(...i)}return n.data(Ch(!0,{},this.namespace)),n}data(n,r){return typeof n=="string"?arguments.length===2?(Nh("data",this.frozen),this.namespace[n]=r,this):HP.call(this.namespace,n)&&this.namespace[n]||void 0:n?(Nh("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;const n=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const o=r.call(n,...i);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const r=Mu(n),i=this.parser||this.Parser;return Rh("parse",i),i(String(r),r)}process(n,r){const i=this;return this.freeze(),Rh("process",this.parser||this.Parser),_h("process",this.compiler||this.Compiler),r?o(void 0,r):new Promise(o);function o(s,c){const f=Mu(n),h=i.parse(f);i.run(h,f,function(m,y,b){if(m||!y||!b)return d(m);const w=y,C=i.stringify(w,b);VP(C)?b.value=C:b.result=C,d(m,b)});function d(m,y){m||!y?c(m):s?s(y):r(void 0,y)}}}processSync(n){let r=!1,i;return this.freeze(),Rh("processSync",this.parser||this.Parser),_h("processSync",this.compiler||this.Compiler),this.process(n,o),n0("processSync","process",r),i;function o(s,c){r=!0,Wb(s),i=c}}run(n,r,i){t0(n),this.freeze();const o=this.transformers;return!i&&typeof r=="function"&&(i=r,r=void 0),i?s(void 0,i):new Promise(s);function s(c,f){const h=Mu(r);o.run(n,h,d);function d(m,y,b){const w=y||n;m?f(m):c?c(w):i(void 0,w,b)}}}runSync(n,r){let i=!1,o;return this.run(n,r,s),n0("runSync","run",i),o;function s(c,f){Wb(c),o=f,i=!0}}stringify(n,r){this.freeze();const i=Mu(r),o=this.compiler||this.Compiler;return _h("stringify",o),t0(n),o(n,i)}use(n,...r){const i=this.attachers,o=this.namespace;if(Nh("use",this.frozen),n!=null)if(typeof n=="function")h(n,r);else if(typeof n=="object")Array.isArray(n)?f(n):c(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function s(d){if(typeof d=="function")h(d,[]);else if(typeof d=="object")if(Array.isArray(d)){const[m,...y]=d;h(m,y)}else c(d);else throw new TypeError("Expected usable value, not `"+d+"`")}function c(d){if(!("plugins"in d)&&!("settings"in d))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");f(d.plugins),d.settings&&(o.settings=Ch(!0,o.settings,d.settings))}function f(d){let m=-1;if(d!=null)if(Array.isArray(d))for(;++m<d.length;){const y=d[m];s(y)}else throw new TypeError("Expected a list of plugins, not `"+d+"`")}function h(d,m){let y=-1,b=-1;for(;++y<i.length;)if(i[y][0]===d){b=y;break}if(b===-1)i.push([d,...m]);else if(m.length>0){let[w,...C]=m;const k=i[b][1];cp(k)&&cp(w)&&(w=Ch(!0,k,w)),i[b]=[d,w,...C]}}}}const FP=new ym().freeze();function Rh(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function _h(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Nh(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function t0(e){if(!cp(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function n0(e,n,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function Mu(e){return qP(e)?e:new eE(e)}function qP(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function VP(e){return typeof e=="string"||$P(e)}function $P(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const GP="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",r0=[],a0={allowDangerousHtml:!0},YP=/^(https?|ircs?|mailto|xmpp)$/i,KP=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function XP(e){const n=QP(e),r=ZP(e);return WP(n.runSync(n.parse(r),r),e)}function QP(e){const n=e.rehypePlugins||r0,r=e.remarkPlugins||r0,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...a0}:a0;return FP().use(N3).use(r).use(CP,i).use(n)}function ZP(e){const n=e.children||"",r=new eE;return typeof n=="string"&&(r.value=n),r}function WP(e,n){const r=n.allowedElements,i=n.allowElement,o=n.components,s=n.disallowedElements,c=n.skipHtml,f=n.unwrapDisallowed,h=n.urlTransform||JP;for(const m of KP)Object.hasOwn(n,m.from)&&(""+m.from+(m.to?"use `"+m.to+"` instead":"remove it")+GP+m.id,void 0);return gm(e,d),hL(e,{Fragment:g.Fragment,components:o,ignoreInvalidStyle:!0,jsx:g.jsx,jsxs:g.jsxs,passKeys:!0,passNode:!0});function d(m,y,b){if(m.type==="raw"&&b&&typeof y=="number")return c?b.children.splice(y,1):b.children[y]={type:"text",value:m.value},y;if(m.type==="element"){let w;for(w in bh)if(Object.hasOwn(bh,w)&&Object.hasOwn(m.properties,w)){const C=m.properties[w],k=bh[w];(k===null||k.includes(m.tagName))&&(m.properties[w]=h(String(C||""),w,m))}}if(m.type==="element"){let w=r?!r.includes(m.tagName):s?s.includes(m.tagName):!1;if(!w&&i&&typeof y=="number"&&(w=!i(m,y,b)),w&&b&&typeof y=="number")return f&&m.children?b.children.splice(y,1,...m.children):b.children.splice(y,1),y}}}function JP(e){const n=e.indexOf(":"),r=e.indexOf("?"),i=e.indexOf("#"),o=e.indexOf("/");return n===-1||o!==-1&&n>o||r!==-1&&n>r||i!==-1&&n>i||YP.test(e.slice(0,n))?e:""}function i0(e,n){const r=String(e);if(typeof n!="string")throw new TypeError("Expected character");let i=0,o=r.indexOf(n);for(;o!==-1;)i++,o=r.indexOf(n,o+n.length);return i}function e5(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function t5(e,n,r){const o=Mc((r||{}).ignore||[]),s=n5(n);let c=-1;for(;++c<s.length;)JS(e,"text",f);function f(d,m){let y=-1,b;for(;++y<m.length;){const w=m[y],C=b?b.children:void 0;if(o(w,C?C.indexOf(w):void 0,b))return;b=w}if(b)return h(d,m)}function h(d,m){const y=m[m.length-1],b=s[c][0],w=s[c][1];let C=0;const T=y.children.indexOf(d);let A=!1,_=[];b.lastIndex=0;let N=b.exec(d.value);for(;N;){const O=N.index,z={index:N.index,input:N.input,stack:[...m,d]};let j=w(...N,z);if(typeof j=="string"&&(j=j.length>0?{type:"text",value:j}:void 0),j===!1?b.lastIndex=O+1:(C!==O&&_.push({type:"text",value:d.value.slice(C,O)}),Array.isArray(j)?_.push(...j):j&&_.push(j),C=O+N[0].length,A=!0),!b.global)break;N=b.exec(d.value)}return A?(C<d.value.length&&_.push({type:"text",value:d.value.slice(C)}),y.children.splice(T,1,..._)):_=[d],T+_.length}}function n5(e){const n=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!e[0]||Array.isArray(e[0])?e:[e];let i=-1;for(;++i<r.length;){const o=r[i];n.push([r5(o[0]),a5(o[1])])}return n}function r5(e){return typeof e=="string"?new RegExp(e5(e),"g"):e}function a5(e){return typeof e=="function"?e:function(){return e}}const Mh="phrasing",jh=["autolink","link","image","label"];function i5(){return{transforms:[d5],enter:{literalAutolink:o5,literalAutolinkEmail:Dh,literalAutolinkHttp:Dh,literalAutolinkWww:Dh},exit:{literalAutolink:f5,literalAutolinkEmail:c5,literalAutolinkHttp:s5,literalAutolinkWww:u5}}}function l5(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Mh,notInConstruct:jh},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Mh,notInConstruct:jh},{character:":",before:"[ps]",after:"\\/",inConstruct:Mh,notInConstruct:jh}]}}function o5(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Dh(e){this.config.enter.autolinkProtocol.call(this,e)}function s5(e){this.config.exit.autolinkProtocol.call(this,e)}function u5(e){this.config.exit.data.call(this,e);const n=this.stack[this.stack.length-1];n.type,n.url="http://"+this.sliceSerialize(e)}function c5(e){this.config.exit.autolinkEmail.call(this,e)}function f5(e){this.exit(e)}function d5(e){t5(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,h5],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),p5]],{ignore:["link","linkReference"]})}function h5(e,n,r,i,o){let s="";if(!tE(o)||(/^w/i.test(n)&&(r=n+r,n="",s="http://"),!m5(r)))return!1;const c=g5(r+i);if(!c[0])return!1;const f={type:"link",title:null,url:s+n+c[0],children:[{type:"text",value:n+c[0]}]};return c[1]?[f,{type:"text",value:c[1]}]:f}function p5(e,n,r,i){return!tE(i,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+r,children:[{type:"text",value:n+"@"+r}]}}function m5(e){const n=e.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))}function g5(e){const n=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let r=n[0],i=r.indexOf(")");const o=i0(e,"(");let s=i0(e,")");for(;i!==-1&&o>s;)e+=r.slice(0,i+1),r=r.slice(i+1),i=r.indexOf(")"),s++;return[e,r]}function tE(e,n){const r=e.input.charCodeAt(e.index-1);return(e.index===0||Ka(r)||Rc(r))&&(!n||r!==47)}nE.peek=k5;function y5(){this.buffer()}function v5(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function x5(){this.buffer()}function b5(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function w5(e){const n=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Gn(this.sliceSerialize(e)).toLowerCase(),r.label=n}function S5(e){this.exit(e)}function E5(e){const n=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Gn(this.sliceSerialize(e)).toLowerCase(),r.label=n}function C5(e){this.exit(e)}function k5(){return"["}function nE(e,n,r,i){const o=r.createTracker(i);let s=o.move("[^");const c=r.enter("footnoteReference"),f=r.enter("reference");return s+=o.move(r.safe(r.associationId(e),{after:"]",before:s})),f(),c(),s+=o.move("]"),s}function A5(){return{enter:{gfmFootnoteCallString:y5,gfmFootnoteCall:v5,gfmFootnoteDefinitionLabelString:x5,gfmFootnoteDefinition:b5},exit:{gfmFootnoteCallString:w5,gfmFootnoteCall:S5,gfmFootnoteDefinitionLabelString:E5,gfmFootnoteDefinition:C5}}}function T5(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:r,footnoteReference:nE},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(i,o,s,c){const f=s.createTracker(c);let h=f.move("[^");const d=s.enter("footnoteDefinition"),m=s.enter("label");return h+=f.move(s.safe(s.associationId(i),{before:h,after:"]"})),m(),h+=f.move("]:"),i.children&&i.children.length>0&&(f.shift(4),h+=f.move((n?`
399
- `:" ")+s.indentLines(s.containerFlow(i,f.current()),n?rE:R5))),d(),h}}function R5(e,n,r){return n===0?e:rE(e,n,r)}function rE(e,n,r){return(r?"":" ")+e}const _5=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];aE.peek=O5;function N5(){return{canContainEols:["delete"],enter:{strikethrough:j5},exit:{strikethrough:D5}}}function M5(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:_5}],handlers:{delete:aE}}}function j5(e){this.enter({type:"delete",children:[]},e)}function D5(e){this.exit(e)}function aE(e,n,r,i){const o=r.createTracker(i),s=r.enter("strikethrough");let c=o.move("~~");return c+=r.containerPhrasing(e,{...o.current(),before:c,after:"~"}),c+=o.move("~~"),s(),c}function O5(){return"~"}function L5(e){return e.length}function z5(e,n){const r=n||{},i=(r.align||[]).concat(),o=r.stringLength||L5,s=[],c=[],f=[],h=[];let d=0,m=-1;for(;++m<e.length;){const k=[],T=[];let A=-1;for(e[m].length>d&&(d=e[m].length);++A<e[m].length;){const _=P5(e[m][A]);if(r.alignDelimiters!==!1){const N=o(_);T[A]=N,(h[A]===void 0||N>h[A])&&(h[A]=N)}k.push(_)}c[m]=k,f[m]=T}let y=-1;if(typeof i=="object"&&"length"in i)for(;++y<d;)s[y]=l0(i[y]);else{const k=l0(i);for(;++y<d;)s[y]=k}y=-1;const b=[],w=[];for(;++y<d;){const k=s[y];let T="",A="";k===99?(T=":",A=":"):k===108?T=":":k===114&&(A=":");let _=r.alignDelimiters===!1?1:Math.max(1,h[y]-T.length-A.length);const N=T+"-".repeat(_)+A;r.alignDelimiters!==!1&&(_=T.length+_+A.length,_>h[y]&&(h[y]=_),w[y]=_),b[y]=N}c.splice(1,0,b),f.splice(1,0,w),m=-1;const C=[];for(;++m<c.length;){const k=c[m],T=f[m];y=-1;const A=[];for(;++y<d;){const _=k[y]||"";let N="",O="";if(r.alignDelimiters!==!1){const z=h[y]-(T[y]||0),j=s[y];j===114?N=" ".repeat(z):j===99?z%2?(N=" ".repeat(z/2+.5),O=" ".repeat(z/2-.5)):(N=" ".repeat(z/2),O=N):O=" ".repeat(z)}r.delimiterStart!==!1&&!y&&A.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&_==="")&&(r.delimiterStart!==!1||y)&&A.push(" "),r.alignDelimiters!==!1&&A.push(N),A.push(_),r.alignDelimiters!==!1&&A.push(O),r.padding!==!1&&A.push(" "),(r.delimiterEnd!==!1||y!==d-1)&&A.push("|")}C.push(r.delimiterEnd===!1?A.join("").replace(/ +$/,""):A.join(""))}return C.join(`
400
- `)}function P5(e){return e==null?"":String(e)}function l0(e){const n=typeof e=="string"?e.codePointAt(0):0;return n===67||n===99?99:n===76||n===108?108:n===82||n===114?114:0}function I5(e,n,r,i){const o=r.enter("blockquote"),s=r.createTracker(i);s.move("> "),s.shift(2);const c=r.indentLines(r.containerFlow(e,s.current()),B5);return o(),c}function B5(e,n,r){return">"+(r?"":" ")+e}function U5(e,n){return o0(e,n.inConstruct,!0)&&!o0(e,n.notInConstruct,!1)}function o0(e,n,r){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return r;let i=-1;for(;++i<n.length;)if(e.includes(n[i]))return!0;return!1}function s0(e,n,r,i){let o=-1;for(;++o<r.unsafe.length;)if(r.unsafe[o].character===`
401
- `&&U5(r.stack,r.unsafe[o]))return/[ \t]/.test(i.before)?"":" ";return`\\
402
- `}function H5(e,n){const r=String(e);let i=r.indexOf(n),o=i,s=0,c=0;if(typeof n!="string")throw new TypeError("Expected substring");for(;i!==-1;)i===o?++s>c&&(c=s):s=1,o=i+n.length,i=r.indexOf(n,o);return c}function F5(e,n){return!!(n.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function q5(e){const n=e.options.fence||"`";if(n!=="`"&&n!=="~")throw new Error("Cannot serialize code with `"+n+"` for `options.fence`, expected `` ` `` or `~`");return n}function V5(e,n,r,i){const o=q5(r),s=e.value||"",c=o==="`"?"GraveAccent":"Tilde";if(F5(e,r)){const y=r.enter("codeIndented"),b=r.indentLines(s,$5);return y(),b}const f=r.createTracker(i),h=o.repeat(Math.max(H5(s,o)+1,3)),d=r.enter("codeFenced");let m=f.move(h);if(e.lang){const y=r.enter(`codeFencedLang${c}`);m+=f.move(r.safe(e.lang,{before:m,after:" ",encode:["`"],...f.current()})),y()}if(e.lang&&e.meta){const y=r.enter(`codeFencedMeta${c}`);m+=f.move(" "),m+=f.move(r.safe(e.meta,{before:m,after:`
403
- `,encode:["`"],...f.current()})),y()}return m+=f.move(`
404
- `),s&&(m+=f.move(s+`
405
- `)),m+=f.move(h),d(),m}function $5(e,n,r){return(r?"":" ")+e}function vm(e){const n=e.options.quote||'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize title with `"+n+"` for `options.quote`, expected `\"`, or `'`");return n}function G5(e,n,r,i){const o=vm(r),s=o==='"'?"Quote":"Apostrophe",c=r.enter("definition");let f=r.enter("label");const h=r.createTracker(i);let d=h.move("[");return d+=h.move(r.safe(r.associationId(e),{before:d,after:"]",...h.current()})),d+=h.move("]: "),f(),!e.url||/[\0- \u007F]/.test(e.url)?(f=r.enter("destinationLiteral"),d+=h.move("<"),d+=h.move(r.safe(e.url,{before:d,after:">",...h.current()})),d+=h.move(">")):(f=r.enter("destinationRaw"),d+=h.move(r.safe(e.url,{before:d,after:e.title?" ":`
406
- `,...h.current()}))),f(),e.title&&(f=r.enter(`title${s}`),d+=h.move(" "+o),d+=h.move(r.safe(e.title,{before:d,after:o,...h.current()})),d+=h.move(o),f()),c(),d}function Y5(e){const n=e.options.emphasis||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize emphasis with `"+n+"` for `options.emphasis`, expected `*`, or `_`");return n}function Lo(e){return"&#x"+e.toString(16).toUpperCase()+";"}function tc(e,n,r){const i=tl(e),o=tl(n);return i===void 0?o===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:i===1?o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}iE.peek=K5;function iE(e,n,r,i){const o=Y5(r),s=r.enter("emphasis"),c=r.createTracker(i),f=c.move(o);let h=c.move(r.containerPhrasing(e,{after:o,before:f,...c.current()}));const d=h.charCodeAt(0),m=tc(i.before.charCodeAt(i.before.length-1),d,o);m.inside&&(h=Lo(d)+h.slice(1));const y=h.charCodeAt(h.length-1),b=tc(i.after.charCodeAt(0),y,o);b.inside&&(h=h.slice(0,-1)+Lo(y));const w=c.move(o);return s(),r.attentionEncodeSurroundingInfo={after:b.outside,before:m.outside},f+h+w}function K5(e,n,r){return r.options.emphasis||"*"}function X5(e,n){let r=!1;return gm(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return r=!0,sp}),!!((!e.depth||e.depth<3)&&um(e)&&(n.options.setext||r))}function Q5(e,n,r,i){const o=Math.max(Math.min(6,e.depth||1),1),s=r.createTracker(i);if(X5(e,r)){const m=r.enter("headingSetext"),y=r.enter("phrasing"),b=r.containerPhrasing(e,{...s.current(),before:`
407
- `,after:`
408
- `});return y(),m(),b+`
409
- `+(o===1?"=":"-").repeat(b.length-(Math.max(b.lastIndexOf("\r"),b.lastIndexOf(`
410
- `))+1))}const c="#".repeat(o),f=r.enter("headingAtx"),h=r.enter("phrasing");s.move(c+" ");let d=r.containerPhrasing(e,{before:"# ",after:`
411
- `,...s.current()});return/^[\t ]/.test(d)&&(d=Lo(d.charCodeAt(0))+d.slice(1)),d=d?c+" "+d:c,r.options.closeAtx&&(d+=" "+c),h(),f(),d}lE.peek=Z5;function lE(e){return e.value||""}function Z5(){return"<"}oE.peek=W5;function oE(e,n,r,i){const o=vm(r),s=o==='"'?"Quote":"Apostrophe",c=r.enter("image");let f=r.enter("label");const h=r.createTracker(i);let d=h.move("![");return d+=h.move(r.safe(e.alt,{before:d,after:"]",...h.current()})),d+=h.move("]("),f(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(f=r.enter("destinationLiteral"),d+=h.move("<"),d+=h.move(r.safe(e.url,{before:d,after:">",...h.current()})),d+=h.move(">")):(f=r.enter("destinationRaw"),d+=h.move(r.safe(e.url,{before:d,after:e.title?" ":")",...h.current()}))),f(),e.title&&(f=r.enter(`title${s}`),d+=h.move(" "+o),d+=h.move(r.safe(e.title,{before:d,after:o,...h.current()})),d+=h.move(o),f()),d+=h.move(")"),c(),d}function W5(){return"!"}sE.peek=J5;function sE(e,n,r,i){const o=e.referenceType,s=r.enter("imageReference");let c=r.enter("label");const f=r.createTracker(i);let h=f.move("![");const d=r.safe(e.alt,{before:h,after:"]",...f.current()});h+=f.move(d+"]["),c();const m=r.stack;r.stack=[],c=r.enter("reference");const y=r.safe(r.associationId(e),{before:h,after:"]",...f.current()});return c(),r.stack=m,s(),o==="full"||!d||d!==y?h+=f.move(y+"]"):o==="shortcut"?h=h.slice(0,-1):h+=f.move("]"),h}function J5(){return"!"}uE.peek=e6;function uE(e,n,r){let i=e.value||"",o="`",s=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(i);)o+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++s<r.unsafe.length;){const c=r.unsafe[s],f=r.compilePattern(c);let h;if(c.atBreak)for(;h=f.exec(i);){let d=h.index;i.charCodeAt(d)===10&&i.charCodeAt(d-1)===13&&d--,i=i.slice(0,d)+" "+i.slice(h.index+1)}}return o+i+o}function e6(){return"`"}function cE(e,n){const r=um(e);return!!(!n.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}fE.peek=t6;function fE(e,n,r,i){const o=vm(r),s=o==='"'?"Quote":"Apostrophe",c=r.createTracker(i);let f,h;if(cE(e,r)){const m=r.stack;r.stack=[],f=r.enter("autolink");let y=c.move("<");return y+=c.move(r.containerPhrasing(e,{before:y,after:">",...c.current()})),y+=c.move(">"),f(),r.stack=m,y}f=r.enter("link"),h=r.enter("label");let d=c.move("[");return d+=c.move(r.containerPhrasing(e,{before:d,after:"](",...c.current()})),d+=c.move("]("),h(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(h=r.enter("destinationLiteral"),d+=c.move("<"),d+=c.move(r.safe(e.url,{before:d,after:">",...c.current()})),d+=c.move(">")):(h=r.enter("destinationRaw"),d+=c.move(r.safe(e.url,{before:d,after:e.title?" ":")",...c.current()}))),h(),e.title&&(h=r.enter(`title${s}`),d+=c.move(" "+o),d+=c.move(r.safe(e.title,{before:d,after:o,...c.current()})),d+=c.move(o),h()),d+=c.move(")"),f(),d}function t6(e,n,r){return cE(e,r)?"<":"["}dE.peek=n6;function dE(e,n,r,i){const o=e.referenceType,s=r.enter("linkReference");let c=r.enter("label");const f=r.createTracker(i);let h=f.move("[");const d=r.containerPhrasing(e,{before:h,after:"]",...f.current()});h+=f.move(d+"]["),c();const m=r.stack;r.stack=[],c=r.enter("reference");const y=r.safe(r.associationId(e),{before:h,after:"]",...f.current()});return c(),r.stack=m,s(),o==="full"||!d||d!==y?h+=f.move(y+"]"):o==="shortcut"?h=h.slice(0,-1):h+=f.move("]"),h}function n6(){return"["}function xm(e){const n=e.options.bullet||"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bullet`, expected `*`, `+`, or `-`");return n}function r6(e){const n=xm(e),r=e.options.bulletOther;if(!r)return n==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===n)throw new Error("Expected `bullet` (`"+n+"`) and `bulletOther` (`"+r+"`) to be different");return r}function a6(e){const n=e.options.bulletOrdered||".";if(n!=="."&&n!==")")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOrdered`, expected `.` or `)`");return n}function hE(e){const n=e.options.rule||"*";if(n!=="*"&&n!=="-"&&n!=="_")throw new Error("Cannot serialize rules with `"+n+"` for `options.rule`, expected `*`, `-`, or `_`");return n}function i6(e,n,r,i){const o=r.enter("list"),s=r.bulletCurrent;let c=e.ordered?a6(r):xm(r);const f=e.ordered?c==="."?")":".":r6(r);let h=n&&r.bulletLastUsed?c===r.bulletLastUsed:!1;if(!e.ordered){const m=e.children?e.children[0]:void 0;if((c==="*"||c==="-")&&m&&(!m.children||!m.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(h=!0),hE(r)===c&&m){let y=-1;for(;++y<e.children.length;){const b=e.children[y];if(b&&b.type==="listItem"&&b.children&&b.children[0]&&b.children[0].type==="thematicBreak"){h=!0;break}}}}h&&(c=f),r.bulletCurrent=c;const d=r.containerFlow(e,i);return r.bulletLastUsed=c,r.bulletCurrent=s,o(),d}function l6(e){const n=e.options.listItemIndent||"one";if(n!=="tab"&&n!=="one"&&n!=="mixed")throw new Error("Cannot serialize items with `"+n+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return n}function o6(e,n,r,i){const o=l6(r);let s=r.bulletCurrent||xm(r);n&&n.type==="list"&&n.ordered&&(s=(typeof n.start=="number"&&n.start>-1?n.start:1)+(r.options.incrementListMarker===!1?0:n.children.indexOf(e))+s);let c=s.length+1;(o==="tab"||o==="mixed"&&(n&&n.type==="list"&&n.spread||e.spread))&&(c=Math.ceil(c/4)*4);const f=r.createTracker(i);f.move(s+" ".repeat(c-s.length)),f.shift(c);const h=r.enter("listItem"),d=r.indentLines(r.containerFlow(e,f.current()),m);return h(),d;function m(y,b,w){return b?(w?"":" ".repeat(c))+y:(w?s:s+" ".repeat(c-s.length))+y}}function s6(e,n,r,i){const o=r.enter("paragraph"),s=r.enter("phrasing"),c=r.containerPhrasing(e,i);return s(),o(),c}const u6=Mc(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function c6(e,n,r,i){return(e.children.some(function(c){return u6(c)})?r.containerPhrasing:r.containerFlow).call(r,e,i)}function f6(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}pE.peek=d6;function pE(e,n,r,i){const o=f6(r),s=r.enter("strong"),c=r.createTracker(i),f=c.move(o+o);let h=c.move(r.containerPhrasing(e,{after:o,before:f,...c.current()}));const d=h.charCodeAt(0),m=tc(i.before.charCodeAt(i.before.length-1),d,o);m.inside&&(h=Lo(d)+h.slice(1));const y=h.charCodeAt(h.length-1),b=tc(i.after.charCodeAt(0),y,o);b.inside&&(h=h.slice(0,-1)+Lo(y));const w=c.move(o+o);return s(),r.attentionEncodeSurroundingInfo={after:b.outside,before:m.outside},f+h+w}function d6(e,n,r){return r.options.strong||"*"}function h6(e,n,r,i){return r.safe(e.value,i)}function p6(e){const n=e.options.ruleRepetition||3;if(n<3)throw new Error("Cannot serialize rules with repetition `"+n+"` for `options.ruleRepetition`, expected `3` or more");return n}function m6(e,n,r){const i=(hE(r)+(r.options.ruleSpaces?" ":"")).repeat(p6(r));return r.options.ruleSpaces?i.slice(0,-1):i}const mE={blockquote:I5,break:s0,code:V5,definition:G5,emphasis:iE,hardBreak:s0,heading:Q5,html:lE,image:oE,imageReference:sE,inlineCode:uE,link:fE,linkReference:dE,list:i6,listItem:o6,paragraph:s6,root:c6,strong:pE,text:h6,thematicBreak:m6};function g6(){return{enter:{table:y6,tableData:u0,tableHeader:u0,tableRow:x6},exit:{codeText:b6,table:v6,tableData:Oh,tableHeader:Oh,tableRow:Oh}}}function y6(e){const n=e._align;this.enter({type:"table",align:n.map(function(r){return r==="none"?null:r}),children:[]},e),this.data.inTable=!0}function v6(e){this.exit(e),this.data.inTable=void 0}function x6(e){this.enter({type:"tableRow",children:[]},e)}function Oh(e){this.exit(e)}function u0(e){this.enter({type:"tableCell",children:[]},e)}function b6(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,w6));const r=this.stack[this.stack.length-1];r.type,r.value=n,this.exit(e)}function w6(e,n){return n==="|"?n:e}function S6(e){const n=e||{},r=n.tableCellPadding,i=n.tablePipeAlign,o=n.stringLength,s=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
412
- `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:b,table:c,tableCell:h,tableRow:f}};function c(w,C,k,T){return d(m(w,k,T),w.align)}function f(w,C,k,T){const A=y(w,k,T),_=d([A]);return _.slice(0,_.indexOf(`
413
- `))}function h(w,C,k,T){const A=k.enter("tableCell"),_=k.enter("phrasing"),N=k.containerPhrasing(w,{...T,before:s,after:s});return _(),A(),N}function d(w,C){return z5(w,{align:C,alignDelimiters:i,padding:r,stringLength:o})}function m(w,C,k){const T=w.children;let A=-1;const _=[],N=C.enter("table");for(;++A<T.length;)_[A]=y(T[A],C,k);return N(),_}function y(w,C,k){const T=w.children;let A=-1;const _=[],N=C.enter("tableRow");for(;++A<T.length;)_[A]=h(T[A],w,C,k);return N(),_}function b(w,C,k){let T=mE.inlineCode(w,C,k);return k.stack.includes("tableCell")&&(T=T.replace(/\|/g,"\\$&")),T}}function E6(){return{exit:{taskListCheckValueChecked:c0,taskListCheckValueUnchecked:c0,paragraph:k6}}}function C6(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:A6}}}function c0(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}function k6(e){const n=this.stack[this.stack.length-2];if(n&&n.type==="listItem"&&typeof n.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const i=r.children[0];if(i&&i.type==="text"){const o=n.children;let s=-1,c;for(;++s<o.length;){const f=o[s];if(f.type==="paragraph"){c=f;break}}c===r&&(i.value=i.value.slice(1),i.value.length===0?r.children.shift():r.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,r.position.start=Object.assign({},i.position.start)))}}this.exit(e)}function A6(e,n,r,i){const o=e.children[0],s=typeof e.checked=="boolean"&&o&&o.type==="paragraph",c="["+(e.checked?"x":" ")+"] ",f=r.createTracker(i);s&&f.move(c);let h=mE.listItem(e,n,r,{...i,...f.current()});return s&&(h=h.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,d)),h;function d(m){return m+c}}function T6(){return[i5(),A5(),N5(),g6(),E6()]}function R6(e){return{extensions:[l5(),T5(e),M5(),S6(e),C6()]}}const _6={tokenize:L6,partial:!0},gE={tokenize:z6,partial:!0},yE={tokenize:P6,partial:!0},vE={tokenize:I6,partial:!0},N6={tokenize:B6,partial:!0},xE={name:"wwwAutolink",tokenize:D6,previous:wE},bE={name:"protocolAutolink",tokenize:O6,previous:SE},Pr={name:"emailAutolink",tokenize:j6,previous:EE},hr={};function M6(){return{text:hr}}let Fa=48;for(;Fa<123;)hr[Fa]=Pr,Fa++,Fa===58?Fa=65:Fa===91&&(Fa=97);hr[43]=Pr;hr[45]=Pr;hr[46]=Pr;hr[95]=Pr;hr[72]=[Pr,bE];hr[104]=[Pr,bE];hr[87]=[Pr,xE];hr[119]=[Pr,xE];function j6(e,n,r){const i=this;let o,s;return c;function c(y){return!dp(y)||!EE.call(i,i.previous)||bm(i.events)?r(y):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),f(y))}function f(y){return dp(y)?(e.consume(y),f):y===64?(e.consume(y),h):r(y)}function h(y){return y===46?e.check(N6,m,d)(y):y===45||y===95||Vt(y)?(s=!0,e.consume(y),h):m(y)}function d(y){return e.consume(y),o=!0,h}function m(y){return s&&o&&Zt(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(y)):r(y)}}function D6(e,n,r){const i=this;return o;function o(c){return c!==87&&c!==119||!wE.call(i,i.previous)||bm(i.events)?r(c):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(_6,e.attempt(gE,e.attempt(yE,s),r),r)(c))}function s(c){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(c)}}function O6(e,n,r){const i=this;let o="",s=!1;return c;function c(y){return(y===72||y===104)&&SE.call(i,i.previous)&&!bm(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(y),e.consume(y),f):r(y)}function f(y){if(Zt(y)&&o.length<5)return o+=String.fromCodePoint(y),e.consume(y),f;if(y===58){const b=o.toLowerCase();if(b==="http"||b==="https")return e.consume(y),h}return r(y)}function h(y){return y===47?(e.consume(y),s?d:(s=!0,h)):r(y)}function d(y){return y===null||Ju(y)||at(y)||Ka(y)||Rc(y)?r(y):e.attempt(gE,e.attempt(yE,m),r)(y)}function m(y){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(y)}}function L6(e,n,r){let i=0;return o;function o(c){return(c===87||c===119)&&i<3?(i++,e.consume(c),o):c===46&&i===3?(e.consume(c),s):r(c)}function s(c){return c===null?r(c):n(c)}}function z6(e,n,r){let i,o,s;return c;function c(d){return d===46||d===95?e.check(vE,h,f)(d):d===null||at(d)||Ka(d)||d!==45&&Rc(d)?h(d):(s=!0,e.consume(d),c)}function f(d){return d===95?i=!0:(o=i,i=void 0),e.consume(d),c}function h(d){return o||i||!s?r(d):n(d)}}function P6(e,n){let r=0,i=0;return o;function o(c){return c===40?(r++,e.consume(c),o):c===41&&i<r?s(c):c===33||c===34||c===38||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===60||c===63||c===93||c===95||c===126?e.check(vE,n,s)(c):c===null||at(c)||Ka(c)?n(c):(e.consume(c),o)}function s(c){return c===41&&i++,e.consume(c),o}}function I6(e,n,r){return i;function i(f){return f===33||f===34||f===39||f===41||f===42||f===44||f===46||f===58||f===59||f===63||f===95||f===126?(e.consume(f),i):f===38?(e.consume(f),s):f===93?(e.consume(f),o):f===60||f===null||at(f)||Ka(f)?n(f):r(f)}function o(f){return f===null||f===40||f===91||at(f)||Ka(f)?n(f):i(f)}function s(f){return Zt(f)?c(f):r(f)}function c(f){return f===59?(e.consume(f),i):Zt(f)?(e.consume(f),c):r(f)}}function B6(e,n,r){return i;function i(s){return e.consume(s),o}function o(s){return Vt(s)?r(s):n(s)}}function wE(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||at(e)}function SE(e){return!Zt(e)}function EE(e){return!(e===47||dp(e))}function dp(e){return e===43||e===45||e===46||e===95||Vt(e)}function bm(e){let n=e.length,r=!1;for(;n--;){const i=e[n][1];if((i.type==="labelLink"||i.type==="labelImage")&&!i._balanced){r=!0;break}if(i._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const U6={tokenize:K6,partial:!0};function H6(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:$6,continuation:{tokenize:G6},exit:Y6}},text:{91:{name:"gfmFootnoteCall",tokenize:V6},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:F6,resolveTo:q6}}}}function F6(e,n,r){const i=this;let o=i.events.length;const s=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let c;for(;o--;){const h=i.events[o][1];if(h.type==="labelImage"){c=h;break}if(h.type==="gfmFootnoteCall"||h.type==="labelLink"||h.type==="label"||h.type==="image"||h.type==="link")break}return f;function f(h){if(!c||!c._balanced)return r(h);const d=Gn(i.sliceSerialize({start:c.end,end:i.now()}));return d.codePointAt(0)!==94||!s.includes(d.slice(1))?r(h):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),n(h))}}function q6(e,n){let r=e.length;for(;r--;)if(e[r][1].type==="labelImage"&&e[r][0]==="enter"){e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},c={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},f=[e[r+1],e[r+2],["enter",i,n],e[r+3],e[r+4],["enter",o,n],["exit",o,n],["enter",s,n],["enter",c,n],["exit",c,n],["exit",s,n],e[e.length-2],e[e.length-1],["exit",i,n]];return e.splice(r,e.length-r+1,...f),e}function V6(e,n,r){const i=this,o=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let s=0,c;return f;function f(y){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(y),e.exit("gfmFootnoteCallLabelMarker"),h}function h(y){return y!==94?r(y):(e.enter("gfmFootnoteCallMarker"),e.consume(y),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",d)}function d(y){if(s>999||y===93&&!c||y===null||y===91||at(y))return r(y);if(y===93){e.exit("chunkString");const b=e.exit("gfmFootnoteCallString");return o.includes(Gn(i.sliceSerialize(b)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(y),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):r(y)}return at(y)||(c=!0),s++,e.consume(y),y===92?m:d}function m(y){return y===91||y===92||y===93?(e.consume(y),s++,d):d(y)}}function $6(e,n,r){const i=this,o=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let s,c=0,f;return h;function h(C){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(C),e.exit("gfmFootnoteDefinitionLabelMarker"),d}function d(C){return C===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(C),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",m):r(C)}function m(C){if(c>999||C===93&&!f||C===null||C===91||at(C))return r(C);if(C===93){e.exit("chunkString");const k=e.exit("gfmFootnoteDefinitionLabelString");return s=Gn(i.sliceSerialize(k)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(C),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),b}return at(C)||(f=!0),c++,e.consume(C),C===92?y:m}function y(C){return C===91||C===92||C===93?(e.consume(C),c++,m):m(C)}function b(C){return C===58?(e.enter("definitionMarker"),e.consume(C),e.exit("definitionMarker"),o.includes(s)||o.push(s),Ve(e,w,"gfmFootnoteDefinitionWhitespace")):r(C)}function w(C){return n(C)}}function G6(e,n,r){return e.check(ts,n,e.attempt(U6,n,r))}function Y6(e){e.exit("gfmFootnoteDefinition")}function K6(e,n,r){const i=this;return Ve(e,o,"gfmFootnoteDefinitionIndent",5);function o(s){const c=i.events[i.events.length-1];return c&&c[1].type==="gfmFootnoteDefinitionIndent"&&c[2].sliceSerialize(c[1],!0).length===4?n(s):r(s)}}function X6(e){let r=(e||{}).singleTilde;const i={name:"strikethrough",tokenize:s,resolveAll:o};return r==null&&(r=!0),{text:{126:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}};function o(c,f){let h=-1;for(;++h<c.length;)if(c[h][0]==="enter"&&c[h][1].type==="strikethroughSequenceTemporary"&&c[h][1]._close){let d=h;for(;d--;)if(c[d][0]==="exit"&&c[d][1].type==="strikethroughSequenceTemporary"&&c[d][1]._open&&c[h][1].end.offset-c[h][1].start.offset===c[d][1].end.offset-c[d][1].start.offset){c[h][1].type="strikethroughSequence",c[d][1].type="strikethroughSequence";const m={type:"strikethrough",start:Object.assign({},c[d][1].start),end:Object.assign({},c[h][1].end)},y={type:"strikethroughText",start:Object.assign({},c[d][1].end),end:Object.assign({},c[h][1].start)},b=[["enter",m,f],["enter",c[d][1],f],["exit",c[d][1],f],["enter",y,f]],w=f.parser.constructs.insideSpan.null;w&&bn(b,b.length,0,_c(w,c.slice(d+1,h),f)),bn(b,b.length,0,[["exit",y,f],["enter",c[h][1],f],["exit",c[h][1],f],["exit",m,f]]),bn(c,d-1,h-d+3,b),h=d+b.length-2;break}}for(h=-1;++h<c.length;)c[h][1].type==="strikethroughSequenceTemporary"&&(c[h][1].type="data");return c}function s(c,f,h){const d=this.previous,m=this.events;let y=0;return b;function b(C){return d===126&&m[m.length-1][1].type!=="characterEscape"?h(C):(c.enter("strikethroughSequenceTemporary"),w(C))}function w(C){const k=tl(d);if(C===126)return y>1?h(C):(c.consume(C),y++,w);if(y<2&&!r)return h(C);const T=c.exit("strikethroughSequenceTemporary"),A=tl(C);return T._open=!A||A===2&&!!k,T._close=!k||k===2&&!!A,f(C)}}}class Q6{constructor(){this.map=[]}add(n,r,i){Z6(this,n,r,i)}consume(n){if(this.map.sort(function(s,c){return s[0]-c[0]}),this.map.length===0)return;let r=this.map.length;const i=[];for(;r>0;)r-=1,i.push(n.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),n.length=this.map[r][0];i.push(n.slice()),n.length=0;let o=i.pop();for(;o;){for(const s of o)n.push(s);o=i.pop()}this.map.length=0}}function Z6(e,n,r,i){let o=0;if(!(r===0&&i.length===0)){for(;o<e.map.length;){if(e.map[o][0]===n){e.map[o][1]+=r,e.map[o][2].push(...i);return}o+=1}e.map.push([n,r,i])}}function W6(e,n){let r=!1;const i=[];for(;n<e.length;){const o=e[n];if(r){if(o[0]==="enter")o[1].type==="tableContent"&&i.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(o[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const s=i.length-1;i[s]=i[s]==="left"?"center":"right"}}else if(o[1].type==="tableDelimiterRow")break}else o[0]==="enter"&&o[1].type==="tableDelimiterRow"&&(r=!0);n+=1}return i}function J6(){return{flow:{null:{name:"table",tokenize:e9,resolveAll:t9}}}}function e9(e,n,r){const i=this;let o=0,s=0,c;return f;function f(P){let ne=i.events.length-1;for(;ne>-1;){const H=i.events[ne][1].type;if(H==="lineEnding"||H==="linePrefix")ne--;else break}const ae=ne>-1?i.events[ne][1].type:null,le=ae==="tableHead"||ae==="tableRow"?j:h;return le===j&&i.parser.lazy[i.now().line]?r(P):le(P)}function h(P){return e.enter("tableHead"),e.enter("tableRow"),d(P)}function d(P){return P===124||(c=!0,s+=1),m(P)}function m(P){return P===null?r(P):Ae(P)?s>1?(s=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),w):r(P):He(P)?Ve(e,m,"whitespace")(P):(s+=1,c&&(c=!1,o+=1),P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),c=!0,m):(e.enter("data"),y(P)))}function y(P){return P===null||P===124||at(P)?(e.exit("data"),m(P)):(e.consume(P),P===92?b:y)}function b(P){return P===92||P===124?(e.consume(P),y):y(P)}function w(P){return i.interrupt=!1,i.parser.lazy[i.now().line]?r(P):(e.enter("tableDelimiterRow"),c=!1,He(P)?Ve(e,C,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):C(P))}function C(P){return P===45||P===58?T(P):P===124?(c=!0,e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),k):z(P)}function k(P){return He(P)?Ve(e,T,"whitespace")(P):T(P)}function T(P){return P===58?(s+=1,c=!0,e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),A):P===45?(s+=1,A(P)):P===null||Ae(P)?O(P):z(P)}function A(P){return P===45?(e.enter("tableDelimiterFiller"),_(P)):z(P)}function _(P){return P===45?(e.consume(P),_):P===58?(c=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),N):(e.exit("tableDelimiterFiller"),N(P))}function N(P){return He(P)?Ve(e,O,"whitespace")(P):O(P)}function O(P){return P===124?C(P):P===null||Ae(P)?!c||o!==s?z(P):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(P)):z(P)}function z(P){return r(P)}function j(P){return e.enter("tableRow"),$(P)}function $(P){return P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),$):P===null||Ae(P)?(e.exit("tableRow"),n(P)):He(P)?Ve(e,$,"whitespace")(P):(e.enter("data"),G(P))}function G(P){return P===null||P===124||at(P)?(e.exit("data"),$(P)):(e.consume(P),P===92?ee:G)}function ee(P){return P===92||P===124?(e.consume(P),G):G(P)}}function t9(e,n){let r=-1,i=!0,o=0,s=[0,0,0,0],c=[0,0,0,0],f=!1,h=0,d,m,y;const b=new Q6;for(;++r<e.length;){const w=e[r],C=w[1];w[0]==="enter"?C.type==="tableHead"?(f=!1,h!==0&&(f0(b,n,h,d,m),m=void 0,h=0),d={type:"table",start:Object.assign({},C.start),end:Object.assign({},C.end)},b.add(r,0,[["enter",d,n]])):C.type==="tableRow"||C.type==="tableDelimiterRow"?(i=!0,y=void 0,s=[0,0,0,0],c=[0,r+1,0,0],f&&(f=!1,m={type:"tableBody",start:Object.assign({},C.start),end:Object.assign({},C.end)},b.add(r,0,[["enter",m,n]])),o=C.type==="tableDelimiterRow"?2:m?3:1):o&&(C.type==="data"||C.type==="tableDelimiterMarker"||C.type==="tableDelimiterFiller")?(i=!1,c[2]===0&&(s[1]!==0&&(c[0]=c[1],y=ju(b,n,s,o,void 0,y),s=[0,0,0,0]),c[2]=r)):C.type==="tableCellDivider"&&(i?i=!1:(s[1]!==0&&(c[0]=c[1],y=ju(b,n,s,o,void 0,y)),s=c,c=[s[1],r,0,0])):C.type==="tableHead"?(f=!0,h=r):C.type==="tableRow"||C.type==="tableDelimiterRow"?(h=r,s[1]!==0?(c[0]=c[1],y=ju(b,n,s,o,r,y)):c[1]!==0&&(y=ju(b,n,c,o,r,y)),o=0):o&&(C.type==="data"||C.type==="tableDelimiterMarker"||C.type==="tableDelimiterFiller")&&(c[3]=r)}for(h!==0&&f0(b,n,h,d,m),b.consume(n.events),r=-1;++r<n.events.length;){const w=n.events[r];w[0]==="enter"&&w[1].type==="table"&&(w[1]._align=W6(n.events,r))}return e}function ju(e,n,r,i,o,s){const c=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",f="tableContent";r[0]!==0&&(s.end=Object.assign({},Gi(n.events,r[0])),e.add(r[0],0,[["exit",s,n]]));const h=Gi(n.events,r[1]);if(s={type:c,start:Object.assign({},h),end:Object.assign({},h)},e.add(r[1],0,[["enter",s,n]]),r[2]!==0){const d=Gi(n.events,r[2]),m=Gi(n.events,r[3]),y={type:f,start:Object.assign({},d),end:Object.assign({},m)};if(e.add(r[2],0,[["enter",y,n]]),i!==2){const b=n.events[r[2]],w=n.events[r[3]];if(b[1].end=Object.assign({},w[1].end),b[1].type="chunkText",b[1].contentType="text",r[3]>r[2]+1){const C=r[2]+1,k=r[3]-r[2]-1;e.add(C,k,[])}}e.add(r[3]+1,0,[["exit",y,n]])}return o!==void 0&&(s.end=Object.assign({},Gi(n.events,o)),e.add(o,0,[["exit",s,n]]),s=void 0),s}function f0(e,n,r,i,o){const s=[],c=Gi(n.events,r);o&&(o.end=Object.assign({},c),s.push(["exit",o,n])),i.end=Object.assign({},c),s.push(["exit",i,n]),e.add(r+1,0,s)}function Gi(e,n){const r=e[n],i=r[0]==="enter"?"start":"end";return r[1][i]}const n9={name:"tasklistCheck",tokenize:a9};function r9(){return{text:{91:n9}}}function a9(e,n,r){const i=this;return o;function o(h){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?r(h):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(h),e.exit("taskListCheckMarker"),s)}function s(h){return at(h)?(e.enter("taskListCheckValueUnchecked"),e.consume(h),e.exit("taskListCheckValueUnchecked"),c):h===88||h===120?(e.enter("taskListCheckValueChecked"),e.consume(h),e.exit("taskListCheckValueChecked"),c):r(h)}function c(h){return h===93?(e.enter("taskListCheckMarker"),e.consume(h),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),f):r(h)}function f(h){return Ae(h)?n(h):He(h)?e.check({tokenize:i9},n,r)(h):r(h)}}function i9(e,n,r){return Ve(e,i,"whitespace");function i(o){return o===null?r(o):n(o)}}function l9(e){return OS([M6(),H6(),X6(e),J6(),r9()])}const o9={};function s9(e){const n=this,r=e||o9,i=n.data(),o=i.micromarkExtensions||(i.micromarkExtensions=[]),s=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),c=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);o.push(l9(r)),s.push(T6()),c.push(R6(r))}const qa=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],d0={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...qa,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...qa],h2:[["className","sr-only"]],img:[...qa,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...qa,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...qa],table:[...qa],ul:[...qa,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},ma={}.hasOwnProperty;function u9(e,n){let r={type:"root",children:[]};const i={schema:n?{...d0,...n}:d0,stack:[]},o=CE(i,e);return o&&(Array.isArray(o)?o.length===1?r=o[0]:r.children=o:r=o),r}function CE(e,n){if(n&&typeof n=="object"){const r=n;switch(typeof r.type=="string"?r.type:""){case"comment":return c9(e,r);case"doctype":return f9(e,r);case"element":return d9(e,r);case"root":return h9(e,r);case"text":return p9(e,r)}}}function c9(e,n){if(e.schema.allowComments){const r=typeof n.value=="string"?n.value:"",i=r.indexOf("-->"),s={type:"comment",value:i<0?r:r.slice(0,i)};return rs(s,n),s}}function f9(e,n){if(e.schema.allowDoctypes){const r={type:"doctype"};return rs(r,n),r}}function d9(e,n){const r=typeof n.tagName=="string"?n.tagName:"";e.stack.push(r);const i=kE(e,n.children),o=m9(e,n.properties);e.stack.pop();let s=!1;if(r&&r!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(r))&&(s=!0,e.schema.ancestors&&ma.call(e.schema.ancestors,r))){const f=e.schema.ancestors[r];let h=-1;for(s=!1;++h<f.length;)e.stack.includes(f[h])&&(s=!0)}if(!s)return e.schema.strip&&!e.schema.strip.includes(r)?i:void 0;const c={type:"element",tagName:r,properties:o,children:i};return rs(c,n),c}function h9(e,n){const i={type:"root",children:kE(e,n.children)};return rs(i,n),i}function p9(e,n){const i={type:"text",value:typeof n.value=="string"?n.value:""};return rs(i,n),i}function kE(e,n){const r=[];if(Array.isArray(n)){const i=n;let o=-1;for(;++o<i.length;){const s=CE(e,i[o]);s&&(Array.isArray(s)?r.push(...s):r.push(s))}}return r}function m9(e,n){const r=e.stack[e.stack.length-1],i=e.schema.attributes,o=e.schema.required,s=i&&ma.call(i,r)?i[r]:void 0,c=i&&ma.call(i,"*")?i["*"]:void 0,f=n&&typeof n=="object"?n:{},h={};let d;for(d in f)if(ma.call(f,d)){const m=f[d];let y=h0(e,p0(s,d),d,m);y==null&&(y=h0(e,p0(c,d),d,m)),y!=null&&(h[d]=y)}if(o&&ma.call(o,r)){const m=o[r];for(d in m)ma.call(m,d)&&!ma.call(h,d)&&(h[d]=m[d])}return h}function h0(e,n,r,i){return n?Array.isArray(i)?g9(e,n,r,i):AE(e,n,r,i):void 0}function g9(e,n,r,i){let o=-1;const s=[];for(;++o<i.length;){const c=AE(e,n,r,i[o]);(typeof c=="number"||typeof c=="string")&&s.push(c)}return s}function AE(e,n,r,i){if(!(typeof i!="boolean"&&typeof i!="number"&&typeof i!="string")&&y9(e,r,i)){if(typeof n=="object"&&n.length>1){let o=!1,s=0;for(;++s<n.length;){const c=n[s];if(c&&typeof c=="object"&&"flags"in c){if(c.test(String(i))){o=!0;break}}else if(c===i){o=!0;break}}if(!o)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(r)?e.schema.clobberPrefix+i:i}}function y9(e,n,r){const i=e.schema.protocols&&ma.call(e.schema.protocols,n)?e.schema.protocols[n]:void 0;if(!i||i.length===0)return!0;const o=String(r),s=o.indexOf(":"),c=o.indexOf("?"),f=o.indexOf("#"),h=o.indexOf("/");if(s<0||h>-1&&s>h||c>-1&&s>c||f>-1&&s>f)return!0;let d=-1;for(;++d<i.length;){const m=i[d];if(s===m.length&&o.slice(0,m.length)===m)return!0}return!1}function rs(e,n){const r=RS(n);n.data&&(e.data=Oo(n.data)),r&&(e.position=r)}function p0(e,n){let r,i=-1;if(e)for(;++i<e.length;){const o=e[i],s=typeof o=="string"?o:o[0];if(s===n)return o;s==="data*"&&(r=o)}if(n.length>4&&n.slice(0,4).toLowerCase()==="data")return r}function v9(e){return function(n){return u9(n,e)}}const as=x.forwardRef(({children:e,className:n,...r},i)=>g.jsx("div",{ref:i,className:fe("prose prose-sm max-w-none dark:prose-invert","prose-headings:font-semibold prose-headings:text-foreground","prose-h1:text-2xl prose-h1:mb-4 prose-h1:mt-6 first:prose-h1:mt-0","prose-h2:text-xl prose-h2:mb-3 prose-h2:mt-5","prose-h3:text-lg prose-h3:mb-2 prose-h3:mt-4","prose-p:text-sm prose-p:leading-relaxed prose-p:text-foreground prose-p:mb-4","prose-code:text-xs prose-code:bg-muted prose-code:px-1.5 prose-code:py-0.5 prose-code:rounded prose-code:text-foreground","prose-pre:bg-muted prose-pre:text-sm prose-pre:p-4 prose-pre:rounded-lg prose-pre:overflow-x-auto","prose-blockquote:border-l-4 prose-blockquote:border-muted-foreground prose-blockquote:pl-4 prose-blockquote:italic prose-blockquote:text-muted-foreground","prose-ul:text-sm prose-ul:mb-4 prose-ul:list-disc prose-ul:pl-6","prose-ol:text-sm prose-ol:mb-4 prose-ol:list-decimal prose-ol:pl-6","prose-li:text-sm prose-li:leading-relaxed prose-li:text-foreground prose-li:mb-1 prose-li:marker:text-muted-foreground","prose-table:text-sm prose-table:border-collapse prose-table:w-full","prose-th:text-xs prose-th:font-semibold prose-th:text-muted-foreground prose-th:border prose-th:border-border prose-th:p-2 prose-th:bg-muted/50","prose-td:text-sm prose-td:border prose-td:border-border prose-td:p-2","prose-strong:text-foreground prose-strong:font-semibold","prose-em:text-foreground prose-em:italic","prose-hr:border-border prose-hr:my-6",n),...r,children:g.jsx(XP,{remarkPlugins:[s9],rehypePlugins:[v9],components:{input:({type:o,checked:s,...c})=>o==="checkbox"?g.jsx("input",{type:"checkbox",checked:s,disabled:!0,className:"mr-2 h-4 w-4 rounded border-2 border-muted-foreground bg-background accent-primary flex-shrink-0 mt-0.5",...c}):g.jsx("input",{type:o,...c}),li:({children:o,...s})=>x.Children.toArray(o).some(f=>x.isValidElement(f)&&f.props&&f.props.type==="checkbox")?g.jsx("li",{className:"flex items-start gap-1 list-none pl-0",...s,children:o}):g.jsx("li",{...s,children:o}),a:({href:o,children:s,...c})=>g.jsx("a",{href:o,className:"text-primary hover:underline",target:"_blank",rel:"noopener noreferrer",...c,children:s}),img:({src:o,alt:s,...c})=>{let f=o;return o?.startsWith("../images/")&&(f=`/api/v1/context/images/${o.replace("../images/","")}`),g.jsx("img",{src:f,alt:s||"",className:"max-w-full h-auto rounded-lg",loading:"lazy",...c})}},children:e})}));as.displayName="MarkdownViewer";var TE="AlertDialog",[x9,KB]=Qn(TE,[nw]),Ir=nw(),RE=e=>{const{__scopeAlertDialog:n,...r}=e,i=Ir(n);return g.jsx(Fp,{...i,...r,modal:!0})};RE.displayName=TE;var b9="AlertDialogTrigger",_E=x.forwardRef((e,n)=>{const{__scopeAlertDialog:r,...i}=e,o=Ir(r);return g.jsx(vw,{...o,...i,ref:n})});_E.displayName=b9;var w9="AlertDialogPortal",NE=e=>{const{__scopeAlertDialog:n,...r}=e,i=Ir(n);return g.jsx(qp,{...i,...r})};NE.displayName=w9;var S9="AlertDialogOverlay",ME=x.forwardRef((e,n)=>{const{__scopeAlertDialog:r,...i}=e,o=Ir(r);return g.jsx($o,{...o,...i,ref:n})});ME.displayName=S9;var Zi="AlertDialogContent",[E9,C9]=x9(Zi),k9=Q0("AlertDialogContent"),jE=x.forwardRef((e,n)=>{const{__scopeAlertDialog:r,children:i,...o}=e,s=Ir(r),c=x.useRef(null),f=Xe(n,c),h=x.useRef(null);return g.jsx(ED,{contentName:Zi,titleName:DE,docsSlug:"alert-dialog",children:g.jsx(E9,{scope:r,cancelRef:h,children:g.jsxs(Go,{role:"alertdialog",...s,...o,ref:f,onOpenAutoFocus:me(o.onOpenAutoFocus,d=>{d.preventDefault(),h.current?.focus({preventScroll:!0})}),onPointerDownOutside:d=>d.preventDefault(),onInteractOutside:d=>d.preventDefault(),children:[g.jsx(k9,{children:i}),g.jsx(T9,{contentRef:c})]})})})});jE.displayName=Zi;var DE="AlertDialogTitle",OE=x.forwardRef((e,n)=>{const{__scopeAlertDialog:r,...i}=e,o=Ir(r);return g.jsx(Yo,{...o,...i,ref:n})});OE.displayName=DE;var LE="AlertDialogDescription",zE=x.forwardRef((e,n)=>{const{__scopeAlertDialog:r,...i}=e,o=Ir(r);return g.jsx(Ko,{...o,...i,ref:n})});zE.displayName=LE;var A9="AlertDialogAction",PE=x.forwardRef((e,n)=>{const{__scopeAlertDialog:r,...i}=e,o=Ir(r);return g.jsx(vc,{...o,...i,ref:n})});PE.displayName=A9;var IE="AlertDialogCancel",BE=x.forwardRef((e,n)=>{const{__scopeAlertDialog:r,...i}=e,{cancelRef:o}=C9(IE,r),s=Ir(r),c=Xe(n,o);return g.jsx(vc,{...s,...i,ref:c})});BE.displayName=IE;var T9=({contentRef:e})=>{const n=`\`${Zi}\` requires a description for the component to be accessible for screen reader users.
414
-
415
- You can add a description to the \`${Zi}\` by passing a \`${LE}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
416
-
417
- Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${Zi}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
418
-
419
- For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return x.useEffect(()=>{document.getElementById(e.current?.getAttribute("aria-describedby"))||console.warn(n)},[n,e]),null},R9=RE,_9=_E,N9=NE,UE=ME,HE=jE,FE=PE,qE=BE,VE=OE,$E=zE;const M9=R9,j9=_9,D9=N9,GE=x.forwardRef(({className:e,...n},r)=>g.jsx(UE,{className:fe("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...n,ref:r}));GE.displayName=UE.displayName;const YE=x.forwardRef(({className:e,...n},r)=>g.jsxs(D9,{children:[g.jsx(GE,{}),g.jsx(HE,{ref:r,className:fe("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n})]}));YE.displayName=HE.displayName;const KE=({className:e,...n})=>g.jsx("div",{className:fe("flex flex-col space-y-2 text-center sm:text-left",e),...n});KE.displayName="AlertDialogHeader";const XE=({className:e,...n})=>g.jsx("div",{className:fe("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...n});XE.displayName="AlertDialogFooter";const QE=x.forwardRef(({className:e,...n},r)=>g.jsx(VE,{ref:r,className:fe("text-lg font-semibold",e),...n}));QE.displayName=VE.displayName;const ZE=x.forwardRef(({className:e,...n},r)=>g.jsx($E,{ref:r,className:fe("text-sm text-muted-foreground",e),...n}));ZE.displayName=$E.displayName;const WE=x.forwardRef(({className:e,...n},r)=>g.jsx(FE,{ref:r,className:fe(zp(),e),...n}));WE.displayName=FE.displayName;const JE=x.forwardRef(({className:e,...n},r)=>g.jsx(qE,{ref:r,className:fe(zp({variant:"outline"}),"mt-2 sm:mt-0",e),...n}));JE.displayName=qE.displayName;function O9(e){const n=x.useRef({value:e,previous:e});return x.useMemo(()=>(n.current.value!==e&&(n.current.previous=n.current.value,n.current.value=e),n.current.previous),[e])}var Dc="Checkbox",[L9,XB]=Qn(Dc),[z9,wm]=L9(Dc);function P9(e){const{__scopeCheckbox:n,checked:r,children:i,defaultChecked:o,disabled:s,form:c,name:f,onCheckedChange:h,required:d,value:m="on",internal_do_not_use_render:y}=e,[b,w]=ol({prop:r,defaultProp:o??!1,onChange:h,caller:Dc}),[C,k]=x.useState(null),[T,A]=x.useState(null),_=x.useRef(!1),N=C?!!c||!!C.closest("form"):!0,O={checked:b,disabled:s,setChecked:w,control:C,setControl:k,name:f,form:c,value:m,hasConsumerStoppedPropagationRef:_,required:d,defaultChecked:ga(o)?!1:o,isFormControl:N,bubbleInput:T,setBubbleInput:A};return g.jsx(z9,{scope:n,...O,children:I9(y)?y(O):i})}var eC="CheckboxTrigger",tC=x.forwardRef(({__scopeCheckbox:e,onKeyDown:n,onClick:r,...i},o)=>{const{control:s,value:c,disabled:f,checked:h,required:d,setControl:m,setChecked:y,hasConsumerStoppedPropagationRef:b,isFormControl:w,bubbleInput:C}=wm(eC,e),k=Xe(o,m),T=x.useRef(h);return x.useEffect(()=>{const A=s?.form;if(A){const _=()=>y(T.current);return A.addEventListener("reset",_),()=>A.removeEventListener("reset",_)}},[s,y]),g.jsx(Fe.button,{type:"button",role:"checkbox","aria-checked":ga(h)?"mixed":h,"aria-required":d,"data-state":lC(h),"data-disabled":f?"":void 0,disabled:f,value:c,...i,ref:k,onKeyDown:me(n,A=>{A.key==="Enter"&&A.preventDefault()}),onClick:me(r,A=>{y(_=>ga(_)?!0:!_),C&&w&&(b.current=A.isPropagationStopped(),b.current||A.stopPropagation())})})});tC.displayName=eC;var Sm=x.forwardRef((e,n)=>{const{__scopeCheckbox:r,name:i,checked:o,defaultChecked:s,required:c,disabled:f,value:h,onCheckedChange:d,form:m,...y}=e;return g.jsx(P9,{__scopeCheckbox:r,checked:o,defaultChecked:s,disabled:f,required:c,onCheckedChange:d,name:i,form:m,value:h,internal_do_not_use_render:({isFormControl:b})=>g.jsxs(g.Fragment,{children:[g.jsx(tC,{...y,ref:n,__scopeCheckbox:r}),b&&g.jsx(iC,{__scopeCheckbox:r})]})})});Sm.displayName=Dc;var nC="CheckboxIndicator",rC=x.forwardRef((e,n)=>{const{__scopeCheckbox:r,forceMount:i,...o}=e,s=wm(nC,r);return g.jsx($t,{present:i||ga(s.checked)||s.checked===!0,children:g.jsx(Fe.span,{"data-state":lC(s.checked),"data-disabled":s.disabled?"":void 0,...o,ref:n,style:{pointerEvents:"none",...e.style}})})});rC.displayName=nC;var aC="CheckboxBubbleInput",iC=x.forwardRef(({__scopeCheckbox:e,...n},r)=>{const{control:i,hasConsumerStoppedPropagationRef:o,checked:s,defaultChecked:c,required:f,disabled:h,name:d,value:m,form:y,bubbleInput:b,setBubbleInput:w}=wm(aC,e),C=Xe(r,w),k=O9(s),T=Ow(i);x.useEffect(()=>{const _=b;if(!_)return;const N=window.HTMLInputElement.prototype,z=Object.getOwnPropertyDescriptor(N,"checked").set,j=!o.current;if(k!==s&&z){const $=new Event("click",{bubbles:j});_.indeterminate=ga(s),z.call(_,ga(s)?!1:s),_.dispatchEvent($)}},[b,k,s,o]);const A=x.useRef(ga(s)?!1:s);return g.jsx(Fe.input,{type:"checkbox","aria-hidden":!0,defaultChecked:c??A.current,required:f,disabled:h,name:d,value:m,form:y,...n,tabIndex:-1,ref:C,style:{...n.style,...T,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});iC.displayName=aC;function I9(e){return typeof e=="function"}function ga(e){return e==="indeterminate"}function lC(e){return ga(e)?"indeterminate":e?"checked":"unchecked"}const Vu=x.forwardRef(({className:e,...n},r)=>g.jsx(Sm,{ref:r,className:fe("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...n,children:g.jsx(rC,{className:fe("flex items-center justify-center text-current"),children:g.jsx(Op,{className:"h-4 w-4"})})}));Vu.displayName=Sm.displayName;var B9=x.createContext(void 0);function Em(e){const n=x.useContext(B9);return e||n||"ltr"}function U9(e,[n,r]){return Math.min(r,Math.max(n,e))}function H9(e,n){return x.useReducer((r,i)=>n[r][i]??r,e)}var Cm="ScrollArea",[oC,QB]=Qn(Cm),[F9,zn]=oC(Cm),sC=x.forwardRef((e,n)=>{const{__scopeScrollArea:r,type:i="hover",dir:o,scrollHideDelay:s=600,...c}=e,[f,h]=x.useState(null),[d,m]=x.useState(null),[y,b]=x.useState(null),[w,C]=x.useState(null),[k,T]=x.useState(null),[A,_]=x.useState(0),[N,O]=x.useState(0),[z,j]=x.useState(!1),[$,G]=x.useState(!1),ee=Xe(n,ne=>h(ne)),P=Em(o);return g.jsx(F9,{scope:r,type:i,dir:P,scrollHideDelay:s,scrollArea:f,viewport:d,onViewportChange:m,content:y,onContentChange:b,scrollbarX:w,onScrollbarXChange:C,scrollbarXEnabled:z,onScrollbarXEnabledChange:j,scrollbarY:k,onScrollbarYChange:T,scrollbarYEnabled:$,onScrollbarYEnabledChange:G,onCornerWidthChange:_,onCornerHeightChange:O,children:g.jsx(Fe.div,{dir:P,...c,ref:ee,style:{position:"relative","--radix-scroll-area-corner-width":A+"px","--radix-scroll-area-corner-height":N+"px",...e.style}})})});sC.displayName=Cm;var uC="ScrollAreaViewport",cC=x.forwardRef((e,n)=>{const{__scopeScrollArea:r,children:i,nonce:o,...s}=e,c=zn(uC,r),f=x.useRef(null),h=Xe(n,f,c.onViewportChange);return g.jsxs(g.Fragment,{children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),g.jsx(Fe.div,{"data-radix-scroll-area-viewport":"",...s,ref:h,style:{overflowX:c.scrollbarXEnabled?"scroll":"hidden",overflowY:c.scrollbarYEnabled?"scroll":"hidden",...e.style},children:g.jsx("div",{ref:c.onContentChange,style:{minWidth:"100%",display:"table"},children:i})})]})});cC.displayName=uC;var pr="ScrollAreaScrollbar",km=x.forwardRef((e,n)=>{const{forceMount:r,...i}=e,o=zn(pr,e.__scopeScrollArea),{onScrollbarXEnabledChange:s,onScrollbarYEnabledChange:c}=o,f=e.orientation==="horizontal";return x.useEffect(()=>(f?s(!0):c(!0),()=>{f?s(!1):c(!1)}),[f,s,c]),o.type==="hover"?g.jsx(q9,{...i,ref:n,forceMount:r}):o.type==="scroll"?g.jsx(V9,{...i,ref:n,forceMount:r}):o.type==="auto"?g.jsx(fC,{...i,ref:n,forceMount:r}):o.type==="always"?g.jsx(Am,{...i,ref:n}):null});km.displayName=pr;var q9=x.forwardRef((e,n)=>{const{forceMount:r,...i}=e,o=zn(pr,e.__scopeScrollArea),[s,c]=x.useState(!1);return x.useEffect(()=>{const f=o.scrollArea;let h=0;if(f){const d=()=>{window.clearTimeout(h),c(!0)},m=()=>{h=window.setTimeout(()=>c(!1),o.scrollHideDelay)};return f.addEventListener("pointerenter",d),f.addEventListener("pointerleave",m),()=>{window.clearTimeout(h),f.removeEventListener("pointerenter",d),f.removeEventListener("pointerleave",m)}}},[o.scrollArea,o.scrollHideDelay]),g.jsx($t,{present:r||s,children:g.jsx(fC,{"data-state":s?"visible":"hidden",...i,ref:n})})}),V9=x.forwardRef((e,n)=>{const{forceMount:r,...i}=e,o=zn(pr,e.__scopeScrollArea),s=e.orientation==="horizontal",c=Lc(()=>h("SCROLL_END"),100),[f,h]=H9("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return x.useEffect(()=>{if(f==="idle"){const d=window.setTimeout(()=>h("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(d)}},[f,o.scrollHideDelay,h]),x.useEffect(()=>{const d=o.viewport,m=s?"scrollLeft":"scrollTop";if(d){let y=d[m];const b=()=>{const w=d[m];y!==w&&(h("SCROLL"),c()),y=w};return d.addEventListener("scroll",b),()=>d.removeEventListener("scroll",b)}},[o.viewport,s,h,c]),g.jsx($t,{present:r||f!=="hidden",children:g.jsx(Am,{"data-state":f==="hidden"?"hidden":"visible",...i,ref:n,onPointerEnter:me(e.onPointerEnter,()=>h("POINTER_ENTER")),onPointerLeave:me(e.onPointerLeave,()=>h("POINTER_LEAVE"))})})}),fC=x.forwardRef((e,n)=>{const r=zn(pr,e.__scopeScrollArea),{forceMount:i,...o}=e,[s,c]=x.useState(!1),f=e.orientation==="horizontal",h=Lc(()=>{if(r.viewport){const d=r.viewport.offsetWidth<r.viewport.scrollWidth,m=r.viewport.offsetHeight<r.viewport.scrollHeight;c(f?d:m)}},10);return nl(r.viewport,h),nl(r.content,h),g.jsx($t,{present:i||s,children:g.jsx(Am,{"data-state":s?"visible":"hidden",...o,ref:n})})}),Am=x.forwardRef((e,n)=>{const{orientation:r="vertical",...i}=e,o=zn(pr,e.__scopeScrollArea),s=x.useRef(null),c=x.useRef(0),[f,h]=x.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),d=gC(f.viewport,f.content),m={...i,sizes:f,onSizesChange:h,hasThumb:d>0&&d<1,onThumbChange:b=>s.current=b,onThumbPointerUp:()=>c.current=0,onThumbPointerDown:b=>c.current=b};function y(b,w){return Q9(b,c.current,f,w)}return r==="horizontal"?g.jsx($9,{...m,ref:n,onThumbPositionChange:()=>{if(o.viewport&&s.current){const b=o.viewport.scrollLeft,w=m0(b,f,o.dir);s.current.style.transform=`translate3d(${w}px, 0, 0)`}},onWheelScroll:b=>{o.viewport&&(o.viewport.scrollLeft=b)},onDragScroll:b=>{o.viewport&&(o.viewport.scrollLeft=y(b,o.dir))}}):r==="vertical"?g.jsx(G9,{...m,ref:n,onThumbPositionChange:()=>{if(o.viewport&&s.current){const b=o.viewport.scrollTop,w=m0(b,f);s.current.style.transform=`translate3d(0, ${w}px, 0)`}},onWheelScroll:b=>{o.viewport&&(o.viewport.scrollTop=b)},onDragScroll:b=>{o.viewport&&(o.viewport.scrollTop=y(b))}}):null}),$9=x.forwardRef((e,n)=>{const{sizes:r,onSizesChange:i,...o}=e,s=zn(pr,e.__scopeScrollArea),[c,f]=x.useState(),h=x.useRef(null),d=Xe(n,h,s.onScrollbarXChange);return x.useEffect(()=>{h.current&&f(getComputedStyle(h.current))},[h]),g.jsx(hC,{"data-orientation":"horizontal",...o,ref:d,sizes:r,style:{bottom:0,left:s.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:s.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Oc(r)+"px",...e.style},onThumbPointerDown:m=>e.onThumbPointerDown(m.x),onDragScroll:m=>e.onDragScroll(m.x),onWheelScroll:(m,y)=>{if(s.viewport){const b=s.viewport.scrollLeft+m.deltaX;e.onWheelScroll(b),vC(b,y)&&m.preventDefault()}},onResize:()=>{h.current&&s.viewport&&c&&i({content:s.viewport.scrollWidth,viewport:s.viewport.offsetWidth,scrollbar:{size:h.current.clientWidth,paddingStart:rc(c.paddingLeft),paddingEnd:rc(c.paddingRight)}})}})}),G9=x.forwardRef((e,n)=>{const{sizes:r,onSizesChange:i,...o}=e,s=zn(pr,e.__scopeScrollArea),[c,f]=x.useState(),h=x.useRef(null),d=Xe(n,h,s.onScrollbarYChange);return x.useEffect(()=>{h.current&&f(getComputedStyle(h.current))},[h]),g.jsx(hC,{"data-orientation":"vertical",...o,ref:d,sizes:r,style:{top:0,right:s.dir==="ltr"?0:void 0,left:s.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Oc(r)+"px",...e.style},onThumbPointerDown:m=>e.onThumbPointerDown(m.y),onDragScroll:m=>e.onDragScroll(m.y),onWheelScroll:(m,y)=>{if(s.viewport){const b=s.viewport.scrollTop+m.deltaY;e.onWheelScroll(b),vC(b,y)&&m.preventDefault()}},onResize:()=>{h.current&&s.viewport&&c&&i({content:s.viewport.scrollHeight,viewport:s.viewport.offsetHeight,scrollbar:{size:h.current.clientHeight,paddingStart:rc(c.paddingTop),paddingEnd:rc(c.paddingBottom)}})}})}),[Y9,dC]=oC(pr),hC=x.forwardRef((e,n)=>{const{__scopeScrollArea:r,sizes:i,hasThumb:o,onThumbChange:s,onThumbPointerUp:c,onThumbPointerDown:f,onThumbPositionChange:h,onDragScroll:d,onWheelScroll:m,onResize:y,...b}=e,w=zn(pr,r),[C,k]=x.useState(null),T=Xe(n,ee=>k(ee)),A=x.useRef(null),_=x.useRef(""),N=w.viewport,O=i.content-i.viewport,z=Ct(m),j=Ct(h),$=Lc(y,10);function G(ee){if(A.current){const P=ee.clientX-A.current.left,ne=ee.clientY-A.current.top;d({x:P,y:ne})}}return x.useEffect(()=>{const ee=P=>{const ne=P.target;C?.contains(ne)&&z(P,O)};return document.addEventListener("wheel",ee,{passive:!1}),()=>document.removeEventListener("wheel",ee,{passive:!1})},[N,C,O,z]),x.useEffect(j,[i,j]),nl(C,$),nl(w.content,$),g.jsx(Y9,{scope:r,scrollbar:C,hasThumb:o,onThumbChange:Ct(s),onThumbPointerUp:Ct(c),onThumbPositionChange:j,onThumbPointerDown:Ct(f),children:g.jsx(Fe.div,{...b,ref:T,style:{position:"absolute",...b.style},onPointerDown:me(e.onPointerDown,ee=>{ee.button===0&&(ee.target.setPointerCapture(ee.pointerId),A.current=C.getBoundingClientRect(),_.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",w.viewport&&(w.viewport.style.scrollBehavior="auto"),G(ee))}),onPointerMove:me(e.onPointerMove,G),onPointerUp:me(e.onPointerUp,ee=>{const P=ee.target;P.hasPointerCapture(ee.pointerId)&&P.releasePointerCapture(ee.pointerId),document.body.style.webkitUserSelect=_.current,w.viewport&&(w.viewport.style.scrollBehavior=""),A.current=null})})})}),nc="ScrollAreaThumb",pC=x.forwardRef((e,n)=>{const{forceMount:r,...i}=e,o=dC(nc,e.__scopeScrollArea);return g.jsx($t,{present:r||o.hasThumb,children:g.jsx(K9,{ref:n,...i})})}),K9=x.forwardRef((e,n)=>{const{__scopeScrollArea:r,style:i,...o}=e,s=zn(nc,r),c=dC(nc,r),{onThumbPositionChange:f}=c,h=Xe(n,y=>c.onThumbChange(y)),d=x.useRef(void 0),m=Lc(()=>{d.current&&(d.current(),d.current=void 0)},100);return x.useEffect(()=>{const y=s.viewport;if(y){const b=()=>{if(m(),!d.current){const w=Z9(y,f);d.current=w,f()}};return f(),y.addEventListener("scroll",b),()=>y.removeEventListener("scroll",b)}},[s.viewport,m,f]),g.jsx(Fe.div,{"data-state":c.hasThumb?"visible":"hidden",...o,ref:h,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...i},onPointerDownCapture:me(e.onPointerDownCapture,y=>{const w=y.target.getBoundingClientRect(),C=y.clientX-w.left,k=y.clientY-w.top;c.onThumbPointerDown({x:C,y:k})}),onPointerUp:me(e.onPointerUp,c.onThumbPointerUp)})});pC.displayName=nc;var Tm="ScrollAreaCorner",mC=x.forwardRef((e,n)=>{const r=zn(Tm,e.__scopeScrollArea),i=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&i?g.jsx(X9,{...e,ref:n}):null});mC.displayName=Tm;var X9=x.forwardRef((e,n)=>{const{__scopeScrollArea:r,...i}=e,o=zn(Tm,r),[s,c]=x.useState(0),[f,h]=x.useState(0),d=!!(s&&f);return nl(o.scrollbarX,()=>{const m=o.scrollbarX?.offsetHeight||0;o.onCornerHeightChange(m),h(m)}),nl(o.scrollbarY,()=>{const m=o.scrollbarY?.offsetWidth||0;o.onCornerWidthChange(m),c(m)}),d?g.jsx(Fe.div,{...i,ref:n,style:{width:s,height:f,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function rc(e){return e?parseInt(e,10):0}function gC(e,n){const r=e/n;return isNaN(r)?0:r}function Oc(e){const n=gC(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,i=(e.scrollbar.size-r)*n;return Math.max(i,18)}function Q9(e,n,r,i="ltr"){const o=Oc(r),s=o/2,c=n||s,f=o-c,h=r.scrollbar.paddingStart+c,d=r.scrollbar.size-r.scrollbar.paddingEnd-f,m=r.content-r.viewport,y=i==="ltr"?[0,m]:[m*-1,0];return yC([h,d],y)(e)}function m0(e,n,r="ltr"){const i=Oc(n),o=n.scrollbar.paddingStart+n.scrollbar.paddingEnd,s=n.scrollbar.size-o,c=n.content-n.viewport,f=s-i,h=r==="ltr"?[0,c]:[c*-1,0],d=U9(e,h);return yC([0,c],[0,f])(d)}function yC(e,n){return r=>{if(e[0]===e[1]||n[0]===n[1])return n[0];const i=(n[1]-n[0])/(e[1]-e[0]);return n[0]+i*(r-e[0])}}function vC(e,n){return e>0&&e<n}var Z9=(e,n=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},i=0;return(function o(){const s={left:e.scrollLeft,top:e.scrollTop},c=r.left!==s.left,f=r.top!==s.top;(c||f)&&n(),r=s,i=window.requestAnimationFrame(o)})(),()=>window.cancelAnimationFrame(i)};function Lc(e,n){const r=Ct(e),i=x.useRef(0);return x.useEffect(()=>()=>window.clearTimeout(i.current),[]),x.useCallback(()=>{window.clearTimeout(i.current),i.current=window.setTimeout(r,n)},[r,n])}function nl(e,n){const r=Ct(n);cr(()=>{let i=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(i),i=window.requestAnimationFrame(r)});return o.observe(e),()=>{window.cancelAnimationFrame(i),o.unobserve(e)}}},[e,r])}var xC=sC,W9=cC,J9=mC;const zo=x.forwardRef(({className:e,children:n,...r},i)=>g.jsxs(xC,{ref:i,className:fe("relative overflow-hidden",e),...r,children:[g.jsx(W9,{className:"h-full w-full rounded-[inherit]",children:n}),g.jsx(bC,{}),g.jsx(J9,{})]}));zo.displayName=xC.displayName;const bC=x.forwardRef(({className:e,orientation:n="vertical",...r},i)=>g.jsx(km,{ref:i,orientation:n,className:fe("flex touch-none select-none transition-colors",n==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",n==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...r,children:g.jsx(pC,{className:"relative flex-1 rounded-full bg-border"})}));bC.displayName=km.displayName;async function wC(){const n=[...[{id:"project-md",name:"project.md",path:".nut/context/project.md",relativePath:"context/project.md",type:"context",content:"Loading..."},{id:"architecture-md",name:"architecture.md",path:".nut/context/architecture.md",relativePath:"context/architecture.md",type:"context",content:"Loading..."},{id:"role-md",name:"role.md",path:".nut/context/role.md",relativePath:"context/role.md",type:"context",content:"Loading..."}]];try{const r=await fetch(`${xt}/api/v1/knowledge`);if(r.ok){const i=await r.json();if(i.success&&Array.isArray(i.documents)){const o=i.documents.filter(s=>typeof s?.filename=="string").map(s=>({id:`knowledge-${s.filename.replace(".md","")}`,name:s.filename,path:`.nut/knowledge/${s.filename}`,relativePath:`knowledge/${s.filename}`,type:"knowledge",content:"Loading..."}));n.push(...o)}}}catch(r){console.error("Error fetching knowledge documents:",r)}try{const r=await fetch(`${xt}/api/v1/tasks`);if(r.ok){const i=await r.json();if(i.success&&Array.isArray(i.data)){const o=i.data.filter(s=>typeof s?.id=="string"&&(typeof s.title=="string"||typeof s.intent=="string")).map(s=>({id:`task-${s.id}`,name:`${s.id}: ${s.title||s.intent}`,path:`.nut/tasks/${s.id}.md`,relativePath:`tasks/${s.id}.md`,type:"task",content:"Loading..."}));n.push(...o)}}}catch(r){console.error("Error fetching tasks:",r)}return n}async function hp(e){if(e.content&&e.content!=="Loading...")return e;try{let n=null;if(e.name==="project.md"?n="/api/v1/context/project":e.name==="architecture.md"?n="/api/v1/context/architecture":e.name==="role.md"?n="/api/v1/context/role":e.type==="knowledge"?n=`/api/v1/knowledge/${e.path?.split("/").pop()?.replace(".md","")||e.relativePath?.split("/").pop()?.replace(".md","")||e.name.replace(".md","")}`:e.type==="task"&&(n=`/api/v1/tasks/${e.id.replace("task-","")}`),n){const r=await fetch(`${xt}${n}`);if(r.ok)if(e.type==="task"){const o=(await r.json()).data;if(o&&(typeof o.title=="string"||typeof o.intent=="string"))return{...e,content:`# ${o.title||o.intent}
420
-
421
- ${o.content||"No content available"}`}}else{const o=(await r.json()).document?.content;return{...e,content:typeof o=="string"&&o.length>0?o:"Content not available"}}}}catch(n){console.error(`Error loading content for ${e.name}:`,n)}return{...e,content:e.content??"Content could not be loaded."}}function g0({open:e,onOpenChange:n,onSelectionConfirm:r,initialSelection:i=[]}){const[o,s]=x.useState([]),[c,f]=x.useState(i),[h,d]=x.useState(null),[m,y]=x.useState(!1);x.useEffect(()=>{e&&(b(),f(i))},[e,i]);const b=async()=>{y(!0);try{const N=await wC();s(N)}catch(N){console.error("Error loading context files:",N)}finally{y(!1)}},w=async N=>{if(N.content&&N.content!=="Loading...")return N;try{return await hp(N)}catch(O){console.error("Error loading file content via API:",O)}try{let O="Content could not be loaded.";return N.name==="project.md"?O=`# Coconut - Project Context
422
-
423
- ## What is Coconut?
424
-
425
- Coconut (Git-Adjacent Intent Tracking) revolutionizes software development by treating intent, plans, and product operations as first-class citizens alongside code. Built for the AI era where humans and agents collaborate seamlessly.
426
-
427
- ## Core Philosophy
428
-
429
- 1. **Lives with your code** - Build and manage your project context, backlog, agents, and knowledge that lives directly alongside your code
430
- 2. **Everyone is first-class** - PMs, designers, engineers, and AI agents are all first-class
431
- 3. **Accessible everywhere** - IDE, Web UI, CLI, Mobile
432
- 4. **Inline AI** - AI everywhere with flexible API key management
433
- 5. **File-first architecture** - Start with zero infrastructure (on premise or hosted), scale when needed
434
- 6. **Intent over diffs** - Express what you want to achieve, not just what changed`:N.name==="architecture.md"&&(O=`# Coconut Architecture
435
-
436
- ## Technology Stack
437
-
438
- ### Frontend
439
- - **Next.js 14+**: React framework with App Router
440
- - **TypeScript**: End-to-end type safety
441
- - **Tailwind CSS**: Utility-first styling
442
- - **shadcn/ui**: Modern component library
443
-
444
- ### Data Layer
445
- - **File Storage**: Markdown files with YAML frontmatter in .nut/
446
- - **Local State**: React Context + localStorage
447
- - **Real-time**: File system watching with chokidar
448
-
449
- ### AI Integration
450
- - **Vercel AI SDK**: Unified AI integration
451
- - **OpenAI/Anthropic SDKs**: Direct model access
452
-
453
- ## Repository Structure
454
-
455
- \`\`\`
456
- project-root/
457
- ├── .nut/ # Coconut data directory
458
- │ ├── config.json # Repository configuration
459
- │ ├── tasks/ # Tasks
460
- │ ├── agents/ # AI agents
461
- │ ├── context/ # Project context
462
- │ └── knowledge/ # Team knowledge
463
- └── your-actual-code/ # Your project files
464
- \`\`\``),{...N,content:O}}catch(O){return console.error("Fallback content generation failed:",O),{...N,content:"Error loading content"}}},C=async N=>{const O=await w(N);d(O)},k=(N,O)=>{f(z=>O?[...z,N]:z.filter(j=>j!==N))},T=()=>{const N=o.filter(O=>c.includes(O.id));r({files:N,selectedIds:c}),n(!1)},A=N=>{switch(N){case"context":case"knowledge":return g.jsx(_o,{className:"h-4 w-4"});case"agent":return g.jsx(So,{className:"h-4 w-4"});case"task":return g.jsx(Kx,{className:"h-4 w-4"});default:return g.jsx(Kx,{className:"h-4 w-4"})}},_=o.reduce((N,O)=>{let z="context";return O.type==="knowledge"?z="knowledge":O.type==="task"&&(z="tasks"),N[z]||(N[z]=[]),N[z].push(O),N},{});return g.jsx(Tc,{open:e,onOpenChange:n,children:g.jsxs(Zo,{className:"max-w-7xl h-[80vh] flex flex-col",children:[g.jsx(Wo,{children:g.jsx(Jo,{children:"Select Context Files"})}),g.jsxs("div",{className:"flex-1 flex gap-4 min-h-0",children:[g.jsxs("div",{className:"w-1/3 border-r pr-4",children:[g.jsx("div",{className:"mb-2 text-sm font-medium",children:"Project Context"}),g.jsx(zo,{className:"h-full",children:m?g.jsx("div",{className:"flex items-center justify-center py-8",children:g.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[g.jsx(Yu,{className:"h-4 w-4 animate-spin"}),g.jsx("span",{className:"text-sm",children:"Loading files..."})]})}):o.length===0?g.jsx("div",{className:"flex items-center justify-center py-8",children:g.jsxs("div",{className:"text-center text-muted-foreground",children:[g.jsx(vN,{className:"h-8 w-8 mx-auto mb-2 opacity-50"}),g.jsx("p",{className:"text-sm",children:"No context files available"})]})}):g.jsxs("div",{className:"space-y-1",children:[_.context&&g.jsxs("div",{className:"space-y-1",children:[g.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground mb-2",children:[g.jsx(Pu,{className:"h-3 w-3"}),g.jsx("span",{children:"Context"})]}),_.context.map(N=>g.jsxs("div",{className:fe("flex items-center gap-2 p-2 rounded-md cursor-pointer hover:bg-muted",h?.id===N.id&&"bg-muted"),onClick:()=>C(N),children:[g.jsx(Vu,{checked:c.includes(N.id),onCheckedChange:O=>k(N.id,O),onClick:O=>O.stopPropagation()}),A(N.type),g.jsx("span",{className:"text-sm truncate flex-1",children:N.name})]},N.id))]}),_.knowledge&&g.jsxs("div",{className:"space-y-1 mt-4",children:[g.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground mb-2",children:[g.jsx(Pu,{className:"h-3 w-3"}),g.jsx("span",{children:"Knowledge"})]}),_.knowledge.map(N=>g.jsxs("div",{className:fe("flex items-center gap-2 p-2 rounded-md cursor-pointer hover:bg-muted",h?.id===N.id&&"bg-muted"),onClick:()=>C(N),children:[g.jsx(Vu,{checked:c.includes(N.id),onCheckedChange:O=>k(N.id,O),onClick:O=>O.stopPropagation()}),A(N.type),g.jsx("span",{className:"text-sm truncate flex-1",children:N.name})]},N.id))]}),_.tasks&&g.jsxs("div",{className:"space-y-1 mt-4",children:[g.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground mb-2",children:[g.jsx(Pu,{className:"h-3 w-3"}),g.jsx("span",{children:"Tasks"})]}),_.tasks.map(N=>g.jsxs("div",{className:fe("flex items-center gap-2 p-2 rounded-md cursor-pointer hover:bg-muted",h?.id===N.id&&"bg-muted"),onClick:()=>C(N),children:[g.jsx(Vu,{checked:c.includes(N.id),onCheckedChange:O=>k(N.id,O),onClick:O=>O.stopPropagation()}),A(N.type),g.jsx("span",{className:"text-sm truncate flex-1",title:N.name,children:N.name.length>30?`${N.name.substring(0,30)}...`:N.name})]},N.id))]})]})})]}),g.jsx("div",{className:"flex-1 flex flex-col min-w-0",children:h?g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"flex items-center justify-between mb-4",children:g.jsxs("div",{className:"flex items-center gap-2",children:[A(h.type),g.jsx("span",{className:"font-medium",children:h.name}),g.jsx("span",{className:"text-xs text-muted-foreground",children:h.relativePath})]})}),g.jsx(zo,{className:"flex-1 border rounded-md p-4",children:h.content==="Loading..."?g.jsx("div",{className:"flex items-center justify-center py-8",children:g.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[g.jsx(Yu,{className:"h-4 w-4 animate-spin"}),g.jsx("span",{className:"text-sm",children:"Loading content..."})]})}):g.jsx(as,{className:"[&_.prose]:max-w-none",children:h.content||"No content available"})})]}):g.jsx("div",{className:"flex-1 flex items-center justify-center text-muted-foreground",children:g.jsxs("div",{className:"text-center",children:[g.jsx(_o,{className:"h-8 w-8 mx-auto mb-2 opacity-50"}),g.jsx("p",{className:"text-sm",children:"Select a file to preview"})]})})})]}),g.jsxs("div",{className:"flex items-center justify-between pt-4 border-t",children:[g.jsxs("div",{className:"text-sm text-muted-foreground",children:[c.length," file",c.length!==1?"s":""," selected"]}),g.jsxs("div",{className:"flex gap-2",children:[g.jsx(pt,{variant:"outline",onClick:()=>n(!1),children:"Cancel"}),g.jsx(pt,{onClick:T,children:"Use Selected Context"})]})]})]})})}function y0({open:e,onOpenChange:n,onSelect:r,initialSelectedId:i=null}){const[o,s]=x.useState([]),[c,f]=x.useState(!1),[h,d]=x.useState(i);x.useEffect(()=>{e&&(d(i),f(!0),fetch(`${xt}/api/v1/skills`).then(async b=>{if(!b.ok)throw new Error("Failed to load skills");const w=await b.json();s(w.documents||[])}).catch(()=>s([])).finally(()=>f(!1)))},[e,i]);const m=x.useMemo(()=>o.find(b=>b.id===h)||null,[o,h]),y=()=>{m&&(r(m),n(!1))};return g.jsx(Tc,{open:e,onOpenChange:n,children:g.jsxs(Zo,{className:"max-w-4xl h-[80vh] flex flex-col",children:[g.jsx(Wo,{children:g.jsx(Jo,{children:"Select a Skill"})}),g.jsxs("div",{className:"flex-1 flex gap-4 min-h-0",children:[g.jsxs("div",{className:"w-1/3 border-r pr-4",children:[g.jsxs("div",{className:"mb-2 text-sm font-medium flex items-center gap-2",children:[g.jsx(Pu,{className:"h-3 w-3"}),g.jsx("span",{children:"Skills"})]}),g.jsx(zo,{className:"h-full",children:c?g.jsx("div",{className:"flex items-center justify-center py-8 text-muted-foreground",children:g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("div",{className:"w-2 h-2 bg-current rounded-full animate-bounce"}),g.jsx("div",{className:"w-2 h-2 bg-current rounded-full animate-bounce [animation-delay:0.1s]"}),g.jsx("div",{className:"w-2 h-2 bg-current rounded-full animate-bounce [animation-delay:0.2s]"})]})}):o.length===0?g.jsx("div",{className:"py-8 text-sm text-muted-foreground text-center",children:"No skills found"}):g.jsx("div",{className:"space-y-1",children:o.map(b=>{const w=h===b.id;return g.jsxs("button",{onClick:()=>d(b.id),className:fe("w-full text-left p-2 rounded-md hover:bg-muted flex items-center gap-2",w&&"bg-muted"),children:[g.jsx("input",{type:"radio",checked:w,onChange:()=>d(b.id),className:"h-4 w-4"}),g.jsx(So,{className:"h-4 w-4"}),g.jsx("span",{className:"text-sm truncate flex-1",children:b.name})]},b.id)})})})]}),g.jsx("div",{className:"flex-1 flex flex-col min-w-0",children:m?g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"flex items-center justify-between mb-4",children:g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(So,{className:"h-4 w-4"}),g.jsx("span",{className:"font-medium",children:m.name}),g.jsxs("span",{className:"text-xs text-muted-foreground",children:[".nut/skills/",m.id,"/SKILL.md"]})]})}),g.jsx(zo,{className:"flex-1 border rounded-md p-4",children:g.jsx(as,{className:"[&_.prose]:max-w-none",children:m.content||"No content available"})})]}):g.jsx("div",{className:"flex-1 flex items-center justify-center text-muted-foreground",children:g.jsxs("div",{className:"text-center",children:[g.jsx(So,{className:"h-8 w-8 mx-auto mb-2 opacity-50"}),g.jsx("p",{className:"text-sm",children:"Select a skill to preview"})]})})})]}),g.jsxs("div",{className:"flex items-center justify-between pt-4 border-t",children:[g.jsx("div",{className:"text-sm text-muted-foreground",children:m?`Selected: ${m.name}`:"No skill selected"}),g.jsxs("div",{className:"flex gap-2",children:[g.jsx(pt,{variant:"outline",onClick:()=>n(!1),children:"Cancel"}),g.jsx(pt,{onClick:y,disabled:!m,children:"Use Skill"})]})]})]})})}const SC=x.forwardRef(({className:e,...n},r)=>g.jsx("textarea",{className:fe("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...n}));SC.displayName="Textarea";const eI=/```knowledge_action\s*\n([\s\S]*?)```/gi;function pp(e){if(!e||typeof e!="object")return!1;const n=e;return!(typeof n.action!="string"||n.action!=="create"&&n.action!=="update"||typeof n.title!="string"||typeof n.content!="string"||n.action==="update"&&typeof n.filename!="string")}function mp(e){const n=e.metadata?{...e.metadata,tags:Array.isArray(e.metadata.tags)?e.metadata.tags:e.metadata.tags?[e.metadata.tags].flat().map(String):[],sources:Array.isArray(e.metadata.sources)?e.metadata.sources:e.metadata.sources?[e.metadata.sources].flat().map(String):[],related:Array.isArray(e.metadata.related)?e.metadata.related:[],audience:Array.isArray(e.metadata.audience)?e.metadata.audience:[]}:void 0;return{...e,metadata:n}}function tI(e){if(!e)return[];const n=Array.isArray(e)?e:[e],r=[];for(const i of n)pp(i)&&r.push(mp(i));return r}function nI(e){const n=e.trimEnd();if(!n.endsWith("}"))return null;let r=0,i=!1,o=!1;for(let s=n.length-1;s>=0;s--){const c=n[s];if(i){o?o=!1:c==="\\"?o=!0:c==='"'&&(i=!1);continue}if(c==='"'){i=!0;continue}if(c==="}"){r+=1;continue}if(c==="{"&&(r-=1,r===0)){const f=n.slice(s);try{const h=JSON.parse(f),d=tI(h);if(d.length>0)return{cleaned:n.slice(0,s).trimEnd(),actions:d}}catch(h){console.error("Failed to parse trailing knowledge action payload:",h)}return null}}return null}function rI(e){const n=[];let i=e.replace(eI,(o,s)=>{try{const c=JSON.parse(s.trim());Array.isArray(c)?c.forEach(f=>{pp(f)&&n.push(mp(f))}):pp(c)&&n.push(mp(c))}catch(c){console.error("Failed to parse knowledge_action block:",c)}return""}).replace(/\n{3,}/g,`
465
-
466
- `).trim();if(n.length===0){const o=nI(i);o&&(n.push(...o.actions),i=o.cleaned)}return{cleanedContent:i,actions:n}}function aI(e){return e.action==="create"?`Proposed new knowledge document "${e.title}"`:`Proposed updates to ${e.filename||e.title}`}function iI(e,n){const r=e.split(`
467
- `),i=n.split(`
468
- `),o=r.length,s=i.length,c=Array.from({length:o+1},()=>Array(s+1).fill(0));for(let m=o-1;m>=0;m--)for(let y=s-1;y>=0;y--)r[m]===i[y]?c[m][y]=c[m+1][y+1]+1:c[m][y]=Math.max(c[m+1][y],c[m][y+1]);const f=[];let h=0,d=0;for(;h<o&&d<s;)r[h]===i[d]?(f.push({type:"context",value:r[h]}),h++,d++):c[h+1][d]>=c[h][d+1]?(f.push({type:"removed",value:r[h]}),h++):(f.push({type:"added",value:i[d]}),d++);for(;h<o;)f.push({type:"removed",value:r[h]}),h++;for(;d<s;)f.push({type:"added",value:i[d]}),d++;return f}function lI({original:e,updated:n}){const r=x.useMemo(()=>iI(e??"",n??""),[e,n]);return g.jsx("div",{className:"max-h-[60vh] overflow-auto border rounded-md bg-background",children:g.jsx("pre",{className:"text-xs leading-5 font-mono p-4 space-y-1",children:r.map((i,o)=>{const s=i.type==="added"?"+":i.type==="removed"?"-":" ",c=i.type==="added"?"bg-green-100 dark:bg-green-950/40 text-green-900 dark:text-green-200 border-l-2 border-green-500":i.type==="removed"?"bg-red-100 dark:bg-red-950/40 text-red-900 dark:text-red-200 border-l-2 border-red-500":"text-muted-foreground";return g.jsxs("div",{className:fe("px-2 py-1 whitespace-pre-wrap break-words rounded-sm",c),children:[s," ",i.value]},o)})})})}function oI({action:e,onApply:n,fetchDocumentContent:r}){const[i,o]=x.useState(!1),[s,c]=x.useState(null),[f,h]=x.useState(null),[d,m]=x.useState(!1),[y,b]=x.useState(!1),[w,C]=x.useState("idle"),[k,T]=x.useState(null),A=e.action==="create"?"Preview document":"View diff",_=e.action==="create"?"Add to knowledge":`Update ${e.filename||"document"}`,N=async()=>{if(h(null),e.action==="update"){if(!e.filename){h("Filename is required to load the existing document."),o(!0);return}o(!0),m(!0);try{const j=await r(e.filename);if(!j){h("Could not load the existing knowledge document.");return}c({mode:"diff",original:j,updated:e.content})}catch(j){h(j instanceof Error?j.message:"Failed to load preview.")}finally{m(!1)}}else c({mode:"content",updated:e.content}),o(!0)},O=async()=>{T(null),C("idle"),b(!0);try{await n(e),C("success")}catch(j){C("error"),T(j instanceof Error?j.message:"Failed to update knowledge document.")}finally{b(!1)}},z=()=>{o(!1),c(null),h(null)};return g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:"border border-dashed border-primary/40 bg-primary/5 text-sm rounded-md p-3 space-y-2",children:[g.jsxs("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[g.jsxs("div",{className:"space-y-1",children:[g.jsx("p",{className:"font-medium leading-tight",children:aI(e)}),e.summary&&g.jsx("p",{className:"text-xs text-muted-foreground leading-snug",children:e.summary})]}),g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(pt,{variant:"outline",size:"sm",onClick:N,disabled:d,children:d?"Loading…":A}),g.jsx(pt,{size:"sm",onClick:O,disabled:y||w==="success",children:y?"Applying…":_})]})]}),w==="success"&&g.jsx("p",{className:"text-xs text-green-600 dark:text-green-400",children:"Knowledge document saved."}),w==="error"&&k&&g.jsx("p",{className:"text-xs text-destructive",children:k})]}),g.jsx(Tc,{open:i,onOpenChange:j=>j?o(!0):z(),children:g.jsxs(Zo,{className:"max-w-3xl",children:[g.jsxs(Wo,{children:[g.jsx(Jo,{children:e.action==="create"?e.title:`Proposed changes for ${e.filename||e.title}`}),f&&g.jsx(xo,{className:"text-destructive",children:f}),d&&!f&&g.jsx(xo,{children:"Loading preview…"}),s?.mode==="diff"&&!d&&!f&&g.jsx(xo,{children:"Review differences before updating the knowledge document."}),s?.mode==="content"&&!d&&!f&&g.jsx(xo,{children:"Review the drafted knowledge content before saving."})]}),!d&&!f&&s&&(s.mode==="diff"&&s.original?g.jsx(lI,{original:s.original,updated:s.updated}):g.jsx("div",{className:"border rounded-md p-4 max-h-[60vh] overflow-auto bg-background",children:g.jsx(as,{className:"text-sm [&_.prose]:text-sm",children:s.updated})})),g.jsx(yS,{children:g.jsx(pt,{variant:"outline",size:"sm",onClick:z,children:"Close"})})]})})]})}function sI({isOpen:e,onToggle:n,contextInfo:r,discussDocument:i,onDiscussDocumentHandled:o,pendingPrompt:s,onPendingPromptHandled:c,openInFullScreen:f,onFullScreenHandled:h,fullScreenNoEscape:d}){const[m,y]=x.useState(""),[b,w]=x.useState([]),[C,k]=x.useState(!1),[T,A]=x.useState(!1),_=B1(),N=Uo(),[O,z]=x.useState(!1),[j,$]=x.useState([]),[G,ee]=x.useState(!1),[P,ne]=x.useState(!1),[ae,le]=x.useState([]),[H,Q]=x.useState([]),L=x.useRef([]),K=x.useRef(new Map),U=x.useRef(!0),[J,E]=x.useState([]),Z=J.length,[oe,M]=x.useState(!1),[se,Se]=x.useState(null),[he,xe]=x.useState(!1),[Ee,Qe]=x.useState(!1),[bt,Rt]=x.useState(null),[It,Yt]=x.useState(null),[ba,Wn]=x.useState(!1),Jn=x.useRef(0);x.useEffect(()=>{b.length>0&&b.length!==Jn.current&&Wn(!0)},[b.length]),x.useEffect(()=>{const X=de=>{if(de.key==="Escape"){if(T){Ot();return}if(Ee&&!d){Qe(!1);return}}if((de.metaKey||de.ctrlKey)&&de.shiftKey&&de.key.toLowerCase()==="k"){de.preventDefault(),ne(!0);return}if((de.metaKey||de.ctrlKey)&&de.shiftKey&&de.key.toLowerCase()==="n"){de.preventDefault(),(b.length>0||J.length>0||se)&&(Jt.current&&(Jt.current.abort(),Jt.current=null),k(!1),A(!1),w([]),E([]),Q([]),L.current=[],Se(null),xe(!1),y(""),Yt(null),Wn(!1),Jn.current=0);return}if((de.metaKey||de.ctrlKey)&&de.shiftKey&&de.key.toLowerCase()==="e"){de.preventDefault(),Qe(pe=>!pe);return}};if(e)return document.addEventListener("keydown",X),()=>document.removeEventListener("keydown",X)},[e,Ee,T,b.length,J.length,se]);const Dt=x.useRef(null),Br=x.useRef(null),Jt=x.useRef(null),wn=x.useRef(null);x.useEffect(()=>{e&&setTimeout(()=>wn.current?.focus(),100)},[e]);const mr=x.useCallback((X=!1)=>{try{Br.current?Br.current.scrollTop=Br.current.scrollHeight:Dt.current&&Dt.current.scrollIntoView({behavior:X?"auto":"smooth"})}catch{console.error("Error scrolling to bottom")}},[]);x.useEffect(()=>{mr(T)},[b,C,T,mr]),x.useEffect(()=>()=>{U.current=!1},[]),x.useEffect(()=>{L.current=H},[H]),x.useEffect(()=>{let X=!1;return(async()=>{try{const pe=await wC();if(X)return;le(pe);const be=K.current;pe.forEach(_e=>{const Je=be.get(_e.id);Je&&Je.content&&Je.content!=="Loading..."&&(!_e.content||_e.content==="Loading...")?be.set(_e.id,Je):be.set(_e.id,_e)})}catch(pe){X||console.error("Error loading context file list:",pe)}})(),()=>{X=!0}},[]);const Wa=x.useCallback(X=>{const de=K.current.get(X);if(de)return de;const pe=ae.find(be=>be.id===X);return pe?(K.current.set(X,pe),pe):null},[ae]),wa=x.useCallback(X=>{if(X.startsWith("knowledge-")){const pe=`${X.replace("knowledge-","")}.md`;return{id:X,name:pe,type:"knowledge",path:`.nut/knowledge/${pe}`,relativePath:`knowledge/${pe}`,content:"Loading..."}}if(X.startsWith("task-")){const de=X.replace("task-","");return{id:X,name:`${de}.md`,type:"task",path:`.nut/tasks/${de}.md`,relativePath:`tasks/${de}.md`,content:"Loading..."}}return X==="project-md"?{id:X,name:"project.md",type:"context",path:".nut/context/project.md",relativePath:"context/project.md",content:"Loading..."}:X==="architecture-md"?{id:X,name:"architecture.md",type:"context",path:".nut/context/architecture.md",relativePath:"context/architecture.md",content:"Loading..."}:null},[]),Ja=x.useCallback(async X=>{const de=X.filter((be,_e,Je)=>Je.indexOf(be)===_e),pe=[];for(const be of de){let _e=Wa(be);if(_e||(_e=wa(be),_e&&K.current.set(be,_e)),!!_e){if(_e.content&&_e.content!=="Loading..."){K.current.set(be,_e),pe.push(_e);continue}try{const Je=await hp(_e);K.current.set(be,Je),pe.push(Je)}catch(Je){console.error(`Error ensuring content for context file ${_e.name}:`,Je),pe.push(_e)}}}return pe},[wa,Wa]),Ur=x.useCallback(async X=>{if(X.length===0){E([]);return}try{const de=await Ja(X);if(!U.current)return;const pe=new Map(de.map(_e=>[_e.id,_e])),be=X.map(_e=>pe.get(_e)).filter(_e=>!!_e);E(be)}catch(de){console.error("Error synchronizing selected context files:",de)}},[Ja]);x.useEffect(()=>{if(i&&e){const X={id:i.id,name:i.name,type:i.type||"knowledge",path:i.path,relativePath:i.path,content:"Loading..."};if(!L.current.includes(i.id)){const de=[...L.current,i.id];Q(de),L.current=de,K.current.set(i.id,X),E(pe=>pe.some(be=>be.id===i.id)?pe:[...pe,X]),Ur(de).catch(pe=>{console.error("Error syncing context after discuss document:",pe)})}o?.()}},[i,e,o,Ur]),x.useEffect(()=>{s&&e&&(y(s),c?.())},[s,e,c]),x.useEffect(()=>{f&&(Qe(!0),h?.(),setTimeout(()=>wn.current?.focus(),100))},[f,h]),x.useEffect(()=>{const X=()=>{Qe(de=>!de),setTimeout(()=>wn.current?.focus(),100)};return window.addEventListener("toggle-assistant-fullscreen",X),()=>{window.removeEventListener("toggle-assistant-fullscreen",X)}},[]);const W=async()=>{if(b.length!==0)try{const X=!!It,de=X?`${xt}/api/v1/chats/${It}`:`${xt}/api/v1/chats`,be=await fetch(de,{method:X?"PUT":"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({messages:b,model:"anthropic/claude-sonnet-4.5",context:r})});if(!be.ok){const Je=await be.json();throw new Error(Je.error||"Failed to save chat")}const _e=await be.json();!X&&_e.chatId&&Yt(_e.chatId),Wn(!1),Jn.current=b.length,console.log("Chat saved:",_e.chatId||It)}catch(X){console.error("Error saving chat:",X)}},ue=async()=>{ee(!0);try{const X=await fetch(`${xt}/api/v1/chats`);if(!X.ok)throw new Error("Failed to load chat history");const de=await X.json();$(de.chats)}catch(X){console.error("Error loading chat history:",X)}finally{ee(!1)}},Ce=async X=>{try{const de=await fetch(`${xt}/api/v1/chats/${X}`);if(!de.ok)throw new Error("Failed to load chat");const pe=await de.json();w(pe.chat.messages),Yt(X),Wn(!1),Jn.current=pe.chat.messages.length,z(!1)}catch(de){console.error("Error loading chat:",de)}},Re=async X=>{try{if(!(await fetch(`${xt}/api/v1/chats/${X}`,{method:"DELETE"})).ok)throw new Error("Failed to delete chat");await ue()}catch(de){console.error("Error deleting chat:",de)}},Ye=()=>{T&&Ot(),w([]),E([]),Q([]),L.current=[],Se(null),xe(!1),y(""),Yt(null),Wn(!1),Jn.current=0},Kt=async(X,de)=>{try{await navigator.clipboard.writeText(X),Rt(de),setTimeout(()=>Rt(null),2e3)}catch(pe){console.error("Failed to copy message:",pe)}},Pn=async X=>{try{const de=X.endsWith(".md")?X.slice(0,-3):X,pe=await fetch(`${xt}/api/v1/knowledge/${de}`);return pe.ok?(await pe.json()).document?.content||null:(console.error("Failed to fetch knowledge document:",pe.statusText),null)}catch(de){return console.error("Error fetching knowledge document:",de),null}},Bt=async X=>{const de={tool:"knowledge_documents",arguments:{operation:X.action==="create"?"create":"update",title:X.title,content:X.content,filename:X.filename,metadata:X.metadata,summary:X.summary}};try{const pe=await fetch(`${xt}/api/v1/mcp/execute`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(de)}),be=await pe.json();if(!pe.ok||!be.success)throw new Error(be.error||"Knowledge tool execution failed");const _e=be.data?.filename||X.filename||X.title,Je=X.action==="create"?"added to the knowledge base":"updated in the knowledge base";w(Ht=>[...Ht,{role:"system",content:`Knowledge document ${_e} ${Je}.`}])}catch(pe){throw console.error("Error applying knowledge action:",pe),pe instanceof Error?pe:new Error("Failed to apply knowledge action")}},un=async()=>{if(!m.trim()||T)return;const X=m,pe=!b.some($e=>$e.role==="user");let be;pe&&se&&!he&&(be=`--- System Persona ---
469
- You MUST adopt and consistently act as the following skill persona for this entire conversation.
470
- - Follow its goals, tone, constraints, and tools.
471
- - Prioritize the skill's specified focus areas in your reasoning and responses.
472
- - Do not disclaim or deviate unless the instructions explicitly permit.
473
-
474
- Skill: ${se.name} (.nut/skills/${se.id}/SKILL.md)
475
-
476
- ${se.content}
477
- --- End System Persona ---`,xe(!0));const Je=(await Promise.all(J.map(async $e=>{if($e.content&&$e.content!=="Loading..."&&$e.content!=="Content not available")return $e;try{const en=await hp($e);return K.current.set($e.id,en),en}catch(en){return console.error(`Failed to load content for ${$e.name}:`,en),$e}}))).filter($e=>$e.content&&$e.content!=="Loading..."&&$e.content!=="Content not available").map($e=>({name:$e.name,path:$e.path,type:$e.type,content:$e.content})),Ht={role:"user",content:m};w($e=>[...$e,Ht]),y(""),k(!0),A(!0);const Sa=new AbortController;Jt.current=Sa;try{const en=[...b,Ht].filter(ot=>ot.role==="user"||ot.role==="assistant").map((ot,st,gt)=>st===gt.length-1&&ot.role==="user"?{role:ot.role,content:X}:ot),In={message:X,history:en,context:r?.type,contextContent:r?.content,skillPersona:be,attachedContextFiles:Je.length>0?Je:void 0},Bn=await fetch(`${xt}/api/v1/ai`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(In),signal:Sa.signal});if(!Bn.ok){let ot="Failed to get AI response";try{const st=await Bn.json();ot=st.error||st.message||ot,st.status&&(ot=`${ot} (${st.status})`)}catch{ot=`${Bn.statusText||ot} (${Bn.status})`}throw new Error(ot)}if(Bn.body){const ot=Bn.body.getReader(),st=new TextDecoder;let gt="",er=!1;try{for(;;){const{done:Un,value:ei}=await ot.read();if(Un)break;gt+=st.decode(ei,{stream:!0}),er?w(gr=>{const Sn=[...gr];return Sn[Sn.length-1]={role:"assistant",content:gt},Sn}):(w(gr=>[...gr,{role:"assistant",content:gt}]),k(!1),er=!0)}gt.trim()||console.warn("Stream completed with no content")}catch(Un){if(!(Un instanceof DOMException&&Un.name==="AbortError")){console.error("Streaming error:",Un);const ei=`Sorry, I encountered a streaming error: ${Un instanceof Error?Un.message:"Unknown error"}`;w(er?gr=>{const Sn=[...gr];return Sn[Sn.length-1]?.role==="assistant"&&(Sn[Sn.length-1]={role:"assistant",content:ei}),Sn}:gr=>[...gr,{role:"assistant",content:ei}])}}}}catch($e){if($e instanceof DOMException&&$e.name==="AbortError")w(en=>{const In=[...en],Bn=In[In.length-1];return Bn?.role==="assistant"&&!Bn.content&&In.pop(),In});else{console.error("Error calling AI:",$e);const en={role:"assistant",content:`Sorry, I encountered an error: ${$e instanceof Error?$e.message:"Unknown error"}`};w(In=>[...In,en])}}finally{Jt.current=null,k(!1),A(!1)}},Ot=()=>{Jt.current&&(Jt.current.abort(),Jt.current=null),k(!1),A(!1)},mt=X=>{X.files.forEach(be=>{const _e=K.current.get(be.id);(!_e||_e.content!==be.content)&&K.current.set(be.id,be)}),Q(X.selectedIds),L.current=X.selectedIds;const de=new Map(X.files.map(be=>[be.id,be])),pe=X.selectedIds.map(be=>{const _e=de.get(be);if(_e)return _e;const Je=K.current.get(be);return Je||ae.find(Ht=>Ht.id===be)||null}).filter(be=>be!==null);E(pe),Ur(X.selectedIds).catch(be=>{console.error("Error syncing context after manual selection:",be)})},Ut=g.jsx(g.Fragment,{children:g.jsxs("div",{className:"flex h-full w-full flex-col",children:[g.jsxs("div",{className:"flex items-center justify-between p-4 border-b flex-shrink-0",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(Iu,{className:fe(Ee?"h-6 w-6":"h-5 w-5")}),g.jsx("div",{children:g.jsx("h2",{className:fe("font-semibold leading-tight",Ee?"text-xl":"text-lg"),children:"Coconut Assistant"})})]}),g.jsx("div",{className:fe("flex items-center gap-1",_&&"mr-8"),children:Ee&&!d?g.jsx(pt,{onClick:()=>Qe(!1),size:"icon",variant:"ghost",className:"h-8 w-8",title:"Exit Expanded View (Esc)",children:g.jsx(Yi,{className:"h-4 w-4"})}):Ee?null:g.jsx(pt,{onClick:()=>{Qe(!0),setTimeout(()=>wn.current?.focus(),100)},size:"icon",variant:"outline",className:"h-8 w-8",title:"Expand View (⌘⇧L)",children:g.jsx(pN,{className:"h-4 w-4"})})})]}),g.jsx("div",{className:"px-4 py-2 border-b flex-shrink-0",children:g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsxs(pt,{onClick:()=>{z(!O),O||ue()},size:"sm",variant:"outline",className:"h-8 shrink-0 gap-1.5",title:O?"View Chat":"Chat History",children:[g.jsx(AN,{className:"h-4 w-4"}),O?"View Chat":"History"]}),g.jsxs("div",{className:"flex gap-2 items-center",children:[g.jsxs(pt,{onClick:W,disabled:b.length===0||!ba,size:"sm",variant:"outline",className:"h-8 shrink-0 gap-1.5",title:"Save Chat",children:[g.jsx(nM,{className:"h-4 w-4"}),"Save"]}),g.jsxs(M9,{children:[g.jsx(j9,{asChild:!0,children:g.jsxs(pt,{disabled:b.length===0&&J.length===0&&!se,size:"sm",variant:"outline",className:"h-8 shrink-0 gap-1.5 bg-red-500 text-white border-red-500 hover:bg-red-600 hover:text-white hover:border-red-600",title:"New Chat (⌘⇧N)",children:[g.jsx(gM,{className:"h-4 w-4"}),"New"]})}),g.jsxs(YE,{children:[g.jsxs(KE,{children:[g.jsx(QE,{children:"Clear Chat"}),g.jsx(ZE,{children:"This clears all messages, removes selected context files, and resets the selected agent. This action cannot be undone."})]}),g.jsxs(XE,{children:[g.jsx(JE,{children:"Cancel"}),g.jsx(WE,{onClick:Ye,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"Clear Chat"})]})]})]})]})]})}),O&&g.jsxs("div",{className:"flex-1 overflow-y-auto p-4 space-y-2 min-h-0",children:[g.jsxs("div",{className:"flex items-center justify-between mb-4",children:[g.jsx("h3",{className:"font-medium",children:"Chat History"}),g.jsx(pt,{onClick:()=>z(!1),size:"sm",variant:"ghost",children:g.jsx(Yi,{className:"h-4 w-4"})})]}),G?g.jsx("div",{className:"text-center text-muted-foreground py-8",children:g.jsxs("div",{className:"flex items-center justify-center gap-2",children:[g.jsx("div",{className:"w-2 h-2 bg-current rounded-full animate-bounce"}),g.jsx("div",{className:"w-2 h-2 bg-current rounded-full animate-bounce [animation-delay:0.1s]"}),g.jsx("div",{className:"w-2 h-2 bg-current rounded-full animate-bounce [animation-delay:0.2s]"})]})}):j.length===0?g.jsxs("div",{className:"text-center text-muted-foreground py-8",children:[g.jsx(ah,{className:"h-8 w-8 mx-auto mb-2 opacity-50"}),g.jsx("p",{className:"text-sm",children:"No saved chats yet"})]}):g.jsx("div",{className:"space-y-2",children:j.map(X=>g.jsx("div",{className:"border rounded-lg p-3 bg-muted/30 hover:bg-muted/60 cursor-pointer group transition-colors",onClick:()=>Ce(X.id),children:g.jsxs("div",{className:"flex items-start justify-between gap-2",children:[g.jsxs("div",{className:"flex items-start gap-2.5 flex-1 min-w-0",children:[g.jsx("div",{className:"mt-0.5 shrink-0 w-7 h-7 rounded-md bg-primary/10 flex items-center justify-center",children:g.jsx(ah,{className:"h-3.5 w-3.5 text-primary/70"})}),g.jsxs("div",{className:"flex-1 min-w-0",children:[g.jsx("h4",{className:"text-sm font-medium truncate",children:X.title}),g.jsxs("div",{className:"flex items-center gap-3 mt-1",children:[g.jsxs("span",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[g.jsx(rN,{className:"h-3 w-3"}),new Date(X.updatedAt).toLocaleDateString()]}),g.jsxs("span",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[g.jsx(ah,{className:"h-3 w-3"}),X.messages.length]}),g.jsxs("span",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[g.jsx(Iu,{className:"h-3 w-3"}),X.model.split("/")[1]||X.model]})]})]})]}),g.jsx(pt,{onClick:de=>{de.stopPropagation(),Re(X.id)},size:"icon",variant:"ghost",className:"h-6 w-6 shrink-0 opacity-0 group-hover:opacity-100 transition-opacity",children:g.jsx(SM,{className:"h-3 w-3"})})]})},X.id))})]}),!O&&g.jsxs("div",{ref:Br,className:fe("flex-1 w-full overflow-y-auto space-y-4 min-h-0",Ee?"p-6 max-w-4xl mx-auto":"p-4"),children:[b.length===0&&g.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-muted-foreground py-12 px-2",children:[g.jsx("div",{className:"w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center mb-6",children:g.jsx(Iu,{className:"h-5 w-5 text-primary"})}),g.jsx("h3",{className:"text-base font-semibold text-foreground mb-1",children:"Coconut Assistant"}),g.jsx("p",{className:"text-sm text-muted-foreground/70 mb-4 text-center max-w-[260px]",children:"Try one of these to get started, or type your own question below."}),g.jsx("div",{className:"flex flex-col gap-1.5 items-center",children:["What's been happening?","Search the knowledge base for ","Create an image showing ","Help me research ","Add the following task "].map(X=>g.jsxs("a",{href:"#",onClick:de=>{de.preventDefault(),y(X),setTimeout(()=>{const pe=wn.current;pe&&(pe.focus(),pe.setSelectionRange(X.length,X.length))},0)},className:"text-sm text-primary hover:text-primary/80 transition-colors",children:["“",X.trim(),"”"]},X))}),g.jsxs("p",{className:"mt-4 text-xs text-muted-foreground/50 flex items-center gap-1.5",children:[g.jsx(yh,{className:"text-[10px] px-1.5 h-4",children:"⌘"}),g.jsx(yh,{className:"text-[10px] px-1.5 h-4",children:"⇧"}),g.jsx(yh,{className:"text-[10px] px-1.5 h-4",children:"L"}),"to go full screen"]})]}),b.map((X,de)=>{const pe=X.role==="assistant",be=pe?rI(X.content):{cleanedContent:X.content,actions:[]},_e=pe?be.cleanedContent.length>0?be.cleanedContent:be.actions.length>0?"Proposed knowledge update available below.":X.content:X.content;return g.jsx("div",{className:fe(X.role==="user"?fe("rounded-2xl bg-primary text-primary-foreground p-3 min-w-[80px] max-w-[85%] ml-auto",Ee&&"max-w-[70%]"):X.role==="system"?"rounded-lg bg-muted/50 text-muted-foreground text-center text-xs py-2 px-3 mx-auto max-w-[90%]":"px-1 mr-auto w-full"),children:pe?g.jsxs("div",{className:"space-y-2",children:[g.jsx(as,{className:"text-sm [&_.prose]:text-sm [&_.prose-p]:text-sm [&_.prose-li]:text-sm [&_.prose-code]:text-xs",children:_e}),(()=>{const Je=z4(X.content);return Je.length===0?null:g.jsx("div",{className:"flex flex-wrap gap-2 mt-2",children:Je.map(Ht=>g.jsx("div",{className:"block cursor-pointer",onClick:()=>N(`/resources/${Ht}`),children:g.jsx("img",{src:`${xt}/api/v1/resources/${Ht}/thumbnail`,alt:Ht,className:"w-32 h-24 object-cover rounded-lg border hover:opacity-80 transition-opacity",onError:Sa=>{Sa.target.style.display="none"}})},Ht))})})(),be.actions.map((Je,Ht)=>g.jsx(oI,{action:Je,onApply:Bt,fetchDocumentContent:Pn},`${de}-knowledge-${Ht}`)),!C&&X.content.length>0&&g.jsx("div",{className:"flex justify-start gap-1",children:g.jsx(pt,{onClick:()=>Kt(X.content,de),size:"icon",variant:"ghost",className:"h-5 w-5 opacity-60 hover:opacity-100",title:bt===de?"Copied!":"Copy message",children:bt===de?g.jsx(Op,{className:"h-3 w-3"}):g.jsx(dN,{className:"h-3 w-3"})})})]}):g.jsx("div",{className:"text-sm",children:X.content})},de)}),C&&g.jsx("div",{className:"px-1 mr-auto",children:g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("div",{className:"w-2 h-2 bg-current rounded-full animate-bounce"}),g.jsx("div",{className:"w-2 h-2 bg-current rounded-full animate-bounce [animation-delay:0.1s]"}),g.jsx("div",{className:"w-2 h-2 bg-current rounded-full animate-bounce [animation-delay:0.2s]"})]})}),g.jsx("div",{ref:Dt})]}),!O&&g.jsx("div",{className:"border-t flex-shrink-0 w-full",children:g.jsxs("div",{className:fe(Ee?"px-6 pb-6 pt-3 max-w-4xl mx-auto":"px-4 pb-4 pt-2"),children:[g.jsx("div",{className:"mb-2",children:g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx("div",{className:"flex-1 min-w-0",children:Z>0?g.jsx("div",{className:"flex flex-wrap gap-1",children:J.map(X=>g.jsxs("div",{className:fe("flex items-center gap-1 text-xs px-2 py-1 rounded-md","bg-primary/10 text-primary"),children:[g.jsx("span",{children:X.name}),g.jsx("button",{onClick:de=>{de.stopPropagation();const pe=L.current.filter(be=>be!==X.id);Q(pe),L.current=pe,E(be=>be.filter(_e=>_e.id!==X.id)),Ur(pe).catch(be=>{console.error("Error syncing context after removal:",be)})},className:fe("ml-1 rounded-full p-0.5 transition-colors","hover:bg-primary/20"),disabled:!1,title:"Remove from context",children:g.jsx(Yi,{className:"h-3 w-3"})})]},X.id))}):g.jsxs("button",{onClick:()=>ne(!0),className:"flex items-center gap-1.5 text-sm text-muted-foreground hover:text-foreground transition-colors",disabled:!1,children:[g.jsx(eM,{className:"h-3.5 w-3.5"}),"Add context"]})}),g.jsx("div",{className:"flex items-center gap-1.5 shrink-0 ml-2",children:g.jsx(pt,{onClick:()=>ne(!0),size:"icon",variant:"ghost",className:"h-6 w-6",title:"Select Context Files (⌘⇧K)",disabled:!1,children:g.jsx(qN,{className:"h-4 w-4"})})})]})}),g.jsxs("div",{className:"flex gap-2",children:[g.jsx(SC,{ref:wn,value:m,onChange:X=>y(X.target.value),onKeyDown:X=>{X.key==="Enter"&&!X.shiftKey&&(X.preventDefault(),un())},placeholder:"How can I help?",className:fe("flex-1 resize-none",Ee?"min-h-[3rem] max-h-40":"min-h-[2.5rem] max-h-32"),"aria-label":"Assistant message input"}),T?g.jsx(pt,{onClick:Ot,size:"icon",variant:"outline",className:"shrink-0",title:"Stop response (Esc)","aria-label":"Stop response",children:g.jsx(vM,{className:"h-4 w-4"})}):g.jsx(pt,{onClick:un,disabled:!m.trim(),size:"icon",className:"shrink-0",children:g.jsx(E1,{className:"h-4 w-4"})})]})]})})]})});return _?g.jsxs(g.Fragment,{children:[g.jsx(xw,{open:e,onOpenChange:n,children:g.jsxs(Vp,{side:"right",className:"w-96 h-full p-0 bg-sidebar border-l border-sidebar-border",children:[g.jsx($p,{className:"sr-only",children:g.jsx(Gp,{children:"Assistant"})}),Ut]})}),g.jsx(g0,{open:P,onOpenChange:ne,onSelectionConfirm:mt,initialSelection:H}),g.jsx(y0,{open:oe,onOpenChange:M,initialSelectedId:se?.id||null,onSelect:X=>{const de={id:X.id,name:X.name,content:X.content||""};Se(de),w(pe=>[...pe,{role:"system",content:`${de.name} selected.`}])}})]}):g.jsxs(g.Fragment,{children:[g.jsx("div",{className:fe("fixed inset-y-0 right-0 z-10 h-dvh bg-sidebar border-l border-sidebar-border transition-all duration-300 ease-in-out",e?"w-96":"w-0 overflow-hidden"),children:g.jsx("div",{className:"w-96 h-full",children:Ut})}),g.jsx(Tc,{open:Ee,onOpenChange:X=>{!X&&d||Qe(X)},children:g.jsxs(Zo,{className:fe("p-0 gap-0 [&>button]:hidden",d?"w-screen h-screen max-w-none max-h-none rounded-none":"max-w-[96vw] w-[96vw] max-h-[96vh] h-[96vh]"),onPointerDownOutside:d?X=>X.preventDefault():void 0,onEscapeKeyDown:d?X=>X.preventDefault():void 0,children:[g.jsx(Wo,{className:"sr-only",children:g.jsx(Jo,{children:"Assistant"})}),g.jsx("div",{className:"h-full w-full flex flex-col bg-background rounded-lg overflow-hidden",children:Ut})]})}),g.jsx(g0,{open:P,onOpenChange:ne,onSelectionConfirm:mt,initialSelection:H}),g.jsx(y0,{open:oe,onOpenChange:M,initialSelectedId:se?.id||null,onSelect:X=>{const de={id:X.id,name:X.name,content:X.content||""};Se(de),w(pe=>[...pe,{role:"system",content:`${de.name} selected.`}])}})]})}var Lh="rovingFocusGroup.onEntryFocus",uI={bubbles:!1,cancelable:!0},is="RovingFocusGroup",[gp,EC,cI]=_p(is),[fI,CC]=Qn(is,[cI]),[dI,hI]=fI(is),kC=x.forwardRef((e,n)=>g.jsx(gp.Provider,{scope:e.__scopeRovingFocusGroup,children:g.jsx(gp.Slot,{scope:e.__scopeRovingFocusGroup,children:g.jsx(pI,{...e,ref:n})})}));kC.displayName=is;var pI=x.forwardRef((e,n)=>{const{__scopeRovingFocusGroup:r,orientation:i,loop:o=!1,dir:s,currentTabStopId:c,defaultCurrentTabStopId:f,onCurrentTabStopIdChange:h,onEntryFocus:d,preventScrollOnEntryFocus:m=!1,...y}=e,b=x.useRef(null),w=Xe(n,b),C=Em(s),[k,T]=ol({prop:c,defaultProp:f??null,onChange:h,caller:is}),[A,_]=x.useState(!1),N=Ct(d),O=EC(r),z=x.useRef(!1),[j,$]=x.useState(0);return x.useEffect(()=>{const G=b.current;if(G)return G.addEventListener(Lh,N),()=>G.removeEventListener(Lh,N)},[N]),g.jsx(dI,{scope:r,orientation:i,dir:C,loop:o,currentTabStopId:k,onItemFocus:x.useCallback(G=>T(G),[T]),onItemShiftTab:x.useCallback(()=>_(!0),[]),onFocusableItemAdd:x.useCallback(()=>$(G=>G+1),[]),onFocusableItemRemove:x.useCallback(()=>$(G=>G-1),[]),children:g.jsx(Fe.div,{tabIndex:A||j===0?-1:0,"data-orientation":i,...y,ref:w,style:{outline:"none",...e.style},onMouseDown:me(e.onMouseDown,()=>{z.current=!0}),onFocus:me(e.onFocus,G=>{const ee=!z.current;if(G.target===G.currentTarget&&ee&&!A){const P=new CustomEvent(Lh,uI);if(G.currentTarget.dispatchEvent(P),!P.defaultPrevented){const ne=O().filter(L=>L.focusable),ae=ne.find(L=>L.active),le=ne.find(L=>L.id===k),Q=[ae,le,...ne].filter(Boolean).map(L=>L.ref.current);RC(Q,m)}}z.current=!1}),onBlur:me(e.onBlur,()=>_(!1))})})}),AC="RovingFocusGroupItem",TC=x.forwardRef((e,n)=>{const{__scopeRovingFocusGroup:r,focusable:i=!0,active:o=!1,tabStopId:s,children:c,...f}=e,h=$a(),d=s||h,m=hI(AC,r),y=m.currentTabStopId===d,b=EC(r),{onFocusableItemAdd:w,onFocusableItemRemove:C,currentTabStopId:k}=m;return x.useEffect(()=>{if(i)return w(),()=>C()},[i,w,C]),g.jsx(gp.ItemSlot,{scope:r,id:d,focusable:i,active:o,children:g.jsx(Fe.span,{tabIndex:y?0:-1,"data-orientation":m.orientation,...f,ref:n,onMouseDown:me(e.onMouseDown,T=>{i?m.onItemFocus(d):T.preventDefault()}),onFocus:me(e.onFocus,()=>m.onItemFocus(d)),onKeyDown:me(e.onKeyDown,T=>{if(T.key==="Tab"&&T.shiftKey){m.onItemShiftTab();return}if(T.target!==T.currentTarget)return;const A=yI(T,m.orientation,m.dir);if(A!==void 0){if(T.metaKey||T.ctrlKey||T.altKey||T.shiftKey)return;T.preventDefault();let N=b().filter(O=>O.focusable).map(O=>O.ref.current);if(A==="last")N.reverse();else if(A==="prev"||A==="next"){A==="prev"&&N.reverse();const O=N.indexOf(T.currentTarget);N=m.loop?vI(N,O+1):N.slice(O+1)}setTimeout(()=>RC(N))}}),children:typeof c=="function"?c({isCurrentTabStop:y,hasTabStop:k!=null}):c})})});TC.displayName=AC;var mI={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function gI(e,n){return n!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function yI(e,n,r){const i=gI(e.key,r);if(!(n==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(n==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return mI[i]}function RC(e,n=!1){const r=document.activeElement;for(const i of e)if(i===r||(i.focus({preventScroll:n}),document.activeElement!==r))return}function vI(e,n){return e.map((r,i)=>e[(n+i)%e.length])}var xI=kC,bI=TC,yp=["Enter"," "],wI=["ArrowDown","PageUp","Home"],_C=["ArrowUp","PageDown","End"],SI=[...wI,..._C],EI={ltr:[...yp,"ArrowRight"],rtl:[...yp,"ArrowLeft"]},CI={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ls="Menu",[Po,kI,AI]=_p(ls),[Qa,NC]=Qn(ls,[AI,Ec,CC]),zc=Ec(),MC=CC(),[TI,Za]=Qa(ls),[RI,os]=Qa(ls),jC=e=>{const{__scopeMenu:n,open:r=!1,children:i,dir:o,onOpenChange:s,modal:c=!0}=e,f=zc(n),[h,d]=x.useState(null),m=x.useRef(!1),y=Ct(s),b=Em(o);return x.useEffect(()=>{const w=()=>{m.current=!0,document.addEventListener("pointerdown",C,{capture:!0,once:!0}),document.addEventListener("pointermove",C,{capture:!0,once:!0})},C=()=>m.current=!1;return document.addEventListener("keydown",w,{capture:!0}),()=>{document.removeEventListener("keydown",w,{capture:!0}),document.removeEventListener("pointerdown",C,{capture:!0}),document.removeEventListener("pointermove",C,{capture:!0})}},[]),g.jsx(Vw,{...f,children:g.jsx(TI,{scope:n,open:r,onOpenChange:y,content:h,onContentChange:d,children:g.jsx(RI,{scope:n,onClose:x.useCallback(()=>y(!1),[y]),isUsingKeyboardRef:m,dir:b,modal:c,children:i})})})};jC.displayName=ls;var _I="MenuAnchor",Rm=x.forwardRef((e,n)=>{const{__scopeMenu:r,...i}=e,o=zc(r);return g.jsx($w,{...o,...i,ref:n})});Rm.displayName=_I;var _m="MenuPortal",[NI,DC]=Qa(_m,{forceMount:void 0}),OC=e=>{const{__scopeMenu:n,forceMount:r,children:i,container:o}=e,s=Za(_m,n);return g.jsx(NI,{scope:n,forceMount:r,children:g.jsx($t,{present:r||s.open,children:g.jsx(qo,{asChild:!0,container:o,children:i})})})};OC.displayName=_m;var Dn="MenuContent",[MI,Nm]=Qa(Dn),LC=x.forwardRef((e,n)=>{const r=DC(Dn,e.__scopeMenu),{forceMount:i=r.forceMount,...o}=e,s=Za(Dn,e.__scopeMenu),c=os(Dn,e.__scopeMenu);return g.jsx(Po.Provider,{scope:e.__scopeMenu,children:g.jsx($t,{present:i||s.open,children:g.jsx(Po.Slot,{scope:e.__scopeMenu,children:c.modal?g.jsx(jI,{...o,ref:n}):g.jsx(DI,{...o,ref:n})})})})}),jI=x.forwardRef((e,n)=>{const r=Za(Dn,e.__scopeMenu),i=x.useRef(null),o=Xe(n,i);return x.useEffect(()=>{const s=i.current;if(s)return ew(s)},[]),g.jsx(Mm,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:me(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),DI=x.forwardRef((e,n)=>{const r=Za(Dn,e.__scopeMenu);return g.jsx(Mm,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),OI=Wi("MenuContent.ScrollLock"),Mm=x.forwardRef((e,n)=>{const{__scopeMenu:r,loop:i=!1,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:c,disableOutsidePointerEvents:f,onEntryFocus:h,onEscapeKeyDown:d,onPointerDownOutside:m,onFocusOutside:y,onInteractOutside:b,onDismiss:w,disableOutsideScroll:C,...k}=e,T=Za(Dn,r),A=os(Dn,r),_=zc(r),N=MC(r),O=kI(r),[z,j]=x.useState(null),$=x.useRef(null),G=Xe(n,$,T.onContentChange),ee=x.useRef(0),P=x.useRef(""),ne=x.useRef(0),ae=x.useRef(null),le=x.useRef("right"),H=x.useRef(0),Q=C?Ip:x.Fragment,L=C?{as:OI,allowPinchZoom:!0}:void 0,K=J=>{const E=P.current+J,Z=O().filter(xe=>!xe.disabled),oe=document.activeElement,M=Z.find(xe=>xe.ref.current===oe)?.textValue,se=Z.map(xe=>xe.textValue),Se=GI(se,E,M),he=Z.find(xe=>xe.textValue===Se)?.ref.current;(function xe(Ee){P.current=Ee,window.clearTimeout(ee.current),Ee!==""&&(ee.current=window.setTimeout(()=>xe(""),1e3))})(E),he&&setTimeout(()=>he.focus())};x.useEffect(()=>()=>window.clearTimeout(ee.current),[]),$1();const U=x.useCallback(J=>le.current===ae.current?.side&&KI(J,ae.current?.area),[]);return g.jsx(MI,{scope:r,searchRef:P,onItemEnter:x.useCallback(J=>{U(J)&&J.preventDefault()},[U]),onItemLeave:x.useCallback(J=>{U(J)||($.current?.focus(),j(null))},[U]),onTriggerLeave:x.useCallback(J=>{U(J)&&J.preventDefault()},[U]),pointerGraceTimerRef:ne,onPointerGraceIntentChange:x.useCallback(J=>{ae.current=J},[]),children:g.jsx(Q,{...L,children:g.jsx(Pp,{asChild:!0,trapped:o,onMountAutoFocus:me(s,J=>{J.preventDefault(),$.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:c,children:g.jsx(Fo,{asChild:!0,disableOutsidePointerEvents:f,onEscapeKeyDown:d,onPointerDownOutside:m,onFocusOutside:y,onInteractOutside:b,onDismiss:w,children:g.jsx(xI,{asChild:!0,...N,dir:A.dir,orientation:"vertical",loop:i,currentTabStopId:z,onCurrentTabStopIdChange:j,onEntryFocus:me(h,J=>{A.isUsingKeyboardRef.current||J.preventDefault()}),preventScrollOnEntryFocus:!0,children:g.jsx(Gw,{role:"menu","aria-orientation":"vertical","data-state":ZC(T.open),"data-radix-menu-content":"",dir:A.dir,..._,...k,ref:G,style:{outline:"none",...k.style},onKeyDown:me(k.onKeyDown,J=>{const Z=J.target.closest("[data-radix-menu-content]")===J.currentTarget,oe=J.ctrlKey||J.altKey||J.metaKey,M=J.key.length===1;Z&&(J.key==="Tab"&&J.preventDefault(),!oe&&M&&K(J.key));const se=$.current;if(J.target!==se||!SI.includes(J.key))return;J.preventDefault();const he=O().filter(xe=>!xe.disabled).map(xe=>xe.ref.current);_C.includes(J.key)&&he.reverse(),VI(he)}),onBlur:me(e.onBlur,J=>{J.currentTarget.contains(J.target)||(window.clearTimeout(ee.current),P.current="")}),onPointerMove:me(e.onPointerMove,Io(J=>{const E=J.target,Z=H.current!==J.clientX;if(J.currentTarget.contains(E)&&Z){const oe=J.clientX>H.current?"right":"left";le.current=oe,H.current=J.clientX}}))})})})})})})});LC.displayName=Dn;var LI="MenuGroup",jm=x.forwardRef((e,n)=>{const{__scopeMenu:r,...i}=e;return g.jsx(Fe.div,{role:"group",...i,ref:n})});jm.displayName=LI;var zI="MenuLabel",zC=x.forwardRef((e,n)=>{const{__scopeMenu:r,...i}=e;return g.jsx(Fe.div,{...i,ref:n})});zC.displayName=zI;var ac="MenuItem",v0="menu.itemSelect",Pc=x.forwardRef((e,n)=>{const{disabled:r=!1,onSelect:i,...o}=e,s=x.useRef(null),c=os(ac,e.__scopeMenu),f=Nm(ac,e.__scopeMenu),h=Xe(n,s),d=x.useRef(!1),m=()=>{const y=s.current;if(!r&&y){const b=new CustomEvent(v0,{bubbles:!0,cancelable:!0});y.addEventListener(v0,w=>i?.(w),{once:!0}),Np(y,b),b.defaultPrevented?d.current=!1:c.onClose()}};return g.jsx(PC,{...o,ref:h,disabled:r,onClick:me(e.onClick,m),onPointerDown:y=>{e.onPointerDown?.(y),d.current=!0},onPointerUp:me(e.onPointerUp,y=>{d.current||y.currentTarget?.click()}),onKeyDown:me(e.onKeyDown,y=>{const b=f.searchRef.current!=="";r||b&&y.key===" "||yp.includes(y.key)&&(y.currentTarget.click(),y.preventDefault())})})});Pc.displayName=ac;var PC=x.forwardRef((e,n)=>{const{__scopeMenu:r,disabled:i=!1,textValue:o,...s}=e,c=Nm(ac,r),f=MC(r),h=x.useRef(null),d=Xe(n,h),[m,y]=x.useState(!1),[b,w]=x.useState("");return x.useEffect(()=>{const C=h.current;C&&w((C.textContent??"").trim())},[s.children]),g.jsx(Po.ItemSlot,{scope:r,disabled:i,textValue:o??b,children:g.jsx(bI,{asChild:!0,...f,focusable:!i,children:g.jsx(Fe.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":i||void 0,"data-disabled":i?"":void 0,...s,ref:d,onPointerMove:me(e.onPointerMove,Io(C=>{i?c.onItemLeave(C):(c.onItemEnter(C),C.defaultPrevented||C.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:me(e.onPointerLeave,Io(C=>c.onItemLeave(C))),onFocus:me(e.onFocus,()=>y(!0)),onBlur:me(e.onBlur,()=>y(!1))})})})}),PI="MenuCheckboxItem",IC=x.forwardRef((e,n)=>{const{checked:r=!1,onCheckedChange:i,...o}=e;return g.jsx(qC,{scope:e.__scopeMenu,checked:r,children:g.jsx(Pc,{role:"menuitemcheckbox","aria-checked":ic(r)?"mixed":r,...o,ref:n,"data-state":Om(r),onSelect:me(o.onSelect,()=>i?.(ic(r)?!0:!r),{checkForDefaultPrevented:!1})})})});IC.displayName=PI;var BC="MenuRadioGroup",[II,BI]=Qa(BC,{value:void 0,onValueChange:()=>{}}),UC=x.forwardRef((e,n)=>{const{value:r,onValueChange:i,...o}=e,s=Ct(i);return g.jsx(II,{scope:e.__scopeMenu,value:r,onValueChange:s,children:g.jsx(jm,{...o,ref:n})})});UC.displayName=BC;var HC="MenuRadioItem",FC=x.forwardRef((e,n)=>{const{value:r,...i}=e,o=BI(HC,e.__scopeMenu),s=r===o.value;return g.jsx(qC,{scope:e.__scopeMenu,checked:s,children:g.jsx(Pc,{role:"menuitemradio","aria-checked":s,...i,ref:n,"data-state":Om(s),onSelect:me(i.onSelect,()=>o.onValueChange?.(r),{checkForDefaultPrevented:!1})})})});FC.displayName=HC;var Dm="MenuItemIndicator",[qC,UI]=Qa(Dm,{checked:!1}),VC=x.forwardRef((e,n)=>{const{__scopeMenu:r,forceMount:i,...o}=e,s=UI(Dm,r);return g.jsx($t,{present:i||ic(s.checked)||s.checked===!0,children:g.jsx(Fe.span,{...o,ref:n,"data-state":Om(s.checked)})})});VC.displayName=Dm;var HI="MenuSeparator",$C=x.forwardRef((e,n)=>{const{__scopeMenu:r,...i}=e;return g.jsx(Fe.div,{role:"separator","aria-orientation":"horizontal",...i,ref:n})});$C.displayName=HI;var FI="MenuArrow",GC=x.forwardRef((e,n)=>{const{__scopeMenu:r,...i}=e,o=zc(r);return g.jsx(Yw,{...o,...i,ref:n})});GC.displayName=FI;var qI="MenuSub",[ZB,YC]=Qa(qI),bo="MenuSubTrigger",KC=x.forwardRef((e,n)=>{const r=Za(bo,e.__scopeMenu),i=os(bo,e.__scopeMenu),o=YC(bo,e.__scopeMenu),s=Nm(bo,e.__scopeMenu),c=x.useRef(null),{pointerGraceTimerRef:f,onPointerGraceIntentChange:h}=s,d={__scopeMenu:e.__scopeMenu},m=x.useCallback(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);return x.useEffect(()=>m,[m]),x.useEffect(()=>{const y=f.current;return()=>{window.clearTimeout(y),h(null)}},[f,h]),g.jsx(Rm,{asChild:!0,...d,children:g.jsx(PC,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":o.contentId,"data-state":ZC(r.open),...e,ref:dc(n,o.onTriggerChange),onClick:y=>{e.onClick?.(y),!(e.disabled||y.defaultPrevented)&&(y.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:me(e.onPointerMove,Io(y=>{s.onItemEnter(y),!y.defaultPrevented&&!e.disabled&&!r.open&&!c.current&&(s.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{r.onOpenChange(!0),m()},100))})),onPointerLeave:me(e.onPointerLeave,Io(y=>{m();const b=r.content?.getBoundingClientRect();if(b){const w=r.content?.dataset.side,C=w==="right",k=C?-5:5,T=b[C?"left":"right"],A=b[C?"right":"left"];s.onPointerGraceIntentChange({area:[{x:y.clientX+k,y:y.clientY},{x:T,y:b.top},{x:A,y:b.top},{x:A,y:b.bottom},{x:T,y:b.bottom}],side:w}),window.clearTimeout(f.current),f.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(y),y.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:me(e.onKeyDown,y=>{const b=s.searchRef.current!=="";e.disabled||b&&y.key===" "||EI[i.dir].includes(y.key)&&(r.onOpenChange(!0),r.content?.focus(),y.preventDefault())})})})});KC.displayName=bo;var XC="MenuSubContent",QC=x.forwardRef((e,n)=>{const r=DC(Dn,e.__scopeMenu),{forceMount:i=r.forceMount,...o}=e,s=Za(Dn,e.__scopeMenu),c=os(Dn,e.__scopeMenu),f=YC(XC,e.__scopeMenu),h=x.useRef(null),d=Xe(n,h);return g.jsx(Po.Provider,{scope:e.__scopeMenu,children:g.jsx($t,{present:i||s.open,children:g.jsx(Po.Slot,{scope:e.__scopeMenu,children:g.jsx(Mm,{id:f.contentId,"aria-labelledby":f.triggerId,...o,ref:d,align:"start",side:c.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:m=>{c.isUsingKeyboardRef.current&&h.current?.focus(),m.preventDefault()},onCloseAutoFocus:m=>m.preventDefault(),onFocusOutside:me(e.onFocusOutside,m=>{m.target!==f.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:me(e.onEscapeKeyDown,m=>{c.onClose(),m.preventDefault()}),onKeyDown:me(e.onKeyDown,m=>{const y=m.currentTarget.contains(m.target),b=CI[c.dir].includes(m.key);y&&b&&(s.onOpenChange(!1),f.trigger?.focus(),m.preventDefault())})})})})})});QC.displayName=XC;function ZC(e){return e?"open":"closed"}function ic(e){return e==="indeterminate"}function Om(e){return ic(e)?"indeterminate":e?"checked":"unchecked"}function VI(e){const n=document.activeElement;for(const r of e)if(r===n||(r.focus(),document.activeElement!==n))return}function $I(e,n){return e.map((r,i)=>e[(n+i)%e.length])}function GI(e,n,r){const o=n.length>1&&Array.from(n).every(d=>d===n[0])?n[0]:n,s=r?e.indexOf(r):-1;let c=$I(e,Math.max(s,0));o.length===1&&(c=c.filter(d=>d!==r));const h=c.find(d=>d.toLowerCase().startsWith(o.toLowerCase()));return h!==r?h:void 0}function YI(e,n){const{x:r,y:i}=e;let o=!1;for(let s=0,c=n.length-1;s<n.length;c=s++){const f=n[s],h=n[c],d=f.x,m=f.y,y=h.x,b=h.y;m>i!=b>i&&r<(y-d)*(i-m)/(b-m)+d&&(o=!o)}return o}function KI(e,n){if(!n)return!1;const r={x:e.clientX,y:e.clientY};return YI(r,n)}function Io(e){return n=>n.pointerType==="mouse"?e(n):void 0}var XI=jC,QI=Rm,ZI=OC,WI=LC,JI=jm,e8=zC,t8=Pc,n8=IC,r8=UC,a8=FC,i8=VC,l8=$C,o8=GC,s8=KC,u8=QC,Ic="DropdownMenu",[c8,WB]=Qn(Ic,[NC]),Wt=NC(),[f8,WC]=c8(Ic),JC=e=>{const{__scopeDropdownMenu:n,children:r,dir:i,open:o,defaultOpen:s,onOpenChange:c,modal:f=!0}=e,h=Wt(n),d=x.useRef(null),[m,y]=ol({prop:o,defaultProp:s??!1,onChange:c,caller:Ic});return g.jsx(f8,{scope:n,triggerId:$a(),triggerRef:d,contentId:$a(),open:m,onOpenChange:y,onOpenToggle:x.useCallback(()=>y(b=>!b),[y]),modal:f,children:g.jsx(XI,{...h,open:m,onOpenChange:y,dir:i,modal:f,children:r})})};JC.displayName=Ic;var ek="DropdownMenuTrigger",tk=x.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,disabled:i=!1,...o}=e,s=WC(ek,r),c=Wt(r);return g.jsx(QI,{asChild:!0,...c,children:g.jsx(Fe.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":i?"":void 0,disabled:i,...o,ref:dc(n,s.triggerRef),onPointerDown:me(e.onPointerDown,f=>{!i&&f.button===0&&f.ctrlKey===!1&&(s.onOpenToggle(),s.open||f.preventDefault())}),onKeyDown:me(e.onKeyDown,f=>{i||(["Enter"," "].includes(f.key)&&s.onOpenToggle(),f.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(f.key)&&f.preventDefault())})})})});tk.displayName=ek;var d8="DropdownMenuPortal",nk=e=>{const{__scopeDropdownMenu:n,...r}=e,i=Wt(n);return g.jsx(ZI,{...i,...r})};nk.displayName=d8;var rk="DropdownMenuContent",ak=x.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,o=WC(rk,r),s=Wt(r),c=x.useRef(!1);return g.jsx(WI,{id:o.contentId,"aria-labelledby":o.triggerId,...s,...i,ref:n,onCloseAutoFocus:me(e.onCloseAutoFocus,f=>{c.current||o.triggerRef.current?.focus(),c.current=!1,f.preventDefault()}),onInteractOutside:me(e.onInteractOutside,f=>{const h=f.detail.originalEvent,d=h.button===0&&h.ctrlKey===!0,m=h.button===2||d;(!o.modal||m)&&(c.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});ak.displayName=rk;var h8="DropdownMenuGroup",p8=x.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,o=Wt(r);return g.jsx(JI,{...o,...i,ref:n})});p8.displayName=h8;var m8="DropdownMenuLabel",ik=x.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,o=Wt(r);return g.jsx(e8,{...o,...i,ref:n})});ik.displayName=m8;var g8="DropdownMenuItem",lk=x.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,o=Wt(r);return g.jsx(t8,{...o,...i,ref:n})});lk.displayName=g8;var y8="DropdownMenuCheckboxItem",ok=x.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,o=Wt(r);return g.jsx(n8,{...o,...i,ref:n})});ok.displayName=y8;var v8="DropdownMenuRadioGroup",x8=x.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,o=Wt(r);return g.jsx(r8,{...o,...i,ref:n})});x8.displayName=v8;var b8="DropdownMenuRadioItem",sk=x.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,o=Wt(r);return g.jsx(a8,{...o,...i,ref:n})});sk.displayName=b8;var w8="DropdownMenuItemIndicator",uk=x.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,o=Wt(r);return g.jsx(i8,{...o,...i,ref:n})});uk.displayName=w8;var S8="DropdownMenuSeparator",ck=x.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,o=Wt(r);return g.jsx(l8,{...o,...i,ref:n})});ck.displayName=S8;var E8="DropdownMenuArrow",C8=x.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,o=Wt(r);return g.jsx(o8,{...o,...i,ref:n})});C8.displayName=E8;var k8="DropdownMenuSubTrigger",fk=x.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,o=Wt(r);return g.jsx(s8,{...o,...i,ref:n})});fk.displayName=k8;var A8="DropdownMenuSubContent",dk=x.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,o=Wt(r);return g.jsx(u8,{...o,...i,ref:n,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});dk.displayName=A8;var T8=JC,R8=tk,_8=nk,hk=ak,pk=ik,mk=lk,gk=ok,yk=sk,vk=uk,xk=ck,bk=fk,wk=dk;const N8=T8,M8=R8,j8=x.forwardRef(({className:e,inset:n,children:r,...i},o)=>g.jsxs(bk,{ref:o,className:fe("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",n&&"pl-8",e),...i,children:[r,g.jsx(sN,{className:"ml-auto h-4 w-4"})]}));j8.displayName=bk.displayName;const D8=x.forwardRef(({className:e,...n},r)=>g.jsx(wk,{ref:r,className:fe("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));D8.displayName=wk.displayName;const Sk=x.forwardRef(({className:e,sideOffset:n=4,...r},i)=>g.jsx(_8,{children:g.jsx(hk,{ref:i,sideOffset:n,className:fe("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})}));Sk.displayName=hk.displayName;const Ek=x.forwardRef(({className:e,inset:n,...r},i)=>g.jsx(mk,{ref:i,className:fe("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n&&"pl-8",e),...r}));Ek.displayName=mk.displayName;const O8=x.forwardRef(({className:e,children:n,checked:r,...i},o)=>g.jsxs(gk,{ref:o,className:fe("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:r,...i,children:[g.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:g.jsx(vk,{children:g.jsx(Op,{className:"h-4 w-4"})})}),n]}));O8.displayName=gk.displayName;const L8=x.forwardRef(({className:e,children:n,...r},i)=>g.jsxs(yk,{ref:i,className:fe("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[g.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:g.jsx(vk,{children:g.jsx(cN,{className:"h-2 w-2 fill-current"})})}),n]}));L8.displayName=yk.displayName;const Ck=x.forwardRef(({className:e,inset:n,...r},i)=>g.jsx(pk,{ref:i,className:fe("px-2 py-1.5 text-sm font-semibold",n&&"pl-8",e),...r}));Ck.displayName=pk.displayName;const kk=x.forwardRef(({className:e,...n},r)=>g.jsx(xk,{ref:r,className:fe("-mx-1 my-1 h-px bg-muted",e),...n}));kk.displayName=xk.displayName;function z8(){const[e,n]=x.useState(!1),[r,i]=x.useState(null),[o,s]=x.useState(null),[c,f]=x.useState(null),[h,d]=x.useState("Coconut"),[m,y]=x.useState(null),[b,w]=x.useState(null),[C,k]=x.useState(!1),T=on(),A=Uo(),_=T.pathname,{user:N,logout:O,authEnabled:z}=Y0(),j=new URLSearchParams(T.search),$=j.get("hideNav")==="true",G=j.get("hideAssistant")==="true",ee=j.get("expandAssistant")==="true",P=j.get("fullScreenNoEscape")==="true";x.useEffect(()=>{if(G){n(!1);return}if(P||ee){n(!0),k(!0);return}const H=localStorage.getItem("ai-sidebar-open");H!==null&&n(JSON.parse(H))},[]),x.useEffect(()=>{const H=Q=>{const L=Q.detail;L&&(n(!0),localStorage.setItem("ai-sidebar-open","true"),y(L))};return window.addEventListener("discuss-in-chat",H),()=>{window.removeEventListener("discuss-in-chat",H)}},[]),x.useEffect(()=>{const H=Q=>{const L=Q.detail;L?.prompt&&(n(!0),localStorage.setItem("ai-sidebar-open","true"),w(L.prompt))};return window.addEventListener("customize-prompt-in-assistant",H),()=>{window.removeEventListener("customize-prompt-in-assistant",H)}},[]),x.useEffect(()=>{const H=()=>{n(!0),localStorage.setItem("ai-sidebar-open","true"),k(!0)};return window.addEventListener("open-assistant-expanded",H),()=>{window.removeEventListener("open-assistant-expanded",H)}},[]),x.useEffect(()=>{const H=Q=>{if((Q.metaKey||Q.ctrlKey)&&Q.shiftKey&&Q.key==="l"){Q.preventDefault(),e||(n(!0),localStorage.setItem("ai-sidebar-open","true")),window.dispatchEvent(new CustomEvent("toggle-assistant-fullscreen"));return}(Q.metaKey||Q.ctrlKey)&&Q.key==="l"&&(Q.preventDefault(),ne())};return window.addEventListener("keydown",H),()=>{window.removeEventListener("keydown",H)}},[e]),x.useEffect(()=>{const H=async()=>{try{const L=await fetch(`${xt}/api/v1/config`);if(L.ok){const K=await L.json();if(K.success&&K.data?.coconut){const{firstName:U,lastName:J}=K.data.coconut;U&&J?d(`${U} ${J}`):(U||J)&&d(U||J)}}}catch(L){console.error("Error fetching config:",L)}};H();const Q=()=>{H()};return window.addEventListener("config-updated",Q),()=>{window.removeEventListener("config-updated",Q)}},[]);const ne=()=>{const H=!e;n(H),localStorage.setItem("ai-sidebar-open",JSON.stringify(H))},ae=async()=>{try{await O(),Hh({title:"Logged out",description:"You have been logged out successfully"}),A("/login")}catch(H){console.error("Logout error:",H),Hh({title:"Error",description:"Failed to logout",variant:"destructive"})}};x.useEffect(()=>{(async()=>{try{const Q=await fetch(`${xt}/api/v1/context/project`);if(Q.ok){const L=await Q.text();s(L)}else s(null)}catch(Q){console.error("Error fetching project context:",Q),s(null)}if(_.includes("/context/architecture")||_.includes("/tasks"))try{const Q=await fetch(`${xt}/api/v1/context/architecture`);if(Q.ok){const L=await Q.text();f(L)}else f(null)}catch(Q){console.error("Error fetching architecture context:",Q),f(null)}else f(null);if(_.includes("/tasks")&&(_.includes("/edit")||_.match(/\/tasks\/[^/]+$/))){const L=_.match(/\/tasks\/([^/]+)(?:\/edit)?/)?.[1];if(L)try{const U=await(await fetch(`${xt}/api/v1/tasks/${L}`)).json();if(U.success){const J=U.data,E=`Task ID: ${L}
478
- Title: ${J.title||J.intent}
479
- Status: ${J.status}
480
- Priority: ${J.metadata?.priority||"medium"}
481
- Author: ${J.author?.name}
482
- Description:
483
- ${J.content||""}`;i(E)}else i(null)}catch(K){console.error("Error fetching task:",K),i(null)}}else i(null)})()},[_]);const le=()=>{if(_.includes("/tasks")){const Q=_.match(/\/tasks\/([^/]+)(?:\/edit)?/)?.[1];if(_.includes("/new"))return{type:"tasks-new",content:null};if(Q){const K=["project.md",`${Q}.md`].join(", "),U=[o&&`=== PROJECT CONTEXT ===
484
- ${o}`,r&&`=== TASK CONTENT ===
485
- ${r}`].filter(Boolean),J=U.length>0?U.join(`
486
-
487
- `):null;return{type:_.includes("/edit")?"tasks-edit":"tasks-view",content:J,displayId:Q,contextFiles:K}}return{type:"tasks",content:o,contextFiles:"project.md"}}return _.includes("/context")?_.includes("/architecture")?{type:"context-architecture",content:c,contextFiles:"architecture.md"}:_.includes("/project")?{type:"context-project",content:o,contextFiles:"project.md"}:_.includes("/knowledge")?{type:"context-knowledge",content:null}:{type:"context",content:null}:_.includes("/settings")?_.includes("/skills")?{type:"settings-skills",content:null}:_.includes("/integrations")?{type:"settings-integrations",content:null}:_.includes("/prompts")?{type:"settings-prompts",content:null}:_.includes("/rules")?{type:"settings-rules",content:null}:_.includes("/user")?{type:"settings-user",content:null}:{type:"settings",content:null}:_.includes("/terminal")?{type:"terminal",content:null}:{type:"dashboard",content:null}};return g.jsx(lS,{defaultOpen:!$,children:g.jsxs("div",{className:"flex min-h-screen w-full overflow-hidden",children:[g.jsx(L4,{}),g.jsxs(uS,{className:fe("flex-1 min-w-0 transition-all duration-300 ease-in-out",e&&"mr-96"),children:[g.jsxs("header",{className:"flex h-16 shrink-0 items-center gap-2 border-b border-content-border px-4 bg-background",children:[g.jsx(sS,{className:"-ml-1"}),g.jsxs("div",{className:"flex items-center justify-between flex-1",children:[g.jsx("h1",{className:"text-lg font-semibold",children:h||"Coconut"}),g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(pt,{onClick:ne,size:"icon",className:"h-8 w-8 rounded-full",children:g.jsx(Iu,{className:"h-4 w-4"})}),z&&N&&g.jsxs(N8,{children:[g.jsx(M8,{asChild:!0,children:g.jsx(pt,{size:"icon",variant:"outline",className:"h-8 w-8 rounded-full",children:g.jsx(RM,{className:"h-4 w-4"})})}),g.jsxs(Sk,{align:"end",children:[g.jsx(Ck,{children:g.jsxs("div",{className:"flex flex-col space-y-1",children:[g.jsx("p",{className:"text-sm font-medium leading-none",children:N.name}),g.jsx("p",{className:"text-xs leading-none text-muted-foreground",children:N.email})]})}),g.jsx(kk,{}),g.jsxs(Ek,{onClick:ae,children:[g.jsx(PN,{className:"mr-2 h-4 w-4"}),"Logout"]})]})]})]})]})]}),g.jsx("main",{className:"flex flex-1 flex-col gap-4 p-4 overflow-auto bg-content-background",children:g.jsx(Cp,{})})]}),g.jsx(sI,{isOpen:e,onToggle:ne,contextInfo:le(),discussDocument:m,onDiscussDocumentHandled:()=>y(null),pendingPrompt:b,onPendingPromptHandled:()=>w(null),openInFullScreen:C,onFullScreenHandled:()=>k(!1),fullScreenNoEscape:P})]})})}const P8=[{title:"Coconut Profile",href:"/settings/user",icon:CM,description:"Manage the Coconut's profile information."},{title:"User Preferences",href:"/settings/preferences",icon:fM,description:"Configure individual workspace preferences"},{title:"Authentication",href:"/settings/authentication",icon:uM,description:"Configure authentication and user access"},{title:"API Keys",href:"/settings/api-keys",icon:ON,description:"Manage API keys for programmatic access"},{title:"Symlinks",href:"/settings/rules",icon:_o,description:"Manage symlinks for easy access to project rules and configurations"},{title:"AI & LLM",href:"/settings/integrations",icon:WN,description:"Connect Coconut to LLM providers and automation hooks"},{title:"Git",href:"/settings/git",icon:S1,description:"Configure repository defaults like worktree paths"},{title:"MCP",href:"/settings/mcp",icon:GN,description:"Model Context Protocol configuration and settings"},{title:"Notifications",href:"/settings/notifications",icon:W_,description:"Configure Slack notifications for Coconut events"}];function I8(){const e=on();return g.jsxs("div",{className:"flex flex-col space-y-8 lg:flex-row lg:space-x-12 lg:space-y-0",children:[g.jsx("aside",{className:"lg:w-1/5",children:g.jsx("nav",{className:"flex overflow-x-auto pb-2 gap-1 lg:flex-col lg:gap-0 lg:space-y-1 lg:overflow-visible lg:pb-0",children:P8.map(n=>g.jsxs($n,{to:n.href,className:fe("inline-flex items-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 hover:text-accent-foreground h-9 px-2 sm:px-3 lg:px-4 py-2 hover:bg-accent justify-start flex-shrink-0",e.pathname===n.href?"bg-accent text-accent-foreground":"text-muted-foreground"),children:[g.jsx(n.icon,{className:"h-4 w-4 lg:mr-2"}),g.jsx("span",{className:"hidden lg:inline",children:n.title})]},n.href))})}),g.jsx("div",{className:"flex-1 lg:max-w-2xl",children:g.jsx("div",{className:"space-y-6",children:g.jsx(Cp,{})})})]})}const B8=[{title:"Inbox",href:"/mail/inbox",icon:jN,description:"Incoming emails"},{title:"Read",href:"/mail/read",icon:BN,description:"Emails you've already read"},{title:"Sent",href:"/mail/sent",icon:E1,description:"Emails you've sent"}];function U8(){const e=on();return g.jsxs("div",{className:"space-y-6",children:[g.jsxs("div",{children:[g.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:"Mail"}),g.jsx("p",{className:"text-muted-foreground",children:"View and manage mail"})]}),g.jsxs("div",{className:"flex flex-col space-y-8 lg:flex-row lg:space-x-12 lg:space-y-0",children:[g.jsx("aside",{className:"lg:w-1/5",children:g.jsx("nav",{className:"flex overflow-x-auto pb-2 gap-1 lg:flex-col lg:gap-0 lg:space-y-1 lg:overflow-visible lg:pb-0",children:B8.map(n=>g.jsxs($n,{to:n.href,className:fe("inline-flex items-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 hover:text-accent-foreground h-9 px-2 sm:px-3 lg:px-4 py-2 hover:bg-accent justify-start flex-shrink-0",e.pathname===n.href?"bg-accent text-accent-foreground":"text-muted-foreground"),children:[g.jsx(n.icon,{className:"h-4 w-4 lg:mr-2"}),g.jsx("span",{className:"hidden lg:inline",children:n.title})]},n.href))})}),g.jsx("div",{className:"flex-1",children:g.jsx("div",{className:"space-y-6",children:g.jsx(Cp,{})})})]})]})}const H8=x.lazy(()=>De(()=>import("./DashboardPage-B3HR1UM7.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]))),F8=x.lazy(()=>De(()=>import("./LoginPage-Cc1Ac2j4.js"),__vite__mapDeps([21,4,1,22]))),q8=x.lazy(()=>De(()=>import("./CallbackPage-Bz4m3_W8.js"),__vite__mapDeps([23,12,24]))),V8=x.lazy(()=>De(()=>import("./TasksPage-CXeTMpgy.js"),__vite__mapDeps([25,1,2,5,6,7,3,14,13]))),$8=x.lazy(()=>De(()=>import("./TaskDetailPage-DlmG1kZR.js"),__vite__mapDeps([26,27,1,2,4,5,6,7,3,28,29,30,31,18,19,32]))),G8=x.lazy(()=>De(()=>import("./TaskEditPage-BnpNeed_.js"),__vite__mapDeps([33,4,5,6,7,1,34,35,36,37,38,2,28])).then(e=>({default:e.TaskEditPage}))),Y8=x.lazy(()=>De(()=>import("./NewTaskPage-CSlncpI5.js"),__vite__mapDeps([39,1,4,34,6,35,5,7,36,37,38,2,28])).then(e=>({default:e.NewTaskPage}))),K8=x.lazy(()=>De(()=>import("./TerminalPage-BLcPt381.js"),__vite__mapDeps([40,1,8,9,10,11,41,42,7,18,43,44]))),X8=x.lazy(()=>De(()=>import("./TerminalSessionPage-CeAd8IAy.js"),__vite__mapDeps([45,1,2,5,6,7,46,36,4,8,10,11,47,48,15,41,18,49,32,44]))),Q8=x.lazy(()=>De(()=>import("./UtilitiesPage-BPX_Unxu.js"),__vite__mapDeps([50,1,8,43,18]))),Z8=x.lazy(()=>De(()=>import("./CodePage-BuO2K_xx.js"),__vite__mapDeps([51,1,2,8,9,10,11,5,6,7,48,41,42,18,15]))),W8=x.lazy(()=>De(()=>import("./SkillsPage-CwarkJmZ.js"),__vite__mapDeps([52,1,27,53,2,54,14]))),J8=x.lazy(()=>De(()=>import("./SkillDetailPage-sJg-L8A8.js"),__vite__mapDeps([55,1,2,28]))),eB=x.lazy(()=>De(()=>import("./NewSkillPage-BEn18f2A.js"),__vite__mapDeps([56,1,4,2,27,28,29]))),tB=x.lazy(()=>De(()=>import("./SkillEditPage-BksV7GmD.js"),__vite__mapDeps([57,1,4,2,27,28,29]))),nB=x.lazy(()=>De(()=>import("./ResourcesPage-BmOpgt3L.js"),__vite__mapDeps([58,1,4,2,27,5,6,7,54,59,60,13,61,14]))),rB=x.lazy(()=>De(()=>import("./ResourceDetailPage-DDYKQxpM.js"),__vite__mapDeps([62,2,27,28,59,60,61]))),aB=x.lazy(()=>De(()=>import("./KnowledgePage-_gZhpTe3.js"),__vite__mapDeps([63,1,2,27,53,54,14,30,64,47]))),iB=x.lazy(()=>De(()=>import("./KnowledgeDetailPage-CR9c4_WD.js"),__vite__mapDeps([65,1,2,27,28,61,17]))),lB=x.lazy(()=>De(()=>import("./KnowledgeEditPage-DhrF6UPg.js"),__vite__mapDeps([66,1,4,34,6,35,38,2,67,17,28]))),oB=x.lazy(()=>De(()=>import("./NewKnowledgePage-BEVMYnKG.js"),__vite__mapDeps([68,1,4,34,6,35,38,2,67,17,28]))),sB=x.lazy(()=>De(()=>import("./ProjectPage-D8OX1GKt.js"),__vite__mapDeps([69,1,2,27,17]))),uB=x.lazy(()=>De(()=>import("./ProjectEditPage-X0-4mEAS.js"),__vite__mapDeps([70,1,4,5,6,7,34,35,28,20]))),cB=x.lazy(()=>De(()=>import("./ArchitecturePage-Dtm0OAac.js"),__vite__mapDeps([71,1,27]))),fB=x.lazy(()=>De(()=>import("./ArchitectureEditPage-BWKyKi3T.js"),__vite__mapDeps([72,1,4,34,6,35,28,20]))),dB=x.lazy(()=>De(()=>import("./RolePage-CcdEUjSm.js"),__vite__mapDeps([73,1,27]))),hB=x.lazy(()=>De(()=>import("./RoleEditPage-Ccfu1tn1.js"),__vite__mapDeps([74,1,4,5,6,7,34,35,28,20]))),pB=x.lazy(()=>De(()=>import("./IdentityPage-YCkmdyzR.js"),__vite__mapDeps([75,1,4,2,5,6,7,76,22,49,29]))),x0=x.lazy(()=>De(()=>import("./UserSettingsPage-BRafqkiD.js"),__vite__mapDeps([77,1,4,29]))),mB=x.lazy(()=>De(()=>import("./AuthSettingsPage-D0MQlHyh.js"),__vite__mapDeps([78,1,4,5,6,7,79,2,80]))),gB=x.lazy(()=>De(()=>import("./ApiKeysSettingsPage-BhaH6ZYP.js"),__vite__mapDeps([81,1,4,2,76,31,80]))),yB=x.lazy(()=>De(()=>import("./SkillsSettingsPage-DTnBlBdE.js"),__vite__mapDeps([82,1,17]))),vB=x.lazy(()=>De(()=>import("./IntegrationsSettingsPage-Z8xCUmX9.js"),__vite__mapDeps([83,1,4,5,6,7]))),xB=x.lazy(()=>De(()=>import("./GitSettingsPage-CRWcjgVI.js"),__vite__mapDeps([84,1,4,46,41,17,12,24]))),bB=x.lazy(()=>De(()=>import("./McpSettingsPage-DYZ0QNbp.js"),__vite__mapDeps([85,1,4,2,79,76,53,54,14,80,20]))),wB=x.lazy(()=>De(()=>import("./PromptsSettingsPage-Chc4da1S.js"),__vite__mapDeps([86,1,4,5,6,7,2,49,60]))),SB=x.lazy(()=>De(()=>import("./RulesSettingsPage-Cz1g_eAj.js"),__vite__mapDeps([87,1,4,2]))),EB=x.lazy(()=>De(()=>import("./NotificationsSettingsPage-C9YnfRlj.js"),__vite__mapDeps([88,1,4,79,5,6,7,32,12,24,41]))),CB=x.lazy(()=>De(()=>import("./GitPage-Dm36PRw_.js"),__vite__mapDeps([89,1,4,22,12,24,47,64,41,80,7,16]))),kB=x.lazy(()=>De(()=>import("./SchedulePage-CGxZHEL-.js"),__vite__mapDeps([90,1,2,5,6,7,4,79,22,41,18,91,19]))),AB=x.lazy(()=>De(()=>import("./JobDetailPage-B8Za82RA.js"),__vite__mapDeps([92,27,1,2,28,18,29,41,7,91,19]))),TB=x.lazy(()=>De(()=>import("./UserPreferencesPage-BNwEqlRW.js"),__vite__mapDeps([93,1,4,5,6,7]))),RB=x.lazy(()=>De(()=>import("./ActivityPage-uL-Qknui.js"),__vite__mapDeps([94,1,2,41]))),_B=x.lazy(()=>De(()=>import("./MailInboxPage-B_h1Kz4D.js"),__vite__mapDeps([95,1,2,96,19,41,97,7]))),NB=x.lazy(()=>De(()=>import("./MailReadPage-_q-xk_cX.js"),__vite__mapDeps([98,1,2,96,19,41,97,7]))),MB=x.lazy(()=>De(()=>import("./MailSentPage-Dj63oQ5D.js"),__vite__mapDeps([99,1,2,41,97,7]))),b0=x.lazy(()=>De(()=>import("./NotFoundPage-C4x0lGai.js"),[]));function jB(){return g.jsxs(KR,{children:[g.jsx(oR,{children:g.jsx(x.Suspense,{fallback:g.jsx(xj,{}),children:g.jsxs(PT,{children:[g.jsx(ke,{path:"/login",element:g.jsx(F8,{})}),g.jsx(ke,{path:"/auth/github/callback",element:g.jsx(q8,{})}),g.jsxs(ke,{path:"/",element:g.jsx(vj,{children:g.jsx(z8,{})}),children:[g.jsx(ke,{index:!0,element:g.jsx(H8,{})}),g.jsx(ke,{path:"tasks",element:g.jsx(V8,{})}),g.jsx(ke,{path:"tasks/new",element:g.jsx(Y8,{})}),g.jsx(ke,{path:"tasks/:id",element:g.jsx($8,{})}),g.jsx(ke,{path:"tasks/:id/edit",element:g.jsx(G8,{})}),g.jsx(ke,{path:"agents",element:g.jsx(Z8,{})}),g.jsx(ke,{path:"utilities",element:g.jsx(Q8,{})}),g.jsx(ke,{path:"terminal",element:g.jsx(K8,{})}),g.jsx(ke,{path:"terminal/:taskId",element:g.jsx(X8,{})}),g.jsx(ke,{path:"git",element:g.jsx(CB,{})}),g.jsx(ke,{path:"schedule",element:g.jsx(kB,{})}),g.jsx(ke,{path:"schedule/:id",element:g.jsx(AB,{})}),g.jsx(ke,{path:"identity",element:g.jsx(pB,{})}),g.jsx(ke,{path:"skills",element:g.jsx(W8,{})}),g.jsx(ke,{path:"skills/new",element:g.jsx(eB,{})}),g.jsx(ke,{path:"skills/:id",element:g.jsx(J8,{})}),g.jsx(ke,{path:"skills/:id/edit",element:g.jsx(tB,{})}),g.jsx(ke,{path:"activity",element:g.jsx(RB,{})}),g.jsx(ke,{path:"resources",element:g.jsx(nB,{})}),g.jsx(ke,{path:"resources/:id",element:g.jsx(rB,{})}),g.jsx(ke,{path:"context/project",element:g.jsx(sB,{})}),g.jsx(ke,{path:"context/project/edit",element:g.jsx(uB,{})}),g.jsx(ke,{path:"context/architecture",element:g.jsx(cB,{})}),g.jsx(ke,{path:"context/architecture/edit",element:g.jsx(fB,{})}),g.jsx(ke,{path:"context/role",element:g.jsx(dB,{})}),g.jsx(ke,{path:"context/role/edit",element:g.jsx(hB,{})}),g.jsx(ke,{path:"knowledge",element:g.jsx(aB,{})}),g.jsx(ke,{path:"knowledge/new",element:g.jsx(oB,{})}),g.jsx(ke,{path:"knowledge/:filename",element:g.jsx(iB,{})}),g.jsx(ke,{path:"knowledge/:filename/edit",element:g.jsx(lB,{})}),g.jsxs(ke,{path:"mail",element:g.jsx(U8,{}),children:[g.jsx(ke,{index:!0,element:g.jsx(j0,{to:"inbox",replace:!0})}),g.jsx(ke,{path:"inbox",element:g.jsx(_B,{})}),g.jsx(ke,{path:"read",element:g.jsx(NB,{})}),g.jsx(ke,{path:"sent",element:g.jsx(MB,{})})]}),g.jsxs(ke,{path:"settings",element:g.jsx(I8,{}),children:[g.jsx(ke,{index:!0,element:g.jsx(x0,{})}),g.jsx(ke,{path:"user",element:g.jsx(x0,{})}),g.jsx(ke,{path:"preferences",element:g.jsx(TB,{})}),g.jsx(ke,{path:"authentication",element:g.jsx(mB,{})}),g.jsx(ke,{path:"api-keys",element:g.jsx(gB,{})}),g.jsx(ke,{path:"skills",element:g.jsx(yB,{})}),g.jsx(ke,{path:"integrations",element:g.jsx(vB,{})}),g.jsx(ke,{path:"git",element:g.jsx(xB,{})}),g.jsx(ke,{path:"mcp",element:g.jsx(bB,{})}),g.jsx(ke,{path:"prompts",element:g.jsx(wB,{})}),g.jsx(ke,{path:"rules",element:g.jsx(SB,{})}),g.jsx(ke,{path:"notifications",element:g.jsx(EB,{})})]}),g.jsx(ke,{path:"*",element:g.jsx(b0,{})})]}),g.jsx(ke,{path:"*",element:g.jsx(b0,{})})]})})}),g.jsx(yj,{})]})}qA.createRoot(document.getElementById("root")).render(g.jsx(x.StrictMode,{children:g.jsx(jB,{})}));export{RM as $,xt as A,pt as B,sN as C,Tc as D,SM as E,_o as F,S1 as G,YE as H,U1 as I,KE as J,VB as K,$n as L,ah as M,QE as N,ZE as O,eM as P,XE as Q,JE as R,zo as S,bM as T,WE as U,qB as V,yS as W,Yi as X,gM as Y,DM as Z,as as _,JR as a,Vw as a$,nM as a0,gj as a1,N8 as a2,M8 as a3,Sk as a4,Ck as a5,kk as a6,Ek as a7,IB as a8,iM as a9,mE as aA,fa as aB,cm as aC,i0 as aD,Gt as aE,$B as aF,Eo as aG,bn as aH,_c as aI,tl as aJ,Ae as aK,He as aL,Ve as aM,at as aN,Ka as aO,GB as aP,YB as aQ,T3 as aR,M5 as aS,X6 as aT,N5 as aU,uc as aV,lc as aW,C6 as aX,r9 as aY,E6 as aZ,Ec as a_,O8 as aa,Vu as ab,NM as ac,GR as ad,Op as ae,dN as af,ol as ag,Qn as ah,_p as ai,me as aj,Fe as ak,Xe as al,Em as am,U9 as an,Ow as ao,O9 as ap,Kx as aq,XP as ar,v9 as as,s9 as at,bN as au,F5 as av,X5 as aw,k3 as ax,Lo as ay,U5 as az,Zo as b,$a as b0,$w as b1,$t as b2,qo as b3,Yw as b4,ew as b5,Ip as b6,Wi as b7,$1 as b8,Pp as b9,E_ as bA,Ct as bB,cN as bC,E1 as bD,W_ as bE,PB as bF,tN as bG,AN as bH,Q_ as bI,cb as bJ,jN as bK,BN as bL,vM as bM,Fo as ba,Gw as bb,CC as bc,bI as bd,xI as be,F1 as bf,S6 as bg,J6 as bh,g6 as bi,or as bj,De as bk,s4 as bl,u4 as bm,c4 as bn,HB as bo,rS as bp,FB as bq,DB as br,zB as bs,GN as bt,HN as bu,q1 as bv,Bi as bw,ON as bx,mc as by,cr as bz,Te as c,Wo as d,fe as e,Jo as f,xo as g,Iu as h,uM as i,g as j,So as k,oM as l,rN as m,lN as n,SC as o,yh as p,on as q,x as r,Y0 as s,Yu as t,Uo as u,Hh as v,LB as w,OB as x,M9 as y,j9 as z};