@ohmykreee/dsh-remote-control 0.0.0-stage → 1.0.2

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 (373) hide show
  1. package/AGENTS.md +556 -0
  2. package/INSTALLATION.md +310 -0
  3. package/LICENSE +21 -0
  4. package/README.md +195 -2
  5. package/client.js +3 -0
  6. package/components.json +20 -0
  7. package/cordis.patch.yml +3 -0
  8. package/docs/README.en.md +196 -0
  9. package/docs/screenshots/en/overview.png +0 -0
  10. package/docs/screenshots/en/question.png +0 -0
  11. package/docs/screenshots/zh/overview.png +0 -0
  12. package/docs/screenshots/zh/question.png +0 -0
  13. package/icon.svg +24 -0
  14. package/index.js +2 -0
  15. package/lib/account.js +1 -0
  16. package/lib/app-mapping.js +1 -0
  17. package/lib/i18n.js +1 -0
  18. package/lib/media-enrich.js +1 -0
  19. package/lib/notifications.js +1 -0
  20. package/lib/performance.js +1 -0
  21. package/lib/platform/index.js +1 -0
  22. package/lib/probe-adapter.js +1 -0
  23. package/lib/probe-daemon.js +1 -0
  24. package/lib/probe.js +1 -0
  25. package/lib/qr.js +1 -0
  26. package/lib/runtime.js +1 -0
  27. package/lib/service.js +1 -0
  28. package/lib/sessions.js +1 -0
  29. package/lib/settings.js +1 -0
  30. package/lib/types.js +1 -0
  31. package/lib/util.js +1 -0
  32. package/lib/weather.js +1 -0
  33. package/lib/ws.js +1 -0
  34. package/locale/en.json +6 -0
  35. package/locale/zh.json +6 -0
  36. package/package.json +118 -4
  37. package/scripts/browser-shot.mjs +217 -0
  38. package/scripts/build-dsh.mjs +228 -0
  39. package/scripts/build-rust.mjs +319 -0
  40. package/scripts/build-web.mjs +17 -0
  41. package/scripts/check-npm-package.mjs +322 -0
  42. package/scripts/mock-preview.py +574 -0
  43. package/scripts/screenshot-compose.py +89 -0
  44. package/scripts/screenshot-device.sh +75 -0
  45. package/src/dsh/client/api.ts +68 -0
  46. package/src/dsh/client/i18n.ts +573 -0
  47. package/src/dsh/client/icons.ts +56 -0
  48. package/src/dsh/client/index.ts +95 -0
  49. package/src/dsh/client/logic.ts +310 -0
  50. package/src/dsh/client/panel.ts +483 -0
  51. package/src/dsh/client/sections/apps.ts +40 -0
  52. package/src/dsh/client/sections/balance.ts +38 -0
  53. package/src/dsh/client/sections/connection.ts +97 -0
  54. package/src/dsh/client/sections/notifications.ts +43 -0
  55. package/src/dsh/client/sections/pomodoro.ts +184 -0
  56. package/src/dsh/client/sections/preferences.ts +138 -0
  57. package/src/dsh/client/sections/system.ts +120 -0
  58. package/src/dsh/client/sections/weather.ts +276 -0
  59. package/src/dsh/client/styles.ts +1119 -0
  60. package/src/dsh/client/types.ts +366 -0
  61. package/src/dsh/client/ui.ts +142 -0
  62. package/src/dsh/index.ts +108 -0
  63. package/src/dsh/lib/account.ts +520 -0
  64. package/src/dsh/lib/app-mapping.ts +366 -0
  65. package/src/dsh/lib/i18n.ts +82 -0
  66. package/src/dsh/lib/media-enrich.ts +202 -0
  67. package/src/dsh/lib/notifications.ts +322 -0
  68. package/src/dsh/lib/performance.ts +279 -0
  69. package/src/dsh/lib/platform/index.ts +43 -0
  70. package/src/dsh/lib/probe-adapter.ts +275 -0
  71. package/src/dsh/lib/probe-daemon.ts +359 -0
  72. package/src/dsh/lib/probe.ts +395 -0
  73. package/src/dsh/lib/qr.ts +42 -0
  74. package/src/dsh/lib/runtime.ts +126 -0
  75. package/src/dsh/lib/service.ts +1645 -0
  76. package/src/dsh/lib/sessions.ts +907 -0
  77. package/src/dsh/lib/settings.ts +468 -0
  78. package/src/dsh/lib/types.ts +231 -0
  79. package/src/dsh/lib/util.ts +115 -0
  80. package/src/dsh/lib/weather.ts +532 -0
  81. package/src/dsh/lib/ws.ts +328 -0
  82. package/src/dsh/types/qrcode-generator.d.ts +16 -0
  83. package/src/rust/Cargo.lock +1431 -0
  84. package/src/rust/Cargo.toml +68 -0
  85. package/src/rust/src/cli.rs +233 -0
  86. package/src/rust/src/daemon.rs +140 -0
  87. package/src/rust/src/location/linux.rs +118 -0
  88. package/src/rust/src/location/macos.rs +26 -0
  89. package/src/rust/src/location/mod.rs +170 -0
  90. package/src/rust/src/location/windows.rs +205 -0
  91. package/src/rust/src/main.rs +42 -0
  92. package/src/rust/src/media/catalog.rs +454 -0
  93. package/src/rust/src/media/linux.rs +350 -0
  94. package/src/rust/src/media/macos/accessibility.rs +59 -0
  95. package/src/rust/src/media/macos.rs +366 -0
  96. package/src/rust/src/media/mod.rs +298 -0
  97. package/src/rust/src/media/vendor/apple_music.rs +90 -0
  98. package/src/rust/src/media/vendor/common.rs +186 -0
  99. package/src/rust/src/media/vendor/kugou.rs +52 -0
  100. package/src/rust/src/media/vendor/kuwo.rs +49 -0
  101. package/src/rust/src/media/vendor/mod.rs +75 -0
  102. package/src/rust/src/media/vendor/netease.rs +1715 -0
  103. package/src/rust/src/media/vendor/qishui.rs +36 -0
  104. package/src/rust/src/media/vendor/qqmusic.rs +33 -0
  105. package/src/rust/src/media/vendor/spotify.rs +46 -0
  106. package/src/rust/src/media/vendor/wesing.rs +39 -0
  107. package/src/rust/src/media/vendor/youtube_music.rs +49 -0
  108. package/src/rust/src/media/windows/accessibility.rs +85 -0
  109. package/src/rust/src/media/windows/audio.rs +116 -0
  110. package/src/rust/src/media/windows/private.rs +291 -0
  111. package/src/rust/src/media/windows.rs +775 -0
  112. package/src/rust/src/notifications/linux.rs +276 -0
  113. package/src/rust/src/notifications/macos.rs +382 -0
  114. package/src/rust/src/notifications/mod.rs +244 -0
  115. package/src/rust/src/notifications/windows.rs +565 -0
  116. package/src/rust/src/perf/common.rs +109 -0
  117. package/src/rust/src/perf/linux.rs +282 -0
  118. package/src/rust/src/perf/macos.rs +28 -0
  119. package/src/rust/src/perf/mod.rs +157 -0
  120. package/src/rust/src/perf/windows.rs +981 -0
  121. package/src/rust/src/util.rs +360 -0
  122. package/src/rust/src/volume/linux.rs +195 -0
  123. package/src/rust/src/volume/macos.rs +54 -0
  124. package/src/rust/src/volume/mod.rs +116 -0
  125. package/src/rust/src/volume/windows.rs +75 -0
  126. package/src/rust/tests/cli.rs +79 -0
  127. package/src/rust/tests/daemon.rs +107 -0
  128. package/src/svelte/App.svelte +385 -0
  129. package/src/svelte/index.html +18 -0
  130. package/src/svelte/lib/billing.svelte.ts +228 -0
  131. package/src/svelte/lib/components/BalanceCard.svelte +173 -0
  132. package/src/svelte/lib/components/ClockCard.svelte +183 -0
  133. package/src/svelte/lib/components/CountdownCard.svelte +261 -0
  134. package/src/svelte/lib/components/CpuMemoryCard.svelte +238 -0
  135. package/src/svelte/lib/components/EmptyState.svelte +34 -0
  136. package/src/svelte/lib/components/GpuCard.svelte +245 -0
  137. package/src/svelte/lib/components/HomePage.svelte +34 -0
  138. package/src/svelte/lib/components/MusicControls.svelte +256 -0
  139. package/src/svelte/lib/components/MusicCover.svelte +88 -0
  140. package/src/svelte/lib/components/MusicPage.svelte +116 -0
  141. package/src/svelte/lib/components/NotificationsCard.svelte +109 -0
  142. package/src/svelte/lib/components/Panel.svelte +22 -0
  143. package/src/svelte/lib/components/PerformancePage.svelte +55 -0
  144. package/src/svelte/lib/components/PomodoroCard.svelte +250 -0
  145. package/src/svelte/lib/components/QuestionSheet.svelte +354 -0
  146. package/src/svelte/lib/components/RadialGauge.svelte +99 -0
  147. package/src/svelte/lib/components/Rail.svelte +217 -0
  148. package/src/svelte/lib/components/SectionHeader.svelte +40 -0
  149. package/src/svelte/lib/components/SeekBar.svelte +421 -0
  150. package/src/svelte/lib/components/SessionList.svelte +364 -0
  151. package/src/svelte/lib/components/SessionStats.svelte +98 -0
  152. package/src/svelte/lib/components/SessionsPage.svelte +61 -0
  153. package/src/svelte/lib/components/SpendCard.svelte +105 -0
  154. package/src/svelte/lib/components/ThermalCard.svelte +249 -0
  155. package/src/svelte/lib/components/Toast.svelte +32 -0
  156. package/src/svelte/lib/components/WeatherIcon.svelte +40 -0
  157. package/src/svelte/lib/components/WeatherPanel.svelte +420 -0
  158. package/src/svelte/lib/components/ui/alert/alert-action.svelte +20 -0
  159. package/src/svelte/lib/components/ui/alert/alert-description.svelte +23 -0
  160. package/src/svelte/lib/components/ui/alert/alert-title.svelte +23 -0
  161. package/src/svelte/lib/components/ui/alert/alert.svelte +43 -0
  162. package/src/svelte/lib/components/ui/alert/index.ts +17 -0
  163. package/src/svelte/lib/components/ui/avatar/avatar-badge.svelte +26 -0
  164. package/src/svelte/lib/components/ui/avatar/avatar-fallback.svelte +20 -0
  165. package/src/svelte/lib/components/ui/avatar/avatar-group-count.svelte +23 -0
  166. package/src/svelte/lib/components/ui/avatar/avatar-group.svelte +23 -0
  167. package/src/svelte/lib/components/ui/avatar/avatar-image.svelte +17 -0
  168. package/src/svelte/lib/components/ui/avatar/avatar.svelte +26 -0
  169. package/src/svelte/lib/components/ui/avatar/index.ts +22 -0
  170. package/src/svelte/lib/components/ui/badge/badge.svelte +49 -0
  171. package/src/svelte/lib/components/ui/badge/index.ts +2 -0
  172. package/src/svelte/lib/components/ui/button/button.svelte +82 -0
  173. package/src/svelte/lib/components/ui/button/index.ts +17 -0
  174. package/src/svelte/lib/components/ui/card/card-action.svelte +23 -0
  175. package/src/svelte/lib/components/ui/card/card-content.svelte +20 -0
  176. package/src/svelte/lib/components/ui/card/card-description.svelte +20 -0
  177. package/src/svelte/lib/components/ui/card/card-footer.svelte +20 -0
  178. package/src/svelte/lib/components/ui/card/card-header.svelte +23 -0
  179. package/src/svelte/lib/components/ui/card/card-title.svelte +20 -0
  180. package/src/svelte/lib/components/ui/card/card.svelte +22 -0
  181. package/src/svelte/lib/components/ui/card/index.ts +25 -0
  182. package/src/svelte/lib/components/ui/dialog/dialog-close.svelte +11 -0
  183. package/src/svelte/lib/components/ui/dialog/dialog-content.svelte +48 -0
  184. package/src/svelte/lib/components/ui/dialog/dialog-description.svelte +17 -0
  185. package/src/svelte/lib/components/ui/dialog/dialog-footer.svelte +32 -0
  186. package/src/svelte/lib/components/ui/dialog/dialog-header.svelte +20 -0
  187. package/src/svelte/lib/components/ui/dialog/dialog-overlay.svelte +17 -0
  188. package/src/svelte/lib/components/ui/dialog/dialog-portal.svelte +7 -0
  189. package/src/svelte/lib/components/ui/dialog/dialog-title.svelte +17 -0
  190. package/src/svelte/lib/components/ui/dialog/dialog-trigger.svelte +11 -0
  191. package/src/svelte/lib/components/ui/dialog/dialog.svelte +7 -0
  192. package/src/svelte/lib/components/ui/dialog/index.ts +34 -0
  193. package/src/svelte/lib/components/ui/empty/empty-content.svelte +23 -0
  194. package/src/svelte/lib/components/ui/empty/empty-description.svelte +23 -0
  195. package/src/svelte/lib/components/ui/empty/empty-header.svelte +20 -0
  196. package/src/svelte/lib/components/ui/empty/empty-media.svelte +41 -0
  197. package/src/svelte/lib/components/ui/empty/empty-title.svelte +20 -0
  198. package/src/svelte/lib/components/ui/empty/empty.svelte +23 -0
  199. package/src/svelte/lib/components/ui/empty/index.ts +22 -0
  200. package/src/svelte/lib/components/ui/input/index.ts +7 -0
  201. package/src/svelte/lib/components/ui/input/input.svelte +48 -0
  202. package/src/svelte/lib/components/ui/progress/index.ts +7 -0
  203. package/src/svelte/lib/components/ui/progress/progress.svelte +27 -0
  204. package/src/svelte/lib/components/ui/scroll-area/index.ts +10 -0
  205. package/src/svelte/lib/components/ui/scroll-area/scroll-area-scrollbar.svelte +30 -0
  206. package/src/svelte/lib/components/ui/scroll-area/scroll-area.svelte +43 -0
  207. package/src/svelte/lib/components/ui/separator/index.ts +7 -0
  208. package/src/svelte/lib/components/ui/separator/separator.svelte +21 -0
  209. package/src/svelte/lib/components/ui/sheet/index.ts +34 -0
  210. package/src/svelte/lib/components/ui/sheet/sheet-close.svelte +7 -0
  211. package/src/svelte/lib/components/ui/sheet/sheet-content.svelte +55 -0
  212. package/src/svelte/lib/components/ui/sheet/sheet-description.svelte +17 -0
  213. package/src/svelte/lib/components/ui/sheet/sheet-footer.svelte +20 -0
  214. package/src/svelte/lib/components/ui/sheet/sheet-header.svelte +20 -0
  215. package/src/svelte/lib/components/ui/sheet/sheet-overlay.svelte +20 -0
  216. package/src/svelte/lib/components/ui/sheet/sheet-portal.svelte +7 -0
  217. package/src/svelte/lib/components/ui/sheet/sheet-title.svelte +17 -0
  218. package/src/svelte/lib/components/ui/sheet/sheet-trigger.svelte +7 -0
  219. package/src/svelte/lib/components/ui/sheet/sheet.svelte +7 -0
  220. package/src/svelte/lib/components/ui/skeleton/index.ts +7 -0
  221. package/src/svelte/lib/components/ui/skeleton/skeleton.svelte +17 -0
  222. package/src/svelte/lib/components/ui/slider/index.ts +7 -0
  223. package/src/svelte/lib/components/ui/slider/slider.svelte +52 -0
  224. package/src/svelte/lib/components/ui/tooltip/index.ts +19 -0
  225. package/src/svelte/lib/components/ui/tooltip/tooltip-content.svelte +51 -0
  226. package/src/svelte/lib/components/ui/tooltip/tooltip-portal.svelte +7 -0
  227. package/src/svelte/lib/components/ui/tooltip/tooltip-provider.svelte +7 -0
  228. package/src/svelte/lib/components/ui/tooltip/tooltip-trigger.svelte +7 -0
  229. package/src/svelte/lib/components/ui/tooltip/tooltip.svelte +7 -0
  230. package/src/svelte/lib/countdown.svelte.ts +252 -0
  231. package/src/svelte/lib/format.ts +199 -0
  232. package/src/svelte/lib/i18n.svelte.ts +583 -0
  233. package/src/svelte/lib/media.ts +32 -0
  234. package/src/svelte/lib/pages.ts +18 -0
  235. package/src/svelte/lib/pomodoro.svelte.ts +223 -0
  236. package/src/svelte/lib/session-tree.ts +80 -0
  237. package/src/svelte/lib/state.svelte.ts +359 -0
  238. package/src/svelte/lib/timer-alarm.svelte.ts +319 -0
  239. package/src/svelte/lib/types.ts +306 -0
  240. package/src/svelte/lib/utils.ts +8 -0
  241. package/src/svelte/lib/weather.ts +84 -0
  242. package/src/svelte/lib/ws.ts +104 -0
  243. package/src/svelte/main.ts +13 -0
  244. package/src/svelte/styles/global.css +315 -0
  245. package/src/svelte/vite-env.d.ts +12 -0
  246. package/static/fonts/LICENSE.txt +287 -0
  247. package/static/icon.svg +24 -0
  248. package/static/manifest.webmanifest +18 -0
  249. package/svelte.config.js +5 -0
  250. package/tsconfig.dsh-client.json +18 -0
  251. package/tsconfig.dsh.json +21 -0
  252. package/tsconfig.json +20 -0
  253. package/vite.config.js +31 -0
  254. package/web/assets/index-DLdSfnJ3.css +1 -0
  255. package/web/assets/index-YNE8X0Uy.js +6 -0
  256. package/web/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2 +0 -0
  257. package/web/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2 +0 -0
  258. package/web/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2 +0 -0
  259. package/web/assets/inter-greek-wght-normal-CkhJZR-_.woff2 +0 -0
  260. package/web/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2 +0 -0
  261. package/web/assets/inter-latin-wght-normal-Dx4kXJAl.woff2 +0 -0
  262. package/web/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2 +0 -0
  263. package/web/assets/jetbrains-mono-cyrillic-ext-wght-normal-EocZY2iu.woff2 +0 -0
  264. package/web/assets/jetbrains-mono-cyrillic-wght-normal-D73BlboJ.woff2 +0 -0
  265. package/web/assets/jetbrains-mono-greek-wght-normal-Bw9x6K1M.woff2 +0 -0
  266. package/web/assets/jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2 +0 -0
  267. package/web/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2 +0 -0
  268. package/web/assets/jetbrains-mono-vietnamese-wght-normal-Bt-aOZkq.woff2 +0 -0
  269. package/web/assets/noto-sans-sc-100-wght-normal-DluiXYzi.woff2 +0 -0
  270. package/web/assets/noto-sans-sc-101-wght-normal-CPkZHnw0.woff2 +0 -0
  271. package/web/assets/noto-sans-sc-102-wght-normal-gzIulUH6.woff2 +0 -0
  272. package/web/assets/noto-sans-sc-103-wght-normal-CJfSBxFo.woff2 +0 -0
  273. package/web/assets/noto-sans-sc-104-wght-normal-B3QMglgE.woff2 +0 -0
  274. package/web/assets/noto-sans-sc-105-wght-normal-xXh_OMfk.woff2 +0 -0
  275. package/web/assets/noto-sans-sc-106-wght-normal-B9n3jMjP.woff2 +0 -0
  276. package/web/assets/noto-sans-sc-107-wght-normal-D7fvVprN.woff2 +0 -0
  277. package/web/assets/noto-sans-sc-108-wght-normal-J0_LhxVo.woff2 +0 -0
  278. package/web/assets/noto-sans-sc-109-wght-normal-Dsp-De_0.woff2 +0 -0
  279. package/web/assets/noto-sans-sc-110-wght-normal-DE_6NUrb.woff2 +0 -0
  280. package/web/assets/noto-sans-sc-111-wght-normal-C4S-TlTn.woff2 +0 -0
  281. package/web/assets/noto-sans-sc-112-wght-normal-BcFuP3w6.woff2 +0 -0
  282. package/web/assets/noto-sans-sc-113-wght-normal-Dk932kmj.woff2 +0 -0
  283. package/web/assets/noto-sans-sc-114-wght-normal-CO_5Xo-i.woff2 +0 -0
  284. package/web/assets/noto-sans-sc-115-wght-normal-BWy07H14.woff2 +0 -0
  285. package/web/assets/noto-sans-sc-116-wght-normal-B4HVAfHo.woff2 +0 -0
  286. package/web/assets/noto-sans-sc-117-wght-normal-siZzFqgK.woff2 +0 -0
  287. package/web/assets/noto-sans-sc-118-wght-normal-xhBB7f6V.woff2 +0 -0
  288. package/web/assets/noto-sans-sc-119-wght-normal-Ck_g2FGz.woff2 +0 -0
  289. package/web/assets/noto-sans-sc-21-wght-normal-D0x9-yBt.woff2 +0 -0
  290. package/web/assets/noto-sans-sc-22-wght-normal-BBUVTShg.woff2 +0 -0
  291. package/web/assets/noto-sans-sc-23-wght-normal-Du1oYWkE.woff2 +0 -0
  292. package/web/assets/noto-sans-sc-24-wght-normal-CmWjJ0gt.woff2 +0 -0
  293. package/web/assets/noto-sans-sc-25-wght-normal-BFHiqilg.woff2 +0 -0
  294. package/web/assets/noto-sans-sc-26-wght-normal-C0sF2Z2f.woff2 +0 -0
  295. package/web/assets/noto-sans-sc-27-wght-normal-COFdrquJ.woff2 +0 -0
  296. package/web/assets/noto-sans-sc-28-wght-normal-DMgdNu1o.woff2 +0 -0
  297. package/web/assets/noto-sans-sc-29-wght-normal-Cmq8em30.woff2 +0 -0
  298. package/web/assets/noto-sans-sc-30-wght-normal-CZWqZ3yU.woff2 +0 -0
  299. package/web/assets/noto-sans-sc-31-wght-normal-Wfi_lutW.woff2 +0 -0
  300. package/web/assets/noto-sans-sc-32-wght-normal-BRJQ4PY5.woff2 +0 -0
  301. package/web/assets/noto-sans-sc-33-wght-normal-CUVQXNAJ.woff2 +0 -0
  302. package/web/assets/noto-sans-sc-34-wght-normal-Bspba0wC.woff2 +0 -0
  303. package/web/assets/noto-sans-sc-35-wght-normal-K8fX_YPG.woff2 +0 -0
  304. package/web/assets/noto-sans-sc-36-wght-normal-CkITyjoT.woff2 +0 -0
  305. package/web/assets/noto-sans-sc-37-wght-normal-WCZ2zfEe.woff2 +0 -0
  306. package/web/assets/noto-sans-sc-38-wght-normal-DeM7CUce.woff2 +0 -0
  307. package/web/assets/noto-sans-sc-39-wght-normal-BMZNLWQU.woff2 +0 -0
  308. package/web/assets/noto-sans-sc-4-wght-normal-AR5bdDjz.woff2 +0 -0
  309. package/web/assets/noto-sans-sc-40-wght-normal-BQ5xpS5j.woff2 +0 -0
  310. package/web/assets/noto-sans-sc-41-wght-normal-Hthm7FFi.woff2 +0 -0
  311. package/web/assets/noto-sans-sc-42-wght-normal-eaS2gKds.woff2 +0 -0
  312. package/web/assets/noto-sans-sc-43-wght-normal-o-T53XXV.woff2 +0 -0
  313. package/web/assets/noto-sans-sc-44-wght-normal-BJH5J4Ez.woff2 +0 -0
  314. package/web/assets/noto-sans-sc-45-wght-normal-BKuxSCOJ.woff2 +0 -0
  315. package/web/assets/noto-sans-sc-46-wght-normal-BR_5Mu6e.woff2 +0 -0
  316. package/web/assets/noto-sans-sc-47-wght-normal-CyY7gKNX.woff2 +0 -0
  317. package/web/assets/noto-sans-sc-48-wght-normal-BNMfTR6k.woff2 +0 -0
  318. package/web/assets/noto-sans-sc-49-wght-normal-DX-0y7wg.woff2 +0 -0
  319. package/web/assets/noto-sans-sc-5-wght-normal-CfWugllB.woff2 +0 -0
  320. package/web/assets/noto-sans-sc-50-wght-normal-DAOGW-Dr.woff2 +0 -0
  321. package/web/assets/noto-sans-sc-51-wght-normal-BlFLOjcP.woff2 +0 -0
  322. package/web/assets/noto-sans-sc-52-wght-normal-OZjrybnw.woff2 +0 -0
  323. package/web/assets/noto-sans-sc-53-wght-normal-CwyWNT6x.woff2 +0 -0
  324. package/web/assets/noto-sans-sc-54-wght-normal-DM0nRe18.woff2 +0 -0
  325. package/web/assets/noto-sans-sc-55-wght-normal-DBK2wUOR.woff2 +0 -0
  326. package/web/assets/noto-sans-sc-56-wght-normal-C-VKK1LS.woff2 +0 -0
  327. package/web/assets/noto-sans-sc-57-wght-normal-Cdbfh5kq.woff2 +0 -0
  328. package/web/assets/noto-sans-sc-58-wght-normal-CflMKARZ.woff2 +0 -0
  329. package/web/assets/noto-sans-sc-59-wght-normal-BS4Kwzxx.woff2 +0 -0
  330. package/web/assets/noto-sans-sc-6-wght-normal-ChnZIQfQ.woff2 +0 -0
  331. package/web/assets/noto-sans-sc-60-wght-normal-B7QOYsXJ.woff2 +0 -0
  332. package/web/assets/noto-sans-sc-61-wght-normal-C8JjQS7w.woff2 +0 -0
  333. package/web/assets/noto-sans-sc-62-wght-normal-bS4wq1Gg.woff2 +0 -0
  334. package/web/assets/noto-sans-sc-63-wght-normal-BJr8P-OB.woff2 +0 -0
  335. package/web/assets/noto-sans-sc-64-wght-normal-DVB11t7j.woff2 +0 -0
  336. package/web/assets/noto-sans-sc-65-wght-normal-DMPCXBvK.woff2 +0 -0
  337. package/web/assets/noto-sans-sc-66-wght-normal-BobaG10V.woff2 +0 -0
  338. package/web/assets/noto-sans-sc-67-wght-normal-Dzk7WhCR.woff2 +0 -0
  339. package/web/assets/noto-sans-sc-68-wght-normal-DGbCD9xu.woff2 +0 -0
  340. package/web/assets/noto-sans-sc-69-wght-normal-Ctrv1EqA.woff2 +0 -0
  341. package/web/assets/noto-sans-sc-70-wght-normal-RgTO941D.woff2 +0 -0
  342. package/web/assets/noto-sans-sc-71-wght-normal-D9sG-CWv.woff2 +0 -0
  343. package/web/assets/noto-sans-sc-72-wght-normal-C4oWy3ul.woff2 +0 -0
  344. package/web/assets/noto-sans-sc-73-wght-normal-B1ZoOTgM.woff2 +0 -0
  345. package/web/assets/noto-sans-sc-74-wght-normal-F7dH_rZJ.woff2 +0 -0
  346. package/web/assets/noto-sans-sc-75-wght-normal-Cp2wp4si.woff2 +0 -0
  347. package/web/assets/noto-sans-sc-76-wght-normal-B494D7xS.woff2 +0 -0
  348. package/web/assets/noto-sans-sc-77-wght-normal-B3MVY9Ax.woff2 +0 -0
  349. package/web/assets/noto-sans-sc-78-wght-normal-5jX7iNMC.woff2 +0 -0
  350. package/web/assets/noto-sans-sc-79-wght-normal-BIoZy8fr.woff2 +0 -0
  351. package/web/assets/noto-sans-sc-80-wght-normal-Bje1Fxy1.woff2 +0 -0
  352. package/web/assets/noto-sans-sc-81-wght-normal-B2NN7Qi3.woff2 +0 -0
  353. package/web/assets/noto-sans-sc-82-wght-normal-CUggNZi4.woff2 +0 -0
  354. package/web/assets/noto-sans-sc-83-wght-normal-99rD8YO-.woff2 +0 -0
  355. package/web/assets/noto-sans-sc-84-wght-normal-zMBmUocm.woff2 +0 -0
  356. package/web/assets/noto-sans-sc-85-wght-normal-CjI3qdxG.woff2 +0 -0
  357. package/web/assets/noto-sans-sc-86-wght-normal-BHY8TVEH.woff2 +0 -0
  358. package/web/assets/noto-sans-sc-87-wght-normal-DioZSHnU.woff2 +0 -0
  359. package/web/assets/noto-sans-sc-88-wght-normal-BXYxwf2t.woff2 +0 -0
  360. package/web/assets/noto-sans-sc-89-wght-normal-ClMFrFaL.woff2 +0 -0
  361. package/web/assets/noto-sans-sc-90-wght-normal-BnOlPreP.woff2 +0 -0
  362. package/web/assets/noto-sans-sc-91-wght-normal-DTr9RQcS.woff2 +0 -0
  363. package/web/assets/noto-sans-sc-97-wght-normal-9u6Aiav-.woff2 +0 -0
  364. package/web/assets/noto-sans-sc-98-wght-normal-BR-H2C0V.woff2 +0 -0
  365. package/web/assets/noto-sans-sc-99-wght-normal-BI6XPoxp.woff2 +0 -0
  366. package/web/assets/noto-sans-sc-cyrillic-wght-normal-BGmsQlw-.woff2 +0 -0
  367. package/web/assets/noto-sans-sc-latin-ext-wght-normal-DuJTpTg_.woff2 +0 -0
  368. package/web/assets/noto-sans-sc-latin-wght-normal-DDW8mKAR.woff2 +0 -0
  369. package/web/assets/noto-sans-sc-vietnamese-wght-normal-Bi3ATJ76.woff2 +0 -0
  370. package/web/fonts/LICENSE.txt +287 -0
  371. package/web/icon.svg +24 -0
  372. package/web/index.html +19 -0
  373. package/web/manifest.webmanifest +18 -0
@@ -0,0 +1,6 @@
1
+ (function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var e=Array.isArray,t=Array.prototype.indexOf,n=Array.prototype.includes,r=Array.from,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyDescriptors,s=Object.prototype,c=Array.prototype,l=Object.getPrototypeOf,u=Object.isExtensible;function d(e){return typeof e==`function`}var f=()=>{};function p(e){return e()}function m(e){for(var t=0;t<e.length;t++)e[t]()}function h(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}function g(e,t,n=!1){return e===void 0?n?t():t:e}function _(e,t){if(Array.isArray(e))return e;if(t===void 0||!(Symbol.iterator in e))return Array.from(e);let n=[];for(let r of e)if(n.push(r),n.length===t)break;return n}var v=1<<24,y=1024,b=2048,x=4096,S=8192,ee=16384,C=32768,te=1<<25,ne=65536,re=1<<19,ie=1<<20,ae=1<<25,oe=1<<21,se=1<<22,ce=1<<23,le=Symbol(`$state`),ue=Symbol(`component`),de=Symbol(`legacy props`),w=Symbol(``),fe=Symbol(`attributes`),pe=Symbol(`class`),me=Symbol(`style`),he=Symbol(`text`),ge=Symbol(`form reset`),_e=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},ve=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`),ye={},be=Symbol(`uninitialized`),xe=`http://www.w3.org/1999/xhtml`,Se=`http://www.w3.org/2000/svg`,Ce=`@attach`;function we(){console.warn(`https://svelte.dev/e/derived_inert`)}function Te(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function Ee(){console.warn(`https://svelte.dev/e/select_multiple_invalid_value`)}function De(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var T=!1;function Oe(e){T=e}var ke;function Ae(e){if(e===null)throw Te(),ye;return ke=e}function je(){return Ae(xn(ke))}function E(e){if(T){if(xn(ke)!==null)throw Te(),ye;ke=e}}function Me(e=1){if(T){for(var t=e,n=ke;t--;)n=xn(n);ke=n}}function Ne(e=!0){for(var t=0,n=ke;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else(r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=xn(n);e&&n.remove(),n=i}}function Pe(e){if(!e||e.nodeType!==8)throw Te(),ye;return e.data}function Fe(e){return e===this.v}function Ie(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function Le(e){return!Ie(e,this.v)}function Re(e){throw Error(`https://svelte.dev/e/lifecycle_outside_component`)}function ze(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function Be(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function Ve(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function He(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function Ue(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function We(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function Ge(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function Ke(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function qe(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function Je(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function Ye(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}var Xe=!1;function Ze(){Xe=!0}function Qe(e){let t=e.p;for(;t!==null&&t.c===null;)t=t.p;return t?.c??null}function $e(e,t){return e===null&&Re(t),e.c??=new Map(Qe(e)||void 0)}var et=null;function tt(e){et=e}function nt(e){return $e(et,`getContext`).get(e)}function rt(e,t){return $e(et,`setContext`).set(e,t),t}function it(e){return $e(et,`hasContext`).has(e)}function at(){return $e(et,`getAllContexts`)}function D(e,t=!1,n){et={p:et,i:!1,c:null,e:null,s:e,x:null,r:sr,l:Xe&&!t?{s:null,u:null,$:[]}:null}}function O(e){var t=et,n=t.e;if(n!==null){t.e=null;for(var r of n)Pn(r)}return e!==void 0&&(t.x=e),t.i=!0,et=t.p,ot(e)}function ot(e={}){return i(e,ue,{value:!0}),e}function st(){return!Xe||et!==null&&et.l===null}var ct=[];function lt(){var e=ct;ct=[],m(e)}function ut(e){if(ct.length===0&&!zt){var t=ct;queueMicrotask(()=>{t===ct&&lt()})}ct.push(e)}function dt(){for(;ct.length>0;)lt()}var ft=~(b|x|y);function pt(e,t){e.f=e.f&ft|t}function mt(e){e.f&512||e.deps===null?pt(e,y):pt(e,x)}function ht(e,t){e.f&2048?t.set(e,b):e.f&4096&&t.get(e)!==2048&&t.set(e,x),pt(e,y)}function gt(e,t){if(t){let t=document.body;e.autofocus=!0,ut(()=>{document.activeElement===t&&e.focus()})}}var _t=!1;function vt(){_t||(_t=!0,document.addEventListener(`reset`,e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(let t of e.target.elements)t[ge]?.()})},{capture:!0}))}function yt(e){var t=ir,n=sr;or(null),cr(null);try{return e()}finally{or(t),cr(n)}}function bt(e,t,n,r=n){e.addEventListener(t,()=>yt(n));let i=e[ge];e[ge]=i?()=>{i(),r(!0)}:()=>r(!0),vt()}function xt(e,t,n,r){let i=st()?Tt:Ot;var a=e.filter(e=>!e.settled),o=t.map(i);if(n.length===0&&a.length===0){r(o);return}var s=sr,c=St(),l=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function u(e){if(!(s.f&16384)){c();try{r([...o,...e])}catch(e){Dn(e,s)}Ct()}}var d=wt();if(n.length===0){l.then(()=>u([])).finally(d);return}function f(){Promise.all(n.map(e=>Dt(e))).then(u).catch(e=>Dn(e,s)).finally(d)}l?l.then(()=>{s.f&16384?d():(c(),f(),Ct())}):f()}function St(){var e=sr,t=ir,n=et,r=Ft;return function(i=!0){cr(e),or(t),tt(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function Ct(e=!0){cr(null),or(null),tt(null),e&&Ft?.deactivate()}function wt(){var e=sr,t=e.b,n=Ft,r=!!t?.is_rendered();return t?.update_pending_count(1,n),n.increment(r,e),()=>{t?.update_pending_count(-1,n),n.decrement(r,e)}}function Tt(e){var t=2|b;return sr!==null&&(sr.f|=re),{ctx:et,deps:null,effects:null,equals:Fe,f:t,fn:e,reactions:null,rv:0,v:be,wv:0,parent:sr,ac:null}}var Et=Symbol(`obsolete`);function Dt(e,t,n){let r=sr;r===null&&ze();var i=void 0,a=nn(be),o=!ir,s=new Set;return zn(()=>{var t=sr,n=h();i=n.promise;try{Promise.resolve(e()).then(n.resolve,e=>{e!==_e&&n.reject(e)}).finally(Ct)}catch(e){n.reject(e),Ct()}var c=Ft;if(o){if(t.f&32768)var l=wt();if(r.b?.is_rendered())c.async_deriveds.get(t)?.reject(Et);else for(let e of s.values())e.reject(Et);s.add(n),c.async_deriveds.set(t,n)}let u=(e,t=void 0)=>{l?.(),s.delete(n),t!==Et&&(c.activate(),t?(a.f|=ce,sn(a,t)):(a.f&8388608&&(a.f^=ce),sn(a,e)),c.deactivate())};n.promise.then(u,e=>u(null,e||`unknown`))}),Mn(()=>{for(let e of s)e.reject(Et)}),new Promise(e=>{function t(n){function r(){n===i?e(a):t(i)}n.then(r,r)}t(i)})}function k(e){let t=Tt(e);return ur(t),t}function Ot(e){let t=Tt(e);return t.equals=Le,t}function kt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)qn(t[n])}}function At(e){var t,n=sr,r=e.parent;if(!nr&&r!==null&&e.v!==be&&r.f&24576)return we(),e.v;cr(r);try{kt(e),t=Sr(e)}finally{cr(n)}return t}function jt(e){var t=At(e);!e.equals(t)&&(e.wv=yr(),(!Ft?.is_fork||e.deps===null)&&(Ft===null?e.v=t:(Ft.capture(e,t,!0),It?.capture(e,t,!0)),e.deps===null))?pt(e,y):nr||(Lt===null?mt(e):(jn()||Ft?.is_fork)&&Lt.set(e,t))}function Mt(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac!==null&&yt(()=>{t.ac.abort(_e),t.ac=null}),t.fn!==null&&(t.teardown=f),Tr(t,0),Gn(t))}function Nt(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&t.fn!==null&&Er(t)}var Pt=null,Ft=null,It=null,Lt=null,Rt=null,zt=!1,Bt=!1,Vt=null,Ht=null,Ut=0,Wt=1,Gt=class e{id=Wt++;started=!1;linked=!0;prev=null;next=null;async_deriveds=new Map;current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=0;#r=new Map;#i=null;#a=[];#o=[];#s=new Map;#c=new Map;#l=new Set;is_fork=!1;#u=!1;constructor(){Pt===null?Pt=this:(Pt.next=this,this.prev=Pt),Pt=this}#d(){if(this.is_fork)return!0;for(let e of this.#r.keys())if(!this.#f(e))return!0;return!1}#f(e){for(var t=e;t!==null;t=t.parent)if(this.#c.has(t))return!0;return!1}skip_effect(e){this.#c.has(e)||this.#c.set(e,{d:[],m:[]}),this.#l.delete(e)}unskip_effect(e,t=e=>this.schedule(e)){var n=this.#c.get(e);if(n){this.#c.delete(e);for(var r of n.d)pt(r,b),t(r);for(r of n.m)pt(r,x),t(r)}this.#l.add(e)}#p(){var e=[];for(let i of this.#a)if(!(i.f&16384||!(i.f&6144))){for(var t=i,n=!1;t.parent!==null;){t=t.parent;var r=t.f;if(r&96){if(!(r&1024)){n=!0;break}t.f^=y}}n||e.push(t)}return this.#a=[],e}#m(){this.started=!0;for(let[e,t]of this.#s)pt(e,t),this.schedule(e);this.apply();for(var t=Vt=[],n=[],r=Ht=[];this.#a.length>0;){Ut++>1e3&&(this.#b(),qt());for(let e of this.#p())try{this.#h(e,t,n)}catch(t){throw Qt(e),this.#d()||this.discard(),t}}if(Ft=null,r.length>0){var i=e.ensure();for(let e of r)i.schedule(e)}if(Vt=null,Ht=null,this.#d()){this.#y(n),this.#y(t);for(let[e,t]of this.#c)Zt(e,t);r.length>0&&Ft.#m();return}let a=this.#g();if(a)this.#y(n),this.#y(t),a.#v(this);else{this.#s.clear();for(let e of this.#e)e(this);this.#e.clear(),It=this,Yt(n),Yt(t),It=null,this.#i?.resolve();var o=Ft;this.#n===0&&(this.#a.length===0||o!==null)&&this.#b(),o!==null&&(en.clear(),o.#m())}}#h(e,t,n){e.f^=y;for(var r=e.first;r!==null;){var i=r.f,a=!!(i&96);if(!(a&&i&1024||i&8192||this.#c.has(r))&&r.fn!==null){a?r.f^=y:i&4?t.push(r):br(r)&&(i&16&&this.add_dirty_reaction(r,x),Er(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#g(){for(var e=this.prev;e!==null;e=e.prev)if(!e.is_fork&&this.#_(e))return e;return null}#_(e){for(let[t,[,n]]of this.current)if(!n&&e.current.has(t))return!0;return!1}#v(e){for(let[t,n]of e.current)!this.previous.has(t)&&e.previous.has(t)&&this.previous.set(t,e.previous.get(t)),this.current.set(t,n);for(let[t,n]of e.async_deriveds){let e=this.async_deriveds.get(t);e&&n.promise.then(e.resolve).catch(e.reject)}e.async_deriveds.clear(),this.transfer_reactions(e.#s);let t=e=>{var n=e.reactions;if(n!==null&&!(e.f&2&&!(e.f&6144)))for(let e of n){var r=e.f;if(r&2)t(e);else{var i=e;r&4194320&&!this.async_deriveds.has(i)&&(this.#s.delete(i),pt(i,b),this.schedule(i))}}};for(let e of this.current.keys())t(e);this.oncommit(()=>e.discard()),e.#b(),Ft=this,this.#m()}#y(e){for(var t=0;t<e.length;t+=1)ht(e[t],this.#s)}capture(e,t,n=!1){e.v!==be&&!this.previous.has(e)&&this.previous.set(e,e.v),e.f&8388608||(this.current.set(e,[t,n]),Lt?.set(e,t)),this.is_fork||(e.v=t)}activate(){Ft=this}deactivate(){Ft=null,Lt=null}flush(){try{Bt=!0,Ft=this,this.#m()}finally{Ut=0,Rt=null,Vt=null,Ht=null,Bt=!1,Ft=null,Lt=null,en.clear()}}discard(){for(let e of this.#t)e(this);this.#t.clear();for(let e of this.async_deriveds.values())e.reject(Et);this.#b(),this.#i?.resolve()}register_created_effect(e){this.#o.push(e)}increment(e,t){if(this.#n+=1,e){let e=this.#r.get(t)??0;this.#r.set(t,e+1)}}decrement(e,t){if(--this.#n,e){let e=this.#r.get(t)??0;e===1?this.#r.delete(t):this.#r.set(t,e-1)}this.#u||(this.#u=!0,ut(()=>{this.#u=!1,this.linked&&this.flush()}))}transfer_reactions(e){for(let[t,n]of e)this.add_dirty_reaction(t,n);e.clear()}add_dirty_reaction(e,t){(t===2048||this.#s.get(e)!==2048)&&this.#s.set(e,t)}oncommit(e){this.#e.add(e)}ondiscard(e){this.#t.add(e)}settled(){return(this.#i??=h()).promise}static ensure(){if(Ft===null){let t=Ft=new e;!Bt&&!zt&&ut(()=>{t.started||t.flush()})}return Ft}apply(){Lt=null}schedule(e){Rt=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)?e.b.defer_effect(e):this.#a.push(e)}#b(){if(this.linked){var e=this.prev,t=this.next;e===null||(e.next=t),t===null?Pt=e:t.prev=e,this.linked=!1}}};function Kt(e){var t=zt,n=It;It=null,zt=!0;try{var r;for(e&&(Kt(),r=e());;){if(dt(),Ft===null)return r;Ft.flush()}}finally{zt=t,It=n}}function qt(){try{We()}catch(e){Dn(e,Rt)}}var Jt=null;function Yt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&br(r)&&(Jt=new Set,Er(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&Yn(r),Jt?.size>0)){en.clear();for(let e of Jt){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)Jt.has(n)&&(Jt.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||Er(n)}}Jt.clear()}}Jt=null}}function Xt(e){Ft.schedule(e)}function Zt(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),pt(e,y);for(var n=e.first;n!==null;)Zt(n,t),n=n.next}}function Qt(e){pt(e,y);for(var t=e.first;t!==null;)Qt(t),t=t.next}var $t=new Set,en=new Map,tn=!1;function nn(e,t){return{f:0,v:e,reactions:null,equals:Fe,rv:0,wv:0}}function A(e,t){let n=nn(e,t);return ur(n),n}function rn(e,t=!1,n=!0){let r=nn(e);return t||(r.equals=Le),Xe&&n&&et!==null&&et.l!==null&&(et.l.s??=[]).push(r),r}function j(e,t,n=!1){return ir!==null&&(!ar||ir.f&131072)&&st()&&ir.f&4325394&&(lr===null||!lr.has(e))&&Je(),sn(e,n?dn(t):t,Ht)}var an=null,on=0;function sn(e,t,n=null){if(!e.equals(t)){nr?en.set(e,t):en.has(e)||en.set(e,e.v);var r=Gt.ensure();if(r.capture(e,t),e.f&2){let t=e;e.f&2048&&At(t),Lt===null&&mt(t)}e.wv=yr(),an=null,on=0,un(e,b,n),an=null,st()&&sr!==null&&sr.f&1024&&!(sr.f&96)&&(pr===null?mr([e]):pr.push(e)),!r.is_fork&&$t.size>0&&!tn&&cn()}return t}function cn(){tn=!1;for(let e of $t){e.f&1024&&pt(e,x);let t;try{t=br(e)}catch{t=!0}t&&Er(e)}$t.clear()}function ln(e){j(e,e.v+1)}function un(e,t,n){var r=e.reactions;if(r!==null){var i=st(),a=r.length;if(on+=a,on>1e5&&an===null&&(an=new Set),an!==null){if(an.has(e))return;an.add(e)}for(var o=0;o<a;o++){var s=r[o],c=s.f;if(i||s!==sr){var l=(c&b)===0;if(l&&pt(s,t),c&131072)$t.add(s);else if(c&2){var u=s;Lt?.delete(u),un(u,x,n)}else if(l){var d=s;c&16&&Jt!==null&&Jt.add(d),n===null?Xt(d):n.push(d)}}}}}function dn(t){if(typeof t!=`object`||!t||le in t||ue in t)return t;let n=l(t);if(n!==s&&n!==c)return t;var r=new Map,i=e(t),o=A(0),u=null,d=_r,f=e=>{if(_r===d)return e();var t=ir,n=_r;or(null),vr(d);var r=e();return or(t),vr(n),r};return i&&r.set(`length`,A(t.length,u)),new Proxy(t,{defineProperty(e,t,n){`value`in n&&n.configurable!==!1&&n.enumerable!==!1&&n.writable!==!1||Ke();var i=r.get(t);return i===void 0?f(()=>{var e=A(n.value,u);return r.set(t,e),e}):j(i,n.value,!0),!0},deleteProperty(e,t){var n=r.get(t);if(n===void 0){if(t in e){let e=f(()=>A(be,u));r.set(t,e),ln(o)}}else j(n,be),ln(o);return!0},get(e,n,i){if(n===le)return t;var o=r.get(n),s=n in e;if(o===void 0&&(!s||a(e,n)?.writable)&&(o=f(()=>A(dn(s?e[n]:be),u)),r.set(n,o)),o!==void 0){var c=L(o);return c===be?void 0:c}return Reflect.get(e,n,i)},getOwnPropertyDescriptor(e,t){this.has?.(e,t);var n=Reflect.getOwnPropertyDescriptor(e,t),i=r.get(t);if(i!==void 0){var a=L(i);if(a===be)return;if(n&&`value`in n)n.value=a;else return{enumerable:!0,configurable:!0,value:a,writable:!0}}return n},has(e,t){if(t===le)return!0;var n=r.get(t),i=n!==void 0&&n.v!==be||Reflect.has(e,t);return(n!==void 0||(sr!==null||ir!==null)&&(!i||a(e,t)?.writable))&&(n===void 0&&(n=f(()=>A(i?dn(e[t]):be,u)),r.set(t,n)),L(n)===be)?!1:i},set(e,t,n,s){var c=r.get(t),l=t in e;if(i&&t===`length`)for(var d=n;d<c.v;d+=1){var p=r.get(d+``);p===void 0?d in e&&(p=f(()=>A(be,u)),r.set(d+``,p)):j(p,be)}if(c===void 0)(!l||a(e,t)?.writable)&&(c=f(()=>A(void 0,u)),j(c,dn(n)),r.set(t,c));else{l=c.v!==be;var m=f(()=>dn(n));j(c,m)}var h=Reflect.getOwnPropertyDescriptor(e,t);if(h?.set&&h.set.call(s,n),!l){if(i&&typeof t==`string`){var g=r.get(`length`),_=Number(t);Number.isInteger(_)&&_>=g.v&&j(g,_+1)}ln(o)}return!0},ownKeys(e){L(o);var t=Reflect.ownKeys(e).filter(e=>{var t=r.get(e);return t===void 0||t.v!==be});for(var[n,i]of r)i.v!==be&&!(n in e)&&t.push(n);return t},setPrototypeOf(){qe()}})}function fn(e){try{if(typeof e==`object`&&e&&le in e)return e[le]}catch{}return e}function pn(e,t){return Object.is(fn(e),fn(t))}var mn,hn,gn,_n;function vn(){if(mn===void 0){mn=window,hn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;gn=a(t,`firstChild`).get,_n=a(t,`nextSibling`).get,u(e)&&(e[pe]=void 0,e[fe]=null,e[me]=void 0,e.__e=void 0),u(n)&&(n[he]=void 0)}}function yn(e=``){return document.createTextNode(e)}function bn(e){return gn.call(e)}function xn(e){return _n.call(e)}function M(e,t){if(!T)return bn(e);var n=bn(ke);if(n===null)n=ke.appendChild(yn());else if(t&&n.nodeType!==3){var r=yn();return n?.before(r),Ae(r),r}return t&&Tn(n),Ae(n),n}function N(e,t=!1){if(!T){var n=bn(e);return n instanceof Comment&&n.data===``?xn(n):n}if(t){if(ke?.nodeType!==3){var r=yn();return ke?.before(r),Ae(r),r}Tn(ke)}return ke}function P(e,t=!1){if(!T)return bn(e);var n=M(e,t);return E(e),n}function F(e,t=1,n=!1){let r=T?ke:e;for(var i;t--;)i=r,r=xn(r);if(!T)return r;if(n){if(r?.nodeType!==3){var a=yn();return r===null?i?.after(a):r.before(a),Ae(a),a}Tn(r)}return Ae(r),r}function Sn(e){e.textContent=``}function Cn(){return!1}function wn(e,t,n){return t==null||t===`http://www.w3.org/1999/xhtml`?n?document.createElement(e,{is:n}):document.createElement(e):n?document.createElementNS(t,e,{is:n}):document.createElementNS(t,e)}function Tn(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function En(e){var t=sr;if(t===null)return ir.f|=ce,e;if(!(t.f&32768)&&!(t.f&4))throw e;Dn(e,t)}function Dn(e,t){if(e===ye)throw e;if(!(t!==null&&t.f&16384)){for(;t!==null;){if(t.f&128&&!(t.f&33570816)){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}}function On(e){sr===null&&(ir===null&&Ue(e),He()),nr&&Ve(e)}function kn(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function An(e,t){var n=sr;n!==null&&n.f&8192&&(e|=S);var r={ctx:et,deps:null,nodes:null,f:e|b|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};Ft?.register_created_effect(r);var i=r;if(e&4)Vt===null?Gt.ensure().schedule(r):Vt.push(r);else if(t!==null){try{Er(r)}catch(e){throw qn(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=ne))}if(i!==null&&(i.parent=n,n!==null&&kn(i,n),ir!==null&&ir.f&2&&!(e&64))){var a=ir;(a.effects??=[]).push(i)}return r}function jn(){return ir!==null&&!ar}function Mn(e){let t=An(8,null);return pt(t,y),t.teardown=e,t}function Nn(e){On(`$effect`);var t=sr.f;if(!ir&&t&32&&et!==null&&!et.i){var n=et;(n.e??=[]).push(e)}else return Pn(e)}function Pn(e){return An(4|ie,e)}function Fn(e){return On(`$effect.pre`),An(8|ie,e)}function In(e){Gt.ensure();let t=An(64|re,e);return()=>{qn(t)}}function Ln(e){Gt.ensure();let t=An(64|re,e);return(e={})=>new Promise(n=>{e.outro?Xn(t,()=>{qn(t),n(void 0)}):(qn(t),n(void 0))})}function Rn(e){return An(4,e)}function zn(e){return An(se|re,e)}function Bn(e,t=0){return An(8|t,e)}function I(e,t=[],n=[],r=[]){xt(r,t,n,t=>{An(8,()=>{e(...t.map(L))})})}function Vn(e,t=0){return An(16|t,e)}function Hn(e,t=0){return An(v|t,e)}function Un(e){return An(32|re,e)}function Wn(e){var t=e.teardown;if(t!==null){let n=nr,r=ir;rr(!0),or(null);try{t.call(null)}catch(t){Dn(t,e.parent)}finally{rr(n),or(r)}}}function Gn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&yt(()=>{e.abort(_e)});var r=n.next;n.f&64?n.parent=null:qn(n,t),n=r}}function Kn(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||qn(t),t=n}}function qn(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(Jn(e.nodes.start,e.nodes.end),n=!0),e.f|=te,Gn(e,t&&!n),Tr(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();Wn(e),e.f^=te,e.f|=ee;var i=e.parent;i!==null&&i.first!==null&&Yn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Jn(e,t){for(;e!==null;){var n=e===t?null:xn(e);e.remove(),e=n}}function Yn(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function Xn(e,t,n=!0){var r=[];e.f|=256,Zn(e,r,!0);var i=()=>{n&&qn(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function Zn(e,t,n){if(!(e.f&8192)){e.f^=S;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next;if(!(i.f&64)){var o=!!(i.f&65536)||!!(i.f&32)&&!!(e.f&16);Zn(i,t,o?n:!1)}i=a}}}function Qn(e){e.f&=-257,$n(e,!0)}function $n(e,t){if(!(e.f&256)&&e.f&8192){e.f^=S,e.f&1024||(pt(e,b),Gt.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=!!(n.f&65536)||!!(n.f&32);$n(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function er(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:xn(n);t.append(n),n=i}}var tr=null,nr=!1;function rr(e){nr=e}var ir=null,ar=!1;function or(e){ir=e}var sr=null;function cr(e){sr=e}var lr=null;function ur(e){ir!==null&&(ir.f&2097152||ir.f&2)&&(lr??=new Set).add(e)}var dr=null,fr=0,pr=null;function mr(e){pr=e}var hr=1,gr=0,_r=gr;function vr(e){_r=e}function yr(){return++hr}function br(e){var t=e.f;if(t&2048)return!0;if(t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(br(a)&&jt(a),a.wv>e.wv)return!0}t&512&&Lt===null&&pt(e,y)}return!1}function xr(e,t,n=!0){var r=e.reactions;if(r!==null&&!(lr!==null&&lr.has(e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?xr(a,t,!1):t===a&&(n?pt(a,b):a.f&1024&&pt(a,x),Xt(a))}}function Sr(e){var t=dr,n=fr,r=pr,i=ir,a=lr,o=et,s=ar,c=_r,l=e.f;dr=null,fr=0,pr=null,ir=l&96?null:e,lr=null,tt(e.ctx),ar=!1,_r=++gr,e.ac!==null&&(yt(()=>{e.ac.abort(_e)}),e.ac=null);try{e.f|=oe;var u=e.fn,d=u();e.f|=C;var f=Cr(e);if(st()&&pr!==null&&!ar&&f!==null&&!(e.f&6146))for(var p=0;p<pr.length;p++)xr(pr[p],e);if(i!==null&&i!==e){if(gr++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=gr;if(t!==null)for(let e of t)e.rv=gr;pr!==null&&(r===null?r=pr:r.push(...pr))}return e.f&8388608&&(e.f^=ce),d}catch(t){return Cr(e),En(t)}finally{e.f^=oe,dr=t,fr=n,pr=r,ir=i,lr=a,tt(o),ar=s,_r=c}}function Cr(e){var t=e.deps,n=Ft?.is_fork;if(dr!==null){var r;if(n||Tr(e,fr),t!==null&&fr>0)for(t.length=fr+dr.length,r=0;r<dr.length;r++)t[fr+r]=dr[r];else e.deps=t=dr;if(jn()&&e.f&512)for(r=fr;r<t.length;r++)(t[r].reactions??=[]).push(e)}else!n&&t!==null&&fr<t.length&&(Tr(e,fr),t.length=fr);return t}function wr(e,r){let i=r.reactions;if(i!==null){var a=t.call(i,e);if(a!==-1){var o=i.length-1;o===0?i=r.reactions=null:(i[a]=i[o],i.pop())}}if(i===null&&r.f&2&&(dr===null||!n.call(dr,r))){var s=r;s.f&512&&(s.f^=512),s.v!==be&&mt(s),s.ac!==null&&yt(()=>{s.ac.abort(_e),s.ac=null,pt(s,b)}),Mt(s),Tr(s,0)}}function Tr(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)wr(e,n[r])}function Er(e){var t=e.f;if(!(t&16384)){pt(e,y);var n=sr;sr=e;try{t&16777232?Kn(e):Gn(e),Wn(e);var r=Sr(e);e.teardown=typeof r==`function`?r:null,e.wv=hr}finally{sr=n}}}async function Dr(){await Promise.resolve(),Kt()}function L(e){var t=!!(e.f&2);if(tr?.add(e),ir!==null&&!ar&&!(sr!==null&&sr.f&16384)&&(lr===null||!lr.has(e))){var r=ir.deps;if(ir.f&2097152)e.rv<gr&&(e.rv=gr,dr===null&&r!==null&&r[fr]===e?fr++:dr===null?dr=[e]:dr.push(e));else{ir.deps??=[],n.call(ir.deps,e)||ir.deps.push(e);var i=e.reactions;i===null?e.reactions=[ir]:n.call(i,ir)||i.push(ir)}}if(nr&&en.has(e))return en.get(e);if(t){var a=e;if(nr){var o=a.v;return(!(a.f&1024)&&a.reactions!==null||kr(a))&&(o=At(a)),en.set(a,o),o}var s=!(a.f&512)&&!ar&&ir!==null&&!!(ir.f&512),c=(a.f&C)===0;br(a)&&(s&&(a.f|=512),jt(a)),s&&!c&&(Nt(a),Or(a))}if(Lt?.has(e))return Lt.get(e);if(e.f&8388608)throw e.v;return e.v}function Or(e){if(e.f|=512,e.deps!==null)for(let r of e.deps){var t=r.reactions;t===null?r.reactions=[e]:n.call(t,e)||t.push(e),r.f&2&&!(r.f&512)&&(Nt(r),Or(r))}}function kr(e){if(e.v===be)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(en.has(t)||t.f&2&&kr(t))return!0;return!1}function Ar(e){var t=ar;try{return ar=!0,e()}finally{ar=t}}function jr(e){if(!(typeof e!=`object`||!e||e instanceof EventTarget)){if(le in e)Mr(e);else if(!Array.isArray(e))for(let t in e){let n=e[t];typeof n==`object`&&n&&le in n&&Mr(n)}}}function Mr(e,t=new Set){if(typeof e==`object`&&e&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let n in e)try{Mr(e[n],t)}catch{}let n=l(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){let t=o(n);for(let n in t){let r=t[n].get;if(r)try{r.call(e)}catch{}}}}}function Nr(){return Symbol(Ce)}function Pr(e){return e.endsWith(`capture`)&&e!==`gotpointercapture`&&e!==`lostpointercapture`}var Fr=[`beforeinput`,`click`,`change`,`dblclick`,`contextmenu`,`focusin`,`focusout`,`input`,`keydown`,`keyup`,`mousedown`,`mousemove`,`mouseout`,`mouseover`,`mouseup`,`pointerdown`,`pointermove`,`pointerout`,`pointerover`,`pointerup`,`touchend`,`touchmove`,`touchstart`];function Ir(e){return Fr.includes(e)}var Lr=`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`),Rr={formnovalidate:`formNoValidate`,ismap:`isMap`,nomodule:`noModule`,playsinline:`playsInline`,readonly:`readOnly`,defaultvalue:`defaultValue`,defaultchecked:`defaultChecked`,srcobject:`srcObject`,novalidate:`noValidate`,allowfullscreen:`allowFullscreen`,disablepictureinpicture:`disablePictureInPicture`,disableremoteplayback:`disableRemotePlayback`};function zr(e){return e=e.toLowerCase(),Rr[e]??e}[...Lr];var Br=[`touchstart`,`touchmove`];function Vr(e){return Br.includes(e)}var Hr=[`textarea`,`script`,`style`,`title`];function Ur(e){return Hr.includes(e)}var Wr=Symbol(`events`),Gr=new Set,Kr=new Set;function qr(e){if(!T)return;e.removeAttribute(`onload`),e.removeAttribute(`onerror`);let t=e.__e;t!==void 0&&(e.__e=void 0,queueMicrotask(()=>{e.isConnected&&e.dispatchEvent(t)}))}function Jr(e,t,n,r={}){function i(e){if(r.capture||ti.call(t,e),!e.cancelBubble)return yt(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?(i.__removed=!1,ut(()=>{i.__removed||t.addEventListener(e,i,r)})):t.addEventListener(e,i,r),i}function Yr(e,t,n,r={}){var i=Jr(t,e,n,r);return()=>{i.__removed=!0,e.removeEventListener(t,i,r)}}function Xr(e,t,n,r,i){var a={capture:r,passive:i},o=Jr(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Mn(()=>{o.__removed=!0,t.removeEventListener(e,o,a)})}function Zr(e,t,n){(t[Wr]??={})[e]=n}function Qr(e){for(var t=0;t<e.length;t++)Gr.add(e[t]);for(var n of Kr)n(e)}var $r=null,ei=!1;function ti(e){var t=this,n=t.ownerDocument,r=e.type,a=e.composedPath?.()||[],o=a[0]||e.target;$r=e,ei||(ei=!0,setTimeout(()=>{ei=!1,$r=null}));var s=0,c=$r===e&&e[Wr];if(c){var l=a.indexOf(c);if(l!==-1&&(t===document||t===window)){e[Wr]=t;return}var u=a.indexOf(t);if(u===-1)return;l<=u&&(s=l)}if(o=a[s]||e.target,o!==t){i(e,`currentTarget`,{configurable:!0,get(){return o||n}});var d=ir,f=sr;or(null),cr(null);try{for(var p,m=[];o!==null&&o!==t;){try{var h=o[Wr]?.[r];h==null||o.disabled&&e.target!==o||h.call(o,e)}catch(e){p?m.push(e):p=e}if(e.cancelBubble)break;s++,o=s<a.length?a[s]:null}if(p){for(let e of m)queueMicrotask(()=>{throw e});throw p}}finally{e[Wr]=t,delete e.currentTarget,or(d),cr(f)}}}var ni=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function ri(e){return ni?.createHTML(e)??e}function ii(e){var t=wn(`template`);return t.innerHTML=ri(e.replaceAll(`<!>`,`<!---->`)),t.content}function ai(e,t){var n=sr;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function R(e,t){var n=!!(t&1),r=!!(t&2),i,a=!e.startsWith(`<!>`);return()=>{if(T)return ai(ke,null),ke;i===void 0&&(i=ii(a?e:`<!>`+e),n||(i=bn(i)));var t=r||hn?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=bn(t),s=t.lastChild;ai(o,s)}else ai(t,t);return t}}function oi(e,t,n=`svg`){var r=!e.startsWith(`<!>`),i=!!(t&1),a=`<${n}>${r?e:`<!>`+e}</${n}>`,o;return()=>{if(T)return ai(ke,null),ke;if(!o){var e=bn(ii(a));if(i)for(o=document.createDocumentFragment();bn(e);)o.appendChild(bn(e));else o=bn(e)}var t=o.cloneNode(!0);if(i){var n=bn(t),r=t.lastChild;ai(n,r)}else ai(t,t);return t}}function si(e,t){return oi(e,t,`svg`)}function ci(e=``){if(!T){var t=yn(e+``);return ai(t,t),t}var n=ke;return n.nodeType===3?Tn(n):(n.before(n=yn()),Ae(n)),ai(n,n),n}function z(){if(T)return ai(ke,null),ke;var e=document.createDocumentFragment(),t=document.createComment(``),n=yn();return e.append(t,n),ai(t,n),e}function B(e,t){if(T){var n=sr;n.f&32768&&n.nodes.end!==null||(n.nodes.end=ke),je()}else e!==null&&e.before(t)}function li(){if(T&&ke&&ke.nodeType===8&&ke.textContent?.startsWith(`$`)){let e=ke.textContent.substring(1);return je(),e}return(window.__svelte??={}).uid??=1,`c${window.__svelte.uid++}`}function ui(e){let t=0,n=nn(0),r;return()=>{jn()&&(L(n),Bn(()=>(t===0&&(r=Ar(()=>e(()=>ln(n)))),t+=1,()=>{ut(()=>{--t,t===0&&(r?.(),r=void 0,ln(n))})})))}}var di=ne|re;function fi(e,t,n,r){new pi(e,t,n,r)}var pi=class{parent;is_pending=!1;transform_error;#e;#t=T?ke:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Map;#p=null;#m=ui(()=>(this.#p=nn(this.#l),()=>{this.#p=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=sr;t.b=this,t.f|=128,n(e)},this.parent=sr.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=Vn(()=>{if(T){let e=Pe(this.#t);je();let t=e===`[!`;if(e.startsWith(`[?`)){let t=JSON.parse(e.slice(2));this.#g(t)}else t?this.#y():this.#h()}else this.#b()},di),T&&(this.#e=ke)}#h(){try{this.#a=Un(()=>this.#r(this.#e))}catch(e){this.error(e)}}#g(e){let t=this.#n.failed,{reset:n,invoke_onerror:r}=this.#_(e);ut(r),t&&(this.#s=Un(()=>{t(this.#e,()=>e,()=>n)}))}#_(e){var t=!1,n=!1;let r=()=>{this.#v()||(t?De():(t=!0,n&&Ye(),this.#s!==null&&Xn(this.#s,()=>{this.#s=null}),this.#S(()=>{this.#b()})))};return{reset:r,invoke_onerror:()=>{if(!this.#v())try{n=!0,this.#n.onerror?.(e,r),n=!1}catch(e){Dn(e,this.#i&&this.#i.parent)}}}}#v(){return(this.#i.f&(ee|te))!==0}#y(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=Un(()=>e(this.#e)),ut(()=>{if(!this.#v()){var e=this.#c=document.createDocumentFragment(),t=yn(),n=!1;e.append(t),this.#a=this.#S(()=>{try{return Un(()=>this.#r(t))}catch(e){try{this.error(e),n=!0}catch(e){Dn(e,this.#i.parent)}return null}}),this.#a===null?(this.#c=null,n&&this.#x(Ft)):this.#u===0&&(this.#e.before(e),this.#c=null,Xn(this.#o,()=>{this.#o=null}),this.#x(Ft))}}))}#b(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=Un(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();er(this.#a,e);let t=this.#n.pending;this.#o=Un(()=>t(this.#e))}else this.#x(Ft)}catch(e){this.error(e)}}#x(e){this.is_pending=!1,e.transfer_reactions(this.#f)}defer_effect(e){ht(e,this.#f)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#S(e){var t=sr,n=ir,r=et;cr(this.#i),or(this.#i),tt(this.#i.ctx);try{return Gt.ensure(),e()}finally{cr(t),or(n),tt(r)}}#C(e,t){this.has_pending_snippet()?(this.#u+=e,this.#u===0&&(this.#x(t),this.#o&&Xn(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))):this.parent&&this.parent.#C(e,t)}update_pending_count(e,t){this.#C(e,t),this.#l+=e,!this.#p||this.#d||(this.#d=!0,ut(()=>{this.#d=!1,this.#p&&sn(this.#p,this.#l)}))}get_effect_pending(){return this.#m(),L(this.#p)}error(e){if(e===ye||!this.#n.onerror&&!this.#n.failed)throw e;Ft?.is_fork?(this.#a&&Ft.skip_effect(this.#a),this.#o&&Ft.skip_effect(this.#o),this.#s&&Ft.skip_effect(this.#s),Ft.oncommit(()=>{this.#v()||this.#w(e)})):this.#w(e)}#w(e){this.#a&&=(qn(this.#a),null),this.#o&&=(qn(this.#o),null),this.#s&&=(qn(this.#s),null),T&&(Ae(this.#t),Me(),Ae(Ne()));let t=this.#n.failed,n=e=>{if(this.#v())return;let{reset:n,invoke_onerror:r}=this.#_(e);r(),t&&!this.#v()&&(this.#s=this.#S(()=>{try{return Un(()=>{var r=sr;r.b=this,r.f|=128,t(this.#e,()=>e,()=>n)})}catch(e){return Dn(e,this.#i.parent),null}}))};ut(()=>{if(!this.#v()){var t;try{t=this.transform_error(e)}catch(e){Dn(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(n,e=>Dn(e,this.#i&&this.#i.parent)):n(t)}})}};function V(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e[he]??=e.nodeValue)&&(e[he]=n,e.nodeValue=`${n}`)}function mi(e,t){return gi(e,t)}var hi=new Map;function gi(e,{target:t,anchor:n,props:i={},events:a,context:o,intro:s=!0,transformError:c}){vn();var l=void 0,u=Ln(()=>{var s=n??t.appendChild(yn());fi(s,{pending:()=>{}},t=>{D({});var n=et;if(o&&(n.c=o),a&&(i.$$events=a),T&&ai(t,null),l=e(t,i)||ot(),T&&(sr.nodes.end=ke,ke===null||ke.nodeType!==8||ke.data!==`]`))throw Te(),ye;O()},c);var u=new Set,d=e=>{for(var n=0;n<e.length;n++){var r=e[n];if(!u.has(r)){u.add(r);var i=Vr(r);for(let e of[t,document]){var a=hi.get(e);a===void 0&&(a=new Map,hi.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,ti,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return d(r(Gr)),Kr.add(d),()=>{for(var e of u)for(let n of[t,document]){var r=hi.get(n),i=r.get(e);--i==0?(n.removeEventListener(e,ti),r.delete(e),r.size===0&&hi.delete(n)):r.set(e,i)}Kr.delete(d),s!==n&&s.parentNode?.removeChild(s)}});return _i.set(l,u),l}var _i=new WeakMap;function vi(e,t){let n=_i.get(e);return n?(_i.delete(e),n(t)):Promise.resolve()}var yi=class{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#a=e=>{if(this.#e.has(e)){var t=this.#e.get(e),n=this.#t.get(t);if(n)Qn(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(Qn(r.effect),this.#t.set(t,r.effect),this.#n.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of this.#e){if(this.#e.delete(t),t===e)break;let r=this.#n.get(n);r&&(qn(r.effect),this.#n.delete(n))}for(let[e,r]of this.#t){if(e===t||this.#r.has(e))continue;let i=()=>{if(Array.from(this.#e.values()).includes(e)){var t=document.createDocumentFragment();er(r,t),t.append(yn()),this.#n.set(e,{effect:r,fragment:t})}else qn(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),Xn(r,i,!1)):i()}}};#o=e=>{this.#e.delete(e);let t=Array.from(this.#e.values());for(let[e,n]of this.#n)t.includes(e)||(qn(n.effect),this.#n.delete(e))};ensure(e,t){var n=Ft,r=Cn();if(t&&!this.#t.has(e)&&!this.#n.has(e)){if(r){var i=document.createDocumentFragment(),a=yn();i.append(a),this.#n.set(e,{effect:Un(()=>t(a)),fragment:i})}else this.#t.set(e,Un(()=>t(this.anchor)))}if(this.#e.set(n,e),r){for(let[t,r]of this.#t)t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of this.#n)t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(this.#a),n.ondiscard(this.#o)}else T&&(this.anchor=ke),this.#a(n)}};function H(e,t,n=!1){var r;T&&(r=ke,je());var i=new yi(e),a=n?ne:0;function o(e,t){if(T){var n=Pe(r);if(e!==parseInt(n.substring(1))){var a=Ne();Ae(a),i.anchor=a,Oe(!1),i.ensure(e,t),Oe(!0);return}}i.ensure(e,t)}Vn(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}var bi=Symbol(`NaN`);function xi(e,t,n){T&&je();var r=new yi(e),i=!st();Vn(()=>{var e=t();e!==e&&(e=bi),i&&typeof e==`object`&&e&&(e={}),r.ensure(e,n)})}function Si(e,t){return t}function Ci(e,t,n){for(var i=[],a=t.length,o,s=t.length,c=0;c<a;c++){let n=t[c];Xn(n,()=>{if(o){if(o.pending.delete(n),o.done.add(n),o.pending.size===0){var t=e.outrogroups;wi(e,r(o.done)),t.delete(o),t.size===0&&(e.outrogroups=null)}}else--s},!1)}if(s===0){var l=i.length===0&&n!==null&&e.pending.size===0;if(l){var u=n,d=u.parentNode;Sn(d),d.append(u),e.items.clear()}wi(e,t,!l)}else o={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(o)}function wi(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(let t of e.pending.values())for(let n of t)r.add(e.items.get(n).e)}for(var i=0;i<t.length;i++){var a=t[i];r?.has(a)?(a.f|=ae,er(a,document.createDocumentFragment())):qn(t[i],n)}}var Ti;function Ei(t,n,i,a,o,s=null){var c=t,l=new Map;if(n&4){var u=t;c=T?Ae(bn(u)):u.appendChild(yn())}T&&je();var d=null,f=Ot(()=>{var t=i();return e(t)?t:t==null?[]:r(t)}),p=new Map,m=!0;function h(e){if(!(_.effect.f&16384)){_.pending.delete(e);var t=L(f);_.fallback=d,Oi(_,t,c,n,a),d!==null&&(t.length===0?d.f&33554432?(d.f^=ae,Ai(d,null,c)):Qn(d):Xn(d,()=>{d=null}))}}function g(e){_.pending.delete(e)}var _={effect:Vn(()=>{var e=L(f),t=e.length;let r=!1;T&&Pe(c)===`[!`!=(t===0)&&(c=Ne(),Ae(c),Oe(!1),r=!0);for(var u=new Set,_=Ft,v=Cn(),y=0;y<t;y+=1){T&&ke.nodeType===8&&ke.data===`]`&&(c=ke,r=!0,Oe(!1));var b=e[y],x=a(b,y),S=m?null:l.get(x);S?(S.v&&sn(S.v,b),S.i&&sn(S.i,y),v&&_.unskip_effect(S.e)):(S=ki(l,m?c:Ti??=yn(),b,x,y,o,n,i),m||(S.e.f|=ae),l.set(x,S)),u.add(x)}if(t===0&&s&&!d&&(m?d=Un(()=>s(c)):(d=Un(()=>s(Ti??=yn())),d.f|=ae)),t>u.size&&Be(``,``,``),T&&t>0&&Ae(Ne()),!m){if(p.set(_,u),v){for(let[e,t]of l)u.has(e)||_.skip_effect(t.e);_.oncommit(h),_.ondiscard(g)}else h(_)}r&&Oe(!0),L(f)}),flags:n,items:l,pending:p,outrogroups:null,fallback:d};m=!1,T&&(c=ke)}function Di(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function Oi(e,t,n,i,a){var o=!!(i&8),s=t.length,c=e.items,l=Di(e.effect.first),u,d=null,f,p=[],m=[],h,g,_,v;if(o)for(v=0;v<s;v+=1)h=t[v],g=a(h,v),_=c.get(g).e,_.f&33554432||(_.nodes?.a?.measure(),(f??=new Set).add(_));for(v=0;v<s;v+=1){if(h=t[v],g=a(h,v),_=c.get(g).e,e.outrogroups!==null)for(let t of e.outrogroups)t.pending.delete(_),t.done.delete(_);if(_.f&8192&&(Qn(_),o&&(_.nodes?.a?.unfix(),(f??=new Set).delete(_))),_.f&33554432){if(_.f^=ae,_===l)Ai(_,null,n);else{var y=d?d.next:l;_===e.effect.last&&(e.effect.last=_.prev),_.prev&&(_.prev.next=_.next),_.next&&(_.next.prev=_.prev),ji(e,d,_),ji(e,_,y),Ai(_,y,n),d=_,p=[],m=[],l=Di(d.next);continue}}if(_!==l){if(u!==void 0&&u.has(_)){if(p.length<m.length){var b=m[0],x;d=b.prev;var S=p[0],ee=p[p.length-1];for(x=0;x<p.length;x+=1)Ai(p[x],b,n);for(x=0;x<m.length;x+=1)u.delete(m[x]);ji(e,S.prev,ee.next),ji(e,d,S),ji(e,ee,b),l=b,d=ee,--v,p=[],m=[]}else u.delete(_),Ai(_,l,n),ji(e,_.prev,_.next),ji(e,_,d===null?e.effect.first:d.next),ji(e,d,_),d=_;continue}for(p=[],m=[];l!==null&&l!==_;)(u??=new Set).add(l),m.push(l),l=Di(l.next);if(l===null)continue}_.f&33554432||p.push(_),d=_,l=Di(_.next)}if(e.outrogroups!==null){for(let t of e.outrogroups)t.pending.size===0&&(wi(e,r(t.done)),e.outrogroups?.delete(t));e.outrogroups.size===0&&(e.outrogroups=null)}if(l!==null||u!==void 0){var C=[];if(u!==void 0)for(_ of u)_.f&8192||C.push(_);for(;l!==null;)!(l.f&8192)&&l!==e.fallback&&C.push(l),l=Di(l.next);var te=C.length;if(te>0){var ne=i&4&&s===0?n:null;if(o){for(v=0;v<te;v+=1)C[v].nodes?.a?.measure();for(v=0;v<te;v+=1)C[v].nodes?.a?.fix()}Ci(e,C,ne)}}o&&ut(()=>{if(f!==void 0)for(_ of f)_.nodes?.a?.apply()})}function ki(e,t,n,r,i,a,o,s){var c=o&1?o&16?nn(n):rn(n,!1,!1):null,l=o&2?nn(i):null;return{v:c,i:l,e:Un(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function Ai(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,a=t&&!(t.f&33554432)?t.nodes.start:n;r!==null;){var o=xn(r);if(a.before(r),r===i)return;r=o}}function ji(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function U(e,t,...n){var r=new yi(e);Vn(()=>{let e=t()??null;r.ensure(e,e&&(t=>e(t,...n)))},ne)}function Mi(e,t,n){var r;T&&(r=ke,je());var i=new yi(e);Vn(()=>{var e=t()??null;if(T&&Pe(r)===`[`!=(e!==null)){var a=Ne();Ae(a),i.anchor=a,Oe(!1),i.ensure(e,e&&(t=>n(t,e))),Oe(!0)}else i.ensure(e,e&&(t=>n(t,e)))},ne)}var Ni=()=>performance.now(),Pi={tick:e=>requestAnimationFrame(e),now:()=>Ni(),tasks:new Set};function Fi(){let e=Pi.now();Pi.tasks.forEach(t=>{t.c(e)||(Pi.tasks.delete(t),t.f())}),Pi.tasks.size!==0&&Pi.tick(Fi)}function Ii(e){let t;return Pi.tasks.size===0&&Pi.tick(Fi),{promise:new Promise(n=>{Pi.tasks.add(t={c:e,f:n})}),abort(){Pi.tasks.delete(t)}}}function Li(e,t,n,r,i,a){let o=T;T&&je();var s=null;T&&ke.nodeType===1&&(s=ke,je());var c=T?ke:e,l=new yi(c,!1);Vn(()=>{let e=t()||null;var a=i?i():n||e===`svg`?Se:void 0;if(e===null)l.ensure(null,null);else return l.ensure(e,t=>{if(e){var n=T;if(s=T?s:wn(e,a),ai(s,s),r){var i=null;T&&Ur(e)&&s.append(i=document.createComment(``));var o=T?bn(s):s.appendChild(yn());T&&(o===null?Oe(!1):Ae(o)),r(s,o),i?.remove()}sr.nodes.end=s,n||t.before(s)}T&&Ae(t)}),()=>{}},ne),Mn(()=>{}),o&&(Oe(!0),Ae(c))}function Ri(e,t){var n=void 0,r;Hn(()=>{n!==(n=t())&&(r&&=(qn(r),null),n&&(r=Un(()=>{Rn(()=>n(e))})))})}function zi(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=zi(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function Bi(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=zi(e))&&(r&&(r+=` `),r+=t);return r}function Vi(e){return typeof e==`object`?Bi(e):e??``}var Hi=[...`
2
+ \r\f\xA0\v`];function Ui(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||Hi.includes(r[o-1]))&&(s===r.length||Hi.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function Wi(e,t=!1){var n=t?` !important;`:`;`,r=``;for(var i of Object.keys(e)){var a=e[i];a!=null&&a!==``&&(r+=` `+i+`: `+a+n)}return r}function Gi(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function Ki(e,t){if(t){var n=``,r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\/\*.*?\*\//g,``).trim();var a=!1,o=0,s=!1,c=[];r&&c.push(...Object.keys(r).map(Gi)),i&&c.push(...Object.keys(i).map(Gi));var l=0,u=-1;let t=e.length;for(var d=0;d<t;d++){var f=e[d];if(s?f===`/`&&e[d-1]===`*`&&(s=!1):a?a===f&&(a=!1):f===`/`&&e[d+1]===`*`?s=!0:f===`"`||f===`'`?a=f:f===`(`?o++:f===`)`&&o--,!s&&a===!1&&o===0){if(f===`:`&&u===-1)u=d;else if(f===`;`||d===t-1){if(u!==-1){var p=Gi(e.substring(l,u).trim());if(!c.includes(p)){f!==`;`&&d++;var m=e.substring(l,d).trim();n+=` `+m+`;`}}l=d+1,u=-1}}}}return r&&(n+=Wi(r)),i&&(n+=Wi(i,!0)),n=n.trim(),n===``?null:n}return e==null?null:String(e)}function qi(e,t,n,r,i,a){var o=e[pe];if(T||o!==n||o===void 0){var s=Ui(n,r,a);T&&s===e.getAttribute(`class`)||(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e[pe]=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}function Ji(e,t={},n,r){for(var i in n){var a=n[i];t[i]!==a&&(n[i]==null?e.style.removeProperty(i):e.style.setProperty(i,a,r))}}function Yi(e,t,n,r){var i=e[me];if(T||i!==t){var a=Ki(t,r);T&&a===e.getAttribute(`style`)||(a==null?e.removeAttribute(`style`):e.style.cssText=a),e[me]=t}else r&&(Array.isArray(r)?(Ji(e,n?.[0],r[0]),Ji(e,n?.[1],r[1],`important`)):Ji(e,n,r));return r}function Xi(e,t){t?e.hasAttribute(`selected`)||e.setAttribute(`selected`,``):e.removeAttribute(`selected`)}function Zi(e,t){var n=!(`__defaultValue`in e);(n||e.__defaultValue!==t)&&(e.__defaultValue=t,Qi(e,!n||`__value`in e))}function Qi(t,n){var r=t.__defaultValue,i=t.multiple,a=i?r??[]:null;if(!i||e(a)){var o=t.selectedIndex,s=n&&i?new Set(t.selectedOptions):null;for(var c of t.options){var l=ta(c);Xi(c,i?a.includes(l):pn(l,r))}if(n){if(s!==null)for(c of t.options){var u=s.has(c);c.selected!==u&&(c.selected=u)}else t.selectedIndex!==o&&(t.selectedIndex=o)}}}function $i(t,n,r=!1){if(t.multiple){if(n==null)return;if(!e(n))return Ee();for(var i of t.options)i.selected=n.includes(ta(i))}else{for(i of t.options)if(pn(ta(i),n)){i.selected=!0;return}r&&n===void 0||(t.selectedIndex=-1)}}function ea(e){var t=new MutationObserver(t=>{t.every(na)||(`__defaultValue`in e&&Qi(e,!1),`__value`in e&&$i(e,e.__value))});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`value`]}),Mn(()=>{t.disconnect()})}function ta(e){return`__value`in e?e.__value:e.value}function na(e){if(e.target.closest(`selectedcontent`)!==null)return!0;if(e.type===`childList`){var t=[...e.addedNodes,...e.removedNodes];return t.length>0&&t.every(e=>e.nodeName===`SELECTEDCONTENT`)}return!1}var ra=Symbol(`class`),ia=Symbol(`style`),aa=Symbol(`is custom element`),oa=Symbol(`is html`),sa=ve?`link`:`LINK`,ca=ve?`input`:`INPUT`,la=ve?`option`:`OPTION`,ua=ve?`select`:`SELECT`,da=ve?`progress`:`PROGRESS`;function fa(e){if(T){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute(`value`)){var n=e.value;pa(e,`value`,null),e.value=n}if(e.hasAttribute(`checked`)){var r=e.checked;pa(e,`checked`,null),e.checked=r}}};e[ge]=n,ut(n),vt()}}function pa(e,t,n,r){var i=ga(e);if(!(T&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===sa))){var a=i[t];a!==(i[t]=n)&&(t===`loading`&&(e[w]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&va(e).has(t)?e[t]=n:(!T||typeof n!=`number`&&typeof n!=`boolean`||a!==String(n))&&e.setAttribute(t,n))}}function ma(e,t,n,r,i=!1,a=!1){T&&i&&e.nodeName===ca&&(`defaultValue`in n||`defaultChecked`in n||fa(e));var o=ga(e),s=o[aa],c=!o[oa];let l=T&&s;l&&Oe(!1);var u=t||{},d=e.nodeName===la,f=e.nodeName===ua;try{for(var p in t)!(p in n)&&p[0]+p[1]!==`$$`&&(n[p]=null);n.class?n.class=Vi(n.class):(r||n[ra])&&(n.class=null),n[ia]&&(n.style??=null);var m=va(e);if(e.nodeName===ca&&`type`in n&&(`value`in n||`__value`in n)){var h=n.type;(h!==u.type||h===void 0&&e.hasAttribute(`type`))&&(u.type=h,pa(e,`type`,h,a))}for(let i in n){let l=n[i];if(d&&i===`value`&&l==null)e.value=e.__value=``,u[i]=l;else if(i===`class`)qi(e,e.namespaceURI===`http://www.w3.org/1999/xhtml`,l,r,t?.[ra],n[ra]),u[i]=l,u[ra]=n[ra];else if(i===`style`)Yi(e,l,t?.[ia],n[ia]),u[i]=l,u[ia]=n[ia];else{var g=u[i];if(l!==g||l===void 0&&e.hasAttribute(i)){u[i]=l;var _=i[0]+i[1];if(_!==`$$`){if(_===`on`){let t={},n=`$$`+i,r=i.slice(2);var v=Ir(r);if(Pr(r)&&(r=r.slice(0,-7),t.capture=!0),!v&&g){if(l!=null)continue;e.removeEventListener(r,u[n],t),u[n]=null}if(v)Zr(r,e,l),Qr([r]);else if(l!=null){function a(e){u[i].call(this,e)}u[n]=Jr(r,e,a,t)}}else if(i===`style`)pa(e,i,l);else if(i===`autofocus`)gt(e,!!l);else if(!s&&(i===`__value`||i===`value`&&l!=null))e.__value=l,(g==null||e.value!==l||l===0&&e.nodeName===da)&&(e.value=l);else if(i===`selected`&&d)Xi(e,l);else{var y=i;c||(y=zr(y));var b=y===`defaultValue`||y===`defaultChecked`;if(f&&y===`defaultValue`)continue;if(l==null&&!s&&!b){if(o[i]=null,y===`value`||y===`checked`){let n=e,r=t===void 0;if(y===`value`){let e=n.defaultValue;n.removeAttribute(y),n.defaultValue=e,n.value=n.__value=r?e:null}else{let e=n.defaultChecked;n.removeAttribute(y),n.defaultChecked=e,n.checked=r?e:!1}}else e.removeAttribute(i)}else b||(s||typeof l!=`string`)&&m.has(y)?(e[y]=l,y in o&&(o[y]=be)):typeof l!=`function`&&pa(e,y,l,a)}}}}}}finally{l&&Oe(!0)}return u}function ha(e,t,n=[],r=[],i=[],a,o=!1,s=!1){xt(i,n,r,n=>{var r=void 0,i={},c=e.nodeName===ua,l=!1;if(Hn(()=>{var u=t(...n.map(L)),d=ma(e,r,u,a,o,s);if(l&&c){var f=e;`defaultValue`in u&&Zi(f,u.defaultValue),`value`in u&&$i(f,u.value)}for(let e of Object.getOwnPropertySymbols(i))u[e]||qn(i[e]);for(let t of Object.getOwnPropertySymbols(u)){var p=u[t];t.description!==`@attach`||r&&p===r[t]||(i[t]&&qn(i[t]),i[t]=Un(()=>Ri(e,()=>p))),d[t]=p}r=d}),c){var u=e;Rn(()=>{var e=r;`defaultValue`in e&&Zi(u,e.defaultValue),$i(u,e.value,!0),ea(u)})}l=!0})}function ga(e){return e[fe]??={[aa]:e.nodeName.includes(`-`),[oa]:e.namespaceURI===xe}}var _a=new Map;function va(e){var t=e.getAttribute(`is`)||e.nodeName,n=_a.get(t);if(n)return n;_a.set(t,n=new Set);for(var r,i=e,a=Element.prototype;a!==i;){for(var s in r=o(i),r)r[s].set&&s!==`innerHTML`&&s!==`textContent`&&s!==`innerText`&&n.add(s);i=l(i)}return n}function ya(e,t,n=t){var r=new WeakSet;bt(e,`input`,async i=>{var a=i?e.defaultValue:e.value;if(a=ba(e)?xa(a):a,n(a),Ft!==null&&r.add(Ft),await Dr(),a!==(a=t())){var o=e.selectionStart,s=e.selectionEnd,c=e.value.length;if(e.value=a??``,s!==null){var l=e.value.length;o===s&&s===c&&l>c?(e.selectionStart=l,e.selectionEnd=l):(e.selectionStart=o,e.selectionEnd=Math.min(s,l))}}}),(T&&e.defaultValue!==e.value||Ar(t)==null&&e.value)&&(n(ba(e)?xa(e.value):e.value),Ft!==null&&r.add(Ft)),Bn(()=>{var n=t();if(e===document.activeElement){var i=Ft;if(r.has(i))return}ba(e)&&n===xa(e.value)||(e.type!==`date`||n||e.value)&&n!==e.value&&(e.value=n??``)})}function ba(e){var t=e.type;return t===`number`||t===`range`}function xa(e){return e===``?null:+e}function Sa(e,t,n=t){bt(e,`change`,()=>{n(e.files)}),T&&e.files&&n(e.files),Bn(()=>{e.files=t()})}var Ca=new class e{#e=new WeakMap;#t;#n;static entries=new WeakMap;constructor(e){this.#n=e}observe(e,t){var n=this.#e.get(e)||new Set;return n.add(t),this.#e.set(e,n),this.#r().observe(e,this.#n),()=>{var n=this.#e.get(e);n.delete(t),n.size===0&&(this.#e.delete(e),this.#t.unobserve(e))}}#r(){return this.#t??=new ResizeObserver(t=>{for(var n of t){e.entries.set(n.target,n);for(var r of this.#e.get(n.target)||[])r(n)}})}}({box:`border-box`});function wa(e,t,n){var r=Ca.observe(e,()=>n(e[t]));Rn(()=>(Ar(()=>n(e[t])),r))}function Ta(e,t){return e===t||e?.[le]===t}function Ea(e=ot(),t,n,r){var i=et.r,a=sr;return Rn(()=>{var o,s;return Bn(()=>{o=s,s=r?.()||[],Ar(()=>{Ta(n(...s),e)||(t(e,...s),o&&Ta(n(...o),e)&&t(null,...o))})}),()=>{let r=a;for(;r!==i&&r.parent!==null&&r.parent.f&33554432;)r=r.parent;let o=()=>{s&&Ta(n(...s),e)&&t(null,...s)},c=r.teardown;r.teardown=()=>{o(),c?.()}}}),e}function Da(e=!1){let t=et,n=t.l.u;if(!n)return;let r=()=>jr(t.s);if(e){let e=0,n={},i=Tt(()=>{let r=!1,i=t.s;for(let e in i)i[e]!==n[e]&&(n[e]=i[e],r=!0);return r&&e++,e});r=()=>L(i)}n.b.length&&Fn(()=>{Oa(t,r),m(n.b)}),Nn(()=>{let e=Ar(()=>n.m.map(p));return()=>{for(let t of e)typeof t==`function`&&t()}}),n.a.length&&Nn(()=>{Oa(t,r),m(n.a)})}function Oa(e,t){if(e.l.s)for(let t of e.l.s)L(t);t()}var ka=!1;function Aa(e){var t=ka;try{return ka=!1,[e(),ka]}finally{ka=t}}var ja={get(e,t){if(!e.exclude.has(t))return e.props[t]},set(e,t){return!1},getOwnPropertyDescriptor(e,t){if(!e.exclude.has(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},has(e,t){return!e.exclude.has(t)&&t in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(t=>!e.exclude.has(t))}};function W(e,t,n){return new Proxy({props:e,exclude:t},ja)}var Ma={get(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(d(r)&&(r=r()),typeof r==`object`&&r&&t in r)return r[t]}},set(e,t,n){let r=e.props.length;for(;r--;){let i=e.props[r];d(i)&&(i=i());let o=a(i,t);if(o&&o.set)return o.set(n),!0}return!1},getOwnPropertyDescriptor(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(d(r)&&(r=r()),typeof r==`object`&&r&&t in r){let e=a(r,t);return e&&!e.configurable&&(e.configurable=!0),e}}},has(e,t){if(t===le||t===de)return!1;for(let n of e.props)if(d(n)&&(n=n()),n!=null&&t in n)return!0;return!1},ownKeys(e){let t=[];for(let n of e.props)if(d(n)&&(n=n()),n){for(let e in n)t.includes(e)||t.push(e);for(let e of Object.getOwnPropertySymbols(n))t.includes(e)||t.push(e)}return t}};function G(...e){return new Proxy({props:e},Ma)}function K(e,t,n,r){var i=!Xe||!!(n&2),o=!!(n&8),s=!!(n&16),c=r,l=!0,u=void 0,d=()=>s&&i?(u??=Tt(r),L(u)):(l&&(l=!1,c=s?Ar(r):r),c);let f;if(o){var p=le in e||de in e;f=a(e,t)?.set??(p&&t in e?n=>e[t]=n:void 0)}var m,h=!1;o?[m,h]=Aa(()=>e[t]):m=e[t],m===void 0&&r!==void 0&&(m=d(),f&&(i&&Ge(t),f(m)));var g=i?()=>{var n=e[t];return n===void 0?d():(l=!0,n)}:()=>{var n=e[t];return n!==void 0&&(c=void 0),n===void 0?c:n};if(i&&!(n&4))return g;if(f){var _=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||_||h)&&f(t?g():e),e):g()})}var v=!1,y=(n&1?Tt:Ot)(()=>(v=!1,g()));o&&L(y);var b=sr;return(function(e,t){if(arguments.length>0){let n=t?L(y):i&&o?dn(e):e;return j(y,n),v=!0,c!==void 0&&(c=n),e}return nr&&v||b.f&16384?y.v:L(y)})}function Na(e){et===null&&Re(`onMount`),Xe&&et.l!==null?Pa(et).m.push(e):Nn(()=>{let t=Ar(e);if(typeof t==`function`)return t})}function Pa(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);var Fa={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`},Ia=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim();function La(e){return e!=null}function Ra(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??Fa.width,a=e.size??e.height??Fa.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?Ia(...c):Ia(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??Fa[`stroke-width`])*Number(e.size??e.width??Fa.width)/Number(t.size??t.width??Fa.width):t.strokeWidth??Fa[`stroke-width`];return[`svg`,{...Object.entries(Fa).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&La(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&La(t.width)&&{[r(`width`)]:t.width},...`height`in t&&La(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}var za=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},Ba=Symbol(`lucide-context`),Va=()=>nt(Ba),Ha=new Set([`$$slots`,`$$events`,`$$legacy`,`color`,`size`,`width`,`height`,`strokeWidth`,`absoluteStrokeWidth`,`nonScalingStroke`,`iconNode`,`icon`,`class`,`children`]),Ua=si(`<svg><!><!></svg>`);function Wa(e,t){D(t,!0);let n=Va()??{},r=K(t,`color`,19,()=>n.color??`currentColor`),i=K(t,`size`,19,()=>n.size??24),a=K(t,`width`,19,i),o=K(t,`height`,19,i),s=K(t,`strokeWidth`,19,()=>n.strokeWidth??2),c=K(t,`absoluteStrokeWidth`,19,()=>n.absoluteStrokeWidth??!1),l=K(t,`nonScalingStroke`,19,()=>n.nonScalingStroke??!1),u=K(t,`iconNode`,19,()=>[]),d=K(t,`icon`,19,()=>({node:u(),aliases:[],size:24})),p=W(t,Ha),m=k(()=>!!t.children||za(p)),h=k(()=>Ra(d(),{color:r(),width:a(),height:o(),strokeWidth:s(),absoluteStrokeWidth:c(),nonScalingStroke:l(),className:Ia(`lucide-icon`,n.class),hasA11yProp:L(m),attributes:p})),v=k(()=>_(L(h),3)),y=k(()=>L(v)[1]),b=k(()=>g(L(v)[2],()=>[],!0)),x=k(()=>({...L(y),class:[...L(y).class.split(` `),t.class]}));var S=Ua();ha(S,()=>({...L(x)}));var ee=M(S);Ei(ee,17,()=>L(b),Si,(e,t)=>{var n=k(()=>_(L(t),2));let r=()=>L(n)[0],i=()=>L(n)[1];var a=z();Li(N(a),r,!0,(e,t)=>{ha(e,()=>({...i()}))}),B(e,a)}),U(F(ee),()=>t.children??f),E(S),B(e,S),O()}var Ga={name:`wifi-off`,size:24,node:[[`path`,{d:`M12 20h.01`}],[`path`,{d:`M8.5 16.429a5 5 0 0 1 7 0`}],[`path`,{d:`M5 12.859a10 10 0 0 1 5.17-2.69`}],[`path`,{d:`M19 12.859a10 10 0 0 0-2.007-1.523`}],[`path`,{d:`M2 8.82a15 15 0 0 1 4.177-2.643`}],[`path`,{d:`M22 8.82a15 15 0 0 0-11.288-3.764`}],[`path`,{d:`m2 2 20 20`}]]};Ga.node;var Ka=new Set([`$$slots`,`$$events`,`$$legacy`]);function qa(e,t){let n=W(t,Ka);Wa(e,G(()=>n,{get icon(){return Ga}}))}var Ja={offline:`正在重新连接…`,refreshing:`正在刷新`,fullscreenUnsupported:`当前浏览器不支持全屏`,fullscreenDenied:`当前浏览器不允许全屏`,navLabel:`页面导航`,pagesLabel:`页面`,refreshPage:`刷新页面状态`,fullscreenEnter:`进入全屏`,fullscreenExit:`退出全屏`,errorSessions:`有错误会话`,pendingQuestions:`有待回答问题`,timerAlert:`计时器已到时`,pageHome:`首页`,pageSessions:`会话`,pageMusic:`音乐`,pagePerformance:`性能`,connecting:`正在连接,请稍候`,actionFailed:`操作失败`,serviceError:`服务异常`,pushQuestionsOff:`「推送问询」已关闭,请在 DSH 的通知设置中开启`,approvalPending:`该会话正在等待批准,请在 DSH 中处理`,answerInDsh:`这个问题需要在 DSH 中回答`,connectionLost:`连接已断开,请稍后重试`,answerReplaced:`答复已被新的回答替换`,answerTimeout:`回答超时,请重试`,answerFailed:`回答失败`,greetingMorning:`早上好`,greetingNoon:`中午好`,greetingAfternoon:`下午好`,greetingEvening:`晚上好`,periodMorning:`早上`,periodNoon:`中午`,periodAfternoon:`下午`,periodEvening:`晚上`,justNow:`刚刚`,minutesAgo:`{count} 分钟前`,hoursAgo:`{count} 小时前`,daysAgo:`{count} 天前`,uptimeDays:`{days}天 {hours}小时`,uptimeHours:`{hours}小时 {minutes}分`,uptimeMinutes:`{minutes}分钟`,termMinorCold:`小寒`,termMajorCold:`大寒`,termStartOfSpring:`立春`,termRainWater:`雨水`,termAwakening:`惊蛰`,termSpringEquinox:`春分`,termClearAndBright:`清明`,termGrainRain:`谷雨`,termStartOfSummer:`立夏`,termGrainFull:`小满`,termGrainInEar:`芒种`,termSummerSolstice:`夏至`,termMinorHeat:`小暑`,termMajorHeat:`大暑`,termStartOfAutumn:`立秋`,termEndOfHeat:`处暑`,termWhiteDew:`白露`,termAutumnEquinox:`秋分`,termColdDew:`寒露`,termFrostDescent:`霜降`,termStartOfWinter:`立冬`,termMinorSnow:`小雪`,termMajorSnow:`大雪`,termWinterSolstice:`冬至`,weather:`天气`,weatherUnavailable:`天气暂不可用`,tryLater:`稍后再试`,currentLocation:`当前位置`,customLocation:`自定义位置`,highLow:`最高 / 最低`,feelsLike:`体感`,humidity:`湿度`,windSpeed:`风速`,today:`今天`,now:`现在`,hourLabel:`{hour}时`,sunrise:`日出`,sunset:`日落`,tomorrow:`明日`,weatherFallback:`天气`,weatherNight:`夜间`,wmoClear:`晴`,wmoMostlyClear:`大致晴朗`,wmoPartlyCloudy:`局部多云`,wmoOvercast:`阴天`,wmoFog:`有雾`,wmoRimeFog:`雾凇`,wmoDrizzle:`毛毛雨`,wmoDenseDrizzle:`较强毛毛雨`,wmoFreezingDrizzle:`冻毛毛雨`,wmoHeavyFreezingDrizzle:`强冻毛毛雨`,wmoLightRain:`小雨`,wmoRain:`中雨`,wmoHeavyRain:`大雨`,wmoFreezingRain:`冻雨`,wmoHeavyFreezingRain:`强冻雨`,wmoLightSnow:`小雪`,wmoSnow:`中雪`,wmoHeavySnow:`大雪`,wmoSnowGrains:`雪粒`,wmoRainShowers:`阵雨`,wmoHeavyRainShowers:`较强阵雨`,wmoViolentRainShowers:`强阵雨`,wmoSnowShowers:`阵雪`,wmoHeavySnowShowers:`强阵雪`,wmoThunderstorm:`雷雨`,wmoThunderstormHail:`雷雨伴冰雹`,wmoSevereThunderstorm:`强雷雨伴冰雹`,notifications:`通知`,notificationsUnavailable:`通知暂不可用`,noNotifications:`暂无通知`,noNotificationsHint:`新的通知会显示在这里`,notificationFallback:`通知`,conversations:`会话`,sessionLoading:`正在读取`,sessionCount:`{count} 个会话`,sessionCountOne:`1 个会话`,noActiveSessions:`暂无活动会话`,statusRunning:`运行中`,statusQuestion:`等待回答`,statusError:`错误`,statusDone:`已结束`,noMessage:`暂无消息`,turnLabel:`第 {turn} 轮`,subagent:`子代理`,needsAttention:`需要处理`,answer:`回答`,answerSession:`回答会话 {title}`,newSession:`新会话`,sessionLoadFailed:`会话暂时无法加载`,noSessions:`暂无会话`,noSessionsHint:`新的会话会显示在这里`,nothingPlaying:`没有播放内容`,unknownArtist:`未知艺术家`,chooseSong:`选择一首歌开始播放`,like:`喜欢`,unlike:`取消喜欢`,previousTrack:`上一首`,nextTrack:`下一首`,play:`播放`,pause:`暂停`,mute:`静音`,volume:`音量`,nowPlaying:`正在播放`,albumCover:`专辑封面`,mediaFallback:`媒体`,musicSource:`音乐`,sourceBilibili:`哔哩哔哩`,playProgress:`播放进度`,progressUnavailable:`进度信息不可用`,progressReadOnly:`当前进度仅展示`,cpuMemory:`CPU / 内存`,gpuMemory:`显卡 / 显存`,currentStatus:`当前状态`,threadCount:`{count} 线程`,threadCountOne:`1 线程`,currentFrequency:`当前频率`,runningTime:`运行时间`,memoryUsed:`已用`,memoryFree:`可用`,unavailableShort:`暂不可用`,noDiscreteGpu:`未检测到独立显卡`,driverLabel:`驱动`,driverValue:`驱动 {name}`,driverUnknown:`驱动版本未知`,driverNone:`驱动 —`,coreClock:`核心频率`,memoryClock:`显存频率`,temperatures:`温度`,itemCount:`{count} 个`,noTemperature:`暂无温度读数`,maxTemperature:`最高温度`,notProvided:`未提供`,device:`设备`,accountBalance:`账户余额`,syncing:`正在同步`,signedOut:`未登录账号`,topUpBonus:`充值 {paid} · 赠送 {bonus}`,peakHours:`高峰时段`,offpeakHours:`低谷时段`,peak:`高峰`,offpeak:`低谷`,belowThreshold:`低于提醒线 {amount}`,usage:`消费`,todaySpend:`今日`,thisWeek:`本周`,last7Days:`最近 7 天`,pomodoro:`番茄钟`,focusDone:`专注完成`,breakDone:`休息结束`,focus:`专注`,rest:`休息`,stopAlarm:`停止响铃`,startBreak:`开始休息`,startFocus:`开始专注`,start:`开始`,switchPhase:`切换专注 / 休息`,roundCount:`{count} 个`,resetPomodoro:`重置番茄钟`,reset:`重置`,countdown:`倒计时`,countdownFinished:`时间到`,confirmEnd:`确认结束`,resetCountdown:`重置倒计时`,countdownPresets:`倒计时预设`,sessionQuestion:`会话提问`,questionCount:`{count} 个问题`,questionCountOne:`1 个问题`,chooseOption:`选择一项,或填写自定义回复`,close:`关闭`,recommended:`推荐`,otherAnswer:`其他回答…`,typeAnswer:`输入回答…`,customReply:`自定义回复`,sendAnswer:`发送回答`,skipQuestion:`跳过此题`,skippedNote:`将作为未回答提交`,sendingEllipsis:`正在发送…`,canMultiAnswer:`可多选或填写自定义回复`,cancel:`取消`,sending:`发送中…`,answered:`已回复`,questionEnded:`当前问题已经结束`,answerEveryQuestion:`请先回答每一道问题,或选择跳过`},Ya={offline:`Reconnecting…`,refreshing:`Refreshing`,fullscreenUnsupported:`This browser does not support fullscreen`,fullscreenDenied:`Fullscreen is blocked in this browser`,navLabel:`Page navigation`,pagesLabel:`Pages`,refreshPage:`Refresh page data`,fullscreenEnter:`Enter fullscreen`,fullscreenExit:`Exit fullscreen`,errorSessions:`Sessions with errors`,pendingQuestions:`Questions waiting`,timerAlert:`Timer has finished`,pageHome:`Home`,pageSessions:`Sessions`,pageMusic:`Music`,pagePerformance:`Performance`,connecting:`Connecting, please wait`,actionFailed:`Action failed`,serviceError:`Service error`,pushQuestionsOff:`Pushed inquiries are off; turn them on in DSH notification settings`,approvalPending:`This session is waiting for approval; handle it in DSH`,answerInDsh:`Answer this question in DSH`,connectionLost:`Connection lost; try again shortly`,answerReplaced:`This reply was replaced by a newer answer`,answerTimeout:`The answer timed out; try again`,answerFailed:`Answer failed`,greetingMorning:`Good morning`,greetingNoon:`Good afternoon`,greetingAfternoon:`Good afternoon`,greetingEvening:`Good evening`,periodMorning:`Morning`,periodNoon:`Noon`,periodAfternoon:`Afternoon`,periodEvening:`Evening`,justNow:`just now`,minutesAgo:`{count} min ago`,hoursAgo:`{count} h ago`,daysAgo:`{count} d ago`,uptimeDays:`{days}d {hours}h`,uptimeHours:`{hours}h {minutes}m`,uptimeMinutes:`{minutes} min`,termMinorCold:`Minor Cold`,termMajorCold:`Major Cold`,termStartOfSpring:`Start of Spring`,termRainWater:`Rain Water`,termAwakening:`Awakening of Insects`,termSpringEquinox:`Spring Equinox`,termClearAndBright:`Clear and Bright`,termGrainRain:`Grain Rain`,termStartOfSummer:`Start of Summer`,termGrainFull:`Grain Full`,termGrainInEar:`Grain in Ear`,termSummerSolstice:`Summer Solstice`,termMinorHeat:`Minor Heat`,termMajorHeat:`Major Heat`,termStartOfAutumn:`Start of Autumn`,termEndOfHeat:`End of Heat`,termWhiteDew:`White Dew`,termAutumnEquinox:`Autumn Equinox`,termColdDew:`Cold Dew`,termFrostDescent:`Frost Descent`,termStartOfWinter:`Start of Winter`,termMinorSnow:`Minor Snow`,termMajorSnow:`Major Snow`,termWinterSolstice:`Winter Solstice`,weather:`Weather`,weatherUnavailable:`Weather unavailable`,tryLater:`Try again later`,currentLocation:`Current location`,customLocation:`Custom location`,highLow:`High / Low`,feelsLike:`Feels like`,humidity:`Humidity`,windSpeed:`Wind`,today:`Today`,now:`Now`,hourLabel:`{hour}:00`,sunrise:`Sunrise`,sunset:`Sunset`,tomorrow:`Tomorrow`,weatherFallback:`Weather`,weatherNight:`Night`,wmoClear:`Clear`,wmoMostlyClear:`Mostly clear`,wmoPartlyCloudy:`Partly cloudy`,wmoOvercast:`Overcast`,wmoFog:`Fog`,wmoRimeFog:`Rime fog`,wmoDrizzle:`Drizzle`,wmoDenseDrizzle:`Dense drizzle`,wmoFreezingDrizzle:`Freezing drizzle`,wmoHeavyFreezingDrizzle:`Heavy freezing drizzle`,wmoLightRain:`Light rain`,wmoRain:`Rain`,wmoHeavyRain:`Heavy rain`,wmoFreezingRain:`Freezing rain`,wmoHeavyFreezingRain:`Heavy freezing rain`,wmoLightSnow:`Light snow`,wmoSnow:`Snow`,wmoHeavySnow:`Heavy snow`,wmoSnowGrains:`Snow grains`,wmoRainShowers:`Rain showers`,wmoHeavyRainShowers:`Heavy rain showers`,wmoViolentRainShowers:`Violent rain showers`,wmoSnowShowers:`Snow showers`,wmoHeavySnowShowers:`Heavy snow showers`,wmoThunderstorm:`Thunderstorm`,wmoThunderstormHail:`Thunderstorm with hail`,wmoSevereThunderstorm:`Severe thunderstorm with hail`,notifications:`Notifications`,notificationsUnavailable:`Notifications unavailable`,noNotifications:`No notifications`,noNotificationsHint:`New notifications appear here`,notificationFallback:`Notification`,conversations:`Sessions`,sessionLoading:`Loading`,sessionCount:`{count} sessions`,sessionCountOne:`1 session`,noActiveSessions:`No active sessions`,statusRunning:`Running`,statusQuestion:`Waiting`,statusError:`Error`,statusDone:`Done`,noMessage:`No messages yet`,turnLabel:`Turn {turn}`,subagent:`Subagent`,needsAttention:`Needs attention`,answer:`Answer`,answerSession:`Answer session {title}`,newSession:`New session`,sessionLoadFailed:`Sessions cannot load right now`,noSessions:`No sessions`,noSessionsHint:`New sessions appear here`,nothingPlaying:`Nothing playing`,unknownArtist:`Unknown artist`,chooseSong:`Pick a song to start playing`,like:`Like`,unlike:`Unlike`,previousTrack:`Previous track`,nextTrack:`Next track`,play:`Play`,pause:`Pause`,mute:`Mute`,volume:`Volume`,nowPlaying:`Now playing`,albumCover:`Album cover`,mediaFallback:`Media`,musicSource:`Music`,sourceBilibili:`Bilibili`,playProgress:`Playback position`,progressUnavailable:`Progress unavailable`,progressReadOnly:`Position is display-only`,cpuMemory:`CPU / Memory`,gpuMemory:`GPU / VRAM`,currentStatus:`Current status`,threadCount:`{count} threads`,threadCountOne:`1 thread`,currentFrequency:`Frequency`,runningTime:`Uptime`,memoryUsed:`Used`,memoryFree:`Free`,unavailableShort:`Unavailable`,noDiscreteGpu:`No discrete GPU detected`,driverLabel:`Driver`,driverValue:`Driver {name}`,driverUnknown:`Driver version unknown`,driverNone:`Driver —`,coreClock:`Core clock`,memoryClock:`Memory clock`,temperatures:`Temperatures`,itemCount:`{count}`,noTemperature:`No temperature readings`,maxTemperature:`Max temperature`,notProvided:`Not provided`,device:`Device`,accountBalance:`Balance`,syncing:`Syncing`,signedOut:`Not signed in`,topUpBonus:`Top-up {paid} · Bonus {bonus}`,peakHours:`Peak hours`,offpeakHours:`Off-peak hours`,peak:`Peak`,offpeak:`Off-peak`,belowThreshold:`Below alert line {amount}`,usage:`Usage`,todaySpend:`Today`,thisWeek:`This week`,last7Days:`Last 7 days`,pomodoro:`Pomodoro`,focusDone:`Focus complete`,breakDone:`Break over`,focus:`Focus`,rest:`Break`,stopAlarm:`Stop ringing`,startBreak:`Start break`,startFocus:`Start focus`,start:`Start`,switchPhase:`Switch focus / break`,roundCount:`{count}`,resetPomodoro:`Reset pomodoro`,reset:`Reset`,countdown:`Countdown`,countdownFinished:`Time is up`,confirmEnd:`Confirm end`,resetCountdown:`Reset countdown`,countdownPresets:`Countdown presets`,sessionQuestion:`Session question`,questionCount:`{count} questions`,questionCountOne:`1 question`,chooseOption:`Choose an option or type a reply`,close:`Close`,recommended:`Recommended`,otherAnswer:`Other answer…`,typeAnswer:`Type an answer…`,customReply:`Custom reply`,sendAnswer:`Send answer`,skipQuestion:`Skip this question`,skippedNote:`Submitted as unanswered`,sendingEllipsis:`Sending…`,canMultiAnswer:`Select options or type a reply`,cancel:`Cancel`,sending:`Sending…`,answered:`Answered`,questionEnded:`This question has already ended`,answerEveryQuestion:`Answer every question first, or skip it`},Xa={zh:Ja,en:Ya},Za=dn({locale:`en`});typeof document<`u`&&(document.documentElement.lang=`en-US`);function Qa(){return Za.locale===`zh`?`zh-CN`:`en-US`}function $a(){return Za.locale===`zh`}function eo(e){let t=e===`zh`?`zh`:`en`;t!==Za.locale&&(Za.locale=t,typeof document<`u`&&(document.documentElement.lang=Qa()))}function q(e,t){let n=Xa[Za.locale][e]??Ya[e];return t?n.replace(/\{(\w+)\}/g,(e,n)=>n in t?String(t[n]):e):n}function to(e){return q(e===`home`?`pageHome`:e===`sessions`?`pageSessions`:e===`music`?`pageMusic`:`pagePerformance`)}var no=[`home`,`sessions`,`music`,`performance`];function ro(e){let t=Array.isArray(e)?e.filter(e=>no.includes(e)):[],n=[...new Set(t)];for(let e of no)n.includes(e)||n.push(e);return n.slice(0,no.length)}function io(e,t){let n=e.filter(e=>t[e]!==!1);return n.length>0?n:[`home`]}var ao=null,oo=null,so=1e3,co={},lo=!1;function uo(e){co=e||{}}function fo(){return ao?.readyState===WebSocket.OPEN}function po(e){return!ao||ao.readyState!==WebSocket.OPEN?!1:(ao.send(JSON.stringify(e)),!0)}function mo(){if(lo=!1,oo&&=(clearTimeout(oo),null),ao&&(ao.readyState===WebSocket.OPEN||ao.readyState===WebSocket.CONNECTING))return;let e=location.protocol===`https:`?`wss:`:`ws:`,t;try{t=new WebSocket(`${e}//${location.host}/ws`)}catch{ho();return}ao=t,t.addEventListener(`open`,()=>{so=1e3,co.onOpen?.()}),t.addEventListener(`message`,e=>{try{co.onMessage?.(JSON.parse(e.data))}catch{}}),t.addEventListener(`close`,()=>{ao===t&&(ao=null),co.onClose?.(),ho()}),t.addEventListener(`error`,()=>{try{t.close()}catch{}})}function ho(){if(lo||oo)return;let e=so;so=Math.min(8e3,Math.round(e*1.6)),oo=setTimeout(()=>{oo=null,mo()},e)}function go(){fo()?po({type:`refresh`}):mo()}function _o(){lo=!0,oo&&=(clearTimeout(oo),null);let e=ao;ao=null;try{e?.close()}catch{}}var vo=[`left`,`right`,`top`,`bottom`],yo=86400,bo=[60,300,600];function xo(e){return vo.includes(e)?e:`left`}function So(e,t){let n=(e,t,n)=>{let r=Number(e);return Number.isFinite(r)?Math.max(.1,Math.min(n,Math.round(r*100)/100)):t};return{enabled:e?.enabled===!0,focusMinutes:n(e?.focusMinutes,t.focusMinutes,180),breakMinutes:n(e?.breakMinutes,t.breakMinutes,120),soundPath:typeof e?.soundPath==`string`?e.soundPath:t.soundPath,loopAlarm:e?.loopAlarm===!0}}function Co(e,t){let n=Array.isArray(e?.presets)?e.presets:[],r=t.presets.length>0?t.presets:bo,i=[];for(let e of n.slice(0,5)){let t=Math.round(Number(e));Number.isFinite(t)&&i.push(Math.max(1,Math.min(yo,t)))}return{enabled:e?.enabled===!0,presets:i.length>0?i:r.slice(0,5)}}var J=dn({online:null,theme:`dark`,temperatureUnit:`celsius`,pushQuestions:!1,navPosition:`left`,pomodoro:{enabled:!1,focusMinutes:25,breakMinutes:5,soundPath:``,loopAlarm:!1},countdown:{enabled:!1,presets:[...bo]},balanceDisplay:{showPeakValley:!0,spendWindow:`calendar`},pageOrder:[...no],pageEnabled:{home:!0,sessions:!0,music:!0,performance:!0},pageRevision:0,overview:null,weather:null,notifications:null,account:null,sessions:[],sessionsError:null,performance:null,media:null,clockNow:Date.now(),volumeDragging:!1,volumeInput:.2,volumeTarget:.2,volumeHoldUntil:0,toastVisible:!1,toastMessage:``,activeKey:`home`,initialKey:null,hasNavigated:!1,fullscreen:!1,answerSessionId:null}),wo=null;function To(e){J.online=e}function Eo(e){J.toastMessage=String(e||``),J.toastVisible=!0,wo&&clearTimeout(wo),wo=setTimeout(()=>{J.toastVisible=!1},2600)}function Do(e,t){return po({type:`action`,action:e,...t===void 0?{}:{value:t}})?!0:(Eo(q(`connecting`)),!1)}var Oo=new Map;function ko(e,t){return`${e}\u0000${t}`}function Ao(e){let t=J.sessions.find(t=>t.id===e);t&&(J.pushQuestions?t.pending?.kind===`approval`?Eo(q(`approvalPending`)):t.pending?.answerable===!1?Eo(q(`answerInDsh`)):t.pending?.questions?.length?J.answerSessionId=e:Eo(q(`answerInDsh`)):Eo(q(`pushQuestionsOff`)))}function jo(){J.answerSessionId=null}function Mo(e,t,n){return new Promise((r,i)=>{if(!fo()){i(Error(q(`connectionLost`)));return}let a=ko(e,t),o=Oo.get(a);o&&(clearTimeout(o.timer),Oo.delete(a),o.reject(Error(q(`answerReplaced`))));let s=setTimeout(()=>{let e=Oo.get(a);e&&(Oo.delete(a),e.reject(Error(q(`answerTimeout`))))},12e3);Oo.set(a,{resolve:r,reject:i,timer:s}),po({type:`answer-question`,sessionId:e,requestId:t,answers:n})||(Oo.delete(a),clearTimeout(s),i(Error(q(`connectionLost`))))})}function No(e){J.theme=e===`light`?`light`:`dark`}function Po(e){if(!e)return;e.theme&&No(e.theme),eo(e.locale),e.temperatureUnit&&(J.temperatureUnit=e.temperatureUnit===`fahrenheit`?`fahrenheit`:`celsius`),J.pushQuestions=e.pushQuestions===!0,e.navPosition&&(J.navPosition=xo(e.navPosition)),e.pomodoro&&(J.pomodoro=So(e.pomodoro,J.pomodoro)),e.countdown&&(J.countdown=Co(e.countdown,J.countdown)),J.pomodoro.enabled?J.countdown.enabled=!1:J.countdown.enabled&&(J.pomodoro.enabled=!1),e.balance&&(J.balanceDisplay={showPeakValley:e.balance.showPeakValley!==!1,spendWindow:e.balance.spendWindow===`rolling`?`rolling`:`calendar`});let t=!1;e.pageOrder&&(J.pageOrder=ro(e.pageOrder),t=!0),e.pageEnabled&&(J.pageEnabled={...J.pageEnabled,...e.pageEnabled},t=!0),t&&(J.pageRevision+=1)}function Fo(e){e&&(J.overview=e,Po(e.settings),J.weather=e.weather??null,J.notifications=e.notifications??null,J.account=e.account??null,J.sessions=Array.isArray(e.sessions)?e.sessions:[],J.sessionsError=e.sessionsError||null,e.performance&&(J.performance=e.performance))}function Io(e){J.media=e??null}function Lo(e){switch(e?.type){case`welcome`:To(!0),Po(e.settings);break;case`overview`:To(!0),Fo(e.data);break;case`weather`:J.weather=e.data??null;break;case`notifications`:J.notifications=e.data??null;break;case`sessions`:J.sessions=Array.isArray(e.data)?e.data:[],J.sessionsError=null;break;case`account`:J.account=e.data??null;break;case`media`:To(!0),Io(e.data);break;case`performance`:J.performance=e.data??null;break;case`settings`:Po(e.data);break;case`action-result`:e.ok||Eo(e.error||q(`actionFailed`));break;case`answer-result`:{let t=ko(e.sessionId||``,e.requestId||``),n=Oo.get(t);if(!n)break;Oo.delete(t),clearTimeout(n.timer),e.ok?n.resolve():n.reject(Error(e.error||q(`answerFailed`)));break}case`error`:Eo(e.error||q(`serviceError`))}}function Ro(){uo({onOpen(){To(!0),po({type:`settings`})},onMessage:Lo,onClose(){To(!1)}}),mo()}function zo(){_o()}function Bo(){J.clockNow=Date.now();let e=setInterval(()=>{J.clockNow=Date.now()},1e3);return()=>{clearInterval(e)}}function Vo(){if(location.search.includes(`token=`)||location.search.includes(`page=`))try{history.replaceState({},``,location.pathname)}catch{}}function Ho(){window.__DSH_REMOTE__=J}var Uo=null,Wo=null,Go=null,Ko=!1,qo=null,Jo=[],Yo=!1,Xo=``,Zo=``,Qo=dn({active:!1});function $o(){try{if(!Uo){let e=window.AudioContext||window.webkitAudioContext;if(!e)return null;Uo=new e}return Uo.state===`suspended`&&Uo.resume(),Uo}catch{return null}}function es(){$o()}function ts(e){let t=$o();if(!t)return[];let n=t.currentTime+Math.max(.02,e),r=t.createGain();r.gain.value=.16;let i=t.createBiquadFilter();i.type=`lowpass`,i.frequency.value=4200,i.Q.value=.4,i.connect(r),r.connect(t.destination);let a=[523.25,659.25,783.99,1046.5],o=[],s=e=>{a.forEach((r,a)=>{let s=n+e+a*.22,c=t.createGain();c.gain.setValueAtTime(1e-4,s),c.gain.exponentialRampToValueAtTime(.9,s+.02),c.gain.exponentialRampToValueAtTime(1e-4,s+1.05);let l=t.createOscillator();l.type=`sine`,l.frequency.value=r,l.connect(c);let u=t.createOscillator();u.type=`triangle`,u.frequency.value=r*2;let d=t.createGain();d.gain.value=.1,u.connect(d),d.connect(c),c.connect(i),l.start(s),u.start(s),l.stop(s+1.1),u.stop(s+1.1),o.push(l,u)})};return s(0),s(1.08),o}function ns(e){for(let t of e)try{t.stop(0)}catch{}}function rs(){ns(Jo),Jo=[]}function is(){rs(),Jo=ts(.02)}function as(e){return/^(https?:)?\/\//i.test(e)||/^(data|blob):/i.test(e)?e:`/api/pomodoro/sound?v=${Date.now()}`}function os(e,t){ss();let n=ts(e);n.length>0&&(Wo={endsAt:t,nodes:n})}function ss(){Wo&&=(ns(Wo.nodes),null)}function cs(e){return!Wo||Wo.endsAt!==e?!1:(Jo=Wo.nodes,Wo=null,!0)}function ls(e){let t=e.trim();if(t)try{let e=new Audio(as(t));e.volume=.72,qo=e;let n=!1,r=()=>{n||(n=!0,qo===e&&(qo=null),is())};e.addEventListener(`error`,r,{once:!0});let i=e.play();i&&typeof i.catch==`function`&&i.catch(r),setTimeout(()=>{try{e.pause()}catch{}qo===e&&(qo=null)},3e4)}catch{is()}else is()}function us(){Go&&=(clearTimeout(Go),null)}function ds(e){us(),Go=setTimeout(()=>{Go=null,Ko&&(is(),ds(4400))},Math.max(0,e))}function fs(e){try{let t=new Audio(as(e));t.loop=!0,t.volume=.72,qo=t;let n=!1,r=()=>{!n&&Ko&&(n=!0,qo===t&&(qo=null),ds(0))};t.addEventListener(`error`,r,{once:!0});let i=t.play();return i&&typeof i.catch==`function`&&i.catch(r),!0}catch{return!1}}function ps(e,t){Ko=!0,us();let n=e.trim();n&&fs(n)||(t||is(),ds(4400))}function ms(){if(Ko=!1,us(),qo){try{qo.pause(),qo.currentTime=0}catch{}qo=null}ss(),rs(),ys(!1)}function hs(e,t){try{return getComputedStyle(document.body).getPropertyValue(e).trim()||t}catch{return t}}function gs(){return document.querySelector(`link[rel="icon"]`)}function _s(e){let t=document.createElement(`canvas`);t.width=64,t.height=64;let n=t.getContext(`2d`);if(!n)return``;e&&n.drawImage(e,0,0,64,64);let r=hs(`--green`,`#45dfb1`),i=hs(`--card`,`#0d121d`);return n.beginPath(),n.arc(46,46,13,0,Math.PI*2),n.fillStyle=i,n.fill(),n.beginPath(),n.arc(46,46,10,0,Math.PI*2),n.fillStyle=r,n.fill(),t.toDataURL(`image/png`)}function vs(){let e=gs();if(!e)return;let t=_s(null);t&&e.setAttribute(`href`,t);let n=new Image;n.onload=()=>{if(!Yo)return;let t=_s(n);t&&e.setAttribute(`href`,t)},n.src=`/icon.svg`}function ys(e){if(e===Yo)return;Yo=e,Qo.active=e;let t=gs();e?(Xo=document.title.replace(/^●\s*/,``),Zo=t?.getAttribute(`href`)||``,document.title=`● ${Xo}`,vs()):(document.title=Xo||document.title.replace(/^●\s*/,``),t&&Zo&&t.setAttribute(`href`,Zo))}Ze();function bs(e){return String(e).padStart(2,`0`)}function xs(e,t=Date.now()){if(!Number.isFinite(e))return``;let n=Math.max(0,Math.round((t-e)/1e3));return n<45?q(`justNow`):n<3600?q(`minutesAgo`,{count:Math.floor(n/60)}):n<86400?q(`hoursAgo`,{count:Math.floor(n/3600)}):q(`daysAgo`,{count:Math.floor(n/86400)})}var Ss=`初一.初二.初三.初四.初五.初六.初七.初八.初九.初十.十一.十二.十三.十四.十五.十六.十七.十八.十九.二十.廿一.廿二.廿三.廿四.廿五.廿六.廿七.廿八.廿九.三十`.split(`.`),Cs=[`termMinorCold`,`termMajorCold`,`termStartOfSpring`,`termRainWater`,`termAwakening`,`termSpringEquinox`,`termClearAndBright`,`termGrainRain`,`termStartOfSummer`,`termGrainFull`,`termGrainInEar`,`termSummerSolstice`,`termMinorHeat`,`termMajorHeat`,`termStartOfAutumn`,`termEndOfHeat`,`termWhiteDew`,`termAutumnEquinox`,`termColdDew`,`termFrostDescent`,`termStartOfWinter`,`termMinorSnow`,`termMajorSnow`,`termWinterSolstice`],ws=[0,21208,42467,63836,85337,107014,128867,150921,173149,195551,218072,240693,263343,285989,308563,331033,353350,375494,397447,419210,440795,462224,483532,504758],Ts=null;function Es(){if(Ts)return Ts;try{Ts=new Intl.DateTimeFormat(`zh-CN-u-ca-chinese`,{month:`long`,day:`numeric`})}catch{Ts=null}return Ts}function Ds(e){if(!$a())return``;let t=Es();if(!t)return``;try{let n=t.formatToParts(e),r=n.find(e=>e.type===`month`)?.value||``,i=Number(n.find(e=>e.type===`day`)?.value);return!r||!Number.isInteger(i)||i<1||i>30?``:`${r}${Ss[i-1]}`}catch{return``}}function Os(e){let t=e.getFullYear(),n=e.getMonth(),r=e.getDate();for(let e=0;e<Cs.length;e+=1){let i=new Date(31556925974.7*(t-1900)+ws[e]*6e4+Date.UTC(1900,0,6,2,5));if(i.getUTCFullYear()===t&&i.getUTCMonth()===n&&i.getUTCDate()===r)return Cs[e]}return null}function ks(e){let t=e.getHours(),n=`greetingEvening`,r=`periodEvening`;t>=5&&t<11?(n=`greetingMorning`,r=`periodMorning`):t>=11&&t<13?(n=`greetingNoon`,r=`periodNoon`):t>=13&&t<18&&(n=`greetingAfternoon`,r=`periodAfternoon`);let i=Ds(e),a=Os(e),o=$a()?[i,a?q(a):``].filter(Boolean).join(` · `)||q(r):a?q(a):``;return{time:`${bs(t)}:${bs(e.getMinutes())}`,seconds:bs(e.getSeconds()),greeting:q(n),periodLabel:o,dateLabel:new Intl.DateTimeFormat(Qa(),{month:`long`,day:`numeric`,weekday:`short`}).format(e)}}function As(e,t=`CNY`){if(e==null||e===``||!Number.isFinite(Number(e)))return`—`;let n=String(t||``).toUpperCase()===`USD`?`$`:`¥`,r=Math.abs(Number(e)),i=r>0&&r<1?4:2;return`${n}${Number(e).toFixed(i).replace(/\.?0+$/,``)}`}function js(e){return String(e||``).toUpperCase()===`USD`?`$`:`¥`}function Ms(e){let t=Math.max(0,Math.round(Number(e)||0));return`${Math.floor(t/60)}:${bs(t%60)}`}function Ns(e,t=Date.now()){if(!Number.isFinite(e))return``;let n=Math.max(0,Math.floor((t-e)/1e3)),r=Math.floor(n/3600),i=Math.floor(n%3600/60),a=n%60;return r>0?`${r}:${bs(i)}:${bs(a)}`:`${bs(i)}:${bs(a)}`}function Ps(e){let t=Number(e);if(!Number.isFinite(t)||t<=0)return`—`;let n=[`B`,`KB`,`MB`,`GB`,`TB`],r=0,i=t;for(;i>=1024&&r<n.length-1;)i/=1024,r+=1;return`${i>=10||r===0?i.toFixed(0):i.toFixed(1)} ${n[r]}`}function Fs(e){let t=Math.max(0,Number(e)||0),n=Math.floor(t/86400),r=Math.floor(t%86400/3600),i=Math.floor(t%3600/60);return n>0?q(`uptimeDays`,{days:n,hours:r}):r>0?q(`uptimeHours`,{hours:r,minutes:i}):q(`uptimeMinutes`,{minutes:i})}function Is(e,t){return Array.from(String(e||t||`?`).trim())[0]?.toUpperCase()||`?`}function Ls(e){let t=0;for(let n of String(e||`app`))t=(t*31+n.charCodeAt(0))%360;return`linear-gradient(145deg, hsl(${t} 45% 30%), hsl(${(t+46)%360} 48% 20%))`}function Rs(e){let t=String(e||``);return/bilibili/i.test(t)?q(`sourceBilibili`):/spotify/i.test(t)?`Spotify`:/msedge/i.test(t)?`Edge`:/brave/i.test(t)?`Brave`:/vivaldi/i.test(t)?`Vivaldi`:/firefox/i.test(t)?`Firefox`:/Music/i.test(t)?q(`musicSource`):/chrome/i.test(t)?`Chrome`:t===`macOS`?`macOS`:t.startsWith(`org.mpris.MediaPlayer2.`)?t.replace(`org.mpris.MediaPlayer2.`,``).replace(/[._]/g,` `):t.split(`.`).pop()?.replace(/[._-]/g,` `)||q(`mediaFallback`)}function zs(e){return e===`fahrenheit`?`°F`:`°C`}function Bs(e,t){let n=Number(e);return Number.isFinite(n)?t===`fahrenheit`?n*9/5+32:n:null}function Vs(e,t,n=0){let r=Bs(e,t);return r===null?`--`:`${n>0?r.toFixed(n):Math.round(r)}${zs(t)}`}var Hs=Array.isArray,Us=e=>{if(!e&&e!==0&&e!==0n)return``;if(typeof e==`string`)return e;if(typeof e==`number`)return e===e?``+e:``;if(typeof e==`bigint`)return``+e;let t=``;if(Hs(e)){let n=e.length;for(let r=0;r<n;r++){let n=e[r];if(!n&&n!==0&&n!==0n)continue;let i=typeof n==`string`?n:Us(n);i&&(t&&(t+=` `),t+=i)}return t}if(typeof e==`object`)for(let n in e)e[n]&&(t&&(t+=` `),t+=n);return t},Ws=/\s+/g,Gs=Array.isArray,Ks=e=>typeof e!=`string`||!e?e:e.replace(Ws,` `).trim(),qs=e=>{let t=e.length;if(t===0)return!1;let n=e.charCodeAt(0),r=e.charCodeAt(t-1);if(n===32||r===32||n>=9&&n<=13||n===160||r>=9&&r<=13||r===160)return!0;for(let n=0;n<t;n++){let r=e.charCodeAt(n);if(r>=9&&r<=13||r===160||r===32&&n+1<t&&e.charCodeAt(n+1)===32)return!0}return!1},Js=(...e)=>{let t=Us(e);if(t)return qs(t)?Ks(t):t},Ys=e=>e===!1?`false`:e===!0?`true`:e===0?`0`:e,Xs=e=>{if(!e||typeof e!=`object`)return!0;for(let t in e)return!1;return!0},Zs=(e,t)=>{if(e===t)return!0;if(!e||!t)return!1;let n=e,r=t,i=Object.keys(n),a=Object.keys(r);if(i.length!==a.length)return!1;for(let e=0;e<i.length;e++){let t=i[e];if(!a.includes(t)||n[t]!==r[t])return!1}return!0},Qs=(e,t)=>{let n=e;for(let e in t)if(Object.hasOwn(t,e)){let r=t[e];n[e]=e in n?Js(n[e],r):r}return e},$s=(e,t)=>{for(let n=0;n<e.length;n++){let r=e[n];Gs(r)?$s(r,t):r&&t.push(r)}},ec=(...e)=>{let t=[];$s(e,t);let n=[];for(let e=0;e<t.length;e++)t[e]&&n.push(t[e]);return n},tc=(e,t)=>{let n=e,r=t,i={};for(let e in n){let t=n[e];if(e in r){let n=r[e];i[e]=Gs(t)||Gs(n)?ec(n,t):typeof t==`object`&&typeof n==`object`&&t&&n?tc(t,n):n+` `+t}else i[e]=t}for(let e in r)e in n||(i[e]=r[e]);return i},nc={twMerge:!0,twMergeConfig:{}},rc=256,ic=128,ac=Symbol(`tv-cache-miss`),oc=e=>e?.class!=null&&e.class!==``||e?.className!=null&&e.className!==``,sc=e=>{if(e===void 0)return``;if(e===null)return`null`;if(typeof e==`string`)return e;if(typeof e==`boolean`)return e?`true`:`false`;if(typeof e==`number`)return e===0?`0`:String(e);if(typeof e==`bigint`)return String(e);let t=Ys(e),n=typeof t;if(n===`string`||n===`number`||n===`boolean`||n===`bigint`)return String(t);if(n===`object`)try{return JSON.stringify(t)}catch{return null}return null},cc=(e,t)=>{if(t===void 0)return e;if(t===null)return e+`null`;let n=typeof t;if(n===`string`||n===`number`||n===`boolean`||n===`bigint`)return e+String(t);if(Array.isArray(t))return e+t.join(`\0`);try{return e+JSON.stringify(t)}catch{return e+`?`}},lc=(e,t,n,r)=>{let i=``,a=Object.create(null);for(let r=0;r<e.length;r++){let o=e[r];a[o]=1;let s=t[o];n&&n[o]!==void 0&&(s=n[o]);let c=sc(s);if(c===null)return null;i+=o+`:`+c+`;`}let o=[];for(let e in t)e===`class`||e===`className`||a[e]||(a[e]=1,o.push(e));if(n)for(let e in n)e===`class`||e===`className`||a[e]||n[e]===void 0||(a[e]=1,o.push(e));o.length>1&&o.sort();for(let e=0;e<o.length;e++){let r=o[e],a=t[r];n&&n[r]!==void 0&&(a=n[r]);let s=sc(a);if(s===null)return null;i+=r+`:`+s+`;`}return i},uc=(e,t)=>{let n=``;for(let t=0;t<e.length;t++){let{conditionKeys:r,source:i}=e[t];for(let e=0;e<r.length;e++){let t=r[e];n+=t+`=`,n=cc(n,i[t]),n+=`,`}n+=`c=`,n=cc(n,i.class),n+=`|cn=`,n=cc(n,i.className),n+=`;`}for(let e=0;e<t.length;e++){let{conditionKeys:r,source:i}=t[e];for(let e=0;e<r.length;e++){let t=r[e];n+=t+`=`,n=cc(n,i[t]),n+=`,`}Array.isArray(i.slots)&&(n+=`slots=`+i.slots.join(`,`)+`,`),n+=`c=`,n=cc(n,i.class),n+=`|cn=`,n=cc(n,i.className),n+=`;`}return n},dc=(e=rc)=>{let t=new Map,n=null;return{get(e){if(t.has(e))return t.get(e);if(n?.has(e)){let r=n.get(e);return t.set(e,r),r}return ac},set(r,i){t.size>=e&&(n=t,t=new Map),t.set(r,i)}}},fc=(e=rc)=>{let t=dc(e);return{get(e){return t.get(e)},set(e,n){t.set(e,n)}}},pc=(e=ic)=>{let t=new Map,n=null,r=0;return{get(e,i){let a=t.get(e);if(a){let e=a.get(i);if(e!==void 0||a.has(i))return e}if(n){let a=n.get(e);if(a){let n=a.get(i);if(n!==void 0||a.has(i)){let a=t.get(e);return a||(a=new Map,t.set(e,a)),a.has(i)||r++,a.set(i,n),n}}}return ac},set(i,a,o){r>=e&&(n=t,t=new Map,r=0);let s=t.get(i);s||(s=new Map,t.set(i,s)),s.has(a)||r++,s.set(a,o)}}},mc=(e,t)=>{let n=null;return(r,i)=>{if(!oc(i))return r;let a=i.class,o=i.className;if(a!=null&&a!==``&&typeof a!=`string`||o!=null&&o!==``&&typeof o!=`string`)return e(t,r,a,o);n??=pc();let s=r??``,c=(typeof a==`string`?a:``)+`\0`+(typeof o==`string`?o:``),l=n.get(s,c);if(l!==ac)return l;let u=e(t,r,a,o);return n.set(s,c,u),u}};function hc(){let e=null,t={},n=!1;return{get cachedTwMerge(){return e},set cachedTwMerge(t){e=t},get cachedTwMergeConfig(){return t},set cachedTwMergeConfig(e){t=e},get didTwMergeConfigChange(){return n},set didTwMergeConfigChange(e){n=e},reset(){e=null,t={},n=!1}}}var gc=hc(),_c=e=>{!Xs(e.twMergeConfig)&&!Zs(e.twMergeConfig,gc.cachedTwMergeConfig)&&(gc.didTwMergeConfigChange=!0,gc.cachedTwMergeConfig=e.twMergeConfig)},vc=(e,t)=>{let n=[];for(let r=0;r<t.length;r++){let i=t[r],a=e[i];n.push({key:i,values:a,isEmpty:Xs(a)})}return n},yc=e=>{if(!Array.isArray(e)||e.length===0)return[];let t=[];for(let n=0;n<e.length;n++){let r=e[n],i=[];for(let e in r)e!==`class`&&e!==`className`&&i.push(e);t.push({conditionKeys:i,source:r})}return t},bc=e=>{if(!Array.isArray(e)||e.length===0)return[];let t=[];for(let n=0;n<e.length;n++){let r=e[n],i=[];for(let e in r)e!==`slots`&&e!==`class`&&e!==`className`&&i.push(e);t.push({conditionKeys:i,source:r})}return t},xc=e=>{let t={};for(let n=0;n<e.length;n++){let r=e[n],i=r.source.slots;if(Array.isArray(i))for(let e=0;e<i.length;e++){let n=i[e];t[n]||(t[n]=[]),t[n].push(r)}}return t},Sc=(e,t)=>{let{extend:n=null,slots:r={},variants:i={},compoundVariants:a=[],compoundSlots:o=[],defaultVariants:s={}}=e,c={...nc,...t},l=e.slots!==void 0,u=n?.base?Js(n.base,e?.base):e?.base,d=n?.variants&&!Xs(n.variants)?tc(i,n.variants):i,f=n?.defaultVariants&&!Xs(n.defaultVariants)?{...n.defaultVariants,...s}:s;_c(c);let p=!n?.slots||Xs(n.slots),m=l?p&&n?.base?Js(e?.base,n.base):typeof e?.base==`string`||e?.base==null?e.base:Js(e.base):void 0,h=l?{base:m,...r}:{},g=p?h:Qs({...n?.slots},Xs(h)?{base:e?.base}:h),_=!n?.compoundVariants||Xs(n.compoundVariants)?a:ec(n?.compoundVariants,a),v=!n?.compoundSlots||Xs(n.compoundSlots)?o:ec(n?.compoundSlots,o),y=Object.keys(d);return{config:c,extend:n,base:u,variants:d,defaultVariants:f,slots:g,compoundVariants:_,compoundSlots:v,compiledVariants:null,compiledCompoundVariants:null,compiledCompoundSlots:null,compiledCompoundSlotsBySlot:null,deferredError:_&&!Array.isArray(_)?TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof _}`):v&&!Array.isArray(v)?TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof v}`):null,mode:l||!p?`slots`:y.length===0?`plain`:`variants`,slotKeys:null,variantKeys:y}},Cc=e=>(e.compiledVariants===null&&(e.compiledVariants=vc(e.variants,e.variantKeys),e.compiledCompoundVariants=yc(e.compoundVariants),e.compiledCompoundSlots=bc(e.compoundSlots),e.compiledCompoundSlotsBySlot=xc(e.compiledCompoundSlots),e.slotKeys=e.slots&&typeof e.slots==`object`?Object.keys(e.slots):[]),e),wc=[],Tc=[],Ec=[],Dc=[],Oc=[],kc=(e,t,n)=>{let r={};for(let t in e)r[t]=e[t];if(t)for(let e in t)t[e]!==void 0&&(r[e]=t[e]);if(n)for(let e in n)n[e]!==void 0&&(r[e]=n[e]);return r},Ac=e=>e==null||e===!1,jc=(e,t)=>{if(!Array.isArray(e))return e===t||Ac(e)&&Ac(t);for(let n=0;n<e.length;n++){let r=e[n];if(r===t||Ac(r)&&Ac(t))return!0}return!1},Mc=(e,t,n,r)=>{if(e.isEmpty)return null;let i=r?.[e.key]??n?.[e.key];if(i===null)return null;let a=Ys(i);if(typeof a==`object`)return null;let o=t?.[e.key],s=a??Ys(o);return e.values[s||`false`]},Nc=(e,t)=>{let{conditionKeys:n,source:r}=e;for(let e=0;e<n.length;e++){let i=n[e];if(!jc(r[i],t[i]))return!1}return!0},Pc=(e,t,n)=>{typeof n==`string`?t===`base`&&e.push(n):n&&typeof n==`object`&&n[t]&&e.push(n[t])},Fc=(e,t,n)=>{let r=Tc;r.length=0;for(let i=0;i<e.length;i++){let a=Mc(e[i],t,n);a&&r.push(a)}return r},Ic=(e,t,n,r,i)=>{let a=Tc;a.length=0;for(let o=0;o<t.length;o++){let s=Mc(t[o],n,r,i),c=e===`base`&&typeof s==`string`?s:s&&s[e];c&&a.push(c)}return a},Lc=(e,t)=>{let n=Ec;n.length=0;for(let r=0;r<e.length;r++){let i=e[r];Nc(i,t)&&(i.source.class&&n.push(i.source.class),i.source.className&&n.push(i.source.className))}return n},Rc=(e,t,n)=>{let r=Dc;r.length=0;for(let i=0;i<t.length;i++){let a=t[i];Nc(a,n)&&(Pc(r,e,a.source.class),Pc(r,e,a.source.className))}return r},zc=(e,t)=>{let n=Oc;n.length=0;for(let r=0;r<e.length;r++){let i=e[r];Nc(i,t)&&(i.source.class&&n.push(i.source.class),i.source.className&&n.push(i.source.className))}return n},Bc=(e,t)=>{let{base:n,config:r}=e,i=ac,a=mc(t,r);return(e=>(i===ac&&(i=t(r,n)),a(i,e)))},Vc=(e,t)=>{let{base:n,config:r,defaultVariants:i,deferredError:a,variantKeys:o}=e,s=e.compiledCompoundVariants,c=e.compiledVariants,l=wc,u=null,d=mc(t,r),f=1,p=e=>{let a=s.length>0?Lc(s,kc(i,e)):void 0;return t(r,n,Fc(c,i,e),a)};return(t=>{if(a)throw a;(c===null||s===null)&&(Cc(e),c=e.compiledVariants,s=e.compiledCompoundVariants,l=e.compiledCompoundSlots??wc);let n;if(f>0)f--,n=p(t);else{u??=fc();let e=lc(o,i,t);if(e!==null){let r=s.length>0||l.length>0?uc(s,l):``,i=e+`#`+r,a=u.get(i);a===ac?(n=p(t),u.set(i,n)):n=a}else n=p(t)}return d(n,t)})},Hc=(e,t)=>{let{config:n,defaultVariants:r,deferredError:i,slots:a,variantKeys:o}=e,s=null,c=null,l=null,u=null,d=!1,f=null,p=null,m=1,h=()=>{if(l!==null)return;(e.compiledVariants===null||e.compiledCompoundVariants===null||e.compiledCompoundSlots===null||e.compiledCompoundSlotsBySlot===null||e.slotKeys===null)&&Cc(e);let i=e.compiledVariants;s=e.compiledCompoundVariants,c=e.compiledCompoundSlots;let o=e.compiledCompoundSlotsBySlot;l=e.slotKeys,d=s.length>0||c.length>0,f=mc(t,n);let p=Array(l.length);for(let e=0;e<l.length;e++){let c=l[e],u=o[c]??wc;p[e]=(e,o)=>{let l=d?kc(r,e,o):void 0,f=l?Rc(c,s,l):void 0,p=l?zc(u,l):void 0;return t(n,a[c],Ic(c,i,r,e,o),f,p)}}u=p},g=e=>{let t=l,n=u,r=f,i={};for(let a=0;a<t.length;a++){let o=n[a],s=o(e);i[t[a]]=t=>{if(t==null)return s;let n=!1;for(let e in t)if(e!==`class`&&e!==`className`&&t[e]!==void 0){n=!0;break}return r(n?o(e,t):s,t)}}return i};return(e=>{if(i)throw i;if(h(),m>0)return m--,g(e);let t=lc(o,r,e);if(t===null)return g(e);let n=d?uc(s,c):``,a=t+`#`+n;p??=dc();let l=p.get(a);if(l!==ac)return l;let u=g(e);return p.set(a,u),u})},Uc=(e,t)=>{if(e.mode===`plain`)return Bc(e,t);let n;return(r=>(n??=e.mode===`slots`?Hc(e,t):Vc(e,t),n(r)))},Wc=(e,t)=>{e.variantKeys=t.variantKeys,e.extend=t.extend,e.base=t.base,e.slots=t.slots,e.variants=t.variants,e.defaultVariants=t.defaultVariants,e.compoundSlots=t.compoundSlots,e.compoundVariants=t.compoundVariants},Gc=e=>{let t=(t,n)=>{let r=Sc(t,n),i=Uc(r,e);return Wc(i,r),i};return{tv:t,createTV:e=>(n,r)=>t(n,r?tc(e,r):e)}},Kc=(e,t)=>{let n=e.length,r=t.length,i=Array(n+r);for(let t=0;t<n;t++)i[t]=e[t];for(let e=0;e<r;e++)i[n+e]=t[e];return i},qc=(e,t)=>({classGroupId:e,validator:t}),Jc=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Yc=`-`,Xc=[],Zc=`arbitrary..`,Qc=e=>{let t=tl(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e[0]===`[`&&e[e.length-1]===`]`)return el(e);let n=e.split(Yc);return $c(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?Kc(i,t):t:i||Xc}return n[e]||Xc}}},$c=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=$c(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(Yc):e.slice(t).join(Yc),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},el=e=>{let t=e.slice(1,-1),n=t.indexOf(`:`);if(n===-1)return;let r=t.slice(0,n);return r?Zc+r:void 0},tl=e=>{let{theme:t,classGroups:n}=e;return nl(n,t)},nl=(e,t)=>{let n=Jc();for(let r in e){let i=e[r];rl(i,n,r,t)}return n},rl=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];il(i,t,n,r)}},il=(e,t,n,r)=>{typeof e==`string`?al(e,t,n):typeof e==`function`?ol(e,t,n,r):sl(e,t,n,r)},al=(e,t,n)=>{let r=e===``?t:cl(t,e);r.classGroupId=n},ol=(e,t,n,r)=>{ll(e)?rl(e(r),t,n,r):(t.validators===null&&(t.validators=[]),t.validators.push(qc(n,e)))},sl=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];rl(o,cl(t,a),n,r)}},cl=(e,t)=>{let n=e,r=t.split(Yc),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=Jc(),n.nextPart.set(t,i)),n=i}return n},ll=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,ul=`!`,dl=58,fl=47,pl=91,ml=93,hl=40,gl=41,_l=33,vl=(e,t,n,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:void 0}),yl=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e.charCodeAt(s);if(n===0&&r===0){if(o===dl){t.push(e.slice(i,s)),i=s+1;continue}if(o===fl){a=s;continue}}o===pl?n++:o===ml?n--:o===hl?r++:o===gl&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1,u=s.length-1;s.charCodeAt(u)===_l?(c=s.slice(0,-1),l=!0):s.charCodeAt(0)===_l&&(c=s.slice(1),l=!0);let d=a&&a>i?a-i:void 0;return vl(t,l,c,d)},bl=e=>{let t=new Set(e.orderSensitiveModifiers);return e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);if(o||s){if(r.length>0){r.sort();for(let e=0;e<r.length;e++)n.push(r[e]);r=[]}n.push(a)}else r.push(a)}if(r.length>0){r.sort();for(let e=0;e<r.length;e++)n.push(r[e])}return n}},xl={isExternal:!0,classId:-1,conflictIds:[]},Sl=4096,Cl=16384,wl=e=>{let t=bl(e),n=Tl(e),{getClassGroupId:r,getConflictingClassGroupIds:i}=Qc(e),a=Object.create(null),o=Object.create(null),s=0,c=new Int32Array(256),l=0,u=new Uint8Array(64),d=!1,f=e=>{let t=[],n=e.length,r=-1;d=!1;for(let i=0;i<n;i++){let n=e.charCodeAt(i);n===32?r!==-1&&(t.push(e.slice(r,i)),r=-1):n>=9&&n<=13?(d=!0,r!==-1&&(t.push(e.slice(r,i)),r=-1)):r===-1&&(r=i)}return r!==-1&&t.push(e.slice(r)),t},p=new Map,m=0,h=e=>{let t=p.get(e);if(t===void 0&&(t=m++,p.set(e,t),t>=c.length)){let e=new Int32Array(c.length*2);e.set(c),c=e}return t},g=e=>{let{isExternal:a,modifiers:o,hasImportantModifier:s,baseClassName:c,maybePostfixModifierPosition:l}=yl(e);if(a)return xl;let u=!!l,d;if(u){let e=c.substring(0,l);d=r(e);let t=d&&n[d]?r(c):void 0;t&&t!==d&&(d=t,u=!1)}else d=r(c);if(!d){if(!u||(d=r(c),!d))return xl;u=!1}let f=o.length===0?``:o.length===1?o[0]:t(o).join(`:`),p=s?f+ul:f,m=i(d,u),g=[];for(let e=0;e<m.length;e++)g.push(h(p+m[e]));return{isExternal:!1,classId:h(p+d),conflictIds:g}},_=e=>{let t=a[e];return t===void 0&&(t=o[e],t===void 0&&(t=g(e)),a[e]=t,++s>Sl&&(s=0,o=a,a=Object.create(null))),t};return{parseClassName:yl,sortModifiers:t,postfixLookupClassGroupIds:n,getClassGroupId:r,getConflictingClassGroupIds:i,getClassDescriptor:_,mergeClassList:e=>{let t=f(e),n=t.length;if(n===1)return t[0];m>Cl&&(p.clear(),m=0,a=Object.create(null),o=Object.create(null),s=0),l=l+1|0,l===0&&(l=1);let r=l;if(n>u.length){let e=u.length;for(;e<n;)e*=2;u=new Uint8Array(e)}let i=!1,h=0;for(let e=n-1;e>=0;--e){let n=t[e];h+=n.length;let a=_(n);if(a.isExternal){u[e]=1;continue}let o=a.classId;if(c[o]===r){u[e]=0,i=!0;continue}c[o]=r;let s=a.conflictIds;for(let e=0;e<s.length;e++)c[s[e]]=r;u[e]=1}if(!i&&!d&&e.length===h+n-1)return e;let g=``;for(let e=0;e<n;e++)u[e]===1&&(g&&(g+=` `),g+=t[e]);return g}}},Tl=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},El=500,Dl=e=>{let t,n,r=Object.create(null),i=Object.create(null),a=0,o=r=>(t=wl(e()),n=t.mergeClassList,c.mergeString=s,s(r)),s=e=>{let t=r[e];return t===void 0&&(t=i[e],t===void 0&&(t=n(e)),r[e]=t,++a>El&&(a=0,i=r,r=Object.create(null))),t},c=(...e)=>c.mergeString(Us(e));return c.mergeString=o,c},Ol=[],kl=e=>{let t=t=>t[e]||Ol;return t.isThemeGetter=!0,t},Al=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,jl=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ml=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Nl=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Pl=/\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$/,Fl=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Il=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ll=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Rl=Number,zl=Number.isNaN,Bl=Number.isInteger,Vl=e=>Ml.test(e),Hl=e=>!!e&&!zl(Rl(e)),Ul=e=>!!e&&Bl(Rl(e)),Wl=e=>e.endsWith(`%`)&&Hl(e.slice(0,-1)),Gl=e=>Nl.test(e),Kl=()=>!0,ql=e=>Pl.test(e)&&!Fl.test(e),Jl=()=>!1,Yl=e=>Il.test(e),Xl=e=>Ll.test(e),Zl=e=>!Y(e)&&!X(e),Ql=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),$l=e=>mu(e,vu,Jl),Y=e=>Al.test(e),eu=e=>mu(e,yu,ql),tu=e=>mu(e,bu,Hl),nu=e=>mu(e,Su,Kl),ru=e=>mu(e,xu,Jl),iu=e=>mu(e,gu,Jl),au=e=>mu(e,_u,Xl),ou=e=>mu(e,Cu,Yl),X=e=>jl.test(e),su=e=>hu(e,yu),cu=e=>hu(e,xu),lu=e=>hu(e,gu),uu=e=>hu(e,vu),du=e=>hu(e,_u),fu=e=>hu(e,Cu,!0),pu=e=>hu(e,Su,!0),mu=(e,t,n)=>{let r=Al.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},hu=(e,t,n=!1)=>{let r=jl.exec(e);return r?r[1]?t(r[1]):n:!1},gu=e=>e===`position`||e===`percentage`,_u=e=>e===`image`||e===`url`,vu=e=>e===`length`||e===`size`||e===`bg-size`,yu=e=>e===`length`,bu=e=>e===`number`,xu=e=>e===`family-name`,Su=e=>e===`number`||e===`weight`,Cu=e=>e===`shadow`,wu=()=>{let e=kl(`color`),t=kl(`font`),n=kl(`text`),r=kl(`font-weight`),i=kl(`tracking`),a=kl(`leading`),o=kl(`breakpoint`),s=kl(`container`),c=kl(`spacing`),l=kl(`radius`),u=kl(`shadow`),d=kl(`inset-shadow`),f=kl(`text-shadow`),p=kl(`drop-shadow`),m=kl(`blur`),h=kl(`perspective`),g=kl(`aspect`),_=kl(`ease`),v=kl(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),X,Y],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],ee=()=>[`auto`,`contain`,`none`],C=()=>[X,Y,c],te=()=>[Vl,`full`,`auto`,...C()],ne=()=>[Ul,`none`,`subgrid`,X,Y],re=()=>[`auto`,{span:[`full`,Ul,X,Y]},Ul,X,Y],ie=()=>[Ul,`auto`,X,Y],ae=()=>[`auto`,`min`,`max`,`fr`,X,Y],oe=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],se=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],ce=()=>[`auto`,...C()],le=()=>[Vl,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...C()],ue=()=>[Vl,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...C()],de=()=>[Vl,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...C()],w=()=>[e,X,Y],fe=()=>[...b(),lu,iu,{position:[X,Y]}],pe=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],me=()=>[`auto`,`cover`,`contain`,uu,$l,{size:[X,Y]}],he=()=>[Wl,su,eu],ge=()=>[``,`none`,`full`,l,X,Y],_e=()=>[``,Hl,su,eu],ve=()=>[`solid`,`dashed`,`dotted`,`double`],ye=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],be=()=>[Hl,Wl,lu,iu],xe=()=>[``,`none`,m,X,Y],Se=()=>[`none`,Hl,X,Y],Ce=()=>[`none`,Hl,X,Y],we=()=>[Hl,X,Y],Te=()=>[Vl,`full`,...C()];return{theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[Gl],breakpoint:[Gl],color:[Kl],container:[Gl],"drop-shadow":[Gl],ease:[`in`,`out`,`in-out`],font:[Zl],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[Gl],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[Gl],shadow:[Gl],spacing:[`px`,Hl],text:[Gl],"text-shadow":[Gl],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,Vl,Y,X,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,X,Y]}],"container-named":[Ql],columns:[{columns:[Hl,Y,X,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:ee()}],"overscroll-x":[{"overscroll-x":ee()}],"overscroll-y":[{"overscroll-y":ee()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:te()}],"inset-x":[{"inset-x":te()}],"inset-y":[{"inset-y":te()}],start:[{"inset-s":te(),start:te()}],end:[{"inset-e":te(),end:te()}],"inset-bs":[{"inset-bs":te()}],"inset-be":[{"inset-be":te()}],top:[{top:te()}],right:[{right:te()}],bottom:[{bottom:te()}],left:[{left:te()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[Ul,`auto`,X,Y]}],basis:[{basis:[Vl,`full`,`auto`,s,...C()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[Hl,Vl,`auto`,`initial`,`none`,Y]}],grow:[{grow:[``,Hl,X,Y]}],shrink:[{shrink:[``,Hl,X,Y]}],order:[{order:[Ul,`first`,`last`,`none`,X,Y]}],"grid-cols":[{"grid-cols":ne()}],"col-start-end":[{col:re()}],"col-start":[{"col-start":ie()}],"col-end":[{"col-end":ie()}],"grid-rows":[{"grid-rows":ne()}],"row-start-end":[{row:re()}],"row-start":[{"row-start":ie()}],"row-end":[{"row-end":ie()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":ae()}],"auto-rows":[{"auto-rows":ae()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...oe(),`normal`]}],"justify-items":[{"justify-items":[...se(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...se()]}],"align-content":[{content:[`normal`,...oe()]}],"align-items":[{items:[...se(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...se(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":oe()}],"place-items":[{"place-items":[...se(),`baseline`]}],"place-self":[{"place-self":[`auto`,...se()]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pbs:[{pbs:C()}],pbe:[{pbe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],m:[{m:ce()}],mx:[{mx:ce()}],my:[{my:ce()}],ms:[{ms:ce()}],me:[{me:ce()}],mbs:[{mbs:ce()}],mbe:[{mbe:ce()}],mt:[{mt:ce()}],mr:[{mr:ce()}],mb:[{mb:ce()}],ml:[{ml:ce()}],"space-x":[{"space-x":C()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":C()}],"space-y-reverse":[`space-y-reverse`],size:[{size:le()}],"inline-size":[{inline:[`auto`,...ue()]}],"min-inline-size":[{"min-inline":[`auto`,...ue()]}],"max-inline-size":[{"max-inline":[`none`,...ue()]}],"block-size":[{block:[`auto`,...de()]}],"min-block-size":[{"min-block":[`auto`,...de()]}],"max-block-size":[{"max-block":[`none`,...de()]}],w:[{w:[s,`screen`,...le()]}],"min-w":[{"min-w":[s,`screen`,`none`,...le()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...le()]}],h:[{h:[`screen`,`lh`,...le()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...le()]}],"max-h":[{"max-h":[`screen`,`lh`,...le()]}],"font-size":[{text:[`base`,n,su,eu]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,pu,nu]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,Wl,Y]}],"font-family":[{font:[cu,ru,t]}],"font-features":[{"font-features":[Y]}],"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:[i,X,Y]}],"line-clamp":[{"line-clamp":[Hl,`none`,X,tu]}],leading:[{leading:[a,...C()]}],"list-image":[{"list-image":[`none`,X,Y]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,X,Y]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:w()}],"text-color":[{text:w()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...ve(),`wavy`]}],"text-decoration-thickness":[{decoration:[Hl,`from-font`,`auto`,X,eu]}],"text-decoration-color":[{decoration:w()}],"underline-offset":[{"underline-offset":[Hl,`auto`,X,Y]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:C()}],"tab-size":[{tab:[Ul,X,Y]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,X,Y]}],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`,X,Y]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:fe()}],"bg-repeat":[{bg:pe()}],"bg-size":[{bg:me()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},Ul,X,Y],radial:[``,X,Y],conic:[Ul,X,Y]},du,au]}],"bg-color":[{bg:w()}],"gradient-from-pos":[{from:he()}],"gradient-via-pos":[{via:he()}],"gradient-to-pos":[{to:he()}],"gradient-from":[{from:w()}],"gradient-via":[{via:w()}],"gradient-to":[{to:w()}],rounded:[{rounded:ge()}],"rounded-s":[{"rounded-s":ge()}],"rounded-e":[{"rounded-e":ge()}],"rounded-t":[{"rounded-t":ge()}],"rounded-r":[{"rounded-r":ge()}],"rounded-b":[{"rounded-b":ge()}],"rounded-l":[{"rounded-l":ge()}],"rounded-ss":[{"rounded-ss":ge()}],"rounded-se":[{"rounded-se":ge()}],"rounded-ee":[{"rounded-ee":ge()}],"rounded-es":[{"rounded-es":ge()}],"rounded-tl":[{"rounded-tl":ge()}],"rounded-tr":[{"rounded-tr":ge()}],"rounded-br":[{"rounded-br":ge()}],"rounded-bl":[{"rounded-bl":ge()}],"border-w":[{border:_e()}],"border-w-x":[{"border-x":_e()}],"border-w-y":[{"border-y":_e()}],"border-w-s":[{"border-s":_e()}],"border-w-e":[{"border-e":_e()}],"border-w-bs":[{"border-bs":_e()}],"border-w-be":[{"border-be":_e()}],"border-w-t":[{"border-t":_e()}],"border-w-r":[{"border-r":_e()}],"border-w-b":[{"border-b":_e()}],"border-w-l":[{"border-l":_e()}],"divide-x":[{"divide-x":_e()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":_e()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...ve(),`hidden`,`none`]}],"divide-style":[{divide:[...ve(),`hidden`,`none`]}],"border-color":[{border:w()}],"border-color-x":[{"border-x":w()}],"border-color-y":[{"border-y":w()}],"border-color-s":[{"border-s":w()}],"border-color-e":[{"border-e":w()}],"border-color-bs":[{"border-bs":w()}],"border-color-be":[{"border-be":w()}],"border-color-t":[{"border-t":w()}],"border-color-r":[{"border-r":w()}],"border-color-b":[{"border-b":w()}],"border-color-l":[{"border-l":w()}],"divide-color":[{divide:w()}],"outline-style":[{outline:[...ve(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[Hl,X,Y]}],"outline-w":[{outline:[``,Hl,su,eu]}],"outline-color":[{outline:w()}],shadow:[{shadow:[``,`none`,u,fu,ou]}],"shadow-color":[{shadow:w()}],"inset-shadow":[{"inset-shadow":[`none`,d,fu,ou]}],"inset-shadow-color":[{"inset-shadow":w()}],"ring-w":[{ring:_e()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:w()}],"ring-offset-w":[{"ring-offset":[Hl,eu]}],"ring-offset-color":[{"ring-offset":w()}],"inset-ring-w":[{"inset-ring":_e()}],"inset-ring-color":[{"inset-ring":w()}],"text-shadow":[{"text-shadow":[`none`,f,fu,ou]}],"text-shadow-color":[{"text-shadow":w()}],opacity:[{opacity:[Hl,X,Y]}],"mix-blend":[{"mix-blend":[...ye(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":ye()}],"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":[Hl]}],"mask-image-linear-from-pos":[{"mask-linear-from":be()}],"mask-image-linear-to-pos":[{"mask-linear-to":be()}],"mask-image-linear-from-color":[{"mask-linear-from":w()}],"mask-image-linear-to-color":[{"mask-linear-to":w()}],"mask-image-t-from-pos":[{"mask-t-from":be()}],"mask-image-t-to-pos":[{"mask-t-to":be()}],"mask-image-t-from-color":[{"mask-t-from":w()}],"mask-image-t-to-color":[{"mask-t-to":w()}],"mask-image-r-from-pos":[{"mask-r-from":be()}],"mask-image-r-to-pos":[{"mask-r-to":be()}],"mask-image-r-from-color":[{"mask-r-from":w()}],"mask-image-r-to-color":[{"mask-r-to":w()}],"mask-image-b-from-pos":[{"mask-b-from":be()}],"mask-image-b-to-pos":[{"mask-b-to":be()}],"mask-image-b-from-color":[{"mask-b-from":w()}],"mask-image-b-to-color":[{"mask-b-to":w()}],"mask-image-l-from-pos":[{"mask-l-from":be()}],"mask-image-l-to-pos":[{"mask-l-to":be()}],"mask-image-l-from-color":[{"mask-l-from":w()}],"mask-image-l-to-color":[{"mask-l-to":w()}],"mask-image-x-from-pos":[{"mask-x-from":be()}],"mask-image-x-to-pos":[{"mask-x-to":be()}],"mask-image-x-from-color":[{"mask-x-from":w()}],"mask-image-x-to-color":[{"mask-x-to":w()}],"mask-image-y-from-pos":[{"mask-y-from":be()}],"mask-image-y-to-pos":[{"mask-y-to":be()}],"mask-image-y-from-color":[{"mask-y-from":w()}],"mask-image-y-to-color":[{"mask-y-to":w()}],"mask-image-radial":[{"mask-radial":[X,Y]}],"mask-image-radial-from-pos":[{"mask-radial-from":be()}],"mask-image-radial-to-pos":[{"mask-radial-to":be()}],"mask-image-radial-from-color":[{"mask-radial-from":w()}],"mask-image-radial-to-color":[{"mask-radial-to":w()}],"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":b()}],"mask-image-conic-pos":[{"mask-conic":[Hl]}],"mask-image-conic-from-pos":[{"mask-conic-from":be()}],"mask-image-conic-to-pos":[{"mask-conic-to":be()}],"mask-image-conic-from-color":[{"mask-conic-from":w()}],"mask-image-conic-to-color":[{"mask-conic-to":w()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:fe()}],"mask-repeat":[{mask:pe()}],"mask-size":[{mask:me()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,X,Y]}],filter:[{filter:[``,`none`,X,Y]}],blur:[{blur:xe()}],brightness:[{brightness:[Hl,X,Y]}],contrast:[{contrast:[Hl,X,Y]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,fu,ou]}],"drop-shadow-color":[{"drop-shadow":w()}],grayscale:[{grayscale:[``,Hl,X,Y]}],"hue-rotate":[{"hue-rotate":[Hl,X,Y]}],invert:[{invert:[``,Hl,X,Y]}],saturate:[{saturate:[Hl,X,Y]}],sepia:[{sepia:[``,Hl,X,Y]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,X,Y]}],"backdrop-blur":[{"backdrop-blur":xe()}],"backdrop-brightness":[{"backdrop-brightness":[Hl,X,Y]}],"backdrop-contrast":[{"backdrop-contrast":[Hl,X,Y]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,Hl,X,Y]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Hl,X,Y]}],"backdrop-invert":[{"backdrop-invert":[``,Hl,X,Y]}],"backdrop-opacity":[{"backdrop-opacity":[Hl,X,Y]}],"backdrop-saturate":[{"backdrop-saturate":[Hl,X,Y]}],"backdrop-sepia":[{"backdrop-sepia":[``,Hl,X,Y]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,X,Y]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[Hl,`initial`,X,Y]}],ease:[{ease:[`linear`,`initial`,_,X,Y]}],delay:[{delay:[Hl,X,Y]}],animate:[{animate:[`none`,v,X,Y]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,X,Y]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:Se()}],"rotate-x":[{"rotate-x":Se()}],"rotate-y":[{"rotate-y":Se()}],"rotate-z":[{"rotate-z":Se()}],scale:[{scale:Ce()}],"scale-x":[{"scale-x":Ce()}],"scale-y":[{"scale-y":Ce()}],"scale-z":[{"scale-z":Ce()}],"scale-3d":[`scale-3d`],skew:[{skew:we()}],"skew-x":[{"skew-x":we()}],"skew-y":[{"skew-y":we()}],transform:[{transform:[X,Y,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:Te()}],"translate-x":[{"translate-x":Te()}],"translate-y":[{"translate-y":Te()}],"translate-z":[{"translate-z":Te()}],"translate-none":[`translate-none`],zoom:[{zoom:[Ul,X,Y]}],accent:[{accent:w()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:w()}],"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`,X,Y]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":w()}],"scrollbar-track-color":[{"scrollbar-track":w()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mbs":[{"scroll-mbs":C()}],"scroll-mbe":[{"scroll-mbe":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pbs":[{"scroll-pbs":C()}],"scroll-pbe":[{"scroll-pbe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"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`,X,Y]}],fill:[{fill:[`none`,...w()]}],"stroke-w":[{stroke:[Hl,su,eu,tu]}],stroke:[{stroke:[`none`,...w()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}},Tu=(e,{extend:t={},override:n={}})=>(Du(e.theme,n.theme),Du(e.classGroups,n.classGroups),Du(e.conflictingClassGroups,n.conflictingClassGroups),Du(e.conflictingClassGroupModifiers,n.conflictingClassGroupModifiers),Eu(e,`postfixLookupClassGroups`,n.postfixLookupClassGroups),Eu(e,`orderSensitiveModifiers`,n.orderSensitiveModifiers),Ou(e.theme,t.theme),Ou(e.classGroups,t.classGroups),Ou(e.conflictingClassGroups,t.conflictingClassGroups),Ou(e.conflictingClassGroupModifiers,t.conflictingClassGroupModifiers),ku(e,t,`postfixLookupClassGroups`),ku(e,t,`orderSensitiveModifiers`),e),Eu=(e,t,n)=>{n!==void 0&&(e[t]=n)},Du=(e,t)=>{if(t)for(let n in t)Eu(e,n,t[n])},Ou=(e,t)=>{if(t)for(let n in t)ku(e,t,n)},ku=(e,t,n)=>{let r=t[n];r!==void 0&&(e[n]=e[n]?e[n].concat(r):r)},Au=e=>Dl(e?typeof e==`function`?()=>e(wu()):()=>Tu(wu(),e):wu),ju=e=>{if(Xs(e))return;let t=e,n={...t.extend??{}};for(let e of[`theme`,`classGroups`,`conflictingClassGroups`,`conflictingClassGroupModifiers`,`postfixLookupClassGroups`,`orderSensitiveModifiers`,`cacheSize`,`prefix`,`separator`,`experimentalParseClassName`])t[e]!==void 0&&n[e]===void 0&&(n[e]=t[e]);let r={};if(Object.keys(n).length>0&&(r.extend=n),t.override!=null&&!Xs(t.override)&&(r.override=t.override),r.extend||r.override)return r},Mu=e=>{let t=Au(ju(e));return e=>t.mergeString(e)},Nu,Pu=()=>(Nu||=Au(),Nu),Fu=()=>((!gc.cachedTwMerge||gc.didTwMergeConfigChange)&&(gc.didTwMergeConfigChange=!1,gc.cachedTwMerge=Mu(gc.cachedTwMergeConfig)),gc.cachedTwMerge),Iu=e=>{let t=e?.twMergeConfig;t&&!Xs(t)&&(Zs(t,gc.cachedTwMergeConfig)||(gc.cachedTwMergeConfig=t,gc.didTwMergeConfigChange=!0))},Lu=e=>Us(e);(()=>{let e=Error();return!(`line`in e)&&!(`lineNumber`in e)})();var Ru=gc.reset.bind(gc);gc.reset=()=>{Nu=void 0,Ru()};var zu=(e,t)=>{let n=Lu(e);return!n||!(t?.twMerge??!0)?n||void 0:n.indexOf(` `)===-1?n:(Iu(t),(t?.twMergeConfig&&!Xs(t.twMergeConfig)?Fu():Pu().mergeString)(n)||void 0)},Bu=Gc((e,...t)=>zu(t,e)),Vu=Bu.tv;Bu.createTV;var Hu=48,Uu=(e,t=0)=>{let n=new Int32Array(e.length);for(let r=0;r<e.length;r++)n[r]=e.charCodeAt(r)-Hu-t;return n},Wu=e=>{let t=new Int32Array(e.length+1);for(let n=0;n<e.length;n++)t[n+1]=t[n]+e[n];return t},Gu=e=>{let t=new Int32Array(e.length),n=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r)-Hu;n+=i>>>1^-(i&1),t[r]=n}return t},Ku=384,qu=[],Ju=Wu(Uu(`E0500002005282000000002000150000020021820000011200000003022202000300004200120000200420001200021200301200010400162000010000220021010:2192001200220012000220012000200200200400010200040000000000400200108200110100000022010313000162002000020020012020080213000228200000000082000000000120002000120020020040101020300130001001010`)),Yu=Wu(Uu(`:11111111211111119311546544411119731869:671397415686432441111111111161114151214313433415:78311132233313187211117221449443411141111151152226611131111112212518142224214215421421542142424242516171151615616347111111111197911327451111111111111111111113134714133513411111311111111111111111111112444411111342312715245411117:3`)),Xu=`@containerabcdefghinlmoprstunderlineviawzccentlignnimatespectuto-colsrowsaglorightnessckdrop-sisbcontrastfiltergrayscalehue-rotateinvertopacityslurrightnessaturateepia-coniclinearpositionradialsizeockurrderttom-belrstxyespacing-xyaretoursorlnt-umnsendspantartainentrasteividerop-shadowurationcorationlay-xyasendillexontromlter-featuresstretchapr-xyayscaleidow-colsrowsue-rotatedentlinesetvert-beringsxyeshadoweiadingftnest-clamp-imageabein-lrstxyskx--b-coniclpositionrsizet-x-y-fromto-fromto-inearfromto-fromto-adialfromto-fromtofromtofromtofromtoblockhinlinew-screenesblockhinlinewbjectpacityrutlinederigin-offsetbelrstxyesrspective-originaceholderioghtng-offsettateundedw-xyz-belrstlreseslr-endspantartaturatecepiahizekewpace-taleroll-xyz-barmpbelrstxyesbelrstxyes-thumbrackadowrink-xyxyartrokeabextora-shadowpckingnsformitionlate-xyz-offsetill-changeoom`,Zu=(()=>{let e=Ju.length-1,t=new Int32Array(e);for(let n=e-1;n>=0;n--){let e=1,r=n+1;for(let i=Ju[n];i<Ju[n+1];i++)e+=t[r],r+=t[r];t[n]=e}let n=new Int32Array(Ju[e]),r=0;for(let i=0;i<e;i++){let e=i+1;for(let a=Ju[i];a<Ju[i+1];a++)n[r++]=e,e+=t[e]}return n})(),Qu=Uu(`02000000000000900<=0?000B000F00F00ŏI0J0LNPRTVX0000]_a00000000000000000000000rst0000000zŏ00000000000…ŏ000ˆ0000ŏ0000000000—0000000000000000000000000000000000000000000000000000Ë000000000000000000000Þ000000000000000000ð0000000ø0ùúûüýþÿĀāĂ㥹Ć000000000000000000000000000000000000000000ħ0ĨĪ00000000000000000000ļĽ00000Ŭ000000`,1),$u=Wu(Uu(`123333359346463635126536711576`)),ed=Uu(`93203242332583253248325D>E?F@03263243255B:032523853:0325B:8GA032542H<C=12727B:0328432553;D>E?3257D>032585:0325B:;0328B:032`),td=Uu(`012113445661666666789111:5;;;;;;;;444;;;:62999<1161=62>>?61:21@ABCD4446996:64E:::;:?::64:F114GHHIHHHHIHH1HH1HH1HHHHHH::EEJ4444::EE4444441691;644444114244444:;K6666555555555555555999666664444444444444444444444226?6:66644L9M?D:111::::6DE199`),nd=Gu(`020200202020020020020020020020200200200200200200200002020202001003040106000200200200200200200200200200200200200200200200200200200200200200200200200200200200020020020020020020002020200202002002002002002002002002002020002002020020200220200200200200200200200200200200020020020000200020002000200200200020020020002000200200200020020202002020202000200200020022000200200020020002002000200220002002000200W0Z00020020002002020002002000200g0j0002002000200200020020002002000200200020020002000200002000002002002002002000200020000200002002002002002002002020020020200200200200200200200200202020020020020020020020020002002002020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020002002002002002002000200200200200200200200200200020202020002000200020002002002002000020200200`),rd=(()=>{let e=new Int32Array(319).fill(-1),t=Gu(`02422242:222222242224222242442222222422222244442242226224222426222422442462222422622222222626222462242622422622422424242422222222422222222242422222222222222222622442224222222222222224424442262222222222222222222226224222424242422224422422422222`),n=Gu(`02222222222222222222202222222222222222222222221422222222222222222222222222222222222Y\\222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222221422222222222222222222222222222222222222Ŀł222222222222222222`);for(let r=0;r<t.length;r++)e[t[r]]=n[r];return e})(),id=`container |break-after- all auto avoid avoid-page column left page right|break-before- all auto avoid avoid-page column left page right|break-inside-a uto void void-column void-page|box-decoration- clone slice|box- border content| contents flow-root hidden table table-caption table-cell table-column table-column-group table-footer-group table-header-group table-row table-row-group| not-sr-only sr-only|float- end left none right start|clear- both end left none right start|isolat e ion-auto|overflow- auto clip hidden scroll visible|overflow-x- auto clip hidden scroll visible|overflow-y- auto clip hidden scroll visible|overscroll- auto contain none|overscroll-x- auto contain none|overscroll-y- auto contain none| absolute fixed relative static sticky| collapse invisible visible|justify- around baseline between center center-safe end end-safe evenly normal start stretch|justify-items- center center-safe end end-safe normal start stretch|justify-self- auto center center-safe end end-safe start stretch|items- baseline baseline-last center center-safe end end-safe start stretch|self- auto baseline baseline-last center center-safe end end-safe start stretch|place-content- around baseline between center center-safe end end-safe evenly start stretch|place-items- baseline center center-safe end end-safe start stretch|place-self- auto center center-safe end end-safe start stretch| antialiased subpixel-antialiased| italic not-italic|normal-nums |ordinal |slashed-zero | lining-nums oldstyle-nums| proportional-nums tabular-nums| diagonal-fractions stacked-fractions| no-underline overline| capitalize lowercase normal-case uppercase|truncate |whitespace- break-spaces normal nowrap pre pre-line pre-wrap|break- all keep normal words|wrap- anywhere break-word normal|hyphens- auto manual none|mix-blend- color color-burn color-dodge darken difference exclusion hard-light hue lighten luminosity multiply normal overlay plus-darker plus-lighter saturation screen soft-light|table- auto fixed|caption- bottom top|backface- hidden visible|appearance- auto none|scheme- dark light light-dark normal only-dark only-light|field-sizing- content fixed|pointer-events- auto none|resize -none -x -y|snap- align-none center end start|snap- always normal|snap- both none x y|snap- mandatory proximity|touch- auto manipulation none|touch-pan- left right x|touch-pan- down up y|touch-pinch-zoom |select- all auto none text|forced-color-adjust- auto none| normal size| baseline bottom middle sub super text-bottom text-top top| bounce none ping pulse spin| auto square video| auto fr max min px|none | auto full px| fixed local scroll|clip- border content padding text|origin- border content padding| bottom bottom-left bottom-right center left left-bottom left-top right right-bottom right-top top top-left top-right| no-repeat repeat repeat-round repeat-space repeat-x repeat-y| auto contain cover|blend- color color-burn color-dodge darken difference exclusion hard-light hue lighten luminosity multiply normal overlay saturation screen soft-light|to- b bl br l r t tl tr| auto dvh fit full lh lvh max min px screen svh| dashed dotted double hidden none solid| collapse separate|px |auto |full | content none strict| inline-size size|layout |paint |style | around baseline between center center-safe end end-safe evenly normal start stretch| alias all-scroll auto cell col-resize context-menu copy crosshair default e-resize ew-resize grab grabbing help move n-resize ne-resize nesw-resize no-drop none not-allowed ns-resize nw-resize nwse-resize pointer progress row-resize s-resize se-resize sw-resize text vertical-text w-resize wait zoom-in zoom-out| dashed dotted double solid wavy| auto from-font|reverse |initial | in in-out initial linear out| col col-reverse row row-reverse| nowrap wrap wrap-reverse| auto initial none| black bold extrabold extralight light medium normal semibold thin| condensed expanded extra-condensed extra-expanded normal semi-condensed semi-expanded ultra-condensed ultra-expanded|flow- col col-dense dense row row-dense| none subgrid| auto dvh dvw fit full lh lvh lvw max min px screen svh svw| block flex grid table| auto dvw fit full lvw max min px screen svw| loose none normal px relaxed snug tight|through |item | inside outside| decimal disc none| auto px| clip-border clip-content clip-fill clip-padding clip-stroke clip-view no-clip| add exclude intersect subtract| alpha luminance match|origin- border content fill padding stroke view|type- alpha luminance| circle ellipse| closest-corner closest-side farthest-corner farthest-side|at- bottom bottom-left bottom-right center left left-bottom left-top right right-bottom right-top top top-left top-right| dvh fit full lh lvh max min none px screen svh| auto dvh dvw fit full lh lvh lvw max min none px screen svh svw| dvw fit full lvw max min none px screen svw| auto dvh dvw fit full lvh lvw max min none prose px svh svw| auto dvh dvw fit full lvh lvw max min none px screen svh svw| contain cover fill none scale-down| first last none| distant dramatic midrange near none normal|inset | full none|3d | auto smooth|gutter- auto both stable| auto none thin| inner none| auto dvh dvw fit full lvh lvw max min px svh svw|base | center end justify left right start| clip ellipsis| balance nowrap pretty wrap| normal tight tighter wide wider widest| cpu gpu none| 3d flat| all colors none opacity shadow transform| discrete normal| full px| auto dvh dvw fit full lvh lvw max min px screen svh svw| auto contents scroll transform`.split(`|`).map(e=>{let t=e.split(` `),n=t.shift();for(let e=0;e<t.length;e++)t[e]=n+t[e];return t}),ad=Gu(`0000000000000000000000000000000000000000000000000000000000000262242:6@200000006:240B428:4422400002046044222426220026642642462026224222824220022400000000\\00N222422242222222224062242222222422226264222422222222222222442804222422222222222222222222220<4<0204260002444020204224422`),od=Gu(`ɠ222222222222222222222222222222222222222222222222222222222222˕4222226>6ʰ22ʷʺʷʺʷ42ʴ2ʓ22>621422ɶ222ɹɼɷɺɷɺ22ɱ42222ɨ2ɧ26622ɘɓ244ƸƵ222]d24242ǖǓƚÄȫ2263ȨȥȨ2222222ǣ222222222222222222ǂƽ2ƾƵ2222222422222ƜƑ22222222222222222222144Ŧţ22Ţş222222222222222222222ĸ2ı68ĦģĦɡŰ4Ġ«®ĝ822ĔđĔ2ē2222622`),sd=Gu(`02222222222222222222222222222222222222222222222222222222222222222202021422222222CF2200GJ021042222WZ222IL0ad2c10h2222U00X202[^2w0000120zy|}€22ƒ†…:22z22222222222G000q†OVI00000{˜2™<40000Œ›@00000G¦§000ª00000000000000021K¬«00®“000000000000000000000–222›HGH_1¸222½2¾2222ÇÊ000­°2±`),cd=new Int32Array(987),ld=new Int32Array(987),ud=new Int32Array(987),dd=``,fd=new Int32Array(1022);{let e=new Map,t=0,n=0;for(let r=0;r<ad.length;r++)for(let i of id[sd[r]]){let a=e.get(i);a===void 0&&(a=t++,e.set(i,a),fd[a*2]=dd.length,fd[a*2+1]=i.length,dd+=i),cd[n]=ad[r],ld[n]=od[r],ud[n]=a,n++}}var pd=Gu(`0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p`),md=Wu(Uu(`1::24444432:442:44:44>222222:44:4421322511111311111114`)),hd=Gu(`2Š4A;33N=C@H4A;33N=C@<27;83:;8393NQ:3NQʰ222ˉºŴŽ2R2=18cƴÅҜ=cĞÛC1ƈǝȈ:ħ25=11D3A@4=<1;1DEr25;11B3?<6;:371BCn9@7=<8192>2E121@9@EHE@9>2T25511<398454131<=V25511<398454131<=„ƧNž2Đå242L222290000f22500ɛ000ǘ222`),gd=Uu(`ij`),_d=Uu(`—`),vd=Uu(`1`),yd={GROUP_COUNT:Ku,customValidatorNames:qu,edgeStart:Ju,labelStart:Yu,labelText:Xu,edgeTarget:Zu,nodeGroup:Qu,nodeVlist:rd,vlistPat:$u,vlistOps:ed,vlistRef:td,vlistGroup:nd,litAnchor:cd,litGroup:ld,litPool:ud,poolOffsets:fd,poolText:dd,adjGid:pd,adjStart:md,adjTgt:hd,patGid:gd,patTgt:_d,postfixLookupGroups:vd,orderSensitiveModifiers:`* ** after backdrop before details-content file first-letter first-line marker placeholder selection`},bd=`line`in Error(),xd=-1,Sd=-1,Cd=(e,t,n)=>{let r=2166136261;for(let i=t;i<n;i++)r=Math.imul(r^e.charCodeAt(i),16777619);return r},wd=(e,t,n)=>{let r=n-t,i=Math.imul(r,2654435761)^e.charCodeAt(t);if(r>3){let a=r>>2,o=r>>1;i=Math.imul(i^e.charCodeAt(t+1)<<8^e.charCodeAt(t+2)<<16^e.charCodeAt(t+a),2246822507),i=Math.imul(i^e.charCodeAt(t+o)<<8^e.charCodeAt(t+o+a)<<16^e.charCodeAt(n-3),3266489909),i^=e.charCodeAt(n-2)<<8^e.charCodeAt(n-1)<<16;for(let r=t+3,a=n-4;r<t+8&&r<a;r++,a--)i=Math.imul(i^e.charCodeAt(r)^e.charCodeAt(a)<<8,16777619)}return i^i>>>15},Td=(e,t,n={})=>{let{GROUP_COUNT:r,edgeStart:i,labelStart:a,labelText:o,edgeTarget:s,nodeGroup:c,nodeVlist:l,vlistPat:u,vlistOps:d,vlistRef:f,vlistGroup:p,litAnchor:m,litGroup:h,litPool:g,poolOffsets:_,poolText:v,adjGid:y,adjStart:b,adjTgt:x,patGid:S,patTgt:ee,postfixLookupGroups:C,customValidatorNames:te,orderSensitiveModifiers:ne}=e,re=new Int32Array(r).fill(-1);for(let e=0;e<y.length;e++)re[y[e]]=e;let ie=0;for(let e=0;e+1<b.length;e++){let t=b[e+1]-b[e];t>ie&&(ie=t)}let ae=32;for(;ae<2*(1+ie+S.length);)ae<<=1;let oe=new Int32Array(f.length+1);for(let e=0;e<f.length;e++)oe[e+1]=oe[e]+u[f[e]+1]-u[f[e]];let se=new Uint8Array(r);for(let e=0;e<C.length;e++)se[C[e]]=1;let ce=i.length-1,le=new Uint8Array(ce),ue=0,de=!0;for(let e=0;e<m.length;e++){le[m[e]]=1;let t=_[g[e]*2+1];t>ue&&(ue=t);let n=v.charCodeAt(_[g[e]*2]);(n===91||n===40)&&(de=!1)}let w=1;for(;w<m.length*2;)w<<=1;let fe=new Int32Array(w).fill(-1);for(let e=0;e<m.length;e++){let t=_[g[e]*2],n=(Cd(v,t,t+_[g[e]*2+1])^Math.imul(m[e],2654435761)|0)&w-1;for(;fe[n]!==-1;)n=n+1&w-1;fe[n]=e}let pe=(e,t,n,r)=>{let i=(Cd(t,n,r)^Math.imul(e,2654435761)|0)&w-1,a=r-n;for(;;){let r=fe[i];if(r===-1)return-1;if(m[r]===e&&_[g[r]*2+1]===a){let e=_[g[r]*2],i=!0;for(let r=0;r<a;r++)if(v.charCodeAt(e+r)!==t.charCodeAt(n+r)){i=!1;break}if(i)return h[r]}i=i+1&w-1}},me=n.cacheSize??8192,he=n.prefix??e.prefix??``,ge=he===``?``:he+`:`,_e=ge.length,ve=(te??[]).map(e=>{let n=t&&t[e];if(!n)throw Error(`cn: missing validator `+e);return n}),ye=/\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$/,be=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,xe=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Se=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ce=0,we=-1,Te=-1,Ee=-1,De=-1,T=e=>e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57||e===95,Oe=e=>/\s/.test(String.fromCharCode(e)),ke=(e,t,n)=>{if(Ce=0,we=-1,n-t<3)return;let r=e.charCodeAt(t),i=e.charCodeAt(n-1);if(r===91&&i===93)Ce=1;else if(r===40&&i===41)Ce=2;else return;Ee=t+1,De=n-1;let a=t+1;if(T(e.charCodeAt(a))){for(a++;a<n-1;){let t=e.charCodeAt(a);if(!T(t)&&t!==45)break;a++}a<n-2&&e.charCodeAt(a)===58&&(we=t+1,Te=a,Ee=a+1)}},Ae=(e,t,n,r)=>{if(n-t!==r.length)return!1;for(let n=0;n<r.length;n++)if(e.charCodeAt(t+n)!==r.charCodeAt(n))return!1;return!0},je=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,E=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Me=e=>!!e&&!Number.isNaN(Number(e)),Ne=(e,t,n)=>{if(n-t<11||!Ae(e,t,t+10,`@container`))return!1;if(e.charCodeAt(t+10)===47)return n-t>=12;let r=e.charCodeAt(t+11);return r===115&&n-t>=17&&Ae(e,t+10,t+16,`-size/`)||r===110&&n-t>=19&&Ae(e,t+10,t+18,`-normal/`)},Pe=[1,1,1,1,1,1,1,1,2,2,2,2,2,2,2],Fe=`length|number|number weight|family-name|position percentage|length size bg-size|image url|shadow|length|family-name|position percentage|length size bg-size|image url|shadow|number weight`.split(`|`).map(e=>e.split(` `)),Ie=[2,3,1,0,0,0,4,5,0,0,0,0,0,1,1],Le=(e,t,n,r)=>{if(e>=10){if(e>=25)return ve[e-25](t.slice(n,r));let i=e-10;if(Ce!==Pe[i])return!1;if(we>=0){for(let e of Fe[i])if(Ae(t,we,Te,e))return!0;return!1}switch(Ie[i]){case 0:return!1;case 1:return!0;case 2:{let e=t.slice(Ee,De);return ye.test(e)&&!be.test(e)}case 3:return Me(t.slice(Ee,De));case 4:return Se.test(t.slice(Ee,De));default:return xe.test(t.slice(Ee,De))}}switch(e){case 0:return!0;case 1:return Ce===0;case 2:return Ce===1;case 3:return Ce===2;case 4:return je.test(t.slice(n,r));case 5:return Me(t.slice(n,r));case 6:{let e=t.slice(n,r);return!!e&&Number.isInteger(Number(e))}case 7:return r>n&&t.charCodeAt(r-1)===37&&Me(t.slice(n,r-1));case 8:return E.test(t.slice(n,r));default:return Ne(t,n,r)}},Re=new Set(typeof ne==`string`?ne.split(` `):ne),ze=(e,t,n,r,i,a)=>{let o=Cd(t,n,r)^(i?2654435769:0),s=e.get(o);if(s!==void 0)outer:for(let e=0;e<s.length;e++){let a=s[e];if(a.imp===i&&a.k.length===r-n){for(let e=0;e<a.k.length;e++)if(a.k.charCodeAt(e)!==t.charCodeAt(n+e))continue outer;return a.id}}else e.set(o,s=[]);let c=t.slice(n,r),l=a(c);return s.push({k:c,imp:i,id:l}),l},Be=new Map,Ve=new Map,He=2,Ue=4096,We=(e,t)=>{let n=[],r=0,i=0,a=0;for(let t=0;t<e.length;t++){let o=e.charCodeAt(t);r===0&&i===0&&o===58?(n.push(e.slice(a,t)),a=t+1):o===91?r++:o===93?r--:o===40?i++:o===41&&i--}n.push(e.slice(a));let o=n[0];if(n.length>1){let e=[],t=[];for(let r of n)r.charCodeAt(0)===91||Re.has(r)?(t.length&&(e.push(...t.sort()),t=[]),e.push(r)):t.push(r);t.length&&e.push(...t.sort()),o=e.join(`:`)}let s=t?o+` !`:o,c=Ve.get(s);return c===void 0&&Ve.set(s,c=He++),c},Ge=new Map,Ke=r,qe=r+4096,Je=()=>Ke++,Ye=2097152,Xe=8192,Ze=new Int32Array(Xe),Qe=Array(Xe).fill(null),$e=new Int32Array(Xe),et=new Int32Array(Xe),tt=new Uint8Array(Xe),nt=0,rt=(e,t,n,r,i,a,o,s)=>{let c=e;if(Qe[e]!==null){if(Qe[e|1]===null)c=e|1;else if(!(nt++&3))c=e|nt>>2&1;else return}Qe[c]=t.slice(n,r),Ze[c]=i,$e[c]=a,et[c]=o,tt[c]=s},it=()=>Qe.fill(null),at=256,D=[new Int32Array(at),new Int32Array(at),new Int32Array(at),new Int32Array(at)],[O,ot,st,ct]=D,lt=new Uint8Array(at),ut=new Uint8Array(at),dt=()=>{at*=2,D=D.map(e=>{let t=new Int32Array(at);return t.set(e),t}),[O,ot,st,ct]=D;let e=new Uint8Array(at);e.set(lt),lt=e,ut=new Uint8Array(at)},ft=64,pt=new Int32Array(ft),mt=new Int32Array(ft),ht=new Int32Array(r),gt=2048,_t=21,vt=new Float64Array(gt),yt=new Int32Array(gt),bt=0,xt=(e,t)=>{if(e===0&&t<r)return ht[t]===bt?1:(ht[t]=bt,0);let n=e*2097152+t+1,i=Math.imul(n,2654435761)>>>_t;for(;yt[i]===bt;){if(vt[i]===n)return 1;i=i+1&gt-1}return vt[i]=n,yt[i]=bt,0},St=(e,t,n,r,i)=>{if(n-t>=2&&e.charCodeAt(t)===91&&e.charCodeAt(n-1)===93){let r=-1;for(let i=t+1;i<n-1;i++)if(e.charCodeAt(i)===58){r=i;break}return r===-1||r===t+1?xd:ze(Ge,e,t+1,r,0,Je)}if(r>=0&&c[r]>=0)return c[r];for(let t=i-1;t>=0;t--){let r=mt[t];if(r>n)continue;let i=pt[t],a=n-r;if(le[i]===1&&a>0&&a<=ue){let t=e.charCodeAt(r);if(de===!1||t!==91&&t!==40){let t=pe(i,e,r,n);if(t>=0)return t}}let o=l[i];if(o<0)continue;let s=f[o],c=u[s],m=u[s+1];if(c===m)continue;ke(e,r,n);let h=oe[o]-c;for(let t=c;t<m;t++)if(Le(d[t],e,r,n))return p[h+t]}return xd},Ct=e=>{let t=e.length,n=0,c=0,u=!1;(He>Ue||Be.size>Ue)&&(Be=new Map,Ve=new Map,He=2,it()),Ke>qe&&(Ge=new Map,Ke=r,it());let d=0;for(;d<t;){let f=e.charCodeAt(d);if(f===32||f>=9&&f<=13||f>=160&&Oe(f)){f!==32&&(u=!0),d++;continue}let p=d,m=0;for(;d<t;){if(f=e.charCodeAt(d),f<=32){if(f===32)break;if(f>=9&&f<=13){u=!0;break}}else if(f>=160&&Oe(f)){u=!0;break}m=Math.imul(m^f,16777619),d++}let h=d,g=h-p;n===at&&dt();let _=n++;O[_]=p,ot[_]=h,c+=g,m^=Math.imul(g,2654435761);let v=m^m>>>15,y=v&8190;{let t=-1;if(Ze[y]===v&&Qe[y]!==null&&Qe[y].length===g?t=y:Ze[y|1]===v&&Qe[y|1]!==null&&Qe[y|1].length===g&&(t=y|1),t>=0){let n=Qe[t],r=!0;for(let t=0;t<g;t++)if(n.charCodeAt(t)!==e.charCodeAt(p+t)){r=!1;break}if(r){st[_]=$e[t],ct[_]=et[t],lt[_]=tt[t];continue}}}let b=p;if(_e!==0){if(h-p<=_e||!e.startsWith(ge,p)){st[_]=xd,rt(y,e,p,h,v,xd,0,0);continue}b=p+_e}let x=0,S=0,ee=-1,C=-1;for(let t=b;t<h;t++){let n=e.charCodeAt(t);if(x===0&&S===0){if(n===58){ee=t;continue}if(n===47){C=t;continue}}n===91?x++:n===93?x--:n===40?S++:n===41&&S--}let te=ee>=b?ee+1:b,ne=te,re=h,ie=!1,ae=0;re>ne&&e.charCodeAt(re-1)===33?(ie=!0,re--):re>ne&&e.charCodeAt(ne)===33&&(ie=!0,ne++,ae=1);let oe=-1;C>te&&(oe=C+ae,oe>=re&&(oe=-1));let ce=ne;re-ne>1&&e.charCodeAt(ne)===45&&(ce=ne+1);let ue=0,de=0,w=0,fe=-1,pe=0;(l[0]>=0||le[0]===1)&&(pt[0]=0,mt[0]=ce,pe=1);let me=Sd,he=0;for(let t=ce;t<re;t++)if(t===oe&&(me=de<w?Sd:ue,he=pe),ue!==Sd){let n=e.charCodeAt(t),r=-1;if(de<w)o.charCodeAt(de)===n?(de++,de===w&&(r=ue=fe)):ue=Sd;else{let e=i[ue],t=i[ue+1],c=Sd;for(let i=e;i<t;i++){let e=a[i];if(o.charCodeAt(e)===n){a[i+1]-e===1?r=c=s[i]:(de=e+1,w=a[i+1],fe=s[i],c=ue);break}}ue=c}if(r>=0&&(l[r]>=0||le[r]===1)&&t+1<re&&e.charCodeAt(t+1)===45){if(pe===ft){ft*=2;let e=new Int32Array(ft);e.set(pt),pt=e;let t=new Int32Array(ft);t.set(mt),mt=t}pt[pe]=r,mt[pe]=t+2,pe++}}oe===re&&(me=de<w?Sd:ue,he=pe);let ve=de<w?Sd:ue,ye,be=!1;if(oe>=0){if(be=!0,ye=St(e,ne,oe,me,he),ye!==xd&&ye<r&&se[ye]){let t=St(e,ne,re,ve,pe);t!==xd&&t!==ye&&(ye=t,be=!1)}else ye===xd&&(ye=St(e,ne,re,ve,pe),be=!1)}else ye=St(e,ne,re,ve,pe);let xe=0,Se=0;ye===xd?st[_]=xd:(Se=+!!be,xe=b>=ee?+!!ie:ze(Be,e,b,ee,+!!ie,e=>We(e,ie)),st[_]=ye,lt[_]=Se,ct[_]=xe),rt(y,e,p,h,v,ye,xe,Se)}if(n===0)return``;if(n===1)return O[0]===0&&ot[0]===t?e:e.slice(O[0],ot[0]);if(n*ae>gt){for(;n*ae>gt;)gt<<=1,_t--;vt=new Float64Array(gt),yt=new Int32Array(gt)}if(He>=Ye||Ke>=Ye)throw Error(`cn: too many distinct classes in one merge`);bt=bt+1|0,bt===0&&(ht.fill(0),yt.fill(0),bt=1);let f=!1;for(let e=n-1;e>=0;e--){let t=st[e];if(t===xd){ut[e]=1;continue}let n=ct[e];if(xt(n,t)===1)ut[e]=0,f=!0;else if(ut[e]=1,t<r){let r=re[t];if(r>=0)for(let e=b[r];e<b[r+1];e++)xt(n,x[e]);if(lt[e]&1)for(let e=0;e<S.length;e++)S[e]===t&&xt(n,ee[e])}}if(!f&&!u&&t===c+n-1)return e;let p=``,m=0;for(;m<n;){if(!ut[m]){m++;continue}let t=O[m],r=ot[m],i=m+1;for(;i<n&&ut[i]&&O[i]===r+1&&e.charCodeAt(r)===32;)r=ot[i],i++;p.length>0&&(p+=` `),p+=e.slice(t,r),m=i}return p},wt=16384,Tt=new Int32Array(wt*2),Et=0,Dt=1,k=Object.create(null),Ot=Object.create(null),kt=new Map,At=new Map,jt=0,Mt=0,Nt=()=>{Et^=wt,Dt=Dt+1|0,Mt=0},Pt=e=>{let t=k[e];if(t!==void 0)return t;let n=wd(e,0,e.length),r=(n&16383)+Et,i=Tt[r]===(n^Dt)||Tt[r^wt]===(n^Dt-1);return i&&(t=Ot[e],t!==void 0)?(k[e]=t,t):(t=Ct(e),i?(k[e]=t,++jt>me&&(jt=0,Ot=k,k=Object.create(null),Nt())):(Tt[r]=n^Dt,++Mt>wt&&Nt()),t)},Ft=e=>{let t=kt.get(e);if(t!==void 0)return t;let n=wd(e,0,e.length),r=(n&16383)+Et,i=Tt[r]===(n^Dt)||Tt[r^wt]===(n^Dt-1);return i&&(t=At.get(e),t!==void 0)?(kt.set(e,t),t):(t=Ct(e),i?(kt.set(e,t),++jt>me&&(jt=0,At=kt,kt=new Map,Nt())):(Tt[r]=n^Dt,++Mt>wt&&Nt()),t)},It=e=>{let t=wd(e,0,e.length),n=(t&16383)+Et;return Tt[n]===(t^Dt)||Tt[n^wt]===(t^Dt-1)||(Tt[n]=t^Dt,++Mt>wt&&Nt(),!1)},Lt=me===0?Ct:bd?e=>{let t=kt.get(e);return t===void 0?Ft(e):t}:Pt;return{merge:function(){return arguments.length===1&&typeof arguments[0]==`string`?Lt(arguments[0]):Lt(Od.apply(null,arguments))},mergeString:Lt,seenBefore:me===0?()=>!1:It,mergeUncached:Ct}},Ed=(e,t)=>{if(!e)return``;if(typeof e==`string`)return e;let n=``;if(typeof e.length==`number`&&(!t||Array.isArray(e))){let r=e;for(let e=0;e<r.length;e++){let i=r[e];if(!i)continue;let a=typeof i==`string`?i:Ed(i,t);a&&(n&&(n+=` `),n+=a)}return n}if(t){if(typeof e==`number`)return``+e;if(typeof e==`object`)for(let t in e)e[t]&&(n&&(n+=` `),n+=t)}return n},Dd=(e,t)=>{let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(!i)continue;let a=typeof i==`string`?i:Ed(i,t);a&&(n&&(n+=` `),n+=a)}return n},Od=function(){return Dd(arguments,!1)},kd=256,Ad=16,jd=1024,Md=4096,Nd=(e,t)=>{let n=t===void 0?()=>!0:t.seenBefore,r=t===void 0?e:t.mergeUncached,i=new Map,a=new Map,o=0,s=null,c=null,l=[],u=[],d=0,f=(t,n,r)=>{c===null&&(c=Array(Md).fill(``),l=Array(Md).fill(``),u=Array(Md).fill(``));let i=wd(t,0,t.length)&4094;if(c[i]===t&&l[i]===n)return u[i];if(c[i|1]===t&&l[i|1]===n)return u[i|1];let a=e(r?n+` `+t:t),o=c[i]===``?i:i|(c[i|1]===``?1:d++&1);return c[o]=t,l[o]=n,u[o]=a,a},p=(e,t,n,r)=>{let i=0;if(t){if(t!==e.a0)return!1;i=1}if(n){if(n!==(i===0?e.a0:e.a1))return!1;i++}if(r){if(r!==(i===0?e.a0:i===1?e.a1:e.a2))return!1;i++}return i===e.t},m=(e,t)=>{let n=e.a,r=0;for(let e=0;e<t.length;e++){let i=t[e];if(i){if(i!==n[r])return!1;r++}}return r===e.t},h=(t,c)=>{let l=t.length,u=s===null?null:s.n;if(!c){if(u!==null&&m(u,t))return s=u,u.r;if(s!==null&&s!==u&&m(s,t))return s.r}let d=``,p=-1,h=0,g=!1;for(let e=0;e<l;e++){let n=t[e];if(n){if(typeof n!=`string`){if(n=t[e]=Ed(n,!0),!n)continue;g=!0}p<0&&(d=n,p=e),h++}}if(h===0)return``;if(h===1)return e(d);if(g){if(u!==null&&m(u,t))return s=u,u.r;if(s!==null&&s!==u&&m(s,t))return s.r}let _=i.get(d);_===void 0&&(_=a.get(d),_!==void 0&&i.set(d,_));let v=null;if(_!==void 0){if(_.skip>0){_.skip--,s=null;let e=d;for(let n=p+1;n<l;n++){let r=t[n];r&&(e+=` `+r)}return f(e,``,!1)}let e=_.e;outer:for(let n=0;n<e.length;n++){let r=e[n];if(r.t!==h)continue;let i=r.a,a=1;for(let e=p+1;e<l;e++){let n=t[e];if(n&&n!==i[a++])continue outer}v=r;break}v!==null&&(_.miss=0)}if(v===null){let s=d,c=[d];for(let e=p+1;e<l;e++){let n=t[e];n&&(s+=` `+n,c.push(n))}if(!n(s))return r(s);v={r:e(s),t:c.length,a0:c[0],a1:c[1],a2:c[2]??``,a:c,n:null},_===void 0?i.set(d,_={e:[],miss:0,skip:0,at:0}):++_.miss>Ad&&(_.miss=Ad,_.skip=jd,_.e.length=0,_.at=0);let u=_.e;u.length<kd?u.push(v):(u[_.at]=v,_.at=_.at+1&255),++o>1e3&&(o=0,a=i,i=new Map)}return s!==null&&s!==v&&(s.n=v),s=v,v.r},g=t=>Array.isArray(t)?h(t.slice(),!1):e(Ed(t,!0));return function(t,n,r){let a=arguments.length;if((a|1)==3){let e=s;if(e!==null){let i=e.n;if(i!==null&&p(i,t,n,r))return s=i,i.r;if(e!==i&&p(e,t,n,r))return e.r}if(a===2&&typeof n==`string`&&n!==``){let e=i.get(t);if(e!==void 0&&e.skip>0)return e.skip--,s=null,f(n,t,!0)}return h([t,n,r],!0)}if(a===1)return typeof t==`string`?e(t):g(t);let o=s;if(o!==null){let e=o.n;if(e!==null){let t=e.a,n=0,r=!0;for(let e=0;e<a;e++){let i=arguments[e];if(i){if(i!==t[n]){r=!1;break}n++}}if(r&&n===e.t)return s=e,e.r}if(o!==e){let e=o.a,t=0,n=!0;for(let r=0;r<a;r++){let i=arguments[r];if(i){if(i!==e[t]){n=!1;break}t++}}if(n&&t===o.t)return o.r}}let c=[];for(let e=0;e<a;e++)c.push(arguments[e]);return h(c,!0)}},Pd=Td(yd),Fd=Nd(Pd.mergeString,Pd);Pd.merge;var Id=Vu({base:`h-5 gap-1 rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&>svg]:size-3! group/badge inline-flex w-fit shrink-0 items-center justify-center overflow-hidden whitespace-nowrap focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none`,variants:{variant:{default:`bg-primary text-primary-foreground [a]:hover:bg-primary/80`,secondary:`bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80`,destructive:`bg-destructive/10 [a]:hover:bg-destructive/20 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 text-destructive dark:bg-destructive/20`,outline:`border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground`,ghost:`hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50`,link:`text-primary underline-offset-4 hover:underline`}},defaultVariants:{variant:`default`}}),Ld=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`href`,`class`,`variant`,`children`]);function Rd(e,t){D(t,!0);let n=K(t,`ref`,15,null),r=K(t,`variant`,3,`default`),i=W(t,Ld);var a=z();Li(N(a),()=>t.href?`a`:`span`,!1,(e,a)=>{Ea(e,e=>n(e),()=>n()),ha(e,e=>({"data-slot":`badge`,href:t.href,class:e,...i}),[()=>Fd(Id({variant:r()}),t.class)]);var o=z();U(N(o),()=>t.children??f),B(a,o)}),B(e,a),O()}var zd={name:`calendar-days`,size:24,node:[[`path`,{d:`M8 2v3`}],[`path`,{d:`M16 2v3`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`}],[`path`,{d:`M3 9h18`}],[`path`,{d:`M8 13h.01`}],[`path`,{d:`M12 13h.01`}],[`path`,{d:`M16 13h.01`}],[`path`,{d:`M8 17h.01`}],[`path`,{d:`M12 17h.01`}],[`path`,{d:`M16 17h.01`}]]};zd.node;var Bd=new Set([`$$slots`,`$$events`,`$$legacy`]);function Vd(e,t){let n=W(t,Bd);Wa(e,G(()=>n,{get icon(){return zd}}))}var Hd=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`,`size`]),Ud=R(`<div><!></div>`);function Wd(e,t){D(t,!0);let n=K(t,`ref`,15,null),r=K(t,`size`,3,`default`),i=W(t,Hd);var a=Ud();ha(a,e=>({"data-slot":`card`,"data-size":r(),class:e,...i}),[()=>Fd(`ring-foreground/10 bg-card text-card-foreground gap-(--card-spacing) overflow-hidden rounded-xl py-(--card-spacing) text-sm shadow-xs ring-1 [--card-spacing:--spacing(6)] has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(4)] *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl group/card flex flex-col`,t.class)]),U(M(a),()=>t.children??f),E(a),Ea(a,e=>n(e),()=>n()),B(e,a),O()}function Gd(e,t){D(t,!0);let n=K(t,`class`,3,``);{let r=k(()=>Fd(`gap-0 rounded-[26px] border border-border bg-card py-0 text-card-foreground shadow-none ring-0 [--card-spacing:0px]`,n()));Wd(e,{get class(){return L(r)},children:(e,n)=>{var r=z();U(N(r),()=>t.children??f),B(e,r)},$$slots:{default:!0}})}O()}var Kd={0:[`wmoClear`,`sun`,`day`],1:[`wmoMostlyClear`,`sun`,`day`],2:[`wmoPartlyCloudy`,`cloud-sun`,`day`],3:[`wmoOvercast`,`cloud`,`cloud`],45:[`wmoFog`,`fog`,`cloud`],48:[`wmoRimeFog`,`fog`,`cloud`],51:[`wmoDrizzle`,`rain`,`rain`],53:[`wmoDrizzle`,`rain`,`rain`],55:[`wmoDenseDrizzle`,`rain`,`rain`],56:[`wmoFreezingDrizzle`,`rain`,`rain`],57:[`wmoHeavyFreezingDrizzle`,`rain`,`rain`],61:[`wmoLightRain`,`rain`,`rain`],63:[`wmoRain`,`rain`,`rain`],65:[`wmoHeavyRain`,`rain`,`rain`],66:[`wmoFreezingRain`,`rain`,`rain`],67:[`wmoHeavyFreezingRain`,`rain`,`rain`],71:[`wmoLightSnow`,`snow`,`rain`],73:[`wmoSnow`,`snow`,`rain`],75:[`wmoHeavySnow`,`snow`,`rain`],77:[`wmoSnowGrains`,`snow`,`rain`],80:[`wmoRainShowers`,`rain`,`rain`],81:[`wmoHeavyRainShowers`,`rain`,`rain`],82:[`wmoViolentRainShowers`,`storm`,`storm`],85:[`wmoSnowShowers`,`snow`,`rain`],86:[`wmoHeavySnowShowers`,`snow`,`rain`],95:[`wmoThunderstorm`,`storm`,`storm`],96:[`wmoThunderstormHail`,`storm`,`storm`],99:[`wmoSevereThunderstorm`,`storm`,`storm`]};function qd(e,t){switch(Number(e)){case 0:return t?`CLEAR_DAY`:`CLEAR_NIGHT`;case 1:case 2:return t?`PARTLY_CLOUDY_DAY`:`PARTLY_CLOUDY_NIGHT`;case 3:return`CLOUDY`;case 45:case 48:return`FOG`;case 51:case 53:case 55:case 56:case 57:case 61:case 66:case 67:case 80:return`LIGHT_RAIN`;case 63:case 81:return`MODERATE_RAIN`;case 65:return`HEAVY_RAIN`;case 71:case 77:case 85:return`LIGHT_SNOW`;case 73:case 86:return`MODERATE_SNOW`;case 75:return`HEAVY_SNOW`;case 82:case 95:case 96:case 99:return`STORM_RAIN`;default:return`CLOUDY`}}function Jd(e,t){let n=Kd[Number(e)]||(t?[`weatherFallback`,`sun`,`day`]:[`weatherNight`,`moon`,`night`]);return{label:q(n[0]),icon:n[1],skycon:qd(e,t),tone:n[2]}}var Yd=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]),Xd=R(`<div></div>`);function Zd(e,t){D(t,!0);let n=K(t,`ref`,15,null),r=W(t,Yd);var i=Xd();ha(i,e=>({"data-slot":`skeleton`,class:e,...r}),[()=>Fd(`bg-muted rounded-md animate-pulse`,t.class)]),Ea(i,e=>n(e),()=>n()),B(e,i),O()}var Qd={name:`sunrise`,size:24,node:[[`path`,{d:`M12 2v8`}],[`path`,{d:`m4.93 10.93 1.41 1.41`}],[`path`,{d:`M2 18h2`}],[`path`,{d:`M20 18h2`}],[`path`,{d:`m19.07 10.93-1.41 1.41`}],[`path`,{d:`M22 22H2`}],[`path`,{d:`m8 6 4-4 4 4`}],[`path`,{d:`M16 18a4 4 0 0 0-8 0`}]]};Qd.node;var $d=new Set([`$$slots`,`$$events`,`$$legacy`]);function ef(e,t){let n=W(t,$d);Wa(e,G(()=>n,{get icon(){return Qd}}))}var tf={name:`sunset`,size:24,node:[[`path`,{d:`M12 10V2`}],[`path`,{d:`m4.93 10.93 1.41 1.41`}],[`path`,{d:`M2 18h2`}],[`path`,{d:`M20 18h2`}],[`path`,{d:`m19.07 10.93-1.41 1.41`}],[`path`,{d:`M22 22H2`}],[`path`,{d:`m16 6-4 4-4-4`}],[`path`,{d:`M16 18a4 4 0 0 0-8 0`}]]};tf.node;var nf=new Set([`$$slots`,`$$events`,`$$legacy`]);function rf(e,t){let n=W(t,nf);Wa(e,G(()=>n,{get icon(){return tf}}))}var af={name:`cloud-sun`,size:24,node:[[`path`,{d:`M12 2v2`}],[`path`,{d:`m4.93 4.93 1.41 1.41`}],[`path`,{d:`M20 12h2`}],[`path`,{d:`m19.07 4.93-1.41 1.41`}],[`path`,{d:`M15.947 12.65a4 4 0 0 0-5.925-4.128`}],[`path`,{d:`M13 22H7a5 5 0 1 1 4.9-6H13a3 3 0 0 1 0 6Z`}]]};af.node;var of=new Set([`$$slots`,`$$events`,`$$legacy`]);function sf(e,t){let n=W(t,of);Wa(e,G(()=>n,{get icon(){return af}}))}var cf={name:`sun`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`4`}],[`path`,{d:`M12 2v2`}],[`path`,{d:`M12 20v2`}],[`path`,{d:`m4.93 4.93 1.41 1.41`}],[`path`,{d:`m17.66 17.66 1.41 1.41`}],[`path`,{d:`M2 12h2`}],[`path`,{d:`M20 12h2`}],[`path`,{d:`m6.34 17.66-1.41 1.41`}],[`path`,{d:`m19.07 4.93-1.41 1.41`}]]};cf.node;var lf=new Set([`$$slots`,`$$events`,`$$legacy`]);function uf(e,t){let n=W(t,lf);Wa(e,G(()=>n,{get icon(){return cf}}))}var df={name:`moon`,size:24,node:[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`}]]};df.node;var ff=new Set([`$$slots`,`$$events`,`$$legacy`]);function pf(e,t){let n=W(t,ff);Wa(e,G(()=>n,{get icon(){return df}}))}var mf={name:`cloud`,size:24,node:[[`path`,{d:`M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z`}]]};mf.node;var hf=new Set([`$$slots`,`$$events`,`$$legacy`]);function gf(e,t){let n=W(t,hf);Wa(e,G(()=>n,{get icon(){return mf}}))}var _f={name:`cloud-fog`,size:24,node:[[`path`,{d:`M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242`}],[`path`,{d:`M16 17H7`}],[`path`,{d:`M17 21H9`}]]};_f.node;var vf=new Set([`$$slots`,`$$events`,`$$legacy`]);function yf(e,t){let n=W(t,vf);Wa(e,G(()=>n,{get icon(){return _f}}))}var bf={name:`cloud-rain`,size:24,node:[[`path`,{d:`M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242`}],[`path`,{d:`M16 14v6`}],[`path`,{d:`M8 14v6`}],[`path`,{d:`M12 16v6`}]]};bf.node;var xf=new Set([`$$slots`,`$$events`,`$$legacy`]);function Sf(e,t){let n=W(t,xf);Wa(e,G(()=>n,{get icon(){return bf}}))}var Cf={name:`cloud-snow`,size:24,node:[[`path`,{d:`M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242`}],[`path`,{d:`M8 15h.01`}],[`path`,{d:`M8 19h.01`}],[`path`,{d:`M12 17h.01`}],[`path`,{d:`M12 21h.01`}],[`path`,{d:`M16 15h.01`}],[`path`,{d:`M16 19h.01`}]]};Cf.node;var wf=new Set([`$$slots`,`$$events`,`$$legacy`]);function Tf(e,t){let n=W(t,wf);Wa(e,G(()=>n,{get icon(){return Cf}}))}var Ef={name:`cloud-lightning`,size:24,node:[[`path`,{d:`M6 16.326A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 .5 8.973`}],[`path`,{d:`m13 12-3 5h4l-3 5`}]]};Ef.node;var Df=new Set([`$$slots`,`$$events`,`$$legacy`]);function Of(e,t){let n=W(t,Df);Wa(e,G(()=>n,{get icon(){return Ef}}))}function kf(e,t){D(t,!0);let n=K(t,`isDay`,3,!0),r=K(t,`class`,3,`size-5`),i=K(t,`strokeWidth`,3,1.7),a={sun:uf,moon:pf,"cloud-sun":sf,cloud:gf,fog:yf,rain:Sf,snow:Tf,storm:Of},o=k(()=>Jd(t.code,n())),s=k(()=>L(o).icon===`sun`&&!n()?pf:a[L(o).icon]||gf);var c=z();Mi(N(c),()=>L(s),(e,t)=>{t(e,{get class(){return r()},get strokeWidth(){return i()}})}),B(e,c),O()}var Af=R(`<div class="weather-main svelte-18szujc"><div class="weather-condition svelte-18szujc"><!> <div class="space-y-2"><!> <!></div></div> <!></div>`),jf=R(`<div class="weather-main svelte-18szujc"><div class="weather-condition svelte-18szujc"><span class="weather-icon svelte-18szujc"><!></span> <div><p class="text-[19px] font-medium text-foreground svelte-18szujc"> </p> <p class="mt-0.5 text-[14px] text-muted-foreground svelte-18szujc"> </p></div></div></div>`),Mf=R(`<div><span class="forecast-label svelte-18szujc"> </span> <!> <b class="numeric svelte-18szujc"> </b> <small class="numeric svelte-18szujc"> </small></div>`),Nf=R(`<div><span class="forecast-label svelte-18szujc"> </span> <!> <b class="numeric svelte-18szujc"> </b></div>`),Pf=R(`<div class="weather-main svelte-18szujc"><div class="weather-condition svelte-18szujc"><span class="weather-icon svelte-18szujc"><!></span> <div class="min-w-0"><p class="truncate text-[20px] font-semibold text-foreground svelte-18szujc"> </p> <p class="mt-0.5 truncate text-[14px] text-muted-foreground svelte-18szujc"> </p></div></div> <div class="weather-temp numeric svelte-18szujc"> <span class="svelte-18szujc"> </span></div> <div class="weather-metrics numeric svelte-18szujc"><span class="svelte-18szujc"><b class="svelte-18szujc"> </b><small class="svelte-18szujc"> </small></span> <span class="svelte-18szujc"><b class="svelte-18szujc"> </b><small class="svelte-18szujc"> </small></span> <span class="svelte-18szujc"><b class="svelte-18szujc"> </b><small class="svelte-18szujc"> </small></span> <span class="svelte-18szujc"><b class="svelte-18szujc"> </b><small class="svelte-18szujc"> </small></span></div></div> <div><!></div> <div class="weather-extra svelte-18szujc"><span class="svelte-18szujc"><!> </span> <span class="svelte-18szujc"><!> </span> <span class="svelte-18szujc"><!> </span></div>`,1),Ff=R(`<section class="weather-panel svelte-18szujc"><!></section>`);function If(e,t){D(t,!0);let n=k(()=>new Intl.DateTimeFormat(Qa(),{weekday:`short`})),r=k(()=>J.temperatureUnit),i=k(()=>zs(L(r))),a=k(()=>t.weather!==null),o=k(()=>!!(L(a)&&t.weather?.ok!==!1)),s=k(()=>t.weather?.current||{}),c=k(()=>t.weather?.daily||{}),l=k(()=>L(o)?Jd(L(s).code,L(s).isDay):null),u=k(()=>L(o)?Bs(L(s).temperature,L(r)):null),d=k(()=>L(o)&&Array.isArray(t.weather?.hourly)?t.weather.hourly.slice(0,6):[]),f=k(()=>L(o)&&Array.isArray(t.weather?.dailyForecast)?t.weather.dailyForecast.slice(0,7):[]),p=k(()=>L(o)&&t.weather?.forecastMode===`daily`&&L(f).length>0),m=k(()=>t.weather?.daily?.sunrise?new Date(t.weather.daily.sunrise):null),h=k(()=>t.weather?.daily?.sunset?new Date(t.weather.daily.sunset):null),g=k(()=>L(m)&&!Number.isNaN(L(m).getTime())?`${bs(L(m).getHours())}:${bs(L(m).getMinutes())}`:`--:--`),_=k(()=>L(h)&&!Number.isNaN(L(h).getTime())?`${bs(L(h).getHours())}:${bs(L(h).getMinutes())}`:`--:--`),v=k(()=>L(c).tomorrowHigh!=null&&L(c).tomorrowLow!=null?`${Vs(L(c).tomorrowHigh,L(r))} / ${Vs(L(c).tomorrowLow,L(r))}`:`--`);function y(e){let t=new Date(e||Date.now()).getHours();return t>=6&&t<18}function b(e){let t=String(e||``).trim();return!t||t===`当前位置`?q(`currentLocation`):t===`自定义位置`?q(`customLocation`):t}var x=Ff(),S=M(x),ee=e=>{var t=Af(),n=M(t),r=M(n);Zd(r,{class:`size-14 rounded-[15px]`});var i=F(r,2),a=M(i);Zd(a,{class:`h-4 w-28`}),Zd(F(a,2),{class:`h-3 w-20`}),E(i),E(n),Zd(F(n,2),{class:`h-12 w-24`}),E(t),B(e,t)},C=e=>{var t=jf(),n=M(t),r=M(n);sf(M(r),{class:`size-[26px] text-muted-foreground`,strokeWidth:1.7}),E(r);var i=F(r,2),a=M(i),o=P(a,!0),s=P(F(a,2),!0);E(i),E(n),E(t),I((e,t)=>{V(o,e),V(s,t)},[()=>q(`weatherUnavailable`),()=>q(`tryLater`)]),B(e,t)},te=e=>{var a=Pf(),o=N(a),m=M(o),h=M(m);kf(M(h),{get code(){return L(s).code},get isDay(){return L(s).isDay},class:`size-[26px]`}),E(h);var x=F(h,2),S=M(x),ee=P(S,!0),C=P(F(S,2),!0);E(x),E(m);var te=F(m,2),ne=M(te,!0),re=P(F(ne),!0);E(te);var ie=F(te,2),ae=M(ie),oe=M(ae),se=P(oe),ce=P(F(oe),!0);E(ae);var le=F(ae,2),ue=M(le),de=P(ue,!0),w=P(F(ue),!0);E(le);var fe=F(le,2),pe=M(fe),me=P(pe),he=P(F(pe),!0);E(fe);var ge=F(fe,2),_e=M(ge),ve=P(_e),ye=P(F(_e),!0);E(ge),E(ie),E(o);var be=F(o,2),xe=M(be),Se=e=>{var t=z();Ei(N(t),19,()=>L(f),(e,t)=>e.date||t,(e,t,i)=>{var a=Mf();let o;var s=M(a),c=P(s,!0),l=F(s,2);kf(l,{get code(){return L(t).code},isDay:!0,class:`size-[22px] text-brand`});var u=F(l,2),d=P(u,!0),f=P(F(u,2),!0);E(a),I((e,t,n)=>{o=qi(a,1,`forecast-chip svelte-18szujc`,null,o,{"is-now":L(i)===0}),V(c,e),V(d,t),V(f,n)},[()=>L(i)===0?q(`today`):L(n).format(new Date(L(t).date||Date.now())),()=>Vs(L(t).high,L(r)),()=>Vs(L(t).low,L(r))]),B(e,a)}),B(e,t)},Ce=e=>{var t=z();Ei(N(t),19,()=>L(d),(e,t)=>e.time||t,(e,t,n)=>{let i=k(()=>new Date(L(t).time||Date.now()));var a=Nf();let o;var s=M(a),c=P(s,!0),l=F(s,2);{let e=k(()=>y(L(t).time));kf(l,{get code(){return L(t).code},get isDay(){return L(e)},class:`size-[22px] text-brand`})}var u=P(F(l,2),!0);E(a),I((e,t)=>{o=qi(a,1,`forecast-chip svelte-18szujc`,null,o,{"is-now":L(n)===0}),V(c,e),V(u,t)},[()=>L(n)===0?q(`now`):q(`hourLabel`,{hour:bs(L(i).getHours())}),()=>Vs(L(t).temperature,L(r))]),B(e,a)}),B(e,t)};H(xe,e=>{L(p)?e(Se):e(Ce,-1)}),E(be);var we=F(be,2),Te=M(we),Ee=M(Te);ef(Ee,{class:`size-4 text-muted-foreground`,strokeWidth:1.7});var De=F(Ee);E(Te);var T=F(Te,2),Oe=M(T);rf(Oe,{class:`size-4 text-muted-foreground`,strokeWidth:1.7});var ke=F(Oe);E(T);var Ae=F(T,2),je=M(Ae);sf(je,{class:`size-4 text-muted-foreground`,strokeWidth:1.7});var Me=F(je);E(Ae),E(we),I((e,t,n,r,a,o,s,c,u,d,f,p,m,h,y)=>{V(ee,L(l)?.label),V(C,e),V(ne,t),V(re,L(i)),V(se,`${n??``} / ${r??``}`),V(ce,a),V(de,o),V(w,s),V(me,`${c??``}%`),V(he,u),V(ve,`${d??``} km/h`),V(ye,f),qi(be,1,p,`svelte-18szujc`),V(De,`${m??``} ${L(g)??``}`),V(ke,`${h??``} ${L(_)??``}`),V(Me,`${y??``} ${L(v)??``}`)},[()=>b(t.weather?.location?.name),()=>L(u)===null?`--`:Math.round(L(u)),()=>Vs(L(c).high,L(r)),()=>Vs(L(c).low,L(r)),()=>q(`highLow`),()=>Vs(L(s).feelsLike,L(r)),()=>q(`feelsLike`),()=>Math.round(L(s).humidity??0),()=>q(`humidity`),()=>Math.round(L(s).windSpeed??0),()=>q(`windSpeed`),()=>Vi(Fd(`forecast-grid`,L(p)?`is-daily`:`is-hourly`)),()=>q(`sunrise`),()=>q(`sunset`),()=>q(`tomorrow`)]),B(e,a)};H(S,e=>{L(a)?L(o)?e(te,-1):e(C,1):e(ee)}),E(x),I(e=>pa(x,`aria-label`,e),[()=>q(`weather`)]),B(e,x),O()}var Z=dn({phase:`focus`,running:!1,remainingMs:15e5,endsAt:0,finished:!1,rounds:0,alarmActive:!1}),Lf=0,Rf=null,zf=``;function Bf(){return J.pomodoro}function Vf(e=Z.phase,t=Bf()){let n=e===`focus`?t.focusMinutes:t.breakMinutes,r=e===`focus`?180:120,i=e===`focus`?25:5,a=Number(n);return Math.max(1,Math.round((Number.isFinite(a)?Math.max(.1,Math.min(r,a)):i)*60))*1e3}function Hf(e){let t=Math.max(0,Math.ceil(e/1e3)),n=Math.floor(t/60),r=t%60;return`${String(n).padStart(2,`0`)}:${String(r).padStart(2,`0`)}`}function Uf(){let e=Vf();return e<=0?0:Math.max(0,Math.min(100,(e-Z.remainingMs)/e*100))}function Wf(){let e=`${Bf().focusMinutes}/${Bf().breakMinutes}`;e!==zf&&(zf=e,!Z.running&&!Z.finished&&(Z.remainingMs=Vf()))}function Gf(){Z.phase=`focus`,Z.running=!1,Z.remainingMs=Vf(`focus`),Z.endsAt=0,Z.finished=!1,Z.rounds=0,ip()}function Kf(){zf=`${Bf().focusMinutes}/${Bf().breakMinutes}`,!Z.running&&!Z.finished&&(Z.remainingMs=Vf()),Rf||(Rf=setInterval(Yf,250),document.addEventListener(`visibilitychange`,Jf),window.__DSH_POMODORO__=Z)}function qf(){Rf&&clearInterval(Rf),Rf=null,document.removeEventListener(`visibilitychange`,Jf),ss(),Gf()}function Jf(){document.hidden||Yf()}function Yf(){if(!Bf().enabled){Gf();return}if(Wf(),Z.alarmActive&&!Bf().loopAlarm&&ip(),!Z.running)return;let e=Z.endsAt-Date.now();e<=0?(Z.remainingMs=0,rp()):Z.remainingMs=e}function Xf(){Lf+=1,Lf===1&&Kf();let e=!1;return()=>{e||(e=!0,Lf=Math.max(0,Lf-1),Lf===0&&qf())}}function Zf(){Bf().enabled&&(es(),Z.finished&&(Z.phase=Z.phase===`focus`?`break`:`focus`,Z.finished=!1,Z.remainingMs=Vf()),Z.remainingMs<=0&&(Z.remainingMs=Vf()),Z.running=!0,Z.endsAt=Date.now()+Z.remainingMs,ip(),Bf().soundPath.trim()||os(Math.max(.06,(Z.endsAt-Date.now())/1e3),Z.endsAt))}function Qf(){Z.running&&(Z.remainingMs=Math.max(0,Z.endsAt-Date.now()),Z.running=!1,Z.endsAt=0,ss())}function $f(){Z.running?Qf():Zf()}function ep(){Z.running=!1,Z.finished=!1,Z.phase=`focus`,Z.rounds=0,Z.endsAt=0,Z.remainingMs=Vf(`focus`),ip()}function tp(){Z.running||(Z.phase=Z.phase===`focus`?`break`:`focus`,Z.finished=!1,Z.remainingMs=Vf(),ip())}function np(){ip()}function rp(){let e=Z.phase;Z.running=!1,Z.remainingMs=0,Z.finished=!0,Z.alarmActive=!1,e===`focus`&&(Z.rounds+=1);let t=cs(Z.endsAt);Bf().loopAlarm?(Z.alarmActive=!0,ps(Bf().soundPath,t)):t||ls(Bf().soundPath),ys(!0);try{navigator.vibrate?.([140,90,180])}catch{}}function ip(){ms(),Z.alarmActive=!1}var ap=Vu({base:`focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 rounded-md border border-transparent bg-clip-padding text-sm font-medium focus-visible:ring-3 aria-invalid:ring-3 [&_svg:not([class*='size-'])]:size-4 group/button inline-flex shrink-0 items-center justify-center whitespace-nowrap outline-none select-none disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0`,variants:{variant:{default:`bg-primary text-primary-foreground hover:bg-primary/80`,outline:`border-border bg-background hover:bg-muted hover:text-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 aria-expanded:bg-muted aria-expanded:text-foreground shadow-xs`,secondary:`bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground`,ghost:`hover:bg-muted hover:text-foreground dark:hover:bg-muted/50 aria-expanded:bg-muted aria-expanded:text-foreground`,destructive:`bg-destructive/10 hover:bg-destructive/20 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/20 text-destructive focus-visible:border-destructive/40 dark:hover:bg-destructive/30`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-9 gap-1.5 px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2`,xs:`h-6 gap-1 rounded-[min(var(--radius-md),8px)] px-2 text-xs in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3`,sm:`h-8 gap-1 rounded-[min(var(--radius-md),10px)] px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5`,lg:`h-10 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2`,icon:`size-9`,"icon-xs":`size-6 rounded-[min(var(--radius-md),8px)] in-data-[slot=button-group]:rounded-md [&_svg:not([class*='size-'])]:size-3`,"icon-sm":`size-8 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-md`,"icon-lg":`size-10`}},defaultVariants:{variant:`default`,size:`default`}}),op=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`variant`,`size`,`ref`,`href`,`type`,`disabled`,`children`]),sp=R(`<a><!></a>`),cp=R(`<button><!></button>`);function lp(e,t){D(t,!0);let n=K(t,`variant`,3,`default`),r=K(t,`size`,3,`default`),i=K(t,`ref`,15,null),a=K(t,`href`,3,void 0),o=K(t,`type`,3,`button`),s=W(t,op);var c=z(),l=N(c),u=e=>{var o=sp();ha(o,e=>({"data-slot":`button`,class:e,href:t.disabled?void 0:a(),"aria-disabled":t.disabled,role:t.disabled?`link`:void 0,tabindex:t.disabled?-1:void 0,...s}),[()=>Fd(ap({variant:n(),size:r()}),t.class)]),U(M(o),()=>t.children??f),E(o),Ea(o,e=>i(e),()=>i()),B(e,o)},d=e=>{var a=cp();ha(a,e=>({"data-slot":`button`,class:e,type:o(),disabled:t.disabled,...s}),[()=>Fd(ap({variant:n(),size:r()}),t.class)]),U(M(a),()=>t.children??f),E(a),Ea(a,e=>i(e),()=>i()),B(e,a)};H(l,e=>{a()?e(u):e(d,-1)}),B(e,c),O()}function up(e){return typeof e==`object`&&!!e}var dp=[`string`,`number`,`bigint`,`boolean`];function fp(e){return e==null||dp.includes(typeof e)?!0:Array.isArray(e)?e.every(e=>fp(e)):typeof e==`object`&&Object.getPrototypeOf(e)===Object.prototype}var pp=Symbol(`box`),mp=Symbol(`is-writable`);function Q(e,t){let n=k(e);return t?{[pp]:!0,[mp]:!0,get current(){return L(n)},set current(e){t(e)}}:{[pp]:!0,get current(){return e()}}}function hp(e){return up(e)&&pp in e}function gp(e){let t=A(dn(e));return{[pp]:!0,[mp]:!0,get current(){return L(t)},set current(e){j(t,e,!0)}}}function _p(...e){return function(t){for(let n of e)if(n){if(t.defaultPrevented)return;typeof n==`function`?n.call(this,t):n.current?.call(this,t)}}}var vp=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,yp=/\n/g,bp=/^\s*/,xp=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Sp=/^:\s*/,Cp=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,wp=/^[;\s]*/,Tp=/^\s+|\s+$/g,Ep=`
3
+ `,Dp=`/`,Op=`*`,kp=``,Ap=`comment`,jp=`declaration`;function Mp(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var n=1,r=1;function i(e){var t=e.match(yp);t&&(n+=t.length);var i=e.lastIndexOf(Ep);r=~i?e.length-i:r+e.length}function a(){var e={line:n,column:r};return function(t){return t.position=new o(e),l(),t}}function o(e){this.start=e,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function s(i){var a=Error(t.source+`:`+n+`:`+r+`: `+i);if(a.reason=i,a.filename=t.source,a.line=n,a.column=r,a.source=e,!t.silent)throw a}function c(t){var n=t.exec(e);if(n){var r=n[0];return i(r),e=e.slice(r.length),n}}function l(){c(bp)}function u(e){var t;for(e||=[];t=d();)t!==!1&&e.push(t);return e}function d(){var t=a();if(Dp==e.charAt(0)&&Op==e.charAt(1)){for(var n=2;kp!=e.charAt(n)&&(Op!=e.charAt(n)||Dp!=e.charAt(n+1));)++n;if(n+=2,kp===e.charAt(n-1))return s(`End of comment missing`);var o=e.slice(2,n-2);return r+=2,i(o),e=e.slice(n),r+=2,t({type:Ap,comment:o})}}function f(){var e=a(),t=c(xp);if(t){if(d(),!c(Sp))return s(`property missing ':'`);var n=c(Cp),r=e({type:jp,property:Np(t[0].replace(vp,kp)),value:n?Np(n[0].replace(vp,kp)):kp});return c(wp),r}}function p(){var e=[];u(e);for(var t;t=f();)t!==!1&&(e.push(t),u(e));return e}return l(),p()}function Np(e){return e?e.replace(Tp,kp):kp}function Pp(e,t){let n=null;if(!e||typeof e!=`string`)return n;let r=Mp(e),i=typeof t==`function`;return r.forEach(e=>{if(e.type!==`declaration`)return;let{property:r,value:a}=e;i?t(r,a,e):a&&(n||={},n[r]=a)}),n}var Fp=/\d/,Ip=[`-`,`_`,`/`,`.`];function Lp(e=``){if(!Fp.test(e))return e!==e.toLowerCase()}function Rp(e){let t=[],n=``,r,i;for(let a of e){let e=Ip.includes(a);if(e===!0){t.push(n),n=``,r=void 0;continue}let o=Lp(a);if(i===!1){if(r===!1&&o===!0){t.push(n),n=a,r=o;continue}if(r===!0&&o===!1&&n.length>1){let e=n.at(-1);t.push(n.slice(0,Math.max(0,n.length-1))),n=e+a,r=o;continue}}n+=a,r=o,i=e}return t.push(n),t}function zp(e){return e?Rp(e).map(e=>Vp(e)).join(``):``}function Bp(e){return Hp(zp(e||``))}function Vp(e){return e?e[0].toUpperCase()+e.slice(1):``}function Hp(e){return e?e[0].toLowerCase()+e.slice(1):``}var Up=1e3,Wp=new Map;function Gp(e){let t=Wp.get(e);return t===void 0&&(t=e.startsWith(`-moz-`)||e.startsWith(`-webkit-`)||e.startsWith(`-ms-`)||e.startsWith(`-o-`)?zp(e):e.startsWith(`--`)?e:Bp(e),Wp.size>=Up&&Wp.clear(),Wp.set(e,t)),t}var Kp=/["'\\{}]|\/\*/,qp=/^[-\w]+$/;function Jp(e){if(Kp.test(e))return null;let t=[],n=0,r=0,i=-1;for(let a=0;a<=e.length;a++){let o=a<e.length?e.charCodeAt(a):59;if(o===40)n++;else if(o===41){if(--n<0)return null}else if(o===58)i<0&&(i=a);else if(o===59){if(n!==0)return null;let o=e.slice(r,a);if(i<0){if(o.trim()||t.length===0)return null}else{let n=e.slice(r,i).trim(),o=e.slice(i+1,a).trim();if(!qp.test(n)||!o)return null;t.push(n,o)}r=a+1,i=-1}}return t}function Yp(e,t){let n=Jp(t);if(n)for(let t=0;t<n.length;t+=2)e[Gp(n[t])]=n[t+1];else Pp(t,(t,n)=>{e[Gp(t)]=n})}function Xp(e){if(!e)return{};let t={};return Yp(t,e),t}function Zp(...e){return(...t)=>{for(let n of e)typeof n==`function`&&n(...t)}}function Qp(e,t){let n=RegExp(e,`g`);return e=>{if(typeof e!=`string`)throw TypeError(`expected an argument of type string, but got ${typeof e}`);return e.match(n)?e.replace(n,t):e}}var $p=Qp(/[A-Z]/,e=>`-${e.toLowerCase()}`),em=new Map;function tm(e){let t=em.get(e);return t===void 0&&(t=$p(e),em.size>=1e3&&em.clear(),em.set(e,t)),t}function nm(e){if(!e||typeof e!=`object`||Array.isArray(e))throw TypeError(`expected an argument of type object, but got ${typeof e}`);let t=``;for(let n of Object.keys(e)){let r=e[n];r!=null&&r!==``&&(t+=`${t?`
4
+ `:``}${tm(n)}: ${r};`)}return t}function rm(e={}){return nm(e).replace(`
5
+ `,` `)}var im=new Set(`onabort.onanimationcancel.onanimationend.onanimationiteration.onanimationstart.onauxclick.onbeforeinput.onbeforetoggle.onblur.oncancel.oncanplay.oncanplaythrough.onchange.onclick.onclose.oncompositionend.oncompositionstart.oncompositionupdate.oncontextlost.oncontextmenu.oncontextrestored.oncopy.oncuechange.oncut.ondblclick.ondrag.ondragend.ondragenter.ondragleave.ondragover.ondragstart.ondrop.ondurationchange.onemptied.onended.onerror.onfocus.onfocusin.onfocusout.onformdata.ongotpointercapture.oninput.oninvalid.onkeydown.onkeypress.onkeyup.onload.onloadeddata.onloadedmetadata.onloadstart.onlostpointercapture.onmousedown.onmouseenter.onmouseleave.onmousemove.onmouseout.onmouseover.onmouseup.onpaste.onpause.onplay.onplaying.onpointercancel.onpointerdown.onpointerenter.onpointerleave.onpointermove.onpointerout.onpointerover.onpointerup.onprogress.onratechange.onreset.onresize.onscroll.onscrollend.onsecuritypolicyviolation.onseeked.onseeking.onselect.onselectionchange.onselectstart.onslotchange.onstalled.onsubmit.onsuspend.ontimeupdate.ontoggle.ontouchcancel.ontouchend.ontouchmove.ontouchstart.ontransitioncancel.ontransitionend.ontransitionrun.ontransitionstart.onvolumechange.onwaiting.onwebkitanimationend.onwebkitanimationiteration.onwebkitanimationstart.onwebkittransitionend.onwheel`.split(`.`));function am(e){return im.has(e)}function om(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];if(r){for(let e of Object.keys(r)){let n=t[e],i=r[e],a=typeof n==`function`,o=typeof i==`function`;if(a&&o&&am(e))t[e]=_p(n,i);else if(a&&o)t[e]=Zp(n,i);else if(e===`class`){let r=fp(n),a=fp(i);r&&a?t[e]=Bi(n,i):r?t[e]=Bi(n):a&&(t[e]=Bi(i))}else if(e===`style`){let r=typeof n==`object`,a=typeof i==`object`,o=typeof n==`string`,s=typeof i==`string`;if(r&&a)t[e]={...n,...i};else if(r&&s){let r=Xp(i);t[e]={...n,...r}}else if(o&&a)t[e]={...Xp(n),...i};else if(o&&s){let r=Xp(n),a=Xp(i);t[e]={...r,...a}}else r?t[e]=n:a?t[e]=i:o?t[e]=n:s&&(t[e]=i)}else t[e]=i===void 0?n:i}for(let e of Object.getOwnPropertySymbols(r)){let n=t[e],i=r[e];t[e]=i===void 0?n:i}}}return typeof t.style==`object`&&(t.style=rm(t.style).replaceAll(`
6
+ `,` `)),t.hidden===!1&&(t.hidden=void 0,delete t.hidden),t.disabled===!1&&(t.disabled=void 0,delete t.disabled),t}var sm=typeof window<`u`?window:void 0;typeof window<`u`&&window.document,typeof window<`u`&&window.navigator,typeof window<`u`&&window.location;function cm(e){let t=e.activeElement;for(;t?.shadowRoot;){let e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}var lm=class extends Map{#e=new Map;#t=A(0);#n=A(0);#r=_r||-1;constructor(e){if(super(),e){for(var[t,n]of e)super.set(t,n);this.#n.v=super.size}}#i(e){return _r===this.#r?A(e):nn(e)}has(e){var t=this.#e,n=t.get(e);if(n===void 0){if(super.has(e))n=this.#i(0),t.set(e,n);else return L(this.#t),!1}return L(n),!0}forEach(e,t){this.#a(),super.forEach(e,t)}get(e){var t=this.#e,n=t.get(e);if(n===void 0){if(super.has(e))n=this.#i(0),t.set(e,n);else{L(this.#t);return}}return L(n),super.get(e)}getOrInsert(e,t){return super.has(e)||this.set(e,t),this.get(e)}getOrInsertComputed(e,t){return super.has(e)||this.set(e,t(e)),this.get(e)}set(e,t){var n=this.#e,r=n.get(e),i=super.get(e),a=super.set(e,t),o=this.#t;if(r===void 0)r=this.#i(0),n.set(e,r),j(this.#n,super.size),ln(o);else if(i!==t){ln(r);var s=o.reactions===null?null:new Set(o.reactions);s!==null&&r.reactions?.every(e=>s.has(e))||ln(o)}return a}delete(e){var t=this.#e,n=t.get(e),r=super.delete(e);return n!==void 0&&(t.delete(e),j(n,-1)),r&&(j(this.#n,super.size),ln(this.#t)),r}clear(){if(super.size!==0){super.clear();var e=this.#e;j(this.#n,0);for(var t of e.values())j(t,-1);ln(this.#t),e.clear()}}#a(){L(this.#t);var e=this.#e;if(this.#n.v!==e.size){for(var t of super.keys())if(!e.has(t)){var n=this.#i(0);e.set(t,n)}}for([,n]of this.#e)L(n)}keys(){return L(this.#t),super.keys()}values(){return this.#a(),super.values()}entries(){return this.#a(),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return L(this.#n),super.size}};new class{#e;#t;constructor(e={}){let{window:t=sm,document:n=t?.document}=e;t!==void 0&&(this.#e=n,this.#t=ui(e=>{let n=Yr(t,`focusin`,e),r=Yr(t,`focusout`,e);return()=>{n(),r()}}))}get current(){return this.#t?.(),this.#e?cm(this.#e):null}};var um=class{#e;#t;constructor(e){this.#e=e,this.#t=Symbol(e)}get key(){return this.#t}exists(){return it(this.#t)}get(){let e=nt(this.#t);if(e===void 0)throw Error(`Context "${this.#e}" not found`);return e}getOr(e){let t=nt(this.#t);return t===void 0?e:t}set(e){return rt(this.#t,e)}};function dm(e,t){switch(e){case`post`:Nn(t);break;case`pre`:Fn(t)}}function fm(e,t,n,r={}){let{lazy:i=!1}=r,a=!i,o=Array.isArray(e)?[]:void 0;dm(t,()=>{let t=Array.isArray(e)?e.map(e=>e()):e();if(!a){a=!0,o=t;return}let r=Ar(()=>n(t,o));return o=t,r})}function pm(e,t,n){fm(e,`post`,t,n)}function mm(e,t,n){fm(e,`pre`,t,n)}pm.pre=mm;var hm=class{#e=A(!1);constructor(){Nn(()=>(Ar(()=>j(this.#e,!0)),()=>{j(this.#e,!1)}))}get current(){return L(this.#e)}};function gm(e){Nn(()=>()=>{e()})}function _m(e){Nn(()=>Ar(()=>e()))}function vm(e){Dr().then(e)}var ym=1,bm=9,xm=11;function Sm(e){return up(e)&&e.nodeType===ym&&typeof e.nodeName==`string`}function Cm(e){return up(e)&&e.nodeType===bm}function wm(e){return up(e)&&e.constructor?.name===`VisualViewport`}function Tm(e){return up(e)&&e.nodeType!==void 0}function Em(e){return Tm(e)&&e.nodeType===xm&&`host`in e}function Dm(e,t){if(!e||!t||!Sm(e)||!Sm(t))return!1;let n=t.getRootNode?.();if(e===t||e.contains(t))return!0;if(n&&Em(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Om(e){return Cm(e)?e:wm(e)?e.document:e?.ownerDocument??document}function km(e){return Em(e)?km(e.host):Cm(e)?e.defaultView??window:Sm(e)?e.ownerDocument?.defaultView??window:window}function Am(e){let t=e.activeElement;for(;t?.shadowRoot;){let e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}var jm=class{element;#e=k(()=>this.element.current?this.element.current.getRootNode()??document:document);get root(){return L(this.#e)}set root(e){j(this.#e,e)}constructor(e){this.element=typeof e==`function`?Q(e):e}getDocument=()=>Om(this.root);getWindow=()=>this.getDocument().defaultView??window;getActiveElement=()=>Am(this.root);isActiveElement=e=>e===this.getActiveElement();getElementById(e){return this.root.getElementById(e)}querySelector=e=>this.root?this.root.querySelector(e):null;querySelectorAll=e=>this.root?this.root.querySelectorAll(e):[];setTimeout=(e,t)=>this.getWindow().setTimeout(e,t);clearTimeout=e=>this.getWindow().clearTimeout(e)};function Mm(e,t){return{[Nr()]:n=>hp(e)?(e.current=n,Ar(()=>t?.(n)),()=>{`isConnected`in n&&n.isConnected||(e.current=null,t?.(null))}):(e(n),Ar(()=>t?.(n)),()=>{`isConnected`in n&&n.isConnected||(e(null),t?.(null))})}}function Nm(e){return e?`true`:`false`}function Pm(e){return e?``:void 0}function Fm(e){return e?`open`:`closed`}function Im(e){return e===`starting`?{"data-starting-style":``}:e===`ending`?{"data-ending-style":``}:{}}var Lm=class{#e;#t;attrs;constructor(e){this.#e=e.getVariant?e.getVariant():null,this.#t=this.#e?`data-${this.#e}-`:`data-${e.component}-`,this.getAttr=this.getAttr.bind(this),this.selector=this.selector.bind(this),this.attrs=Object.fromEntries(e.parts.map(e=>[e,this.getAttr(e)]))}getAttr(e,t){return t?`data-${t}-${e}`:`${this.#t}${e}`}selector(e,t){return`[${this.getAttr(e,t)}]`}};function Rm(e){let t=new Lm(e);return{...t.attrs,selector:t.selector,getAttr:t.getAttr}}var zm=`ArrowDown`,Bm=`ArrowLeft`,Vm=`ArrowRight`,Hm=`ArrowUp`,Um=`Home`,Wm=typeof document<`u`,Gm=Km();function Km(){return Wm&&window?.navigator?.userAgent&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||window?.navigator?.maxTouchPoints>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function qm(e){return e instanceof HTMLElement}function Jm(e){return e instanceof Element||e instanceof SVGElement}var Ym=class{#e;#t=null;#n=null;#r=0;constructor(e){this.#e=e,gm(()=>this.#i())}#i(){this.#t!==null&&(window.cancelAnimationFrame(this.#t),this.#t=null),this.#n?.disconnect(),this.#n=null,this.#r++}run(e){this.#i();let t=this.#r,n=()=>{t===this.#r&&this.#a(e)},r=()=>{if(t!==this.#r)return;let i=this.#e.ref.current;if(!i)return;if(typeof i.getAnimations!=`function`){this.#a(e);return}let a=i.getAnimations();a.length===0?n():Promise.all(a.map(e=>e.finished)).then(()=>{n()}).catch(()=>{t===this.#r&&(i.getAnimations().some(e=>e.pending||e.playState!==`finished`)?r():n())})},i=()=>{this.#t=window.requestAnimationFrame(()=>{this.#t=null,r()})};this.#e.afterTick.current?this.#t=window.requestAnimationFrame(()=>{this.#t=null;let e=`data-starting-style`,n=this.#e.ref.current;n&&(n.hasAttribute(e)?(this.#n=new MutationObserver(()=>{t===this.#r&&(n.hasAttribute(e)||(this.#n?.disconnect(),this.#n=null,i()))}),this.#n.observe(n,{attributes:!0,attributeFilter:[e]})):i())}):i()}#a(e){let t=this.#r,n=()=>{t===this.#r&&e()};this.#e.afterTick.current?vm(n):n()}},Xm=class{#e;#t;#n;#r=A(!1);#i=A(void 0);#a=!1;#o=null;constructor(e){this.#e=e,j(this.#r,e.open.current,!0),this.#t=e.enabled??!0,this.#n=new Ym({ref:this.#e.ref,afterTick:this.#e.open}),gm(()=>this.#s()),pm(()=>this.#e.open.current,e=>{!this.#a&&(this.#a=!0,e===L(this.#r))||(this.#s(),!e&&this.#e.shouldSkipExitAnimation?.()?(j(this.#r,!1),j(this.#i,void 0),this.#e.onComplete?.()):(e&&j(this.#r,!0),j(this.#i,e?`starting`:`ending`,!0),e&&(this.#o=window.requestAnimationFrame(()=>{this.#o=null,this.#e.open.current&&j(this.#i,void 0)})),this.#t?this.#n.run(()=>{e===this.#e.open.current&&(this.#e.open.current||j(this.#r,!1),j(this.#i,void 0),this.#e.onComplete?.())}):(e||j(this.#r,!1),j(this.#i,void 0),this.#e.onComplete?.())))})}get shouldRender(){return L(this.#r)}get transitionStatus(){return L(this.#i)}#s(){this.#o!==null&&(window.cancelAnimationFrame(this.#o),this.#o=null)}};function Zm(){}function Qm(e,t){return t===void 0?`bits-${e}`:`bits-${e}-${t}`}var $m=Rm({component:`dialog`,parts:[`content`,`trigger`,`overlay`,`title`,`description`,`close`,`cancel`,`action`]}),eh=new um(`Dialog.Root | AlertDialog.Root`),th=class e{static create(t){let n=eh.getOr(null);return eh.set(new e(t,n))}opts;#e=A(null);get triggerNode(){return L(this.#e)}set triggerNode(e){j(this.#e,e,!0)}#t=A(null);get contentNode(){return L(this.#t)}set contentNode(e){j(this.#t,e,!0)}#n=A(null);get overlayNode(){return L(this.#n)}set overlayNode(e){j(this.#n,e,!0)}#r=A(null);get descriptionNode(){return L(this.#r)}set descriptionNode(e){j(this.#r,e,!0)}#i=A(void 0);get contentId(){return L(this.#i)}set contentId(e){j(this.#i,e,!0)}#a=A(void 0);get titleId(){return L(this.#a)}set titleId(e){j(this.#a,e,!0)}#o=A(void 0);get triggerId(){return L(this.#o)}set triggerId(e){j(this.#o,e,!0)}#s=A(void 0);get descriptionId(){return L(this.#s)}set descriptionId(e){j(this.#s,e,!0)}#c=A(null);get cancelNode(){return L(this.#c)}set cancelNode(e){j(this.#c,e,!0)}#l=A(0);get nestedOpenCount(){return L(this.#l)}set nestedOpenCount(e){j(this.#l,e,!0)}depth;parent;contentPresence;overlayPresence;constructor(e,t){this.opts=e,this.parent=t,this.depth=t?t.depth+1:0,this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this),this.contentPresence=new Xm({ref:Q(()=>this.contentNode),open:this.opts.open,enabled:!0,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new Xm({ref:Q(()=>this.overlayNode),open:this.opts.open,enabled:!0}),pm(()=>this.opts.open.current,e=>{this.parent&&(e?this.parent.incrementNested():this.parent.decrementNested())},{lazy:!0}),gm(()=>{this.opts.open.current&&this.parent?.decrementNested()})}handleOpen(){this.opts.open.current||(this.opts.open.current=!0)}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}getBitsAttr=e=>$m.getAttr(e,this.opts.variant.current);incrementNested(){this.nestedOpenCount++,this.parent?.incrementNested()}decrementNested(){this.nestedOpenCount!==0&&(this.nestedOpenCount--,this.parent?.decrementNested())}#u=k(()=>({"data-state":Fm(this.opts.open.current)}));get sharedProps(){return L(this.#u)}set sharedProps(e){j(this.#u,e)}},nh=class e{static create(t){return new e(t,eh.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=Mm(this.opts.ref),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(e){this.opts.disabled.current||e.button>0||this.root.handleClose()}onkeydown(e){this.opts.disabled.current||(e.key===` `||e.key===`Enter`)&&(e.preventDefault(),this.root.handleClose())}#e=k(()=>({id:this.opts.id.current,[this.root.getBitsAttr(this.opts.variant.current)]:``,onclick:this.onclick,onkeydown:this.onkeydown,disabled:this.opts.disabled.current?!0:void 0,tabindex:0,...this.root.sharedProps,...this.attachment}));get props(){return L(this.#e)}set props(e){j(this.#e,e)}},rh=class e{static create(t){return new e(t,eh.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.root.titleId=this.opts.id.current,this.attachment=Mm(this.opts.ref),pm.pre(()=>this.opts.id.current,e=>{this.root.titleId=e})}#e=k(()=>({id:this.opts.id.current,role:`heading`,"aria-level":this.opts.level.current,[this.root.getBitsAttr(`title`)]:``,...this.root.sharedProps,...this.attachment}));get props(){return L(this.#e)}set props(e){j(this.#e,e)}},ih=class e{static create(t){return new e(t,eh.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.root.descriptionId=this.opts.id.current,this.attachment=Mm(this.opts.ref,e=>{this.root.descriptionNode=e}),pm.pre(()=>this.opts.id.current,e=>{this.root.descriptionId=e})}#e=k(()=>({id:this.opts.id.current,[this.root.getBitsAttr(`description`)]:``,...this.root.sharedProps,...this.attachment}));get props(){return L(this.#e)}set props(e){j(this.#e,e)}},ah=class e{static create(t){return new e(t,eh.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=Mm(this.opts.ref,e=>{this.root.contentNode=e,this.root.contentId=e?.id})}#e=k(()=>({open:this.root.opts.open.current}));get snippetProps(){return L(this.#e)}set snippetProps(e){j(this.#e,e)}#t=k(()=>({id:this.opts.id.current,role:this.root.opts.variant.current===`alert-dialog`?`alertdialog`:`dialog`,"aria-modal":`true`,"aria-describedby":this.root.descriptionId,"aria-labelledby":this.root.titleId,[this.root.getBitsAttr(`content`)]:``,style:{pointerEvents:`auto`,outline:this.root.opts.variant.current===`alert-dialog`?`none`:void 0,"--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount,contain:`layout style`},tabindex:this.root.opts.variant.current===`alert-dialog`?-1:void 0,"data-nested-open":Pm(this.root.nestedOpenCount>0),"data-nested":Pm(this.root.parent!==null),...Im(this.root.contentPresence.transitionStatus),...this.root.sharedProps,...this.attachment}));get props(){return L(this.#t)}set props(e){j(this.#t,e)}get shouldRender(){return this.root.contentPresence.shouldRender}},oh=class e{static create(t){return new e(t,eh.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=Mm(this.opts.ref,e=>this.root.overlayNode=e)}#e=k(()=>({open:this.root.opts.open.current}));get snippetProps(){return L(this.#e)}set snippetProps(e){j(this.#e,e)}#t=k(()=>({id:this.opts.id.current,[this.root.getBitsAttr(`overlay`)]:``,style:{pointerEvents:`auto`,"--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount},"data-nested-open":Pm(this.root.nestedOpenCount>0),"data-nested":Pm(this.root.parent!==null),...Im(this.root.overlayPresence.transitionStatus),...this.root.sharedProps,...this.attachment}));get props(){return L(this.#t)}set props(e){j(this.#t,e)}get shouldRender(){return this.root.overlayPresence.shouldRender}},sh=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`child`,`children`,`level`]),ch=R(`<div><!></div>`);function lh(e,t){let n=li();D(t,!0);let r=K(t,`id`,19,()=>Qm(n)),i=K(t,`ref`,15,null),a=K(t,`level`,3,2),o=W(t,sh),s=rh.create({id:Q(()=>r()),level:Q(()=>a()),ref:Q(()=>i(),e=>i(e))}),c=k(()=>om(o,s.props));var l=z(),u=N(l),d=e=>{var n=z();U(N(n),()=>t.child,()=>({props:L(c)})),B(e,n)},p=e=>{var n=ch();ha(n,()=>({...L(c)})),U(M(n),()=>t.children??f),E(n),B(e,n)};H(u,e=>{t.child?e(d):e(p,-1)}),B(e,l),O()}function uh(e,t){var n=z();xi(N(n),()=>t.children,e=>{var n=z();U(N(n),()=>t.children??f),B(e,n)}),B(e,n)}var dh=new um(`BitsConfig`);function fh(){let e=new ph(null,{});return dh.getOr(e).opts}var ph=class{opts;constructor(e,t){let n=mh(e,t);this.opts={defaultPortalTo:n(e=>e.defaultPortalTo),defaultLocale:n(e=>e.defaultLocale)}}};function mh(e,t){return n=>Q(()=>{let r=n(t)?.current;if(r!==void 0)return r;if(e!==null)return n(e.opts)?.current})}function hh(e,t){return n=>{let r=fh();return Q(()=>{let i=n();if(i!==void 0)return i;let a=e(r).current;return a===void 0?t:a})}}var gh=hh(e=>e.defaultPortalTo,`body`);function _h(e,t){D(t,!0);let n=gh(()=>t.to),r=at(),i=k(a);function a(){if(!Wm||t.disabled)return null;let e=null;return e=typeof n.current==`string`?document.querySelector(n.current):n.current,e}let o;function s(){o&&=(vi(o),null)}pm([()=>L(i),()=>t.disabled],([e,n])=>{if(!e||n)s();else return o=mi(uh,{target:e,props:{children:t.children},context:r}),()=>{s()}});var c=z(),l=N(c),u=e=>{var n=z();U(N(n),()=>t.children??f),B(e,n)};H(l,e=>{t.disabled&&e(u)}),B(e,c),O()}var vh=new WeakMap;function yh(e,t=e.composedPath()){vh.set(e,t)}function bh(e){return vh.get(e)??e.composedPath()}function xh(e,t){return t?Jm(e.target)&&t.contains(e.target)||bh(e).includes(t):!1}function Sh(e,t){for(let n of bh(e))if(Jm(n)&&n.matches(t))return n;return Jm(e.target)?e.target.closest(t):null}function Ch(e,t){yh(t,bh(e))}function wh(e,t=500){let n=null,r=null,i=(...e)=>{i.destroy(),r=e,n=setTimeout(i.flush,t)};return i.flush=()=>{if(r===null)return;let t=r;i.destroy(),e(...t)},i.destroy=()=>{n!==null&&(clearTimeout(n),n=null),r=null},i}function Th(e,t){return e===t||e.contains(t)}function Eh(e){return e?.ownerDocument??document}function Dh(e,t){let{clientX:n,clientY:r}=e,i=t.getBoundingClientRect();return n<i.left||n>i.right||r<i.top||r>i.bottom}var Oh=`data-context-menu-trigger`,kh=`data-context-menu-content`;globalThis.bitsDismissableLayers??=new Map;var Ah=class e{static create(t){return new e(t)}opts;#e=Zm;#t=()=>!1;#n=null;#r=gp(`close`);#i={pointerdown:!1};#a=!1;#o=null;#s=!1;#c=void 0;#l=Zm;#u=Zm;#d=!1;constructor(e){this.opts=e,Fn(()=>{this.#r.current=e.interactOutsideBehavior.current,this.#e=e.onInteractOutside.current,this.#l=e.onFocusOutside.current,this.#t=e.isValidEvent.current,this.#n=e.ref.current});let t=Zm,n=null,r=()=>{n=null,this.#x(),globalThis.bitsDismissableLayers.delete(this),this.#g.destroy(),this.#u(),t()};pm([()=>this.opts.enabled.current,()=>this.opts.ref.current],([e,i])=>{let a=e?i:null;n!==a&&(r(),a&&(n=a,this.#c=Eh(a),globalThis.bitsDismissableLayers.set(this,this.#r),t=this.#p()))}),gm(()=>{this.#d=!0,r()})}#f=e=>{e.defaultPrevented||this.#d||!this.#n||vm(()=>{this.#d||this.#n&&!this.#b(e.target)&&e.target&&!this.#s&&this.#l?.(e)})};#p(){let e=this.#c,t=e=>{Ar(()=>{this.#g.flush(),this.#_(e),this.#y(e)})},n=e=>{e.cancelBubble||e!==this.#o||(this.#v(e),e.pointerType===`touch`?(this.#g.destroy(),this.#h(e)):this.#g(e))};return e.addEventListener(`pointerdown`,t,!0),e.addEventListener(`pointerdown`,n),Zp(()=>e.removeEventListener(`pointerdown`,t,!0),()=>e.removeEventListener(`pointerdown`,n),Yr(e,`focusin`,this.#f))}#m=e=>{let t=e;t.defaultPrevented&&(t=Ph(e)),this.#e(e)};#h=e=>{if(!this.#n){this.#u();return}let t=this.#t(e,this.#n)||Nh(e,this.#n);if(!this.#a||this.#S()||!t){this.#u();return}let n=e;if(n.defaultPrevented&&(n=Ph(n)),this.#r.current!==`close`&&this.#r.current!==`defer-otherwise-close`)this.#u();else if(e.pointerType===`touch`){this.#u();let e=null,t=Zm,n=e=>{t(),this.#m(e)};t=Zp(Yr(this.#c,`click`,n,{once:!0}),Yr(this.#c,`click`,t=>{yh(t),e=setTimeout(()=>n(t),0)},{once:!0,capture:!0}),()=>{e!==null&&clearTimeout(e),e=null}),this.#u=t}else this.#e(n)};#g=wh(this.#h,10);#_=e=>{this.#i[e.type]=!0};#v=e=>{this.#i[e.type]=!1};#y=e=>{this.#o=e,yh(e),this.#n&&(this.#a=Mh(this))};#b=e=>this.#n?Th(this.#n,e):!1;#x=()=>{for(let e in this.#i)this.#i[e]=!1;this.#a=!1,this.#o=null};#S(){return Object.values(this.#i).some(Boolean)}#C=()=>{this.#s=!0};#w=()=>{this.#s=!1};props={onfocuscapture:this.#C,onblurcapture:this.#w}};function jh(e=[...globalThis.bitsDismissableLayers]){return e.findLast(([e,{current:t}])=>t===`close`||t===`ignore`)}function Mh(e){let t=[...globalThis.bitsDismissableLayers],n=jh(t);if(n)return n[0]===e;let[r]=t[0];return r===e}function Nh(e,t){let n=e.target;if(!Jm(n))return!1;let r=!!Sh(e,`[${Oh}]`),i=!!t.closest(`[${kh}]`);return`button`in e&&e.button>0&&!r?!1:`button`in e&&e.button===0&&r&&i?!0:r&&i?!1:Eh(n).documentElement.contains(n)&&!xh(e,t)&&Dh(e,t)}function Ph(e){let t=e.currentTarget,n=e.target,r;r=e instanceof PointerEvent?new PointerEvent(e.type,e):new PointerEvent(`pointerdown`,e);let i=!1,a=new Proxy(r,{get:(r,a)=>{if(a===`currentTarget`)return t;if(a===`target`)return n;if(a===`preventDefault`)return()=>{i=!0,typeof r.preventDefault==`function`&&r.preventDefault()};if(a===`defaultPrevented`)return i;if(a in r){let e=r[a];return typeof e==`function`?e.bind(r):e}let o=e[a];return typeof o==`function`?o.bind(e):o}});return Ch(e,a),a}function Fh(e,t){D(t,!0);let n=K(t,`interactOutsideBehavior`,3,`close`),r=K(t,`onInteractOutside`,3,Zm),i=K(t,`onFocusOutside`,3,Zm),a=K(t,`isValidEvent`,3,()=>!1),o=Ah.create({id:Q(()=>t.id),interactOutsideBehavior:Q(()=>n()),onInteractOutside:Q(()=>r()),enabled:Q(()=>t.enabled),onFocusOutside:Q(()=>i()),isValidEvent:Q(()=>a()),ref:Ar(()=>t.ref)});var s=z();U(N(s),()=>t.children??f,()=>({props:o.props})),B(e,s),O()}globalThis.bitsEscapeLayers??=new Map;var Ih=class e{static create(t){return new e(t)}opts;domContext;constructor(e){this.opts=e,this.domContext=new jm(this.opts.ref);let t=Zm;pm(()=>e.enabled.current,n=>(n&&(globalThis.bitsEscapeLayers.set(this,e.escapeKeydownBehavior),t=this.#e()),()=>{t(),globalThis.bitsEscapeLayers.delete(this)}))}#e=()=>Yr(this.domContext.getDocument(),`keydown`,this.#t,{passive:!1});#t=e=>{if(e.key!==`Escape`||!Lh(this))return;let t=new KeyboardEvent(e.type,e);e.preventDefault();let n=this.opts.escapeKeydownBehavior.current;(n===`close`||n===`defer-otherwise-close`)&&this.opts.onEscapeKeydown.current(t)}};function Lh(e){let t=[...globalThis.bitsEscapeLayers],n=t.findLast(([e,{current:t}])=>t===`close`||t===`ignore`);if(n)return n[0]===e;let[r]=t[0];return r===e}function Rh(e,t){D(t,!0);let n=K(t,`escapeKeydownBehavior`,3,`close`),r=K(t,`onEscapeKeydown`,3,Zm);Ih.create({escapeKeydownBehavior:Q(()=>n()),onEscapeKeydown:Q(()=>r()),enabled:Q(()=>t.enabled),ref:Ar(()=>t.ref)});var i=z();U(N(i),()=>t.children??f),B(e,i),O()}var zh=class e{static instance;#e=gp([]);#t=new WeakMap;#n=new WeakMap;static getInstance(){return this.instance||=new e,this.instance}register(e){let t=this.getActive();t&&t!==e&&t.pause();let n=Am(document);n&&n!==document.body&&this.#n.set(e,n),this.#e.current=this.#e.current.filter(t=>t!==e),this.#e.current.unshift(e),e.resume()}unregister(e){this.#e.current=this.#e.current.filter(t=>t!==e);let t=this.getActive();t&&t.resume()}getActive(){return this.#e.current[0]}setFocusMemory(e,t){this.#t.set(e,t)}getFocusMemory(e){return this.#t.get(e)}isActiveScope(e){return this.getActive()===e}setPreFocusMemory(e,t){this.#n.set(e,t)}getPreFocusMemory(e){return this.#n.get(e)}clearPreFocusMemory(e){this.#n.delete(e)}},Bh=[`input:not([inert]):not([inert] *)`,`select:not([inert]):not([inert] *)`,`textarea:not([inert]):not([inert] *)`,`a[href]:not([inert]):not([inert] *)`,`area[href]:not([inert]):not([inert] *)`,`button:not([inert]):not([inert] *)`,`[tabindex]:not(slot):not([inert]):not([inert] *)`,`audio[controls]:not([inert]):not([inert] *)`,`video[controls]:not([inert]):not([inert] *)`,`[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)`,`details>summary:first-of-type:not([inert]):not([inert] *)`,`details:not([inert]):not([inert] *)`],Vh=Bh.join(`,`),Hh=typeof Element>`u`,Uh=Hh?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Wh=!Hh&&Element.prototype.getRootNode?function(e){return e==null||e.getRootNode==null?void 0:e.getRootNode()}:function(e){return e?.ownerDocument},Gh=function(e,t){t===void 0&&(t=!0);var n=e==null||e.getAttribute==null?void 0:e.getAttribute(`inert`);return n===``||n===`true`||t&&e&&(typeof e.closest==`function`?e.closest(`[inert]`):Gh(e.parentNode))},Kh=function(e){var t,n=e==null||e.getAttribute==null||(t=e.getAttribute(`contenteditable`))==null?void 0:t.toLowerCase();return n===``||n===`true`||n===`plaintext-only`},qh=function(e,t,n){if(Gh(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(Vh));return t&&Uh.call(e,Vh)&&r.unshift(e),r=r.filter(n),r},Jh=function(e,t,n){for(var r=[],i=Array.from(e);i.length;){var a=i.shift();if(!Gh(a,!1)){if(a.tagName===`SLOT`){var o=a.assignedElements(),s=Jh(o.length?o:a.children,!0,n);n.flatten?r.push.apply(r,s):r.push({scopeParent:a,candidates:s})}else{Uh.call(a,Vh)&&n.filter(a)&&(t||!e.includes(a))&&r.push(a);var c=a.shadowRoot||typeof n.getShadowRoot==`function`&&n.getShadowRoot(a),l=!Gh(c,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(a));if(c&&l){var u=Jh(c===!0?a.children:c.children,!0,n);n.flatten?r.push.apply(r,u):r.push({scopeParent:a,candidates:u})}else i.unshift.apply(i,a.children)}}}return r},Yh=function(e){return!isNaN(parseInt(e.getAttribute(`tabindex`),10))},Xh=function(e){if(!e)throw Error(`No node provided`);return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||Kh(e))&&!Yh(e)?0:e.tabIndex},Zh=function(e,t){var n=Xh(e);return n<0&&t&&!Yh(e)?0:n},Qh=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},$h=function(e){return e.tagName===`INPUT`},eg=function(e){return $h(e)&&e.type===`hidden`},tg=function(e){return e.tagName===`DETAILS`&&Array.prototype.slice.apply(e.children).some(function(e){return e.tagName===`SUMMARY`})},ng=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},rg=function(e){if(!e.name)return!0;var t=e.form||Wh(e),n=function(e){return t.querySelectorAll(`input[type="radio"][name="`+e+`"]`)},r;if(typeof window<`u`&&window.CSS!==void 0&&typeof window.CSS.escape==`function`)r=n(window.CSS.escape(e.name));else try{r=n(e.name)}catch(e){return console.error(`Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s`,e.message),!1}var i=ng(r,e.form);return!i||i===e},ig=function(e){return $h(e)&&e.type===`radio`},ag=function(e){return ig(e)&&!rg(e)},og=function(e){var t=e&&Wh(e),n=t?.host,r=!1;if(t&&t!==e){var i,a;for(r=!!((i=n)!=null&&(i=i.ownerDocument)!=null&&i.contains(n)||e!=null&&(a=e.ownerDocument)!=null&&a.contains(e));!r&&n;){var o;t=Wh(n),n=t?.host,r=!!((o=n)!=null&&(o=o.ownerDocument)!=null&&o.contains(n))}}return r},sg=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return n===0&&r===0},cg=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if(n===`full-native`&&`checkVisibility`in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});var i=getComputedStyle(e).visibility;if(i===`hidden`||i===`collapse`)return!0;var a=Uh.call(e,`details>summary:first-of-type`)?e.parentElement:e;if(Uh.call(a,`details:not([open]) *`))return!0;if(!n||n===`full`||n===`full-native`||n===`legacy-full`){if(typeof r==`function`){for(var o=e;e;){var s=e.parentElement,c=Wh(e);if(s&&!s.shadowRoot&&r(s)===!0)return sg(e);e=e.assignedSlot?e.assignedSlot:!s&&c!==e.ownerDocument?c.host:s}e=o}if(og(e))return!e.getClientRects().length;if(n!==`legacy-full`)return!0}else if(n===`non-zero-area`)return sg(e);return!1},lg=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName===`FIELDSET`&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if(r.tagName===`LEGEND`)return Uh.call(t,`fieldset[disabled] *`)?!0:!r.contains(e)}return!0}t=t.parentElement}return!1},ug=function(e,t){return!(t.disabled||eg(t)||cg(t,e)||tg(t)||lg(t))},dg=function(e,t){return!(ag(t)||Xh(t)<0||!ug(e,t))},fg=function(e){var t=parseInt(e.getAttribute(`tabindex`),10);return!!(isNaN(t)||t>=0)},pg=function(e){var t=[],n=[];return e.forEach(function(e,r){var i=!!e.scopeParent,a=i?e.scopeParent:e,o=Zh(a,i),s=i?pg(e.candidates):a;o===0?i?t.push.apply(t,s):t.push(a):n.push({documentOrder:r,tabIndex:o,item:e,isScope:i,content:s})}),n.sort(Qh).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},mg=function(e,t){return t||={},pg(t.getShadowRoot?Jh([e],t.includeContainer,{filter:dg.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:fg}):qh(e,t.includeContainer,dg.bind(null,t)))},hg=function(e,t){return t||={},t.getShadowRoot?Jh([e],t.includeContainer,{filter:ug.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):qh(e,t.includeContainer,ug.bind(null,t))},gg=Bh.concat(`iframe:not([inert]):not([inert] *)`).join(`,`),_g=function(e,t){if(t||={},!e)throw Error(`No node provided`);return Uh.call(e,gg)!==!1&&ug(t,e)};function vg(e,t){let n=t.getRootNode();for(;e;){let t=e.getRootNode();if(t===n)return e;e=t!==e&&`host`in t?t.host:null}return null}var yg=class e{#e=!1;#t=null;#n=zh.getInstance();#r=[];#i;constructor(e){this.#i=e}get paused(){return this.#e}pause(){this.#e=!0}resume(){this.#e=!1}#a(){for(let e of this.#r)e();this.#r=[]}mount(e){this.#t!==e&&(this.#t&&this.unmount(),this.#t=e,this.#n.register(this),this.#c(),this.#o())}unmount(){this.#t&&=(this.#a(),this.#s(),this.#n.unregister(this),this.#n.clearPreFocusMemory(this),null)}#o(){if(!this.#t)return;let e=new CustomEvent(`focusScope.onOpenAutoFocus`,{bubbles:!1,cancelable:!0});this.#i.onOpenAutoFocus.current(e),e.defaultPrevented||requestAnimationFrame(()=>{if(!this.#t||this.#e||!this.#n.isActiveScope(this)||this.#t.contains(vg(Am(this.#t.ownerDocument),this.#t)))return;let e=this.#u();e?(e.focus({preventScroll:!0}),this.#n.setFocusMemory(this,e)):this.#t.focus({preventScroll:!0})})}#s(){let e=new CustomEvent(`focusScope.onCloseAutoFocus`,{bubbles:!1,cancelable:!0});if(this.#i.onCloseAutoFocus.current?.(e),!e.defaultPrevented){let e=this.#n.getPreFocusMemory(this);if(e&&e.isConnected)try{e.focus({preventScroll:!0})}catch{document.body.focus()}}}#c(){if(!this.#t||!this.#i.trap.current)return;let e=this.#t,t=e.ownerDocument;this.#r.push(Yr(t,`focusin`,t=>{if(this.#e||!this.#n.isActiveScope(this))return;let n=vg(t.composedPath()[0],e);if(n!==null&&e.contains(n))this.#n.setFocusMemory(this,n);else{let n=this.#n.getFocusMemory(this);if(n&&e.contains(n)&&_g(n))t.preventDefault(),n.focus({preventScroll:!0});else{let t=this.#u(),n=this.#d()[0];(t||n||e).focus({preventScroll:!0})}}},{capture:!0}),Yr(e,`keydown`,e=>{if(!this.#i.loop||this.#e||e.key!==`Tab`||!this.#n.isActiveScope(this))return;let n=this.#l();if(n.length===0)return;let r=n[0],i=n[n.length-1];!e.shiftKey&&Am(t)===i?(e.preventDefault(),r.focus()):e.shiftKey&&Am(t)===r&&(e.preventDefault(),i.focus())}));let n=new MutationObserver(()=>{let t=this.#n.getFocusMemory(this);if(t&&!e.contains(t)){let t=this.#u(),n=this.#d()[0],r=t||n;r?(r.focus({preventScroll:!0}),this.#n.setFocusMemory(this,r)):e.focus({preventScroll:!0})}});n.observe(e,{childList:!0,subtree:!0}),this.#r.push(()=>n.disconnect())}#l(){return this.#t?mg(this.#t,{includeContainer:!1,getShadowRoot:!0}):[]}#u(){return this.#l()[0]||null}#d(){return this.#t?hg(this.#t,{includeContainer:!1,getShadowRoot:!0}):[]}static use(t){let n=null;return pm([()=>t.ref.current,()=>t.enabled.current],([r,i])=>{r&&i?(n||=new e(t),n.mount(r)):n&&=(n.unmount(),null)}),gm(()=>{n?.unmount()}),{get props(){return{tabindex:-1}}}}};function bg(e,t){D(t,!0);let n=K(t,`enabled`,3,!1),r=K(t,`trapFocus`,3,!1),i=K(t,`loop`,3,!1),a=K(t,`onCloseAutoFocus`,3,Zm),o=K(t,`onOpenAutoFocus`,3,Zm),s=yg.use({enabled:Q(()=>n()),trap:Q(()=>r()),loop:Ar(()=>i()),onCloseAutoFocus:Q(()=>a()),onOpenAutoFocus:Q(()=>o()),ref:Ar(()=>t.ref)});var c=z();U(N(c),()=>t.focusScope??f,()=>({props:s.props})),B(e,c),O()}var xg=()=>{};globalThis.bitsTextSelectionLayers??=new Map;var Sg=class e{static create(t){return new e(t)}opts;domContext;#e=Zm;#t=!1;#n=xg;#r=xg;constructor(e){this.opts=e,this.domContext=new jm(e.ref);let t=Zm;pm(()=>[this.opts.enabled.current,this.opts.onPointerDown.current,this.opts.onPointerUp.current],([e,n,r])=>(this.#t=e,this.#n=n,this.#r=r,e&&(globalThis.bitsTextSelectionLayers.set(this,this.opts.enabled),t(),t=this.#i()),()=>{this.#t=!1,t(),this.#s(),globalThis.bitsTextSelectionLayers.delete(this)}))}#i(){return Zp(Yr(this.domContext.getDocument(),`pointerdown`,this.#o),Yr(this.domContext.getDocument(),`pointerup`,this.#a))}#a=e=>{this.#s(),e.defaultPrevented||this.#r(e)};#o=e=>{if(!this.#t)return;this.#s();let t=this.opts.ref.current,n=e.target;qm(t)&&qm(n)&&Eg(this)&&Dm(t,n)&&(this.#n(e),e.defaultPrevented||(this.#e=wg(t,this.domContext.getDocument().body)))};#s=()=>{this.#e(),this.#e=Zm}},Cg=e=>e.style.userSelect||e.style.webkitUserSelect;function wg(e,t){let n=Cg(t),r=Cg(e);return Tg(t,`none`),Tg(e,`text`),()=>{Tg(t,n),Tg(e,r)}}function Tg(e,t){e.style.userSelect=t,e.style.webkitUserSelect=t}function Eg(e){let t=[...globalThis.bitsTextSelectionLayers];if(!t.length)return!1;let n=t.at(-1);return n?n[0]===e:!1}function Dg(e,t){D(t,!0);let n=K(t,`preventOverflowTextSelection`,3,!0),r=K(t,`onPointerDown`,3,Zm),i=K(t,`onPointerUp`,3,Zm);Sg.create({id:Q(()=>t.id),onPointerDown:Q(()=>r()),onPointerUp:Q(()=>i()),enabled:Q(()=>t.enabled&&n()),ref:Ar(()=>t.ref)});var a=z();U(N(a),()=>t.children??f),B(e,a),O()}globalThis.bitsIdCounter??={current:0};function Og(e=`bits`){return globalThis.bitsIdCounter.current++,`${e}-${globalThis.bitsIdCounter.current}`}var kg=class{#e;#t=0;#n=A();#r;constructor(e){this.#e=e}#i(){--this.#t,this.#r&&this.#t<=0&&(this.#r(),j(this.#n,void 0),this.#r=void 0)}get(...e){return this.#t+=1,L(this.#n)===void 0&&(this.#r=In(()=>{j(this.#n,this.#e(...e),!0)})),Nn(()=>()=>{this.#i()}),L(this.#n)}},Ag=new lm,jg=new Map,Mg=[`padding-right`,`margin-right`,`overflow`,`overflow-x`,`overflow-y`,`pointer-events`,`--scrollbar-width`],Ng=null,Pg=!1,Fg=new Set,Ig=null,Lg=null,Rg=!1;function zg(e,t,n){e.setProperty(t,n),Fg.add(t),t===`overflow`&&(Fg.add(`overflow-x`),Fg.add(`overflow-y`))}var Bg=Q(()=>{for(let e of Ag.values())if(e)return!0;return!1}),Vg=Q(()=>{for(let[e,t]of Ag)if(t&&(jg.get(e)?.()??!0))return!0;return!1}),Hg=null,Ug=new kg(()=>{function e(e,t){let n=Ng?.get(t);n?.value?e.body.style.setProperty(t,n.value,n.priority):e.body.style.removeProperty(t)}function t(t){for(let n of Mg)Fg.has(n)&&e(t,n);!Pg&&t.body.style.length===0&&t.body.removeAttribute(`style`),Ng=null,Fg.clear(),Gm&&Ig?.()}function n(t){Fg.delete(`pointer-events`)&&e(t,`pointer-events`)}function r(){Lg!==null&&(window.clearTimeout(Lg),Lg=null)}function i(e,t){r(),Rg=!0,Hg=Date.now();let n=Hg,i=()=>{Lg=null,Hg===n&&(Gg(Ag)?Rg=!1:(Rg=!1,t()))},a=e===null?24:e;Lg=window.setTimeout(i,a)}function a(){if(Ng===null&&Ag.size===0&&!Rg){Pg=document.body.hasAttribute(`style`),Ng=new Map;for(let e of Mg)Ng.set(e,{value:document.body.style.getPropertyValue(e),priority:document.body.style.getPropertyPriority(e)})}}return pm(()=>Bg.current,()=>{if(!Bg.current)return;a(),Rg=!1;let e=getComputedStyle(document.documentElement),t=getComputedStyle(document.body),n=e.scrollbarGutter?.includes(`stable`)||t.scrollbarGutter?.includes(`stable`),r=window.innerWidth-document.documentElement.clientWidth,i={padding:Number.parseInt(t.paddingRight??`0`,10)+r,margin:Number.parseInt(t.marginRight??`0`,10)};r>0&&!n&&(zg(document.body.style,`padding-right`,`${i.padding}px`),zg(document.body.style,`margin-right`,`${i.margin}px`),zg(document.body.style,`--scrollbar-width`,`${r}px`)),zg(document.body.style,`overflow`,`hidden`),Gm&&(Ig=Yr(document,`touchmove`,e=>{e.target===document.documentElement&&(e.touches.length>1||e.preventDefault())},{passive:!1})),vm(()=>{Vg.current&&zg(document.body.style,`pointer-events`,`none`),zg(document.body.style,`overflow`,`hidden`)})}),pm(()=>Vg.current,()=>{Bg.current&&vm(()=>{Bg.current&&(Vg.current?zg(document.body.style,`pointer-events`,`none`):n(document))})},{lazy:!0}),gm(()=>()=>{Ig?.()}),{get lockMap(){return Ag},resetBodyStyle:t,restorePointerEvents:n,scheduleCleanupIfNoNewLocks:i,cancelPendingCleanup:r,ensureInitialStyleCaptured:a}}),Wg=class{#e=Og();#t;#n=()=>null;#r;locked;constructor(e,t=()=>null,n=()=>!0){this.#t=e,this.#n=t,this.#r=Ug.get(),this.#r&&(this.#r.cancelPendingCleanup(),this.#r.ensureInitialStyleCaptured(),jg.set(this.#e,n),this.#r.lockMap.set(this.#e,this.#t??!1),this.locked=Q(()=>this.#r.lockMap.get(this.#e)??!1,e=>this.#r.lockMap.set(this.#e,e)),gm(()=>{if(this.#r.lockMap.delete(this.#e),jg.delete(this.#e),Gg(this.#r.lockMap))return;let e=this.#n(),t=document;this.#r.restorePointerEvents(t),this.#r.scheduleCleanupIfNoNewLocks(e,()=>{this.#r.resetBodyStyle(t)})}))}};function Gg(e){for(let[t,n]of e)if(n)return!0;return!1}function Kg(e,t){D(t,!0);let n=K(t,`preventScroll`,3,!0),r=K(t,`restoreScrollDelay`,3,null),i=K(t,`blockPointer`,3,()=>!0);Ar(()=>{n()&&new Wg(n(),()=>r(),i())}),O()}var qg=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`forceMount`,`child`,`children`,`ref`]),Jg=R(`<div><!></div>`);function Yg(e,t){let n=li();D(t,!0);let r=K(t,`id`,19,()=>Qm(n)),i=K(t,`forceMount`,3,!1),a=K(t,`ref`,15,null),o=W(t,qg),s=oh.create({id:Q(()=>r()),ref:Q(()=>a(),e=>a(e))}),c=k(()=>om(o,s.props));var l=z(),u=N(l),d=e=>{var n=z(),r=N(n),i=e=>{var n=z(),r=N(n);{let e=k(()=>({props:om(L(c)),...s.snippetProps}));U(r,()=>t.child,()=>L(e))}B(e,n)},a=e=>{var n=Jg();ha(n,e=>({...e}),[()=>om(L(c))]),U(M(n),()=>t.children??f,()=>s.snippetProps),E(n),B(e,n)};H(r,e=>{t.child?e(i):e(a,-1)}),B(e,n)};H(u,e=>{(s.shouldRender||i())&&e(d)}),B(e,l),O()}var Xg=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`children`,`child`,`ref`]),Zg=R(`<div><!></div>`);function Qg(e,t){let n=li();D(t,!0);let r=K(t,`id`,19,()=>Qm(n)),i=K(t,`ref`,15,null),a=W(t,Xg),o=ih.create({id:Q(()=>r()),ref:Q(()=>i(),e=>i(e))}),s=k(()=>om(a,o.props));var c=z(),l=N(c),u=e=>{var n=z();U(N(n),()=>t.child,()=>({props:L(s)})),B(e,n)},d=e=>{var n=Zg();ha(n,()=>({...L(s)})),U(M(n),()=>t.children??f),E(n),B(e,n)};H(l,e=>{t.child?e(u):e(d,-1)}),B(e,c),O()}var $g=Rm({component:`avatar`,parts:[`root`,`image`,`fallback`]}),e_=new um(`Avatar.Root`),t_=class e{static create(t){return e_.set(new e(t))}opts;domContext;attachment;constructor(e){this.opts=e,this.domContext=new jm(this.opts.ref),this.loadImage=this.loadImage.bind(this),this.attachment=Mm(this.opts.ref)}loadImage(e,t,n){if(this.opts.loadingStatus.current===`loaded`)return;let r,i=new Image;return i.src=e,t!==void 0&&(i.crossOrigin=t),n&&(i.referrerPolicy=n),this.opts.loadingStatus.current=`loading`,i.onload=()=>{r=this.domContext.setTimeout(()=>{this.opts.loadingStatus.current=`loaded`},this.opts.delayMs.current)},i.onerror=()=>{this.opts.loadingStatus.current=`error`},()=>{i.onload=null,i.onerror=null,r&&this.domContext.clearTimeout(r)}}#e=k(()=>({id:this.opts.id.current,[$g.root]:``,"data-status":this.opts.loadingStatus.current,...this.attachment}));get props(){return L(this.#e)}set props(e){j(this.#e,e)}},n_=class e{static create(t){return new e(t,e_.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=Mm(this.opts.ref),pm.pre([()=>this.opts.src.current,()=>this.opts.crossOrigin.current],([e,t])=>{if(!e)this.root.opts.loadingStatus.current=`error`;else return this.root.loadImage(e,t,this.opts.referrerPolicy.current)})}#e=k(()=>({id:this.opts.id.current,style:{display:this.root.opts.loadingStatus.current===`loaded`?`block`:`none`},"data-status":this.root.opts.loadingStatus.current,[$g.image]:``,src:this.opts.src.current,crossorigin:this.opts.crossOrigin.current,referrerpolicy:this.opts.referrerPolicy.current,...this.attachment}));get props(){return L(this.#e)}set props(e){j(this.#e,e)}},r_=class e{static create(t){return new e(t,e_.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=Mm(this.opts.ref)}#e=k(()=>this.root.opts.loadingStatus.current===`loaded`?{display:`none`}:void 0);get style(){return L(this.#e)}set style(e){j(this.#e,e)}#t=k(()=>({style:this.style,"data-status":this.root.opts.loadingStatus.current,[$g.fallback]:``,...this.attachment}));get props(){return L(this.#t)}set props(e){j(this.#t,e)}},i_=new Set([`$$slots`,`$$events`,`$$legacy`,`delayMs`,`loadingStatus`,`onLoadingStatusChange`,`child`,`children`,`id`,`ref`]),a_=R(`<div><!></div>`);function o_(e,t){let n=li();D(t,!0);let r=K(t,`delayMs`,3,0),i=K(t,`loadingStatus`,15,`loading`),a=K(t,`id`,19,()=>Qm(n)),o=K(t,`ref`,15,null),s=W(t,i_),c=t_.create({delayMs:Q(()=>r()),loadingStatus:Q(()=>i(),e=>{i()!==e&&(i(e),t.onLoadingStatusChange?.(e))}),id:Q(()=>a()),ref:Q(()=>o(),e=>o(e))}),l=k(()=>om(s,c.props));var u=z(),d=N(u),p=e=>{var n=z();U(N(n),()=>t.child,()=>({props:L(l)})),B(e,n)},m=e=>{var n=a_();ha(n,()=>({...L(l)})),U(M(n),()=>t.children??f),E(n),B(e,n)};H(d,e=>{t.child?e(p):e(m,-1)}),B(e,u),O()}var s_=new Set([`$$slots`,`$$events`,`$$legacy`,`src`,`child`,`id`,`ref`,`crossorigin`,`referrerpolicy`]),c_=R(`<img/>`);function l_(e,t){let n=li();D(t,!0);let r=K(t,`id`,19,()=>Qm(n)),i=K(t,`ref`,15,null),a=K(t,`crossorigin`,3,void 0),o=K(t,`referrerpolicy`,3,void 0),s=W(t,s_),c=n_.create({src:Q(()=>t.src),id:Q(()=>r()),ref:Q(()=>i(),e=>i(e)),crossOrigin:Q(()=>a()),referrerPolicy:Q(()=>o())}),l=k(()=>om(s,c.props));var u=z(),d=N(u),f=e=>{var n=z();U(N(n),()=>t.child,()=>({props:L(l)})),B(e,n)},p=e=>{var n=c_();ha(n,()=>({...L(l),src:t.src})),qr(n),B(e,n)};H(d,e=>{t.child?e(f):e(p,-1)}),B(e,u),O()}var u_=new Set([`$$slots`,`$$events`,`$$legacy`,`children`,`child`,`id`,`ref`]),d_=R(`<span><!></span>`);function f_(e,t){let n=li();D(t,!0);let r=K(t,`id`,19,()=>Qm(n)),i=K(t,`ref`,15,null),a=W(t,u_),o=r_.create({id:Q(()=>r()),ref:Q(()=>i(),e=>i(e))}),s=k(()=>om(a,o.props));var c=z(),l=N(c),u=e=>{var n=z();U(N(n),()=>t.child,()=>({props:L(s)})),B(e,n)},d=e=>{var n=d_();ha(n,()=>({...L(s)})),U(M(n),()=>t.children??f),E(n),B(e,n)};H(l,e=>{t.child?e(u):e(d,-1)}),B(e,c),O()}function p_(e,t){return e>=0&&e<t.length}function m_(e,t){D(t,!0);let n=K(t,`open`,15,!1),r=K(t,`onOpenChange`,3,Zm),i=K(t,`onOpenChangeComplete`,3,Zm);th.create({variant:Q(()=>`dialog`),open:Q(()=>n(),e=>{n(e),r()(e)}),onOpenChangeComplete:Q(()=>i())});var a=z();U(N(a),()=>t.children??f),B(e,a),O()}var h_=new Set([`$$slots`,`$$events`,`$$legacy`,`children`,`child`,`id`,`ref`,`disabled`]),g_=R(`<button><!></button>`);function __(e,t){let n=li();D(t,!0);let r=K(t,`id`,19,()=>Qm(n)),i=K(t,`ref`,15,null),a=K(t,`disabled`,3,!1),o=W(t,h_),s=nh.create({variant:Q(()=>`close`),id:Q(()=>r()),ref:Q(()=>i(),e=>i(e)),disabled:Q(()=>!!a())}),c=k(()=>om(o,s.props));var l=z(),u=N(l),d=e=>{var n=z();U(N(n),()=>t.child,()=>({props:L(c)})),B(e,n)},p=e=>{var n=g_();ha(n,()=>({...L(c)})),U(M(n),()=>t.children??f),E(n),B(e,n)};H(u,e=>{t.child?e(d):e(p,-1)}),B(e,l),O()}var v_=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`children`,`child`,`ref`,`forceMount`,`onCloseAutoFocus`,`onOpenAutoFocus`,`onEscapeKeydown`,`onInteractOutside`,`trapFocus`,`preventScroll`,`preventOverflowTextSelection`,`restoreScrollDelay`,`preventBodyPointerEvents`]),y_=R(`<!> <!>`,1),b_=R(`<!> <div><!></div>`,1);function x_(e,t){let n=li();D(t,!0);let r=K(t,`id`,19,()=>Qm(n)),i=K(t,`ref`,15,null),a=K(t,`forceMount`,3,!1),o=K(t,`onCloseAutoFocus`,3,Zm),s=K(t,`onOpenAutoFocus`,3,Zm),c=K(t,`onEscapeKeydown`,3,Zm),l=K(t,`onInteractOutside`,3,Zm),u=K(t,`trapFocus`,3,!0),d=K(t,`preventScroll`,3,!0),p=K(t,`preventOverflowTextSelection`,3,!0),m=K(t,`restoreScrollDelay`,3,null),h=K(t,`preventBodyPointerEvents`,3,!0),g=W(t,v_),_=ah.create({id:Q(()=>r()),ref:Q(()=>i(),e=>i(e))}),v=()=>h()||!_.root.overlayNode,y=k(()=>om(g,_.props));var b=z(),x=N(b),S=e=>{bg(e,{get ref(){return _.opts.ref},loop:!0,get trapFocus(){return u()},get enabled(){return _.root.opts.open.current},get onOpenAutoFocus(){return s()},get onCloseAutoFocus(){return o()},focusScope:(e,n)=>{let r=()=>(n?.()).props;Rh(e,G(()=>L(y),{get enabled(){return _.root.opts.open.current},get ref(){return _.opts.ref},onEscapeKeydown:e=>{c()(e),e.defaultPrevented||_.root.handleClose()},children:(e,n)=>{Fh(e,G(()=>L(y),{get ref(){return _.opts.ref},get enabled(){return _.root.opts.open.current},onInteractOutside:e=>{l()(e),e.defaultPrevented||_.root.handleClose()},children:(e,n)=>{Dg(e,G(()=>L(y),{get preventOverflowTextSelection(){return p()},get ref(){return _.opts.ref},get enabled(){return _.root.opts.open.current},children:(e,n)=>{var i=z(),a=N(i),o=e=>{var n=y_(),i=N(n),a=e=>{Kg(e,{get preventScroll(){return d()},get restoreScrollDelay(){return m()},blockPointer:v})};H(i,e=>{_.root.opts.open.current&&e(a)});var o=F(i,2);{let e=k(()=>({props:om(L(y),r()),..._.snippetProps}));U(o,()=>t.child,()=>L(e))}B(e,n)},s=e=>{var n=b_(),i=N(n);Kg(i,{get preventScroll(){return d()},blockPointer:v});var a=F(i,2);ha(a,e=>({...e}),[()=>om(L(y),r())]),U(M(a),()=>t.children??f),E(a),B(e,n)};H(a,e=>{t.child?e(o):e(s,-1)}),B(e,i)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};H(x,e=>{(_.shouldRender||a())&&e(S)}),B(e,b),O()}var S_=new WeakMap;function C_(e){let t=S_.get(e);if(t)return t;let n=new WeakMap;return t={observer:new e.ResizeObserver(e=>{for(let t of e){let e=n.get(t.target);if(e)for(let t of[...e])t()}}),callbacksByNode:n,targetCount:0},S_.set(e,t),t}function w_(e,t){let n=km(e),r=C_(n),i=r.callbacksByNode.get(e);return i===void 0?(i=new Set,r.callbacksByNode.set(e,i),r.targetCount++):r.observer.unobserve(e),i.add(t),r.observer.observe(e),()=>{let i=r.callbacksByNode.get(e);i&&(i.delete(t),i.size||(r.callbacksByNode.delete(e),r.observer.unobserve(e),--r.targetCount>0||(r.observer.disconnect(),S_.delete(n))))}}var T_=class{#e;#t;#n;constructor(e,t,n){this.#e=e,this.#t=t,this.#n=n,this.handler=this.handler.bind(this),Nn(this.handler)}handler(){let e=0,t=this.#e();if(!t)return;let n=km(t),r=w_(t,()=>{this.#n?.(),n.cancelAnimationFrame(e),e=n.requestAnimationFrame(this.#t)});return()=>{n.cancelAnimationFrame(e),r()}}},E_=class{opts;present;#e;#t=A(!1);#n=!1;#r=A(void 0);#i=null;constructor(e){this.opts=e,this.present=this.opts.open,j(this.#t,e.open.current,!0),this.#e=new Ym({ref:this.opts.ref,afterTick:this.opts.open}),gm(()=>this.#o()),pm(()=>this.present.current,e=>{this.#n?(this.#o(),e&&j(this.#t,!0),j(this.#r,e?`starting`:`ending`,!0),e&&(this.#i=window.requestAnimationFrame(()=>{this.#i=null,this.present.current&&j(this.#r,void 0)})),this.#e.run(()=>{e===this.present.current&&(e||j(this.#t,!1),j(this.#r,void 0))})):this.#n=!0})}#a=k(()=>L(this.#t));get isPresent(){return L(this.#a)}set isPresent(e){j(this.#a,e)}get transitionStatus(){return L(this.#r)}#o(){this.#i!==null&&(window.cancelAnimationFrame(this.#i),this.#i=null)}};function D_(e,t){D(t,!0);let n=new E_({open:Q(()=>t.open),ref:Ar(()=>t.ref)});var r=z(),i=N(r),a=e=>{var r=z();U(N(r),()=>t.presence??f,()=>({present:n.isPresent,transitionStatus:n.transitionStatus})),B(e,r)};H(i,e=>{(t.forceMount||t.open||n.isPresent)&&e(a)}),B(e,r),O()}var O_=Rm({component:`progress`,parts:[`root`]}),k_=class e{static create(t){return new e(t)}opts;attachment;constructor(e){this.opts=e,this.attachment=Mm(this.opts.ref)}#e=k(()=>({role:`progressbar`,value:this.opts.value.current,"aria-valuemin":this.opts.min.current,"aria-valuemax":this.opts.max.current,"aria-valuenow":this.opts.value.current===null?void 0:this.opts.value.current,"data-value":this.opts.value.current===null?void 0:this.opts.value.current,"data-state":A_(this.opts.value.current,this.opts.max.current),"data-max":this.opts.max.current,"data-min":this.opts.min.current,"data-indeterminate":this.opts.value.current===null?``:void 0,[O_.root]:``,...this.attachment}));get props(){return L(this.#e)}set props(e){j(this.#e,e)}};function A_(e,t){return e===null?`indeterminate`:e===t?`loaded`:`loading`}var j_=new Set([`$$slots`,`$$events`,`$$legacy`,`child`,`children`,`value`,`max`,`min`,`id`,`ref`]),M_=R(`<div><!></div>`);function N_(e,t){let n=li();D(t,!0);let r=K(t,`value`,3,0),i=K(t,`max`,3,100),a=K(t,`min`,3,0),o=K(t,`id`,19,()=>Qm(n)),s=K(t,`ref`,15,null),c=W(t,j_),l=k_.create({value:Q(()=>r()),max:Q(()=>i()),min:Q(()=>a()),id:Q(()=>o()),ref:Q(()=>s(),e=>s(e))}),u=k(()=>om(c,l.props));var d=z(),p=N(d),m=e=>{var n=z();U(N(n),()=>t.child,()=>({props:L(u)})),B(e,n)},h=e=>{var n=M_();ha(n,()=>({...L(u)})),U(M(n),()=>t.children??f),E(n),B(e,n)};H(p,e=>{t.child?e(m):e(h,-1)}),B(e,d),O()}function P_(e,t,n){return Math.min(n,Math.max(t,e))}var F_=class{state;#e;constructor(e,t){this.state=gp(e),this.#e=t,this.dispatch=this.dispatch.bind(this)}#t(e){return this.#e[this.state.current][e]??this.state.current}dispatch(e){this.state.current=this.#t(e)}},I_=Rm({component:`scroll-area`,parts:[`root`,`viewport`,`corner`,`thumb`,`scrollbar`]}),L_=new um(`ScrollArea.Root`),R_=new um(`ScrollArea.Scrollbar`),z_=new um(`ScrollArea.ScrollbarVisible`),B_=new um(`ScrollArea.ScrollbarAxis`),V_=new um(`ScrollArea.ScrollbarShared`),H_=class e{static create(t){return L_.set(new e(t))}opts;attachment;#e=A(null);get scrollAreaNode(){return L(this.#e)}set scrollAreaNode(e){j(this.#e,e,!0)}#t=A(null);get viewportNode(){return L(this.#t)}set viewportNode(e){j(this.#t,e,!0)}#n=A(null);get contentNode(){return L(this.#n)}set contentNode(e){j(this.#n,e,!0)}#r=A(null);get scrollbarXNode(){return L(this.#r)}set scrollbarXNode(e){j(this.#r,e,!0)}#i=A(null);get scrollbarYNode(){return L(this.#i)}set scrollbarYNode(e){j(this.#i,e,!0)}#a=A(0);get cornerWidth(){return L(this.#a)}set cornerWidth(e){j(this.#a,e,!0)}#o=A(0);get cornerHeight(){return L(this.#o)}set cornerHeight(e){j(this.#o,e,!0)}#s=A(!1);get scrollbarXEnabled(){return L(this.#s)}set scrollbarXEnabled(e){j(this.#s,e,!0)}#c=A(!1);get scrollbarYEnabled(){return L(this.#c)}set scrollbarYEnabled(e){j(this.#c,e,!0)}domContext;constructor(e){this.opts=e,this.attachment=Mm(e.ref,e=>this.scrollAreaNode=e),this.domContext=new jm(e.ref)}#l=k(()=>({id:this.opts.id.current,dir:this.opts.dir.current,style:{position:`relative`,"--bits-scroll-area-corner-height":`${this.cornerHeight}px`,"--bits-scroll-area-corner-width":`${this.cornerWidth}px`},[I_.root]:``,...this.attachment}));get props(){return L(this.#l)}set props(e){j(this.#l,e)}},U_=class e{static create(t){return new e(t,L_.get())}opts;root;attachment;#e=gp(Og());#t=gp(null);contentAttachment=Mm(this.#t,e=>this.root.contentNode=e);constructor(e,t){this.opts=e,this.root=t,this.attachment=Mm(e.ref,e=>this.root.viewportNode=e)}#n=k(()=>({id:this.opts.id.current,style:{overflowX:this.root.scrollbarXEnabled?`scroll`:`hidden`,overflowY:this.root.scrollbarYEnabled?`scroll`:`hidden`},[I_.viewport]:``,...this.attachment}));get props(){return L(this.#n)}set props(e){j(this.#n,e)}#r=k(()=>({id:this.#e.current,"data-scroll-area-content":``,style:{minWidth:this.root.scrollbarXEnabled?`fit-content`:void 0},...this.contentAttachment}));get contentProps(){return L(this.#r)}set contentProps(e){j(this.#r,e)}},W_=class e{static create(t){return R_.set(new e(t,L_.get()))}opts;root;#e=k(()=>this.opts.orientation.current===`horizontal`);get isHorizontal(){return L(this.#e)}set isHorizontal(e){j(this.#e,e)}#t=A(!1);get hasThumb(){return L(this.#t)}set hasThumb(e){j(this.#t,e,!0)}constructor(e,t){this.opts=e,this.root=t,pm(()=>this.isHorizontal,e=>e?(this.root.scrollbarXEnabled=!0,()=>{this.root.scrollbarXEnabled=!1}):(this.root.scrollbarYEnabled=!0,()=>{this.root.scrollbarYEnabled=!1}))}},G_=class e{static create(){return new e(R_.get())}scrollbar;root;#e=A(!1);get isVisible(){return L(this.#e)}set isVisible(e){j(this.#e,e,!0)}constructor(e){this.scrollbar=e,this.root=e.root,Nn(()=>{let e=this.root.scrollAreaNode,t=this.root.opts.scrollHideDelay.current,n=0;if(!e)return;let r=Zp(Yr(e,`pointerenter`,()=>{this.root.domContext.clearTimeout(n),Ar(()=>this.isVisible=!0)}),Yr(e,`pointerleave`,()=>{n&&this.root.domContext.clearTimeout(n),n=this.root.domContext.setTimeout(()=>{Ar(()=>{this.scrollbar.hasThumb=!1,this.isVisible=!1})},t)}));return()=>{this.root.domContext.getWindow().clearTimeout(n),r()}})}#t=k(()=>({"data-state":this.isVisible?`visible`:`hidden`}));get props(){return L(this.#t)}set props(e){j(this.#t,e)}},K_=class e{static create(){return new e(R_.get())}scrollbar;root;machine=new F_(`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`}});#e=k(()=>this.machine.state.current===`hidden`);get isHidden(){return L(this.#e)}set isHidden(e){j(this.#e,e)}constructor(e){this.scrollbar=e,this.root=e.root;let t=wh(()=>this.machine.dispatch(`SCROLL_END`),100);Nn(()=>{let e=this.machine.state.current,t=this.root.opts.scrollHideDelay.current;if(e===`idle`){let e=this.root.domContext.setTimeout(()=>this.machine.dispatch(`HIDE`),t);return()=>this.root.domContext.clearTimeout(e)}}),Nn(()=>{let e=this.root.viewportNode;if(!e)return;let n=this.scrollbar.isHorizontal?`scrollLeft`:`scrollTop`,r=e[n],i=Yr(e,`scroll`,()=>{let i=e[n];r!==i&&(this.machine.dispatch(`SCROLL`),t()),r=i});return()=>{i(),t.destroy()}}),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this)}onpointerenter(e){this.machine.dispatch(`POINTER_ENTER`)}onpointerleave(e){this.machine.dispatch(`POINTER_LEAVE`)}#t=k(()=>({"data-state":this.machine.state.current===`hidden`?`hidden`:`visible`,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave}));get props(){return L(this.#t)}set props(e){j(this.#t,e)}},q_=class e{static create(){return new e(R_.get())}scrollbar;root;#e=A(!1);get isVisible(){return L(this.#e)}set isVisible(e){j(this.#e,e,!0)}constructor(e){this.scrollbar=e,this.root=e.root;let t=!1,n=()=>{let e=this.root.viewportNode;e&&(t=this.scrollbar.isHorizontal?e.offsetWidth<e.scrollWidth:e.offsetHeight<e.scrollHeight)},r=()=>{this.isVisible=t};new T_(()=>this.root.viewportNode,r,n),new T_(()=>this.root.contentNode,r,n)}#t=k(()=>({"data-state":this.isVisible?`visible`:`hidden`}));get props(){return L(this.#t)}set props(e){j(this.#t,e)}},J_=class e{static create(){return z_.set(new e(R_.get()))}scrollbar;root;#e=A(null);get thumbNode(){return L(this.#e)}set thumbNode(e){j(this.#e,e,!0)}#t=A(0);get pointerOffset(){return L(this.#t)}set pointerOffset(e){j(this.#t,e,!0)}#n=A({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}});get sizes(){return L(this.#n)}set sizes(e){j(this.#n,e)}#r=k(()=>tv(this.sizes.viewport,this.sizes.content));get thumbRatio(){return L(this.#r)}set thumbRatio(e){j(this.#r,e)}#i=k(()=>this.thumbRatio>0&&this.thumbRatio<1);get hasThumb(){return L(this.#i)}set hasThumb(e){j(this.#i,e)}#a=A(``);get prevTransformStyle(){return L(this.#a)}set prevTransformStyle(e){j(this.#a,e,!0)}constructor(e){this.scrollbar=e,this.root=e.root,Nn(()=>{this.scrollbar.hasThumb=this.hasThumb}),Nn(()=>{!this.scrollbar.hasThumb&&this.thumbNode&&(this.prevTransformStyle=this.thumbNode.style.transform)})}setSizes(e){this.sizes=e}getScrollPosition(e,t){return rv({pointerPos:e,pointerOffset:this.pointerOffset,sizes:this.sizes,dir:t})}onThumbPointerUp(){this.pointerOffset=0}onThumbPointerDown(e){this.pointerOffset=e}xOnThumbPositionChange(){if(!(this.root.viewportNode&&this.thumbNode))return;let e=this.root.viewportNode.scrollLeft,t=`translate3d(${iv({scrollPos:e,sizes:this.sizes,dir:this.root.opts.dir.current})}px, 0, 0)`;this.thumbNode.style.transform=t,this.prevTransformStyle=t}xOnWheelScroll(e){this.root.viewportNode&&(this.root.viewportNode.scrollLeft=e)}xOnDragScroll(e){this.root.viewportNode&&(this.root.viewportNode.scrollLeft=this.getScrollPosition(e,this.root.opts.dir.current))}yOnThumbPositionChange(){if(!(this.root.viewportNode&&this.thumbNode))return;let e=this.root.viewportNode.scrollTop,t=`translate3d(0, ${iv({scrollPos:e,sizes:this.sizes})}px, 0)`;this.thumbNode.style.transform=t,this.prevTransformStyle=t}yOnWheelScroll(e){this.root.viewportNode&&(this.root.viewportNode.scrollTop=e)}yOnDragScroll(e){this.root.viewportNode&&(this.root.viewportNode.scrollTop=this.getScrollPosition(e,this.root.opts.dir.current))}},Y_=class e{static create(t){return B_.set(new e(t,z_.get()))}opts;scrollbarVis;root;scrollbar;attachment;#e=A();get computedStyle(){return L(this.#e)}set computedStyle(e){j(this.#e,e,!0)}constructor(e,t){this.opts=e,this.scrollbarVis=t,this.root=t.root,this.scrollbar=t.scrollbar,this.attachment=Mm(this.scrollbar.opts.ref,e=>this.root.scrollbarXNode=e),Nn(()=>{this.scrollbar.opts.ref.current&&this.opts.mounted.current&&(this.computedStyle=getComputedStyle(this.scrollbar.opts.ref.current))}),Nn(()=>{this.onResize()})}onThumbPointerDown=e=>{this.scrollbarVis.onThumbPointerDown(e.x)};onDragScroll=e=>{this.scrollbarVis.xOnDragScroll(e.x)};onThumbPointerUp=()=>{this.scrollbarVis.onThumbPointerUp()};onThumbPositionChange=()=>{this.scrollbarVis.xOnThumbPositionChange()};onWheelScroll=(e,t)=>{if(!this.root.viewportNode)return;let n=this.root.viewportNode.scrollLeft+e.deltaX;this.scrollbarVis.xOnWheelScroll(n),ov(n,t)&&e.preventDefault()};onResize=()=>{this.scrollbar.opts.ref.current&&this.root.viewportNode&&this.computedStyle&&this.scrollbarVis.setSizes({content:this.root.viewportNode.scrollWidth,viewport:this.root.viewportNode.offsetWidth,scrollbar:{size:this.scrollbar.opts.ref.current.clientWidth,paddingStart:ev(this.computedStyle.paddingLeft),paddingEnd:ev(this.computedStyle.paddingRight)}})};#t=k(()=>nv(this.scrollbarVis.sizes));get thumbSize(){return L(this.#t)}set thumbSize(e){j(this.#t,e)}#n=k(()=>({id:this.scrollbar.opts.id.current,"data-orientation":`horizontal`,style:{bottom:0,left:this.root.opts.dir.current===`rtl`?`var(--bits-scroll-area-corner-width)`:0,right:this.root.opts.dir.current===`ltr`?`var(--bits-scroll-area-corner-width)`:0,"--bits-scroll-area-thumb-width":`${this.thumbSize}px`},...this.attachment}));get props(){return L(this.#n)}set props(e){j(this.#n,e)}},X_=class e{static create(t){return B_.set(new e(t,z_.get()))}opts;scrollbarVis;root;scrollbar;attachment;#e=A();get computedStyle(){return L(this.#e)}set computedStyle(e){j(this.#e,e,!0)}constructor(e,t){this.opts=e,this.scrollbarVis=t,this.root=t.root,this.scrollbar=t.scrollbar,this.attachment=Mm(this.scrollbar.opts.ref,e=>this.root.scrollbarYNode=e),Nn(()=>{this.scrollbar.opts.ref.current&&this.opts.mounted.current&&(this.computedStyle=getComputedStyle(this.scrollbar.opts.ref.current))}),Nn(()=>{this.onResize()}),this.onThumbPointerDown=this.onThumbPointerDown.bind(this),this.onDragScroll=this.onDragScroll.bind(this),this.onThumbPointerUp=this.onThumbPointerUp.bind(this),this.onThumbPositionChange=this.onThumbPositionChange.bind(this),this.onWheelScroll=this.onWheelScroll.bind(this),this.onResize=this.onResize.bind(this)}onThumbPointerDown(e){this.scrollbarVis.onThumbPointerDown(e.y)}onDragScroll(e){this.scrollbarVis.yOnDragScroll(e.y)}onThumbPointerUp(){this.scrollbarVis.onThumbPointerUp()}onThumbPositionChange(){this.scrollbarVis.yOnThumbPositionChange()}onWheelScroll(e,t){if(!this.root.viewportNode)return;let n=this.root.viewportNode.scrollTop+e.deltaY;this.scrollbarVis.yOnWheelScroll(n),ov(n,t)&&e.preventDefault()}onResize(){this.scrollbar.opts.ref.current&&this.root.viewportNode&&this.computedStyle&&this.scrollbarVis.setSizes({content:this.root.viewportNode.scrollHeight,viewport:this.root.viewportNode.offsetHeight,scrollbar:{size:this.scrollbar.opts.ref.current.clientHeight,paddingStart:ev(this.computedStyle.paddingTop),paddingEnd:ev(this.computedStyle.paddingBottom)}})}#t=k(()=>nv(this.scrollbarVis.sizes));get thumbSize(){return L(this.#t)}set thumbSize(e){j(this.#t,e)}#n=k(()=>({id:this.scrollbar.opts.id.current,"data-orientation":`vertical`,style:{top:0,right:this.root.opts.dir.current===`ltr`?0:void 0,left:this.root.opts.dir.current===`rtl`?0:void 0,bottom:`var(--bits-scroll-area-corner-height)`,"--bits-scroll-area-thumb-height":`${this.thumbSize}px`},...this.attachment}));get props(){return L(this.#n)}set props(e){j(this.#n,e)}},Z_=class e{static create(){return V_.set(new e(B_.get()))}scrollbarState;root;scrollbarVis;scrollbar;#e=A(null);get rect(){return L(this.#e)}set rect(e){j(this.#e,e)}#t=A(``);get prevWebkitUserSelect(){return L(this.#t)}set prevWebkitUserSelect(e){j(this.#t,e,!0)}handleResize;handleThumbPositionChange;handleWheelScroll;handleThumbPointerDown;handleThumbPointerUp;#n=k(()=>this.scrollbarVis.sizes.content-this.scrollbarVis.sizes.viewport);get maxScrollPos(){return L(this.#n)}set maxScrollPos(e){j(this.#n,e)}constructor(e){this.scrollbarState=e,this.root=e.root,this.scrollbarVis=e.scrollbarVis,this.scrollbar=e.scrollbarVis.scrollbar,this.handleResize=()=>this.scrollbarState.onResize(),this.handleThumbPositionChange=this.scrollbarState.onThumbPositionChange,this.handleWheelScroll=this.scrollbarState.onWheelScroll,this.handleThumbPointerDown=this.scrollbarState.onThumbPointerDown,this.handleThumbPointerUp=this.scrollbarState.onThumbPointerUp,Nn(()=>{let e=this.maxScrollPos,t=this.scrollbar.opts.ref.current;return this.root.viewportNode,Yr(this.root.domContext.getDocument(),`wheel`,n=>{let r=n.target;t?.contains(r)&&this.handleWheelScroll(n,e)},{passive:!1})}),Fn(()=>{this.scrollbarVis.sizes,Ar(()=>this.handleThumbPositionChange())}),new T_(()=>this.scrollbar.opts.ref.current,this.handleResize),new T_(()=>this.root.contentNode,this.handleResize),this.onpointerdown=this.onpointerdown.bind(this),this.onpointermove=this.onpointermove.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onlostpointercapture=this.onlostpointercapture.bind(this)}handleDragScroll(e){if(!this.rect)return;let t=e.clientX-this.rect.left,n=e.clientY-this.rect.top;this.scrollbarState.onDragScroll({x:t,y:n})}#r(){this.rect!==null&&(this.root.domContext.getDocument().body.style.webkitUserSelect=this.prevWebkitUserSelect,this.root.viewportNode&&(this.root.viewportNode.style.scrollBehavior=``),this.rect=null)}onpointerdown(e){e.button===0&&(e.target.setPointerCapture(e.pointerId),this.rect=this.scrollbar.opts.ref.current?.getBoundingClientRect()??null,this.prevWebkitUserSelect=this.root.domContext.getDocument().body.style.webkitUserSelect,this.root.domContext.getDocument().body.style.webkitUserSelect=`none`,this.root.viewportNode&&(this.root.viewportNode.style.scrollBehavior=`auto`),this.handleDragScroll(e))}onpointermove(e){this.handleDragScroll(e)}onpointerup(e){let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),this.#r()}onlostpointercapture(e){this.#r()}#i=k(()=>om({...this.scrollbarState.props,style:{position:`absolute`,...this.scrollbarState.props.style},[I_.scrollbar]:``,onpointerdown:this.onpointerdown,onpointermove:this.onpointermove,onpointerup:this.onpointerup,onlostpointercapture:this.onlostpointercapture}));get props(){return L(this.#i)}set props(e){j(this.#i,e)}},Q_=class e{static create(t){return new e(t,V_.get())}opts;scrollbarState;attachment;#e;#t=A();#n=()=>{L(this.#t)&&(L(this.#t)(),j(this.#t,void 0))};#r=wh(this.#n,100);constructor(e,t){this.opts=e,this.scrollbarState=t,this.#e=t.root,this.attachment=Mm(this.opts.ref,e=>this.scrollbarState.scrollbarVis.thumbNode=e),Nn(()=>{let e=this.#e.viewportNode;if(!e)return;let t=()=>{if(this.#r(),!L(this.#t)){let t=sv(e,this.scrollbarState.handleThumbPositionChange);j(this.#t,t,!0),this.scrollbarState.handleThumbPositionChange()}};Ar(()=>this.scrollbarState.handleThumbPositionChange());let n=Yr(e,`scroll`,t);return()=>{n(),this.#r.destroy(),this.#n()}}),this.onpointerdowncapture=this.onpointerdowncapture.bind(this),this.onpointerup=this.onpointerup.bind(this)}onpointerdowncapture(e){let t=e.target;if(!t)return;let n=t.getBoundingClientRect(),r=e.clientX-n.left,i=e.clientY-n.top;this.scrollbarState.handleThumbPointerDown({x:r,y:i})}onpointerup(e){this.scrollbarState.handleThumbPointerUp()}#i=k(()=>({id:this.opts.id.current,"data-state":this.scrollbarState.scrollbarVis.hasThumb?`visible`:`hidden`,style:{width:`var(--bits-scroll-area-thumb-width)`,height:`var(--bits-scroll-area-thumb-height)`,transform:this.scrollbarState.scrollbarVis.prevTransformStyle},onpointerdowncapture:this.onpointerdowncapture,onpointerup:this.onpointerup,[I_.thumb]:``,...this.attachment}));get props(){return L(this.#i)}set props(e){j(this.#i,e)}},$_=class e{static create(t){return new e(t,L_.get())}opts;root;attachment;#e=A(0);#t=A(0);#n=k(()=>!!(L(this.#e)&&L(this.#t)));get hasSize(){return L(this.#n)}set hasSize(e){j(this.#n,e)}constructor(e,t){this.opts=e,this.root=t,this.attachment=Mm(this.opts.ref),new T_(()=>this.root.scrollbarXNode,()=>{let e=this.root.scrollbarXNode?.offsetHeight||0;this.root.cornerHeight=e,j(this.#t,e,!0)}),new T_(()=>this.root.scrollbarYNode,()=>{let e=this.root.scrollbarYNode?.offsetWidth||0;this.root.cornerWidth=e,j(this.#e,e,!0)})}#r=k(()=>({id:this.opts.id.current,style:{width:L(this.#e),height:L(this.#t),position:`absolute`,right:this.root.opts.dir.current===`ltr`?0:void 0,left:this.root.opts.dir.current===`rtl`?0:void 0,bottom:0},[I_.corner]:``,...this.attachment}));get props(){return L(this.#r)}set props(e){j(this.#r,e)}};function ev(e){return e?Number.parseInt(e,10):0}function tv(e,t){let n=e/t;return Number.isNaN(n)?0:n}function nv(e){let t=tv(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function rv({pointerPos:e,pointerOffset:t,sizes:n,dir:r=`ltr`}){let i=nv(n),a=i/2,o=t||a,s=i-o,c=n.scrollbar.paddingStart+o,l=n.scrollbar.size-n.scrollbar.paddingEnd-s,u=n.content-n.viewport,d=r===`ltr`?[0,u]:[u*-1,0];return av([c,l],d)(e)}function iv({scrollPos:e,sizes:t,dir:n=`ltr`}){let r=nv(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-i,o=t.content-t.viewport,s=a-r,c=n===`ltr`?[0,o]:[o*-1,0],l=P_(e,c[0],c[1]);return av([0,o],[0,s])(l)}function av(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function ov(e,t){return e>0&&e<t}function sv(e,t){let n={left:e.scrollLeft,top:e.scrollTop},r=0,i=km(e);return(function a(){let o={left:e.scrollLeft,top:e.scrollTop},s=n.left!==o.left,c=n.top!==o.top;(s||c)&&t(),n=o,r=i.requestAnimationFrame(a)})(),()=>i.cancelAnimationFrame(r)}var cv=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`id`,`type`,`dir`,`scrollHideDelay`,`children`,`child`]),lv=R(`<div><!></div>`);function uv(e,t){let n=li();D(t,!0);let r=K(t,`ref`,15,null),i=K(t,`id`,19,()=>Qm(n)),a=K(t,`type`,3,`hover`),o=K(t,`dir`,3,`ltr`),s=K(t,`scrollHideDelay`,3,600),c=W(t,cv),l=H_.create({type:Q(()=>a()),dir:Q(()=>o()),scrollHideDelay:Q(()=>s()),id:Q(()=>i()),ref:Q(()=>r(),e=>r(e))}),u=k(()=>om(c,l.props));var d=z(),p=N(d),m=e=>{var n=z();U(N(n),()=>t.child,()=>({props:L(u)})),B(e,n)},h=e=>{var n=lv();ha(n,()=>({...L(u)})),U(M(n),()=>t.children??f),E(n),B(e,n)};H(p,e=>{t.child?e(m):e(h,-1)}),B(e,d),O()}var dv=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`id`,`children`]),fv=R(`<div><div><!></div></div>`);function pv(e,t){let n=li();D(t,!0);let r=K(t,`ref`,15,null),i=K(t,`id`,19,()=>Qm(n)),a=W(t,dv),o=U_.create({id:Q(()=>i()),ref:Q(()=>r(),e=>r(e))}),s=k(()=>om(a,o.props)),c=k(()=>om({},o.contentProps));var l=fv();ha(l,()=>({...L(s)}));var u=M(l);ha(u,()=>({...L(c)})),U(M(u),()=>t.children??f),E(u),E(l),B(e,l),O()}var mv=new Set([`$$slots`,`$$events`,`$$legacy`,`child`,`children`]),hv=R(`<div><!></div>`);function gv(e,t){D(t,!0);let n=W(t,mv),r=Z_.create(),i=k(()=>om(n,r.props));var a=z(),o=N(a),s=e=>{var n=z();U(N(n),()=>t.child,()=>({props:L(i)})),B(e,n)},c=e=>{var n=hv();ha(n,()=>({...L(i)})),U(M(n),()=>t.children??f),E(n),B(e,n)};H(o,e=>{t.child?e(s):e(c,-1)}),B(e,a),O()}var _v=new Set([`$$slots`,`$$events`,`$$legacy`]);function vv(e,t){D(t,!0);let n=W(t,_v),r=new hm,i=Y_.create({mounted:Q(()=>r.current)}),a=k(()=>om(n,i.props));gv(e,G(()=>L(a))),O()}var yv=new Set([`$$slots`,`$$events`,`$$legacy`]);function bv(e,t){D(t,!0);let n=W(t,yv),r=new hm,i=X_.create({mounted:Q(()=>r.current)}),a=k(()=>om(n,i.props));gv(e,G(()=>L(a))),O()}var xv=new Set([`$$slots`,`$$events`,`$$legacy`]);function Sv(e,t){D(t,!0);let n=W(t,xv),r=J_.create();var i=z(),a=N(i),o=e=>{vv(e,G(()=>n))},s=e=>{bv(e,G(()=>n))};H(a,e=>{r.scrollbar.opts.orientation.current===`horizontal`?e(o):e(s,-1)}),B(e,i),O()}var Cv=new Set([`$$slots`,`$$events`,`$$legacy`,`forceMount`]);function wv(e,t){D(t,!0);let n=K(t,`forceMount`,3,!1),r=W(t,Cv),i=q_.create(),a=k(()=>om(r,i.props));{let t=e=>{Sv(e,G(()=>L(a)))},r=k(()=>n()||i.isVisible);D_(e,{get open(){return L(r)},get ref(){return i.scrollbar.opts.ref},presence:t,$$slots:{presence:!0}})}O()}var Tv=new Set([`$$slots`,`$$events`,`$$legacy`,`forceMount`]);function Ev(e,t){D(t,!0);let n=K(t,`forceMount`,3,!1),r=W(t,Tv),i=K_.create(),a=k(()=>om(r,i.props));{let t=e=>{Sv(e,G(()=>L(a)))},r=k(()=>n()||!i.isHidden);D_(e,G(()=>L(a),{get open(){return L(r)},get ref(){return i.scrollbar.opts.ref},presence:t,$$slots:{presence:!0}}))}O()}var Dv=new Set([`$$slots`,`$$events`,`$$legacy`,`forceMount`]);function Ov(e,t){D(t,!0);let n=K(t,`forceMount`,3,!1),r=W(t,Dv),i=G_.create(),a=q_.create(),o=k(()=>om(r,i.props,a.props,{"data-state":i.isVisible?`visible`:`hidden`})),s=k(()=>n()||i.isVisible&&a.isVisible);D_(e,{get open(){return L(s)},get ref(){return a.scrollbar.opts.ref},presence:e=>{Sv(e,G(()=>L(o)))},$$slots:{presence:!0}}),O()}var kv=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`id`,`orientation`]);function Av(e,t){let n=li();D(t,!0);let r=K(t,`ref`,15,null),i=K(t,`id`,19,()=>Qm(n)),a=W(t,kv),o=W_.create({orientation:Q(()=>t.orientation),id:Q(()=>i()),ref:Q(()=>r(),e=>r(e))}),s=k(()=>o.root.opts.type.current);var c=z(),l=N(c),u=e=>{Ov(e,G(()=>a,{get id(){return i()}}))},d=e=>{Ev(e,G(()=>a,{get id(){return i()}}))},f=e=>{wv(e,G(()=>a,{get id(){return i()}}))},p=e=>{Sv(e,G(()=>a,{get id(){return i()}}))};H(l,e=>{L(s)===`hover`?e(u):L(s)===`scroll`?e(d,1):L(s)===`auto`?e(f,2):L(s)===`always`&&e(p,3)}),B(e,c),O()}var jv=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`id`,`child`,`children`,`present`]),Mv=R(`<div><!></div>`);function Nv(e,t){D(t,!0);let n=K(t,`ref`,15,null),r=W(t,jv),i=new hm,a=Q_.create({id:Q(()=>t.id),ref:Q(()=>n(),e=>n(e)),mounted:Q(()=>i.current)}),o=k(()=>om(r,a.props,{style:{hidden:!t.present}}));var s=z(),c=N(s),l=e=>{var n=z();U(N(n),()=>t.child,()=>({props:L(o)})),B(e,n)},u=e=>{var n=Mv();ha(n,()=>({...L(o)})),U(M(n),()=>t.children??f),E(n),B(e,n)};H(c,e=>{t.child?e(l):e(u,-1)}),B(e,s),O()}var Pv=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`forceMount`]);function Fv(e,t){let n=li();D(t,!0);let r=K(t,`id`,19,()=>Qm(n)),i=K(t,`ref`,15,null),a=K(t,`forceMount`,3,!1),o=W(t,Pv),s=z_.get();{let t=(e,t)=>{let n=()=>(t?.()).present;Nv(e,G(()=>o,{get id(){return r()},get present(){return n()},get ref(){return i()},set ref(e){i(e)}}))},n=k(()=>a()||s.hasThumb);D_(e,{get open(){return L(n)},get ref(){return s.scrollbar.opts.ref},presence:t,$$slots:{presence:!0}})}O()}var Iv=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`id`,`children`,`child`]),Lv=R(`<div><!></div>`);function Rv(e,t){D(t,!0);let n=K(t,`ref`,15,null),r=W(t,Iv),i=$_.create({id:Q(()=>t.id),ref:Q(()=>n(),e=>n(e))}),a=k(()=>om(r,i.props));var o=z(),s=N(o),c=e=>{var n=z();U(N(n),()=>t.child,()=>({props:L(a)})),B(e,n)},l=e=>{var n=Lv();ha(n,()=>({...L(a)})),U(M(n),()=>t.children??f),E(n),B(e,n)};H(s,e=>{t.child?e(c):e(l,-1)}),B(e,o),O()}var zv=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`id`]);function Bv(e,t){let n=li();D(t,!0);let r=K(t,`ref`,15,null),i=K(t,`id`,19,()=>Qm(n)),a=W(t,zv),o=L_.get(),s=k(()=>!!(o.scrollbarXNode&&o.scrollbarYNode)),c=k(()=>o.opts.type.current!==`scroll`&&L(s));var l=z(),u=N(l),d=e=>{Rv(e,G(()=>a,{get id(){return i()},get ref(){return r()},set ref(e){r(e)}}))};H(u,e=>{L(c)&&e(d)}),B(e,l),O()}function Vv(e,t,n){let r={position:`absolute`};return e===`lr`?(r.left=`${t}%`,r.right=`${n}%`):e===`rl`?(r.right=`${t}%`,r.left=`${n}%`):e===`bt`?(r.bottom=`${t}%`,r.top=`${n}%`):(r.top=`${t}%`,r.bottom=`${n}%`),r}function Hv(e,t){let n={position:`absolute`};return e===`lr`?(n.left=`${t}%`,n.translate=`-50% 0`):e===`rl`?(n.right=`${t}%`,n.translate=`50% 0`):e===`bt`?(n.bottom=`${t}%`,n.translate=`0 50%`):(n.top=`${t}%`,n.translate=`0 -50%`),n}function Uv(e,t,n){let r={position:`absolute`};return e===`lr`?(r.left=`${t}%`,r.translate=`${n}% 0`):e===`rl`?(r.right=`${t}%`,r.translate=`${-n}% 0`):e===`bt`?(r.bottom=`${t}%`,r.translate=`0 ${-n}%`):(r.top=`${t}%`,r.translate=`0 ${n}%`),r}function Wv(e){if(Math.floor(e)===e)return 0;let t=e.toString();if(t.indexOf(`.`)!==-1&&t.indexOf(`e-`)===-1)return t.split(`.`)[1].length;if(t.indexOf(`e-`)!==-1){let e=t.split(`e-`);return parseInt(e[1],10)}return 0}function Gv(e,t){let n=10**t;return Math.round(e*n)/n}function Kv(e,t,n){if(typeof e==`number`){if(!Number.isFinite(t)||!Number.isFinite(n)||!Number.isFinite(e)||e<=0)throw Error(`Slider requires finite \`min\` and \`max\` values and a finite \`step\` greater than 0. Received min=${t}, max=${n}, step=${e}.`);let r=n-t,i=Math.ceil(r/e),a=Wv(e),o=10**a;Math.round(r*o)%Math.round(e*o)===0&&i++;let s=[];for(let n=0;n<i;n++){let r=Gv(t+n*e,a);s.push(r)}return s}return[...new Set(e)].filter(e=>e>=t&&e<=n).sort((e,t)=>e-t)}function qv(e,t){if(t.length===0)return e;let n=t[0],r=Math.abs(e-n);for(let i of t){let t=Math.abs(e-i);t<r&&(r=t,n=i)}return n}function Jv(e,t,n){let r=t.indexOf(e);return r===-1?qv(e,t):n===`next`?r<t.length-1?t[r+1]:e:r>0?t[r-1]:e}function Yv(e,t,n=!0){let[r,i]=e,[a,o]=t,s=(o-a)/(i-r);return e=>{let t=a+s*(e-r);return n?t>Math.max(a,o)?Math.max(a,o):t<Math.min(a,o)?Math.min(a,o):t:t}}var Xv=Rm({component:`slider`,parts:[`root`,`thumb`,`range`,`tick`,`tick-label`,`thumb-label`]}),Zv=new um(`Slider.Root`),Qv=class{opts;attachment;#e=A(!1);get isActive(){return L(this.#e)}set isActive(e){j(this.#e,e,!0)}#t=A(0);#n=k(()=>this.opts.orientation.current===`horizontal`?this.opts.dir.current===`rtl`?`rl`:`lr`:this.opts.dir.current===`rtl`?`tb`:`bt`);get direction(){return L(this.#n)}set direction(e){j(this.#n,e)}#r=k(()=>Kv(this.opts.step.current,this.opts.min.current,this.opts.max.current));get normalizedSteps(){return L(this.#r)}set normalizedSteps(e){j(this.#r,e)}domContext;constructor(e){this.opts=e,this.attachment=Mm(e.ref),this.domContext=new jm(this.opts.ref),new T_(()=>this.opts.ref.current,this.#i)}#i=()=>{j(this.#t,L(this.#t)+1)};isThumbActive(e){return this.isActive}#a=k(()=>{if(!this.opts.disabled.current)return this.opts.orientation.current===`horizontal`?`pan-y`:`pan-x`});getAllThumbs=()=>{let e=this.opts.ref.current;return e?Array.from(e.querySelectorAll(Xv.selector(`thumb`))):[]};getThumbScale=()=>{let e=this.opts.trackPadding?.current;if(e!==void 0&&e>0)return[e,100-e];if(this.opts.thumbPositioning.current===`exact`)return[0,100];L(this.#t);let t=this.opts.orientation.current===`vertical`,n=this.getAllThumbs()[0],r=t?n?.offsetHeight:n?.offsetWidth;if(r===void 0||Number.isNaN(r)||r===0)return[0,100];let i=t?this.opts.ref.current?.offsetHeight:this.opts.ref.current?.offsetWidth;if(i===void 0||Number.isNaN(i)||i===0)return[0,100];let a=r/2/i*100;return[a,100-a]};getPositionFromValue=e=>this.getValueToPosition()(e);getValueToPosition=()=>Yv([this.opts.min.current,this.opts.max.current],this.getThumbScale());#o=k(()=>({id:this.opts.id.current,"data-orientation":this.opts.orientation.current,"data-disabled":Pm(this.opts.disabled.current),style:{touchAction:L(this.#a)},[Xv.root]:``,...this.attachment}));get props(){return L(this.#o)}set props(e){j(this.#o,e)}},$v=class extends Qv{opts;isMulti=!1;constructor(e){super(e),this.opts=e,_m(()=>Zp(Yr(this.domContext.getDocument(),`pointerdown`,this.handlePointerDown),Yr(this.domContext.getDocument(),`pointerup`,this.handlePointerUp),Yr(this.domContext.getDocument(),`pointermove`,this.handlePointerMove),Yr(this.domContext.getDocument(),`pointerleave`,this.handlePointerUp))),pm([()=>this.opts.step.current,()=>this.opts.min.current,()=>this.opts.max.current,()=>this.opts.value.current],([e,t,n,r])=>{let i=Kv(e,t,n),a=e=>i.includes(e),o=e=>qv(e,i);a(r)||(this.opts.value.current=o(r))})}isTickValueSelected=e=>this.opts.value.current===e;applyPosition({clientXY:e,start:t,end:n}){let r=this.opts.min.current,i=this.opts.max.current,a=(e-t)/(n-t)*(i-r)+r;if(a<r)this.updateValue(r);else if(a>i)this.updateValue(i);else{let e=this.normalizedSteps,t=qv(a,e);this.updateValue(t)}}updateValue=e=>{this.opts.value.current=qv(e,this.normalizedSteps)};handlePointerMove=e=>{if(!this.isActive||this.opts.disabled.current)return;e.preventDefault(),e.stopPropagation();let t=this.opts.ref.current,n=this.getAllThumbs()[0];if(!t||!n)return;n.focus();let{left:r,right:i,top:a,bottom:o}=t.getBoundingClientRect();this.direction===`lr`?this.applyPosition({clientXY:e.clientX,start:r,end:i}):this.direction===`rl`?this.applyPosition({clientXY:e.clientX,start:i,end:r}):this.direction===`bt`?this.applyPosition({clientXY:e.clientY,start:o,end:a}):this.direction===`tb`&&this.applyPosition({clientXY:e.clientY,start:a,end:o})};handlePointerDown=e=>{if(e.button!==0||this.opts.disabled.current)return;let t=this.opts.ref.current,n=this.getAllThumbs()[0];if(!n||!t)return;let r=e.composedPath()[0]??e.target;Jm(r)&&t.contains(r)&&(e.preventDefault(),n.focus(),this.isActive=!0,this.handlePointerMove(e))};handlePointerUp=()=>{this.opts.disabled.current||(this.isActive&&this.opts.onValueCommit.current(Ar(()=>this.opts.value.current)),this.isActive=!1)};#e=k(()=>{let e=this.opts.value.current;return Array.from({length:1},()=>{let t=e,n=this.getPositionFromValue(t),r=Hv(this.direction,n);return{role:`slider`,"aria-valuemin":this.opts.min.current,"aria-valuemax":this.opts.max.current,"aria-valuenow":t,"aria-disabled":Nm(this.opts.disabled.current),"aria-orientation":this.opts.orientation.current,"data-value":t,"data-orientation":this.opts.orientation.current,style:r,[Xv.thumb]:``}})});get thumbsPropsArr(){return L(this.#e)}set thumbsPropsArr(e){j(this.#e,e)}#t=k(()=>this.thumbsPropsArr.map((e,t)=>t));get thumbsRenderArr(){return L(this.#t)}set thumbsRenderArr(e){j(this.#t,e)}#n=k(()=>{let e=this.normalizedSteps,t=this.opts.value.current,n=this.getValueToPosition();return e.map((r,i)=>{let a=n(r),o=i===0,s=i===e.length-1,c=o?0:s?-100:-50,l=Uv(this.direction,a,c),u=r<=t;return{"data-disabled":Pm(this.opts.disabled.current),"data-orientation":this.opts.orientation.current,"data-bounded":u?``:void 0,"data-value":r,"data-selected":this.isTickValueSelected(r)?``:void 0,style:l,[Xv.tick]:``}})});get ticksPropsArr(){return L(this.#n)}set ticksPropsArr(e){j(this.#n,e)}#r=k(()=>this.ticksPropsArr.map((e,t)=>t));get ticksRenderArr(){return L(this.#r)}set ticksRenderArr(e){j(this.#r,e)}#i=k(()=>this.ticksPropsArr.map((e,t)=>({value:e[`data-value`],index:t})));get tickItemsArr(){return L(this.#i)}set tickItemsArr(e){j(this.#i,e)}#a=k(()=>[{value:this.opts.value.current,index:0}]);get thumbItemsArr(){return L(this.#a)}set thumbItemsArr(e){j(this.#a,e)}snippetProps=ty(this)},ey=class extends Qv{opts;isMulti=!0;#e=A(null);get activeThumb(){return L(this.#e)}set activeThumb(e){j(this.#e,e,!0)}#t=A(0);get currentThumbIdx(){return L(this.#t)}set currentThumbIdx(e){j(this.#t,e,!0)}constructor(e){super(e),this.opts=e,_m(()=>Zp(Yr(this.domContext.getDocument(),`pointerdown`,this.handlePointerDown),Yr(this.domContext.getDocument(),`pointerup`,this.handlePointerUp),Yr(this.domContext.getDocument(),`pointermove`,this.handlePointerMove),Yr(this.domContext.getDocument(),`pointerleave`,this.handlePointerUp))),pm([()=>this.opts.step.current,()=>this.opts.min.current,()=>this.opts.max.current,()=>this.opts.value.current],([e,t,n,r])=>{let i=Kv(e,t,n),a=e=>i.includes(e),o=e=>qv(e,i);r.some(e=>!a(e))&&(this.opts.value.current=r.map(o))})}isTickValueSelected=e=>this.opts.value.current.includes(e);isThumbActive(e){return this.isActive&&this.activeThumb?.idx===e}applyPosition({clientXY:e,activeThumbIdx:t,start:n,end:r}){let i=this.opts.min.current,a=this.opts.max.current,o=(e-n)/(r-n)*(a-i)+i;if(o<i)this.updateValue(i,t);else if(o>a)this.updateValue(a,t);else{let e=this.normalizedSteps,n=qv(o,e);this.updateValue(n,t)}}#n=e=>{let t=this.getAllThumbs();if(!t.length)return;for(let e of t)e.blur();let n=t.map(t=>{if(this.opts.orientation.current===`horizontal`){let{left:n,right:r}=t.getBoundingClientRect();return Math.abs(e.clientX-(n+r)/2)}{let{top:n,bottom:r}=t.getBoundingClientRect();return Math.abs(e.clientY-(n+r)/2)}}),r=t[n.indexOf(Math.min(...n))];return{node:r,idx:t.indexOf(r)}};handlePointerMove=e=>{if(!this.isActive||this.opts.disabled.current)return;e.preventDefault(),e.stopPropagation();let t=this.opts.ref.current,n=this.activeThumb;if(!t||!n)return;n.node.focus();let{left:r,right:i,top:a,bottom:o}=t.getBoundingClientRect(),s=this.direction;s===`lr`?this.applyPosition({clientXY:e.clientX,activeThumbIdx:n.idx,start:r,end:i}):s===`rl`?this.applyPosition({clientXY:e.clientX,activeThumbIdx:n.idx,start:i,end:r}):s===`bt`?this.applyPosition({clientXY:e.clientY,activeThumbIdx:n.idx,start:o,end:a}):s===`tb`&&this.applyPosition({clientXY:e.clientY,activeThumbIdx:n.idx,start:a,end:o})};handlePointerDown=e=>{if(e.button!==0||this.opts.disabled.current)return;let t=this.opts.ref.current,n=this.#n(e);if(!n||!t)return;let r=e.composedPath()[0]??e.target;Jm(r)&&t.contains(r)&&(e.preventDefault(),this.activeThumb=n,n.node.focus(),this.isActive=!0,this.handlePointerMove(e))};handlePointerUp=()=>{this.opts.disabled.current||(this.isActive&&this.opts.onValueCommit.current(Ar(()=>this.opts.value.current)),this.isActive=!1)};getAllThumbs=()=>{let e=this.opts.ref.current;return e?Array.from(e.querySelectorAll(Xv.selector(`thumb`))):[]};updateValue=(e,t)=>{let n=this.opts.value.current;if(!n.length){this.opts.value.current.push(e);return}if(n[t]===e)return;let r=[...n];if(!p_(t,r))return;let i=r[t]>e?-1:1,a=()=>{let n=t+i;r[t]=r[n],r[n]=e;let a=this.getAllThumbs();a.length&&(a[n]?.focus(),this.activeThumb={node:a[n],idx:n})};if(this.opts.autoSort.current&&(i===-1&&e<r[t-1]||i===1&&e>r[t+1])){a(),this.opts.value.current=r;return}let o=this.normalizedSteps;r[t]=qv(e,o),this.opts.value.current=r};#r=k(()=>{let e=this.opts.value.current;return Array.from({length:e.length||1},(t,n)=>{let r=Ar(()=>this.currentThumbIdx);r<e.length&&Ar(()=>{this.currentThumbIdx=r+1});let i=e[n],a=this.getPositionFromValue(i??0),o=Hv(this.direction,a);return{role:`slider`,"aria-valuemin":this.opts.min.current,"aria-valuemax":this.opts.max.current,"aria-valuenow":i,"aria-disabled":Nm(this.opts.disabled.current),"aria-orientation":this.opts.orientation.current,"data-value":i,"data-orientation":this.opts.orientation.current,style:o,[Xv.thumb]:``}})});get thumbsPropsArr(){return L(this.#r)}set thumbsPropsArr(e){j(this.#r,e)}#i=k(()=>this.thumbsPropsArr.map((e,t)=>t));get thumbsRenderArr(){return L(this.#i)}set thumbsRenderArr(e){j(this.#i,e)}#a=k(()=>{let e=this.normalizedSteps,t=this.opts.value.current,n=this.getValueToPosition();return e.map((r,i)=>{let a=n(r),o=i===0,s=i===e.length-1,c=o?0:s?-100:-50,l=Uv(this.direction,a,c),u=t.length===1?r<=t[0]:t[0]<=r&&r<=t[t.length-1];return{"data-disabled":Pm(this.opts.disabled.current),"data-orientation":this.opts.orientation.current,"data-bounded":u?``:void 0,"data-value":r,style:l,[Xv.tick]:``}})});get ticksPropsArr(){return L(this.#a)}set ticksPropsArr(e){j(this.#a,e)}#o=k(()=>this.ticksPropsArr.map((e,t)=>t));get ticksRenderArr(){return L(this.#o)}set ticksRenderArr(e){j(this.#o,e)}#s=k(()=>this.ticksPropsArr.map((e,t)=>({value:e[`data-value`],index:t})));get tickItemsArr(){return L(this.#s)}set tickItemsArr(e){j(this.#s,e)}#c=k(()=>this.opts.value.current.map((e,t)=>({value:e,index:t})));get thumbItemsArr(){return L(this.#c)}set thumbItemsArr(e){j(this.#c,e)}snippetProps=ty(this)};function ty(e){return{get ticks(){return e.ticksRenderArr},get thumbs(){return e.thumbsRenderArr},get tickItems(){return e.tickItemsArr},get thumbItems(){return e.thumbItemsArr}}}var ny=class{static create(e){let{type:t,...n}=e,r=t===`single`?new $v(n):new ey(n);return Zv.set(r)}},ry=[Bm,Vm,Hm,zm,Um,`End`],iy=class e{static create(t){return new e(t,Zv.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=Mm(e.ref)}#e=k(()=>{if(Array.isArray(this.root.opts.value.current)){let e=this.root.opts.value.current.length>1?this.root.getPositionFromValue(Math.min(...this.root.opts.value.current)??0):0,t=100-this.root.getPositionFromValue(Math.max(...this.root.opts.value.current)??0);return{position:`absolute`,...Vv(this.root.direction,e,t)}}{let e=this.root.opts.trackPadding?.current,t=this.root.opts.value.current,n=this.root.opts.max.current,r=e!==void 0&&e>0&&t===n?0:100-this.root.getPositionFromValue(t);return{position:`absolute`,...Vv(this.root.direction,0,r)}}});get rangeStyles(){return L(this.#e)}set rangeStyles(e){j(this.#e,e)}#t=k(()=>({id:this.opts.id.current,"data-orientation":this.root.opts.orientation.current,"data-disabled":Pm(this.root.opts.disabled.current),style:this.rangeStyles,[Xv.range]:``,...this.attachment}));get props(){return L(this.#t)}set props(e){j(this.#t,e)}},ay=class e{static create(t){return new e(t,Zv.get())}opts;root;attachment;#e=k(()=>this.root.opts.disabled.current||this.opts.disabled.current);constructor(e,t){this.opts=e,this.root=t,this.attachment=Mm(e.ref),this.onkeydown=this.onkeydown.bind(this)}#t(e){this.root.isMulti?this.root.updateValue(e,this.opts.index.current):this.root.updateValue(e)}onkeydown(e){if(L(this.#e))return;let t=this.opts.ref.current;if(!t)return;let n=this.root.getAllThumbs();if(!n.length)return;let r=n.indexOf(t);if(this.root.isMulti&&(this.root.currentThumbIdx=r),!ry.includes(e.key))return;e.preventDefault();let i=this.root.opts.min.current,a=this.root.opts.max.current,o=this.root.opts.value.current,s=Array.isArray(o)?o[r]:o,c=this.root.opts.orientation.current,l=this.root.direction,u=this.root.normalizedSteps;switch(e.key){case Um:this.#t(i);break;case`End`:this.#t(a);break;case Bm:if(c!==`horizontal`)break;if(e.metaKey){let e=l===`rl`?a:i;this.#t(e)}else{let e=Jv(s,u,l===`rl`?`next`:`prev`);this.#t(e)}break;case Vm:if(c!==`horizontal`)break;if(e.metaKey){let e=l===`rl`?i:a;this.#t(e)}else{let e=Jv(s,u,l===`rl`?`prev`:`next`);this.#t(e)}break;case Hm:if(e.metaKey){let e=l===`tb`?i:a;this.#t(e)}else{let e=Jv(s,u,l===`tb`?`prev`:`next`);this.#t(e)}break;case zm:if(e.metaKey){let e=l===`tb`?a:i;this.#t(e)}else{let e=Jv(s,u,l===`tb`?`next`:`prev`);this.#t(e)}}this.root.opts.onValueCommit.current(this.root.opts.value.current)}#n=k(()=>({...this.root.thumbsPropsArr[this.opts.index.current],id:this.opts.id.current,onkeydown:this.onkeydown,"data-active":this.root.isThumbActive(this.opts.index.current)?``:void 0,"data-disabled":Pm(this.opts.disabled.current||this.root.opts.disabled.current),tabindex:this.opts.disabled.current||this.root.opts.disabled.current?-1:0,...this.attachment}));get props(){return L(this.#n)}set props(e){j(this.#n,e)}},oy=new Set([`$$slots`,`$$events`,`$$legacy`,`children`,`child`,`id`,`ref`,`value`,`type`,`onValueChange`,`onValueCommit`,`disabled`,`min`,`max`,`step`,`dir`,`autoSort`,`orientation`,`thumbPositioning`,`trackPadding`]),sy=R(`<span><!></span>`);function cy(e,t){let n=li();D(t,!0);let r=K(t,`id`,19,()=>Qm(n)),i=K(t,`ref`,15,null),a=K(t,`value`,15),o=K(t,`onValueChange`,3,Zm),s=K(t,`onValueCommit`,3,Zm),c=K(t,`disabled`,3,!1),l=K(t,`step`,3,1),u=K(t,`dir`,3,`ltr`),d=K(t,`autoSort`,3,!0),p=K(t,`orientation`,3,`horizontal`),m=K(t,`thumbPositioning`,3,`contain`),h=W(t,oy),g=k(()=>t.min===void 0?Array.isArray(l())?Math.min(...l()):0:t.min),_=k(()=>t.max===void 0?Array.isArray(l())?Math.max(...l()):100:t.max);function v(){if(a()===void 0)return t.type===`single`?L(g):[]}v(),pm.pre(()=>a(),()=>{v()});let y=ny.create({id:Q(()=>r()),ref:Q(()=>i(),e=>i(e)),value:Q(()=>a(),e=>{a(e),o()(e)}),onValueCommit:Q(()=>s()),disabled:Q(()=>c()),min:Q(()=>L(g)),max:Q(()=>L(_)),step:Q(()=>l()),dir:Q(()=>u()),autoSort:Q(()=>d()),orientation:Q(()=>p()),thumbPositioning:Q(()=>m()),type:Ar(()=>t.type),trackPadding:Q(()=>t.trackPadding)}),b=k(()=>om(h,y.props));var x=z(),S=N(x),ee=e=>{var n=z(),r=N(n);{let e=k(()=>({props:L(b),...y.snippetProps}));U(r,()=>t.child,()=>L(e))}B(e,n)},C=e=>{var n=sy();ha(n,()=>({...L(b)})),U(M(n),()=>t.children??f,()=>y.snippetProps),E(n),B(e,n)};H(S,e=>{t.child?e(ee):e(C,-1)}),B(e,x),O()}var ly=new Set([`$$slots`,`$$events`,`$$legacy`,`children`,`child`,`ref`,`id`]),uy=R(`<span><!></span>`);function dy(e,t){let n=li();D(t,!0);let r=K(t,`ref`,15,null),i=K(t,`id`,19,()=>Qm(n)),a=W(t,ly),o=iy.create({id:Q(()=>i()),ref:Q(()=>r(),e=>r(e))}),s=k(()=>om(a,o.props));var c=z(),l=N(c),u=e=>{var n=z();U(N(n),()=>t.child,()=>({props:L(s)})),B(e,n)},d=e=>{var n=uy();ha(n,()=>({...L(s)})),U(M(n),()=>t.children??f),E(n),B(e,n)};H(l,e=>{t.child?e(u):e(d,-1)}),B(e,c),O()}var fy=new Set([`$$slots`,`$$events`,`$$legacy`,`children`,`child`,`ref`,`id`,`index`,`disabled`]),py=R(`<span><!></span>`);function my(e,t){let n=li();D(t,!0);let r=K(t,`ref`,15,null),i=K(t,`id`,19,()=>Qm(n)),a=K(t,`disabled`,3,!1),o=W(t,fy),s=ay.create({id:Q(()=>i()),ref:Q(()=>r(),e=>r(e)),index:Q(()=>t.index),disabled:Q(()=>a())}),c=k(()=>om(o,s.props));var l=z(),u=N(l),d=e=>{var n=z(),r=N(n);{let e=k(()=>({active:s.root.isThumbActive(s.opts.index.current),props:L(c)}));U(r,()=>t.child,()=>L(e))}B(e,n)},p=e=>{var n=py();ha(n,()=>({...L(c)}));var r=M(n);{let e=k(()=>({active:s.root.isThumbActive(s.opts.index.current)}));U(r,()=>t.children??f,()=>L(e))}E(n),B(e,n)};H(u,e=>{t.child?e(d):e(p,-1)}),B(e,l),O()}var hy=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`max`,`value`]),gy=R(`<div data-slot="progress-indicator" class="bg-primary size-full flex-1"></div>`);function _y(e,t){D(t,!0);let n=K(t,`ref`,15,null),r=K(t,`max`,3,100),i=W(t,hy);var a=z(),o=N(a);{let e=k(()=>Fd(`bg-muted h-1.5 rounded-full relative flex w-full items-center overflow-x-hidden`,t.class));Mi(o,()=>N_,(a,o)=>{o(a,G({"data-slot":`progress`,get class(){return L(e)},get value(){return t.value},get max(){return r()}},()=>i,{get ref(){return n()},set ref(e){n(e)},children:(e,n)=>{var i=gy();I(()=>Yi(i,`transform: translateX(-${100-100*(t.value??0)/(r()??1)}%)`)),B(e,i)},$$slots:{default:!0}}))})}B(e,a),O()}var vy={name:`play`,size:24,node:[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`}]]};vy.node;var yy=new Set([`$$slots`,`$$events`,`$$legacy`]);function by(e,t){let n=W(t,yy);Wa(e,G(()=>n,{get icon(){return vy}}))}var xy={name:`pause`,size:24,node:[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`}]]};xy.node;var Sy=new Set([`$$slots`,`$$events`,`$$legacy`]);function Cy(e,t){let n=W(t,Sy);Wa(e,G(()=>n,{get icon(){return xy}}))}var wy={name:`rotate-ccw`,size:24,node:[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`}],[`path`,{d:`M3 3v5h5`}]]};wy.node;var Ty=new Set([`$$slots`,`$$events`,`$$legacy`]);function Ey(e,t){let n=W(t,Ty);Wa(e,G(()=>n,{get icon(){return wy}}))}var Dy={name:`bell-ring`,size:24,node:[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`}],[`path`,{d:`M22 8c0-2.3-.8-4.3-2-6`}],[`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`}],[`path`,{d:`M4 2C2.8 3.7 2 5.7 2 8`}]]};Dy.node;var Oy=new Set([`$$slots`,`$$events`,`$$legacy`]);function ky(e,t){let n=W(t,Oy);Wa(e,G(()=>n,{get icon(){return Dy}}))}var Ay={name:`timer`,size:24,node:[[`line`,{x1:`10`,x2:`14`,y1:`2`,y2:`2`}],[`line`,{x1:`12`,x2:`15`,y1:`14`,y2:`11`}],[`circle`,{cx:`12`,cy:`14`,r:`8`}]]};Ay.node;var jy=new Set([`$$slots`,`$$events`,`$$legacy`]);function My(e,t){let n=W(t,jy);Wa(e,G(()=>n,{get icon(){return Ay}}))}var Ny=R(`<!> <span> </span>`,1),Py=R(`<div><div class="flex min-w-0 flex-1 flex-col justify-center"><div class="flex items-center gap-2.5"><!> <span class="text-[16px] font-medium text-muted-foreground"> </span> <button class="phase-button svelte-16wrj27" type="button"> </button> <!></div> <div class="pomodoro-main-row svelte-16wrj27"><span class="pomodoro-time numeric svelte-16wrj27" aria-live="off"> </span> <div class="flex shrink-0 items-center gap-2.5 svelte-16wrj27"><!> <!></div></div></div> <!></div>`);function Fy(e,t){D(t,!0),Na(()=>Xf());let n=k(()=>Z.finished?Z.phase===`focus`?q(`focusDone`):q(`breakDone`):Z.phase===`focus`?q(`focus`):q(`rest`)),r=k(()=>Z.alarmActive?q(`stopAlarm`):Z.finished?Z.phase===`focus`?q(`startBreak`):q(`startFocus`):Z.running?q(`pause`):q(`start`)),i=k(()=>Hf(Z.remainingMs)),a=k(Uf);function o(){Z.alarmActive?np():$f()}var s=Py();let c;var l=M(s),u=M(l),d=M(u);My(d,{class:`size-[18px] text-brand`,strokeWidth:1.8});var f=F(d,2),p=P(f,!0),m=F(f,2),h=P(m,!0),g=F(m,2),_=e=>{Rd(e,{variant:`outline`,class:`h-6 border-border bg-secondary px-2 text-[12px] font-medium text-muted-foreground`,children:(e,t)=>{Me();var n=ci();I(e=>V(n,e),[()=>q(`roundCount`,{count:Z.rounds})]),B(e,n)},$$slots:{default:!0}})};H(g,e=>{Z.rounds>0&&e(_)}),E(u);var v=F(u,2),y=M(v),b=P(y,!0),x=F(y,2),S=M(x);{let e=k(()=>Fd(`h-12 gap-2 rounded-[14px] px-5 text-[16px] font-semibold shadow-none`,Z.finished&&!Z.alarmActive&&`bg-success text-[#041b14] hover:bg-success/90`,Z.alarmActive&&`bg-danger text-white hover:bg-danger/90`));lp(S,{get class(){return L(e)},type:`button`,get title(){return L(r)},onclick:o,children:(e,t)=>{var n=Ny(),i=N(n),a=e=>{ky(e,{class:`size-[19px]`,strokeWidth:1.9})},o=e=>{Cy(e,{class:`size-[19px]`,strokeWidth:1.9})},s=e=>{by(e,{class:`size-[19px] fill-current`,strokeWidth:1.9})};H(i,e=>{Z.alarmActive?e(a):Z.running?e(o,1):e(s,-1)});var c=P(F(i,2),!0);I(()=>V(c,L(r))),B(e,n)},$$slots:{default:!0}})}var ee=F(S,2);{let e=k(()=>q(`resetPomodoro`)),t=k(()=>q(`reset`));lp(ee,{variant:`outline`,size:`icon`,class:`size-12 rounded-[14px] border-border bg-transparent text-muted-foreground hover:bg-secondary hover:text-foreground`,type:`button`,get onclick(){return ep},get"aria-label"(){return L(e)},get title(){return L(t)},children:(e,t)=>{Ey(e,{class:`size-[20px]`,strokeWidth:1.8})},$$slots:{default:!0}})}E(x),E(v),E(l);var C=F(l,2);{let e=k(()=>Fd(`mt-3 h-1.5 bg-secondary`,Z.finished?`[&>[data-slot=progress-indicator]]:bg-success`:`[&>[data-slot=progress-indicator]]:bg-brand`));_y(C,{get value(){return L(a)},get class(){return L(e)}})}E(s),I((e,t)=>{c=qi(s,1,`pomodoro svelte-16wrj27`,null,c,{"is-break":Z.phase===`break`,"is-finished":Z.finished,"is-alarm":Z.alarmActive}),pa(s,`data-phase`,Z.phase),pa(s,`data-running`,Z.running?`true`:`false`),V(p,e),m.disabled=Z.running,pa(m,`title`,t),V(h,L(n)),V(b,L(i))},[()=>q(`pomodoro`),()=>q(`switchPhase`)]),Zr(`click`,m,function(...e){tp?.apply(this,e)}),B(e,s),O()}Qr([`click`]);var Iy=86400,$=dn({presetIndex:0,durationMs:6e4,running:!1,remainingMs:6e4,endsAt:0,finished:!1,alarmActive:!1}),Ly=0,Ry=null,zy=``;function By(){return J.countdown}function Vy(e){let t=By().presets.length;if(t<=0)return 0;let n=Math.round(Number(e));return Number.isFinite(n)?Math.max(0,Math.min(t-1,n)):0}function Hy(e=$.presetIndex){let t=Number(By().presets[Vy(e)]);return Math.max(1,Math.min(Iy,Number.isFinite(t)?Math.round(t):60))}function Uy(e=$.presetIndex){return Hy(e)*1e3}function Wy(e){let t=Math.max(0,Math.round(e)),n=Math.floor(t/3600),r=Math.floor(t%3600/60),i=t%60,a=e=>String(e).padStart(2,`0`);return n>0?`${n}:${a(r)}:${a(i)}`:`${a(r)}:${a(i)}`}function Gy(e){return Wy(Math.ceil(Math.max(0,e)/1e3))}function Ky(){let e=$.durationMs;return e<=0?0:Math.max(0,Math.min(100,(e-$.remainingMs)/e*100))}function qy(){let e=By().presets.join(`/`);e!==zy&&(zy=e,$.presetIndex=Vy($.presetIndex),!$.running&&!$.finished&&($.durationMs=Uy(),$.remainingMs=$.durationMs))}function Jy(){$.presetIndex=Vy($.presetIndex),$.running=!1,$.endsAt=0,$.finished=!1,$.durationMs=Uy(),$.remainingMs=$.durationMs,$.alarmActive=!1,ms()}function Yy(){zy=By().presets.join(`/`),$.presetIndex=Vy($.presetIndex),!$.running&&!$.finished&&($.durationMs=Uy(),$.remainingMs=$.durationMs),Ry||(Ry=setInterval(Qy,250),document.addEventListener(`visibilitychange`,Zy),window.__DSH_COUNTDOWN__=$)}function Xy(){Ry&&clearInterval(Ry),Ry=null,document.removeEventListener(`visibilitychange`,Zy),ss(),Jy()}function Zy(){document.hidden||Qy()}function Qy(){if(!By().enabled){Jy();return}if(qy(),!$.running)return;let e=$.endsAt-Date.now();e<=0?($.remainingMs=0,ob()):$.remainingMs=e}function $y(){Ly+=1,Ly===1&&Yy();let e=!1;return()=>{e||(e=!0,Ly=Math.max(0,Ly-1),Ly===0&&Xy())}}function eb(e){!By().enabled||$.running||$.alarmActive||($.presetIndex=Vy(e),$.finished=!1,$.running=!1,$.endsAt=0,$.durationMs=Uy(),$.remainingMs=$.durationMs,ms())}function tb(){By().enabled&&!$.alarmActive&&(es(),$.finished&&($.finished=!1,$.durationMs=Uy(),$.remainingMs=$.durationMs),$.remainingMs<=0&&($.remainingMs=$.durationMs),$.running=!0,$.endsAt=Date.now()+$.remainingMs,ms(),J.pomodoro.soundPath.trim()||os(Math.max(.06,($.endsAt-Date.now())/1e3),$.endsAt))}function nb(){$.running&&($.remainingMs=Math.max(0,$.endsAt-Date.now()),$.running=!1,$.endsAt=0,ss())}function rb(){$.running?nb():tb()}function ib(){$.running=!1,$.finished=!1,$.endsAt=0,$.durationMs=Uy(),$.remainingMs=$.durationMs,$.alarmActive=!1,ms()}function ab(){($.alarmActive||$.finished)&&(ms(),$.alarmActive=!1,$.finished=!1,$.running=!1,$.endsAt=0,$.durationMs=Uy(),$.remainingMs=$.durationMs)}function ob(){$.running=!1,$.remainingMs=0,$.finished=!0,$.alarmActive=!0;let e=cs($.endsAt);ps(J.pomodoro.soundPath,e),ys(!0);try{navigator.vibrate?.([140,90,180])}catch{}}var sb={name:`hourglass`,size:24,node:[[`path`,{d:`M5 22h14`}],[`path`,{d:`M5 2h14`}],[`path`,{d:`M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22`}],[`path`,{d:`M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2`}]]};sb.node;var cb=new Set([`$$slots`,`$$events`,`$$legacy`]);function lb(e,t){let n=W(t,cb);Wa(e,G(()=>n,{get icon(){return sb}}))}var ub=R(`<!> <span> </span>`,1),db=R(`<button type="button"> </button>`),fb=R(`<div><div class="flex min-w-0 flex-1 flex-col justify-center"><div class="flex min-w-0 items-center gap-2.5"><!> <span class="text-[16px] font-medium text-muted-foreground"> </span> <!></div> <div class="countdown-main-row svelte-1rvtpf1"><span class="countdown-time numeric svelte-1rvtpf1" aria-live="off"> </span> <div class="flex shrink-0 items-center gap-2.5 svelte-1rvtpf1"><!> <!></div></div> <!> <div class="preset-row svelte-1rvtpf1" role="group"></div></div></div>`);function pb(e,t){D(t,!0),Na(()=>$y());let n=k(()=>J.countdown.presets),r=k(()=>Gy($.remainingMs)),i=k(Ky),a=k(()=>$.alarmActive?q(`confirmEnd`):$.running?q(`pause`):q(`start`));function o(){$.alarmActive?ab():rb()}var s=fb();let c;var l=M(s),u=M(l),d=M(u);lb(d,{class:`size-[18px] shrink-0 text-brand`,strokeWidth:1.8});var f=F(d,2),p=P(f,!0),m=F(f,2),h=e=>{Rd(e,{variant:`outline`,class:`h-6 border-border bg-danger-soft px-2 text-[12px] font-medium text-danger`,children:(e,t)=>{Me();var n=ci();I(e=>V(n,e),[()=>q(`countdownFinished`)]),B(e,n)},$$slots:{default:!0}})};H(m,e=>{$.alarmActive&&e(h)}),E(u);var g=F(u,2),_=M(g),v=P(_,!0),y=F(_,2),b=M(y);{let e=k(()=>Fd(`h-12 gap-2 rounded-[14px] px-5 text-[16px] font-semibold shadow-none`,$.alarmActive&&`bg-danger text-white hover:bg-danger/90`));lp(b,{get class(){return L(e)},type:`button`,get title(){return L(a)},onclick:o,children:(e,t)=>{var n=ub(),r=N(n),i=e=>{ky(e,{class:`size-[19px]`,strokeWidth:1.9})},o=e=>{Cy(e,{class:`size-[19px]`,strokeWidth:1.9})},s=e=>{by(e,{class:`size-[19px] fill-current`,strokeWidth:1.9})};H(r,e=>{$.alarmActive?e(i):$.running?e(o,1):e(s,-1)});var c=P(F(r,2),!0);I(()=>V(c,L(a))),B(e,n)},$$slots:{default:!0}})}var x=F(b,2);{let e=k(()=>q(`resetCountdown`)),t=k(()=>q(`reset`));lp(x,{variant:`outline`,size:`icon`,class:`size-12 rounded-[14px] border-border bg-transparent text-muted-foreground hover:bg-secondary hover:text-foreground`,type:`button`,get disabled(){return $.alarmActive},get onclick(){return ib},get"aria-label"(){return L(e)},get title(){return L(t)},children:(e,t)=>{Ey(e,{class:`size-[20px]`,strokeWidth:1.8})},$$slots:{default:!0}})}E(y),E(g);var S=F(g,2);{let e=k(()=>Fd(`mt-3 h-1.5 bg-secondary`,$.alarmActive?`[&>[data-slot=progress-indicator]]:bg-danger`:`[&>[data-slot=progress-indicator]]:bg-brand`));_y(S,{get value(){return L(i)},get class(){return L(e)}})}var ee=F(S,2);Ei(ee,21,()=>L(n),Si,(e,t,n)=>{var r=db();let i;var a=P(r,!0);I((e,t)=>{i=qi(r,1,`preset-chip svelte-1rvtpf1`,null,i,{"is-active":$.presetIndex===n}),pa(r,`aria-pressed`,$.presetIndex===n),pa(r,`aria-label`,e),r.disabled=$.running||$.alarmActive,V(a,t)},[()=>Wy(L(t)),()=>Wy(L(t))]),Zr(`click`,r,()=>eb(n)),B(e,r)}),E(ee),E(l),E(s),I((e,t)=>{c=qi(s,1,`countdown svelte-1rvtpf1`,null,c,{"is-alarm":$.alarmActive}),pa(s,`data-running`,$.running?`true`:`false`),V(p,e),V(v,L(r)),pa(ee,`aria-label`,t)},[()=>q(`countdown`),()=>q(`countdownPresets`)]),B(e,s),O()}Qr([`click`]);var mb=R(`<div class="clock-graphic svelte-yiw3fu" aria-hidden="true"><!></div>`),hb=R(`<p class="mt-0.5 truncate text-[13px] text-muted-foreground"> </p>`),gb=R(`<div class="clock-aura svelte-yiw3fu" aria-hidden="true"></div> <!> <div class="clock-content relative z-10 flex min-h-0 flex-1 flex-col svelte-yiw3fu"><header class="flex items-start justify-between gap-3"><div class="flex min-w-0 items-center gap-3"><span class="grid size-11 shrink-0 place-items-center rounded-[13px] border border-border bg-secondary text-brand"><!></span> <div class="min-w-0"><p class="truncate text-[16px] font-semibold tracking-[-0.01em] text-foreground"> </p> <!></div></div> <!></header> <div class="clock-line flex items-baseline gap-3 svelte-yiw3fu"><span class="clock-time numeric svelte-yiw3fu"> </span> <span class="clock-seconds numeric svelte-yiw3fu"> </span></div> <!> <!></div>`,1);function _b(e,t){D(t,!0);let n=k(()=>ks(new Date(J.clockNow))),r=k(()=>J.weather),i=k(()=>!!(L(r)&&L(r).ok!==!1)),a=k(()=>L(r)?.current||{});Gd(e,{class:`clock-card relative flex min-h-0 flex-col overflow-hidden`,children:(e,t)=>{var o=gb(),s=F(N(o),2),c=e=>{var t=mb();kf(M(t),{get code(){return L(a).code},get isDay(){return L(a).isDay},class:`size-full`,strokeWidth:1.1}),E(t),B(e,t)};H(s,e=>{L(i)&&e(c)});var l=F(s,2),u=M(l),d=M(u),f=M(d);Vd(M(f),{class:`size-[22px]`,strokeWidth:1.7}),E(f);var p=F(f,2),m=M(p),h=P(m,!0),g=F(m,2),_=e=>{var t=hb(),r=P(t,!0);I(()=>V(r,L(n).periodLabel)),B(e,t)};H(g,e=>{L(n).periodLabel&&e(_)}),E(p),E(d),Rd(F(d,2),{variant:`outline`,class:`h-8 shrink-0 border-border bg-secondary px-3 text-[15px] font-medium text-muted-foreground`,children:(e,t)=>{Me();var r=ci();I(()=>V(r,L(n).greeting)),B(e,r)},$$slots:{default:!0}}),E(u);var v=F(u,2),y=M(v),b=P(y,!0),x=P(F(y,2),!0);E(v);var S=F(v,2),ee=e=>{Fy(e,{})},C=e=>{pb(e,{})};H(S,e=>{J.pomodoro.enabled?e(ee):J.countdown.enabled&&e(C,1)}),If(F(S,2),{get weather(){return L(r)}}),E(l),I(()=>{V(h,L(n).dateLabel),V(b,L(n).time),V(x,L(n).seconds)}),B(e,o)},$$slots:{default:!0}}),O()}var vb=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function yb(e,t){D(t,!0);let n=K(t,`ref`,15,null),r=W(t,vb);var i=z(),a=N(i);{let e=k(()=>Fd(`bg-muted text-muted-foreground rounded-full flex size-full items-center justify-center text-sm group-data-[size=sm]/avatar:text-xs`,t.class));Mi(a,()=>f_,(t,i)=>{i(t,G({"data-slot":`avatar-fallback`,get class(){return L(e)}},()=>r,{get ref(){return n()},set ref(e){n(e)}}))})}B(e,i),O()}var bb=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function xb(e,t){D(t,!0);let n=K(t,`ref`,15,null),r=W(t,bb);var i=z(),a=N(i);{let e=k(()=>Fd(`rounded-full aspect-square size-full object-cover`,t.class));Mi(a,()=>l_,(t,i)=>{i(t,G({"data-slot":`avatar-image`,get class(){return L(e)}},()=>r,{get ref(){return n()},set ref(e){n(e)}}))})}B(e,i),O()}var Sb=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`loadingStatus`,`size`,`class`]);function Cb(e,t){D(t,!0);let n=K(t,`ref`,15,null),r=K(t,`loadingStatus`,15,`loading`),i=K(t,`size`,3,`default`),a=W(t,Sb);var o=z(),s=N(o);{let e=k(()=>Fd(`size-8 rounded-full after:rounded-full data-[size=lg]:size-10 data-[size=sm]:size-6 group/avatar relative flex shrink-0 select-none after:absolute after:inset-0 after:border after:border-border after:mix-blend-darken dark:after:mix-blend-lighten`,t.class));Mi(s,()=>o_,(t,o)=>{o(t,G({"data-slot":`avatar`,get"data-size"(){return i()},get class(){return L(e)}},()=>a,{get ref(){return n()},set ref(e){n(e)},get loadingStatus(){return r()},set loadingStatus(e){r(e)}}))})}B(e,o),O()}var wb=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`orientation`,`children`]),Tb=R(`<!> <!>`,1);function Eb(e,t){D(t,!0);let n=K(t,`ref`,15,null),r=K(t,`orientation`,3,`vertical`),i=W(t,wb);var a=z(),o=N(a);{let e=k(()=>Fd(`data-horizontal:h-2.5 data-horizontal:flex-col data-horizontal:border-t data-horizontal:border-t-transparent data-vertical:h-full data-vertical:w-2.5 data-vertical:border-l data-vertical:border-l-transparent flex touch-none p-px select-none`,t.class));Mi(o,()=>Av,(a,o)=>{o(a,G({"data-slot":`scroll-area-scrollbar`,get"data-orientation"(){return r()},get orientation(){return r()},get class(){return L(e)}},()=>i,{get ref(){return n()},set ref(e){n(e)},children:(e,n)=>{var r=Tb(),i=N(r);U(i,()=>t.children??f),Mi(F(i,2),()=>Fv,(e,t)=>{t(e,{"data-slot":`scroll-area-thumb`,class:`rounded-full relative flex-1 bg-border`})}),B(e,r)},$$slots:{default:!0}}))})}B(e,a),O()}var Db=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`viewportRef`,`class`,`orientation`,`scrollbarXClasses`,`scrollbarYClasses`,`children`]),Ob=R(`<!> <!> <!> <!>`,1);function kb(e,t){D(t,!0);let n=K(t,`ref`,15,null),r=K(t,`viewportRef`,15,null),i=K(t,`orientation`,3,`vertical`),a=K(t,`scrollbarXClasses`,3,``),o=K(t,`scrollbarYClasses`,3,``),s=W(t,Db);var c=z(),l=N(c);{let e=k(()=>Fd(`relative`,t.class));Mi(l,()=>uv,(c,l)=>{l(c,G({"data-slot":`scroll-area`,get class(){return L(e)}},()=>s,{get ref(){return n()},set ref(e){n(e)},children:(e,n)=>{var s=Ob(),c=N(s);Mi(c,()=>pv,(e,n)=>{n(e,{"data-slot":`scroll-area-viewport`,class:`size-full rounded-[inherit] outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1`,get ref(){return r()},set ref(e){r(e)},children:(e,n)=>{var r=z();U(N(r),()=>t.children??f),B(e,r)},$$slots:{default:!0}})});var l=F(c,2),u=e=>{Eb(e,{orientation:`vertical`,get class(){return o()}})};H(l,e=>{(i()===`vertical`||i()===`both`)&&e(u)});var d=F(l,2),p=e=>{Eb(e,{orientation:`horizontal`,get class(){return a()}})};H(d,e=>{(i()===`horizontal`||i()===`both`)&&e(p)}),Mi(F(d,2),()=>Bv,(e,t)=>{t(e,{})}),B(e,s)},$$slots:{default:!0}}))})}B(e,c),O()}var Ab={name:`bell`,size:24,node:[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`}],[`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`}]]};Ab.node;var jb=new Set([`$$slots`,`$$events`,`$$legacy`]);function Mb(e,t){let n=W(t,jb);Wa(e,G(()=>n,{get icon(){return Ab}}))}var Nb={name:`bell-off`,size:24,node:[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`}],[`path`,{d:`M17 17H4a1 1 0 0 1-.74-1.673C4.59 13.956 6 12.499 6 8a6 6 0 0 1 .258-1.742`}],[`path`,{d:`m2 2 20 20`}],[`path`,{d:`M8.668 3.01A6 6 0 0 1 18 8c0 2.687.77 4.653 1.707 6.05`}]]};Nb.node;var Pb=new Set([`$$slots`,`$$events`,`$$legacy`]);function Fb(e,t){let n=W(t,Pb);Wa(e,G(()=>n,{get icon(){return Nb}}))}var Ib=R(`<span class="grid size-11 shrink-0 place-items-center rounded-[13px] border border-border bg-secondary text-brand"><!></span>`),Lb=R(`<p class="eyebrow"> </p>`),Rb=R(`<p class="mt-1 truncate text-[15px] text-muted-foreground"> </p>`),zb=R(`<div class="shrink-0"><!></div>`),Bb=R(`<div><div class="flex min-w-0 items-center gap-3"><!> <div class="min-w-0"><!> <h2 class="mt-1 truncate text-[24px] leading-tight font-semibold tracking-[-0.025em] text-foreground"> </h2> <!></div></div> <!></div>`);function Vb(e,t){D(t,!0);let n=K(t,`class`,3,``);var r=Bb(),i=M(r),a=M(i),o=e=>{var n=Ib();Mi(M(n),()=>t.icon,(e,t)=>{t(e,{class:`size-[23px]`,strokeWidth:1.8})}),E(n),B(e,n)};H(a,e=>{t.icon&&e(o)});var s=F(a,2),c=M(s),l=e=>{var n=Lb(),r=P(n,!0);I(()=>V(r,t.eyebrow)),B(e,n)};H(c,e=>{t.eyebrow&&e(l)});var u=F(c,2),d=P(u,!0),f=F(u,2),p=e=>{var n=Rb(),r=P(n,!0);I(()=>V(r,t.description)),B(e,n)};H(f,e=>{t.description&&e(p)}),E(s),E(i);var m=F(i,2),h=e=>{var n=zb();U(M(n),()=>t.children),E(n),B(e,n)};H(m,e=>{t.children&&e(h)}),E(r),I(e=>{qi(r,1,e),V(d,t.title)},[()=>Vi(Fd(`flex items-start justify-between gap-4`,n()))]),B(e,r),O()}var Hb=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),Ub=R(`<div><!></div>`);function Wb(e,t){D(t,!0);let n=K(t,`ref`,15,null),r=W(t,Hb);var i=Ub();ha(i,e=>({"data-slot":`empty-description`,class:e,...r}),[()=>Fd(`text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary`,t.class)]),U(M(i),()=>t.children??f),E(i),Ea(i,e=>n(e),()=>n()),B(e,i),O()}var Gb=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),Kb=R(`<div><!></div>`);function qb(e,t){D(t,!0);let n=K(t,`ref`,15,null),r=W(t,Gb);var i=Kb();ha(i,e=>({"data-slot":`empty-header`,class:e,...r}),[()=>Fd(`gap-2 flex max-w-sm flex-col items-center`,t.class)]),U(M(i),()=>t.children??f),E(i),Ea(i,e=>n(e),()=>n()),B(e,i),O()}var Jb=Vu({base:`mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0`,variants:{variant:{default:`bg-transparent`,icon:`bg-muted text-foreground flex size-10 shrink-0 items-center justify-center rounded-lg [&_svg:not([class*='size-'])]:size-6`}},defaultVariants:{variant:`default`}}),Yb=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`,`variant`]),Xb=R(`<div><!></div>`);function Zb(e,t){D(t,!0);let n=K(t,`ref`,15,null),r=K(t,`variant`,3,`default`),i=W(t,Yb);var a=Xb();ha(a,e=>({"data-slot":`empty-icon`,"data-variant":r(),class:e,...i}),[()=>Fd(Jb({variant:r()}),t.class)]),U(M(a),()=>t.children??f),E(a),Ea(a,e=>n(e),()=>n()),B(e,a),O()}var Qb=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),$b=R(`<div><!></div>`);function ex(e,t){D(t,!0);let n=K(t,`ref`,15,null),r=W(t,Qb);var i=$b();ha(i,e=>({"data-slot":`empty-title`,class:e,...r}),[()=>Fd(`text-lg font-medium tracking-tight`,t.class)]),U(M(i),()=>t.children??f),E(i),Ea(i,e=>n(e),()=>n()),B(e,i),O()}var tx=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),nx=R(`<div><!></div>`);function rx(e,t){D(t,!0);let n=K(t,`ref`,15,null),r=W(t,tx);var i=nx();ha(i,e=>({"data-slot":`empty`,class:e,...r}),[()=>Fd(`gap-4 rounded-lg border-dashed p-12 flex w-full min-w-0 flex-1 flex-col items-center justify-center text-center text-balance`,t.class)]),U(M(i),()=>t.children??f),E(i),Ea(i,e=>n(e),()=>n()),B(e,i),O()}var ix={name:`inbox`,size:24,node:[[`polyline`,{points:`22 12 16 12 14 15 10 15 8 12 2 12`}],[`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`}]]};ix.node;var ax=new Set([`$$slots`,`$$events`,`$$legacy`]);function ox(e,t){let n=W(t,ax);Wa(e,G(()=>n,{get icon(){return ix}}))}var sx=R(`<!> <!>`,1);function cx(e,t){D(t,!0);let n=K(t,`icon`,3,ox),r=K(t,`title`,3,``),i=K(t,`text`,3,``),a=K(t,`class`,3,``);{let t=k(()=>Fd(`gap-4 border-0 p-6 text-center`,a()));rx(e,{get class(){return L(t)},children:(e,t)=>{var a=sx(),o=N(a);Zb(o,{variant:`icon`,class:`mb-0 size-14 rounded-[16px] border border-border bg-secondary text-brand`,children:(e,t)=>{var r=z();Mi(N(r),n,(e,t)=>{t(e,{class:`size-[26px]`,strokeWidth:1.7})}),B(e,r)},$$slots:{default:!0}}),qb(F(o,2),{class:`max-w-none gap-1.5`,children:(e,t)=>{var n=sx(),a=N(n);ex(a,{class:`text-[20px] font-medium text-foreground`,children:(e,t)=>{Me();var n=ci();I(()=>V(n,r())),B(e,n)},$$slots:{default:!0}});var o=F(a,2),s=e=>{Wb(e,{class:`text-[15px] leading-relaxed`,children:(e,t)=>{Me();var n=ci();I(()=>V(n,i())),B(e,n)},$$slots:{default:!0}})};H(o,e=>{i()&&e(s)}),B(e,n)},$$slots:{default:!0}}),B(e,a)},$$slots:{default:!0}})}O()}var lx=R(`<div class="flex items-center gap-3 rounded-[14px] p-2.5"><!> <div class="flex-1 space-y-2"><!> <!> <!></div></div>`),ux=R(`<div class="flex flex-col gap-2 pt-1"></div>`),dx=R(`<div class="flex min-h-0 flex-1 items-center justify-center"><!></div>`),fx=R(`<!> <!>`,1),px=R(`<p class="mt-1 line-clamp-2 text-[15px] leading-snug text-muted-foreground"> </p>`),mx=R(`<div class="notification-row flex gap-3 rounded-[15px] px-2 py-2.5 svelte-11vwjjo"><!> <div class="min-w-0 flex-1"><div class="flex items-center justify-between gap-3"><span class="truncate text-[14px] font-semibold tracking-[0.03em] text-brand"> </span> <span class="shrink-0 text-[13px] text-muted-foreground"> </span></div> <p class="mt-0.5 line-clamp-2 text-[18px] leading-snug font-medium text-foreground"> </p> <!></div></div>`),hx=R(`<div class="flex flex-col gap-1 pb-1 pr-1"></div>`),gx=R(`<!> <div class="hairline-top pt-2"></div> <!>`,1);function _x(e,t){D(t,!0);let n=k(()=>J.notifications),r=k(()=>Array.isArray(L(n)?.notifications)?L(n).notifications:[]),i=k(()=>L(n)?.available===!1);Gd(e,{class:`notifications-card flex min-h-0 flex-col p-4`,children:(e,t)=>{var a=gx(),o=N(a);{let e=e=>{Rd(e,{variant:`outline`,class:`h-7 min-w-7 justify-center border-border bg-secondary px-2.5 text-[14px] font-semibold text-muted-foreground`,children:(e,t)=>{Me();var n=ci();I(()=>V(n,L(r).length)),B(e,n)},$$slots:{default:!0}})},t=k(()=>q(`notifications`));Vb(o,{get icon(){return Mb},eyebrow:`ALERTS`,get title(){return L(t)},class:`mb-3`,children:e,$$slots:{default:!0}})}var s=F(o,4),c=e=>{var t=ux();Ei(t,20,()=>[,,,,,],Si,(e,t)=>{var n=lx(),r=M(n);Zd(r,{class:`size-11 shrink-0 rounded-[13px]`});var i=F(r,2),a=M(i);Zd(a,{class:`h-3 w-20`});var o=F(a,2);Zd(o,{class:`h-4 w-4/5`}),Zd(F(o,2),{class:`h-3 w-3/5`}),E(i),E(n),B(e,n)}),E(t),B(e,t)},l=e=>{var t=dx(),n=M(t);{let e=k(()=>q(`notificationsUnavailable`)),t=k(()=>q(`tryLater`));cx(n,{get icon(){return Fb},get title(){return L(e)},get text(){return L(t)}})}E(t),B(e,t)},u=e=>{var t=dx(),n=M(t);{let e=k(()=>q(`noNotifications`)),t=k(()=>q(`noNotificationsHint`));cx(n,{get icon(){return Fb},get title(){return L(e)},get text(){return L(t)}})}E(t),B(e,t)},d=e=>{kb(e,{class:`-mx-1 min-h-0 flex-1`,scrollbarYClasses:`mr-0.5 w-2`,children:(e,t)=>{var n=hx();Ei(n,23,()=>L(r),(e,t)=>e.id||`${e.appKey}-${e.receivedAt}-${t}`,(e,t)=>{var n=mx(),r=M(n);Cb(r,{class:`mt-0.5 size-11 shrink-0 rounded-[13px] after:rounded-[13px]`,children:(e,n)=>{var r=fx(),i=N(r),a=e=>{xb(e,{get src(){return L(t).avatar},alt:``,class:`rounded-[13px]`})};H(i,e=>{L(t).avatar&&e(a)});var o=F(i,2);{let e=k(()=>`background:${Ls(L(t).appKey)}`);yb(o,{class:`rounded-[13px] text-[16px] font-semibold text-white ring-1 ring-white/10 ring-inset`,get style(){return L(e)},children:(e,n)=>{Me();var r=ci();I(e=>V(r,e),[()=>Is(L(t).appName,L(t).title)]),B(e,r)},$$slots:{default:!0}})}B(e,r)},$$slots:{default:!0}});var i=F(r,2),a=M(i),o=M(a),s=P(o,!0),c=P(F(o,2),!0);E(a);var l=F(a,2),u=P(l,!0),d=F(l,2),f=e=>{var n=px(),r=P(n,!0);I(()=>V(r,L(t).body)),B(e,n)};H(d,e=>{L(t).body&&e(f)}),E(i),E(n),I((e,n)=>{V(s,e),V(c,n),V(u,L(t).title||``)},[()=>L(t).appName||q(`notificationFallback`),()=>xs(L(t).receivedAt,J.clockNow)]),B(e,n)}),E(n),B(e,n)},$$slots:{default:!0}})};H(s,e=>{L(n)===null?e(c):L(i)?e(l,1):L(r).length===0?e(u,2):e(d,-1)}),B(e,a)},$$slots:{default:!0}}),O()}var vx=R(`<div class="home-grid svelte-1pd9it6"><!> <!></div>`);function yx(e){var t=vx(),n=M(t);_b(n,{}),_x(F(n,2),{}),E(t),B(e,t)}var bx={name:`radio`,size:24,node:[[`path`,{d:`M16.247 7.761a6 6 0 0 1 0 8.478`}],[`path`,{d:`M19.075 4.933a10 10 0 0 1 0 14.134`}],[`path`,{d:`M4.925 19.067a10 10 0 0 1 0-14.134`}],[`path`,{d:`M7.753 16.239a6 6 0 0 1 0-8.478`}],[`circle`,{cx:`12`,cy:`12`,r:`2`}]]};bx.node;var xx=new Set([`$$slots`,`$$events`,`$$legacy`]);function Sx(e,t){let n=W(t,xx);Wa(e,G(()=>n,{get icon(){return bx}}))}function Cx(e){return String(e?.playbackStatus).toLowerCase()===`playing`}function wx(e){return!!e?.canSeek&&e?.positionReported===!0}function Tx(e){return e?Math.max(0,Number(e.endTime)-Number(e.startTime||0)):0}function Ex(e){return e?Math.max(1,Number(e.endTime)||0):1}function Dx(e){return Math.max(0,Math.min(1,Number(e??.5)))}var Ox=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`value`,`orientation`,`class`]),kx=R(`<span data-slot="slider-track"><!></span> <!>`,1);function Ax(e,t){D(t,!0);let n=K(t,`ref`,15,null),r=K(t,`value`,15),i=K(t,`orientation`,3,`horizontal`),a=W(t,Ox);var o=z(),s=N(o);{let e=(e,t)=>{let n=()=>(t?.()).thumbItems;var r=kx(),a=N(r),o=M(a);{let e=k(()=>Fd(`bg-primary absolute select-none data-horizontal:h-full data-vertical:w-full`));Mi(o,()=>dy,(t,n)=>{n(t,{"data-slot":`slider-range`,get class(){return L(e)}})})}E(a),Ei(F(a,2),17,n,e=>e.index,(e,t)=>{var n=z();Mi(N(n),()=>my,(e,n)=>{n(e,{"data-slot":`slider-thumb`,get index(){return L(t).index},class:`border-primary ring-ring/50 size-4 rounded-full border bg-white shadow-sm focus-visible:ring-4 focus-visible:outline-hidden block shrink-0 select-none disabled:pointer-events-none disabled:opacity-50`})}),B(e,n)}),I(e=>{pa(a,`data-orientation`,i()),qi(a,1,e)},[()=>Vi(Fd(`bg-muted rounded-full data-horizontal:h-1.5 data-horizontal:w-full data-vertical:h-full data-vertical:w-1.5 relative grow overflow-hidden data-horizontal:w-full data-vertical:h-full`))]),B(e,r)},o=k(()=>Fd(`data-vertical:min-h-40 relative flex w-full touch-none items-center select-none data-disabled:opacity-50 data-vertical:h-full data-vertical:w-auto data-vertical:flex-col`,t.class));Mi(s,()=>cy,(t,s)=>{s(t,G({"data-slot":`slider`,get orientation(){return i()},get class(){return L(o)}},()=>a,{get ref(){return n()},set ref(e){n(e)},get value(){return r()},set value(e){r(e)},children:e,$$slots:{default:!0}}))})}B(e,o),O()}function jx(e){return e}function Mx(e){return-.5*(Math.cos(Math.PI*e)-1)}function Nx(e){return Object.prototype.toString.call(e)===`[object Date]`}function Px(e,t){if(e===t||e!==e)return()=>e;let n=typeof e;if(n!==typeof t||Array.isArray(e)!==Array.isArray(t))throw Error(`Cannot interpolate values of different type`);if(Array.isArray(e)){let n=t.map((t,n)=>Px(e[n],t));return e=>n.map(t=>t(e))}if(n===`object`){if(!e||!t)throw Error(`Object cannot be null`);if(Nx(e)&&Nx(t)){let n=e.getTime(),r=t.getTime()-n;return e=>new Date(n+e*r)}let n=Object.keys(t),r={};return n.forEach(n=>{r[n]=Px(e[n],t[n])}),e=>{let t={};return n.forEach(n=>{t[n]=r[n](e)}),t}}if(n===`number`){let n=t-e;return t=>e+t*n}return()=>t}var Fx=class e{#e;#t;#n;#r=null;constructor(e,t={}){this.#e=A(e),this.#t=A(e),this.#n=t}static of(t,n){let r=new e(t(),n);return Bn(()=>{r.set(t())}),r}set(e,t){j(this.#t,e);let{delay:n=0,duration:r=400,easing:i=jx,interpolate:a=Px}={...this.#n,...t};if(r===0)return this.#r?.abort(),j(this.#e,e),Promise.resolve();let o=Pi.now()+n,s,c=!1,l=this.#r;return this.#r=Ii(t=>{if(t<o)return!0;if(!c){c=!0;let t=this.#e.v;s=a(t,e),typeof r==`function`&&(r=r(t,e)),l?.abort(),l=null}let n=t-o;return n>r?(j(this.#e,e),!1):(j(this.#e,s(i(n/r))),!0)}),this.#r.promise}get current(){return L(this.#e)}get target(){return L(this.#t)}set target(e){this.set(e)}},Ix=si(`<svg class="seek-wave svelte-q8o9kd" height="24" aria-hidden="true"><g><g class="seek-wave-drift svelte-q8o9kd"><g class="seek-wave-amplitude svelte-q8o9kd"><path class="seek-wave-line svelte-q8o9kd" vector-effect="non-scaling-stroke"></path></g></g></g></svg>`),Lx=R(`<div class="seek-hit svelte-q8o9kd" role="slider" tabindex="0"><div><div class="seek-rest svelte-q8o9kd"></div> <!> <div class="seek-thumb svelte-q8o9kd"></div></div></div>`),Rx=R(`<div class="seek-readonly svelte-q8o9kd"><div role="progressbar"><div class="seek-rest svelte-q8o9kd"></div> <!></div></div>`),zx=R(`<div><!> <div><span class="numeric"> </span> <span class="numeric"> </span></div></div>`);function Bx(e,t){D(t,!0);let n=e=>{var t=Ix(),n=M(t),r=M(n),i=M(r),a=P(i);E(r),E(n),E(t),I(()=>{Yi(t,`width: ${L(de)}%`),pa(n,`transform`,`translate(${L(fe)} 0)`),Yi(i,`transform: scaleY(${L(ae)})`),pa(a,`d`,d)}),B(e,t)},r=K(t,`class`,3,``),i=k(()=>Tx(t.media)),a=k(()=>Ex(t.media)),o=k(()=>Cx(t.media)),s=k(()=>!!t.media&&L(i)>0),c=k(()=>!!t.media&&t.media?.position!==null&&t.media?.position!==void 0&&Number.isFinite(Number(t.media.position))),l=k(()=>L(s)&&L(c)),u=k(()=>!!(t.media&&wx(t.media)&&L(l))),d=f();function f(){let e=`M-200 12`;for(let t=-200;t<4e3;t+=40)e+=` Q${t+10} 6.96 ${t+20} 12 T${t+40} 12`;return e}let p=A(dn(Date.now())),m=A(!1),h=A(0),g=A(null),_=A(0),v=0,y=Date.now(),b=``,x=0,S=0,ee=-1,C=0,te=null,ne=k(()=>L(l)&&L(o)&&!L(m)),re=typeof window<`u`&&window.matchMedia(`(prefers-reduced-motion: reduce)`).matches,ie=Fx.of(()=>L(ne)?1:.001,{duration:re?0:320,delay:re?0:120,easing:Mx}),ae=k(()=>ie.current);function oe(e){let t=L(i)>0?L(i):L(a);return Math.max(0,Math.min(t,e))}function se(e,t=L(o)){let n=v;return t&&e>y&&(n+=(e-y)/1e3),oe(n)}let ce=k(()=>t.media?L(m)?oe(L(h)):se(L(p)):0),le=k(()=>L(a)>0?Math.min(100,Math.max(0,L(ce)/L(a)*100)):0),ue=k(()=>t.media?L(s)?L(l)?L(le):0:100:0),de=k(()=>L(u)?L(le):L(ue)),w=k(()=>L(_)*L(de)/100),fe=k(()=>(L(w)%40+40)%40),pe=k(()=>L(l)?Ms(L(ce)):`--:--`),me=k(()=>L(s)?Ms(L(i)):`--:--`);function he(e){return e?`${e.appId||``}\u0000${e.title||``}\u0000${e.endTime||0}`:``}Nn(()=>{let e=t.media,n=Date.now();if(!e){v=0,y=n,b=``,S=0,j(p,n,!0);return}let r=he(e),i=Number(e.position)||0,a=Cx(e);r!==b||L(m)?(r!==b&&(b=r,v=oe(i),y=n,S=0),j(p,n,!0)):S>n?(Math.abs(i-x)<=4&&(S=0,v=oe(i),y=n),j(p,n,!0)):(a?i>se(n,!0)+2.5&&(v=oe(i),y=n):(v=oe(i),y=n),j(p,n,!0))}),Na(()=>{let e=setInterval(()=>{j(p,Date.now(),!0)},100);return()=>clearInterval(e)});function ge(e){if(!L(g))return L(ce);let t=L(g).getBoundingClientRect();return t.width<=0?0:Math.min(1,Math.max(0,(e-t.left)/t.width))*L(a)}function _e(e){if(!t.media)return;let n=Date.now(),r=oe(e);j(m,!1),j(h,r,!0),v=r,y=n,x=r,S=n+8e3,n-C<400&&Math.abs(r-ee)<.5||(C=n,ee=r,t.onSeek(r))}function ve(e){if(L(u)&&!L(m)&&(e.pointerType!==`mouse`||e.button===0)){e.preventDefault(),e.stopPropagation(),te=e.pointerId,j(m,!0),j(h,ge(e.clientX),!0);try{L(g)?.setPointerCapture(e.pointerId)}catch{}}}function ye(e){L(m)&&e.pointerId===te&&(e.preventDefault(),j(h,ge(e.clientX),!0))}function be(e){if(!L(m)||e.pointerId!==te)return;let t=ge(e.clientX);try{L(g)?.releasePointerCapture(e.pointerId)}catch{}te=null,_e(t)}function xe(){L(u)&&(j(m,!1),te=null)}function Se(e){if(!L(u))return;let t=e.shiftKey?30:5,n=null;e.key===`ArrowLeft`||e.key===`ArrowDown`?n=L(ce)-t:e.key===`ArrowRight`||e.key===`ArrowUp`?n=L(ce)+t:e.key===`PageDown`?n=L(ce)-30:e.key===`PageUp`?n=L(ce)+30:e.key===`Home`?n=0:e.key===`End`&&(n=L(i)),n!==null&&(e.preventDefault(),e.stopPropagation(),_e(n))}var Ce=zx();Xr(`pointerup`,mn,be),Xr(`pointercancel`,mn,xe);var we=M(Ce),Te=e=>{var t=Lx();pa(t,`aria-valuemin`,0);var r=M(t);let i;var o=M(r),s=F(o,2);n(s);var c=F(s,2);E(r),E(t),Ea(t,e=>j(g,e),()=>L(g)),I((e,n,a)=>{pa(t,`aria-label`,e),pa(t,`aria-valuemax`,n),pa(t,`aria-valuenow`,a),pa(t,`aria-valuetext`,`${L(pe)??``} / ${L(me)??``}`),i=qi(r,1,`seek-track svelte-q8o9kd`,null,i,{"is-flowing":L(ne)}),Yi(o,`left: ${L(le)}%`),Yi(c,`left: ${L(le)}%`)},[()=>q(`playProgress`),()=>Math.round(L(a)),()=>Math.round(L(ce))]),Zr(`pointerdown`,t,ve),Zr(`pointermove`,t,ye),Zr(`keydown`,t,Se),B(e,t)},Ee=e=>{var t=Rx(),r=M(t);let i;pa(r,`aria-valuemin`,0),pa(r,`aria-valuemax`,100);var a=M(r),o=F(a,2);n(o),E(r),E(t),I((e,n,o)=>{pa(t,`title`,e),i=qi(r,1,`seek-track svelte-q8o9kd`,null,i,{"is-flowing":L(ne)}),pa(r,`aria-label`,n),pa(r,`aria-valuenow`,o),pa(r,`aria-valuetext`,L(l)?`${L(pe)} / ${L(me)}`:void 0),Yi(a,`left: ${L(ue)}%`)},[()=>L(s)?L(l)?q(`progressReadOnly`):q(`playProgress`):q(`progressUnavailable`),()=>L(s)?q(`playProgress`):q(`progressUnavailable`),()=>Math.round(L(ue))]),B(e,t)};H(we,e=>{L(u)?e(Te):e(Ee,-1)});var De=F(we,2),T=M(De),Oe=P(T,!0),ke=P(F(T,2),!0);E(De),E(Ce),I((e,t)=>{qi(Ce,1,e,`svelte-q8o9kd`),qi(De,1,t,`svelte-q8o9kd`),V(Oe,L(pe)),V(ke,L(me))},[()=>Vi(Fd(`seek-bar`,r())),()=>Vi(Fd(`mt-2 flex items-center justify-between text-[16px] text-muted-foreground`,L(u)&&`mt-0`))]),wa(Ce,`clientWidth`,e=>j(_,e)),B(e,Ce),O()}Qr([`pointerdown`,`pointermove`,`keydown`]);var Vx={name:`skip-back`,size:24,node:[[`path`,{d:`M17.971 4.285A2 2 0 0 1 21 6v12a2 2 0 0 1-3.029 1.715l-9.997-5.998a2 2 0 0 1-.003-3.432z`}],[`path`,{d:`M3 20V4`}]]};Vx.node;var Hx=new Set([`$$slots`,`$$events`,`$$legacy`]);function Ux(e,t){let n=W(t,Hx);Wa(e,G(()=>n,{get icon(){return Vx}}))}var Wx={name:`skip-forward`,size:24,node:[[`path`,{d:`M21 4v16`}],[`path`,{d:`M6.029 4.285A2 2 0 0 0 3 6v12a2 2 0 0 0 3.029 1.715l9.997-5.998a2 2 0 0 0 .003-3.432z`}]]};Wx.node;var Gx=new Set([`$$slots`,`$$events`,`$$legacy`]);function Kx(e,t){let n=W(t,Gx);Wa(e,G(()=>n,{get icon(){return Wx}}))}var qx={name:`heart`,size:24,node:[[`path`,{d:`M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5`}]]};qx.node;var Jx=new Set([`$$slots`,`$$events`,`$$legacy`]);function Yx(e,t){let n=W(t,Jx);Wa(e,G(()=>n,{get icon(){return qx}}))}var Xx={name:`volume-2`,size:24,node:[[`path`,{d:`M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z`}],[`path`,{d:`M16 9a5 5 0 0 1 0 6`}],[`path`,{d:`M19.364 18.364a9 9 0 0 0 0-12.728`}]]};Xx.node;var Zx=new Set([`$$slots`,`$$events`,`$$legacy`]);function Qx(e,t){let n=W(t,Zx);Wa(e,G(()=>n,{get icon(){return Xx}}))}var $x={name:`volume-x`,size:24,node:[[`path`,{d:`M11 4.702a.7.7 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.7.7 0 0 0 11 19.298z`}],[`path`,{d:`m16.5 14.5 5-5`}],[`path`,{d:`m16.5 9.5 5 5`}]]};$x.node;var eS=new Set([`$$slots`,`$$events`,`$$legacy`]);function tS(e,t){let n=W(t,eS);Wa(e,G(()=>n,{get icon(){return $x}}))}var nS=R(`<div class="music-controls svelte-86snat"><div class="flex items-start justify-between gap-4"><div class="min-w-0"><p class="eyebrow"> </p> <h1 class="track-title svelte-86snat"> </h1> <p class="track-artist svelte-86snat"> </p></div> <!></div> <!> <div class="transport svelte-86snat"><!> <!> <!></div> <div class="volume-row svelte-86snat"><!> <!> <span class="w-14 text-right text-[16px] text-muted-foreground numeric"> </span></div></div>`);function rS(e,t){D(t,!0);let n=k(()=>Cx(t.media)),r=k(()=>t.payload!==null),i=k(()=>t.media?!t.media.canPrevious:L(r)),a=k(()=>t.media?!t.media.canNext:L(r)),o=k(()=>J.volumeDragging?Dx(J.volumeInput):Date.now()<J.volumeHoldUntil?Dx(J.volumeTarget):t.volume?Dx(t.volume.volume??.5):.5),s=k(()=>Math.round(L(o)*100));function c(e){J.volumeDragging=!0,J.volumeInput=Dx(e/100)}function l(e){J.volumeDragging=!1,J.volumeTarget=Dx(e/100),J.volumeHoldUntil=Date.now()+2200,Do(`volume`,J.volumeTarget)}function u(){t.media?.canSetLiked&&typeof t.media.liked==`boolean`&&Do(`like`,!t.media.liked)}var d=nS(),f=M(d),p=M(f),m=M(p),h=P(m,!0),g=F(m,2),_=P(g,!0),v=P(F(g,2),!0);E(p);var y=F(p,2),b=e=>{{let n=k(()=>Fd(`mt-1 size-12 shrink-0 rounded-full border-border bg-card/50 text-muted-foreground shadow-none backdrop-blur-md hover:bg-secondary hover:text-foreground`,t.media.liked&&`border-danger/25 bg-danger-soft text-danger hover:bg-danger-soft hover:text-danger`)),r=k(()=>!t.media.canSetLiked),i=k(()=>t.media.liked?q(`unlike`):q(`like`)),a=k(()=>t.media.liked?q(`unlike`):q(`like`));lp(e,{variant:`outline`,size:`icon`,get class(){return L(n)},get disabled(){return L(r)},get title(){return L(i)},get"aria-label"(){return L(a)},onclick:u,children:(e,n)=>{{let n=k(()=>Fd(`size-[22px]`,t.media.liked&&`fill-current`));Yx(e,{get class(){return L(n)},strokeWidth:1.8})}},$$slots:{default:!0}})}};H(y,e=>{typeof t.media?.liked==`boolean`&&e(b)}),E(f);var x=F(f,2);Bx(x,{get media(){return t.media},onSeek:e=>Do(`seek`,e)});var S=F(x,2),ee=M(S);{let e=k(()=>q(`previousTrack`));lp(ee,{variant:`outline`,size:`icon`,class:`transport-button size-[58px] rounded-full border-border bg-card/50 text-foreground shadow-none backdrop-blur-md hover:bg-secondary`,type:`button`,get"aria-label"(){return L(e)},get disabled(){return L(i)},onclick:()=>Do(`previous`),children:(e,t)=>{Ux(e,{class:`size-[24px]`,strokeWidth:1.7})},$$slots:{default:!0}})}var C=F(ee,2);{let e=k(()=>L(n)?q(`pause`):q(`play`));lp(C,{size:`icon`,class:`play-button size-[72px] rounded-full border border-brand/35 bg-primary text-primary-foreground shadow-none hover:bg-primary/90`,type:`button`,get"aria-label"(){return L(e)},onclick:()=>Do(`playpause`),children:(e,t)=>{var r=z(),i=N(r),a=e=>{Cy(e,{class:`size-[30px] fill-current`,strokeWidth:1.5})},o=e=>{by(e,{class:`ml-1 size-[30px] fill-current`,strokeWidth:1.5})};H(i,e=>{L(n)?e(a):e(o,-1)}),B(e,r)},$$slots:{default:!0}})}var te=F(C,2);{let e=k(()=>q(`nextTrack`));lp(te,{variant:`outline`,size:`icon`,class:`transport-button size-[58px] rounded-full border-border bg-card/50 text-foreground shadow-none backdrop-blur-md hover:bg-secondary`,type:`button`,get"aria-label"(){return L(e)},get disabled(){return L(a)},onclick:()=>Do(`next`),children:(e,t)=>{Kx(e,{class:`size-[24px]`,strokeWidth:1.7})},$$slots:{default:!0}})}E(S);var ne=F(S,2),re=M(ne);{let e=k(()=>q(`mute`)),n=k(()=>q(`mute`));lp(re,{variant:`outline`,size:`icon`,class:`size-12 shrink-0 rounded-[14px] border-border bg-card/50 text-muted-foreground shadow-none backdrop-blur-md hover:bg-secondary hover:text-foreground`,type:`button`,get"aria-label"(){return L(e)},get title(){return L(n)},onclick:()=>Do(`mute`),children:(e,n)=>{var r=z(),i=N(r),a=e=>{tS(e,{class:`size-[22px]`,strokeWidth:1.7})},o=e=>{Qx(e,{class:`size-[22px]`,strokeWidth:1.7})};H(i,e=>{t.volume?.muted?e(a):e(o,-1)}),B(e,r)},$$slots:{default:!0}})}var ie=F(re,2);{let e=k(()=>q(`volume`));Ax(ie,{type:`single`,min:0,max:100,step:1,get value(){return L(s)},get"aria-label"(){return L(e)},class:`volume-slider max-w-[280px]`,onValueChange:c,onValueCommit:l})}var ae=P(F(ie,2));E(ne),E(d),I((e,n)=>{V(h,t.media?.album||`NOW PLAYING`),V(_,e),V(v,n),V(ae,`${L(s)??``}%`)},[()=>t.media?.title||q(`nothingPlaying`),()=>t.media?t.media.artist||t.media.albumArtist||q(`unknownArtist`):q(`chooseSong`)]),B(e,d),O()}var iS={name:`eighth-note`,size:24,node:[[`path`,{d:`m19 6-5.2-3.9a.5.5 0 0 0-.8.4V18`}],[`circle`,{cx:`9`,cy:`18`,r:`4`}]],aliases:[`music-2`]};iS.node;var aS=new Set([`$$slots`,`$$events`,`$$legacy`]);function oS(e,t){let n=W(t,aS);Wa(e,G(()=>n,{get icon(){return iS}}))}var sS=R(`<img class="cover-art svelte-526kc0" draggable="false" referrerpolicy="no-referrer"/>`),cS=R(`<div><div class="cover-fallback svelte-526kc0"><span class="cover-fallback-icon svelte-526kc0"><!></span> <span> </span></div> <!></div>`);function lS(e,t){D(t,!0);let n=k(()=>t.media?.thumbnail||t.media?.thumbnailUrl||``),r=k(()=>t.media?q(`nowPlaying`):q(`nothingPlaying`)),i=A(!1),a=k(()=>!!L(n)&&!L(i));Nn(()=>{L(n),j(i,!1)});var o=cS();let s;var c=M(o),l=M(c);oS(M(l),{class:`size-6`,strokeWidth:1.55}),E(l);var u=P(F(l,2),!0);E(c);var d=F(c,2),f=e=>{var t=sS();I(e=>{pa(t,`src`,L(n)),pa(t,`alt`,e)},[()=>q(`albumCover`)]),Xr(`error`,t,()=>j(i,!0)),qr(t),B(e,t)};H(d,e=>{L(a)&&e(f)}),E(o),I(()=>{s=qi(o,1,`cover-shell svelte-526kc0`,null,s,{"has-art":L(a)}),V(u,L(r))}),B(e,o),O()}var uS=R(`<img class="music-backdrop svelte-pxzr4i" alt="" aria-hidden="true" draggable="false" referrerpolicy="no-referrer"/>`),dS=R(`<!> <span class="truncate"> </span>`,1),fS=R(`<!> <div class="music-wash svelte-pxzr4i" aria-hidden="true"></div> <div class="music-layout svelte-pxzr4i"><div class="music-visual svelte-pxzr4i"><!> <div class="mt-4 flex max-w-full items-center gap-2"><!></div></div> <!></div>`,1);function pS(e,t){D(t,!0);let n=k(()=>J.media),r=k(()=>L(n)?.media?.media??null),i=k(()=>L(n)?.volume??null),a=k(()=>L(r)?.thumbnail||L(r)?.thumbnailUrl||``),o=k(()=>L(r)?String(L(r).appName||``).trim()||Rs(L(r).appId):q(`mediaFallback`));var s=fS(),c=N(s),l=e=>{var t=uS();I(()=>pa(t,`src`,L(a))),B(e,t)};H(c,e=>{L(a)&&e(l)});var u=F(c,4),d=M(u),f=M(d);lS(f,{get media(){return L(r)}});var p=F(f,2);Rd(M(p),{variant:`outline`,class:`h-9 max-w-full gap-2 border-border bg-card/55 px-3.5 text-[14px] font-medium text-muted-foreground backdrop-blur-md`,children:(e,t)=>{var n=dS(),r=N(n);Sx(r,{class:`size-4 text-brand`,strokeWidth:1.8});var i=P(F(r,2),!0);I(()=>V(i,L(o))),B(e,n)},$$slots:{default:!0}}),E(p),E(d),rS(F(d,2),{get payload(){return L(n)},get media(){return L(r)},get volume(){return L(i)}}),E(u),B(e,s),O()}var mS={name:`cpu`,size:24,node:[[`path`,{d:`M12 20v2`}],[`path`,{d:`M12 2v2`}],[`path`,{d:`M17 20v2`}],[`path`,{d:`M17 2v2`}],[`path`,{d:`M2 12h2`}],[`path`,{d:`M2 17h2`}],[`path`,{d:`M2 7h2`}],[`path`,{d:`M20 12h2`}],[`path`,{d:`M20 17h2`}],[`path`,{d:`M20 7h2`}],[`path`,{d:`M7 20v2`}],[`path`,{d:`M7 2v2`}],[`rect`,{x:`4`,y:`4`,width:`16`,height:`16`,rx:`2`}],[`rect`,{x:`8`,y:`8`,width:`8`,height:`8`,rx:`1`}]]};mS.node;var hS=new Set([`$$slots`,`$$events`,`$$legacy`]);function gS(e,t){let n=W(t,hS);Wa(e,G(()=>n,{get icon(){return mS}}))}var _S=R(`<div role="meter"><svg viewBox="0 0 100 100" aria-hidden="true" class="svelte-3an5yk"><circle class="radial-track svelte-3an5yk" cx="50" cy="50"></circle><circle class="radial-value svelte-3an5yk" cx="50" cy="50" transform="rotate(-90 50 50)"></circle></svg> <div class="radial-copy svelte-3an5yk"><span class="radial-number numeric svelte-3an5yk"> </span> <span class="radial-unit svelte-3an5yk">%</span></div></div>`);function vS(e,t){D(t,!0);let n=K(t,`value`,3,0),r=K(t,`color`,3,`var(--brand)`),i=K(t,`size`,3,`clamp(92px, 14vh, 112px)`),a=K(t,`class`,3,``),o=k(()=>Math.max(0,Math.min(100,Number(n())||0))),s=k(()=>Math.round(L(o))),c=2*Math.PI*43,l=k(()=>c*(1-L(o)/100));var u=_S();pa(u,`aria-valuemin`,0),pa(u,`aria-valuemax`,100);var d=M(u),f=M(d);pa(f,`r`,43);var p=F(f);pa(p,`r`,43),pa(p,`stroke-dasharray`,c),E(d);var m=F(d,2),h=P(M(m),!0);Me(2),E(m),E(u),I(e=>{qi(u,1,e,`svelte-3an5yk`),Yi(u,`--meter-color:${r()}; width:${i()}; height:${i()};`),pa(u,`aria-valuenow`,L(s)),pa(p,`stroke-dashoffset`,L(l)),V(h,L(s))},[()=>Vi(Fd(`radial-gauge`,a()))]),B(e,u),O()}var yS=R(`<div class="perf-glow svelte-1lobfdb" aria-hidden="true"></div> <header class="relative z-10 flex items-center gap-3"><span class="grid size-11 shrink-0 place-items-center rounded-[13px] border border-border bg-secondary text-brand"><!></span> <div class="min-w-0"><p class="eyebrow">SYSTEM</p> <h2 class="mt-0.5 truncate text-[24px] leading-tight font-semibold tracking-[-0.03em] text-foreground"> </h2></div> <p class="ml-auto max-w-[46%] truncate text-right text-[14px] text-muted-foreground"> </p></header> <div class="pane-grid relative z-10 svelte-1lobfdb"><section class="usage-pane svelte-1lobfdb"><div class="pane-head flex items-center justify-between gap-2.5"><span class="eyebrow">CPU</span> <!></div> <div class="pane-body svelte-1lobfdb"><!> <div class="grid w-full grid-cols-2 gap-2"><div class="fact-tile svelte-1lobfdb"><span class="svelte-1lobfdb"> </span> <b class="numeric svelte-1lobfdb"> </b></div> <div class="fact-tile svelte-1lobfdb"><span class="svelte-1lobfdb"> </span> <b class="numeric svelte-1lobfdb"> </b></div></div></div></section> <section class="usage-pane is-right svelte-1lobfdb"><div class="pane-head flex items-center justify-between gap-2.5"><span class="eyebrow">MEMORY</span> <!></div> <div class="pane-body svelte-1lobfdb"><!> <div class="grid w-full grid-cols-2 gap-2"><div class="fact-tile svelte-1lobfdb"><span class="svelte-1lobfdb"> </span> <b class="numeric svelte-1lobfdb"> </b></div> <div class="fact-tile svelte-1lobfdb"><span class="svelte-1lobfdb"> </span> <b class="numeric svelte-1lobfdb"> </b></div></div></div></section></div>`,1);function bS(e,t){D(t,!0);let n=k(()=>J.performance),r=k(()=>L(n)!==null),i=k(()=>L(n)?.cpu||{}),a=k(()=>L(n)?.memory||{}),o=k(()=>Number(L(i).usage)),s=k(()=>Number.isFinite(L(o))?Math.max(0,Math.min(100,L(o))):0),c=k(()=>String(L(i).model||``).trim()),l=k(()=>L(r)?L(c)||q(`currentStatus`):q(`sessionLoading`)),u=k(()=>{let e=Number(L(i).speed);return Number.isFinite(e)&&e>0?`${(e/1e3).toFixed(2)} GHz`:`—`}),d=k(()=>L(r)?Fs(L(i).uptime):`—`),f=k(()=>{let e=Number(L(i).cores);return!Number.isFinite(e)||e<=0?`—`:e===1?q(`threadCountOne`):q(`threadCount`,{count:e})}),p=k(()=>Number(L(a).percent)),m=k(()=>Number.isFinite(L(p))?Math.max(0,Math.min(100,Math.round(L(p)))):0),h=k(()=>Ps(L(a).total)),g=k(()=>Ps(L(a).free)),_=k(()=>Ps(L(a).used));Gd(e,{class:`system-card relative flex min-h-0 flex-col overflow-hidden p-4`,children:(e,t)=>{var n=yS(),r=F(N(n),2),i=M(r);gS(M(i),{class:`size-[24px]`,strokeWidth:1.7}),E(i);var a=F(i,2),o=P(F(M(a),2),!0);E(a);var p=F(a,2),v=P(p,!0);E(r);var y=F(r,2),b=M(y),x=M(b);Rd(F(M(x),2),{variant:`outline`,class:`h-6 border-border bg-secondary px-2 text-[11px] font-medium text-muted-foreground`,children:(e,t)=>{Me();var n=ci();I(()=>V(n,L(f))),B(e,n)},$$slots:{default:!0}}),E(x);var S=F(x,2),ee=M(S);vS(ee,{get value(){return L(s)},color:`var(--brand)`});var C=F(ee,2),te=M(C),ne=M(te),re=P(ne,!0),ie=P(F(ne,2),!0);E(te);var ae=F(te,2),oe=M(ae),se=P(oe,!0),ce=P(F(oe,2),!0);E(ae),E(C),E(S),E(b);var le=F(b,2),ue=M(le);Rd(F(M(ue),2),{variant:`outline`,class:`h-6 border-border bg-secondary px-2 text-[11px] font-medium text-muted-foreground`,children:(e,t)=>{Me();var n=ci();I(()=>V(n,L(h))),B(e,n)},$$slots:{default:!0}}),E(ue);var de=F(ue,2),w=M(de);vS(w,{get value(){return L(m)},color:`var(--success)`});var fe=F(w,2),pe=M(fe),me=M(pe),he=P(me,!0),ge=P(F(me,2),!0);E(pe);var _e=F(pe,2),ve=M(_e),ye=P(ve,!0),be=P(F(ve,2),!0);E(_e),E(fe),E(de),E(le),E(y),I((e,t,n,r,i)=>{V(o,e),pa(p,`title`,L(c)),V(v,L(l)),V(re,t),V(ie,L(u)),V(se,n),V(ce,L(d)),V(he,r),V(ge,L(_)),V(ye,i),V(be,L(g))},[()=>q(`cpuMemory`),()=>q(`currentFrequency`),()=>q(`runningTime`),()=>q(`memoryUsed`),()=>q(`memoryFree`)]),B(e,n)},$$slots:{default:!0}}),O()}var xS={name:`monitor`,size:24,node:[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`}]]};xS.node;var SS=new Set([`$$slots`,`$$events`,`$$legacy`]);function CS(e,t){let n=W(t,SS);Wa(e,G(()=>n,{get icon(){return xS}}))}var wS=R(`<span class="truncate"> </span>`),TS=R(`<div class="perf-glow svelte-14qw6hi" aria-hidden="true"></div> <header class="relative z-10 flex items-center gap-3"><span class="grid size-11 shrink-0 place-items-center rounded-[13px] border border-border bg-secondary text-brand"><!></span> <div class="min-w-0"><p class="eyebrow">GRAPHICS</p> <h2 class="mt-0.5 truncate text-[24px] leading-tight font-semibold tracking-[-0.03em] text-foreground"> </h2></div> <p class="ml-auto max-w-[40%] truncate text-right text-[14px] text-muted-foreground"> </p></header> <div class="pane-grid relative z-10 svelte-14qw6hi"><section class="usage-pane svelte-14qw6hi"><div class="pane-head flex items-center justify-between gap-2.5"><span class="eyebrow">GPU</span> <!></div> <div class="pane-body svelte-14qw6hi"><!> <div class="grid w-full grid-cols-2 gap-2"><div class="fact-tile svelte-14qw6hi"><span class="svelte-14qw6hi"> </span> <b class="numeric svelte-14qw6hi"> </b></div> <div class="fact-tile svelte-14qw6hi"><span class="svelte-14qw6hi"> </span> <b class="numeric svelte-14qw6hi"> </b></div></div></div></section> <section class="usage-pane is-right svelte-14qw6hi"><div class="pane-head flex items-center justify-between gap-2.5"><span class="eyebrow">VRAM</span> <!></div> <div class="pane-body svelte-14qw6hi"><!> <div class="grid w-full grid-cols-2 gap-2"><div class="fact-tile svelte-14qw6hi"><span class="svelte-14qw6hi"> </span> <b class="numeric svelte-14qw6hi"> </b></div> <div class="fact-tile svelte-14qw6hi"><span class="svelte-14qw6hi"> </span> <b class="numeric svelte-14qw6hi"> </b></div></div></div></section></div>`,1);function ES(e,t){D(t,!0);let n=k(()=>J.performance),r=k(()=>L(n)!==null),i=k(()=>L(n)?.gpu||{}),a=k(()=>String(L(i).name||``).trim()),o=k(()=>L(r)&&L(i).ok===!1),s=k(()=>L(r)?L(o)?q(`unavailableShort`):L(a)||q(`noDiscreteGpu`):q(`sessionLoading`)),c=k(()=>Number(L(i).utilization)),l=k(()=>Number.isFinite(L(c))?Math.max(0,Math.min(100,L(c))):0);function u(e){if(e==null)return`—`;let t=Number(e);return!Number.isFinite(t)||t<0?`—`:t>=1e3?`${(t/1e3).toFixed(2)} GHz`:`${Math.round(t)} MHz`}let d=k(()=>u(L(i).coreClockMhz)),f=k(()=>u(L(i).memoryClockMhz)),p=k(()=>L(i).memoryTotal?Ps(L(i).memoryTotal):`—`),m=k(()=>L(i).memoryUsed?Ps(L(i).memoryUsed):`—`),h=k(()=>Number(L(i).memoryTotal)>0&&Number(L(i).memoryUsed)>=0?Ps(Math.max(0,Number(L(i).memoryTotal)-Number(L(i).memoryUsed))):`—`),g=k(()=>Number.isFinite(Number(L(i).memoryPercent))?Math.max(0,Math.min(100,Math.round(Number(L(i).memoryPercent)))):0),_=k(()=>typeof L(i).driver==`string`&&L(i).driver.trim()?L(i).driver.trim():``);Gd(e,{class:`graphics-card relative flex min-h-0 flex-col overflow-hidden p-4`,children:(e,t)=>{var n=TS(),r=F(N(n),2),i=M(r);CS(M(i),{class:`size-[24px]`,strokeWidth:1.7}),E(i);var o=F(i,2),c=P(F(M(o),2),!0);E(o);var u=F(o,2),v=P(u,!0);E(r);var y=F(r,2),b=M(y),x=M(b),S=F(M(x),2);{let e=k(()=>L(_)?q(`driverValue`,{name:L(_)}):q(`driverUnknown`));Rd(S,{variant:`outline`,class:`h-6 max-w-[72%] border-border bg-secondary px-2 text-[11px] font-medium text-muted-foreground`,get title(){return L(e)},children:(e,t)=>{var n=wS(),r=P(n,!0);I(e=>V(r,e),[()=>L(_)?q(`driverValue`,{name:L(_)}):q(`driverNone`)]),B(e,n)},$$slots:{default:!0}})}E(x);var ee=F(x,2),C=M(ee);vS(C,{get value(){return L(l)},color:`var(--chart-4)`});var te=F(C,2),ne=M(te),re=M(ne),ie=P(re,!0),ae=P(F(re,2),!0);E(ne);var oe=F(ne,2),se=M(oe),ce=P(se,!0),le=P(F(se,2),!0);E(oe),E(te),E(ee),E(b);var ue=F(b,2),de=M(ue);Rd(F(M(de),2),{variant:`outline`,class:`h-6 border-border bg-secondary px-2 text-[11px] font-medium text-muted-foreground`,children:(e,t)=>{Me();var n=ci();I(()=>V(n,L(p))),B(e,n)},$$slots:{default:!0}}),E(de);var w=F(de,2),fe=M(w);vS(fe,{get value(){return L(g)},color:`var(--chart-2)`});var pe=F(fe,2),me=M(pe),he=M(me),ge=P(he,!0),_e=P(F(he,2),!0);E(me);var ve=F(me,2),ye=M(ve),be=P(ye,!0),xe=P(F(ye,2),!0);E(ve),E(pe),E(w),E(ue),E(y),I((e,t,n,r,i)=>{V(c,e),pa(u,`title`,L(a)),V(v,L(s)),V(ie,t),V(ae,L(d)),V(ce,n),V(le,L(f)),V(ge,r),V(_e,L(m)),V(be,i),V(xe,L(h))},[()=>q(`gpuMemory`),()=>q(`coreClock`),()=>q(`memoryClock`),()=>q(`memoryUsed`),()=>q(`memoryFree`)]),B(e,n)},$$slots:{default:!0}}),O()}var DS={name:`thermometer`,size:24,node:[[`path`,{d:`M14 4v10.54a4 4 0 1 1-4 0V4a2 2 0 0 1 4 0Z`}]]};DS.node;var OS=new Set([`$$slots`,`$$events`,`$$legacy`]);function kS(e,t){let n=W(t,OS);Wa(e,G(()=>n,{get icon(){return DS}}))}var AS={name:`thermometer-sun`,size:24,node:[[`path`,{d:`M12 2v2`}],[`path`,{d:`M12 8a4 4 0 0 0-1.645 7.647`}],[`path`,{d:`M2 12h2`}],[`path`,{d:`M20 14.54a4 4 0 1 1-4 0V4a2 2 0 0 1 4 0z`}],[`path`,{d:`m4.93 4.93 1.41 1.41`}],[`path`,{d:`m6.34 17.66-1.41 1.41`}]]};AS.node;var jS=new Set([`$$slots`,`$$events`,`$$legacy`]);function MS(e,t){let n=W(t,jS);Wa(e,G(()=>n,{get icon(){return AS}}))}var NS=R(`<div class="h-12 rounded-[11px] bg-secondary/40"></div>`),PS=R(`<div class="mt-3 flex flex-1 flex-col gap-2"><div class="h-24 rounded-[15px] bg-secondary/50"></div> <!></div>`),FS=R(`<div class="flex min-h-0 flex-1 items-center justify-center"><!></div>`),IS=R(`<div><span class="relative z-10 min-w-0 flex-1 truncate text-[16px] text-muted-foreground"> </span> <b class="relative z-10 numeric shrink-0 text-[20px] font-semibold text-foreground svelte-1vwkxs5"> </b></div>`),LS=R(`<div class="temp-row is-unavailable svelte-1vwkxs5"><span class="relative z-10 text-[15px] text-muted-foreground">CPU</span> <span class="relative z-10 text-[14px] text-muted-foreground"> </span></div>`),RS=R(`<div class="flex flex-col gap-2 pr-1"><!> <!></div>`),zS=R(`<div class="relative z-10 mt-3 flex flex-1 flex-col"><div><div class="relative z-10 flex items-end justify-between gap-3"><div><p class="text-[15px] text-muted-foreground"> </p> <div class="mt-1 flex items-baseline gap-1"><span class="temp-max numeric svelte-1vwkxs5"> </span> <span class="text-[17px] text-muted-foreground"> </span></div></div> <!></div></div> <div class="mt-3 min-h-0 flex-1"><!></div></div>`),BS=R(`<div class="perf-glow svelte-1vwkxs5" aria-hidden="true"></div> <!> <!>`,1);function VS(e,t){D(t,!0);let n=k(()=>J.performance),r=k(()=>L(n)!==null),i=k(()=>Array.isArray(L(n)?.temperatures)?L(n).temperatures:[]),a=k(()=>J.temperatureUnit),o=k(()=>zs(L(a))),s=k(()=>L(r)&&L(i).length===0),c=k(()=>L(i).some(e=>/cpu|core|package|processor|tdie|tctl/i.test(String(e.name||``)))),l=k(()=>{let e=-1/0;for(let t of L(i)){let n=Number(t.celsius);Number.isFinite(n)&&(e=Math.max(e,n))}return e}),u=k(()=>Number.isFinite(L(l))?Math.max(0,Math.min(100,L(l))):0),d=k(()=>Number.isFinite(L(l))?Math.round(Bs(L(l),L(a))??0):`—`),f=k(()=>Number.isFinite(L(l))&&L(l)>=70),p=k(()=>Number.isFinite(L(l))&&L(l)>=85);function m(e){return Number.isFinite(e)?Math.max(0,Math.min(100,e)):0}function h(e){let t=Bs(e,L(a));return t===null?`—`:`${t.toFixed(1)}°`}Gd(e,{class:`thermal-card relative flex min-h-0 flex-col overflow-hidden p-4`,children:(e,t)=>{var n=BS(),a=F(N(n),2);{let e=e=>{Rd(e,{variant:`outline`,class:`h-7 border-border bg-secondary px-2.5 text-[13px] font-medium text-muted-foreground`,children:(e,t)=>{Me();var n=ci();I(e=>V(n,e),[()=>q(`itemCount`,{count:L(i).length})]),B(e,n)},$$slots:{default:!0}})},t=k(()=>q(`temperatures`));Vb(a,{get icon(){return kS},eyebrow:`THERMALS`,get title(){return L(t)},children:e,$$slots:{default:!0}})}var l=F(a,2),g=e=>{var t=PS();Ei(F(M(t),2),16,()=>[,,,],Si,(e,t)=>{B(e,NS())}),E(t),B(e,t)},_=e=>{var t=FS(),n=M(t);{let e=k(()=>q(`noTemperature`)),t=k(()=>q(`tryLater`));cx(n,{get icon(){return kS},get title(){return L(e)},get text(){return L(t)}})}E(t),B(e,t)},v=e=>{var t=zS(),n=M(t);let r;var a=M(n),s=M(a),l=M(s),g=P(l,!0),_=F(l,2),v=M(_),y=P(v,!0),b=P(F(v,2),!0);E(_),E(s),MS(F(s,2),{class:`mb-1 size-[32px] text-muted-foreground`,strokeWidth:1.5}),E(a),E(n);var x=F(n,2);kb(M(x),{class:`h-full`,scrollbarYClasses:`w-2`,children:(e,t)=>{var n=RS(),r=M(n);Ei(r,19,()=>L(i),(e,t)=>e.name||t,(e,t)=>{let n=k(()=>Number(L(t).celsius));var r=IS();let i;var a=M(r),o=P(a,!0),s=P(F(a,2),!0);E(r),I((e,t,a)=>{i=qi(r,1,`temp-row svelte-1vwkxs5`,null,i,{"is-hot":L(n)>=70&&L(n)<85,"is-critical":L(n)>=85}),Yi(r,e),V(o,t),V(s,a)},[()=>`--heat:${m(L(n))}%`,()=>L(t).name||q(`device`),()=>h(L(n))]),B(e,r)});var a=F(r,2),o=e=>{var t=LS(),n=P(F(M(t),2),!0);E(t),I(e=>V(n,e),[()=>q(`notProvided`)]),B(e,t)};H(a,e=>{L(c)||e(o)}),E(n),B(e,n)},$$slots:{default:!0}}),E(x),E(t),I(e=>{r=qi(n,1,`temp-hero svelte-1vwkxs5`,null,r,{"is-hot":L(f),"is-critical":L(p)}),Yi(n,`--heat:${L(u)}%`),V(g,e),V(y,L(d)),V(b,L(o))},[()=>q(`maxTemperature`)]),B(e,t)};H(l,e=>{L(r)?L(s)?e(_,1):e(v,-1):e(g)}),B(e,n)},$$slots:{default:!0}}),O()}var HS=R(`<div class="performance-grid svelte-zeoggl"><div class="performance-main svelte-zeoggl"><!> <!></div> <!></div>`);function US(e){var t=HS(),n=M(t),r=M(n);bS(r,{}),ES(F(r,2),{}),E(n),VS(F(n,2),{}),E(t),B(e,t)}var WS=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`value`,`type`,`files`,`class`,`data-slot`]),GS=R(`<input/>`);function KS(e,t){D(t,!0);let n=K(t,`ref`,15,null),r=K(t,`value`,15),i=K(t,`files`,15),a=K(t,`data-slot`,3,`input`),o=W(t,WS);var s=z(),c=N(s),l=e=>{var s=GS();ha(s,e=>({"data-slot":a(),class:e,type:`file`,...o}),[()=>Fd(`dark:bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-9 rounded-md border bg-transparent px-2.5 py-1 text-base shadow-xs file:h-7 file:text-sm file:font-medium focus-visible:ring-3 aria-invalid:ring-3 md:text-sm w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50`,t.class)],void 0,void 0,void 0,!0),Ea(s,e=>n(e),()=>n()),Sa(s,i),ya(s,r),B(e,s)},u=e=>{var i=GS();ha(i,e=>({"data-slot":a(),class:e,type:t.type,...o}),[()=>Fd(`dark:bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-9 rounded-md border bg-transparent px-2.5 py-1 text-base shadow-xs file:h-7 file:text-sm file:font-medium focus-visible:ring-3 aria-invalid:ring-3 md:text-sm w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50`,t.class)],void 0,void 0,void 0,!0),Ea(i,e=>n(e),()=>n()),ya(i,r),B(e,i)};H(c,e=>{t.type===`file`?e(l):e(u,-1)}),B(e,s),O()}var qS={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`}],[`path`,{d:`m6 6 12 12`}]]};qS.node;var JS=new Set([`$$slots`,`$$events`,`$$legacy`]);function YS(e,t){let n=W(t,JS);Wa(e,G(()=>n,{get icon(){return qS}}))}var XS=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function ZS(e,t){D(t,!0);let n=K(t,`ref`,15,null),r=W(t,XS);var i=z(),a=N(i);{let e=k(()=>Fd(`bg-black/55 supports-backdrop-filter:backdrop-blur-sm fixed inset-0 isolate z-50`,t.class));Mi(a,()=>Yg,(t,i)=>{i(t,G({"data-slot":`dialog-overlay`,get class(){return L(e)}},()=>r,{get ref(){return n()},set ref(e){n(e)}}))})}B(e,i),O()}var QS=new Set([`$$slots`,`$$events`,`$$legacy`]);function $S(e,t){let n=W(t,QS);var r=z();Mi(N(r),()=>_h,(e,t)=>{t(e,G(()=>n))}),B(e,r)}var eC=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`portalProps`,`children`,`showCloseButton`]),tC=R(`<!> <span class="sr-only">Close</span>`,1),nC=R(`<!> <!>`,1);function rC(e,t){D(t,!0);let n=K(t,`ref`,15,null),r=K(t,`showCloseButton`,3,!0),i=W(t,eC);$S(e,G(()=>t.portalProps,{children:(e,a)=>{var o=nC(),s=N(o);ZS(s,{});var c=F(s,2);{let e=k(()=>Fd(`bg-popover text-popover-foreground ring-foreground/10 grid max-w-[calc(100%_-_2rem)] gap-6 rounded-xl p-6 text-sm ring-1 sm:max-w-md fixed top-1/2 left-1/2 z-50 w-full -translate-x-1/2 -translate-y-1/2 outline-none`,t.class));Mi(c,()=>x_,(a,o)=>{o(a,G({"data-slot":`dialog-content`,get class(){return L(e)}},()=>i,{get ref(){return n()},set ref(e){n(e)},children:(e,n)=>{var i=nC(),a=N(i);U(a,()=>t.children??f);var o=F(a,2),s=e=>{var t=z(),n=N(t);{let e=(e,t)=>{lp(e,G({variant:`ghost`,class:`absolute top-4 right-4`,size:`icon-sm`},()=>(t?.()).props,{children:(e,t)=>{var n=tC();YS(N(n),{}),Me(2),B(e,n)},$$slots:{default:!0}}))};Mi(n,()=>__,(t,n)=>{n(t,{"data-slot":`dialog-close`,child:e,$$slots:{child:!0}})})}B(e,t)};H(o,e=>{r()&&e(s)}),B(e,i)},$$slots:{default:!0}}))})}B(e,o)},$$slots:{default:!0}})),O()}var iC=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function aC(e,t){D(t,!0);let n=K(t,`ref`,15,null),r=W(t,iC);var i=z(),a=N(i);{let e=k(()=>Fd(`text-muted-foreground *:[a]:hover:text-foreground text-sm *:[a]:underline *:[a]:underline-offset-3`,t.class));Mi(a,()=>Qg,(t,i)=>{i(t,G({"data-slot":`dialog-description`,get class(){return L(e)}},()=>r,{get ref(){return n()},set ref(e){n(e)}}))})}B(e,i),O()}var oC=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function sC(e,t){D(t,!0);let n=K(t,`ref`,15,null),r=W(t,oC);var i=z(),a=N(i);{let e=k(()=>Fd(`leading-none font-medium`,t.class));Mi(a,()=>lh,(t,i)=>{i(t,G({"data-slot":`dialog-title`,get class(){return L(e)}},()=>r,{get ref(){return n()},set ref(e){n(e)}}))})}B(e,i),O()}var cC=new Set([`$$slots`,`$$events`,`$$legacy`,`open`]);function lC(e,t){D(t,!0);let n=K(t,`open`,15,!1),r=W(t,cC);var i=z();Mi(N(i),()=>m_,(e,t)=>{t(e,G(()=>r,{get open(){return n()},set open(e){n(e)}}))}),B(e,i),O()}var uC={name:`message-circle`,size:24,node:[[`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`}]]};uC.node;var dC=new Set([`$$slots`,`$$events`,`$$legacy`]);function fC(e,t){let n=W(t,dC);Wa(e,G(()=>n,{get icon(){return uC}}))}var pC={name:`check`,size:24,node:[[`path`,{d:`M20 6 9 17l-5-5`}]]};pC.node;var mC=new Set([`$$slots`,`$$events`,`$$legacy`]);function hC(e,t){let n=W(t,mC);Wa(e,G(()=>n,{get icon(){return pC}}))}var gC={name:`pencil-line`,size:24,node:[[`path`,{d:`M13 21h8`}],[`path`,{d:`m15 5 4 4`}],[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`}]]};gC.node;var _C=new Set([`$$slots`,`$$events`,`$$legacy`]);function vC(e,t){let n=W(t,_C);Wa(e,G(()=>n,{get icon(){return gC}}))}var yC={name:`arrow-up`,size:24,node:[[`path`,{d:`m5 12 7-7 7 7`}],[`path`,{d:`M12 19V5`}]]};yC.node;var bC=new Set([`$$slots`,`$$events`,`$$legacy`]);function xC(e,t){let n=W(t,bC);Wa(e,G(()=>n,{get icon(){return yC}}))}var SC=R(`<span class="grid size-7 shrink-0 place-items-center rounded-[9px] bg-brand-soft text-[14px] font-semibold text-brand"> </span>`),CC=R(`<p class="mt-2.5 max-h-36 overflow-y-auto rounded-[11px] border border-border bg-card px-3 py-2.5 text-[15px] leading-relaxed whitespace-pre-wrap text-muted-foreground"> </p>`),wC=R(`<span class="rounded-full bg-success-soft px-2 py-0.5 text-[12px] font-semibold text-success"> </span>`),TC=R(`<span class="mt-0.5 block text-[13px] leading-snug text-muted-foreground"> </span>`),EC=R(`<span><!></span> <span class="min-w-0 flex-1"><span class="flex flex-wrap items-center gap-2 text-[16px] leading-snug font-medium text-foreground"> <!></span> <!></span>`,1),DC=R(`<div class="mt-3 flex flex-col gap-2"></div>`),OC=R(`<!> `,1),kC=R(`<span class="text-[13px] text-warn"> </span>`),AC=R(`<!> <div class="flex items-start gap-2.5"><!> <h3 class="text-[19px] leading-snug font-semibold text-foreground"> </h3></div> <!> <!> <div class="relative mt-3"><!> <!> <!></div> <div class="mt-1.5 flex min-h-9 items-center gap-2"><!> <!></div>`,1),jC=R(`<p class="rounded-[11px] border border-danger/25 bg-danger-soft px-3 py-2.5 text-[15px] leading-relaxed text-danger" role="alert"> </p>`),MC=R(`<div class="flex flex-col gap-2.5 p-3.5"><!> <!></div>`),NC=R(`<div class="mt-0 flex shrink-0 flex-col gap-2.5 border-t border-border bg-card p-4"><p class="text-[13px] text-muted-foreground"> </p> <div class="flex w-full gap-2.5"><!> <!></div></div>`),PC=R(`<div class="flex shrink-0 items-start justify-between gap-4 border-b border-border p-3.5"><div class="flex min-w-0 items-start gap-3"><span class="grid size-11 shrink-0 place-items-center rounded-[13px] border border-warn/20 bg-warn-soft text-warn"><!></span> <div class="min-w-0"><p class="eyebrow text-warn">WAITING FOR ANSWER</p> <!> <!></div></div> <!></div> <!> <!>`,1);function FC(e,t){D(t,!0);let n=k(()=>J.sessions.find(e=>e.id===J.answerSessionId)??null),r=k(()=>L(n)?.pending??null),i=k(()=>L(r)?.questions??[]),a=k(()=>!!(L(n)&&L(r)&&L(i).length>0)),o=k(()=>L(i).length>1||L(i).some(e=>e.multiSelect===!0)),s=k(()=>L(i).every((e,t)=>f(t))),c=A(dn([])),l=A(!1),u=A(``),d=``;function f(e){let t=L(c)[e];return t?t.skipped||t.selected.length>0||t.custom.trim()!==``:!1}Nn(()=>{let e=`${L(n)?.id??``}\u0000${L(r)?.requestId??``}\u0000${L(i).length}`;e!==d&&(d=e,j(c,L(i).map(()=>({selected:[],custom:``,skipped:!1})),!0),j(l,!1),j(u,``))}),Nn(()=>{J.answerSessionId&&(J.pushQuestions&&L(n)&&L(r)?.answerable!==!1&&L(i).length!==0||jo())});function p(){L(l)||jo()}function m(e,t,n){if(L(l))return;let r=L(c)[t];if(r){if(e.multiSelect===!0){let e=r.selected.includes(n)?r.selected.filter(e=>e!==n):[...r.selected,n];L(c)[t]={...r,selected:e,skipped:!1},j(u,``)}else L(c)[t]={selected:[n],custom:``,skipped:!1},j(u,``),L(i).length===1&&v()}}function h(e,t){if(L(l))return;let n=L(c)[e];n&&(L(c)[e]={...n,custom:t,selected:L(i)[e]?.multiSelect===!0?n.selected:[],skipped:!1},j(u,``))}function g(e){L(l)||(L(c)[e]={selected:[],custom:``,skipped:!0},j(u,``),L(i).length===1&&v())}function _(e,t){let n=L(c)[t];if(!n||n.skipped)return{id:e.id,selected:[]};let r=n.custom.trim();return r?{id:e.id,selected:e.multiSelect===!0?[...n.selected]:[],custom:r}:{id:e.id,selected:[...n.selected]}}async function v(){if(!L(l)){if(!L(n)?.id||!L(r)?.requestId)j(u,q(`questionEnded`),!0);else if(!L(s))j(u,q(`answerEveryQuestion`),!0);else{j(l,!0),j(u,``);try{await Mo(L(n).id,L(r).requestId,L(i).map((e,t)=>_(e,t))),Eo(q(`answered`)),jo()}catch(e){j(u,e instanceof Error?e.message:String(e),!0),Eo(L(u))}finally{j(l,!1)}}}}function y(e){e.key!==`Enter`||e.shiftKey||e.isComposing||e.keyCode===229||(e.preventDefault(),v())}function b(e){let t=/\s*(?:\((?:recommended|推荐)\)|((?:recommended|推荐)))\s*$/i;return t.test(e)?{text:e.replace(t,``),recommended:!0}:{text:e,recommended:!1}}var x=z();Mi(N(x),()=>lC,(e,t)=>{t(e,{get open(){return L(a)},onOpenChange:e=>{e||p()},children:(e,t)=>{var r=z();Mi(N(r),()=>rC,(e,t)=>{t(e,{showCloseButton:!1,interactOutsideBehavior:`ignore`,escapeKeydownBehavior:`ignore`,class:`flex h-[calc(100dvh-20px)] max-h-[620px] w-[min(780px,calc(100vw-20px))] max-w-[780px] flex-col gap-0 overflow-hidden rounded-[24px] border border-border bg-card p-0 shadow-2xl sm:max-w-[780px]`,children:(e,t)=>{var r=PC(),a=N(r),d=M(a),_=M(d);fC(M(_),{class:`size-[24px]`,strokeWidth:1.7}),E(_);var x=F(_,2),S=F(M(x),2);Mi(S,()=>sC,(e,t)=>{t(e,{class:`mt-1 truncate text-[24px] font-semibold tracking-[-0.03em]`,children:(e,t)=>{Me();var r=ci();I(e=>V(r,e),[()=>L(n)?.title||q(`sessionQuestion`)]),B(e,r)},$$slots:{default:!0}})}),Mi(F(S,2),()=>aC,(e,t)=>{t(e,{class:`mt-1 text-[14px] leading-relaxed`,children:(e,t)=>{Me();var n=ci();I(e=>V(n,e),[()=>L(i).length>1?q(`questionCount`,{count:L(i).length}):q(`chooseOption`)]),B(e,n)},$$slots:{default:!0}})}),E(x),E(d);var ee=F(d,2);{let e=k(()=>q(`close`));lp(ee,{variant:`ghost`,size:`icon`,class:`size-11 shrink-0 rounded-[13px] text-muted-foreground hover:bg-secondary hover:text-foreground`,type:`button`,get"aria-label"(){return L(e)},get disabled(){return L(l)},onclick:p,children:(e,t)=>{YS(e,{class:`size-[22px]`,strokeWidth:1.8})},$$slots:{default:!0}})}E(a);var C=F(a,2);kb(C,{class:`min-h-0 flex-1`,children:(e,t)=>{var n=MC(),r=M(n);Ei(r,19,()=>L(i),e=>e.id,(e,t,n)=>{Wd(e,{class:`gap-0 rounded-[16px] border border-border bg-surface-2/55 p-3.5 shadow-none ring-0 [--card-spacing:0px]`,children:(e,r)=>{var a=AC(),o=N(a),s=e=>{Rd(e,{variant:`outline`,class:`mb-2 h-7 self-start border-warn/20 bg-warn-soft px-3 text-[13px] font-medium text-warn`,children:(e,n)=>{Me();var r=ci();I(()=>V(r,L(t).header)),B(e,r)},$$slots:{default:!0}})};H(o,e=>{L(t).header&&e(s)});var u=F(o,2),d=M(u),p=e=>{var t=SC(),r=P(t,!0);I(()=>V(r,L(n)+1)),B(e,t)};H(d,e=>{L(i).length>1&&e(p)});var _=P(F(d,2),!0);E(u);var x=F(u,2),S=e=>{var n=CC(),r=P(n,!0);I(()=>V(r,L(t).detail)),B(e,n)};H(x,e=>{L(t).detail&&e(S)});var ee=F(x,2),C=e=>{var r=DC();Ei(r,23,()=>L(t).options??[],(e,t)=>`${e.label}-${t}`,(e,r,i)=>{let a=k(()=>b(L(r).label)),o=k(()=>L(c)[L(n)]?.selected.includes(L(r).label)===!0);{let s=k(()=>Fd(`h-auto min-h-[54px] w-full justify-start gap-3 rounded-[12px] border-border bg-card px-3 py-2.5 text-left whitespace-normal shadow-none hover:bg-secondary`,L(o)&&`border-brand/50 bg-brand-soft hover:bg-brand-soft`)),c=k(()=>L(t).multiSelect===!0?`checkbox`:`radio`);lp(e,{variant:`outline`,get class(){return L(s)},type:`button`,get role(){return L(c)},get"aria-checked"(){return L(o)},get disabled(){return L(l)},onclick:()=>m(L(t),L(n),L(r).label),children:(e,n)=>{var s=EC(),c=N(s),l=M(c),u=e=>{hC(e,{class:`size-4`,strokeWidth:2.2})},d=e=>{var n=ci();I(()=>V(n,L(t).multiSelect===!0?``:L(i)+1)),B(e,n)};H(l,e=>{L(o)?e(u):e(d,-1)}),E(c);var f=F(c,2),p=M(f),m=M(p),h=F(m),g=e=>{var t=wC(),n=P(t,!0);I(e=>V(n,e),[()=>q(`recommended`)]),B(e,t)};H(h,e=>{L(a).recommended&&e(g)}),E(p);var _=F(p,2),v=e=>{var t=TC(),n=P(t,!0);I(()=>V(n,L(r).description)),B(e,t)};H(_,e=>{L(r).description&&e(v)}),E(f),I(e=>{qi(c,1,e),V(m,`${L(a).text??``} `)},[()=>Vi(Fd(`grid size-7 shrink-0 place-items-center rounded-[8px] border border-border text-[13px] font-semibold text-muted-foreground`,L(o)&&`border-brand bg-primary text-primary-foreground`))]),B(e,s)},$$slots:{default:!0}})}}),E(r),I(()=>pa(r,`role`,L(t).multiSelect===!0?`group`:`radiogroup`)),B(e,r)};H(ee,e=>{(L(t).options?.length??0)>0&&e(C)});var te=F(ee,2),ne=M(te);vC(ne,{class:`pointer-events-none absolute top-1/2 left-3.5 size-[18px] -translate-y-1/2 text-muted-foreground`,strokeWidth:1.7});var re=F(ne,2);{let e=k(()=>L(c)[L(n)]?.custom??``),r=k(()=>L(t).options?.length?q(`otherAnswer`):q(`typeAnswer`)),i=k(()=>q(`customReply`));KS(re,{type:`text`,get value(){return L(e)},get placeholder(){return L(r)},get"aria-label"(){return L(i)},class:`h-12 rounded-[11px] border-border bg-card pl-11 text-[16px] shadow-none placeholder:text-muted-foreground`,get disabled(){return L(l)},oninput:e=>h(L(n),e.currentTarget.value),onkeydown:y})}var ie=F(re,2),ae=e=>{{let t=k(()=>L(l)||!f(L(n))),r=k(()=>q(`sendAnswer`));lp(e,{size:`icon`,class:`absolute top-1/2 right-1.5 size-10 -translate-y-1/2 rounded-[10px] bg-primary text-primary-foreground shadow-none hover:bg-primary/90`,type:`button`,get disabled(){return L(t)},onclick:()=>void v(),get"aria-label"(){return L(r)},children:(e,t)=>{xC(e,{class:`size-[20px]`,strokeWidth:2})},$$slots:{default:!0}})}};H(ie,e=>{L(i).length===1&&e(ae)}),E(te);var oe=F(te,2),se=M(oe);lp(se,{variant:`ghost`,class:`h-9 gap-2 px-0 text-[14px] text-muted-foreground hover:bg-transparent hover:text-foreground`,type:`button`,get disabled(){return L(l)},onclick:()=>g(L(n)),children:(e,t)=>{var n=OC(),r=N(n);Kx(r,{class:`size-[18px]`,strokeWidth:1.7});var i=F(r);I(e=>V(i,` ${e??``}`),[()=>q(`skipQuestion`)]),B(e,n)},$$slots:{default:!0}});var ce=F(se,2),le=e=>{var t=kC(),n=P(t,!0);I(e=>V(n,e),[()=>q(`skippedNote`)]),B(e,t)};H(ce,e=>{L(c)[L(n)]?.skipped&&e(le)}),E(oe),I(()=>V(_,L(t).question)),B(e,a)},$$slots:{default:!0}})});var a=F(r,2),o=e=>{var t=jC(),n=P(t,!0);I(()=>V(n,L(u))),B(e,t)};H(a,e=>{L(u)&&e(o)}),E(n),B(e,n)},$$slots:{default:!0}});var te=F(C,2),ne=e=>{var t=NC(),n=M(t),r=P(n,!0),i=F(n,2),a=M(i);lp(a,{variant:`outline`,class:`h-12 flex-1 rounded-[13px] border-border bg-transparent text-[16px] shadow-none hover:bg-secondary`,type:`button`,get disabled(){return L(l)},onclick:p,children:(e,t)=>{Me();var n=ci();I(e=>V(n,e),[()=>q(`cancel`)]),B(e,n)},$$slots:{default:!0}});var o=F(a,2);{let e=k(()=>L(l)||!L(s));lp(o,{class:`h-12 flex-1 rounded-[13px] bg-primary text-[16px] text-primary-foreground shadow-none hover:bg-primary/90`,type:`button`,get disabled(){return L(e)},onclick:()=>void v(),children:(e,t)=>{Me();var n=ci();I(e=>V(n,e),[()=>L(l)?q(`sending`):q(`sendAnswer`)]),B(e,n)},$$slots:{default:!0}})}E(i),E(t),I(e=>V(r,e),[()=>L(l)?q(`sendingEllipsis`):q(`canMultiAnswer`)]),B(e,t)};H(te,e=>{L(o)&&e(ne)}),B(e,r)},$$slots:{default:!0}})}),B(e,r)},$$slots:{default:!0}})}),B(e,x),O()}var IC={name:`house`,size:24,node:[[`path`,{d:`M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8`}],[`path`,{d:`M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`}]],aliases:[`home`]};IC.node;var LC=new Set([`$$slots`,`$$events`,`$$legacy`]);function RC(e,t){let n=W(t,LC);Wa(e,G(()=>n,{get icon(){return IC}}))}var zC={name:`layers`,size:24,node:[[`path`,{d:`M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z`}],[`path`,{d:`M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12`}],[`path`,{d:`M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17`}]],aliases:[`layers-3`]};zC.node;var BC=new Set([`$$slots`,`$$events`,`$$legacy`]);function VC(e,t){let n=W(t,BC);Wa(e,G(()=>n,{get icon(){return zC}}))}var HC={name:`maximize-2`,size:24,node:[[`path`,{d:`M15 3h6v6`}],[`path`,{d:`m21 3-7 7`}],[`path`,{d:`m3 21 7-7`}],[`path`,{d:`M9 21H3v-6`}]]};HC.node;var UC=new Set([`$$slots`,`$$events`,`$$legacy`]);function WC(e,t){let n=W(t,UC);Wa(e,G(()=>n,{get icon(){return HC}}))}var GC={name:`minimize-2`,size:24,node:[[`path`,{d:`m14 10 7-7`}],[`path`,{d:`M20 10h-6V4`}],[`path`,{d:`m3 21 7-7`}],[`path`,{d:`M4 14h6v6`}]]};GC.node;var KC=new Set([`$$slots`,`$$events`,`$$legacy`]);function qC(e,t){let n=W(t,KC);Wa(e,G(()=>n,{get icon(){return GC}}))}var JC={name:`refresh-cw`,size:24,node:[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`}],[`path`,{d:`M21 3v5h-5`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`}],[`path`,{d:`M8 16H3v5`}]]};JC.node;var YC=new Set([`$$slots`,`$$events`,`$$legacy`]);function XC(e,t){let n=W(t,YC);Wa(e,G(()=>n,{get icon(){return JC}}))}var ZC=R(`<span></span>`),QC=R(`<span class="rail-badge is-timer svelte-brnp8a"></span>`),$C=R(`<!> <!> <!>`,1),ew=R(`<aside class="rail svelte-brnp8a"><nav class="rail-nav svelte-brnp8a"></nav> <div class="rail-bottom svelte-brnp8a"><!> <!></div></aside>`);function tw(e,t){D(t,!0);let n=K(t,`questionCount`,3,0),r=K(t,`errorCount`,3,0),i=K(t,`timerAlert`,3,!1),a={home:RC,sessions:VC,music:oS,performance:gS},o=k(()=>J.fullscreen?q(`fullscreenExit`):q(`fullscreenEnter`));var s=ew(),c=M(s);Ei(c,20,()=>t.order,e=>e,(e,o)=>{let s=k(()=>a[o]);{let a=k(()=>Fd(`rail-button relative size-[44px] rounded-[13px] text-muted-foreground`,t.activeKey===o&&`is-active bg-primary text-primary-foreground`)),c=k(()=>to(o)),l=k(()=>t.activeKey===o?`page`:void 0),u=k(()=>to(o));lp(e,{variant:`ghost`,size:`icon`,get class(){return L(a)},type:`button`,get"data-key"(){return o},get"aria-label"(){return L(c)},get"aria-current"(){return L(l)},get title(){return L(u)},onclick:()=>t.onNavigate(o),children:(e,t)=>{var a=$C(),c=N(a);Mi(c,()=>L(s),(e,t)=>{t(e,{class:`size-[21px]`,strokeWidth:1.7})});var l=F(c,2),u=e=>{var t=ZC();let n;I(e=>{n=qi(t,1,`rail-badge svelte-brnp8a`,null,n,{"is-error":r()>0}),pa(t,`aria-label`,e)},[()=>r()>0?q(`errorSessions`):q(`pendingQuestions`)]),B(e,t)};H(l,e=>{o===`sessions`&&n()+r()>0&&e(u)});var d=F(l,2),f=e=>{var t=QC();I(e=>pa(t,`aria-label`,e),[()=>q(`timerAlert`)]),B(e,t)};H(d,e=>{o===`home`&&i()&&e(f)}),B(e,a)},$$slots:{default:!0}})}}),E(c);var l=F(c,2),u=M(l);{let e=k(()=>q(`refreshPage`)),n=k(()=>q(`refreshPage`));lp(u,{variant:`ghost`,size:`icon`,class:`rail-utility size-10 rounded-[12px] text-muted-foreground`,type:`button`,get"aria-label"(){return L(e)},get title(){return L(n)},get onclick(){return t.onRefresh},children:(e,t)=>{XC(e,{class:`size-[20px]`,strokeWidth:1.7})},$$slots:{default:!0}})}lp(F(u,2),{variant:`ghost`,size:`icon`,class:`rail-utility size-10 rounded-[12px] text-muted-foreground`,type:`button`,get"aria-label"(){return L(o)},get title(){return L(o)},get onclick(){return t.onFullscreen},children:(e,t)=>{var n=z(),r=N(n),i=e=>{qC(e,{class:`size-[20px]`,strokeWidth:1.7})},a=e=>{WC(e,{class:`size-[20px]`,strokeWidth:1.7})};H(r,e=>{J.fullscreen?e(i):e(a,-1)}),B(e,n)},$$slots:{default:!0}}),E(l),E(s),I((e,t)=>{pa(s,`aria-label`,e),pa(c,`aria-label`,t)},[()=>q(`navLabel`),()=>q(`pagesLabel`)]),B(e,s),O()}var nw=`Asia/Shanghai`,rw=`https://timor.tech/api/holiday/year`,iw=864e5,aw=6e5,ow=dn({year:0,status:`idle`,days:{},source:``,version:0}),sw=null;function cw(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function lw(){return sw??=new Intl.DateTimeFormat(`en-US`,{timeZone:nw,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,weekday:`short`,hourCycle:`h23`}),sw}var uw={Sun:0,Mon:1,Tue:2,Wed:3,Thu:4,Fri:5,Sat:6};function dw(e=new Date){let t=lw().formatToParts(e),n=e=>t.find(t=>t.type===e)?.value||``;return{year:Number(n(`year`)),month:Number(n(`month`)),day:Number(n(`day`)),hour:Number(n(`hour`)),minute:Number(n(`minute`)),weekday:uw[n(`weekday`)]??0}}function fw(e=new Date){let t=dw(e);return`${t.year}-${String(t.month).padStart(2,`0`)}-${String(t.day).padStart(2,`0`)}`}function pw(e=new Date){return dw(e).year}function mw(e=new Date){let t=pw(e);return ow.year!==t||ow.status!==`ready`&&ow.status!==`stale`?!1:!!ow.days[fw(e)]}function hw(e=new Date){let t=dw(e);if(t.weekday===0||t.weekday===6||mw(e))return`offpeak`;let n=t.hour*60+t.minute;return n>=540&&n<720||n>=840&&n<1080?`peak`:`offpeak`}function gw(e){return`dsh-rc-holiday-${e}`}function _w(e){try{let t=localStorage.getItem(gw(e));if(!t)return null;let n=JSON.parse(t);if(!cw(n)||!Array.isArray(n.days)||typeof n.at!=`number`)return null;let r=new Set(n.days.filter(e=>typeof e==`string`));return r.size>0?{at:n.at,days:r}:null}catch{return null}}function vw(e,t){try{localStorage.setItem(gw(e),JSON.stringify({at:Date.now(),days:[...t]}))}catch{}}function yw(e,t,n,r){ow.year=e,ow.days=Object.fromEntries([...t].map(e=>[e,!0])),ow.status=n,ow.source=r,ow.version+=1}function bw(e){ow.year=e,ow.days={},ow.status=`error`,ow.source=``,ow.version+=1}var xw=new Map,Sw=new Map;function Cw(e){if(ow.year===e&&ow.status===`ready`)return Promise.resolve();if(ow.year===e&&ow.status===`error`){let t=Sw.get(e)||0;if(Date.now()-t<aw)return Promise.resolve()}let t=_w(e);if(t&&Date.now()-t.at<=iw)return yw(e,t.days,`ready`,`cache`),Promise.resolve();let n=xw.get(e);if(n)return n;ow.year=e,ow.status=`loading`,ow.version+=1;let r=(async()=>{try{let t=new AbortController,n=setTimeout(()=>t.abort(),7e3),r;try{r=await fetch(`${rw}/${e}/?type=Y&week=N`,{signal:t.signal,headers:{accept:`application/json`},cache:`no-store`})}finally{clearTimeout(n)}if(!r.ok)throw Error(`HTTP ${r.status}`);let i=await r.json(),a=cw(i)&&cw(i.holiday)?i.holiday:null;if(!a)throw Error(`invalid holiday payload`);let o=new Set;for(let[t,n]of Object.entries(a))cw(n)&&n.holiday===!0&&o.add(`${e}-${t}`);if(o.size===0)throw Error(`empty holiday payload`);vw(e,o),yw(e,o,`ready`,`timor.tech`)}catch{Sw.set(e,Date.now());let t=_w(e);t?yw(e,t.days,`stale`,`cache`):bw(e)}finally{xw.delete(e)}})();return xw.set(e,r),r}typeof window<`u`&&(window.__DSH_BILLING__={beijingDateKey:fw,beijingParts:dw,ensureHolidayYear:Cw,holidayState:ow,isStatutoryHoliday:mw,tariffPeriod:hw});var ww={name:`wallet`,size:24,node:[[`path`,{d:`M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1`}],[`path`,{d:`M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4`}]]};ww.node;var Tw=new Set([`$$slots`,`$$events`,`$$legacy`]);function Ew(e,t){let n=W(t,Tw);Wa(e,G(()=>n,{get icon(){return ww}}))}var Dw={name:`triangle-exclamation-point`,size:24,node:[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`}],[`path`,{d:`M12 9v4`}],[`path`,{d:`M12 17h.01`}]],aliases:[`alert-triangle`,`triangle-alert`]};Dw.node;var Ow=new Set([`$$slots`,`$$events`,`$$legacy`]);function kw(e,t){let n=W(t,Ow);Wa(e,G(()=>n,{get icon(){return Dw}}))}var Aw={name:`mountain`,size:24,node:[[`path`,{d:`m8 3 4 8 5-5 5 15H2L8 3z`}]]};Aw.node;var jw=new Set([`$$slots`,`$$events`,`$$legacy`]);function Mw(e,t){let n=W(t,jw);Wa(e,G(()=>n,{get icon(){return Aw}}))}var Nw={name:`moon-star`,size:24,node:[[`path`,{d:`M18 5h4`}],[`path`,{d:`M20 3v4`}],[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`}]]};Nw.node;var Pw=new Set([`$$slots`,`$$events`,`$$legacy`]);function Fw(e,t){let n=W(t,Pw);Wa(e,G(()=>n,{get icon(){return Nw}}))}var Iw=R(`<!> `,1),Lw=R(`<div class="mt-2 inline-flex items-center gap-1.5 self-start rounded-lg border border-danger/25 bg-danger-soft px-2 py-1 text-[14px] font-medium text-danger"><!> </div>`),Rw=R(`<div class="balance-glow svelte-qb5rb0" aria-hidden="true"></div> <div class="relative z-10"><!></div> <div class="relative z-10 flex flex-1 flex-col justify-center py-2.5"><div><span class="balance-symbol svelte-qb5rb0"> </span> <span class="balance-value svelte-qb5rb0"> </span></div> <p class="mt-1.5 line-clamp-2 text-[15px] leading-relaxed text-muted-foreground"> </p> <!></div>`,1);function zw(e,t){D(t,!0);let n=k(()=>J.account),r=k(()=>L(n)!==null),i=k(()=>!!(L(n)&&L(n).available!==!1&&L(n).signedIn)),a=k(()=>L(n)?.balance),o=k(()=>L(a)?.currency||L(n)?.usage?.currency||`CNY`),s=k(()=>L(i)&&!!L(n)?.lowBalance),c=k(()=>L(i)&&L(a)?.balance!=null&&Number.isFinite(Number(L(a).balance))?Number(L(a).balance).toFixed(2):`—`),l=k(()=>L(r)?L(i)?L(a)?.state===`ready`?q(`topUpBonus`,{paid:As(L(a)?.paid,L(o)),bonus:As(L(a)?.bonus,L(o))}):L(a)?.error||q(`syncing`):L(n)?.balance?.error||q(`signedOut`):q(`syncing`)),u=k(()=>hw(new Date(J.clockNow))),d=k(()=>J.balanceDisplay.showPeakValley),f=0;Nn(()=>{let e=pw(new Date(J.clockNow));e!==f&&(f=e,Cw(e))}),Gd(e,{class:`balance-card relative flex min-h-0 flex-col overflow-hidden p-4`,children:(e,t)=>{var r=Rw(),i=F(N(r),2),a=M(i);{let e=e=>{var t=z(),n=N(t),r=e=>{{let t=k(()=>L(u)===`peak`?q(`peakHours`):q(`offpeakHours`));Rd(e,{variant:`outline`,class:`h-8 border-border bg-secondary px-3 text-[14px] font-medium text-muted-foreground`,get title(){return L(t)},children:(e,t)=>{var n=z(),r=N(n),i=e=>{var t=Iw(),n=N(t);Mw(n,{class:`size-3.5 text-warn`,strokeWidth:1.8});var r=F(n);I(e=>V(r,` ${e??``}`),[()=>q(`peak`)]),B(e,t)},a=e=>{var t=Iw(),n=N(t);Fw(n,{class:`size-3.5 text-brand`,strokeWidth:1.8});var r=F(n);I(e=>V(r,` ${e??``}`),[()=>q(`offpeak`)]),B(e,t)};H(r,e=>{L(u)===`peak`?e(i):e(a,-1)}),B(e,n)},$$slots:{default:!0}})}};H(n,e=>{L(d)&&e(r)}),B(e,t)},t=k(()=>q(`accountBalance`));Vb(a,{get icon(){return Ew},eyebrow:`ACCOUNT`,get title(){return L(t)},children:e,$$slots:{default:!0}})}E(i);var f=F(i,2),p=M(f);let m;var h=M(p),g=P(h,!0),_=P(F(h,2),!0);E(p);var v=F(p,2),y=P(v,!0),b=F(v,2),x=e=>{var t=Lw(),r=M(t);kw(r,{class:`size-4`,strokeWidth:1.8});var i=F(r);E(t),I(e=>V(i,` ${e??``}`),[()=>q(`belowThreshold`,{amount:As(L(n)?.lowThreshold,L(o))})]),B(e,t)};H(b,e=>{L(s)&&e(x)}),E(f),I(e=>{m=qi(p,1,`balance-line numeric svelte-qb5rb0`,null,m,{"is-low":L(s)}),V(g,e),V(_,L(c)),V(y,L(l))},[()=>js(L(o))]),B(e,r)},$$slots:{default:!0}}),O()}var Bw={question:0,running:1,error:2,done:3};function Vw(e){return Bw[e.status??`done`]??3}function Hw(e){let t=new Map,n=[];e.forEach((e,r)=>{let i=e.id||`index-${r}`;n.push(i),t.set(i,{session:e,children:[]})});let r=new Map;e.forEach((e,t)=>{let i=e.parentId||``;i&&r.set(n[t],i)});function i(e,t){let i=t;for(let t=0;i&&t<n.length+1;t+=1){if(i===e)return!0;i=r.get(i)||``}return!1}let a=[];e.forEach((e,r)=>{let o=n[r],s=t.get(o),c=e.parentId||``,l=c?t.get(c):void 0;l&&c!==o&&!i(o,c)?l.children.push(s):a.push(s)});function o(e){let t=Vw(e.session);for(let n of e.children)t=Math.min(t,o(n));return t}function s(e){let t=Number(e.session.lastActiveAt)||0;for(let n of e.children)t=Math.max(t,s(n));return t}function c(e){e.sort((e,t)=>{let n=o(e)-o(t);return n===0?s(t)-s(e):n});for(let t of e)c(t.children)}return c(a),a}var Uw={name:`messages-square`,size:24,node:[[`path`,{d:`M16 10a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 14.286V4a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z`}],[`path`,{d:`M20 9a2 2 0 0 1 2 2v10.286a.71.71 0 0 1-1.212.502l-2.202-2.202A2 2 0 0 0 17.172 19H10a2 2 0 0 1-2-2v-1`}]]};Uw.node;var Ww=new Set([`$$slots`,`$$events`,`$$legacy`]);function Gw(e,t){let n=W(t,Ww);Wa(e,G(()=>n,{get icon(){return Uw}}))}var Kw=R(`<span class="status-dot svelte-1ffvvr6"></span> `,1),qw=R(`<span class="text-[13px] font-medium text-danger"> </span>`),Jw=R(`<span class="text-[13px] text-muted-foreground"> </span>`),Yw=R(`<span class="inline-flex items-center gap-1.5 text-[13px] font-semibold text-warn"><!> </span>`),Xw=R(`<span class="numeric shrink-0 text-[13px] font-semibold text-success"> </span>`),Zw=R(`<span class="shrink-0 text-[13px] text-muted-foreground"> </span>`),Qw=R(`<div class="session-children svelte-1ffvvr6"><div class="mb-2 flex items-center gap-2 text-[13px] font-semibold tracking-[0.1em] text-muted-foreground uppercase"> <span class="h-px flex-1 bg-border"></span> </div> <!></div>`),$w=R(`<div class="flex min-w-0 items-start gap-3"><span aria-hidden="true"> <i class="svelte-1ffvvr6"></i></span> <div class="min-w-0 flex-1"><div class="flex items-start justify-between gap-2.5"><h3 class="session-title min-w-0 pt-0.5 text-[21px] leading-snug font-semibold text-foreground svelte-1ffvvr6"> </h3> <!></div> <p class="session-preview mt-1 line-clamp-2 text-[15px] leading-snug text-muted-foreground svelte-1ffvvr6"> </p> <div class="mt-2 flex min-w-0 items-center justify-between gap-3"><div class="flex min-w-0 flex-wrap items-center gap-x-3 gap-y-1"><!> <!></div> <!></div></div></div> <!>`,1),eT=R(`<span class="text-[15px] text-muted-foreground"> </span>`),tT=R(`<div class="rounded-[18px] border border-border px-3.5 py-3"><div class="flex items-center gap-3"><!> <div class="flex-1 space-y-2"><!> <!></div></div></div>`),nT=R(`<div class="flex flex-col gap-2 px-2"></div>`),rT=R(`<div class="flex min-h-0 flex-1 items-center justify-center px-6"><!></div>`),iT=R(`<div class="flex flex-col gap-2 px-2 pb-1"></div>`),aT=R(`<!> <div class="-mx-2 flex min-h-0 flex-1 flex-col border-t border-border pt-3"><!></div>`,1);function oT(e,t){D(t,!0);let n=(e,t=f,r=f)=>{let i=k(()=>t().session),a=k(()=>l(L(i))),o=k(()=>d(L(i)));{let l=k(()=>Fd(`session-card gap-0 rounded-[18px] border bg-card px-3.5 py-3 shadow-none ring-0 [--card-spacing:0px]`,L(a)===`running`&&`border-success/20`,L(a)===`question`&&`border-warn/25`,L(a)===`error`&&`border-danger/25`,p(L(i))&&`cursor-pointer`,r()>0&&`is-subagent bg-surface-2/60`)),d=k(()=>p(L(i))?`button`:void 0),f=k(()=>p(L(i))?0:void 0),v=k(()=>p(L(i))?q(`answerSession`,{title:L(i).title||q(`newSession`)}):void 0);Wd(e,{get class(){return L(l)},get role(){return L(d)},get tabindex(){return L(f)},get"aria-label"(){return L(v)},onclick:()=>h(L(i)),onkeydown:e=>g(e,L(i)),children:(e,l)=>{var d=$w(),f=N(d),p=M(f),h=M(p);Me(),E(p);var g=F(p,2),v=M(g),y=M(v),b=P(y,!0),x=F(y,2);{let e=k(()=>Fd(`mt-0.5 h-8 shrink-0 gap-1.5 rounded-full border px-3 text-[13px] font-semibold`,c[L(a)]));Rd(x,{variant:`outline`,get class(){return L(e)},children:(e,t)=>{var n=Kw(),r=F(N(n));I(()=>V(r,` ${L(s)[L(a)]??``}`)),B(e,n)},$$slots:{default:!0}})}E(v);var S=F(v,2),ee=P(S,!0),C=F(S,2),te=M(C),ne=M(te),re=e=>{var t=qw(),n=P(t,!0);I(e=>V(n,e),[()=>q(`needsAttention`)]),B(e,t)},ie=e=>{var t=z();Ei(N(t),17,()=>_(L(i),r()),Si,(e,t)=>{var n=Jw(),r=P(n,!0);I(()=>V(r,L(t))),B(e,n)}),B(e,t)};H(ne,e=>{L(i).error?e(re):e(ie,-1)});var ae=F(ne,2),oe=e=>{var t=Yw(),n=M(t);fC(n,{class:`size-4`,strokeWidth:1.8});var r=F(n);E(t),I(e=>V(r,` ${e??``}`),[()=>q(`answer`)]),B(e,t)},se=k(()=>m(L(i)));H(ae,e=>{L(se)&&e(oe)}),E(te);var ce=F(te,2),le=e=>{var t=Xw(),n=P(t,!0);I(e=>V(n,e),[()=>Ns(L(o),J.clockNow)]),B(e,t)},ue=e=>{var t=Zw(),n=P(t,!0);I(e=>V(n,e),[()=>xs(L(i).lastActiveAt,J.clockNow)]),B(e,t)};H(ce,e=>{L(o)===null?e(ue,-1):e(le)}),E(C),E(g),E(f);var de=F(f,2),w=e=>{var i=Qw(),a=M(i),o=M(a),s=F(o,2);E(a),Ei(F(a,2),17,()=>t().children,e=>e.session.id||e.session.title,(e,t)=>{n(e,()=>L(t),()=>r()+1)}),E(i),I(e=>{V(o,`${e??``} `),V(s,` ${t().children.length??``}`)},[()=>q(`subagent`)]),B(e,i)};H(de,e=>{t().children.length>0&&e(w)}),I((e,t,n,r)=>{qi(p,1,e,`svelte-1ffvvr6`),V(h,`${t??``} `),V(b,n),V(ee,r)},[()=>Vi(Fd(`session-icon`,`tone-${L(a)}`)),()=>Array.from(L(i).title||q(`newSession`))[0]||`?`,()=>L(i).title||q(`newSession`),()=>u(L(i))]),B(e,d)},$$slots:{default:!0}})}},r=K(t,`sessions`,19,()=>[]),i=K(t,`error`,3,null),a=k(()=>Hw(r())),o=k(()=>J.overview===null?q(`sessionLoading`):r().length===1?q(`sessionCountOne`):r().length?q(`sessionCount`,{count:r().length}):q(`noActiveSessions`)),s=k(()=>({running:q(`statusRunning`),question:q(`statusQuestion`),error:q(`statusError`),done:q(`statusDone`)})),c={running:`status-success`,question:`status-warn`,error:`status-danger`,done:`border-border bg-secondary text-muted-foreground`};function l(e){return e.status&&[`running`,`question`,`error`,`done`].includes(e.status)?e.status:`done`}function u(e){return e.error||e.pending?.question||e.preview||q(`noMessage`)}function d(e){let t=e.runningSince;return typeof t==`number`&&Number.isFinite(t)?t:null}function p(e){return l(e)===`question`}function m(e){return p(e)&&J.pushQuestions&&e.pending?.answerable!==!1&&(e.pending?.questions?.length??0)>0}function h(e){p(e)&&e.id&&Ao(e.id)}function g(e,t){(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),h(t))}function _(e,t){return[e.turn?q(`turnLabel`,{turn:e.turn}):``,e.isSubagent&&t===0?q(`subagent`):``].filter(e=>!!e)}Gd(e,{class:`conversation-panel flex min-h-0 flex-col p-4`,children:(e,t)=>{var s=aT(),c=N(s);{let e=e=>{var t=eT(),n=P(t,!0);I(()=>V(n,L(o))),B(e,t)},t=k(()=>q(`conversations`));Vb(c,{get icon(){return VC},eyebrow:`CONVERSATIONS`,get title(){return L(t)},class:`mb-3`,children:e,$$slots:{default:!0}})}var l=F(c,2),u=M(l),d=e=>{var t=nT();Ei(t,20,()=>[,,,,],Si,(e,t)=>{var n=tT(),r=M(n),i=M(r);Zd(i,{class:`size-11 rounded-[13px]`});var a=F(i,2),o=M(a);Zd(o,{class:`h-4 w-2/5`}),Zd(F(o,2),{class:`h-3 w-3/4`}),E(a),E(r),E(n),B(e,n)}),E(t),B(e,t)},f=e=>{var t=rT(),n=M(t);{let e=k(()=>q(`sessionLoadFailed`)),t=k(()=>q(`tryLater`));cx(n,{get icon(){return Gw},get title(){return L(e)},get text(){return L(t)}})}E(t),B(e,t)},p=e=>{var t=rT(),n=M(t);{let e=k(()=>q(`noSessions`)),t=k(()=>q(`noSessionsHint`));cx(n,{get icon(){return Gw},get title(){return L(e)},get text(){return L(t)}})}E(t),B(e,t)},m=e=>{kb(e,{class:`min-h-0 flex-1`,scrollbarYClasses:`w-2`,children:(e,t)=>{var r=iT();Ei(r,21,()=>L(a),e=>e.session.id||e.session.title,(e,t)=>{n(e,()=>L(t),()=>0)}),E(r),B(e,r)},$$slots:{default:!0}})};H(u,e=>{J.overview===null&&r().length===0&&!i()?e(d):i()?e(f,1):r().length===0?e(p,2):e(m,-1)}),E(l),B(e,s)},$$slots:{default:!0}}),O()}var sT=(e,t=f,n=f,r=f)=>{var i=cT(),a=M(i),o=P(a,!0),s=P(F(a,2),!0);E(i),I(e=>{qi(i,1,e,`svelte-gxdl8t`),V(o,t()),V(s,n())},[()=>Vi(Fd(`stat`,r()))]),B(e,i)},cT=R(`<div><strong class="numeric svelte-gxdl8t"> </strong> <span class="svelte-gxdl8t"> </span></div>`),lT=R(`<!> <!> <!> <!>`,1);function uT(e,t){D(t,!0);let n=K(t,`sessions`,19,()=>[]),r=k(()=>{let e={running:0,question:0,error:0,done:0};for(let t of n()){let n=t.status;n&&n in e&&(e[n]+=1)}return e});Gd(e,{class:`status-panel grid min-h-0 grid-cols-2 grid-rows-2 gap-1.5 p-2`,children:(e,t)=>{var n=lT(),i=N(n);{let e=k(()=>q(`statusRunning`));sT(i,()=>L(r).running,()=>L(e),()=>`is-running`)}var a=F(i,2);{let e=k(()=>q(`statusQuestion`));sT(a,()=>L(r).question,()=>L(e),()=>L(r).question>0?`is-question`:``)}var o=F(a,2);{let e=k(()=>q(`statusError`));sT(o,()=>L(r).error,()=>L(e),()=>L(r).error>0?`is-error`:``)}var s=F(o,2);{let e=k(()=>q(`statusDone`));sT(s,()=>L(r).done,()=>L(e),()=>``)}B(e,n)},$$slots:{default:!0}}),O()}var dT={name:`chart-column`,size:24,node:[[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`}],[`path`,{d:`M18 17V9`}],[`path`,{d:`M13 17V5`}],[`path`,{d:`M8 17v-3`}]],aliases:[`bar-chart-3`]};dT.node;var fT=new Set([`$$slots`,`$$events`,`$$legacy`]);function pT(e,t){let n=W(t,fT);Wa(e,G(()=>n,{get icon(){return dT}}))}var mT=R(`<i></i>`),hT=R(`<div class="spend-chart svelte-dhodv4" aria-hidden="true"></div> <div class="relative z-10"><!> <div class="spend-values mt-3 grid grid-cols-2 gap-3 svelte-dhodv4"><div><p class="text-[15px] text-muted-foreground"> </p> <p class="spend-number numeric mt-1 svelte-dhodv4"> </p></div> <div class="border-l border-border pl-3"><p class="text-[15px] text-muted-foreground"> </p> <p class="spend-number numeric mt-1 svelte-dhodv4"> </p></div></div></div>`,1);function gT(e,t){D(t,!0);let n=k(()=>J.account),r=k(()=>!!(L(n)&&L(n).available!==!1&&L(n).signedIn)),i=k(()=>L(r)&&L(n)?.usage||{}),a=k(()=>L(n)?.balance?.currency||L(i).currency||`CNY`),o=k(()=>L(i).state===`ready`),s=k(()=>L(o)&&Array.isArray(L(i).daily)?L(i).daily:[]),c=k(()=>Math.max(0,...L(s).map(e=>Number(e.cost)||0))),l=k(()=>L(o)?L(i).today:null),u=k(()=>L(o)?L(i).spend:null),d=k(()=>q(J.balanceDisplay.spendWindow===`rolling`?`last7Days`:`thisWeek`));Gd(e,{class:`spend-card relative flex min-h-0 flex-col overflow-hidden p-4`,children:(e,t)=>{var n=hT(),r=N(n);Ei(r,23,()=>L(s),(e,t)=>e.label||t,(e,t,n)=>{let r=k(()=>L(c)>0?Math.max(6,Math.round((Number(L(t).cost)||0)/L(c)*100)):6);var i=mT();let a;I(()=>{Yi(i,`height:${L(r)}%`),a=qi(i,1,`svelte-dhodv4`,null,a,{"is-today":L(n)===L(s).length-1})}),B(e,i)}),E(r);var f=F(r,2),p=M(f);{let e=k(()=>q(`usage`));Vb(p,{get icon(){return pT},eyebrow:`SPEND`,get title(){return L(e)}})}var m=F(p,2),h=M(m),g=M(h),_=P(g,!0),v=P(F(g,2),!0);E(h);var y=F(h,2),b=M(y),x=P(b,!0),S=P(F(b,2),!0);E(y),E(m),E(f),I((e,t,n)=>{V(_,e),V(v,t),V(x,L(d)),V(S,n)},[()=>q(`todaySpend`),()=>L(o)?As(L(l),L(i).currency||L(a)):`—`,()=>L(o)?As(L(u),L(i).currency||L(a)):`—`]),B(e,n)},$$slots:{default:!0}}),O()}var _T=R(`<div class="sessions-grid svelte-1dld204"><aside class="billing-column svelte-1dld204"><!> <!> <!></aside> <!></div>`);function vT(e,t){D(t,!0);let n=k(()=>J.sessions),r=k(()=>J.sessionsError);var i=_T(),a=M(i),o=M(a);zw(o,{});var s=F(o,2);gT(s,{}),uT(F(s,2),{get sessions(){return L(n)}}),E(a),oT(F(a,2),{get sessions(){return L(n)},get error(){return L(r)}}),E(i),B(e,i),O()}var yT=Vu({base:`grid gap-0.5 rounded-lg border px-4 py-3 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2.5 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4 group/alert relative w-full`,variants:{variant:{default:`bg-card text-card-foreground`,destructive:`text-destructive bg-card *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current`}},defaultVariants:{variant:`default`}}),bT=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`variant`,`children`]),xT=R(`<div><!></div>`);function ST(e,t){D(t,!0);let n=K(t,`ref`,15,null),r=K(t,`variant`,3,`default`),i=W(t,bT);var a=xT();ha(a,e=>({"data-slot":`alert`,role:`alert`,class:e,...i}),[()=>Fd(yT({variant:r()}),t.class)]),U(M(a),()=>t.children??f),E(a),Ea(a,e=>n(e),()=>n()),B(e,a),O()}var CT={name:`circle-exclamation-point`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`}]],aliases:[`alert-circle`,`circle-alert`]};CT.node;var wT=new Set([`$$slots`,`$$events`,`$$legacy`]);function TT(e,t){let n=W(t,wT);Wa(e,G(()=>n,{get icon(){return CT}}))}var ET=R(`<!> <span> </span>`,1),DT=R(`<div class="toast-layer svelte-u3207f"><!></div>`);function OT(e,t){D(t,!1),Da();var n=z(),r=N(n),i=e=>{var t=DT();ST(M(t),{class:`flex w-auto items-center gap-2.5 rounded-full border-border bg-popover/95 px-4 py-2.5 text-[15px] text-foreground shadow-lg backdrop-blur-md`,children:(e,t)=>{var n=ET(),r=N(n);TT(r,{class:`size-[19px] text-brand`,strokeWidth:1.8});var i=P(F(r,2),!0);I(()=>V(i,J.toastMessage)),B(e,n)},$$slots:{default:!0}}),E(t),B(e,t)};H(r,e=>{J.toastVisible&&e(i)}),B(e,n),O()}var kT=R(`<section><!></section>`),AT=R(`<div class="offline svelte-6t5lyo" role="status"><!> <span> </span></div>`),jT=R(`<div><!> <main class="pager svelte-6t5lyo"></main></div> <!> <!> <!>`,1);function MT(e,t){D(t,!0);let n=k(()=>io(ro(J.pageOrder),J.pageEnabled)),r=k(()=>J.sessions.filter(e=>e.status===`question`).length),i=k(()=>J.sessions.filter(e=>e.status===`error`).length),a=k(()=>{let e=L(n).map(e=>({key:e,clone:null,uid:`real-${e}`}));return L(n).length<2?e:[{key:L(n)[L(n).length-1],clone:`last`,uid:`clone-last-${L(n)[L(n).length-1]}`},...e,{key:L(n)[0],clone:`first`,uid:`clone-first-${L(n)[0]}`}]}),o=A(void 0),s=null,c=0,l=``,u=0,d=0,f=new URLSearchParams(location.search).get(`page`);f&&no.includes(f)&&(J.initialKey=f);function p(){return+(L(n).length>1)}function m(e,t=!1){if(!L(o))return;let r=L(n).indexOf(e);if(r<0)return;let i=(r+p())*L(o).clientWidth;t?L(o).scrollTo({left:i,behavior:`smooth`}):(L(o).scrollLeft=i,requestAnimationFrame(()=>{L(o)&&(L(o).scrollLeft=i)}))}function h(e,t=!0){L(n).includes(e)&&(J.hasNavigated=!0,J.activeKey=e,c=Date.now()+(t?620:120),s&&=(clearTimeout(s),null),m(e,t))}function g(){if(u===0)return;let e=L(n).join(`|`),t=e===l,r=J.activeKey,i=J.initialKey&&L(n).includes(J.initialKey)?J.initialKey:null,a=i??(J.hasNavigated&&L(n).includes(r)?r:L(n)[0]);J.initialKey=null,J.hasNavigated=!0,J.activeKey=a,l=e,(i||!t||a!==r)&&(c=Date.now()+220,m(a,!1))}Nn(()=>{let e=J.pageRevision;e!==u&&(u=e,g())}),Nn(()=>{document.body.dataset.theme=J.theme,document.body.dataset.page=J.activeKey,document.documentElement.classList.toggle(`dark`,J.theme===`dark`),document.documentElement.classList.toggle(`light`,J.theme===`light`),document.querySelector(`meta[name="theme-color"]`)?.setAttribute(`content`,J.theme===`light`?`#eef2f8`:`#151a23`)});function _(e,t){s&&clearTimeout(s),s=setTimeout(()=>{if(s=null,!L(o))return;let n=Math.round(L(o).scrollLeft/Math.max(1,L(o).clientWidth));(e===t?n<=0:n>=t+1)&&(L(o).style.scrollSnapType=`none`,c=Date.now()+220,L(o).scrollLeft=e*L(o).clientWidth,requestAnimationFrame(()=>{requestAnimationFrame(()=>{L(o)&&(L(o).style.scrollSnapType=``)})}))},150)}function v(){L(o)&&(cancelAnimationFrame(d),d=requestAnimationFrame(()=>{if(!L(o)||Date.now()<c)return;let e=L(n).length,t=Math.round(L(o).scrollLeft/Math.max(1,L(o).clientWidth)),r=null,i=null;e<2?r=L(n)[0]:t<=0?(r=L(n)[e-1],i=e):t>=e+1?(r=L(n)[0],i=1):r=L(n)[t-1]??null,r&&r!==J.activeKey&&(J.activeKey=r,J.hasNavigated=!0),i===null?s&&=(clearTimeout(s),null):_(i,e)}))}function y(){L(o)&&(c=Date.now()+160,L(o).scrollLeft=(L(n).indexOf(J.activeKey)+p())*L(o).clientWidth)}function b(){return!!(document.fullscreenElement||document.webkitFullscreenElement)}function x(){J.fullscreen=b()}async function S(){try{if(b()){let e=document;document.exitFullscreen?await document.exitFullscreen():e.webkitExitFullscreen&&await e.webkitExitFullscreen()}else{let e=document.documentElement;e.requestFullscreen?await e.requestFullscreen():e.webkitRequestFullscreen?await e.webkitRequestFullscreen():Eo(q(`fullscreenUnsupported`))}}catch{Eo(q(`fullscreenDenied`))}setTimeout(x,120)}function ee(){document.hidden||go()}function C(){go(),Eo(q(`refreshing`))}Na(()=>{let e=Bo(),t=J.initialKey&&L(n).includes(J.initialKey)?J.initialKey:L(n)[0];return J.activeKey=t,l=L(n).join(`|`),Dr().then(()=>m(t,!1)),Ro(),Ho(),Vo(),x(),document.addEventListener(`fullscreenchange`,x),document.addEventListener(`webkitfullscreenchange`,x),document.addEventListener(`visibilitychange`,ee),window.addEventListener(`resize`,y),()=>{e(),zo(),s&&clearTimeout(s),cancelAnimationFrame(d),document.removeEventListener(`fullscreenchange`,x),document.removeEventListener(`webkitfullscreenchange`,x),document.removeEventListener(`visibilitychange`,ee),window.removeEventListener(`resize`,y)}});var te=jT(),ne=N(te),re=M(ne);tw(re,{get order(){return L(n)},get activeKey(){return J.activeKey},get questionCount(){return L(r)},get errorCount(){return L(i)},get timerAlert(){return Qo.active},onNavigate:h,onFullscreen:S,onRefresh:C});var ie=F(re,2);Ei(ie,21,()=>L(a),e=>e.uid,(e,t)=>{var n=kT();let r;var i=M(n),a=e=>{yx(e,{})},o=e=>{vT(e,{})},s=e=>{pS(e,{})},c=e=>{US(e,{})};H(i,e=>{L(t).key===`home`?e(a):L(t).key===`sessions`?e(o,1):L(t).key===`music`?e(s,2):L(t).key===`performance`&&e(c,3)}),E(n),I(e=>{r=qi(n,1,`page page-${L(t).key??``}`,`svelte-6t5lyo`,r,{"page-clone":L(t).clone!==null}),pa(n,`data-page-key`,L(t).clone?L(t).clone===`first`?`__first-clone`:`__last-clone`:L(t).key),pa(n,`data-source-key`,L(t).clone?L(t).key:void 0),pa(n,`aria-label`,e),pa(n,`aria-hidden`,L(t).clone?`true`:void 0)},[()=>to(L(t).key)]),B(e,n)}),E(ie),Ea(ie,e=>j(o,e),()=>L(o)),E(ne);var ae=F(ne,2),oe=e=>{var t=AT(),n=M(t);qa(n,{class:`size-3.5`,strokeWidth:1.8});var r=P(F(n,2),!0);E(t),I(e=>V(r,e),[()=>q(`offline`)]),B(e,t)};H(ae,e=>{J.online===!1&&e(oe)});var se=F(ae,2);OT(se,{}),FC(F(se,2),{}),I(()=>qi(ne,1,`app-shell nav-${J.navPosition??``}`,`svelte-6t5lyo`)),Xr(`scroll`,ie,v),B(e,te),O()}var NT=document.getElementById(`app`);if(!NT)throw Error(`Missing #app mount target`);mi(MT,{target:NT});