godown 3.13.1 → 3.13.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 (427) hide show
  1. package/alert.d.ts +0 -1
  2. package/alert.d.ts.map +1 -1
  3. package/alert.js.map +1 -1
  4. package/avatar.d.ts +0 -1
  5. package/avatar.d.ts.map +1 -1
  6. package/avatar.js.map +1 -1
  7. package/badge.d.ts +0 -1
  8. package/badge.d.ts.map +1 -1
  9. package/badge.js.map +1 -1
  10. package/breath.d.ts +0 -1
  11. package/breath.d.ts.map +1 -1
  12. package/breath.js.map +1 -1
  13. package/build/godown+lit.iife.js +16 -57
  14. package/build/godown+lit.iife.js.map +1 -1
  15. package/build/godown+lit.js +16 -57
  16. package/build/godown+lit.js.map +1 -1
  17. package/build/godown+lit.umd.js +16 -57
  18. package/build/godown+lit.umd.js.map +1 -1
  19. package/build/godown.iife.js +15 -47
  20. package/build/godown.iife.js.map +1 -1
  21. package/build/godown.js +15 -47
  22. package/build/godown.js.map +1 -1
  23. package/build/godown.umd.js +15 -47
  24. package/build/godown.umd.js.map +1 -1
  25. package/button.d.ts +0 -1
  26. package/button.d.ts.map +1 -1
  27. package/button.js.map +1 -1
  28. package/card.d.ts +0 -1
  29. package/card.d.ts.map +1 -1
  30. package/card.js.map +1 -1
  31. package/carousel.d.ts +0 -1
  32. package/carousel.d.ts.map +1 -1
  33. package/carousel.js.map +1 -1
  34. package/chip.d.ts +0 -1
  35. package/chip.d.ts.map +1 -1
  36. package/chip.js.map +1 -1
  37. package/custom-elements.json +1 -1
  38. package/details.d.ts +0 -1
  39. package/details.d.ts.map +1 -1
  40. package/details.js.map +1 -1
  41. package/dialog.d.ts +0 -1
  42. package/dialog.d.ts.map +1 -1
  43. package/dialog.js.map +1 -1
  44. package/divider.d.ts +0 -1
  45. package/divider.d.ts.map +1 -1
  46. package/divider.js.map +1 -1
  47. package/dragbox.d.ts +0 -1
  48. package/dragbox.d.ts.map +1 -1
  49. package/dragbox.js.map +1 -1
  50. package/flex.d.ts +0 -1
  51. package/flex.d.ts.map +1 -1
  52. package/flex.js.map +1 -1
  53. package/form.d.ts +0 -1
  54. package/form.d.ts.map +1 -1
  55. package/form.js.map +1 -1
  56. package/grid.d.ts +0 -1
  57. package/grid.d.ts.map +1 -1
  58. package/grid.js.map +1 -1
  59. package/heading.d.ts +0 -1
  60. package/heading.d.ts.map +1 -1
  61. package/heading.js.map +1 -1
  62. package/index.d.ts +0 -1
  63. package/index.d.ts.map +1 -1
  64. package/index.js.map +1 -1
  65. package/input.d.ts +0 -1
  66. package/input.d.ts.map +1 -1
  67. package/input.js.map +1 -1
  68. package/internal/global-style.d.ts +13 -15
  69. package/internal/global-style.d.ts.map +1 -1
  70. package/internal/global-style.js +1 -1
  71. package/internal/global-style.js.map +1 -1
  72. package/internal/icons/caret-down.d.ts +0 -1
  73. package/internal/icons/caret-down.d.ts.map +1 -1
  74. package/internal/icons/caret-down.js +1 -1
  75. package/internal/icons/caret-down.js.map +1 -1
  76. package/internal/icons/caret-left.d.ts +0 -1
  77. package/internal/icons/caret-left.d.ts.map +1 -1
  78. package/internal/icons/caret-left.js +1 -1
  79. package/internal/icons/caret-left.js.map +1 -1
  80. package/internal/icons/caret-right.d.ts +0 -1
  81. package/internal/icons/caret-right.d.ts.map +1 -1
  82. package/internal/icons/caret-right.js +1 -1
  83. package/internal/icons/caret-right.js.map +1 -1
  84. package/internal/icons/eye-slash.d.ts +0 -1
  85. package/internal/icons/eye-slash.d.ts.map +1 -1
  86. package/internal/icons/eye-slash.js +1 -1
  87. package/internal/icons/eye-slash.js.map +1 -1
  88. package/internal/popover.d.ts +0 -1
  89. package/internal/popover.d.ts.map +1 -1
  90. package/internal/popover.js +1 -1
  91. package/internal/popover.js.map +1 -1
  92. package/internal/reset-style.d.ts +0 -1
  93. package/internal/reset-style.d.ts.map +1 -1
  94. package/internal/reset-style.js +2 -1
  95. package/internal/reset-style.js.map +1 -1
  96. package/internal/ring.d.ts +9 -10
  97. package/internal/ring.d.ts.map +1 -1
  98. package/internal/ring.js +1 -1
  99. package/internal/ring.js.map +1 -1
  100. package/internal/super-input.d.ts +32 -33
  101. package/internal/super-input.d.ts.map +1 -1
  102. package/internal/super-input.js +2 -1
  103. package/internal/super-input.js.map +1 -1
  104. package/internal/utils.d.ts +0 -1
  105. package/internal/utils.d.ts.map +1 -1
  106. package/internal/utils.js +1 -1
  107. package/internal/utils.js.map +1 -1
  108. package/layout.d.ts +0 -1
  109. package/layout.d.ts.map +1 -1
  110. package/layout.js.map +1 -1
  111. package/link.d.ts +0 -1
  112. package/link.d.ts.map +1 -1
  113. package/link.js.map +1 -1
  114. package/package.json +5 -5
  115. package/popover.d.ts +0 -1
  116. package/popover.d.ts.map +1 -1
  117. package/popover.js.map +1 -1
  118. package/progress.d.ts +0 -1
  119. package/progress.d.ts.map +1 -1
  120. package/progress.js.map +1 -1
  121. package/range.d.ts +0 -1
  122. package/range.d.ts.map +1 -1
  123. package/range.js.map +1 -1
  124. package/rotate.d.ts +0 -1
  125. package/rotate.d.ts.map +1 -1
  126. package/rotate.js.map +1 -1
  127. package/router.d.ts +0 -1
  128. package/router.d.ts.map +1 -1
  129. package/router.js.map +1 -1
  130. package/select.d.ts +0 -1
  131. package/select.d.ts.map +1 -1
  132. package/select.js.map +1 -1
  133. package/skeleton.d.ts +0 -1
  134. package/skeleton.d.ts.map +1 -1
  135. package/skeleton.js.map +1 -1
  136. package/split.d.ts +0 -1
  137. package/split.d.ts.map +1 -1
  138. package/split.js.map +1 -1
  139. package/src/internal/popover.ts +1 -1
  140. package/src/web-components/alert/component.ts +1 -1
  141. package/src/web-components/breath/component.ts +1 -1
  142. package/src/web-components/router/component.ts +12 -12
  143. package/src/web-components/skeleton/component.ts +2 -2
  144. package/src/web-components/time/component.ts +1 -1
  145. package/switch.d.ts +0 -1
  146. package/switch.d.ts.map +1 -1
  147. package/switch.js.map +1 -1
  148. package/tabs.d.ts +0 -1
  149. package/tabs.d.ts.map +1 -1
  150. package/tabs.js.map +1 -1
  151. package/text.d.ts +0 -1
  152. package/text.d.ts.map +1 -1
  153. package/text.js.map +1 -1
  154. package/time.d.ts +0 -1
  155. package/time.d.ts.map +1 -1
  156. package/time.js.map +1 -1
  157. package/tooltip.d.ts +0 -1
  158. package/tooltip.d.ts.map +1 -1
  159. package/tooltip.js.map +1 -1
  160. package/typewriter.d.ts +0 -1
  161. package/typewriter.d.ts.map +1 -1
  162. package/typewriter.js.map +1 -1
  163. package/web-components/alert/component.d.ts +20 -21
  164. package/web-components/alert/component.d.ts.map +1 -1
  165. package/web-components/alert/component.js +1 -1
  166. package/web-components/alert/component.js.map +1 -1
  167. package/web-components/alert/definition.d.ts +3 -4
  168. package/web-components/alert/definition.d.ts.map +1 -1
  169. package/web-components/alert/definition.js +1 -1
  170. package/web-components/alert/definition.js.map +1 -1
  171. package/web-components/avatar/component.d.ts +25 -26
  172. package/web-components/avatar/component.d.ts.map +1 -1
  173. package/web-components/avatar/component.js +1 -1
  174. package/web-components/avatar/component.js.map +1 -1
  175. package/web-components/avatar/definition.d.ts +3 -4
  176. package/web-components/avatar/definition.d.ts.map +1 -1
  177. package/web-components/avatar/definition.js +1 -1
  178. package/web-components/avatar/definition.js.map +1 -1
  179. package/web-components/badge/component.d.ts +7 -8
  180. package/web-components/badge/component.d.ts.map +1 -1
  181. package/web-components/badge/component.js +2 -1
  182. package/web-components/badge/component.js.map +1 -1
  183. package/web-components/badge/definition.d.ts +3 -4
  184. package/web-components/badge/definition.d.ts.map +1 -1
  185. package/web-components/badge/definition.js +1 -1
  186. package/web-components/badge/definition.js.map +1 -1
  187. package/web-components/breath/component.d.ts +28 -29
  188. package/web-components/breath/component.d.ts.map +1 -1
  189. package/web-components/breath/component.js +1 -1
  190. package/web-components/breath/component.js.map +1 -1
  191. package/web-components/breath/definition.d.ts +3 -4
  192. package/web-components/breath/definition.d.ts.map +1 -1
  193. package/web-components/breath/definition.js +1 -1
  194. package/web-components/breath/definition.js.map +1 -1
  195. package/web-components/button/component.d.ts +35 -36
  196. package/web-components/button/component.d.ts.map +1 -1
  197. package/web-components/button/component.js +1 -1
  198. package/web-components/button/component.js.map +1 -1
  199. package/web-components/button/definition.d.ts +3 -4
  200. package/web-components/button/definition.d.ts.map +1 -1
  201. package/web-components/button/definition.js +1 -1
  202. package/web-components/button/definition.js.map +1 -1
  203. package/web-components/card/component.d.ts +21 -22
  204. package/web-components/card/component.d.ts.map +1 -1
  205. package/web-components/card/component.js +1 -1
  206. package/web-components/card/component.js.map +1 -1
  207. package/web-components/card/definition.d.ts +3 -4
  208. package/web-components/card/definition.d.ts.map +1 -1
  209. package/web-components/card/definition.js +1 -1
  210. package/web-components/card/definition.js.map +1 -1
  211. package/web-components/carousel/component.d.ts +32 -33
  212. package/web-components/carousel/component.d.ts.map +1 -1
  213. package/web-components/carousel/component.js +2 -1
  214. package/web-components/carousel/component.js.map +1 -1
  215. package/web-components/carousel/definition.d.ts +3 -4
  216. package/web-components/carousel/definition.d.ts.map +1 -1
  217. package/web-components/carousel/definition.js +1 -1
  218. package/web-components/carousel/definition.js.map +1 -1
  219. package/web-components/chip/component.d.ts +21 -22
  220. package/web-components/chip/component.d.ts.map +1 -1
  221. package/web-components/chip/component.js +1 -1
  222. package/web-components/chip/component.js.map +1 -1
  223. package/web-components/chip/definition.d.ts +3 -4
  224. package/web-components/chip/definition.d.ts.map +1 -1
  225. package/web-components/chip/definition.js +1 -1
  226. package/web-components/chip/definition.js.map +1 -1
  227. package/web-components/details/component.d.ts +16 -17
  228. package/web-components/details/component.d.ts.map +1 -1
  229. package/web-components/details/component.js +1 -1
  230. package/web-components/details/component.js.map +1 -1
  231. package/web-components/details/definition.d.ts +3 -4
  232. package/web-components/details/definition.d.ts.map +1 -1
  233. package/web-components/details/definition.js +1 -1
  234. package/web-components/details/definition.js.map +1 -1
  235. package/web-components/dialog/component.d.ts +30 -31
  236. package/web-components/dialog/component.d.ts.map +1 -1
  237. package/web-components/dialog/component.js +1 -1
  238. package/web-components/dialog/component.js.map +1 -1
  239. package/web-components/dialog/definition.d.ts +3 -4
  240. package/web-components/dialog/definition.d.ts.map +1 -1
  241. package/web-components/dialog/definition.js +1 -1
  242. package/web-components/dialog/definition.js.map +1 -1
  243. package/web-components/divider/component.d.ts +9 -10
  244. package/web-components/divider/component.d.ts.map +1 -1
  245. package/web-components/divider/component.js +1 -1
  246. package/web-components/divider/component.js.map +1 -1
  247. package/web-components/divider/definition.d.ts +3 -4
  248. package/web-components/divider/definition.d.ts.map +1 -1
  249. package/web-components/divider/definition.js +1 -1
  250. package/web-components/divider/definition.js.map +1 -1
  251. package/web-components/dragbox/component.d.ts +31 -32
  252. package/web-components/dragbox/component.d.ts.map +1 -1
  253. package/web-components/dragbox/component.js +2 -1
  254. package/web-components/dragbox/component.js.map +1 -1
  255. package/web-components/dragbox/definition.d.ts +3 -4
  256. package/web-components/dragbox/definition.d.ts.map +1 -1
  257. package/web-components/dragbox/definition.js +1 -1
  258. package/web-components/dragbox/definition.js.map +1 -1
  259. package/web-components/flex/component.d.ts +26 -27
  260. package/web-components/flex/component.d.ts.map +1 -1
  261. package/web-components/flex/component.js +2 -1
  262. package/web-components/flex/component.js.map +1 -1
  263. package/web-components/flex/definition.d.ts +3 -4
  264. package/web-components/flex/definition.d.ts.map +1 -1
  265. package/web-components/flex/definition.js +1 -1
  266. package/web-components/flex/definition.js.map +1 -1
  267. package/web-components/form/component.d.ts +16 -17
  268. package/web-components/form/component.d.ts.map +1 -1
  269. package/web-components/form/component.js +2 -1
  270. package/web-components/form/component.js.map +1 -1
  271. package/web-components/form/definition.d.ts +3 -4
  272. package/web-components/form/definition.d.ts.map +1 -1
  273. package/web-components/form/definition.js +1 -1
  274. package/web-components/form/definition.js.map +1 -1
  275. package/web-components/grid/component.d.ts +30 -31
  276. package/web-components/grid/component.d.ts.map +1 -1
  277. package/web-components/grid/component.js +2 -1
  278. package/web-components/grid/component.js.map +1 -1
  279. package/web-components/grid/definition.d.ts +3 -4
  280. package/web-components/grid/definition.d.ts.map +1 -1
  281. package/web-components/grid/definition.js +1 -1
  282. package/web-components/grid/definition.js.map +1 -1
  283. package/web-components/heading/component.d.ts +23 -24
  284. package/web-components/heading/component.d.ts.map +1 -1
  285. package/web-components/heading/component.js +2 -1
  286. package/web-components/heading/component.js.map +1 -1
  287. package/web-components/heading/definition.d.ts +3 -4
  288. package/web-components/heading/definition.d.ts.map +1 -1
  289. package/web-components/heading/definition.js +1 -1
  290. package/web-components/heading/definition.js.map +1 -1
  291. package/web-components/input/component.d.ts +17 -18
  292. package/web-components/input/component.d.ts.map +1 -1
  293. package/web-components/input/component.js +1 -1
  294. package/web-components/input/component.js.map +1 -1
  295. package/web-components/input/definition.d.ts +3 -4
  296. package/web-components/input/definition.d.ts.map +1 -1
  297. package/web-components/input/definition.js +1 -1
  298. package/web-components/input/definition.js.map +1 -1
  299. package/web-components/layout/component.d.ts +18 -19
  300. package/web-components/layout/component.d.ts.map +1 -1
  301. package/web-components/layout/component.js +2 -1
  302. package/web-components/layout/component.js.map +1 -1
  303. package/web-components/layout/definition.d.ts +3 -4
  304. package/web-components/layout/definition.d.ts.map +1 -1
  305. package/web-components/layout/definition.js +1 -1
  306. package/web-components/layout/definition.js.map +1 -1
  307. package/web-components/link/component.d.ts +54 -55
  308. package/web-components/link/component.d.ts.map +1 -1
  309. package/web-components/link/component.js +2 -1
  310. package/web-components/link/component.js.map +1 -1
  311. package/web-components/link/definition.d.ts +3 -4
  312. package/web-components/link/definition.d.ts.map +1 -1
  313. package/web-components/link/definition.js +1 -1
  314. package/web-components/link/definition.js.map +1 -1
  315. package/web-components/popover/component.d.ts +28 -29
  316. package/web-components/popover/component.d.ts.map +1 -1
  317. package/web-components/popover/component.js +2 -1
  318. package/web-components/popover/component.js.map +1 -1
  319. package/web-components/popover/definition.d.ts +3 -4
  320. package/web-components/popover/definition.d.ts.map +1 -1
  321. package/web-components/popover/definition.js +1 -1
  322. package/web-components/popover/definition.js.map +1 -1
  323. package/web-components/progress/component.d.ts +8 -9
  324. package/web-components/progress/component.d.ts.map +1 -1
  325. package/web-components/progress/component.js +1 -1
  326. package/web-components/progress/component.js.map +1 -1
  327. package/web-components/progress/definition.d.ts +3 -4
  328. package/web-components/progress/definition.d.ts.map +1 -1
  329. package/web-components/progress/definition.js +1 -1
  330. package/web-components/progress/definition.js.map +1 -1
  331. package/web-components/range/component.d.ts +108 -109
  332. package/web-components/range/component.d.ts.map +1 -1
  333. package/web-components/range/component.js +1 -1
  334. package/web-components/range/component.js.map +1 -1
  335. package/web-components/range/definition.d.ts +3 -4
  336. package/web-components/range/definition.d.ts.map +1 -1
  337. package/web-components/range/definition.js +1 -1
  338. package/web-components/range/definition.js.map +1 -1
  339. package/web-components/rotate/component.d.ts +22 -23
  340. package/web-components/rotate/component.d.ts.map +1 -1
  341. package/web-components/rotate/component.js +1 -1
  342. package/web-components/rotate/component.js.map +1 -1
  343. package/web-components/rotate/definition.d.ts +3 -4
  344. package/web-components/rotate/definition.d.ts.map +1 -1
  345. package/web-components/rotate/definition.js +1 -1
  346. package/web-components/rotate/definition.js.map +1 -1
  347. package/web-components/router/component.d.ts +99 -100
  348. package/web-components/router/component.d.ts.map +1 -1
  349. package/web-components/router/component.js +2 -1
  350. package/web-components/router/component.js.map +1 -1
  351. package/web-components/router/definition.d.ts +3 -4
  352. package/web-components/router/definition.d.ts.map +1 -1
  353. package/web-components/router/definition.js +1 -1
  354. package/web-components/router/definition.js.map +1 -1
  355. package/web-components/select/component.d.ts +30 -31
  356. package/web-components/select/component.d.ts.map +1 -1
  357. package/web-components/select/component.js +2 -1
  358. package/web-components/select/component.js.map +1 -1
  359. package/web-components/select/definition.d.ts +3 -4
  360. package/web-components/select/definition.d.ts.map +1 -1
  361. package/web-components/select/definition.js +1 -1
  362. package/web-components/select/definition.js.map +1 -1
  363. package/web-components/skeleton/component.d.ts +11 -12
  364. package/web-components/skeleton/component.d.ts.map +1 -1
  365. package/web-components/skeleton/component.js +1 -1
  366. package/web-components/skeleton/component.js.map +1 -1
  367. package/web-components/skeleton/definition.d.ts +3 -4
  368. package/web-components/skeleton/definition.d.ts.map +1 -1
  369. package/web-components/skeleton/definition.js +1 -1
  370. package/web-components/skeleton/definition.js.map +1 -1
  371. package/web-components/split/component.d.ts +48 -49
  372. package/web-components/split/component.d.ts.map +1 -1
  373. package/web-components/split/component.js +1 -1
  374. package/web-components/split/component.js.map +1 -1
  375. package/web-components/split/definition.d.ts +3 -4
  376. package/web-components/split/definition.d.ts.map +1 -1
  377. package/web-components/split/definition.js +1 -1
  378. package/web-components/split/definition.js.map +1 -1
  379. package/web-components/switch/component.d.ts +20 -21
  380. package/web-components/switch/component.d.ts.map +1 -1
  381. package/web-components/switch/component.js +1 -1
  382. package/web-components/switch/component.js.map +1 -1
  383. package/web-components/switch/definition.d.ts +3 -4
  384. package/web-components/switch/definition.d.ts.map +1 -1
  385. package/web-components/switch/definition.js +1 -1
  386. package/web-components/switch/definition.js.map +1 -1
  387. package/web-components/tabs/component.d.ts +39 -40
  388. package/web-components/tabs/component.d.ts.map +1 -1
  389. package/web-components/tabs/component.js +1 -1
  390. package/web-components/tabs/component.js.map +1 -1
  391. package/web-components/tabs/definition.d.ts +3 -4
  392. package/web-components/tabs/definition.d.ts.map +1 -1
  393. package/web-components/tabs/definition.js +1 -1
  394. package/web-components/tabs/definition.js.map +1 -1
  395. package/web-components/text/component.d.ts +10 -11
  396. package/web-components/text/component.d.ts.map +1 -1
  397. package/web-components/text/component.js +1 -1
  398. package/web-components/text/component.js.map +1 -1
  399. package/web-components/text/definition.d.ts +3 -4
  400. package/web-components/text/definition.d.ts.map +1 -1
  401. package/web-components/text/definition.js +1 -1
  402. package/web-components/text/definition.js.map +1 -1
  403. package/web-components/time/component.d.ts +28 -29
  404. package/web-components/time/component.d.ts.map +1 -1
  405. package/web-components/time/component.js +1 -1
  406. package/web-components/time/component.js.map +1 -1
  407. package/web-components/time/definition.d.ts +3 -4
  408. package/web-components/time/definition.d.ts.map +1 -1
  409. package/web-components/time/definition.js +1 -1
  410. package/web-components/time/definition.js.map +1 -1
  411. package/web-components/tooltip/component.d.ts +19 -20
  412. package/web-components/tooltip/component.d.ts.map +1 -1
  413. package/web-components/tooltip/component.js +1 -1
  414. package/web-components/tooltip/component.js.map +1 -1
  415. package/web-components/tooltip/definition.d.ts +3 -4
  416. package/web-components/tooltip/definition.d.ts.map +1 -1
  417. package/web-components/tooltip/definition.js +1 -1
  418. package/web-components/tooltip/definition.js.map +1 -1
  419. package/web-components/typewriter/component.d.ts +43 -44
  420. package/web-components/typewriter/component.d.ts.map +1 -1
  421. package/web-components/typewriter/component.js +1 -1
  422. package/web-components/typewriter/component.js.map +1 -1
  423. package/web-components/typewriter/definition.d.ts +3 -4
  424. package/web-components/typewriter/definition.d.ts.map +1 -1
  425. package/web-components/typewriter/definition.js +1 -1
  426. package/web-components/typewriter/definition.js.map +1 -1
  427. package/web-types.json +1 -1
@@ -1,58 +1,17 @@
1
- /**
2
- * @license MIT
3
- * @version 3.13.1
4
- */
5
- function t(t,e,s,o){var r,a=arguments.length,l=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,s):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,e,s,o);else for(var h=t.length-1;h>=0;h--)(r=t[h])&&(l=(a<3?r(l):a>3?r(e,s,l):r(e,s))||l);return a>3&&l&&Object.defineProperty(e,s,l),l}"function"==typeof SuppressedError&&SuppressedError;const e=t=>null==t,s=t=>"string"==typeof t,o=t=>null!==t&&"object"==typeof t,{isArray:r}=Array,a=(t,...e)=>{const s={};for(const o in t)e.includes(o)||(s[o]=t[o]);return s},l=t=>(t=>{var e;return(null===(e=t.match(/[A-Z][^A-Z_-\s]*|[^A-Z_-\s]+/g))||void 0===e?void 0:e.map((t=>t.toLowerCase())))||[]})(t).join("-");
6
- /**
7
- * @license
8
- * Copyright 2019 Google LLC
9
- * SPDX-License-Identifier: BSD-3-Clause
10
- */
11
- const h=globalThis,d=h.ShadowRoot&&(void 0===h.ShadyCSS||h.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,c=Symbol(),p=new WeakMap;let u=class n{constructor(t,e,s){if(this._$cssResult$=!0,s!==c)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(d&&void 0===t){const s=void 0!==e&&1===e.length;s&&(t=p.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&p.set(e,t))}return t}toString(){return this.cssText}};const v=t=>new u("string"==typeof t?t:t+"",void 0,c),f=(t,...e)=>{const s=1===t.length?t[0]:e.reduce(((e,s,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1]),t[0]);return new u(s,t,c)},m=d?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return v(e)})(t):t
12
- /**
13
- * @license
14
- * Copyright 2017 Google LLC
15
- * SPDX-License-Identifier: BSD-3-Clause
16
- */,{is:g,defineProperty:$,getOwnPropertyDescriptor:b,getOwnPropertyNames:_,getOwnPropertySymbols:w,getPrototypeOf:x}=Object,S=globalThis,C=S.trustedTypes,A=C?C.emptyScript:"",E=S.reactiveElementPolyfillSupport,T=(t,e)=>t,P={toAttribute(t,e){switch(e){case Boolean:t=t?A:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let s=t;switch(e){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t)}catch(t){s=null}}return s}},O=(t,e)=>!g(t,e),B={attribute:!0,type:String,converter:P,reflect:!1,useDefault:!1,hasChanged:O};Symbol.metadata??=Symbol("metadata"),S.litPropertyMetadata??=new WeakMap;let D=class y extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=B){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),o=this.getPropertyDescriptor(t,s,e);void 0!==o&&$(this.prototype,t,o)}}static getPropertyDescriptor(t,e,s){const{get:o,set:r}=b(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:o,set(e){const a=o?.call(this);r?.call(this,e),this.requestUpdate(t,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??B}static _$Ei(){if(this.hasOwnProperty(T("elementProperties")))return;const t=x(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(T("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(T("properties"))){const t=this.properties,e=[..._(t),...w(t)];for(const s of e)this.createProperty(s,t[s])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,s]of e)this.elementProperties.set(t,s)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const s=this._$Eu(t,e);void 0!==s&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const t of s)e.unshift(m(t))}else void 0!==t&&e.push(m(t));return e}static _$Eu(t,e){const s=e.attribute;return!1===s?void 0:"string"==typeof s?s:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(d)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const s of e){const e=document.createElement("style"),o=h.litNonce;void 0!==o&&e.setAttribute("nonce",o),e.textContent=s.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){const s=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,s);if(void 0!==o&&!0===s.reflect){const r=(void 0!==s.converter?.toAttribute?s.converter:P).toAttribute(e,s.type);this._$Em=t,null==r?this.removeAttribute(o):this.setAttribute(o,r),this._$Em=null}}_$AK(t,e){const s=this.constructor,o=s._$Eh.get(t);if(void 0!==o&&this._$Em!==o){const t=s.getPropertyOptions(o),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:P;this._$Em=o,this[o]=r.fromAttribute(e,t.type)??this._$Ej?.get(o)??null,this._$Em=null}}requestUpdate(t,e,s){if(void 0!==t){const o=this.constructor,r=this[t];if(s??=o.getPropertyOptions(t),!((s.hasChanged??O)(r,e)||s.useDefault&&s.reflect&&r===this._$Ej?.get(t)&&!this.hasAttribute(o._$Eu(t,s))))return;this.C(t,e,s)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:o,wrapped:r},a){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,a??e??this[t]),!0!==r||void 0!==a)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),!0===o&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,s]of t){const{wrapped:t}=s,o=this[e];!0!==t||this._$AL.has(e)||void 0===o||this.C(e,void 0,s,o)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$EM()}catch(e){throw t=!1,this._$EM(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach((t=>this._$ET(t,this[t]))),this._$EM()}updated(t){}firstUpdated(t){}};D.elementStyles=[],D.shadowRootOptions={mode:"open"},D[T("elementProperties")]=new Map,D[T("finalized")]=new Map,E?.({ReactiveElement:D}),(S.reactiveElementVersions??=[]).push("2.1.0");
17
- /**
18
- * @license
19
- * Copyright 2017 Google LLC
20
- * SPDX-License-Identifier: BSD-3-Clause
21
- */
22
- const U=globalThis,j=U.trustedTypes,V=j?j.createPolicy("lit-html",{createHTML:t=>t}):void 0,G="$lit$",F=`lit$${Math.random().toFixed(9).slice(2)}$`,W="?"+F,q=`<${W}>`,Y=document,X=()=>Y.createComment(""),Z=t=>null===t||"object"!=typeof t&&"function"!=typeof t,K=Array.isArray,Q="[ \t\n\f\r]",J=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,tt=/-->/g,et=/>/g,it=RegExp(`>|${Q}(?:([^\\s"'>=/]+)(${Q}*=${Q}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),st=/'/g,ot=/"/g,rt=/^(?:script|style|textarea|title)$/i,nt=t=>(e,...s)=>({_$litType$:t,strings:e,values:s}),at=nt(1),lt=nt(2),ht=Symbol.for("lit-noChange"),dt=Symbol.for("lit-nothing"),ct=new WeakMap,pt=Y.createTreeWalker(Y,129);function ut(t,e){if(!K(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==V?V.createHTML(e):e}class N{constructor({strings:t,_$litType$:e},s){let o;this.parts=[];let r=0,a=0;const l=t.length-1,h=this.parts,[d,c]=((t,e)=>{const s=t.length-1,o=[];let r,a=2===e?"<svg>":3===e?"<math>":"",l=J;for(let e=0;e<s;e++){const s=t[e];let h,d,c=-1,p=0;for(;p<s.length&&(l.lastIndex=p,d=l.exec(s),null!==d);)p=l.lastIndex,l===J?"!--"===d[1]?l=tt:void 0!==d[1]?l=et:void 0!==d[2]?(rt.test(d[2])&&(r=RegExp("</"+d[2],"g")),l=it):void 0!==d[3]&&(l=it):l===it?">"===d[0]?(l=r??J,c=-1):void 0===d[1]?c=-2:(c=l.lastIndex-d[2].length,h=d[1],l=void 0===d[3]?it:'"'===d[3]?ot:st):l===ot||l===st?l=it:l===tt||l===et?l=J:(l=it,r=void 0);const u=l===it&&t[e+1].startsWith("/>")?" ":"";a+=l===J?s+q:c>=0?(o.push(h),s.slice(0,c)+G+s.slice(c)+F+u):s+F+(-2===c?e:u)}return[ut(t,a+(t[s]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),o]})(t,e);if(this.el=N.createElement(d,s),pt.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(o=pt.nextNode())&&h.length<l;){if(1===o.nodeType){if(o.hasAttributes())for(const t of o.getAttributeNames())if(t.endsWith(G)){const e=c[a++],s=o.getAttribute(t).split(F),l=/([.?@])?(.*)/.exec(e);h.push({type:1,index:r,name:l[2],strings:s,ctor:"."===l[1]?H:"?"===l[1]?I:"@"===l[1]?L:ft}),o.removeAttribute(t)}else t.startsWith(F)&&(h.push({type:6,index:r}),o.removeAttribute(t));if(rt.test(o.tagName)){const t=o.textContent.split(F),e=t.length-1;if(e>0){o.textContent=j?j.emptyScript:"";for(let s=0;s<e;s++)o.append(t[s],X()),pt.nextNode(),h.push({type:2,index:++r});o.append(t[e],X())}}}else if(8===o.nodeType)if(o.data===W)h.push({type:2,index:r});else{let t=-1;for(;-1!==(t=o.data.indexOf(F,t+1));)h.push({type:7,index:r}),t+=F.length-1}r++}}static createElement(t,e){const s=Y.createElement("template");return s.innerHTML=t,s}}function vt(t,e,s=t,o){if(e===ht)return e;let r=void 0!==o?s._$Co?.[o]:s._$Cl;const a=Z(e)?void 0:e._$litDirective$;return r?.constructor!==a&&(r?._$AO?.(!1),void 0===a?r=void 0:(r=new a(t),r._$AT(t,s,o)),void 0!==o?(s._$Co??=[])[o]=r:s._$Cl=r),void 0!==r&&(e=vt(t,r._$AS(t,e.values),r,o)),e}class M{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,o=(t?.creationScope??Y).importNode(e,!0);pt.currentNode=o;let r=pt.nextNode(),a=0,l=0,h=s[0];for(;void 0!==h;){if(a===h.index){let e;2===h.type?e=new R(r,r.nextSibling,this,t):1===h.type?e=new h.ctor(r,h.name,h.strings,this,t):6===h.type&&(e=new z(r,this,t)),this._$AV.push(e),h=s[++l]}a!==h?.index&&(r=pt.nextNode(),a++)}return pt.currentNode=Y,o}p(t){let e=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,o){this.type=2,this._$AH=dt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=vt(this,t,e),Z(t)?t===dt||null==t||""===t?(this._$AH!==dt&&this._$AR(),this._$AH=dt):t!==this._$AH&&t!==ht&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>K(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==dt&&Z(this._$AH)?this._$AA.nextSibling.data=t:this.T(Y.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:s}=t,o="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=N.createElement(ut(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===o)this._$AH.p(e);else{const t=new M(o,this),s=t.u(this.options);t.p(e),this.T(s),this._$AH=t}}_$AC(t){let e=ct.get(t.strings);return void 0===e&&ct.set(t.strings,e=new N(t)),e}k(t){K(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,o=0;for(const r of t)o===e.length?e.push(s=new R(this.O(X()),this.O(X()),this,this.options)):s=e[o],s._$AI(r),o++;o<e.length&&(this._$AR(s&&s._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}let ft=class k{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,o,r){this.type=1,this._$AH=dt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=r,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=dt}_$AI(t,e=this,s,o){const r=this.strings;let a=!1;if(void 0===r)t=vt(this,t,e,0),a=!Z(t)||t!==this._$AH&&t!==ht,a&&(this._$AH=t);else{const o=t;let l,h;for(t=r[0],l=0;l<r.length-1;l++)h=vt(this,o[s+l],e,l),h===ht&&(h=this._$AH[l]),a||=!Z(h)||h!==this._$AH[l],h===dt?t=dt:t!==dt&&(t+=(h??"")+r[l+1]),this._$AH[l]=h}a&&!o&&this.j(t)}j(t){t===dt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}};class H extends ft{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===dt?void 0:t}}class I extends ft{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==dt)}}class L extends ft{constructor(t,e,s,o,r){super(t,e,s,o,r),this.type=5}_$AI(t,e=this){if((t=vt(this,t,e,0)??dt)===ht)return;const s=this._$AH,o=t===dt&&s!==dt||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==dt&&(s===dt||o);o&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class z{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){vt(this,t)}}const mt=U.litHtmlPolyfillSupport;mt?.(N,R),(U.litHtmlVersions??=[]).push("3.3.0");const gt=globalThis;
23
- /**
24
- * @license
25
- * Copyright 2017 Google LLC
26
- * SPDX-License-Identifier: BSD-3-Clause
27
- */let yt=class i extends D{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,s)=>{const o=s?.renderBefore??e;let r=o._$litPart$;if(void 0===r){const t=s?.renderBefore??null;o._$litPart$=r=new R(e.insertBefore(X(),t),t,void 0,s??{})}return r._$AI(t),r})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return ht}};yt._$litElement$=!0,yt.finalized=!0,gt.litElementHydrateSupport?.({LitElement:yt});const $t=gt.litElementPolyfillSupport;function*bt(t){for(const e of r(t)?t:Object.entries(t))e&&(yield e)}$t?.({LitElement:yt}),(gt.litElementVersions??=[]).push("4.2.0");const _t=t=>o(t)&&"_$cssResult$"in t,wt=t=>!e(t)&&!1!==t,xt=t=>{let e="";for(const[s,r]of bt(t))if(r){const t=o(r)&&!_t(r)?kt(r):r;wt(t)&&(e+=s?`${s}{${t}}`:t)}return e},kt=t=>{let e="";for(const[s,o]of bt(t))s&&wt(o)&&(e+=`${s}:${o};`);return e},St=(t,e)=>t?`var(${t})`:"";class StyleController{constructor(t,e){(this.host=t).addController(this),this.computeStyle=e}hostUpdated(){const t=this.host.shadowRoot?.adoptedStyleSheets;if(!t)return;void 0!==this.styleID&&t.splice(this.styleID,1);const e=this.computeStyle();this.styleID=e?t.push((t=>{if(s(t)){const e=new CSSStyleSheet;return e.replaceSync(t),e}return _t(t)?t.styleSheet:t})(e))-1:void 0}}const Ct=(...t)=>e=>{const s=[];for(let t=Object.getPrototypeOf(e);t.styles;t=Object.getPrototypeOf(t))s.push(t.styles);e.styles=[...s,...t]},At=(t,e)=>s=>{t||=l(s.name),s.protoName=t;(({tagName:t,styles:e,autoDefine:s=!1,registry:o=customElements})=>r=>{r.elementTagName=t,e&&Ct(e)(r),s&&!o.get(t)&&o.define(t,r)})({tagName:s.godownConfig.tag(t),...e})(s)}
28
- /**
29
- * @license
30
- * Copyright 2017 Google LLC
31
- * SPDX-License-Identifier: BSD-3-Clause
32
- */,Rt={attribute:!0,type:String,converter:P,reflect:!1,hasChanged:O},Et=(t=Rt,e,s)=>{const{kind:o,metadata:r}=s;let a=globalThis.litPropertyMetadata.get(r);if(void 0===a&&globalThis.litPropertyMetadata.set(r,a=new Map),"setter"===o&&((t=Object.create(t)).wrapped=!0),a.set(s.name,t),"accessor"===o){const{name:o}=s;return{set(s){const r=e.get.call(this);e.set.call(this,s),this.requestUpdate(o,r,t)},init(e){return void 0!==e&&this.C(o,void 0,t,e),e}}}if("setter"===o){const{name:o}=s;return function(s){const r=this[o];e.call(this,s),this.requestUpdate(o,r,t)}}throw Error("Unsupported decorator location: "+o)};function Tt(t){return(e,s)=>"object"==typeof s?Et(t,e,s):((t,e,s)=>{const o=e.hasOwnProperty(s);return e.constructor.createProperty(s,t),o?Object.getOwnPropertyDescriptor(e,s):void 0})(t,e,s)
33
- /**
34
- * @license
35
- * Copyright 2017 Google LLC
36
- * SPDX-License-Identifier: BSD-3-Clause
37
- */}function Mt(t){return Tt({...t,state:!0,attribute:!1})}
38
- /**
39
- * @license
40
- * Copyright 2017 Google LLC
41
- * SPDX-License-Identifier: BSD-3-Clause
42
- */const Nt=(t,e,s)=>(s.configurable=!0,s.enumerable=!0,Reflect.decorate&&"object"!=typeof e&&Object.defineProperty(t,e,s),s)
43
- /**
44
- * @license
45
- * Copyright 2017 Google LLC
46
- * SPDX-License-Identifier: BSD-3-Clause
47
- */;function Pt(t,e){return(s,o,r)=>{const a=e=>e.renderRoot?.querySelector(t)??null;if(e){const{get:t,set:e}="object"==typeof o?s:r??(()=>{const t=Symbol();return{get(){return this[t]},set(e){this[t]=e}}})();return Nt(s,o,{get(){let s=t.call(this);return void 0===s&&(s=a(this),(null!==s||this.hasUpdated)&&e.call(this,s)),s}})}return Nt(s,o,{get(){return a(this)}})}}
48
- /**
49
- * @license
50
- * Copyright 2017 Google LLC
51
- * SPDX-License-Identifier: BSD-3-Clause
52
- */let Ot;function Bt(t){return(e,s)=>Nt(e,s,{get(){return(this.renderRoot??(Ot??=document.createDocumentFragment())).querySelectorAll(t)}})}const It=(t,e=!0)=>{return Pt((s=t,o?`::part(${s})`:((t,e)=>e?`[${t}~="${e}"]`:`[${t}]`)("part",s)),e);
53
- /**
54
- * @license
55
- * Copyright 2017 Google LLC
56
- * SPDX-License-Identifier: BSD-3-Clause
57
- */var s,o},zt=6;let Dt=class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};const Ut=(t,e)=>(t?t+(e?" "+e:""):e)||"",jt=(...t)=>t.reduce(((t,e)=>{if(!e)return t;if(r(e))return Ut(t,jt(...e));if(o(e)){for(const s in e)e[s]&&(t=Ut(t,s));return t}return Ut(t,e)}),"");function Vt(t,o){(t=>e(t)||!1===t)(o)?this.removeAttribute(t):!0===o?this.setAttribute(t,""):s(o)||(t=>"number"==typeof t)(o)&&!Number.isNaN(o)?this.setAttribute(t,String(o)):this[t]=o}const Ht=(t=>(...e)=>({_$litDirective$:t,values:e}))(class AttrDirective extends Dt{render(t,e){}update(t,[e,s=Vt]){if(e&&t.type===zt)for(const o in e)s.call(t.element,o,e[o]);return ht}}),Lt=((t,e)=>s=>t({...e,...s}))(Ht,{width:"1em",height:"1em",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}),Gt=(t,e)=>at`<slot name="${t||dt}">${e||dt}</slot>`,Ft=(t,e)=>{if(!t)return dt;const o=s(t)?t:xt(t);return o?at`<style media="${dt}">${o}</style>`:dt},Wt=t=>(e,...o)=>{const r=lt(e,o),a=s(t)?t:t.join(" "),l=t=>at`<svg viewBox="${a}" ${Lt(t)}>${r}</svg>`;return l.body=r,l.viewBox=a,l};function*qt(t,e,s){for(let s=0;s<t;s++)yield e(s)}function Yt(t,e=this){if(!e||!t)return[];const s=new Set;e instanceof Element&&e.shadowRoot&&Yt(t,e.shadowRoot).forEach((t=>s.add(t))),e.querySelectorAll(t).forEach((t=>s.add(t)));for(const o of e.children)Yt(t,o).forEach((t=>s.add(t)));return Array.from(s)}function Xt(t,e=this){if(!e||!t)return null;let s;if(e instanceof Element&&e.shadowRoot&&(s=Xt(t,e.shadowRoot),s))return s;if(s=e.querySelector(t),s)return s;for(const o of e.children)if(s=Xt(t,o),s)return s;return null}class Events{constructor(){this.inner=new Map}add(t,e,s,o){if(!t||!s)return;const r=this.inner.get(e)||new Map,a=r.get(t)||new Set;return a.add(s),r.set(t,a),this.inner.set(e,r),t.addEventListener(e,s,o),s}remove(t,e,s,o){if(!t||!s)return;const r=this.inner.get(e);if(r){const o=r.get(t);o&&(o.delete(s),o.size||(r.delete(t),r.size||this.inner.delete(e)))}t.removeEventListener(e,s,o)}removeAll(){this.inner.forEach(((t,e)=>{t.forEach(((t,s)=>{t.forEach((t=>{s.removeEventListener(e,t)}))})),t.clear()})),this.inner.clear()}}class Observers{constructor(){this.inner=new Map}add(t,e,s,o){const[r,a]=((t,e,s)=>{let o,r;switch(t){case MutationObserver:case ResizeObserver:o=new t(e),r=t=>o.observe(t,s);break;case IntersectionObserver:o=new t(e,s),r=t=>o.observe(t);break;case PerformanceObserver:o=new t(e),r=()=>o.observe(s)}return[o,r]})(e,s,o);if(r)return this.inner.set(r,(this.inner.get(r)||new Set).add(t)),a(t),r}remove(t,e){t.disconnect();const s=this.inner.get(t);"unobserve"in t?(e?(t.unobserve(e),s?.delete(e)):(s?.forEach((e=>{t.unobserve(e)})),s?.clear()),s&&!s.size&&this.inner.delete(t)):s&&this.inner.delete(t)}removeAll(){this.inner.forEach(((t,e)=>{this.remove(e)}))}}class Ranger{constructor(t,e,s){this.max=Math.max(t,e),this.min=Math.min(t,e),this.diff=this.max-this.min,this.step=s}random(){return this.normalize(Math.random()*this.diff+this.min)}present(t){return this.normalize(t*this.diff)}normalize(t){return t=this.restrict(t),this.step?this.min+Math.round((t-this.min)/this.step)*this.step:t}restrict(t){return this.max<=t?this.max:this.min>=t?this.min:t}}const Zt=(t,e,s)=>t.startsWith(e)&&t.endsWith(s);class RouteTree{constructor(){this.matchType=RouteTree.MatchTypes.strict,this.children=[]}insert(t,e,s=0){if(e||(e=RouteTree.split(t)),e.length===s)return void(this.pattern=t);const o=e[s];let r=this.findStrict(o);r||(r=new RouteTree,r.part=o,r.matchType=RouteTree.dynamic(o).matchType,this.children.push(r),this.sorted=!1),r.insert(t,e,s+1)}search(t,e=0){if(s(t)&&(t=RouteTree.split(t)),this.sorted||this.sort(),t.length===e||RouteTree.dynamic(this.part).matchType===RouteTree.MatchTypes.multi)return this.pattern?this:null;const o=t[e],r=this.filterWide(o);for(const s of r){const o=s.search(t,e+1);if(null!==o)return o}return null}findStrict(t){return this.children.find((e=>e.part===t))||null}filterWide(t){return this.children.filter((e=>e.part===t||e.matchType))}sort(){const{children:t}=this;if(t.length){t.sort(((t,e)=>t.matchType-e.matchType));for(const e of t)e.sort()}this.sorted=!0}static parseParams(t,e){const s=RouteTree.split(t),o=RouteTree.split(e),r={};for(let t=0;t<o.length;t++){const e=o[t],{key:a,matchType:l}=RouteTree.dynamic(e);if(l===RouteTree.MatchTypes.single)r[a]=s[t];else if(l===RouteTree.MatchTypes.multi){r[a]=s.slice(t).join("/");break}}return r}static dynamic(t){if(t){if(Zt(t,"{","}")||Zt(t,"[","]")){t=t.slice(1,-1);const e=RouteTree.dynamic(t);return e.matchType||=RouteTree.MatchTypes.single,e}if(t.startsWith(":"))return{key:t.slice(1),matchType:RouteTree.MatchTypes.single};if(t.startsWith("*"))return{key:t.slice(1),matchType:RouteTree.MatchTypes.multi};if(t.startsWith("..."))return{key:t.slice(3),matchType:RouteTree.MatchTypes.multi}}return{key:t,matchType:RouteTree.MatchTypes.strict}}static split(t){return t.split("/").filter((t=>t))}}RouteTree.MatchTypes={strict:0,single:1,multi:2};class Timeouts{constructor(){this.inner=new Set}add(t){if(void 0!==t)return t=+t,this.inner.has(t)&&clearTimeout(t),this.inner.add(t),t}remove(t){void 0!==t&&(t=+t,clearTimeout(t),this.inner.delete(t))}removeAll(){this.inner.forEach(clearTimeout),this.inner.clear()}}const Kt=(t,{attribute:e})=>!0===e||void 0===e?String(t).toLowerCase():!1!==e&&"symbol"!=typeof t?e:void 0,Qt=/^[\s\S]*{[\s\S]*}$/;class GodownElement extends yt{static define(t=this.elementTagName,e){this.isDefined()||this.godownConfig.define(t,this,e)}static isDefined(){return!!this.getDefined()}static getDefined(){return this.godownConfig.get(this.elementTagName)}static finalize(){super.finalize(),this.elementAttributes=new Map;for(const[t,e]of this.elementProperties.entries()){const s=Kt(t,e);s&&this.elementAttributes.set(s,t)}}get observedRecord(){const t={};for(const[e,s]of this.constructor.elementAttributes.entries())t[e]=this[s];return t}get _slot(){return this.shadowRoot?this.shadowRoot.querySelector("slot:not([name])"):null}get _slotAll(){return this.shadowRoot?[...this.shadowRoot.querySelectorAll("slot")]:[]}get _slottedAll(){return[...this.querySelectorAll("[slot]")]}get _slottedNames(){return this._slottedAll.map((t=>t.getAttribute("slot"))).filter((t=>t))}getBoundingClientRect(){let t;return this.contents&&(t=this.contentsRoot||this.shadowRoot?.firstElementChild)&&t!==this?t.getBoundingClientRect():super.getBoundingClientRect()}getClientRects(){let t;return this.contents&&(t=this.contentsRoot||this.shadowRoot?.firstElementChild)&&t!==this?t.getClientRects():super.getClientRects()}get stylex(){return this.__stylex.css}set stylex(t){t=t.trim(),Qt.test(t)||(t=`:host{${t}}`),this.shadowRoot?(this.__stylex.index&&this.shadowRoot.adoptedStyleSheets.splice(this.__stylex.index,1),this.__stylex.css=t,this.__stylex.index=this.adoptStyles(t)):this.__stylex.lazy=t}constructor(t){super(),this.events=new Events,this.observers=new Observers,this.timeouts=new Timeouts,this.__stylex={},this.assign={...GodownElement.godownConfig?.assign||{},...t}}connectedCallback(){super.connectedCallback(),this.assign&&(Object.assign(this,this.assign),this.assign=null);const{lazy:t}=this.__stylex;t&&(this.adoptStyles(t),this.__stylex.lazy="")}disconnectedCallback(){this.events.removeAll(),this.observers.removeAll(),this.timeouts.removeAll()}mount(t){this.firstUpdated(t)}unmount(){this.disconnectedCallback()}remount(t){this.unmount(),this.connectedCallback(),this.mount(t)}deepQuerySelector(t){return Xt.call(this,t)}deepQuerySelectorAll(t){return Yt.call(this,t)}adoptStyles(...t){if(!this.shadowRoot||!t.length)return;const e=this.shadowRoot.adoptedStyleSheets,s=new CSSStyleSheet;return t.forEach((t=>s.insertRule(t.toString()))),e.push(s),e.length-1}dispatchCustomEvent(t,e,s){this.dispatchEvent(new CustomEvent(t,{detail:e,composed:!0,...s}))}}GodownElement.godownConfig=new class GodownConfig{constructor(t){this.assign=null,this.prefix="godown",this.suffix="",this.components=new Map,this.registry=customElements,t&&Object.assign(this,t)}tag(t){return l(this.prefix+"-"+t+"-"+this.suffix)}define(t,e,s){this.registry.define(t,e,s),this.components.set(t,e)}get(t){return this.registry.get(t)}getName(t){const{getName:e}=this.registry;return e?e(t):[...this.components.entries()].find((([,e])=>e===t))?.[0]||null}whenDefined(t){return this.registry.whenDefined(t)}upgrade(t){this.registry.upgrade(t)}},t([Tt({type:Boolean,reflect:!0})],GodownElement.prototype,"contents",void 0),t([Tt({reflect:!0})],GodownElement.prototype,"stylex",null);const Jt=f`*,:host{box-sizing:border-box}i{font-style:normal}a{color:currentColor;text-decoration:none}span{white-space:nowrap}svg{-webkit-user-select:none;user-select:none}input{background:none;border:0;color:currentColor;font-size:100%;outline:0;padding:0}dd,dl{margin:0}dialog,ul{margin:0;padding:0}dialog{border:0;outline:0}[popover]{border:0;margin:0;padding:0}@supports not selector(:popover-open){[popover]{display:none}}`;class GlobalStyle extends GodownElement{}const te=((t,e)=>((t,e)=>((t,e)=>{if(!t||!e)return t;let s=0;for(;s<t.length&&e(t.slice(s,s+1));)s+=1;return t.slice(s)})(((t,e)=>{if(!t||!e)return t;let s=t.length;for(;s>0&&e(t.slice(s-1,s));)s-=1;return t.slice(0,s)})(t,e),e))(t,(t=>t===e)))(GlobalStyle.godownConfig.prefix,"-");function ee(t,e=1){return function(t){return v(`--${t}`)}(te+"-".repeat(e)+t)}const ie={background:ee("background",2),foreground:ee("foreground",2),backgroundClip:ee("background-clip",2),primaryBackground:ee("primary",2),primaryForeground:ee("primary-foreground",2),muted:ee("muted",2),active:ee("active",2),passive:ee("passive",2),input:ee("input",2),radius:ee("radius",2),ringWidth:ee("ring-width",2),ringColor:ee("ring-color",2)};GlobalStyle.styles=[Jt,v(((t,e,s)=>{const o=[...bt(e)];return((t,{truecase:e,falsecase:s})=>{const o="@supports";let r="";return e&&(r+=`${o}(${t}){${e}}`),s&&(r+=`${o} not (${t}){${s}}`),r})("color:light-dark(#fff,#000)",{truecase:xt([[t,kt(o.map((([t,[e,s]])=>[t,`light-dark(${e},${s})`])))]]),falsecase:xt([[t,kt(o.map((([t,e])=>[t,e[s]])))]])})})(":host",[[ie.background,["hsl(0 0% 96%)","hsl(0 0% 4%)"]],[ie.foreground,["hsl(0 0% 4%)","hsl(0 0% 96%)"]],[ie.muted,["hsl(0 0% 88%)","hsl(0 0% 18%)"]]],1)),v(xt({":host":kt([[ie.primaryBackground,St(ie.foreground)],[ie.primaryForeground,St(ie.background)],[ie.active,St(ie.primaryBackground)],[ie.passive,St(ie.muted)],[ie.backgroundClip,`linear-gradient(to bottom, ${St(ie.foreground)}, ${St(ie.muted)})`],[ie.ringColor,St(ie.passive)],[ie.ringWidth,".1em"],[ie.radius,".25em"]])})),f`:host([contents]){display:contents}[part=root]{height:100%;width:100%}:host([contents]) [part=root]{height:inherit;width:inherit}:where(:host([contents]) [part=root]){all:inherit;display:revert}`,f`:host{border-radius:var(${ie.radius});border-style:none;outline-style:none}`];const se=({width:t,color:e,inset:s})=>`outline-style:solid;outline-color:${e};outline-width:${t};${s?`outline-offset:calc(-1 * ${t});`:""}`,oe=({width:t,color:e,inset:s})=>`box-shadow:${s?"inset":""} 0 0 0 ${t} ${e};`,re={outline:(t,e)=>se({width:t,color:e,inset:!1}),"outline-inset":(t,e)=>se({width:t,color:e,inset:!0}),"box-shadow":(t,e)=>oe({width:t,color:e,inset:!1}),shadow:(t,e)=>oe({width:t,color:e,inset:!1}),"box-shadow-inset":(t,e)=>oe({width:t,color:e,inset:!0}),"shadow-inset":(t,e)=>oe({width:t,color:e,inset:!0}),border:(t,e)=>(({width:t,color:e})=>`border-style:solid;border-color:${e};border-width:${t};`)({width:t,color:e})};class RingBuilder{constructor({selector:t=":host",width:e=St(ie.ringWidth),color:s=St(ie.ringColor),type:o}={}){if(o&&o in re){const r=re[o](e,s);this.css=`${t}{${r}}`}else this.css=""}get styleSheet(){return v(this.css).styleSheet}}const ne="ring-type";let ae=class Alert extends GlobalStyle{constructor(){super(),this.ringType="border",new StyleController(this,(()=>new RingBuilder({type:this.ringType}).css))}render(){return at`<div part="root"> <div>${Gt("prefix")}</div> <div part="content"> <b part="title">${Gt("title",this.title)}</b> ${Gt("",this.content)} </div> <div>${Gt("suffix")}</div> </div>`}static alert(t,e){const s=new this;return Object.assign(s,e),t.appendChild(s),s}};t([Tt({attribute:ne})],ae.prototype,"ringType",void 0),t([Tt()],ae.prototype,"title",void 0),t([Tt()],ae.prototype,"content",void 0),ae=t([At("alert"),Ct(f`:host{background:var(${ie.background});color:var(${ie.foreground})}:host,:where(:host([contents]) [part=root]),b{display:block}[part=root]{display:grid;grid-template-columns:auto 1fr auto;padding:1em}`)],ae);var le=ae;le.define();let he=class Avatar extends GlobalStyle{constructor(){super(...arguments),this.name="",this.round=!1}render(){return at`<div part="root" ${Ht(a(this.observedRecord,"src"))}> ${this._renderAvatar()} </div>`}_renderAvatar(){return this.src?at`<img part="image" src="${this.src}" alt="${this.name}" @error=${this._handleError}/>`:this.name?at`<span part="name">${this.formatName()}</span>`:Gt()}formatName(){return this.name}_handleError(){this.src=void 0}};t([Tt()],he.prototype,"src",void 0),t([Tt()],he.prototype,"name",void 0),t([Tt({type:Boolean})],he.prototype,"round",void 0),he=t([At("avatar"),Ct(f`:host{background:var(${ie.passive});color:var(${ie.foreground});height:2em;overflow:hidden;vertical-align:bottom;width:2em}:host,[part=root]{display:inline-flex}:host([contents]) [part=root]{display:inline-flex;height:inherit;width:inherit}:host([round]){border-radius:50%}[part=image]{height:100%;object-fit:cover;width:100%}[part=root]{align-items:center;border-radius:inherit;justify-content:center;position:relative}`)],he);var de=he;de.define();const ce="button",pe=ee(ce);let ue=class Button extends GlobalStyle{constructor(){super(...arguments),this.plain=!1,this.disabled=!1,this.active=!1,this.round=!1}render(){return at`<div part="root" ${Ht(this.observedRecord)}> ${Gt("",this.content)} <span part="modal-root"></span> </div>`}focus(){this.disabled||(this.active=!0,super.focus())}blur(){this.active=!1,super.blur()}connectedCallback(){super.connectedCallback(),this.events.add(this,"click",this._handelClick)}_handelClick(t){if(this.disabled)return t.stopPropagation(),void t.preventDefault();this.plain||this._handleModal(t)}_handleModal(t){const e=document.createElement("i"),{width:s,height:o}=this.getBoundingClientRect(),{x:r,y:a}=this._root.getBoundingClientRect(),l=2*Math.sqrt(o**2+s**2)+"px";e.style.height=l,e.style.width=l,e.style.left=t.x-r+"px",e.style.top=t.y-a+"px",this._modalRoot.appendChild(e),e.animate([{transform:"scale(0) translate(-50%, -50%)",opacity:.1},{transform:"scale(1) translate(-50%, -50%)",offset:.8},{opacity:0}],{duration:800,iterations:1}),e.addEventListener("animationend",(()=>e.remove()),{once:!0})}};t([Tt({type:Boolean,reflect:!0})],ue.prototype,"plain",void 0),t([Tt({type:Boolean,reflect:!0})],ue.prototype,"disabled",void 0),t([Tt({type:Boolean,reflect:!0})],ue.prototype,"active",void 0),t([Tt({type:Boolean,reflect:!0})],ue.prototype,"round",void 0),t([Tt()],ue.prototype,"content",void 0),t([It("modal-root")],ue.prototype,"_modalRoot",void 0),t([It("root")],ue.prototype,"_root",void 0),ue=t([At(ce),Ct(f`:host(:not([disabled]):active){transform:scale(var(${pe}--focus-scale))}:host([round]){border-radius:calc(infinity*1px)}:host([disabled]){cursor:not-allowed;filter:brightness(.85)}:host([plain]){${pe}--gradients:unset;${pe}--focus-scale:unset}`,f`:host{${pe}--modal-animation-duration:1.5s;${pe}--focus-scale:.97;${pe}--deg:45deg;background:var(${ie.primaryBackground});color:var(${ie.primaryForeground});cursor:pointer;display:inline-block;overflow:hidden;text-align:center}[part=root]{align-items:center;display:inline-flex;justify-content:center;padding-block:.25em;padding-inline:1em;position:relative;-webkit-user-select:none;user-select:none}i{background:currentColor;border-radius:50%;height:100%;inset:0;opacity:0;pointer-events:none;position:absolute;transform-origin:0 0;visibility:visible;width:100%}`)],ue);var ve=ue;let fe=class Badge extends ve{constructor(){super(...arguments),this.plain=!0,this.round=!0}};fe=t([At("badge"),Ct(f`:host{font-size:.75em}[part=root]{padding:0 .5em}`)],fe);var me=fe;me.define();const ge="breath",ye=ee(ge),$e=/[\s,]+/;let be=class Breath extends GlobalStyle{render(){const t=this.getTexts();return at`<div part="root" ${Ht(this.observedRecord)}> ${[t.map(this._renderText),Ft(this._computeStyle(t.length))]} </div>`}_renderText(t){return at`<span class="rel"> <span class="nocolor">${t}</span> <span class="colorful">${t}</span> </span>`}getTexts(){return Array.isArray(this.content)?this.content:(this.content||this.textContent).split($e).filter((t=>t))}_computeStyle(t){const e=50/t,s=this.duration||1e3*(2*t+2);let o="";for(let e=1;e<=t;e++)o+=`.rel:nth-child(${e}) .colorful{animation-delay:${-s/t*(t-e+1)}ms;background:var(${ye}--${e},var(${ye}--${(e-1)%3+1}));}`;return`.colorful{animation-duration:${s}ms;}@keyframes colorfulN{0%,${3*e}%{opacity:0;}${e}%,${2*e}%{opacity:1;}}${o}`}};t([Tt()],be.prototype,"content",void 0),t([Tt({type:Number})],be.prototype,"duration",void 0),be=t([At(ge),Ct(f`:host{${ye}--deg:60deg;${ye}--1-1:#dd3c3c;${ye}--1-2:#f5993d;${ye}--2-1:#26d944;${ye}--2-2:#29a3a3;${ye}--3-1:#8c30e8;${ye}--3-2:#0d80f2;${ye}--1:linear-gradient(var(${ye}--deg),var(${ye}--1-1),var(${ye}--1-2));${ye}--2:linear-gradient(var(${ye}--deg),var(${ye}--2-1),var(${ye}--2-2));${ye}--3:linear-gradient(var(${ye}--deg),var(${ye}--3-1),var(${ye}--3-2))}`,f`:host{align-items:center;direction:ltr;font-size:2em;margin:auto;width:-moz-fit-content;width:fit-content}:host,:host([contents]) [part=root]{display:flex}[part=root]{display:contents}::selection{background:none}.rel{font-size:inherit;font-weight:800;letter-spacing:-.05em;position:relative}`,f`.colorful,.nocolor{animation-iteration-count:infinite;-webkit-background-clip:text!important;background-clip:text!important;box-sizing:border-box;color:transparent;display:inline-block;padding:0 .05em}.colorful{animation-name:colorfulN;opacity:0}.nocolor{background:var(${ie.backgroundClip});position:absolute;top:0}`)],be);var _e=be;_e.define(),ve.define();const we="card";ee(we);let xe=class Card extends GlobalStyle{constructor(){super(),this.ringType="border",this.footer=!1,this.header=!1,new StyleController(this,(()=>new RingBuilder({type:this.ringType}).css))}render(){return at`<div part="root" ${Ht(this.observedRecord)}> ${[this.header?Gt("header"):"",Gt(),this.footer?Gt("footer"):""]} </div>`}};t([Tt({attribute:ne})],xe.prototype,"ringType",void 0),t([Tt({type:Boolean})],xe.prototype,"footer",void 0),t([Tt({type:Boolean})],xe.prototype,"header",void 0),xe=t([At(we),Ct(f`:host{background:var(${ie.background});color:var(${ie.foreground});display:block;flex-shrink:0}slot{display:block;padding:1em}[part=root]{border-radius:inherit}[name=footer]{padding-top:0}[name=header]{padding-bottom:0}`)],xe);var ke=xe;ke.define();const Se=Wt("0 0 256 256")`<path fill="currentColor" d="M165.66 202.34a8 8 0 0 1-11.32 11.32l-80-80a8 8 0 0 1 0-11.32l80-80a8 8 0 0 1 11.32 11.32L91.31 128Z">`,Ce=Wt("0 0 256 256")`<path fill="currentColor" d="m181.66 133.66l-80 80a8 8 0 0 1-11.32-11.32L164.69 128L90.34 53.66a8 8 0 0 1 11.32-11.32l80 80a8 8 0 0 1 0 11.32">`;function Ae(t){return t.getBoundingClientRect().width}let Re=class Carousel extends GlobalStyle{constructor(){super(...arguments),this.index=0,this.autoChange=0}render(){return at`<div part="root" ${Ht(this.observedRecord)}> <i part="prev" @click="${this.prev}"> ${Se()} </i> <div part="move-root">${Gt()}</div> <i part="next" @click="${this.next}"> ${Ce()} </i> </div>`}connectedCallback(){super.connectedCallback(),this.children.length&&(this.__cloneFirst?.remove(),this.__cloneLast?.remove(),this.__cloneLast=this.firstElementChild.cloneNode(!0),this.__cloneFirst=this.lastElementChild.cloneNode(!0),this.appendChild(this.__cloneLast),this.insertBefore(this.__cloneFirst,this.firstElementChild)),this.observers.add(this,ResizeObserver,(()=>{this._offset=this._computeOffset(),this._doTranslateX(`${this._offset}px`,!0)}))}async firstUpdated(){await this.updateComplete,this.show(this.index,!0)}attributeChangedCallback(t,e,s){super.attributeChangedCallback(t,e,s),"index"===t&&this.isConnected&&this.show(this.index)}show(t,e){t=this.normalizeIndex(t),this.index=t,this._offset=this._computeOffset(),this._doTranslateX(`${this._offset}px`,e),this.dispatchCustomEvent("change",t),this.timeouts.remove(this.intervalID),this.autoChange>0&&(this.intervalID=this.timeouts.add(setInterval((()=>{this.next()}),this.autoChange)))}next(){this.index===this.childElementCount-3?(this._doTranslateX("0",!0),this.show(0)):this.show(this.index+1)}prev(){0===this.index?(this._doTranslateX(`-${this.childElementCount-1}00%`,!0),this.show(this.children.length-3)):this.show(this.index-1)}_doTranslateX(t,e){this._moveRoot.style.transform=`translateX(${t})`,this._moveRoot.style.transition=e?"none":""}_computeOffset(){let t=0;for(let e=0;e<=this.index;e++)t-=Ae(this.children[e]);return t+=(Ae(this)-Ae(this.children[this.index+1]))/2,t}normalizeIndex(t){return t<0?0:t>this.children.length-3?this.children.length-3:t}};t([Tt({type:Number})],Re.prototype,"index",void 0),t([Tt({type:Number})],Re.prototype,"autoChange",void 0),t([It("move-root")],Re.prototype,"_moveRoot",void 0),Re=t([At("carousel"),Ct(f`:host{display:block;transition:.3s}[part=root]{direction:ltr;overflow:hidden}[part=move-root],[part=root]{display:flex;height:100%;position:relative;transition:inherit;width:100%}[part=next],[part=prev]{align-items:center;display:flex;height:100%;justify-content:center;position:absolute;-webkit-user-select:none;user-select:none;width:1.5em;z-index:1}[part=prev]{left:0}[part=next]{right:0}slot::slotted(*){flex-shrink:0!important}`)],Re);var Ee=Re;Ee.define();const Te="chip",Me=ee(Te);let Ne=class Chip extends GlobalStyle{constructor(){super(...arguments),this.position="top-right",this.value=0,this.dot=!1,this.max=99}formatValue(t){return t>this.max?this.max+"+":t+""}render(){return at`<div part="root" ${Ht(this.observedRecord)}> ${Gt()} ${this.value||this.dot?at`<div part="chip">${this.dot?"":this.formatValue(this.value)}</div>`:""} </div>`}};t([Tt()],Ne.prototype,"position",void 0),t([Tt({type:Number})],Ne.prototype,"value",void 0),t([Tt({type:Boolean})],Ne.prototype,"dot",void 0),t([Tt({type:Number})],Ne.prototype,"max",void 0),Ne=t([At(Te),Ct(f`:host{${Me}--offset:0%;${Me}--offset-x:var(${Me}--offset);${Me}--offset-y:var(${Me}--offset)}:host,:host([contents]) [part=root]{display:inline-block}[part=root]{position:relative}[part=chip]{background:var(${ie.primaryBackground});border-radius:calc(infinity*1px);color:var(${ie.primaryForeground});font-size:75%;padding:0 .5em;position:absolute;transform:translate(-50%,-50%);-webkit-user-select:none;user-select:none}[part=chip]:empty{border-radius:50%;font-size:100%;height:.5em;padding:0;width:.5em}[position^=top] [part=chip]{top:calc(var(${Me}--offset-y))}[position$=right] [part=chip]{left:calc(100% - var(${Me}--offset-x))}[position^=bottom] [part=chip]{top:calc(100% - var(${Me}--offset-y))}[position$=left] [part=chip]{left:calc(var(${Me}--offset-x))}`)],Ne);var Pe=Ne;Pe.define();const Oe=Wt("0 0 256 256")`<path fill="currentColor" d="m213.66 101.66l-80 80a8 8 0 0 1-11.32 0l-80-80a8 8 0 0 1 11.32-11.32L128 164.69l74.34-74.35a8 8 0 0 1 11.32 11.32">`,Be="details",Ie=ee(Be);let ze=class Details extends GlobalStyle{constructor(){super(...arguments),this.open=!1,this.float=!1,this.fill=!1,this.summary=""}render(){return at`<dl part="root" ${Ht(this.observedRecord)}> <dt part="title" @click="${()=>this.toggle()}"> <span part="summary">${Gt("summary",this.summary)}</span> <span part="icon">${Gt("icon",Oe())}</span> </dt> <dd part="details" @click=${this.fill?()=>this.toggle():null}> <div style="min-height: 0;">${Gt()}</div> </dd> </dl>`}updated(t){const e=t.get("open");void 0!==e&&this.dispatchCustomEvent("change",e)}toggle(t){this.open=t??!this.open}close(){this.open=!1}show(){this.open=!0}};t([Tt({type:Boolean,reflect:!0})],ze.prototype,"open",void 0),t([Tt({type:Boolean})],ze.prototype,"float",void 0),t([Tt({type:Boolean})],ze.prototype,"fill",void 0),t([Tt()],ze.prototype,"summary",void 0),ze=t([At(Be),Ct(f`:host{${Ie}--icon-deg-open:0deg;${Ie}--icon-deg-close:90deg;display:block;transition:.3s}[part=root]{position:relative}[part=title]{align-items:center;direction:ltr;grid-template-columns:auto auto;height:100%;justify-content:space-between}[part=details],[part=title]{display:grid;overflow:hidden;transition:inherit}[part=details]{grid-template-rows:0fr}:host([open]) [part=details]{grid-template-rows:1fr}[float] [part=details]{position:absolute;top:100%;width:100%}[part]{transition:inherit;transition-property:transform,grid-template-rows}[part=icon]{-webkit-backface-visibility:hidden;backface-visibility:hidden;display:flex;transform:rotate(var(${Ie}--icon-deg-close))}:host([open]) [part=icon]{transform:rotate(var(${Ie}--icon-deg-open))}`)],ze);var De=ze;De.define();const Ue="dialog",je=ee(Ue);let Ve=class Dialog extends GlobalStyle{constructor(){super(...arguments),this.open=!1,this.modal=!1,this.__modalInvoke=!1}render(){return at`<div part="root" @click=${this.show}> ${Gt("trigger")} </div> <dialog part="dialog" role="dialog"> ${Gt("dialog")}${Gt()} </dialog>`}showModal(){this.modal=!0,this.__modalInvoke=!0,this.show()}show(){this.open=!0}close(){this.open=!1}toggle(t){this.open=t??!this.open}updated(t){t.has("open")&&(this.open?(this.modal?this._dialog.showModal():this._dialog.show(),this.__submitEvent=this.events.add(this,"submit",this._handelSubmit),this.__keydownEvent=this.events.add(document,"keydown",this._handleKeydown.bind(this))):(this.__modalInvoke&&(this.modal=!1,this.__modalInvoke=!1),this._dialog.close(),this.events.remove(this,"submit",this.__submitEvent),this.events.remove(document,"keydown",this.__keydownEvent)))}_handleKeydown(t){"Escape"===t.key&&(t.preventDefault(),this.close())}_handelSubmit(t){"dialog"===t.target.method&&(t.preventDefault(),this.close())}};t([Tt({type:Boolean,reflect:!0})],Ve.prototype,"open",void 0),t([Tt({type:Boolean,reflect:!0})],Ve.prototype,"modal",void 0),t([It("dialog")],Ve.prototype,"_dialog",void 0),Ve=t([At(Ue),Ct(f`:host{${je}--background-modal:#000;${je}--opacity-modal:0.2;background:none;display:block;width:-moz-fit-content;width:fit-content}dialog{background:none;left:50%;position:relative;position:fixed;top:50%;transform:translate(-50%,-50%);z-index:1}::backdrop{background:var(${je}--background-modal);opacity:var(${je}--opacity-modal)}`)],Ve);var He=Ve;He.define();let Le=class Divider extends GlobalStyle{constructor(){super(...arguments),this.vertical=!1}render(){return at`<div part="root"></div>`}};t([Tt({type:Boolean,reflect:!0})],Le.prototype,"vertical",void 0),Le=t([At("divider"),Ct(f`:host{background:currentColor;color:var(${ie.passive});display:block;height:.05em;width:100%}:host([vertical]){height:100%;width:.05em}`)],Le);var Ge=Le;Ge.define();let Fe=class Dragbox extends GlobalStyle{constructor(){super(...arguments),this.__drag=!1}get _offsetParent(){return this.offsetParent??document.body}render(){return at`<div part="root" ${Ht(this.observedRecord)} @mousedown="${this._handleDragStart}"> ${Gt()} </div>`}firstUpdated(){this.reset()}_handleDragStart(t){this.__x=t.x,this.__y=t.y;const e=this._offsetParent.getBoundingClientRect(),s=this.getBoundingClientRect();this.__t=s.top-e.top,this.__l=s.left-e.left,this.__drag=!0,this.__handleMouseMove=this.events.add(document,"mousemove",this._handleDrag.bind(this)),this.__handleMouseLeave=this.events.add(document,"mouseleave",this._handleDragEnd.bind(this)),this.__handleMouseUp=this.events.add(document,"mouseup",this._handleDragEnd.bind(this))}_handleDragEnd(){this.__drag=!1,this.events.remove(document,"mousemove",this.__handleMouseMove),this.events.remove(document,"mouseleave",this.__handleMouseLeave),this.events.remove(document,"mouseup",this.__handleMouseUp)}_handleDrag(t){if(!this.__drag)return;const{__x:e,__y:s,__l:o,__t:r,style:a}=this,{height:l,width:h}=this._offsetParent.getBoundingClientRect(),{width:d,height:c}=this.getBoundingClientRect(),p=t.x-(e-o),u=t.y-(s-r);a.left=p<0?"0":p<h-d?`${p}px`:h-d+"px",a.top=u<0?"0":u<l-c?`${u}px`:l-c+"px"}reset(){const{x:t,y:e,style:s,offsetWidth:o,offsetHeight:r,offsetLeft:a,offsetTop:l}=this,{height:h,width:d}=this._offsetParent.getBoundingClientRect();s.left=t||"0",s.top=e||"0",a>d-o&&(s.left=d-o+"px"),l>h-r&&(s.top=h-r+"px")}};t([Tt()],Fe.prototype,"x",void 0),t([Tt()],Fe.prototype,"y",void 0),Fe=t([At("dragbox"),Ct(f`:host{display:block;position:absolute}:host(:active){-webkit-user-select:none;user-select:none}`)],Fe);var We=Fe;We.define();let qe=class Flex extends GlobalStyle{constructor(){super(...arguments),this.vertical=!1}render(){return at`<div part="root" ${Ht(this.observedRecord)}> ${[Gt(),Ft(xt({":host":{gap:this.gap,"flex-flow":this.flexFlow,"flex-direction":this.vertical&&"column","align-items":this.items,"justify-content":this.content}}))]} </div>`}};t([Tt({attribute:"flex-flow"})],qe.prototype,"flexFlow",void 0),t([Tt()],qe.prototype,"gap",void 0),t([Tt()],qe.prototype,"content",void 0),t([Tt()],qe.prototype,"items",void 0),t([Tt({type:Boolean})],qe.prototype,"vertical",void 0),qe=t([At("flex"),Ct(f`:host,:host([contents]) [part=root]{display:flex}[part=root]{display:contents}`)],qe);var Ye,Xe=qe;Xe.define();let Ze=Ye=class Form extends GlobalStyle{constructor(){super(...arguments),this.name="",this.nameValue=this.namevalue}get value(){return Ye.buildValue(this._slot.assignedElements())}render(){return Gt()}reset(){this.deepQuerySelectorAll("*").forEach((t=>{t.tagName!==this.tagName&&t.reset&&t.reset()}))}namevalue(){return[this.name,this.value]}static buildValue(t){const e={};for(const s of t)if("FORM"===s.tagName)Object.assign(e,Object.fromEntries(new FormData(s).entries()));else if(s.namevalue){const[t,o]=s.namevalue();t&&(e[t]=o)}else if(s.name&&void 0!==s.value)e[s.name]=s.value;else if(s.shadowRoot)for(const t of s.shadowRoot.querySelectorAll("slot"))Object.assign(e,this.buildValue(t.assignedElements()));return e}};t([Tt()],Ze.prototype,"name",void 0),Ze=Ye=t([At("form"),Ct(f`:host{display:block}`)],Ze);var Ke=Ze;Ke.define();const Qe=t=>{return e=t,Number.isNaN(+e)?t:`repeat(${t},1fr)`;var e};let Je=class Grid extends GlobalStyle{render(){return at`<div part="root" ${Ht(this.observedRecord)}> ${[Gt(),Ft(xt({":host":{gap:this.gap,"grid-template-columns":Qe(this.columns),"grid-template-rows":Qe(this.rows),"place-content":this.content,"place-items":this.items}}))]} </div>`}};t([Tt()],Je.prototype,"gap",void 0),t([Tt()],Je.prototype,"columns",void 0),t([Tt()],Je.prototype,"rows",void 0),t([Tt()],Je.prototype,"content",void 0),t([Tt()],Je.prototype,"items",void 0),Je=t([At("grid"),Ct(f`:host,:host([contents]) [part=root]{display:grid}[part=root]{display:contents}`)],Je);var ti,ei=Je;ei.define();let ii=ti=class Router extends GlobalStyle{constructor(){super(...arguments),this.__fieldRouteTree=new RouteTree,this.__slottedRouteTree=new RouteTree,this.__cacheRecord=new Map,this.component=null,this.pathname=location.pathname,this.default=Gt(),this.type="united",this.cache=!1,this.handlePopstate=this.events.add(window,"popstate",(()=>{this.pathname=location.pathname}))}get params(){return this.path?RouteTree.parseParams(this.pathname,this.path):{}}set routes(t){this.__routes=t,this.collectFieldRoutes(t)}get routes(){return this.__routes}clear(){this.__cacheRecord.clear()}render(){let t;if(this.cache&&(t=this.__cacheRecord.get(this.pathname))&&(this.component=t.component,this.path=t.path,this.pathname=t.pathname),!t)switch(this.type){case"field":this.component=this.fieldComponent();break;case"slotted":this.component=this.slottedComponent();break;default:this.component=this.fieldComponent()??this.slottedComponent()}return this.component??this.default}connectedCallback(){super.connectedCallback(),ti.routerInstances.add(this),"field"!==this.type&&(this.observers.add(this,MutationObserver,this.collectSlottedRoutes,{attributes:!0,attributeFilter:["slot"],subtree:!0}),this.collectSlottedRoutes())}disconnectedCallback(){super.disconnectedCallback(),ti.routerInstances.delete(this)}useRouter(){return{pathname:this.pathname,params:this.params,path:this.path,component:this.component}}updated(t){if(t.has("pathname")||t.has("path")){const t=this.useRouter();!this.__cacheRecord.has(this.pathname)&&this.path&&this.__cacheRecord.set(this.pathname,t),this.dispatchCustomEvent("change",t)}}fieldComponent(t){if(t||=this.__fieldRouteTree.search(this.pathname)?.pattern,this.path=t,!t)return null;const e=this.routes.find((e=>e.path===t));return e?"render"in e?e.render?.(a(this.useRouter(),"component"))||null:e.component:null}slottedComponent(t){const e=this._slottedNames;return t||=this.__slottedRouteTree.search(this.pathname)?.pattern,this.path=t,t?(this.path=e.find((e=>e===t)),this.path?Gt(this.path):null):null}collectSlottedRoutes(){this.__slottedRouteTree=new RouteTree,this.clear(),this._slottedNames.forEach((t=>{this.__slottedRouteTree.insert(t)}))}collectFieldRoutes(t){this.__fieldRouteTree=new RouteTree,this.clear(),t.forEach((({path:t})=>{this.__fieldRouteTree.insert(t)}))}static updateAll(){this.routerInstances.forEach((t=>{t.handlePopstate()}))}search(t){return this.__fieldRouteTree.search(t)||this.__slottedRouteTree.search(t)}};ii.routerInstances=new Set,t([Mt()],ii.prototype,"component",void 0),t([Mt()],ii.prototype,"path",void 0),t([Tt()],ii.prototype,"pathname",void 0),t([Mt()],ii.prototype,"default",void 0),t([Tt()],ii.prototype,"type",void 0),t([Tt({type:Boolean})],ii.prototype,"cache",void 0),t([Mt()],ii.prototype,"routes",null),ii=ti=t([At("router"),Ct(f`:host{display:contents}`)],ii);var si=ii;const oi="auto";let ri=class Link extends GlobalStyle{constructor(){super(...arguments),this.type=oi,this.suppress=!1,this.replace=!1,this.target="_self",this.state={},this.handleState=()=>{switch(this.type){case oi:case"push":if(!this.replace){history.pushState(this.state,"",this.href);break}case"replace":history.replaceState(this.state,"",this.href)}}}get pathname(){return new URL(this.href,location.href).pathname}_handleClick(t){const{state:e,type:s,href:o,pathname:r,suppress:a}=this;if(!o)return;if(this.dispatchCustomEvent("navigate",{...this.observedRecord,pathname:r,state:e}),o.startsWith("#")||"normal"===s)return;this.handleState();const l=[...si.routerInstances];a||s===oi&&!l.some((t=>t.search(location.pathname)))||(t.preventDefault(),si.routerInstances.forEach((t=>{t.handlePopstate()})))}render(){return at`<a part="root" ${Ht(this.observedRecord)} href="${this.href||dt}" target="${this.target}" @click=${this._handleClick}> ${Gt()} </a>`}};t([Tt()],ri.prototype,"type",void 0),t([Tt({type:Boolean})],ri.prototype,"suppress",void 0),t([Tt({type:Boolean})],ri.prototype,"replace",void 0),t([Tt()],ri.prototype,"href",void 0),t([Tt()],ri.prototype,"target",void 0),ri=t([At("link"),Ct(f`:host{cursor:default;display:inline-block}:host([href]){cursor:pointer}a{display:contents}`)],ri);var ni=ri;let ai=class Heading extends ni{constructor(){super(...arguments),this.as="h1",this.anchor="#",this.side="left"}render(){const t=this.href||(this.id?"#"+this.id:void 0);return at`<a part="root" href="${t||dt}"> ${this.wrapHeading(Gt(),t?at`<i part="${jt("anchor",this.side)}">${this.anchor}</i>`:"")} </a>`}wrapHeading(...t){switch(this.as){case"h2":return at`<h2>${t}</h2>`;case"h3":return at`<h3>${t}</h3>`;case"h4":return at`<h4>${t}</h4>`;case"h5":return at`<h5>${t}</h5>`;case"h6":return at`<h6>${t}</h6>`;default:return at`<h1>${t}</h1>`}}};t([Tt()],ai.prototype,"as",void 0),t([Tt()],ai.prototype,"anchor",void 0),t([Tt()],ai.prototype,"side",void 0),ai=t([At("heading"),Ct(f`:host{display:block;text-align:start}[part~=anchor]{min-width:1.25em;position:absolute;right:100%;text-align:center}[part~=left][part~=anchor]{right:100%}[part~=right][part~=anchor]{left:100%}h1,h2,h3,h4,h5,h6{position:relative;width:-moz-fit-content;width:fit-content}`)],ai);var li=ai;li.define();const hi=Wt("0 0 256 256")`<path fill="currentColor" d="M53.92 34.62a8 8 0 1 0-11.84 10.76l19.24 21.17C25 88.84 9.38 123.2 8.69 124.76a8 8 0 0 0 0 6.5c.35.79 8.82 19.57 27.65 38.4C61.43 194.74 93.12 208 128 208a127.1 127.1 0 0 0 52.07-10.83l22 24.21a8 8 0 1 0 11.84-10.76Zm47.33 75.84l41.67 45.85a32 32 0 0 1-41.67-45.85M128 192c-30.78 0-57.67-11.19-79.93-33.25A133.2 133.2 0 0 1 25 128c4.69-8.79 19.66-33.39 47.35-49.38l18 19.75a48 48 0 0 0 63.66 70l14.73 16.2A112 112 0 0 1 128 192m6-95.43a8 8 0 0 1 3-15.72a48.16 48.16 0 0 1 38.77 42.64a8 8 0 0 1-7.22 8.71a6 6 0 0 1-.75 0a8 8 0 0 1-8-7.26A32.09 32.09 0 0 0 134 96.57m113.28 34.69c-.42.94-10.55 23.37-33.36 43.8a8 8 0 1 1-10.67-11.92a132.8 132.8 0 0 0 27.8-35.14a133.2 133.2 0 0 0-23.12-30.77C185.67 75.19 158.78 64 128 64a118.4 118.4 0 0 0-19.36 1.57A8 8 0 1 1 106 49.79A134 134 0 0 1 128 48c34.88 0 66.57 13.26 91.66 38.35c18.83 18.83 27.3 37.62 27.65 38.41a8 8 0 0 1 0 6.5Z">`,di=f`:host([disabled]){cursor:not-allowed;filter:brightness(.85)}input:disabled{cursor:inherit}input::-ms-clear,input::-ms-reveal{display:none}`;let ci=class SuperInput extends GlobalStyle{constructor(){super(...arguments),this.autofocus=!1,this.ringType="border",this.disabled=!1,this.compositing=!1,this.makeId=Math.random().toString(36).slice(1),this.nameValue=this.namevalue}get observedRecord(){return a(super.observedRecord,"default","value")}set defaultValue(t){this.default=t}get defaultValue(){return this.default}namevalue(){return[this.name,this.value]}reset(){this.value=this.default,this._input.value=this.default}_handleInput(t){t.stopPropagation(),this.compositing||(this.value=t.target.value?.trim(),this.dispatchCustomEvent("input",this.value,{bubbles:!0}))}_handleChange(t){this.dispatchCustomEvent("change",this.value)}connectedCallback(){super.connectedCallback(),this._connectedInit()}_connectedInit(){this.default??=this.value||"",this.value??=this.default}_compositionInit(){this._input&&(this.events.add(this._input,"compositionstart",(()=>this.compositing=!0)),this.events.add(this._input,"compositionend",(t=>{this.compositing=!1,this._handleInput(t)})))}focus(t){this._input?.focus(t)}firstUpdated(){this._compositionInit()}_renderPrefix(){return at`<i part="prefix">${Gt("prefix")}</i>`}_renderSuffix(){return at`<i part="suffix">${Gt("suffix")}</i>`}};t([Tt()],ci.prototype,"autocomplete",void 0),t([Tt({attribute:ne})],ci.prototype,"ringType",void 0),t([Tt({type:Boolean,reflect:!0})],ci.prototype,"disabled",void 0),t([Tt({reflect:!0})],ci.prototype,"placeholder",void 0),t([Tt({reflect:!0})],ci.prototype,"name",void 0),t([Tt()],ci.prototype,"value",void 0),t([Tt()],ci.prototype,"default",void 0),t([It("input")],ci.prototype,"_input",void 0),ci=t([Ct(di)],ci);let pi=class Input extends ci{constructor(){super(),this.type="text",this.variant="default",new StyleController(this,(()=>new RingBuilder({type:this.ringType}).css+("outline"===this.variant?`:host{${ie.ringColor}:currentColor}`:"")))}render(){return at`<label part="root" ${Ht(this.observedRecord)}> ${[this._renderPrefix(),at`<input part="input" type="${this.type}" .value="${this.value}" ?autofocus="${this.autofocus}" ?disabled="${this.disabled}" autocapitalize="${this.autocapitalize||dt}" autocomplete="${this.autocomplete||dt}" placeholder="${this.placeholder||dt}" @input="${this._handleInput}" @change="${this._handleChange}"/>`,this._renderSuffix()]} </label>`}_renderSuffix(){const t="password";return this.type===t?at`<i part="suffix" @mousedown="${()=>this._changeInputType("text")}" @mouseup="${()=>this._changeInputType(t)}" @mouseleave="${()=>this._changeInputType(t)}"> ${Gt("suffix",hi())} </i>`:super._renderSuffix()}_changeInputType(t){this._input&&(this._input.type=t)}};t([Tt({reflect:!0})],pi.prototype,"type",void 0),t([Tt()],pi.prototype,"variant",void 0),t([It("input")],pi.prototype,"_input",void 0),pi=t([At("input"),Ct(f`:host{display:block;${ie.input}-icon-color:grey}:host(:active),:host(:focus-within){${ie.ringColor}:currentColor;${ie.input}-icon-color:currentColor}[part=root]{align-items:center;border-radius:inherit;display:flex;padding-block:.5em;padding-inline:.75em;position:relative}[part=input]{flex-grow:1;height:100%;width:100%}[part=prefix],[part=suffix]{align-items:center;color:var(${ie.input}-icon-color);display:flex;height:100%;justify-content:center}[part=suffix] slot svg{margin-inline-start:.25em}[part=prefix] slot svg{margin-inline-end:.25em}`)],pi);var ui=pi;ui.define();let vi=class Layout extends GlobalStyle{constructor(){super(...arguments),this.sticky=!1}render(){return at`<div part="root" ${Ht(this.observedRecord)}> <header part="header">${Gt("header")}</header> <main part="main">${Gt()}</main> <footer part="footer">${Gt("footer")}</footer> </div>`}};t([Tt({type:Boolean})],vi.prototype,"sticky",void 0),vi=t([At("layout"),Ct(f`:host{flex-direction:column;grid-template-rows:auto 1fr auto;height:100%;min-height:100%;width:100%}:host,:host([contents]) [part=root]{display:flex}[part=root]{display:contents}[part=main]{flex:1;width:100%}[part=footer],[part=header]{flex-shrink:0;width:100%}[sticky] header{position:sticky;top:0}`)],vi);var fi=vi;function mi(t){let e,s=function(...o){return e=t.apply(this,o),s=()=>e,e};return s}fi.define(),ni.define();const gi="popover",yi=()=>Object.hasOwn(HTMLElement.prototype,gi),$i=t=>t.getAttribute(gi),bi=t=>{t.style.display="none"},_i=mi((t=>yi()?(t=>{null!==$i(t)?t.hidePopover():bi(t)})(t):bi(t))),wi=t=>{if(t.style.display="block","manual"!==$i(t)){const e="click",s=o=>{t.contains(o.target)||(t.dispatchEvent(new Event("toggle",{bubbles:!0,composed:!0,newState:"closed"})),_i(t),document.removeEventListener(e,s))};document.addEventListener(e,s)}},xi=mi((function(t){return yi()?(t=>{null!==$i(t)?t.showPopover():wi.call(void 0,t)})(t):wi(t)})),ki="popover",Si=ki;let Ci=class Popover extends GlobalStyle{constructor(){super(),this.anchorName=`--${ki}-${Math.random().toString(36).slice(2)}`,this.open=!1,this.action="show",this.span="span",this.position="bottom",new StyleController(this,(()=>xt({"[part=root],slot:not([name])::slotted(*)":{"anchor-name":this.anchorName},"[part=popover]":{"position-anchor":this.anchorName,"position-area":this.resolveArea()}})))}render(){return at`<div part="root"> <div part="trigger" @click=${this._handleClick}> ${Gt()} </div> <div part="popover" popover="manual"> ${Gt("popover")} </div> </div>`}_handleClick(){const{action:t}=this;switch(t){case"show":case"hide":case"toggle":this[t]()}}show(){this.toggle(!0)}hide(){this.toggle(!1)}toggle(t){this.open=t??!this.open}updated(t){t.has("open")&&this._openChange()}_openChange(){const{open:t}=this;if(t){xi.call(this,this._popover);const t=e=>{this.contains(e.target)||(this.events.remove(document,"click",t),this.open=!1)};this.events.add(document,"click",t)}else _i(this._popover);this.dispatchCustomEvent("toggle",t)}resolveArea(){const t=this.position.split("-"),e="spread"===this.span?`span-${t[0]}`:t[0];return t.length<2?`${e} center`:`${e} ${"isolated"===this.span?t[1]:`span-${t[1]}`}`}};t([Tt({type:Boolean,reflect:!0})],Ci.prototype,"open",void 0),t([Tt()],Ci.prototype,"action",void 0),t([Tt()],Ci.prototype,"span",void 0),t([Tt()],Ci.prototype,"position",void 0),t([It(ki)],Ci.prototype,"_popover",void 0),Ci=t([At(Si),Ct(f`:host{display:inline-block}[part=trigger]{display:contents}[part=root]{display:inherit}[part=popover]{inset:unset;overflow:visible;position:absolute;z-index:1;position-try-fallbacks:flip-block}`)],Ci),Ci.define();var Ai=Ci;let Ri=class Progress extends GlobalStyle{constructor(){super(...arguments),this.max=1,this.min=0}render(){let t,s=20;if(!e(this.value)){const e=new Ranger(this.min,this.max);s=(+this.value-this.min)/e.diff*100,t="static"}return at`<div part="root" ${Ht(this.observedRecord)} class="${t}"> <i part="value" style="width:${s}%;"></i> </div>`}};t([Tt({type:Number})],Ri.prototype,"max",void 0),t([Tt({type:Number})],Ri.prototype,"min",void 0),t([Tt({type:Number})],Ri.prototype,"value",void 0),Ri=t([At("progress"),Ct(f`:host{background:var(${ie.passive});border-radius:.25em;color:var(${ie.active});height:.5em;width:100%}:host,[part=root]{display:block}[part=root]{border-radius:inherit;overflow:hidden;position:relative;z-index:1}[part=value]{animation:progress 1.8s ease-in-out infinite alternate;background:currentColor;border-radius:inherit;height:100%;left:0;position:absolute;top:0;transition:all .3s;z-index:2}@keyframes progress{0%{left:0}to{left:80%}}.static [part=value]{animation:none}`)],Ri);var Ei=Ri;Ei.define();const Ti="range",Mi=ee(Ti);let Ni=class Range extends ci{constructor(){super(...arguments),this.min=0,this.max=100,this.vertical=!1,this.__focusStack=[]}get range(){return Array.isArray(this.value)}get rangeValue(){return this.range?this.value:[this.value]}padValue(t,e=0){const{rangeValue:s}=this,o=t-s.length;return o>0?new Array(o).fill(e).concat(s):s}attributeChangedCallback(t,e,s){super.attributeChangedCallback(t,e,s),"max"!==t&&"min"!==t&&"step"!==t||(this._ranger=new Ranger(this.min,this.max,this.step))}get observedRecord(){return a(super.observedRecord,ne)}render(){const t=this.padValue(2),e=Math.min(...t),s=Math.max(...t),o=this._ranger.diff;return at`<div part="root" ${Ht(this.observedRecord)} @mousedown="${this.disabled?null:this._handleMousedownRoot}" style="${kt([["--from",(e-this.min)/o*100+"%"],["--to",(s-this.min)/o*100+"%"],...t.map(((t,e)=>[`--handle-${e}`,(t-this.min)/o*100+"%"]))])}"> <div part="track"></div> ${qt(this.rangeValue.length,(t=>this._renderHandle(t)))} </div>`}_renderHandle(t){const{disabled:e,range:s,rangeValue:o}=this,r=!s||s&&t===o.length-1&&1===o.length;return at`<i tabindex="0" part="${jt("handle",`handle-${t}`)}" @mousedown="${e?null:this.createMouseDown(t)}" style="${kt({"z-index":this.__focusStack.indexOf(t)+1,"--handle":`var(--${r?"to":`handle-${t}`})`})}"></i>`}focusHandle(t){this.lastFocus=t;const e=this.__focusStack.indexOf(t);-1!==e&&this.__focusStack.splice(e,1),this.__focusStack.push(t);const s=this._handles.item(t);s?.focus(),this.__keydownEvent||(this.__keydownEvent=this.events.add(document,"keydown",this.createKeydownEvent(t)))}blurHandle(){this.lastFocus=void 0,this.__keydownEvent=this.events.remove(document,"keydown",this.__keydownEvent)}createKeydownEvent(t){return e=>{const{rangeValue:s,step:o}=this;s.length<2&&(t=0);const r=s[t];"ArrowLeft"===e.key||"ArrowDown"===e.key?(e.preventDefault(),this.createSetValue(t)(r-o)):"ArrowRight"!==e.key&&"ArrowUp"!==e.key||(e.preventDefault(),this.createSetValue(t)(r+o))}}createMouseDown(t){return e=>{this.focusHandle(t),this.createMousedownListener(this.createSetValue(t))(e)}}createSetValue(t){return e=>{const s=this._ranger.normalize(e);let o=s;this.range&&(o=[...this.value],o[t]=s),this.value=o,this.dispatchCustomEvent("change",this.value)}}_computeValue({clientX:t,clientY:e}){const{top:s,left:o,height:r,width:a}=this._root.getBoundingClientRect();return this._ranger.present(this.vertical?(e-s)/r:(t-o)/a)}_handleMousedownRoot(t){const e=this._computeValue(t),s=this.range?this.rangeValue.reduce(((t,s,o)=>Math.abs(e-s)<Math.abs(e-this.rangeValue[t])?o:t),0):0,o=this.createSetValue(s);o(e),this.createMousedownListener(o)(t),this.focusHandle(s)}createMousedownListener(t){return e=>{e.preventDefault(),e.stopPropagation();const s=this.createMousemoveListener(t);this.events.add(document,"mousemove",s);const o=()=>{this.events.remove(document,"mousemove",s),this.events.remove(document,"mouseup",o)};this.events.add(document,"mouseup",o)}}createMousemoveListener(t){return e=>{const s=this._computeValue(e);s===this._ranger.restrict(s)&&t?.call(this,s)}}_connectedInit(){this._ranger=new Ranger(this.min,this.max,this.step);const t=this._ranger.diff;this.step||=t/100,e(this.value)&&(e(this.default)?this.value=Math.round(t/2/this.step)*this.step:this.value=this.default),this.default??=this.value}reset(){this.value=this.default}sort(){return this.value=this.toSorted()}toSorted(){return this.range?[...this.value].sort(((t,e)=>t-e)):this.value}};t([Tt({type:Number})],Ni.prototype,"min",void 0),t([Tt({type:Number})],Ni.prototype,"max",void 0),t([Tt({type:Number})],Ni.prototype,"step",void 0),t([Tt({type:Boolean,reflect:!0})],Ni.prototype,"vertical",void 0),t([Tt({type:Array})],Ni.prototype,"value",void 0),t([Tt({type:Array})],Ni.prototype,"default",void 0),t([It("root")],Ni.prototype,"_root",void 0),t([Bt("[part=handle]")],Ni.prototype,"_handles",void 0),t([Mt()],Ni.prototype,"lastFocus",void 0),Ni=t([At(Ti),Ct(f`:host{${Mi}--track-width:.5em;${Mi}--handle-scale:1;${Mi}--track-background:var(${ie.active});background:var(${ie.passive});display:block;height:var(${Mi}--track-width);width:100%}:host([contents]) [part=root]{width:inherit}:host([vertical]){height:100%;width:-moz-fit-content;width:fit-content}[part=root]{position:relative;--from:0%;--to:50%}[part=root],[part=track]{border-radius:inherit;min-height:inherit}[part=track]{background:var(${Mi}--track-background);height:100%;justify-content:space-between;left:min(var(--from),var(--to));pointer-events:none;width:max(calc(var(--to) - var(--from)),calc(var(--from) - var(--to)))}[part=track],[part~=handle]{display:flex;position:absolute}[part~=handle]{align-items:center;background:var(${ie.background});border:.1em solid;border-radius:50%;height:1em;justify-content:center;outline:0;transform:scale(var(${Mi}--handle-scale)) translate(-50%,-25%);transform-origin:0 25%;-webkit-user-select:none;user-select:none;width:1em}`,f`[vertical]{height:inherit;width:var(${Mi}--track-width)}[vertical] i{transform:translate(-25%,-50%)}[vertical] [part=track]{height:max(calc(var(--to) - var(--from)),calc(var(--from) - var(--to)));left:0;top:min(var(--from),var(--to));width:100%}`,f`[part~=handle]{left:var(--handle);top:0}[vertical] [part~=handle]{left:0;top:var(--handle)}`)],Ni);var Pi=Ni;Pi.define();const Oi="rotate",Bi=ee(Oi);let Ii=class Rotate extends GlobalStyle{render(){return at`<div part="root"> <div part="slot" @mousemove="${this._handleRotate}"> ${Gt()} </div> <i @mouseleave="${this.reset}"></i> </div>`}reset(){this._root.style.removeProperty("transform"),this._root.style.removeProperty("transition")}_handleRotate(t){const{rotateX:e,rotateY:s}=this._computeOffset(t);this._root.style.setProperty("transform",`rotateX(${e}rad) rotateY(${s}rad)`),this._root.style.setProperty("transition","0s")}_computeOffset(t){const{left:e,top:s,width:o,height:r}=this._root.getBoundingClientRect(),{clientX:a,clientY:l}=t;return{rotateX:-(l-s-r/2)/r/2,rotateY:(a-e-o/2)/o/2}}};t([It("root")],Ii.prototype,"_root",void 0),Ii=t([At(Oi),Ct(f`:host{display:block;transition:all .5s ease-in-out;width:-moz-fit-content;width:fit-content;${Bi}--offset:.5em}div{position:relative;transition:inherit;transition-property:transform}i{box-sizing:content-box;height:100%;margin:calc(var(${Bi}--offset)*-1);padding:var(${Bi}--offset);position:absolute;top:0;width:100%}[part=slot]{z-index:2}`)],Ii);var zi=Ii;zi.define(),si.define();const Di=mi((()=>CSS.supports("position-area:top")));function Ui(t,e){if(t){const s="selected";e?t.setAttribute(s,""):t.removeAttribute(s)}}let ji=class Select extends ui{constructor(){super(...arguments),this.multiple=!1,this.noEdit=!1,this.values=[],this.optionsVisible=!1}render(){const t=this.noEdit||this.disabled;return at`<label part="root" ${Ht(this.observedRecord)}> ${[this._renderPrefix(),this.noEdit?at`<input style="position: absolute;inset: 0;opacity: 0;"/>`:"",at`<input part="input" .value="${this.text}" ?autofocus="${this.autofocus}" ?disabled="${t}" autocapitalize="${this.autocapitalize||dt}" autocomplete="${this.autocomplete||dt}" placeholder="${this.placeholder||dt}" @input="${t?null:this._handleInput}" @change="${t?null:this._handleChange}"/>`,this._renderSuffix()]} <div part="popover" popover="${Di()?"manual":dt}"> ${Gt()} </div> </label>`}_renderSuffix(){return at`<i part="suffix">${Gt("suffix",Oe())}</i>`}firstUpdated(){this.events.add(this._slot,"click",(t=>{const{target:e}=t;if("OPTION"!==e.tagName)return;t.preventDefault();const{label:s,value:o}=e,r=this.select(o,s);this.multiple||(Ui(this.lastChecked,0),this.hideOptions()),Ui(e,r),this.lastChecked=e}))}_connectedInit(){this.default=this.value??="",this.defaultText=this.text??="",this.events.add(this,"focus",this.showOptions)}reset(){this.value=this.default,this.text=this.defaultText}select(t,e){e||=t;let s=0;const o=this.values.findIndex((e=>e.value===t));return o>-1?this.values.splice(o,1):(this.values.push({value:t,label:e}),s=1),this.checkValues(),this.value=this.values.map((t=>t.value)).join(","),this.text=this.values.map((t=>t.label)).join(", "),this.dispatchCustomEvent("select",this.value),s}checkValues(){!this.multiple&&this.values.length>1&&(this.values.splice(0,this.values.length-1),this.requestUpdate())}showOptions(){if(this.optionsVisible)return;xi(this._popover);const t=e=>{this.contains(e.target)||(this.hideOptions(),this.events.remove(document,"click",t))};this.events.add(document,"click",t),this.optionsVisible=!0}hideOptions(){this.optionsVisible&&(_i(this._popover),this.optionsVisible=!1)}focus(t){super.focus(),this._input.focus(t),this.showOptions()}blur(){super.blur(),this._input.blur(),_i(this._popover)}};t([Tt()],ji.prototype,"text",void 0),t([Tt({type:Boolean})],ji.prototype,"multiple",void 0),t([Tt({type:Boolean})],ji.prototype,"noEdit",void 0),t([Tt({type:Array})],ji.prototype,"values",void 0),t([It("popover")],ji.prototype,"_popover",void 0),ji=t([At("select"),Ct(f`[part=root]{position:relative;anchor-name:--select}label{display:contents}[part=popover]{background:none;border:0;width:100%;position-anchor:--select;position-area:bottom center;position-try-fallbacks:flip-block}[part=input]{text-overflow:ellipsis}@supports not (position-area:top){[part=popover]{display:none;left:0;position:absolute;top:100%}}`)],ji);var Vi=ji;Vi.define();const Hi="skeleton",Li=ee(Hi);let Gi=class Skeleton extends GlobalStyle{constructor(){super(...arguments),this.loading=!0}render(){return this.loading?at`<div part="root">${Gt("loading")}</div>`:Gt()}};t([Mt()],Gi.prototype,"loading",void 0),Gi=t([At(Hi),Ct(f`:host{${Li}--from:var(${ie.background});${Li}--to:var(${ie.passive});${Li}--deg:95deg;${Li}--duration:2s;animation:_ var(${Li}--duration) ease-in-out infinite none running;background-color:transparent;background-image:linear-gradient(var(${Li}--deg),var(${Li}--from) 36%,var(${Li}--to) 50%,var(${Li}--from) 64%);background-size:200% 100%;flex-shrink:0;height:2em;overflow:hidden;width:100%}@keyframes _{0%{background-position:150%}to{background-position:-50%}}[part=root]{display:contents}:host,:host([contents]) [part=root]{display:block}`)],Gi);var Fi=Gi;Fi.define();const Wi="split",qi=ee(Wi);let Yi=class Split extends ci{constructor(){super(),this.len=6,this.index=-1,this.current=-1,this.currentValue=[],new StyleController(this,(()=>new RingBuilder({selector:"[part=input-box]",type:this.ringType}).css))}get observedRecord(){return a(super.observedRecord,ne)}render(){return at`<div part="root" ${Ht(this.observedRecord)}> ${qt(this.len,(t=>at`<span part="input-box" ring-type="${this.ringType}" class="${jt({focus:this.current===t})}" @click="${this.disabled?null:()=>this.focusAt(t)}"> ${this.currentValue[t]} </span>`))} <input part="input" @blur=${this.blur} @input="${this._handleInput}" @change="${this._handleChange}" .value="${this.value.padStart(this.len," ")}"/> </div>`}connectedCallback(){super.connectedCallback(),this.reset()}_handleInput(t){t.stopPropagation(),this.compositing||(this.fillInput(t.data),this.value=this.currentValue.join(""),this.dispatchCustomEvent("input",this.value,{bubbles:!0}))}fillInput(t){if(null===t){if(null!==this.currentValue[this.current])this.currentValue[this.current]=null;else{this.currentValue[this.current-1]=null;const t=this.currentValue.findLastIndex((t=>null!==t));this.current=this.current-1<0?t<0?0:t:this.current-1}return}const e=t.length>1;if(this.currentValue[this.current]=t[0],this.current+1>=this.len?(this.current=this.currentValue.indexOf(null),-1===this.current&&this.blur()):this.current+=1,e){const e=t.slice(1);e&&this.fillInput(e)}}focus(){this.focusAt(this.current),super.focus()}focusAt(t){this.current=t,this._input.focus()}blur(){this._input.blur(),this.current=-1,super.blur()}reset(){this.current=-1,this.value=this.default,this.currentValue=this.value.split("").concat(Array(this.len-this.value.length).fill(null)),this.index>-1&&(this.current=this.index)}};t([Tt({type:Number})],Yi.prototype,"len",void 0),t([Tt({type:Number})],Yi.prototype,"index",void 0),t([Mt()],Yi.prototype,"current",void 0),t([Mt()],Yi.prototype,"currentValue",void 0),Yi=t([At(Wi),Ct(f`:host{border-radius:.1em;display:block;width:-moz-fit-content;width:fit-content;${qi}--size:2em;${qi}--gap:.25em}[part=root]{display:flex;gap:var(${qi}--gap);justify-content:space-between;position:relative}[part=input-box],[part=root]{border-radius:inherit;vertical-align:top}[part=input-box]{align-items:center;display:inline-flex;height:var(${qi}--size);justify-content:center;width:var(${qi}--size)}[part=input]{background:none;height:100%;opacity:0;position:absolute;width:100%;z-index:-1}.focus,[part=input-box]:active{${ie.ringColor}:var(${ie.active})}`)],Yi);var Xi=Yi;Xi.define();const Zi="switch",Ki=ee(Zi);let Qi=class Switch extends ci{constructor(){super(...arguments),this.default=!1,this.value=!1}set checked(t){this.value=t}get checked(){return this.value}get observedRecord(){return a(super.observedRecord,ne)}render(){return at`<div part="root" ${Ht(this.observedRecord)} class="round"> <input part="input" type="checkbox" ?disabled="${this.disabled}" ?checked="${this.value}" @change="${this._handleChange}"/> <span part="handle"></span> </div>`}reset(){this.value=this.default,this._input.checked=this.value}_connectedInit(){this.default?this.value=!0:this.value&&(this.value=!0,this.default=!0)}_handleChange(){const{checked:t}=this._input;this.value=t,this.dispatchCustomEvent("change",this.value)}};t([Tt({type:Boolean})],Qi.prototype,"default",void 0),t([Tt({type:Boolean,attribute:"checked",reflect:!0})],Qi.prototype,"value",void 0),Qi=t([At(Zi),Ct(f`:host,:host([contents]) [part=root]{display:inline-block}:host{${Ki}-width:3em;${Ki}-height:calc(var(${Ki}-width)/2);${Ki}-handle-size:1.25em;${Ki}-handle-space:calc(var(${Ki}-width)/4 - var(${Ki}-handle-size)/2);background:var(${ie.passive});border-radius:calc(var(${Ki}-height)/2);height:var(${Ki}-height);transition:.2s ease-in-out;transition-property:background,left;vertical-align:bottom;width:var(${Ki}-width)}:host([checked]){background:var(${ie.active})}[part=root]{position:relative}[part=handle],[part=root]{align-items:center;display:flex;transition:inherit}[part=handle]{background:var(${ie.background});border-radius:100%;height:var(${Ki}-handle-size);justify-content:center;left:0;pointer-events:none;position:absolute;top:50%;transform:translateY(-50%) translateX(var(${Ki}-handle-space));width:var(${Ki}-handle-size)}:host([checked]) [part=handle]{left:50%}[part=input]{height:100%;opacity:0;width:100%}`)],Qi);var Ji=Qi;Ji.define();let ts=class Text extends GlobalStyle{constructor(){super(...arguments),this.underline="none",this.nowrap=!1,this.italic=!1,this.truncate=!1,this.clip=!1}render(){return at`<p part="root">${Gt()}</p>`}};t([Tt({converter:{fromAttribute:t=>""===t||t,toAttribute:t=>!1===t?null:!0===t?"":t},reflect:!0})],ts.prototype,"underline",void 0),t([Tt({type:Boolean,reflect:!0})],ts.prototype,"nowrap",void 0),t([Tt({type:Boolean,reflect:!0})],ts.prototype,"italic",void 0),t([Tt({type:Boolean,reflect:!0})],ts.prototype,"truncate",void 0),t([Tt({type:Boolean,reflect:!0})],ts.prototype,"clip",void 0),ts=t([At("text"),Ct(f`:host([clip]){background:var(${ie.backgroundClip});color:transparent;display:inline-block;-webkit-text-fill-color:transparent;background-clip:text;-webkit-background-clip:text}:host([nowrap]){white-space:nowrap}:host([italic]){font-style:italic}:host([truncate]),:host([truncate]) ::slotted(*){max-width:100%;overflow:hidden;text-overflow:ellipsis}:host([strikethrough]){text-decoration:line-through}:host(:active[underline=active]),:host(:focus[underline=focus]),:host(:hover[underline=hover]),:host([underline=""]),:host([underline=always]){text-decoration:underline}`)],ts);var es=ts;es.define();const is="tabs",ss=ee(is),os="hover";let rs=class Tabs extends GlobalStyle{constructor(){super(),this.ringType="border",this.beginning="selected",this.indicator="background",this.index=0,new StyleController(this,(()=>new RingBuilder({type:this.ringType}).css))}render(){return at`<ul part="root" ${Ht(this.observedRecord)} @mouseleave="${this._handleMouseLeave}"> ${this.tabs?.map(((t,e)=>at`<li part="${jt("item",this.index===e&&"selected")}" @mouseenter=${()=>{this.move(this.previousIndex,e),this.previousIndex=e}} @click=${()=>this.select(e)}> ${Gt(t,t)} <div part="indicator"></div> </li>`))} </ul>`}connectedCallback(){super.connectedCallback(),this.previousIndex="selected"===this.beginning?this.index:-1}_handleMouseLeave(){const t=this._items[this.previousIndex];t&&t.part.remove(os),this.previousIndex="selected"===this.beginning?this.index:-1}move(t,e){if(t===e)return;const{_items:s,_indicators:o}=this,r=s[e];if(!r)return;r.part.add(os);const a=s[t];if(!a)return;if(a.part.remove(os),"none"===this.beginning)return;const l=o[e],h=o[t];if(!l||!h)return;const{x:d,y:c,width:p}=h.getBoundingClientRect(),{x:u,y:v}=l.getBoundingClientRect(),f=d-u,m=c-v,{style:g}=l,{style:$}=h;g.transform=`translate3d(${f}px,${m}px,0)`,g.width=`${p}px`,g.transition=$.transition="none",l.getBoundingClientRect(),g.width=g.transform=g.transition=$.transition=""}select(t){const{index:e,previousIndex:s}=this;this.move(s,t),t!==e&&(this.previousIndex=t,this.index=t,this.dispatchCustomEvent("select",t))}};t([Tt({attribute:ne})],rs.prototype,"ringType",void 0),t([Tt()],rs.prototype,"beginning",void 0),t([Tt()],rs.prototype,"indicator",void 0),t([Tt({type:Array})],rs.prototype,"tabs",void 0),t([Tt({type:Number})],rs.prototype,"index",void 0),t([Bt("[part~=item]")],rs.prototype,"_items",void 0),t([Bt("[part=indicator]")],rs.prototype,"_indicators",void 0),rs=t([At(is),Ct(f`:host{${ss}--indicator-background:var(${ie.passive});${ss}--selected-background:var(${ie.passive});cursor:default;display:flex;transition:.2s ease-in-out}[part=root]{border-radius:inherit;display:flex;flex-direction:inherit;gap:.25em;overflow-x:clip;padding:.25em;position:relative;transition:inherit;transition-property:width,transform,opacity;z-index:1}[part~=item]{display:block;position:relative;text-align:center;white-space:nowrap}[part=indicator],[part~=item],[part~=item]:after{border-radius:inherit;transition:inherit;transition-property:inherit;width:100%}[part=indicator],[part~=item]:after{background:var(${ss}--indicator-background);height:100%;inset:0;position:absolute}[part=indicator]{opacity:0;z-index:-1}[part~=item]:after{z-index:-2}[indicator=underline] [part=indicator],[indicator=underline] [part~=item]:after{border-radius:.075em;height:.15em;margin-top:.15em;top:100%}[part~=selected]:after{background:var(${ss}--selected-background);content:""}[part~=hover] [part=indicator]{opacity:1}`)],rs);var ns=rs;function as(t,e=2){return t.toString().padStart(e,"0").split("")}ns.define();let ls=class Time extends es{constructor(){super(...arguments),this.escape="%",this.format="YYYY-MM-DD hh:mm:ss",this.time=new Date}render(){return at`<p part="root">${function(t,e=new Date,s="%"){var o;if(!t)return t;if(isNaN(e.getTime()))return;const r=`${s}${s}`,a=[];t=t.replace(new RegExp(`${s}([ZYMDhmsS${s}])`,"g"),((t,e)=>(a.push(e),r)));const l=e.getTimezoneOffset()/-60,h={Z:[l>=0?"+"+l.toString():l.toString()],Y:e.getFullYear().toString().split(""),M:as(e.getMonth()+1),D:as(e.getDate()),h:as(e.getHours()),m:as(e.getMinutes()),s:as(e.getSeconds()),S:as(e.getMilliseconds(),3)},d=[];for(const e of t.split("").reverse()){const t=null===(o=h[e])||void 0===o?void 0:o.pop();t?d.push(t):d.push(e)}return d.reverse().join("").replace(new RegExp(r,"g"),(()=>a.shift()))}(this.format,this.time,this.escape)}</p>`}updated(t){t.has("timeout")&&this.timeout&&(this.timeouts.remove(this.timeoutId),this.timeoutId=this.timeouts.add(setInterval((()=>{this.dispatchCustomEvent("time",this.time),this.time=new Date(this.time.getTime()+(this.gap||this.timeout))}),Math.abs(this.timeout))))}};t([Tt()],ls.prototype,"escape",void 0),t([Tt()],ls.prototype,"format",void 0),t([Tt({type:Object})],ls.prototype,"time",void 0),t([Tt({type:Number})],ls.prototype,"timeout",void 0),t([Tt({type:Number})],ls.prototype,"gap",void 0),ls=t([At("time")],ls);var hs=ls;hs.define();let ds=class Tooltip extends Ci{constructor(){super(...arguments),this.delay=300}render(){return at`<div part="root"> <div part="trigger" @click=${this.hide}> ${Gt()} </div> <div part="popover" popover="manual"> ${Gt("tip",this.tip)} </div> </div>`}connectedCallback(){super.connectedCallback(),this.events.add(this,"mouseenter",(()=>{clearTimeout(this._leaveTimeout),this._hoverTimeout=setTimeout((()=>{this.show()}),this.delay)})),this.events.add(this,"mouseleave",(()=>{clearTimeout(this._hoverTimeout),this._leaveTimeout=setTimeout((()=>{this.hide()}),this.delay)}))}};t([Tt()],ds.prototype,"tip",void 0),t([Tt({type:Number})],ds.prototype,"delay",void 0),ds=t([At("tooltip")],ds);var cs=ds;cs.define();const ps="typewriter",us=ee(ps);let vs=class Typewriter extends GlobalStyle{constructor(){super(...arguments),this.content="",this.ended=!1,this.max=100,this.min=50,this.delay=0,this.index=0,this.contentInternal=""}get len(){return this.content.length}render(){return at`<div part="root" ${Ht(this.observedRecord)}> ${Gt()} ${this.contentInternal} <i part="cursor" ?hidden="${this.ended}"></i> </div>`}connectedCallback(){super.connectedCallback(),this._ranger=new Ranger(this.min,this.max)}firstUpdated(){this.content||=this._slot?.assignedNodes()[0]?.textContent.trim()||"",!this.ended&&this.len&&this.write()}updated(t){t.has("index")&&this.dispatchCustomEvent(this.index===this.len?"done":"write",this.contentInternal)}write(t=this.index){this.contentInternal=this.content.slice(0,t+1);const e=this.delay||this._ranger.random();this.timeoutID=this.timeouts.add(setTimeout((()=>{const e=t+1;e<=this.len&&(this.index=e,this.write())}),e))}stop(){clearTimeout(this.timeoutID)}end(){this.ended=!0}};t([Tt()],vs.prototype,"content",void 0),t([Tt({type:Boolean})],vs.prototype,"ended",void 0),t([Tt({type:Number})],vs.prototype,"max",void 0),t([Tt({type:Number})],vs.prototype,"min",void 0),t([Tt({type:Number})],vs.prototype,"delay",void 0),t([Tt({type:Number})],vs.prototype,"index",void 0),t([Mt()],vs.prototype,"contentInternal",void 0),t([Pt("i")],vs.prototype,"_i",void 0),vs=t([At(ps),Ct(f`:host{${us}--cursor-width:.05em}:host,:host([contents]) [part=root]{display:inline-block}i{animation:s 1.5s steps(1) infinite;border-right:var(${us}--cursor-width) solid;margin-left:.02em}@keyframes s{0%{border-color:currentColor}50%{border-color:transparent}}slot{display:none}`)],vs);var fs=vs;fs.define();export{le as Alert,de as Avatar,me as Badge,_e as Breath,ve as Button,ke as Card,Ee as Carousel,Pe as Chip,De as Details,He as Dialog,Ge as Divider,We as Dragbox,Xe as Flex,Ke as Form,ei as Grid,li as Heading,ui as Input,fi as Layout,ni as Link,Ai as Popover,Ei as Progress,Pi as Range,zi as Rotate,si as Router,Vi as Select,Fi as Skeleton,Xi as Split,Ji as Switch,ns as Tabs,es as Text,hs as Time,cs as Tooltip,fs as Typewriter};
1
+ const isNullable=w=>w==null,isNumerical=w=>!Number.isNaN(+w),isString=w=>typeof w==`string`,isSymbol=w=>typeof w==`symbol`,isNumber=w=>typeof w==`number`,isObject=w=>typeof w==`object`&&!!w,{isArray}=Array,omit=(w,...D)=>{let O={};for(let F in w)D.includes(F)||(O[F]=w[F]);return O},trimStartFunc=(w,D)=>{if(!w||!D)return w;let O=0;for(;O<w.length&&D(w.slice(O,O+1));)O+=1;return w.slice(O)},trimEndFunc=(w,D)=>{if(!w||!D)return w;let O=w.length;for(;O>0&&D(w.slice(O-1,O));)--O;return w.slice(0,O)},trimFunc=(w,D)=>trimStartFunc(trimEndFunc(w,D),D),trim=(w,D)=>trimFunc(w,w=>w===D),splitWords=w=>{var D;return(D=w.match(/[A-Z][^A-Z_-\s]*|[^A-Z_-\s]+/g))?.map(w=>w.toLowerCase())||[]},toDash=w=>splitWords(w).join(`-`),separator=`-`;class GodownConfig{constructor(w){this.assign=null,this.prefix=`godown`,this.suffix=``,this.components=new Map,this.registry=customElements,w&&Object.assign(this,w)}tag(w){return toDash(this.prefix+separator+w+separator+this.suffix)}define(w,D,O){this.registry.define(w,D,O),this.components.set(w,D)}get(w){return this.registry.get(w)}getName(w){let{getName:D}=this.registry;return D?D(w):[...this.components.entries()].find(([,D])=>D===w)?.[0]||null}whenDefined(w){return this.registry.whenDefined(w)}upgrade(w){this.registry.upgrade(w)}}const t$2=globalThis,e$6=t$2.ShadowRoot&&(t$2.ShadyCSS===void 0||t$2.ShadyCSS.nativeShadow)&&`adoptedStyleSheets`in Document.prototype&&`replace`in CSSStyleSheet.prototype,s$2=Symbol(),o$4=new WeakMap;let n$3=class w{constructor(w,D,O){if(this._$cssResult$=!0,O!==s$2)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=w,this.t=D}get styleSheet(){let w=this.o,D=this.t;if(e$6&&w===void 0){let O=D!==void 0&&D.length===1;O&&(w=o$4.get(D)),w===void 0&&((this.o=w=new CSSStyleSheet).replaceSync(this.cssText),O&&o$4.set(D,w))}return w}toString(){return this.cssText}};const r$5=w=>new n$3(typeof w==`string`?w:w+``,void 0,s$2),i$4=(w,...D)=>{let O=w.length===1?w[0]:D.reduce((D,O,F)=>D+(w=>{if(w._$cssResult$===!0)return w.cssText;if(typeof w==`number`)return w;throw Error(`Value passed to 'css' function must be a 'css' function result: `+w+`. Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.`)})(O)+w[F+1],w[0]);return new n$3(O,w,s$2)},S$1=(w,D)=>{if(e$6)w.adoptedStyleSheets=D.map(w=>w instanceof CSSStyleSheet?w:w.styleSheet);else for(let O of D){let D=document.createElement(`style`),F=t$2.litNonce;F!==void 0&&D.setAttribute(`nonce`,F),D.textContent=O.cssText,w.appendChild(D)}},c$2=e$6?w=>w:w=>w instanceof CSSStyleSheet?(w=>{let D=``;for(let O of w.cssRules)D+=O.cssText;return r$5(D)})(w):w,{is:i$3,defineProperty:e$5,getOwnPropertyDescriptor:h$1,getOwnPropertyNames:r$4,getOwnPropertySymbols:o$3,getPrototypeOf:n$2}=Object,a$1=globalThis,c$1=a$1.trustedTypes,l$1=c$1?c$1.emptyScript:``,p$1=a$1.reactiveElementPolyfillSupport,d$1=(w,D)=>w,u$1={toAttribute(w,D){switch(D){case Boolean:w=w?l$1:null;break;case Object:case Array:w=w==null?w:JSON.stringify(w)}return w},fromAttribute(w,D){let O=w;switch(D){case Boolean:O=w!==null;break;case Number:O=w===null?null:Number(w);break;case Object:case Array:try{O=JSON.parse(w)}catch{O=null}}return O}},f$1=(w,D)=>!i$3(w,D),b$1={attribute:!0,type:String,converter:u$1,reflect:!1,useDefault:!1,hasChanged:f$1};Symbol.metadata??=Symbol(`metadata`),a$1.litPropertyMetadata??=new WeakMap;let y$1=class w extends HTMLElement{static addInitializer(w){this._$Ei(),(this.l??=[]).push(w)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(w,D=b$1){if(D.state&&(D.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(w)&&((D=Object.create(D)).wrapped=!0),this.elementProperties.set(w,D),!D.noAccessor){let O=Symbol(),F=this.getPropertyDescriptor(w,O,D);F!==void 0&&e$5(this.prototype,w,F)}}static getPropertyDescriptor(w,D,O){let{get:F,set:U}=h$1(this.prototype,w)??{get(){return this[D]},set(w){this[D]=w}};return{get:F,set(D){let W=F?.call(this);U?.call(this,D),this.requestUpdate(w,W,O)},configurable:!0,enumerable:!0}}static getPropertyOptions(w){return this.elementProperties.get(w)??b$1}static _$Ei(){if(this.hasOwnProperty(d$1(`elementProperties`)))return;let w=n$2(this);w.finalize(),w.l!==void 0&&(this.l=[...w.l]),this.elementProperties=new Map(w.elementProperties)}static finalize(){if(this.hasOwnProperty(d$1(`finalized`)))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(d$1(`properties`))){let w=this.properties,D=[...r$4(w),...o$3(w)];for(let O of D)this.createProperty(O,w[O])}let w=this[Symbol.metadata];if(w!==null){let D=litPropertyMetadata.get(w);if(D!==void 0)for(let[w,O]of D)this.elementProperties.set(w,O)}this._$Eh=new Map;for(let[w,D]of this.elementProperties){let O=this._$Eu(w,D);O!==void 0&&this._$Eh.set(O,w)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(w){let D=[];if(Array.isArray(w)){let O=new Set(w.flat(1/0).reverse());for(let w of O)D.unshift(c$2(w))}else w!==void 0&&D.push(c$2(w));return D}static _$Eu(w,D){let O=D.attribute;return O===!1?void 0:typeof O==`string`?O:typeof w==`string`?w.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(w=>this.enableUpdating=w),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(w=>w(this))}addController(w){(this._$EO??=new Set).add(w),this.renderRoot!==void 0&&this.isConnected&&w.hostConnected?.()}removeController(w){this._$EO?.delete(w)}_$E_(){let w=new Map,D=this.constructor.elementProperties;for(let O of D.keys())this.hasOwnProperty(O)&&(w.set(O,this[O]),delete this[O]);w.size>0&&(this._$Ep=w)}createRenderRoot(){let w=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return S$1(w,this.constructor.elementStyles),w}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(w=>w.hostConnected?.())}enableUpdating(w){}disconnectedCallback(){this._$EO?.forEach(w=>w.hostDisconnected?.())}attributeChangedCallback(w,D,O){this._$AK(w,O)}_$ET(w,D){let O=this.constructor.elementProperties.get(w),F=this.constructor._$Eu(w,O);if(F!==void 0&&O.reflect===!0){let U=(O.converter?.toAttribute===void 0?u$1:O.converter).toAttribute(D,O.type);this._$Em=w,U==null?this.removeAttribute(F):this.setAttribute(F,U),this._$Em=null}}_$AK(w,D){let O=this.constructor,F=O._$Eh.get(w);if(F!==void 0&&this._$Em!==F){let w=O.getPropertyOptions(F),U=typeof w.converter==`function`?{fromAttribute:w.converter}:w.converter?.fromAttribute===void 0?u$1:w.converter;this._$Em=F,this[F]=U.fromAttribute(D,w.type)??this._$Ej?.get(F)??null,this._$Em=null}}requestUpdate(w,D,O){if(w!==void 0){let F=this.constructor,U=this[w];if(O??=F.getPropertyOptions(w),!((O.hasChanged??f$1)(U,D)||O.useDefault&&O.reflect&&U===this._$Ej?.get(w)&&!this.hasAttribute(F._$Eu(w,O))))return;this.C(w,D,O)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(w,D,{useDefault:O,reflect:F,wrapped:U},W){O&&!(this._$Ej??=new Map).has(w)&&(this._$Ej.set(w,W??D??this[w]),U!==!0||W!==void 0)||(this._$AL.has(w)||(this.hasUpdated||O||(D=void 0),this._$AL.set(w,D)),F===!0&&this._$Em!==w&&(this._$Eq??=new Set).add(w))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(w){Promise.reject(w)}let w=this.scheduleUpdate();return w!=null&&await w,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[w,D]of this._$Ep)this[w]=D;this._$Ep=void 0}let w=this.constructor.elementProperties;if(w.size>0)for(let[D,O]of w){let{wrapped:w}=O,F=this[D];w!==!0||this._$AL.has(D)||F===void 0||this.C(D,void 0,O,F)}}let w=!1,D=this._$AL;try{w=this.shouldUpdate(D),w?(this.willUpdate(D),this._$EO?.forEach(w=>w.hostUpdate?.()),this.update(D)):this._$EM()}catch(D){throw w=!1,this._$EM(),D}w&&this._$AE(D)}willUpdate(w){}_$AE(w){this._$EO?.forEach(w=>w.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(w)),this.updated(w)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(w){return!0}update(w){this._$Eq&&=this._$Eq.forEach(w=>this._$ET(w,this[w])),this._$EM()}updated(w){}firstUpdated(w){}};y$1.elementStyles=[],y$1.shadowRootOptions={mode:`open`},y$1[d$1(`elementProperties`)]=new Map,y$1[d$1(`finalized`)]=new Map,p$1?.({ReactiveElement:y$1}),(a$1.reactiveElementVersions??=[]).push(`2.1.0`);const t$1=globalThis,i$2=t$1.trustedTypes,s$1=i$2?i$2.createPolicy(`lit-html`,{createHTML:w=>w}):void 0,e$4=`$lit$`,h=`lit$${Math.random().toFixed(9).slice(2)}$`,o$2=`?`+h,n$1=`<${o$2}>`,r$3=document,l=()=>r$3.createComment(``),c=w=>w===null||typeof w!=`object`&&typeof w!=`function`,a=Array.isArray,u=w=>a(w)||typeof w?.[Symbol.iterator]==`function`,d=`[
2
+ \f\r]`,f=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v=/-->/g,_=/>/g,m=RegExp(`>|${d}(?:([^\\s"'>=/]+)(${d}*=${d}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,`g`),p=/'/g,g=/"/g,$=/^(?:script|style|textarea|title)$/i,y=w=>(D,...O)=>({_$litType$:w,strings:D,values:O}),x=y(1),b=y(2),T=Symbol.for(`lit-noChange`),E=Symbol.for(`lit-nothing`),A=new WeakMap,C=r$3.createTreeWalker(r$3,129);function P(w,D){if(!a(w)||!w.hasOwnProperty(`raw`))throw Error(`invalid template strings array`);return s$1===void 0?D:s$1.createHTML(D)}const V=(w,D)=>{let O=w.length-1,F=[],U,W=D===2?`<svg>`:D===3?`<math>`:``,G=f;for(let D=0;D<O;D++){let O=w[D],K,q,J=-1,Y=0;for(;Y<O.length&&(G.lastIndex=Y,q=G.exec(O),q!==null);)Y=G.lastIndex,G===f?q[1]===`!--`?G=v:q[1]===void 0?q[2]===void 0?q[3]!==void 0&&(G=m):($.test(q[2])&&(U=RegExp(`</`+q[2],`g`)),G=m):G=_:G===m?q[0]===`>`?(G=U??f,J=-1):q[1]===void 0?J=-2:(J=G.lastIndex-q[2].length,K=q[1],G=q[3]===void 0?m:q[3]===`"`?g:p):G===g||G===p?G=m:G===v||G===_?G=f:(G=m,U=void 0);let X=G===m&&w[D+1].startsWith(`/>`)?` `:``;W+=G===f?O+n$1:J>=0?(F.push(K),O.slice(0,J)+e$4+O.slice(J)+h+X):O+h+(J===-2?D:X)}return[P(w,W+(w[O]||`<?>`)+(D===2?`</svg>`:D===3?`</math>`:``)),F]};class N{constructor({strings:w,_$litType$:D},O){let F;this.parts=[];let U=0,W=0,G=w.length-1,K=this.parts,[q,J]=V(w,D);if(this.el=N.createElement(q,O),C.currentNode=this.el.content,D===2||D===3){let w=this.el.content.firstChild;w.replaceWith(...w.childNodes)}for(;(F=C.nextNode())!==null&&K.length<G;){if(F.nodeType===1){if(F.hasAttributes())for(let w of F.getAttributeNames())if(w.endsWith(e$4)){let D=J[W++],O=F.getAttribute(w).split(h),G=/([.?@])?(.*)/.exec(D);K.push({type:1,index:U,name:G[2],strings:O,ctor:G[1]===`.`?H:G[1]===`?`?I:G[1]===`@`?L:k}),F.removeAttribute(w)}else w.startsWith(h)&&(K.push({type:6,index:U}),F.removeAttribute(w));if($.test(F.tagName)){let w=F.textContent.split(h),D=w.length-1;if(D>0){F.textContent=i$2?i$2.emptyScript:``;for(let O=0;O<D;O++)F.append(w[O],l()),C.nextNode(),K.push({type:2,index:++U});F.append(w[D],l())}}}else if(F.nodeType===8)if(F.data===o$2)K.push({type:2,index:U});else{let w=-1;for(;(w=F.data.indexOf(h,w+1))!==-1;)K.push({type:7,index:U}),w+=h.length-1}U++}}static createElement(w,D){let O=r$3.createElement(`template`);return O.innerHTML=w,O}}function S(w,D,O=w,F){if(D===T)return D;let U=F===void 0?O._$Cl:O._$Co?.[F],W=c(D)?void 0:D._$litDirective$;return U?.constructor!==W&&(U?._$AO?.(!1),W===void 0?U=void 0:(U=new W(w),U._$AT(w,O,F)),F===void 0?O._$Cl=U:(O._$Co??=[])[F]=U),U!==void 0&&(D=S(w,U._$AS(w,D.values),U,F)),D}class M{constructor(w,D){this._$AV=[],this._$AN=void 0,this._$AD=w,this._$AM=D}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(w){let{el:{content:D},parts:O}=this._$AD,F=(w?.creationScope??r$3).importNode(D,!0);C.currentNode=F;let U=C.nextNode(),W=0,G=0,K=O[0];for(;K!==void 0;){if(W===K.index){let D;K.type===2?D=new R(U,U.nextSibling,this,w):K.type===1?D=new K.ctor(U,K.name,K.strings,this,w):K.type===6&&(D=new z(U,this,w)),this._$AV.push(D),K=O[++G]}W!==K?.index&&(U=C.nextNode(),W++)}return C.currentNode=r$3,F}p(w){let D=0;for(let O of this._$AV)O!==void 0&&(O.strings===void 0?O._$AI(w[D]):(O._$AI(w,O,D),D+=O.strings.length-2)),D++}}class R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(w,D,O,F){this.type=2,this._$AH=E,this._$AN=void 0,this._$AA=w,this._$AB=D,this._$AM=O,this.options=F,this._$Cv=F?.isConnected??!0}get parentNode(){let w=this._$AA.parentNode,D=this._$AM;return D!==void 0&&w?.nodeType===11&&(w=D.parentNode),w}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(w,D=this){w=S(this,w,D),c(w)?w===E||w==null||w===``?(this._$AH!==E&&this._$AR(),this._$AH=E):w!==this._$AH&&w!==T&&this._(w):w._$litType$===void 0?w.nodeType===void 0?u(w)?this.k(w):this._(w):this.T(w):this.$(w)}O(w){return this._$AA.parentNode.insertBefore(w,this._$AB)}T(w){this._$AH!==w&&(this._$AR(),this._$AH=this.O(w))}_(w){this._$AH!==E&&c(this._$AH)?this._$AA.nextSibling.data=w:this.T(r$3.createTextNode(w)),this._$AH=w}$(w){let{values:D,_$litType$:O}=w,F=typeof O==`number`?this._$AC(w):(O.el===void 0&&(O.el=N.createElement(P(O.h,O.h[0]),this.options)),O);if(this._$AH?._$AD===F)this._$AH.p(D);else{let w=new M(F,this),O=w.u(this.options);w.p(D),this.T(O),this._$AH=w}}_$AC(w){let D=A.get(w.strings);return D===void 0&&A.set(w.strings,D=new N(w)),D}k(w){a(this._$AH)||(this._$AH=[],this._$AR());let D=this._$AH,O,F=0;for(let U of w)F===D.length?D.push(O=new R(this.O(l()),this.O(l()),this,this.options)):O=D[F],O._$AI(U),F++;F<D.length&&(this._$AR(O&&O._$AB.nextSibling,F),D.length=F)}_$AR(w=this._$AA.nextSibling,D){for(this._$AP?.(!1,!0,D);w&&w!==this._$AB;){let D=w.nextSibling;w.remove(),w=D}}setConnected(w){this._$AM===void 0&&(this._$Cv=w,this._$AP?.(w))}}class k{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(w,D,O,F,U){this.type=1,this._$AH=E,this._$AN=void 0,this.element=w,this.name=D,this._$AM=F,this.options=U,O.length>2||O[0]!==``||O[1]!==``?(this._$AH=Array(O.length-1).fill(new String),this.strings=O):this._$AH=E}_$AI(w,D=this,O,F){let U=this.strings,W=!1;if(U===void 0)w=S(this,w,D,0),W=!c(w)||w!==this._$AH&&w!==T,W&&(this._$AH=w);else{let F=w,G,K;for(w=U[0],G=0;G<U.length-1;G++)K=S(this,F[O+G],D,G),K===T&&(K=this._$AH[G]),W||=!c(K)||K!==this._$AH[G],K===E?w=E:w!==E&&(w+=(K??``)+U[G+1]),this._$AH[G]=K}W&&!F&&this.j(w)}j(w){w===E?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,w??``)}}class H extends k{constructor(){super(...arguments),this.type=3}j(w){this.element[this.name]=w===E?void 0:w}}class I extends k{constructor(){super(...arguments),this.type=4}j(w){this.element.toggleAttribute(this.name,!!w&&w!==E)}}class L extends k{constructor(w,D,O,F,U){super(w,D,O,F,U),this.type=5}_$AI(w,D=this){if((w=S(this,w,D,0)??E)===T)return;let O=this._$AH,F=w===E&&O!==E||w.capture!==O.capture||w.once!==O.once||w.passive!==O.passive,U=w!==E&&(O===E||F);F&&this.element.removeEventListener(this.name,this,O),U&&this.element.addEventListener(this.name,this,w),this._$AH=w}handleEvent(w){typeof this._$AH==`function`?this._$AH.call(this.options?.host??this.element,w):this._$AH.handleEvent(w)}}class z{constructor(w,D,O){this.element=w,this.type=6,this._$AN=void 0,this._$AM=D,this.options=O}get _$AU(){return this._$AM._$AU}_$AI(w){S(this,w)}}const j=t$1.litHtmlPolyfillSupport;j?.(N,R),(t$1.litHtmlVersions??=[]).push(`3.3.0`);const B=(w,D,O)=>{let F=O?.renderBefore??D,U=F._$litPart$;if(U===void 0){let w=O?.renderBefore??null;F._$litPart$=U=new R(D.insertBefore(l(),w),w,void 0,O??{})}return U._$AI(w),U},s=globalThis;let i$1=class w extends y$1{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let w=super.createRenderRoot();return this.renderOptions.renderBefore??=w.firstChild,w}update(w){let D=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(w),this._$Do=B(D,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return T}};i$1._$litElement$=!0,i$1.finalized=!0,s.litElementHydrateSupport?.({LitElement:i$1});const o$1=s.litElementPolyfillSupport;o$1?.({LitElement:i$1}),(s.litElementVersions??=[]).push(`4.2.0`);function*toEntries(w){for(let D of isArray(w)?w:Object.entries(w))D&&(yield D)}const isCSSResult=w=>isObject(w)&&`_$cssResult$`in w,isAcceptValue=D=>!isNullable(D)&&D!==!1,toStyleSheet=w=>{if(isString(w)){let D=new CSSStyleSheet;return D.replaceSync(w),D}return isCSSResult(w)?w.styleSheet:w},selectContain=(w,D)=>D?`[${w}~="${D}"]`:`[${w}]`,selectPart=(w,D)=>D?`::part(${w})`:selectContain(`part`,w),joinRules=w=>{let D=``;for(let[O,F]of toEntries(w))if(F){let w=isObject(F)&&!isCSSResult(F)?joinDeclarations(F):F;isAcceptValue(w)&&(D+=O?`${O}{${w}}`:w)}return D},joinDeclarations=w=>{let D=``;for(let[O,F]of toEntries(w))O&&isAcceptValue(F)&&(D+=`${O}:${F};`);return D},ifSupports=(w,{truecase:D,falsecase:O})=>{let F=`@supports`,U=``;return D&&(U+=`${F}(${w}){${D}}`),O&&(U+=`${F} not (${w}){${O}}`),U},declareLightDarkColors=(w,D,O)=>{let F=[...toEntries(D)],U=([w,[D,O]])=>[w,`light-dark(${D},${O})`],W=([w,D])=>[w,D[O]];return ifSupports(`color:light-dark(#fff,#000)`,{truecase:joinRules([[w,joinDeclarations(F.map(U))]]),falsecase:joinRules([[w,joinDeclarations(F.map(W))]])})},toVar=(w,D)=>w?`var(${w})`:``;class StyleController{constructor(w,D){(this.host=w).addController(this),this.computeStyle=D}hostUpdated(){let w=this.host.shadowRoot?.adoptedStyleSheets;if(!w)return;this.styleID!==void 0&&w.splice(this.styleID,1);let D=this.computeStyle();if(!D){this.styleID=void 0;return}this.styleID=w.push(toStyleSheet(D))-1}}const styles=(...w)=>D=>{let O=[];for(let w=Object.getPrototypeOf(D);w.styles;w=Object.getPrototypeOf(w))O.push(w.styles);D.styles=[...O,...w]},component=({tagName:w,styles:D,autoDefine:O=!1,registry:F=customElements})=>U=>{U.elementTagName=w,D&&styles(D)(U),O&&!F.get(w)&&F.define(w,U)},godown=(w,D)=>O=>{w||=toDash(O.name),O.protoName=w;let F=O.godownConfig.tag(w);component({tagName:F,...D})(O)},o={attribute:!0,type:String,converter:u$1,reflect:!1,hasChanged:f$1},r$2=(w=o,D,O)=>{let{kind:F,metadata:U}=O,W=globalThis.litPropertyMetadata.get(U);if(W===void 0&&globalThis.litPropertyMetadata.set(U,W=new Map),F===`setter`&&((w=Object.create(w)).wrapped=!0),W.set(O.name,w),F===`accessor`){let{name:F}=O;return{set(O){let U=D.get.call(this);D.set.call(this,O),this.requestUpdate(F,U,w)},init(D){return D!==void 0&&this.C(F,void 0,w,D),D}}}if(F===`setter`){let{name:F}=O;return function(O){let U=this[F];D.call(this,O),this.requestUpdate(F,U,w)}}throw Error(`Unsupported decorator location: `+F)};function n(w){return(D,O)=>typeof O==`object`?r$2(w,D,O):((w,D,O)=>{let F=D.hasOwnProperty(O);return D.constructor.createProperty(O,w),F?Object.getOwnPropertyDescriptor(D,O):void 0})(w,D,O)}function r$1(w){return n({...w,state:!0,attribute:!1})}const e$3=(w,D,O)=>(O.configurable=!0,O.enumerable=!0,Reflect.decorate&&typeof D!=`object`&&Object.defineProperty(w,D,O),O);function e$2(w,D){return(O,F,U)=>{let W=D=>D.renderRoot?.querySelector(w)??null;if(D){let{get:w,set:D}=typeof F==`object`?O:U??(()=>{let w=Symbol();return{get(){return this[w]},set(D){this[w]=D}}})();return e$3(O,F,{get(){let O=w.call(this);return O===void 0&&(O=W(this),(O!==null||this.hasUpdated)&&D.call(this,O)),O}})}return e$3(O,F,{get(){return W(this)}})}}let e$1;function r(w){return(D,O)=>e$3(D,O,{get(){return(this.renderRoot??(e$1??=document.createDocumentFragment())).querySelectorAll(w)}})}const queryPart=(w,D=!0)=>e$2(selectPart(w),D),t={ELEMENT:6},e=w=>(...D)=>({_$litDirective$:w,values:D});class i{constructor(w){}get _$AU(){return this._$AM._$AU}_$AT(w,D,O){this._$Ct=w,this._$AM=D,this._$Ci=O}_$AS(w,D){return this.update(w,D)}update(w,D){return this.render(...D)}}const combineToken=(w,D)=>(w?w+(D?` `+D:``):D)||``,tokenList=(...w)=>w.reduce((w,D)=>{if(!D)return w;if(isArray(D))return combineToken(w,tokenList(...D));if(isObject(D)){for(let O in D)D[O]&&(w=combineToken(w,O));return w}return combineToken(w,D)},``),noAttribute=D=>isNullable(D)||D===!1;function updateAttribute(w,D){noAttribute(D)?this.removeAttribute(w):D===!0?this.setAttribute(w,``):isString(D)||isNumber(D)&&!Number.isNaN(D)?this.setAttribute(w,String(D)):this[w]=D}class AttrDirective extends i{render(w,D){}update(w,[D,O=updateAttribute]){if(D&&w.type===t.ELEMENT)for(let F in D)O.call(w.element,F,D[F]);return T}}const attr=e(AttrDirective),svgInitials={width:`1em`,height:`1em`,xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`},withInitials=(w,D)=>O=>w({...D,...O}),svgAttr=withInitials(attr,svgInitials),htmlSlot=(w,D)=>x`<slot name="${w||E}">${D||E}</slot>`,htmlStyle=(w,D)=>{if(!w)return E;let F=isString(w)?w:joinRules(w);return F?x`<style media="${E}">${F}</style>`:E},icon=w=>(D,...F)=>{let U=b(D,F),W=isString(w)?w:w.join(` `),G=w=>x`<svg viewBox="${W}" ${svgAttr(w)}>${U}</svg>`;return G.body=U,G.viewBox=W,G};function*loop(w,D,O){for(let O=0;O<w;O++)yield D(O)}function __decorate$1(w,D,O,F){var U=arguments.length,W=U<3?D:F===null?F=Object.getOwnPropertyDescriptor(D,O):F,G;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)W=Reflect.decorate(w,D,O,F);else for(var K=w.length-1;K>=0;K--)(G=w[K])&&(W=(U<3?G(W):U>3?G(D,O,W):G(D,O))||W);return U>3&&W&&Object.defineProperty(D,O,W),W}typeof SuppressedError==`function`&&SuppressedError;function deepQuerySelectorAll(w,D=this){if(!D||!w)return[];let O=new Set;D instanceof Element&&D.shadowRoot&&deepQuerySelectorAll(w,D.shadowRoot).forEach(w=>O.add(w)),D.querySelectorAll(w).forEach(w=>O.add(w));for(let F of D.children)deepQuerySelectorAll(w,F).forEach(w=>O.add(w));return Array.from(O)}function deepQuerySelector(w,D=this){if(!D||!w)return null;let O;if(D instanceof Element&&D.shadowRoot&&(O=deepQuerySelector(w,D.shadowRoot),O)||(O=D.querySelector(w),O))return O;for(let F of D.children)if(O=deepQuerySelector(w,F),O)return O;return null}class Events{constructor(){this.inner=new Map}add(w,D,O,F){if(!w||!O)return;let U=this.inner.get(D)||new Map,W=U.get(w)||new Set;return W.add(O),U.set(w,W),this.inner.set(D,U),w.addEventListener(D,O,F),O}remove(w,D,O,F){if(!w||!O)return;let U=this.inner.get(D);if(U){let F=U.get(w);F&&(F.delete(O),F.size||(U.delete(w),U.size||this.inner.delete(D)))}w.removeEventListener(D,O,F)}removeAll(){this.inner.forEach((w,D)=>{w.forEach((w,O)=>{w.forEach(w=>{O.removeEventListener(D,w)})}),w.clear()}),this.inner.clear()}}const normalizeObserver=(w,D,O)=>{let F,U;switch(w){case MutationObserver:case ResizeObserver:F=new w(D),U=w=>F.observe(w,O);break;case IntersectionObserver:F=new w(D,O),U=w=>F.observe(w);break;case PerformanceObserver:F=new w(D),U=()=>F.observe(O);break}return[F,U]};class Observers{constructor(){this.inner=new Map}add(w,D,O,F){let[U,W]=normalizeObserver(D,O,F);if(U)return this.inner.set(U,(this.inner.get(U)||new Set).add(w)),W(w),U}remove(w,D){w.disconnect();let O=this.inner.get(w);`unobserve`in w?(D?(w.unobserve(D),O?.delete(D)):(O?.forEach(D=>{w.unobserve(D)}),O?.clear()),O&&!O.size&&this.inner.delete(w)):O&&this.inner.delete(w)}removeAll(){this.inner.forEach((w,D)=>{this.remove(D)})}}class Ranger{constructor(w,D,O){this.max=Math.max(w,D),this.min=Math.min(w,D),this.diff=this.max-this.min,this.step=O}random(){return this.normalize(Math.random()*this.diff+this.min)}present(w){return this.normalize(w*this.diff)}normalize(w){return w=this.restrict(w),this.step?this.min+Math.round((w-this.min)/this.step)*this.step:w}restrict(w){return this.max<=w?this.max:this.min>=w?this.min:w}}const matchTypes={strict:0,single:1,multi:2},trimLeftSlash=w=>{for(let D=0;D<w.length;D++)if(w[D]!==`/`)return w.slice(D);return w},nextPart=w=>{if(w=trimLeftSlash(w),w===``)return[``,``];let D=w.indexOf(`/`);return D===-1?[w,``]:[w.slice(0,D),w.slice(D+1)]},dynamic=w=>{if(w.length>1){let D=w[0],O=w[w.length-1];if(D===`{`&&O===`}`||D===`[`&&O===`]`){w=w.slice(1,w.length-1);let D=dynamic(w);return D.matchType===matchTypes.strict&&(D.matchType=matchTypes.single),D}if(D===`:`)return{key:w.slice(1),matchType:matchTypes.single};if(D===`*`)return{key:w.slice(1),matchType:matchTypes.multi};if(w.startsWith(`...`))return{key:w.slice(3),matchType:matchTypes.multi};if(w.endsWith(`...`))return{key:w.slice(-3),matchType:matchTypes.multi}}return{key:w,matchType:matchTypes.strict}},parseParams=(w,D)=>{let O={},F,U;for(;[F,w]=nextPart(w),[U,D]=nextPart(D),!(U===``||F===``);){let D=dynamic(U);switch(D.matchType){case matchTypes.single:O[D.key]=F;break;case matchTypes.multi:return O[D.key]=F,w!==``&&(O[D.key]+=`/`+w),O}}return O};let Router$2=class w{constructor(){this.match=matchTypes.strict,this.children=[],this.part=``,this.match=matchTypes.strict,this.pattern=``,this.children=[]}insert(w){this._insert(w,w),this.sort()}_insert(D,O){if(D===``){this.pattern=O;return}let[F,U]=nextPart(D),W=this.findStrict(F);W||(W=new w,W.part=F,W.match=dynamic(F).matchType,this.children.push(W)),W._insert(U,O)}search(w){if(w===``)return this.pattern===``?null:this;let[D,O]=nextPart(w);for(let w of this.children)switch(w.match){case matchTypes.strict:if(w.part===D){let D=w.search(O);if(D)return D}break;case matchTypes.single:{let D=w.search(O);if(D)return D;break}case matchTypes.multi:return w}return null}findStrict(w){return this.children.find(D=>D.part===w)||null}sort(){this.children.sort((w,D)=>w.match-D.match);for(let w of this.children)w.sort()}};Router$2.MatchTypes=matchTypes,Router$2.parseParams=parseParams,Router$2.dynamic=dynamic;class Timeouts{constructor(){this.inner=new Set}add(w){if(w!==void 0)return w=+w,this.inner.has(w)&&clearTimeout(w),this.inner.add(w),w}remove(w){w!==void 0&&(w=+w,clearTimeout(w),this.inner.delete(w))}removeAll(){this.inner.forEach(clearTimeout),this.inner.clear()}}const attributeName=(w,{attribute:D})=>{if(D===!0||D===void 0)return String(w).toLowerCase();if(!(D===!1||isSymbol(w)))return D},withSelectorRegex=/^[\s\S]*{[\s\S]*}$/;class GodownElement extends i$1{static define(w=this.elementTagName,D){this.isDefined()||this.godownConfig.define(w,this,D)}static isDefined(){return!!this.getDefined()}static getDefined(){return this.godownConfig.get(this.elementTagName)}static finalize(){super.finalize(),this.elementAttributes=new Map;for(let[w,D]of this.elementProperties.entries()){let O=attributeName(w,D);O&&this.elementAttributes.set(O,w)}}get observedRecord(){let w={};for(let[D,O]of this.constructor.elementAttributes.entries())w[D]=this[O];return w}get _slot(){return this.shadowRoot?this.shadowRoot.querySelector(`slot:not([name])`):null}get _slotAll(){return this.shadowRoot?[...this.shadowRoot.querySelectorAll(`slot`)]:[]}get _slottedAll(){return[...this.querySelectorAll(`[slot]`)]}get _slottedNames(){return this._slottedAll.map(w=>w.getAttribute(`slot`)).filter(w=>w)}getBoundingClientRect(){let w;return this.contents&&(w=this.contentsRoot||this.shadowRoot?.firstElementChild)&&w!==this?w.getBoundingClientRect():super.getBoundingClientRect()}getClientRects(){let w;return this.contents&&(w=this.contentsRoot||this.shadowRoot?.firstElementChild)&&w!==this?w.getClientRects():super.getClientRects()}get stylex(){return this.__stylex.css}set stylex(w){if(w=w.trim(),withSelectorRegex.test(w)||(w=`:host{${w}}`),!this.shadowRoot){this.__stylex.lazy=w;return}this.__stylex.index&&this.shadowRoot.adoptedStyleSheets.splice(this.__stylex.index,1),this.__stylex.css=w,this.__stylex.index=this.adoptStyles(w)}constructor(w){super(),this.events=new Events,this.observers=new Observers,this.timeouts=new Timeouts,this.__stylex={},this.assign={...GodownElement.godownConfig?.assign||{},...w}}connectedCallback(){super.connectedCallback(),this.assign&&(Object.assign(this,this.assign),this.assign=null);let{lazy:w}=this.__stylex;w&&(this.adoptStyles(w),this.__stylex.lazy=``)}disconnectedCallback(){this.events.removeAll(),this.observers.removeAll(),this.timeouts.removeAll()}mount(w){this.firstUpdated(w)}unmount(){this.disconnectedCallback()}remount(w){this.unmount(),this.connectedCallback(),this.mount(w)}deepQuerySelector(w){return deepQuerySelector.call(this,w)}deepQuerySelectorAll(w){return deepQuerySelectorAll.call(this,w)}adoptStyles(...w){if(!this.shadowRoot||!w.length)return;let D=this.shadowRoot.adoptedStyleSheets,O=new CSSStyleSheet;return w.forEach(w=>O.insertRule(w.toString())),D.push(O),D.length-1}dispatchCustomEvent(w,D,O){this.dispatchEvent(new CustomEvent(w,{detail:D,composed:!0,...O}))}}GodownElement.godownConfig=new GodownConfig,__decorate$1([n({type:Boolean,reflect:!0})],GodownElement.prototype,`contents`,void 0),__decorate$1([n({reflect:!0})],GodownElement.prototype,`stylex`,null);const resetStyle=i$4`*,:host{box-sizing:border-box}i{font-style:normal}a{color:currentColor;text-decoration:none}span{white-space:nowrap}svg{-webkit-user-select:none;user-select:none}input{border:0;padding:0;outline:0;font-size:100%;color:currentColor;background:0 0}dl,dd{margin:0}ul{padding:0;margin:0}dialog{border:0;margin:0;padding:0;outline:0}[popover]{border:0;margin:0;padding:0}@supports not selector(:popover-open){[popover]{display:none}}
3
+ `;class GlobalStyle extends GodownElement{}const cssvar=trim(GlobalStyle.godownConfig.prefix,`-`);function scopePrefix(w,D=1){return variablePrefix(cssvar+`-`.repeat(D)+w)}function variablePrefix(w){return r$5(`--${w}`)}const cssGlobalVars={background:scopePrefix(`background`,2),foreground:scopePrefix(`foreground`,2),backgroundClip:scopePrefix(`background-clip`,2),primaryBackground:scopePrefix(`primary`,2),primaryForeground:scopePrefix(`primary-foreground`,2),muted:scopePrefix(`muted`,2),active:scopePrefix(`active`,2),passive:scopePrefix(`passive`,2),input:scopePrefix(`input`,2),radius:scopePrefix(`radius`,2),ringWidth:scopePrefix(`ring-width`,2),ringColor:scopePrefix(`ring-color`,2)};GlobalStyle.styles=[resetStyle,r$5(declareLightDarkColors(`:host`,[[cssGlobalVars.background,[`hsl(0 0% 96%)`,`hsl(0 0% 4%)`]],[cssGlobalVars.foreground,[`hsl(0 0% 4%)`,`hsl(0 0% 96%)`]],[cssGlobalVars.muted,[`hsl(0 0% 88%)`,`hsl(0 0% 18%)`]]],1)),r$5(joinRules({":host":joinDeclarations([[cssGlobalVars.primaryBackground,toVar(cssGlobalVars.foreground)],[cssGlobalVars.primaryForeground,toVar(cssGlobalVars.background)],[cssGlobalVars.active,toVar(cssGlobalVars.primaryBackground)],[cssGlobalVars.passive,toVar(cssGlobalVars.muted)],[cssGlobalVars.backgroundClip,`linear-gradient(to bottom, ${toVar(cssGlobalVars.foreground)}, ${toVar(cssGlobalVars.muted)})`],[cssGlobalVars.ringColor,toVar(cssGlobalVars.passive)],[cssGlobalVars.ringWidth,`.1em`],[cssGlobalVars.radius,`.25em`]])})),i$4`:host([contents]){display:contents}[part=root]{width:100%;height:100%}:host([contents]) [part=root]{height:inherit;width:inherit}:where(:host([contents]) [part=root]){all:inherit;display:revert} `,i$4`:host{border-radius:var(${cssGlobalVars.radius});border-style:none;outline-style:none}`];const outlineRing=({width:w,color:D,inset:O})=>`outline-style:solid;outline-color:${D};outline-width:${w};${O?`outline-offset:calc(-1 * ${w});`:``}`,borderRing=({width:w,color:D})=>`border-style:solid;border-color:${D};border-width:${w};`,shadowRing=({width:w,color:D,inset:O})=>`box-shadow:${O?`inset`:``} 0 0 0 ${w} ${D};`,ringMap={outline:(w,D)=>outlineRing({width:w,color:D,inset:!1}),"outline-inset":(w,D)=>outlineRing({width:w,color:D,inset:!0}),"box-shadow":(w,D)=>shadowRing({width:w,color:D,inset:!1}),shadow:(w,D)=>shadowRing({width:w,color:D,inset:!1}),"box-shadow-inset":(w,D)=>shadowRing({width:w,color:D,inset:!0}),"shadow-inset":(w,D)=>shadowRing({width:w,color:D,inset:!0}),border:(w,D)=>borderRing({width:w,color:D})};class RingBuilder{constructor({selector:w=`:host`,width:D=toVar(cssGlobalVars.ringWidth),color:O=toVar(cssGlobalVars.ringColor),type:F}={}){if(F&&F in ringMap){let U=ringMap[F](D,O);this.css=`${w}{${U}}`}else this.css=``}get styleSheet(){return r$5(this.css).styleSheet}}const ringTypeAttribute=`ring-type`;function __decorate(w,D,O,F){var U=arguments.length,W=U<3?D:F===null?F=Object.getOwnPropertyDescriptor(D,O):F,G;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)W=Reflect.decorate(w,D,O,F);else for(var K=w.length-1;K>=0;K--)(G=w[K])&&(W=(U<3?G(W):U>3?G(D,O,W):G(D,O))||W);return U>3&&W&&Object.defineProperty(D,O,W),W}const protoName$v=`alert`;let Alert=class w extends GlobalStyle{constructor(){super(),this.ringType=`border`,new StyleController(this,()=>new RingBuilder({type:this.ringType}).css)}render(){return x`<div part="root"> <div>${htmlSlot(`prefix`)}</div> <div part="content"> <b part="title">${htmlSlot(`title`,this.title)}</b> ${htmlSlot(``,this.content)} </div> <div>${htmlSlot(`suffix`)}</div> </div>`}static alert(w,D){let O=new this;return Object.assign(O,D),w.appendChild(O),O}};__decorate([n({attribute:ringTypeAttribute})],Alert.prototype,`ringType`,void 0),__decorate([n()],Alert.prototype,`title`,void 0),__decorate([n()],Alert.prototype,`content`,void 0),Alert=__decorate([godown(protoName$v),styles(i$4`:host{background:var(${cssGlobalVars.background});color:var(${cssGlobalVars.foreground})}:host,:where(:host([contents]) [part=root]),b{display:block}[part=root]{padding:1em;display:grid;grid-template-columns:auto 1fr auto}`)],Alert);var Alert$1=Alert;Alert$1.define();const protoName$u=`avatar`;let Avatar=class w extends GlobalStyle{constructor(...w){super(...w),this.name=``,this.round=!1}render(){return x`<div part="root" ${attr(omit(this.observedRecord,`src`))}> ${this._renderAvatar()} </div>`}_renderAvatar(){return this.src?x`<img part="image" src="${this.src}" alt="${this.name}" @error=${this._handleError}/>`:this.name?x`<span part="name">${this.formatName()}</span>`:htmlSlot()}formatName(){return this.name}_handleError(){this.src=void 0}};__decorate([n()],Avatar.prototype,`src`,void 0),__decorate([n()],Avatar.prototype,`name`,void 0),__decorate([n({type:Boolean})],Avatar.prototype,`round`,void 0),Avatar=__decorate([godown(protoName$u),styles(i$4`:host{color:var(${cssGlobalVars.foreground});background:var(${cssGlobalVars.passive});vertical-align:bottom;overflow:hidden;width:2em;height:2em}:host,[part=root]{display:inline-flex}:host([contents]) [part=root]{display:inline-flex;width:inherit;height:inherit}:host([round]){border-radius:50%}[part=image]{width:100%;height:100%;object-fit:cover}[part=root]{position:relative;border-radius:inherit;align-items:center;justify-content:center}`)],Avatar);var Avatar$1=Avatar;Avatar$1.define();const protoName$t=`button`,cssScope$b=scopePrefix(protoName$t);let Button=class w extends GlobalStyle{constructor(...w){super(...w),this.plain=!1,this.disabled=!1,this.active=!1,this.round=!1}render(){return x`<div part="root" ${attr(this.observedRecord)}> ${htmlSlot(``,this.content)} <span part="modal-root"></span> </div>`}focus(){this.disabled||(this.active=!0,super.focus())}blur(){this.active=!1,super.blur()}connectedCallback(){super.connectedCallback(),this.events.add(this,`click`,this._handelClick)}_handelClick(w){if(this.disabled){w.stopPropagation(),w.preventDefault();return}this.plain||this._handleModal(w)}_handleModal(w){let D=document.createElement(`i`),{width:O,height:F}=this.getBoundingClientRect(),{x:U,y:W}=this._root.getBoundingClientRect(),G=`${Math.sqrt(F**2+O**2)*2}px`;D.style.height=G,D.style.width=G,D.style.left=`${w.x-U}px`,D.style.top=`${w.y-W}px`,this._modalRoot.appendChild(D);let K=[{transform:`scale(0) translate(-50%, -50%)`,opacity:.1},{transform:`scale(1) translate(-50%, -50%)`,offset:.8},{opacity:0}];D.animate(K,{duration:800,iterations:1}),D.addEventListener(`animationend`,()=>D.remove(),{once:!0})}};__decorate([n({type:Boolean,reflect:!0})],Button.prototype,`plain`,void 0),__decorate([n({type:Boolean,reflect:!0})],Button.prototype,`disabled`,void 0),__decorate([n({type:Boolean,reflect:!0})],Button.prototype,`active`,void 0),__decorate([n({type:Boolean,reflect:!0})],Button.prototype,`round`,void 0),__decorate([n()],Button.prototype,`content`,void 0),__decorate([queryPart(`modal-root`)],Button.prototype,`_modalRoot`,void 0),__decorate([queryPart(`root`)],Button.prototype,`_root`,void 0),Button=__decorate([godown(protoName$t),styles(i$4`:host(:not([disabled]):active){transform:scale(var(${cssScope$b}--focus-scale))}:host([round]){border-radius:calc(infinity*1px)}:host([disabled]){cursor:not-allowed;filter:brightness(.85)}:host([plain]){${cssScope$b}--gradients:unset;${cssScope$b}--focus-scale:unset}`,i$4`:host{${cssScope$b}--modal-animation-duration:1.5s;${cssScope$b}--focus-scale:.97;${cssScope$b}--deg:45deg;color:var(${cssGlobalVars.primaryForeground});background:var(${cssGlobalVars.primaryBackground});display:inline-block;overflow:hidden;text-align:center;cursor:pointer}[part=root]{padding-block:.25em;padding-inline:1em;position:relative;-webkit-user-select:none;user-select:none;display:inline-flex;align-items:center;justify-content:center}i{position:absolute;inset:0;opacity:0;width:100%;height:100%;border-radius:50%;visibility:visible;pointer-events:none;transform-origin:0 0;background:currentColor}`)],Button);var Button$1=Button;const protoName$s=`badge`;let Badge=class w extends Button$1{constructor(...w){super(...w),this.plain=!0,this.round=!0}};Badge=__decorate([godown(protoName$s),styles(i$4`:host{font-size:.75em}[part=root]{padding:0 .5em}
4
+ `)],Badge);var Badge$1=Badge;Badge$1.define();const defineName=`breath`,cssScope$a=scopePrefix(defineName),splitTextRegexp=/[\s,]+/;let Breath=class w extends GlobalStyle{render(){let w=this.getTexts();return x`<div part="root" ${attr(this.observedRecord)}> ${[w.map(this._renderText),htmlStyle(this._computeStyle(w.length))]} </div>`}_renderText(w){return x`<span class="rel"> <span class="nocolor">${w}</span> <span class="colorful">${w}</span> </span>`}getTexts(){return Array.isArray(this.content)?this.content:(this.content||this.textContent).split(splitTextRegexp).filter(w=>w)}_computeStyle(w){let D=100/2/w,O=this.duration||(w*2+2)*1e3,F=``;for(let D=1;D<=w;D++){let U=-O/w*(w-D+1),W=(D-1)%3+1;F+=`.rel:nth-child(${D}) .colorful{animation-delay:${U}ms;background:var(${cssScope$a}--${D},var(${cssScope$a}--${W}));}`}return`.colorful{animation-duration:${O}ms;}@keyframes colorfulN{0%,${D*3}%{opacity:0;}${D}%,${D*2}%{opacity:1;}}${F}`}};__decorate([n()],Breath.prototype,`content`,void 0),__decorate([n({type:Number})],Breath.prototype,`duration`,void 0),Breath=__decorate([godown(defineName),styles(i$4`:host{${cssScope$a}--deg:60deg;${cssScope$a}--1-1:hsl(0 70% 55%);${cssScope$a}--1-2:hsl(30 90% 60%);${cssScope$a}--2-1:hsl(130 70% 50%);${cssScope$a}--2-2:hsl(180 60% 40%);${cssScope$a}--3-1:hsl(270 80% 55%);${cssScope$a}--3-2:hsl(210 90% 50%);${cssScope$a}--1:linear-gradient(var(${cssScope$a}--deg),var(${cssScope$a}--1-1),var(${cssScope$a}--1-2));${cssScope$a}--2:linear-gradient(var(${cssScope$a}--deg),var(${cssScope$a}--2-1),var(${cssScope$a}--2-2));${cssScope$a}--3:linear-gradient(var(${cssScope$a}--deg),var(${cssScope$a}--3-1),var(${cssScope$a}--3-2))}`,i$4`:host{margin:auto;width:-moz-fit-content;width:fit-content;font-size:2em;align-items:center;direction:ltr}:host,:host([contents]) [part=root]{display:flex}[part=root]{display:contents}::selection{background:0 0}.rel{position:relative;font-weight:800;font-size:inherit;letter-spacing:-.05em} `,i$4`.nocolor,.colorful{padding:0 .05em;box-sizing:border-box;display:inline-block;animation-iteration-count:infinite;color:transparent;-webkit-background-clip:text!important;background-clip:text!important}.colorful{opacity:0;animation-name:colorfulN}.nocolor{position:absolute;top:0;background:var(${cssGlobalVars.backgroundClip})}`)],Breath);var Breath$1=Breath;Breath$1.define(),Button$1.define();const protoName$r=`card`;scopePrefix(protoName$r);let Card=class w extends GlobalStyle{constructor(){super(),this.ringType=`border`,this.footer=!1,this.header=!1,new StyleController(this,()=>new RingBuilder({type:this.ringType}).css)}render(){return x`<div part="root" ${attr(this.observedRecord)}> ${[this.header?htmlSlot(`header`):``,htmlSlot(),this.footer?htmlSlot(`footer`):``]} </div>`}};__decorate([n({attribute:ringTypeAttribute})],Card.prototype,`ringType`,void 0),__decorate([n({type:Boolean})],Card.prototype,`footer`,void 0),__decorate([n({type:Boolean})],Card.prototype,`header`,void 0),Card=__decorate([godown(protoName$r),styles(i$4`:host{background:var(${cssGlobalVars.background});color:var(${cssGlobalVars.foreground});display:block;flex-shrink:0}slot{display:block;padding:1em}[part=root]{border-radius:inherit}[name=footer]{padding-top:0}[name=header]{padding-bottom:0}`)],Card);var Card$1=Card;Card$1.define();const _default$3=icon(`0 0 256 256`)`<path fill="currentColor" d="M165.66 202.34a8 8 0 0 1-11.32 11.32l-80-80a8 8 0 0 1 0-11.32l80-80a8 8 0 0 1 11.32 11.32L91.31 128Z">`,_default$2=icon(`0 0 256 256`)`<path fill="currentColor" d="m181.66 133.66l-80 80a8 8 0 0 1-11.32-11.32L164.69 128L90.34 53.66a8 8 0 0 1 11.32-11.32l80 80a8 8 0 0 1 0 11.32">`,protoName$q=`carousel`;function getWidth(w){return w.getBoundingClientRect().width}let Carousel=class w extends GlobalStyle{constructor(...w){super(...w),this.index=0,this.autoChange=0}render(){return x`<div part="root" ${attr(this.observedRecord)}> <i part="prev" @click="${this.prev}"> ${_default$3()} </i> <div part="move-root">${htmlSlot()}</div> <i part="next" @click="${this.next}"> ${_default$2()} </i> </div>`}connectedCallback(){super.connectedCallback(),this.children.length&&(this.__cloneFirst?.remove(),this.__cloneLast?.remove(),this.__cloneLast=this.firstElementChild.cloneNode(!0),this.__cloneFirst=this.lastElementChild.cloneNode(!0),this.appendChild(this.__cloneLast),this.insertBefore(this.__cloneFirst,this.firstElementChild)),this.observers.add(this,ResizeObserver,()=>{this._offset=this._computeOffset(),this._doTranslateX(`${this._offset}px`,!0)})}async firstUpdated(){await this.updateComplete,this.show(this.index,!0)}attributeChangedCallback(w,D,O){super.attributeChangedCallback(w,D,O),w===`index`&&this.isConnected&&this.show(this.index)}show(w,D){w=this.normalizeIndex(w),this.index=w,this._offset=this._computeOffset(),this._doTranslateX(`${this._offset}px`,D),this.dispatchCustomEvent(`change`,w),this.timeouts.remove(this.intervalID),this.autoChange>0&&(this.intervalID=this.timeouts.add(setInterval(()=>{this.next()},this.autoChange)))}next(){this.index===this.childElementCount-3?(this._doTranslateX(`0`,!0),this.show(0)):this.show(this.index+1)}prev(){this.index===0?(this._doTranslateX(`-${this.childElementCount-1}00%`,!0),this.show(this.children.length-3)):this.show(this.index-1)}_doTranslateX(w,D){this._moveRoot.style.transform=`translateX(${w})`,this._moveRoot.style.transition=D?`none`:``}_computeOffset(){let w=0;for(let D=0;D<=this.index;D++)w-=getWidth(this.children[D]);return w+=(getWidth(this)-getWidth(this.children[this.index+1]))/2,w}normalizeIndex(w){return w<0?0:w>this.children.length-3?this.children.length-3:w}};__decorate([n({type:Number})],Carousel.prototype,`index`,void 0),__decorate([n({type:Number})],Carousel.prototype,`autoChange`,void 0),__decorate([queryPart(`move-root`)],Carousel.prototype,`_moveRoot`,void 0),Carousel=__decorate([godown(protoName$q),styles(i$4`:host{display:block;transition:.3s}[part=root]{direction:ltr;overflow:hidden}[part=root],[part=move-root]{height:100%;width:100%;display:flex;position:relative;transition:inherit}[part=prev],[part=next]{height:100%;width:1.5em;z-index:1;position:absolute;display:flex;align-items:center;justify-content:center;-webkit-user-select:none;user-select:none}[part=prev]{left:0}[part=next]{right:0}slot::slotted(*){flex-shrink:0!important}
5
+ `)],Carousel);var Carousel$1=Carousel;Carousel$1.define();const protoName$p=`chip`,cssScope$9=scopePrefix(protoName$p);let Chip=class w extends GlobalStyle{constructor(...w){super(...w),this.position=`top-right`,this.value=0,this.dot=!1,this.max=99}formatValue(w){return w>this.max?this.max+`+`:w+``}render(){return x`<div part="root" ${attr(this.observedRecord)}> ${htmlSlot()} ${this.value||this.dot?x`<div part="chip">${this.dot?``:this.formatValue(this.value)}</div>`:``} </div>`}};__decorate([n()],Chip.prototype,`position`,void 0),__decorate([n({type:Number})],Chip.prototype,`value`,void 0),__decorate([n({type:Boolean})],Chip.prototype,`dot`,void 0),__decorate([n({type:Number})],Chip.prototype,`max`,void 0),Chip=__decorate([godown(protoName$p),styles(i$4`:host{${cssScope$9}--offset:0%;${cssScope$9}--offset-x:var(${cssScope$9}--offset);${cssScope$9}--offset-y:var(${cssScope$9}--offset)}:host,:host([contents]) [part=root]{display:inline-block}[part=root]{position:relative}[part=chip]{position:absolute;font-size:75%;padding:0 .5em;-webkit-user-select:none;user-select:none;border-radius:calc(infinity*1px);transform:translate(-50%,-50%);color:var(${cssGlobalVars.primaryForeground});background:var(${cssGlobalVars.primaryBackground})}[part=chip]:empty{width:.5em;height:.5em;font-size:100%;padding:0;border-radius:50%}[position^=top] [part=chip]{top:calc(0% + var(${cssScope$9}--offset-y))}[position$=right] [part=chip]{left:calc(100% - var(${cssScope$9}--offset-x))}[position^=bottom] [part=chip]{top:calc(100% - var(${cssScope$9}--offset-y))}[position$=left] [part=chip]{left:calc(0% + var(${cssScope$9}--offset-x))}`)],Chip);var Chip$1=Chip;Chip$1.define();const _default$1=icon(`0 0 256 256`)`<path fill="currentColor" d="m213.66 101.66l-80 80a8 8 0 0 1-11.32 0l-80-80a8 8 0 0 1 11.32-11.32L128 164.69l74.34-74.35a8 8 0 0 1 11.32 11.32">`,protoName$o=`details`,cssScope$8=scopePrefix(protoName$o);let Details=class w extends GlobalStyle{constructor(...w){super(...w),this.open=!1,this.float=!1,this.fill=!1,this.summary=``}render(){return x`<dl part="root" ${attr(this.observedRecord)}> <dt part="title" @click="${()=>this.toggle()}"> <span part="summary">${htmlSlot(`summary`,this.summary)}</span> <span part="icon">${htmlSlot(`icon`,_default$1())}</span> </dt> <dd part="details" @click=${this.fill?()=>this.toggle():null}> <div style="min-height: 0;">${htmlSlot()}</div> </dd> </dl>`}updated(w){let D=w.get(`open`);D!==void 0&&this.dispatchCustomEvent(`change`,D)}toggle(w){this.open=w??!this.open}close(){this.open=!1}show(){this.open=!0}};__decorate([n({type:Boolean,reflect:!0})],Details.prototype,`open`,void 0),__decorate([n({type:Boolean})],Details.prototype,`float`,void 0),__decorate([n({type:Boolean})],Details.prototype,`fill`,void 0),__decorate([n()],Details.prototype,`summary`,void 0),Details=__decorate([godown(protoName$o),styles(i$4`:host{${cssScope$8}--icon-deg-open:0deg;${cssScope$8}--icon-deg-close:90deg;display:block;transition:.3s}[part=root]{position:relative}[part=title]{direction:ltr;height:100%;display:grid;align-items:center;justify-content:space-between;grid-template-columns:auto auto;transition:inherit;overflow:hidden}[part=details]{overflow:hidden;display:grid;grid-template-rows:0fr;transition:inherit}:host([open]) [part=details]{grid-template-rows:1fr}[float] [part=details]{position:absolute;top:100%;width:100%}[part]{transition:inherit;transition-property:transform,grid-template-rows}[part=icon]{display:flex;-webkit-backface-visibility:hidden;backface-visibility:hidden;transform:rotate(var(${cssScope$8}--icon-deg-close))}:host([open]) [part=icon]{transform:rotate(var(${cssScope$8}--icon-deg-open))}`)],Details);var Details$1=Details;Details$1.define();const protoName$n=`dialog`,cssScope$7=scopePrefix(protoName$n);let Dialog=class w extends GlobalStyle{constructor(...w){super(...w),this.open=!1,this.modal=!1,this.__modalInvoke=!1}render(){return x`<div part="root" @click=${this.show}> ${htmlSlot(`trigger`)} </div> <dialog part="dialog" role="dialog"> ${htmlSlot(`dialog`)}${htmlSlot()} </dialog>`}showModal(){this.modal=!0,this.__modalInvoke=!0,this.show()}show(){this.open=!0}close(){this.open=!1}toggle(w){this.open=w??!this.open}updated(w){w.has(`open`)&&(this.open?(this.modal?this._dialog.showModal():this._dialog.show(),this.__submitEvent=this.events.add(this,`submit`,this._handelSubmit),this.__keydownEvent=this.events.add(document,`keydown`,this._handleKeydown.bind(this))):(this.__modalInvoke&&(this.modal=!1,this.__modalInvoke=!1),this._dialog.close(),this.events.remove(this,`submit`,this.__submitEvent),this.events.remove(document,`keydown`,this.__keydownEvent)))}_handleKeydown(w){w.key===`Escape`&&(w.preventDefault(),this.close())}_handelSubmit(w){w.target.method===`dialog`&&(w.preventDefault(),this.close())}};__decorate([n({type:Boolean,reflect:!0})],Dialog.prototype,`open`,void 0),__decorate([n({type:Boolean,reflect:!0})],Dialog.prototype,`modal`,void 0),__decorate([queryPart(`dialog`)],Dialog.prototype,`_dialog`,void 0),Dialog=__decorate([godown(protoName$n),styles(i$4`:host{${cssScope$7}--background-modal:black;${cssScope$7}--opacity-modal:.2;width:-moz-fit-content;width:fit-content;display:block;background:0 0}dialog{position:relative;background:0 0;z-index:1;left:50%;top:50%;position:fixed;transform:translate(-50%,-50%)}::backdrop{background:var(${cssScope$7}--background-modal);opacity:var(${cssScope$7}--opacity-modal)}`)],Dialog);var Dialog$1=Dialog;Dialog$1.define();const protoName$m=`divider`;let Divider=class w extends GlobalStyle{constructor(...w){super(...w),this.vertical=!1}render(){return x`<div part="root"></div> `}};__decorate([n({type:Boolean,reflect:!0})],Divider.prototype,`vertical`,void 0),Divider=__decorate([godown(protoName$m),styles(i$4`:host{width:100%;height:.05em;display:block;background:currentColor;color:var(${cssGlobalVars.passive})}:host([vertical]){width:.05em;height:100%}`)],Divider);var Divider$1=Divider;Divider$1.define();const protoName$l=`dragbox`;let Dragbox=class w extends GlobalStyle{constructor(...w){super(...w),this.__drag=!1}get _offsetParent(){return this.offsetParent??document.body}render(){return x`<div part="root" ${attr(this.observedRecord)} @mousedown="${this._handleDragStart}"> ${htmlSlot()} </div>`}firstUpdated(){this.reset()}_handleDragStart(w){this.__x=w.x,this.__y=w.y;let D=this._offsetParent.getBoundingClientRect(),O=this.getBoundingClientRect();this.__t=O.top-D.top,this.__l=O.left-D.left,this.__drag=!0,this.__handleMouseMove=this.events.add(document,`mousemove`,this._handleDrag.bind(this)),this.__handleMouseLeave=this.events.add(document,`mouseleave`,this._handleDragEnd.bind(this)),this.__handleMouseUp=this.events.add(document,`mouseup`,this._handleDragEnd.bind(this))}_handleDragEnd(){this.__drag=!1,this.events.remove(document,`mousemove`,this.__handleMouseMove),this.events.remove(document,`mouseleave`,this.__handleMouseLeave),this.events.remove(document,`mouseup`,this.__handleMouseUp)}_handleDrag(w){if(!this.__drag)return;let{__x:D,__y:O,__l:F,__t:U,style:W}=this,{height:G,width:K}=this._offsetParent.getBoundingClientRect(),{width:q,height:J}=this.getBoundingClientRect(),Y=w.x-(D-F),X=w.y-(O-U);Y<0?W.left=`0`:Y<K-q?W.left=`${Y}px`:W.left=`${K-q}px`,X<0?W.top=`0`:X<G-J?W.top=`${X}px`:W.top=`${G-J}px`}reset(){let{x:w,y:D,style:O,offsetWidth:F,offsetHeight:U,offsetLeft:W,offsetTop:G}=this,{height:K,width:q}=this._offsetParent.getBoundingClientRect();O.left=w||`0`,O.top=D||`0`,W>q-F&&(O.left=`${q-F}px`),G>K-U&&(O.top=`${K-U}px`)}};__decorate([n()],Dragbox.prototype,`x`,void 0),__decorate([n()],Dragbox.prototype,`y`,void 0),Dragbox=__decorate([godown(protoName$l),styles(i$4`:host{position:absolute;display:block}:host(:active){-webkit-user-select:none;user-select:none}
6
+ `)],Dragbox);var Dragbox$1=Dragbox;Dragbox$1.define();const protoName$k=`flex`;let Flex=class w extends GlobalStyle{constructor(...w){super(...w),this.vertical=!1}render(){return x`<div part="root" ${attr(this.observedRecord)}> ${[htmlSlot(),htmlStyle(joinRules({":host":{gap:this.gap,"flex-flow":this.flexFlow,"flex-direction":this.vertical&&`column`,"align-items":this.items,"justify-content":this.content}}))]} </div>`}};__decorate([n({attribute:`flex-flow`})],Flex.prototype,`flexFlow`,void 0),__decorate([n()],Flex.prototype,`gap`,void 0),__decorate([n()],Flex.prototype,`content`,void 0),__decorate([n()],Flex.prototype,`items`,void 0),__decorate([n({type:Boolean})],Flex.prototype,`vertical`,void 0),Flex=__decorate([godown(protoName$k),styles(i$4`:host,:host([contents]) [part=root]{display:flex}[part=root]{display:contents}
7
+ `)],Flex);var Flex$1=Flex;Flex$1.define();var _Form;const protoName$j=`form`;let Form=_Form=class w extends GlobalStyle{constructor(...w){super(...w),this.name=``,this.nameValue=this.namevalue}get value(){return _Form.buildValue(this._slot.assignedElements())}render(){return htmlSlot()}reset(){this.deepQuerySelectorAll(`*`).forEach(w=>{w.tagName!==this.tagName&&w.reset&&w.reset()})}namevalue(){return[this.name,this.value]}static buildValue(w){let D={};for(let O of w)if(O.tagName===`FORM`)Object.assign(D,Object.fromEntries(new FormData(O).entries()));else if(O.namevalue){let[w,F]=O.namevalue();w&&(D[w]=F)}else if(O.name&&O.value!==void 0)D[O.name]=O.value;else if(O.shadowRoot)for(let w of O.shadowRoot.querySelectorAll(`slot`))Object.assign(D,this.buildValue(w.assignedElements()));return D}};__decorate([n()],Form.prototype,`name`,void 0),Form=_Form=__decorate([godown(protoName$j),styles(i$4`:host{display:block}
8
+ `)],Form);var Form$1=Form;Form$1.define();const toTemplate=w=>isNumerical(w)?`repeat(${w},1fr)`:w,protoName$i=`grid`;let Grid=class w extends GlobalStyle{render(){return x`<div part="root" ${attr(this.observedRecord)}> ${[htmlSlot(),htmlStyle(joinRules({":host":{gap:this.gap,"grid-template-columns":toTemplate(this.columns),"grid-template-rows":toTemplate(this.rows),"place-content":this.content,"place-items":this.items}}))]} </div>`}};__decorate([n()],Grid.prototype,`gap`,void 0),__decorate([n()],Grid.prototype,`columns`,void 0),__decorate([n()],Grid.prototype,`rows`,void 0),__decorate([n()],Grid.prototype,`content`,void 0),__decorate([n()],Grid.prototype,`items`,void 0),Grid=__decorate([godown(protoName$i),styles(i$4`:host,:host([contents]) [part=root]{display:grid}[part=root]{display:contents}
9
+ `)],Grid);var Grid$1=Grid;Grid$1.define();var _Router;const routerTypes={field:`field`,slotted:`slotted`,united:`united`},protoName$h=`router`;let Router=_Router=class w extends GlobalStyle{constructor(...w){super(...w),this.__fieldRoute=new Router$2,this.__slottedRoute=new Router$2,this.__cacheRecord=new Map,this.component=null,this.pathname=location.pathname,this.default=htmlSlot(),this.type=routerTypes.united,this.cache=!1,this.handlePopstate=this.events.add(window,`popstate`,()=>{this.pathname=location.pathname})}get params(){return this.path?parseParams(this.pathname,this.path):{}}set routes(w){this.__routes=w,this.collectFieldRoutes(w)}get routes(){return this.__routes}clear(){this.__cacheRecord.clear()}render(){let w;if(this.cache&&(w=this.__cacheRecord.get(this.pathname))&&(this.component=w.component,this.path=w.path,this.pathname=w.pathname),!w)switch(this.type){case routerTypes.field:this.component=this.fieldComponent();break;case routerTypes.slotted:this.component=this.slottedComponent();break;default:this.component=this.fieldComponent()??this.slottedComponent()}return this.component??this.default}connectedCallback(){super.connectedCallback(),_Router.routerInstances.add(this),this.type!==`field`&&(this.observers.add(this,MutationObserver,this.collectSlottedRoutes,{attributes:!0,attributeFilter:[`slot`],subtree:!0}),this.collectSlottedRoutes())}disconnectedCallback(){super.disconnectedCallback(),_Router.routerInstances.delete(this)}useRouter(){return{pathname:this.pathname,params:this.params,path:this.path,component:this.component}}updated(w){let D=w.has(`pathname`)||w.has(`path`);if(D){let w=this.useRouter();!this.__cacheRecord.has(this.pathname)&&this.path&&this.__cacheRecord.set(this.pathname,w),this.dispatchCustomEvent(`change`,w)}}fieldComponent(w){if(w||=this.__fieldRoute.search(this.pathname)?.pattern,this.path=w,!w)return null;let D=this.routes.find(D=>D.path===w);return D?`render`in D?D.render?.(omit(this.useRouter(),`component`))||null:D.component:null}slottedComponent(w){let D=this._slottedNames;return w||=this.__slottedRoute.search(this.pathname)?.pattern,this.path=w,!w||(this.path=D.find(D=>D===w),!this.path)?null:htmlSlot(this.path)}collectSlottedRoutes(){this.__slottedRoute=new Router$2,this.clear(),this._slottedNames.forEach(w=>{this.__slottedRoute.insert(w)})}collectFieldRoutes(w){this.__fieldRoute=new Router$2,this.clear(),w.forEach(({path:w})=>{this.__fieldRoute.insert(w)})}static updateAll(){this.routerInstances.forEach(w=>{w.handlePopstate()})}search(w){return this.__fieldRoute.search(w)||this.__slottedRoute.search(w)}};__decorate([r$1()],Router.prototype,`component`,void 0),__decorate([r$1()],Router.prototype,`path`,void 0),__decorate([n()],Router.prototype,`pathname`,void 0),__decorate([r$1()],Router.prototype,`default`,void 0),__decorate([n()],Router.prototype,`type`,void 0),__decorate([n({type:Boolean})],Router.prototype,`cache`,void 0),__decorate([r$1()],Router.prototype,`routes`,null),Router=_Router=__decorate([godown(protoName$h),styles(i$4`:host{display:contents}
10
+ `)],Router),Router.routerInstances=new Set;var Router$1=Router;const protoName$g=`link`,linkTypes={push:`push`,replace:`replace`,normal:`normal`,auto:`auto`};let Link=class w extends GlobalStyle{constructor(...w){super(...w),this.type=linkTypes.auto,this.suppress=!1,this.replace=!1,this.target=`_self`,this.state={},this.handleState=()=>{switch(this.type){case linkTypes.auto:case linkTypes.push:if(!this.replace){history.pushState(this.state,``,this.href);break}case linkTypes.replace:history.replaceState(this.state,``,this.href);break}}}get pathname(){return new URL(this.href,location.href).pathname}_handleClick(w){let{state:D,type:O,href:F,pathname:U,suppress:W}=this;if(!F||(this.dispatchCustomEvent(`navigate`,{...this.observedRecord,pathname:U,state:D}),F.startsWith(`#`)||O===linkTypes.normal))return;this.handleState();let G=[...Router$1.routerInstances];!W&&(O!==linkTypes.auto||G.some(w=>w.search(location.pathname)))&&(w.preventDefault(),Router$1.routerInstances.forEach(w=>{w.handlePopstate()}))}render(){return x`<a part="root" ${attr(this.observedRecord)} href="${this.href||E}" target="${this.target}" @click=${this._handleClick}> ${htmlSlot()} </a>`}};__decorate([n()],Link.prototype,`type`,void 0),__decorate([n({type:Boolean})],Link.prototype,`suppress`,void 0),__decorate([n({type:Boolean})],Link.prototype,`replace`,void 0),__decorate([n()],Link.prototype,`href`,void 0),__decorate([n()],Link.prototype,`target`,void 0),Link=__decorate([godown(protoName$g),styles(i$4`:host{display:inline-block;cursor:default}:host([href]){cursor:pointer}a{display:contents}
11
+ `)],Link);var Link$1=Link;const protoName$f=`heading`;let Heading=class w extends Link$1{constructor(...w){super(...w),this.as=`h1`,this.anchor=`#`,this.side=`left`}render(){let w=this.href||(this.id?`#`+this.id:void 0);return x`<a part="root" href="${w||E}"> ${this.wrapHeading(htmlSlot(),w?x`<i part="${tokenList(`anchor`,this.side)}">${this.anchor}</i>`:``)} </a>`}wrapHeading(...w){switch(this.as){case`h2`:return x`<h2>${w}</h2>`;case`h3`:return x`<h3>${w}</h3>`;case`h4`:return x`<h4>${w}</h4>`;case`h5`:return x`<h5>${w}</h5>`;case`h6`:return x`<h6>${w}</h6>`;default:return x`<h1>${w}</h1>`}}};__decorate([n()],Heading.prototype,`as`,void 0),__decorate([n()],Heading.prototype,`anchor`,void 0),__decorate([n()],Heading.prototype,`side`,void 0),Heading=__decorate([godown(protoName$f),styles(i$4`:host{display:block;text-align:start}[part~=anchor]{position:absolute;text-align:center;min-width:1.25em;right:100%}[part~=left][part~=anchor]{right:100%}[part~=right][part~=anchor]{left:100%}h1,h2,h3,h4,h5,h6{width:-moz-fit-content;width:fit-content;position:relative}
12
+ `)],Heading);var Heading$1=Heading;Heading$1.define();const _default=icon(`0 0 256 256`)`<path fill="currentColor" d="M53.92 34.62a8 8 0 1 0-11.84 10.76l19.24 21.17C25 88.84 9.38 123.2 8.69 124.76a8 8 0 0 0 0 6.5c.35.79 8.82 19.57 27.65 38.4C61.43 194.74 93.12 208 128 208a127.1 127.1 0 0 0 52.07-10.83l22 24.21a8 8 0 1 0 11.84-10.76Zm47.33 75.84l41.67 45.85a32 32 0 0 1-41.67-45.85M128 192c-30.78 0-57.67-11.19-79.93-33.25A133.2 133.2 0 0 1 25 128c4.69-8.79 19.66-33.39 47.35-49.38l18 19.75a48 48 0 0 0 63.66 70l14.73 16.2A112 112 0 0 1 128 192m6-95.43a8 8 0 0 1 3-15.72a48.16 48.16 0 0 1 38.77 42.64a8 8 0 0 1-7.22 8.71a6 6 0 0 1-.75 0a8 8 0 0 1-8-7.26A32.09 32.09 0 0 0 134 96.57m113.28 34.69c-.42.94-10.55 23.37-33.36 43.8a8 8 0 1 1-10.67-11.92a132.8 132.8 0 0 0 27.8-35.14a133.2 133.2 0 0 0-23.12-30.77C185.67 75.19 158.78 64 128 64a118.4 118.4 0 0 0-19.36 1.57A8 8 0 1 1 106 49.79A134 134 0 0 1 128 48c34.88 0 66.57 13.26 91.66 38.35c18.83 18.83 27.3 37.62 27.65 38.41a8 8 0 0 1 0 6.5Z">`,inputStyle=i$4`:host([disabled]){cursor:not-allowed;filter:brightness(.85)}input:disabled{cursor:inherit}input::-ms-reveal,input::-ms-clear{display:none}
13
+ `;let SuperInput=class w extends GlobalStyle{constructor(...w){super(...w),this.autofocus=!1,this.ringType=`border`,this.disabled=!1,this.compositing=!1,this.makeId=Math.random().toString(36).slice(1),this.nameValue=this.namevalue}get observedRecord(){return omit(super.observedRecord,`default`,`value`)}set defaultValue(w){this.default=w}get defaultValue(){return this.default}namevalue(){return[this.name,this.value]}reset(){this.value=this.default,this._input.value=this.default}_handleInput(w){w.stopPropagation(),!this.compositing&&(this.value=w.target.value?.trim(),this.dispatchCustomEvent(`input`,this.value,{bubbles:!0}))}_handleChange(w){this.dispatchCustomEvent(`change`,this.value)}connectedCallback(){super.connectedCallback(),this._connectedInit()}_connectedInit(){this.default??=this.value||``,this.value??=this.default}_compositionInit(){this._input&&(this.events.add(this._input,`compositionstart`,()=>this.compositing=!0),this.events.add(this._input,`compositionend`,w=>{this.compositing=!1,this._handleInput(w)}))}focus(w){this._input?.focus(w)}firstUpdated(){this._compositionInit()}_renderPrefix(){return x`<i part="prefix">${htmlSlot(`prefix`)}</i>`}_renderSuffix(){return x`<i part="suffix">${htmlSlot(`suffix`)}</i>`}};__decorate([n()],SuperInput.prototype,`autocomplete`,void 0),__decorate([n({attribute:ringTypeAttribute})],SuperInput.prototype,`ringType`,void 0),__decorate([n({type:Boolean,reflect:!0})],SuperInput.prototype,`disabled`,void 0),__decorate([n({reflect:!0})],SuperInput.prototype,`placeholder`,void 0),__decorate([n({reflect:!0})],SuperInput.prototype,`name`,void 0),__decorate([n()],SuperInput.prototype,`value`,void 0),__decorate([n()],SuperInput.prototype,`default`,void 0),__decorate([queryPart(`input`)],SuperInput.prototype,`_input`,void 0),SuperInput=__decorate([styles(inputStyle)],SuperInput);const protoName$e=`input`;let Input=class w extends SuperInput{constructor(){super(),this.type=`text`,this.variant=`default`,new StyleController(this,()=>new RingBuilder({type:this.ringType}).css+(this.variant===`outline`?`:host{${cssGlobalVars.ringColor}:currentColor}`:``))}render(){return x`<label part="root" ${attr(this.observedRecord)}> ${[this._renderPrefix(),x`<input part="input" type="${this.type}" .value="${this.value}" ?autofocus="${this.autofocus}" ?disabled="${this.disabled}" autocapitalize="${this.autocapitalize||E}" autocomplete="${this.autocomplete||E}" placeholder="${this.placeholder||E}" @input="${this._handleInput}" @change="${this._handleChange}"/>`,this._renderSuffix()]} </label>`}_renderSuffix(){let w=`password`;return this.type===w?x`<i part="suffix" @mousedown="${()=>this._changeInputType(`text`)}" @mouseup="${()=>this._changeInputType(w)}" @mouseleave="${()=>this._changeInputType(w)}"> ${htmlSlot(`suffix`,_default())} </i>`:super._renderSuffix()}_changeInputType(w){this._input&&(this._input.type=w)}};__decorate([n({reflect:!0})],Input.prototype,`type`,void 0),__decorate([n()],Input.prototype,`variant`,void 0),__decorate([queryPart(`input`)],Input.prototype,`_input`,void 0),Input=__decorate([godown(protoName$e),styles(i$4`:host{display:block;${cssGlobalVars.input}-icon-color:gray}:host(:focus-within),:host(:active){${cssGlobalVars.ringColor}:currentColor;${cssGlobalVars.input}-icon-color:currentColor}[part=root]{padding-inline:.75em;padding-block:.5em;display:flex;position:relative;align-items:center;border-radius:inherit}[part=input]{width:100%;height:100%;flex-grow:1}[part=prefix],[part=suffix]{height:100%;display:flex;align-items:center;justify-content:center;color:var(${cssGlobalVars.input}-icon-color)}[part=suffix] slot svg{margin-inline-start:.25em}[part=prefix] slot svg{margin-inline-end:.25em}`)],Input);var Input$1=Input;Input$1.define();const protoName$d=`layout`;let Layout=class w extends GlobalStyle{constructor(...w){super(...w),this.sticky=!1}render(){return x`<div part="root" ${attr(this.observedRecord)}> <header part="header">${htmlSlot(`header`)}</header> <main part="main">${htmlSlot()}</main> <footer part="footer">${htmlSlot(`footer`)}</footer> </div>`}};__decorate([n({type:Boolean})],Layout.prototype,`sticky`,void 0),Layout=__decorate([godown(protoName$d),styles(i$4`:host{width:100%;height:100%;min-height:100%;flex-direction:column;grid-template-rows:auto 1fr auto}:host,:host([contents]) [part=root]{display:flex}[part=root]{display:contents}[part=main]{width:100%;flex:1}[part=header],[part=footer]{flex-shrink:0;width:100%}[sticky] header{position:sticky;top:0}
14
+ `)],Layout);var Layout$1=Layout;Layout$1.define(),Link$1.define();function memoize(w){let D,O=function(...F){return D=w.apply(this,F),O=()=>D,D};return O}const POPOVER$1=`popover`,supportPopover=()=>Object.hasOwn(HTMLElement.prototype,POPOVER$1),getPopoverAttribute=w=>w.getAttribute(POPOVER$1),shimHide=w=>{w.style.display=`none`},standardHide=w=>{getPopoverAttribute(w)===null?shimHide(w):w.hidePopover()},hidePopover=memoize(w=>supportPopover()?standardHide(w):shimHide(w)),shimShow=w=>{if(w.style.display=`block`,getPopoverAttribute(w)!==`manual`){let D=`click`,O=F=>{w.contains(F.target)||(w.dispatchEvent(new Event(`toggle`,{bubbles:!0,composed:!0,newState:`closed`})),hidePopover(w),document.removeEventListener(D,O))};document.addEventListener(D,O)}},standardShow=w=>{getPopoverAttribute(w)===null?shimShow(w):w.showPopover()},showPopover=memoize(function(w){return supportPopover()?standardShow(w):shimShow(w)}),POPOVER=`popover`,protoName$c=POPOVER;let Popover$1=class w extends GlobalStyle{constructor(){super(),this.anchorName=`--${POPOVER}-${Math.random().toString(36).slice(2)}`,this.open=!1,this.action=`show`,this.span=`span`,this.position=`bottom`,new StyleController(this,()=>joinRules({"[part=root],slot:not([name])::slotted(*)":{"anchor-name":this.anchorName},"[part=popover]":{"position-anchor":this.anchorName,"position-area":this.resolveArea()}}))}render(){return x`<div part="root"> <div part="trigger" @click=${this._handleClick}> ${htmlSlot()} </div> <div part="popover" popover="manual"> ${htmlSlot(`popover`)} </div> </div>`}_handleClick(){let{action:w}=this;switch(w){case`show`:case`hide`:case`toggle`:this[w]()}}show(){this.toggle(!0)}hide(){this.toggle(!1)}toggle(w){this.open=w??!this.open}updated(w){w.has(`open`)&&this._openChange()}_openChange(){let{open:w}=this;if(w){showPopover.call(this,this._popover);let w=D=>{this.contains(D.target)||(this.events.remove(document,`click`,w),this.open=!1)};this.events.add(document,`click`,w)}else hidePopover(this._popover);this.dispatchCustomEvent(`toggle`,w)}resolveArea(){let w=this.position.split(`-`),D=this.span===`spread`?`span-${w[0]}`:w[0];if(w.length<2)return`${D} center`;let O=this.span===`isolated`?w[1]:`span-${w[1]}`;return`${D} ${O}`}};__decorate([n({type:Boolean,reflect:!0})],Popover$1.prototype,`open`,void 0),__decorate([n()],Popover$1.prototype,`action`,void 0),__decorate([n()],Popover$1.prototype,`span`,void 0),__decorate([n()],Popover$1.prototype,`position`,void 0),__decorate([queryPart(POPOVER)],Popover$1.prototype,`_popover`,void 0),Popover$1=__decorate([godown(protoName$c),styles(i$4`:host{display:inline-block}[part=trigger]{display:contents}[part=root]{display:inherit}[part=popover]{inset:unset;z-index:1;overflow:visible;position:absolute;position-try-fallbacks:flip-block}
15
+ `)],Popover$1),Popover$1.define();var Popover=Popover$1;const protoName$b=`progress`;let Progress=class D extends GlobalStyle{constructor(...w){super(...w),this.max=1,this.min=0}render(){let D=20,O;if(!isNullable(this.value)){let w=new Ranger(this.min,this.max),F=+this.value-this.min;D=F/w.diff*100,O=`static`}return x`<div part="root" ${attr(this.observedRecord)} class="${O}"> <i part="value" style="width:${D}%;"></i> </div>`}};__decorate([n({type:Number})],Progress.prototype,`max`,void 0),__decorate([n({type:Number})],Progress.prototype,`min`,void 0),__decorate([n({type:Number})],Progress.prototype,`value`,void 0),Progress=__decorate([godown(protoName$b),styles(i$4`:host{width:100%;height:.5em;border-radius:.25em;background:var(${cssGlobalVars.passive});color:var(${cssGlobalVars.active})}:host,[part=root]{display:block}[part=root]{z-index:1;position:relative;border-radius:inherit;overflow:hidden}[part=value]{position:absolute;z-index:2;top:0;left:0;height:100%;border-radius:inherit;transition:all .3s;animation:progress 1.8s ease-in-out infinite alternate;background:currentColor}@keyframes progress{0%{left:0}to{left:80%}}.static [part=value]{animation:none}`)],Progress);var Progress$1=Progress;Progress$1.define();const protoName$a=`range`,cssScope$6=scopePrefix(protoName$a);let Range=class D extends SuperInput{constructor(...w){super(...w),this.min=0,this.max=100,this.vertical=!1,this.__focusStack=[]}get range(){return Array.isArray(this.value)}get rangeValue(){return this.range?this.value:[this.value]}padValue(w,D=0){let{rangeValue:O}=this,F=w-O.length;return F>0?Array(F).fill(D).concat(O):O}attributeChangedCallback(w,D,O){super.attributeChangedCallback(w,D,O),(w===`max`||w===`min`||w===`step`)&&(this._ranger=new Ranger(this.min,this.max,this.step))}get observedRecord(){return omit(super.observedRecord,ringTypeAttribute)}render(){let w=this.padValue(2),D=Math.min(...w),O=Math.max(...w),F=this._ranger.diff;return x`<div part="root" ${attr(this.observedRecord)} @mousedown="${this.disabled?null:this._handleMousedownRoot}" style="${joinDeclarations([[`--from`,`${(D-this.min)/F*100}%`],[`--to`,`${(O-this.min)/F*100}%`],...w.map((w,D)=>[`--handle-${D}`,`${(w-this.min)/F*100}%`])])}"> <div part="track"></div> ${loop(this.rangeValue.length,w=>this._renderHandle(w))} </div>`}_renderHandle(w){let{disabled:D,range:O,rangeValue:F}=this,U=!O||O&&w===F.length-1&&F.length===1;return x`<i tabindex="0" part="${tokenList(`handle`,`handle-${w}`)}" @mousedown="${D?null:this.createMouseDown(w)}" style="${joinDeclarations({"z-index":this.__focusStack.indexOf(w)+1,"--handle":`var(--${U?`to`:`handle-${w}`})`})}"></i>`}focusHandle(w){this.lastFocus=w;let D=this.__focusStack.indexOf(w);D!==-1&&this.__focusStack.splice(D,1),this.__focusStack.push(w);let O=this._handles.item(w);O?.focus(),this.__keydownEvent||=this.events.add(document,`keydown`,this.createKeydownEvent(w))}blurHandle(){this.lastFocus=void 0,this.__keydownEvent=this.events.remove(document,`keydown`,this.__keydownEvent)}createKeydownEvent(w){return D=>{let{rangeValue:O,step:F}=this;O.length<2&&(w=0);let U=O[w];D.key===`ArrowLeft`||D.key===`ArrowDown`?(D.preventDefault(),this.createSetValue(w)(U-F)):(D.key===`ArrowRight`||D.key===`ArrowUp`)&&(D.preventDefault(),this.createSetValue(w)(U+F))}}createMouseDown(w){return D=>{this.focusHandle(w),this.createMousedownListener(this.createSetValue(w))(D)}}createSetValue(w){return D=>{let O=this._ranger.normalize(D),F=O;this.range&&(F=[...this.value],F[w]=O),this.value=F,this.dispatchCustomEvent(`change`,this.value)}}_computeValue({clientX:w,clientY:D}){let{top:O,left:F,height:U,width:W}=this._root.getBoundingClientRect();return this._ranger.present(this.vertical?(D-O)/U:(w-F)/W)}_handleMousedownRoot(w){let D=this._computeValue(w),O=this.range?this.rangeValue.reduce((w,O,F)=>{let U=Math.abs(D-O),W=Math.abs(D-this.rangeValue[w]);return U<W?F:w},0):0,F=this.createSetValue(O);F(D),this.createMousedownListener(F)(w),this.focusHandle(O)}createMousedownListener(w){return D=>{D.preventDefault(),D.stopPropagation();let O=this.createMousemoveListener(w);this.events.add(document,`mousemove`,O);let F=()=>{this.events.remove(document,`mousemove`,O),this.events.remove(document,`mouseup`,F)};this.events.add(document,`mouseup`,F)}}createMousemoveListener(w){return D=>{let O=this._computeValue(D);O===this._ranger.restrict(O)&&w?.call(this,O)}}_connectedInit(){this._ranger=new Ranger(this.min,this.max,this.step);let D=this._ranger.diff;this.step||=D/100,isNullable(this.value)&&(isNullable(this.default)?this.value=Math.round(D/2/this.step)*this.step:this.value=this.default),this.default??=this.value}reset(){this.value=this.default}sort(){return this.value=this.toSorted()}toSorted(){return this.range?[...this.value].sort((w,D)=>w-D):this.value}};__decorate([n({type:Number})],Range.prototype,`min`,void 0),__decorate([n({type:Number})],Range.prototype,`max`,void 0),__decorate([n({type:Number})],Range.prototype,`step`,void 0),__decorate([n({type:Boolean,reflect:!0})],Range.prototype,`vertical`,void 0),__decorate([n({type:Array})],Range.prototype,`value`,void 0),__decorate([n({type:Array})],Range.prototype,`default`,void 0),__decorate([queryPart(`root`)],Range.prototype,`_root`,void 0),__decorate([r(`[part=handle]`)],Range.prototype,`_handles`,void 0),__decorate([r$1()],Range.prototype,`lastFocus`,void 0),Range=__decorate([godown(protoName$a),styles(i$4`:host{${cssScope$6}--track-width:.5em;${cssScope$6}--handle-scale:1;${cssScope$6}--track-background:var(${cssGlobalVars.active});background:var(${cssGlobalVars.passive});width:100%;display:block;height:var(${cssScope$6}--track-width)}:host([contents]) [part=root]{width:inherit}:host([vertical]){height:100%;width:-moz-fit-content;width:fit-content}[part=root]{min-height:inherit;position:relative;border-radius:inherit;--from:0%;--to:50%}[part=track]{height:100%;min-height:inherit;display:flex;position:absolute;pointer-events:none;border-radius:inherit;justify-content:space-between;left:min(var(--from),var(--to));background:var(${cssScope$6}--track-background);width:max(calc(var(--to) - var(--from)),calc(var(--from) - var(--to)))}[part~=handle]{width:1em;height:1em;display:flex;align-items:center;justify-content:center;-webkit-user-select:none;user-select:none;position:absolute;border-radius:50%;transform-origin:0 25%;outline:0;border-style:solid;border-width:.1em;transform:scale(var(${cssScope$6}--handle-scale)) translate(-50%,-25%);background:var(${cssGlobalVars.background});border-color:currentColor}`,i$4`[vertical]{height:inherit;width:var(${cssScope$6}--track-width)}[vertical] i{transform:translate(-25%,-50%)}[vertical] [part=track]{width:100%;height:max(calc(var(--to) - var(--from)),calc(var(--from) - var(--to)));top:min(var(--from),var(--to));left:0}`,i$4`[part~=handle]{left:var(--handle);top:0}[vertical] [part~=handle]{top:var(--handle);left:0} `)],Range);var Range$1=Range;Range$1.define();const protoName$9=`rotate`,cssScope$5=scopePrefix(protoName$9);let Rotate=class w extends GlobalStyle{render(){return x`<div part="root"> <div part="slot" @mousemove="${this._handleRotate}"> ${htmlSlot()} </div> <i @mouseleave="${this.reset}"></i> </div>`}reset(){this._root.style.removeProperty(`transform`),this._root.style.removeProperty(`transition`)}_handleRotate(w){let{rotateX:D,rotateY:O}=this._computeOffset(w);this._root.style.setProperty(`transform`,`rotateX(${D}rad) rotateY(${O}rad)`),this._root.style.setProperty(`transition`,`0s`)}_computeOffset(w){let{left:D,top:O,width:F,height:U}=this._root.getBoundingClientRect(),{clientX:W,clientY:G}=w,K=W-D,q=G-O,J=-(q-U/2)/U/2,Y=(K-F/2)/F/2;return{rotateX:J,rotateY:Y}}};__decorate([queryPart(`root`)],Rotate.prototype,`_root`,void 0),Rotate=__decorate([godown(protoName$9),styles(i$4`:host{display:block;width:-moz-fit-content;width:fit-content;transition:all .5s ease-in-out;${cssScope$5}--offset:.5em}div{position:relative;transition:inherit;transition-property:transform}i{width:100%;height:100%;position:absolute;top:0;box-sizing:content-box;padding:var(${cssScope$5}--offset);margin:calc(-1*var(${cssScope$5}--offset))}[part=slot]{z-index:2}`)],Rotate);var Rotate$1=Rotate;Rotate$1.define(),Router$1.define();const supportsPositionArea=memoize(()=>CSS.supports(`position-area:top`));function updateSelected(w,D){if(w){let O=`selected`;D?w.setAttribute(O,``):w.removeAttribute(O)}}const protoName$8=`select`;let Select=class w extends Input$1{constructor(...w){super(...w),this.multiple=!1,this.noEdit=!1,this.values=[],this.optionsVisible=!1}render(){let w=this.noEdit||this.disabled;return x`<label part="root" ${attr(this.observedRecord)}> ${[this._renderPrefix(),this.noEdit?x`<input style="position: absolute;inset: 0;opacity: 0;"/> `:``,x`<input part="input" .value="${this.text}" ?autofocus="${this.autofocus}" ?disabled="${w}" autocapitalize="${this.autocapitalize||E}" autocomplete="${this.autocomplete||E}" placeholder="${this.placeholder||E}" @input="${w?null:this._handleInput}" @change="${w?null:this._handleChange}"/>`,this._renderSuffix()]} <div part="popover" popover="${supportsPositionArea()?`manual`:E}"> ${htmlSlot()} </div> </label>`}_renderSuffix(){return x`<i part="suffix">${htmlSlot(`suffix`,_default$1())}</i>`}firstUpdated(){this.events.add(this._slot,`click`,w=>{let{target:D}=w;if(D.tagName!==`OPTION`)return;w.preventDefault();let{label:O,value:F}=D,U=this.select(F,O);this.multiple||(updateSelected(this.lastChecked,0),this.hideOptions()),updateSelected(D,U),this.lastChecked=D})}_connectedInit(){this.default=this.value??=``,this.defaultText=this.text??=``,this.events.add(this,`focus`,this.showOptions)}reset(){this.value=this.default,this.text=this.defaultText}select(w,D){D||=w;let O=0,F=this.values.findIndex(D=>D.value===w);return F>-1?this.values.splice(F,1):(this.values.push({value:w,label:D}),O=1),this.checkValues(),this.value=this.values.map(w=>w.value).join(`,`),this.text=this.values.map(w=>w.label).join(`, `),this.dispatchCustomEvent(`select`,this.value),O}checkValues(){!this.multiple&&this.values.length>1&&(this.values.splice(0,this.values.length-1),this.requestUpdate())}showOptions(){if(this.optionsVisible)return;showPopover(this._popover);let w=D=>{this.contains(D.target)||(this.hideOptions(),this.events.remove(document,`click`,w))};this.events.add(document,`click`,w),this.optionsVisible=!0}hideOptions(){this.optionsVisible&&(hidePopover(this._popover),this.optionsVisible=!1)}focus(w){super.focus(),this._input.focus(w),this.showOptions()}blur(){super.blur(),this._input.blur(),hidePopover(this._popover)}};__decorate([n()],Select.prototype,`text`,void 0),__decorate([n({type:Boolean})],Select.prototype,`multiple`,void 0),__decorate([n({type:Boolean})],Select.prototype,`noEdit`,void 0),__decorate([n({type:Array})],Select.prototype,`values`,void 0),__decorate([queryPart(`popover`)],Select.prototype,`_popover`,void 0),Select=__decorate([godown(protoName$8),styles(i$4`[part=root]{position:relative;anchor-name:--select}label{display:contents}[part=popover]{border:0;width:100%;background:0 0;position-anchor:--select;position-area:bottom center;position-try-fallbacks:flip-block}[part=input]{text-overflow:ellipsis}@supports not (position-area:top){[part=popover]{left:0;top:100%;display:none;position:absolute}}
16
+ `)],Select);var Select$1=Select;Select$1.define();const protoName$7=`skeleton`,cssScope$4=scopePrefix(protoName$7);let Skeleton=class w extends GlobalStyle{constructor(...w){super(...w),this.loading=!0}render(){return this.loading?x`<div part="root">${htmlSlot(`loading`)}</div>`:htmlSlot()}};__decorate([r$1()],Skeleton.prototype,`loading`,void 0),Skeleton=__decorate([godown(protoName$7),styles(i$4`:host{${cssScope$4}--from:var(${cssGlobalVars.background});${cssScope$4}--to:var(${cssGlobalVars.passive});${cssScope$4}--deg:95deg;${cssScope$4}--duration:2s;height:2em;width:100%;flex-shrink:0;overflow:hidden;background-color:transparent;background-size:200% 100%;background-image:linear-gradient(var(${cssScope$4}--deg),var(${cssScope$4}--from) 36%,var(${cssScope$4}--to) 50%,var(${cssScope$4}--from) 64%);animation:_ var(${cssScope$4}--duration) ease-in-out infinite none running}@keyframes _{0%{background-position:150%center}to{background-position:-50%center}}[part=root]{display:contents}:host,:host([contents]) [part=root]{display:block}`)],Skeleton);var Skeleton$1=Skeleton;Skeleton$1.define();const protoName$6=`split`,cssScope$3=scopePrefix(protoName$6);let Split=class w extends SuperInput{constructor(){super(),this.len=6,this.index=-1,this.current=-1,this.currentValue=[],new StyleController(this,()=>new RingBuilder({selector:`[part=input-box]`,type:this.ringType}).css)}get observedRecord(){return omit(super.observedRecord,ringTypeAttribute)}render(){return x`<div part="root" ${attr(this.observedRecord)}> ${loop(this.len,w=>x`<span part="input-box" ring-type="${this.ringType}" class="${tokenList({focus:this.current===w})}" @click="${this.disabled?null:()=>this.focusAt(w)}"> ${this.currentValue[w]} </span>`)} <input part="input" @blur=${this.blur} @input="${this._handleInput}" @change="${this._handleChange}" .value="${this.value.padStart(this.len,` `)}"/> </div>`}connectedCallback(){super.connectedCallback(),this.reset()}_handleInput(w){w.stopPropagation(),!this.compositing&&(this.fillInput(w.data),this.value=this.currentValue.join(``),this.dispatchCustomEvent(`input`,this.value,{bubbles:!0}))}fillInput(w){if(w===null){if(this.currentValue[this.current]!==null)this.currentValue[this.current]=null;else{this.currentValue[this.current-1]=null;let w=this.currentValue.findLastIndex(w=>w!==null);this.current=this.current-1<0?w<0?0:w:this.current-1}return}let D=w.length>1;if(this.currentValue[this.current]=w[0],this.current+1>=this.len?(this.current=this.currentValue.indexOf(null),this.current===-1&&this.blur()):this.current+=1,D){let D=w.slice(1);D&&this.fillInput(D)}}focus(){this.focusAt(this.current),super.focus()}focusAt(w){this.current=w,this._input.focus()}blur(){this._input.blur(),this.current=-1,super.blur()}reset(){this.current=-1,this.value=this.default,this.currentValue=this.value.split(``).concat(Array(this.len-this.value.length).fill(null)),this.index>-1&&(this.current=this.index)}};__decorate([n({type:Number})],Split.prototype,`len`,void 0),__decorate([n({type:Number})],Split.prototype,`index`,void 0),__decorate([r$1()],Split.prototype,`current`,void 0),__decorate([r$1()],Split.prototype,`currentValue`,void 0),Split=__decorate([godown(protoName$6),styles(i$4`:host{display:block;border-radius:.1em;width:-moz-fit-content;width:fit-content;${cssScope$3}--size:2em;${cssScope$3}--gap:.25em}[part=root]{gap:var(${cssScope$3}--gap);position:relative;vertical-align:top;display:flex;justify-content:space-between;border-radius:inherit}[part=input-box]{width:var(${cssScope$3}--size);height:var(${cssScope$3}--size);vertical-align:top;border-radius:inherit;display:inline-flex;align-items:center;justify-content:center}[part=input]{width:100%;height:100%;opacity:0;background:0 0;position:absolute;z-index:-1}.focus,[part=input-box]:active{${cssGlobalVars.ringColor}:var(${cssGlobalVars.active})}`)],Split);var Split$1=Split;Split$1.define();const protoName$5=`switch`,cssScope$2=scopePrefix(protoName$5);let Switch=class w extends SuperInput{constructor(...w){super(...w),this.default=!1,this.value=!1}set checked(w){this.value=w}get checked(){return this.value}get observedRecord(){return omit(super.observedRecord,ringTypeAttribute)}render(){return x`<div part="root" ${attr(this.observedRecord)} class="round"> <input part="input" type="checkbox" ?disabled="${this.disabled}" ?checked="${this.value}" @change="${this._handleChange}"/> <span part="handle"></span> </div>`}reset(){this.value=this.default,this._input.checked=this.value}_connectedInit(){this.default?this.value=!0:this.value&&(this.value=!0,this.default=!0)}_handleChange(){let{checked:w}=this._input;this.value=w,this.dispatchCustomEvent(`change`,this.value)}};__decorate([n({type:Boolean})],Switch.prototype,`default`,void 0),__decorate([n({type:Boolean,attribute:`checked`,reflect:!0})],Switch.prototype,`value`,void 0),Switch=__decorate([godown(protoName$5),styles(i$4`:host,:host([contents]) [part=root]{display:inline-block}:host{${cssScope$2}-width:3em;${cssScope$2}-height:calc(var(${cssScope$2}-width)/2);${cssScope$2}-handle-size:1.25em;${cssScope$2}-handle-space:calc(var(${cssScope$2}-width)/4 - var(${cssScope$2}-handle-size)/2);width:var(${cssScope$2}-width);height:var(${cssScope$2}-height);border-radius:calc(var(${cssScope$2}-height)/2);background:var(${cssGlobalVars.passive});vertical-align:bottom;transition:.2s ease-in-out;transition-property:background,left}:host([checked]){background:var(${cssGlobalVars.active})}[part=root]{display:flex;align-items:center;position:relative;transition:inherit}[part=handle]{display:flex;align-items:center;justify-content:center;position:absolute;transition:inherit;left:0;top:50%;pointer-events:none;border-radius:100%;background:var(${cssGlobalVars.background});width:var(${cssScope$2}-handle-size);height:var(${cssScope$2}-handle-size);transform:translateY(-50%) translateX(var(${cssScope$2}-handle-space))}:host([checked]) [part=handle]{left:50%}[part=input]{opacity:0;width:100%;height:100%}`)],Switch);var Switch$1=Switch;Switch$1.define();const protoName$4=`text`;let Text=class w extends GlobalStyle{constructor(...w){super(...w),this.underline=`none`,this.nowrap=!1,this.italic=!1,this.truncate=!1,this.clip=!1}render(){return x`<p part="root">${htmlSlot()}</p>`}};__decorate([n({converter:{fromAttribute(w){return w===``?!0:w},toAttribute(w){return w===!1?null:w===!0?``:w}},reflect:!0})],Text.prototype,`underline`,void 0),__decorate([n({type:Boolean,reflect:!0})],Text.prototype,`nowrap`,void 0),__decorate([n({type:Boolean,reflect:!0})],Text.prototype,`italic`,void 0),__decorate([n({type:Boolean,reflect:!0})],Text.prototype,`truncate`,void 0),__decorate([n({type:Boolean,reflect:!0})],Text.prototype,`clip`,void 0),Text=__decorate([godown(protoName$4),styles(i$4`:host([clip]){background:var(${cssGlobalVars.backgroundClip});display:inline-block;color:transparent;-webkit-text-fill-color:transparent;background-clip:text;-webkit-background-clip:text}:host([nowrap]){white-space:nowrap}:host([italic]){font-style:italic}:host([truncate]),:host([truncate]) ::slotted(*){max-width:100%;overflow:hidden;text-overflow:ellipsis}:host([strikethrough]){text-decoration:line-through}:host([underline=""]),:host([underline="always"]),:host(:hover[underline="hover"]),:host(:active[underline="active"]),:host(:focus[underline="focus"]){text-decoration:underline}`)],Text);var Text$1=Text;Text$1.define();const protoName$3=`tabs`,cssScope$1=scopePrefix(protoName$3),hoverToken=`hover`;let Tabs=class w extends GlobalStyle{constructor(){super(),this.ringType=`border`,this.beginning=`selected`,this.indicator=`background`,this.index=0,new StyleController(this,()=>new RingBuilder({type:this.ringType}).css)}render(){return x`<ul part="root" ${attr(this.observedRecord)} @mouseleave="${this._handleMouseLeave}"> ${this.tabs?.map((w,D)=>x`<li part="${tokenList(`item`,this.index===D&&`selected`)}" @mouseenter=${()=>{this.move(this.previousIndex,D),this.previousIndex=D}} @click=${()=>this.select(D)}> ${htmlSlot(w,w)} <div part="indicator"></div> </li>`)} </ul>`}connectedCallback(){super.connectedCallback(),this.previousIndex=this.beginning===`selected`?this.index:-1}_handleMouseLeave(){let w=this._items[this.previousIndex];w&&w.part.remove(hoverToken),this.previousIndex=this.beginning===`selected`?this.index:-1}move(w,D){if(w===D)return;let{_items:O,_indicators:F}=this,U=O[D];if(!U)return;U.part.add(hoverToken);let W=O[w];if(!W||(W.part.remove(hoverToken),this.beginning===`none`))return;let G=F[D],K=F[w];if(!G||!K)return;let{x:q,y:J,width:Y}=K.getBoundingClientRect(),{x:X,y:sa}=G.getBoundingClientRect(),ca=q-X,la=J-sa,{style:Z}=G,{style:Q}=K;Z.transform=`translate3d(${ca}px,${la}px,0)`,Z.width=`${Y}px`,Z.transition=Q.transition=`none`,G.getBoundingClientRect(),Z.width=Z.transform=Z.transition=Q.transition=``}select(w){let{index:D,previousIndex:O}=this;this.move(O,w),w!==D&&(this.previousIndex=w,this.index=w,this.dispatchCustomEvent(`select`,w))}};__decorate([n({attribute:ringTypeAttribute})],Tabs.prototype,`ringType`,void 0),__decorate([n()],Tabs.prototype,`beginning`,void 0),__decorate([n()],Tabs.prototype,`indicator`,void 0),__decorate([n({type:Array})],Tabs.prototype,`tabs`,void 0),__decorate([n({type:Number})],Tabs.prototype,`index`,void 0),__decorate([r(`[part~=item]`)],Tabs.prototype,`_items`,void 0),__decorate([r(`[part=indicator]`)],Tabs.prototype,`_indicators`,void 0),Tabs=__decorate([godown(protoName$3),styles(i$4`:host{${cssScope$1}--indicator-background:var(${cssGlobalVars.passive});${cssScope$1}--selected-background:var(${cssGlobalVars.passive});transition:.2s ease-in-out;display:flex;cursor:default}[part=root]{gap:.25em;padding:.25em;position:relative;z-index:1;display:flex;flex-direction:inherit;overflow-x:clip;border-radius:inherit;transition:inherit;transition-property:width,transform,opacity}[part~=item]{position:relative;width:100%;display:block;text-align:center;position:relative;white-space:nowrap;transition:inherit;border-radius:inherit;transition-property:inherit}[part=indicator],[part~=item]::after{width:100%;height:100%;inset:0;position:absolute;transition:inherit;border-radius:inherit;transition-property:inherit;background:var(${cssScope$1}--indicator-background)}[part=indicator]{opacity:0;z-index:-1}[part~=item]::after{z-index:-2}[indicator=underline] [part=indicator],[indicator=underline] [part~=item]::after{top:100%;height:.15em;border-radius:.075em;margin-top:.15em}[part~=selected]::after{content:"";background:var(${cssScope$1}--selected-background)}[part~=hover] [part=indicator]{opacity:1}`)],Tabs);var Tabs$1=Tabs;Tabs$1.define();function formatNumber(w,D=2){return w.toString().padStart(D,`0`).split(``)}function format(w,D=new Date,O=`%`){var F;if(!w)return w;if(isNaN(D.getTime()))return;let U=`${O}${O}`,W=[];w=w.replace(RegExp(`${O}([ZYMDhmsS${O}])`,`g`),(w,D)=>(W.push(D),U));let G=D.getTimezoneOffset()/-60,K={Z:[G>=0?`+`+G.toString():G.toString()],Y:D.getFullYear().toString().split(``),M:formatNumber(D.getMonth()+1),D:formatNumber(D.getDate()),h:formatNumber(D.getHours()),m:formatNumber(D.getMinutes()),s:formatNumber(D.getSeconds()),S:formatNumber(D.getMilliseconds(),3)},q=[];for(let D of w.split(``).reverse()){let w=(F=K[D])?.pop();w?q.push(w):q.push(D)}return q.reverse().join(``).replace(new RegExp(U,`g`),()=>W.shift())}const protoName$2=`time`;let Time=class w extends Text$1{constructor(...w){super(...w),this.escape=`%`,this.format=`YYYY-MM-DD hh:mm:ss`,this.time=new Date}render(){return x`<p part="root">${format(this.format,this.time,this.escape)}</p>`}updated(w){w.has(`timeout`)&&this.timeout&&(this.timeouts.remove(this.timeoutId),this.timeoutId=this.timeouts.add(setInterval(()=>{this.dispatchCustomEvent(`time`,this.time),this.time=new Date(this.time.getTime()+(this.gap||this.timeout))},Math.abs(this.timeout))))}};__decorate([n()],Time.prototype,`escape`,void 0),__decorate([n()],Time.prototype,`format`,void 0),__decorate([n({type:Object})],Time.prototype,`time`,void 0),__decorate([n({type:Number})],Time.prototype,`timeout`,void 0),__decorate([n({type:Number})],Time.prototype,`gap`,void 0),Time=__decorate([godown(protoName$2)],Time);var Time$1=Time;Time$1.define();const protoName$1=`tooltip`;let Tooltip=class w extends Popover$1{constructor(...w){super(...w),this.delay=300}render(){return x`<div part="root"> <div part="trigger" @click=${this.hide}> ${htmlSlot()} </div> <div part="popover" popover="manual"> ${htmlSlot(`tip`,this.tip)} </div> </div>`}connectedCallback(){super.connectedCallback(),this.events.add(this,`mouseenter`,()=>{clearTimeout(this._leaveTimeout),this._hoverTimeout=setTimeout(()=>{this.show()},this.delay)}),this.events.add(this,`mouseleave`,()=>{clearTimeout(this._hoverTimeout),this._leaveTimeout=setTimeout(()=>{this.hide()},this.delay)})}};__decorate([n()],Tooltip.prototype,`tip`,void 0),__decorate([n({type:Number})],Tooltip.prototype,`delay`,void 0),Tooltip=__decorate([godown(protoName$1)],Tooltip);var Tooltip$1=Tooltip;Tooltip$1.define();const protoName=`typewriter`,cssScope=scopePrefix(protoName);let Typewriter=class w extends GlobalStyle{constructor(...w){super(...w),this.content=``,this.ended=!1,this.max=100,this.min=50,this.delay=0,this.index=0,this.contentInternal=``}get len(){return this.content.length}render(){return x`<div part="root" ${attr(this.observedRecord)}> ${htmlSlot()} ${this.contentInternal} <i part="cursor" ?hidden="${this.ended}"></i> </div>`}connectedCallback(){super.connectedCallback(),this._ranger=new Ranger(this.min,this.max)}firstUpdated(){this.content||=this._slot?.assignedNodes()[0]?.textContent.trim()||``,!this.ended&&this.len&&this.write()}updated(w){w.has(`index`)&&this.dispatchCustomEvent(this.index===this.len?`done`:`write`,this.contentInternal)}write(w=this.index){this.contentInternal=this.content.slice(0,w+1);let D=this.delay||this._ranger.random();this.timeoutID=this.timeouts.add(setTimeout(()=>{let D=w+1;D<=this.len&&(this.index=D,this.write())},D))}stop(){clearTimeout(this.timeoutID)}end(){this.ended=!0}};__decorate([n()],Typewriter.prototype,`content`,void 0),__decorate([n({type:Boolean})],Typewriter.prototype,`ended`,void 0),__decorate([n({type:Number})],Typewriter.prototype,`max`,void 0),__decorate([n({type:Number})],Typewriter.prototype,`min`,void 0),__decorate([n({type:Number})],Typewriter.prototype,`delay`,void 0),__decorate([n({type:Number})],Typewriter.prototype,`index`,void 0),__decorate([r$1()],Typewriter.prototype,`contentInternal`,void 0),__decorate([e$2(`i`)],Typewriter.prototype,`_i`,void 0),Typewriter=__decorate([godown(protoName),styles(i$4`:host{${cssScope}--cursor-width:.05em}:host,:host([contents]) [part=root]{display:inline-block}i{border-right:var(${cssScope}--cursor-width) solid;margin-left:.02em;animation:s 1.5s steps(1) infinite}@keyframes s{0%{border-color:currentColor}50%{border-color:transparent}}slot{display:none}`)],Typewriter);var Typewriter$1=Typewriter;Typewriter$1.define();export{Alert$1 as Alert,Avatar$1 as Avatar,Badge$1 as Badge,Breath$1 as Breath,Button$1 as Button,Card$1 as Card,Carousel$1 as Carousel,Chip$1 as Chip,Details$1 as Details,Dialog$1 as Dialog,Divider$1 as Divider,Dragbox$1 as Dragbox,Flex$1 as Flex,Form$1 as Form,Grid$1 as Grid,Heading$1 as Heading,Input$1 as Input,Layout$1 as Layout,Link$1 as Link,Popover,Progress$1 as Progress,Range$1 as Range,Rotate$1 as Rotate,Router$1 as Router,Select$1 as Select,Skeleton$1 as Skeleton,Split$1 as Split,Switch$1 as Switch,Tabs$1 as Tabs,Text$1 as Text,Time$1 as Time,Tooltip$1 as Tooltip,Typewriter$1 as Typewriter};
58
17
  //# sourceMappingURL=godown+lit.js.map