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
package/alert.d.ts CHANGED
@@ -1,2 +1 @@
1
1
  export { default } from "./web-components/alert/definition.js";
2
- //# sourceMappingURL=alert.d.ts.map
package/alert.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"alert.d.ts","sourceRoot":"__source__/","sources":["alert.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,sCAAsC,CAAC"}
1
+ {"mappings":"AAAA,SAAS,eAAe","names":[],"sources":["../src/alert.ts"],"sourcesContent":["export { default } from \"./web-components/alert/definition.js\";\n"],"version":3,"file":"alert.d.ts"}
package/alert.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"alert.js","sources":[],"sourcesContent":null,"names":[],"mappings":""}
1
+ {"version":3,"file":"alert.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/avatar.d.ts CHANGED
@@ -1,2 +1 @@
1
1
  export { default } from "./web-components/avatar/definition.js";
2
- //# sourceMappingURL=avatar.d.ts.map
package/avatar.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"avatar.d.ts","sourceRoot":"__source__/","sources":["avatar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC"}
1
+ {"mappings":"AAAA,SAAS,eAAe","names":[],"sources":["../src/avatar.ts"],"sourcesContent":["export { default } from \"./web-components/avatar/definition.js\";\n"],"version":3,"file":"avatar.d.ts"}
package/avatar.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"avatar.js","sources":[],"sourcesContent":null,"names":[],"mappings":""}
1
+ {"version":3,"file":"avatar.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/badge.d.ts CHANGED
@@ -1,2 +1 @@
1
1
  export { default } from "./web-components/badge/definition.js";
2
- //# sourceMappingURL=badge.d.ts.map
package/badge.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"badge.d.ts","sourceRoot":"__source__/","sources":["badge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,sCAAsC,CAAC"}
1
+ {"mappings":"AAAA,SAAS,eAAe","names":[],"sources":["../src/badge.ts"],"sourcesContent":["export { default } from \"./web-components/badge/definition.js\";\n"],"version":3,"file":"badge.d.ts"}
package/badge.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"badge.js","sources":[],"sourcesContent":null,"names":[],"mappings":""}
1
+ {"version":3,"file":"badge.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/breath.d.ts CHANGED
@@ -1,2 +1 @@
1
1
  export { default } from "./web-components/breath/definition.js";
2
- //# sourceMappingURL=breath.d.ts.map
package/breath.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"breath.d.ts","sourceRoot":"__source__/","sources":["breath.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC"}
1
+ {"mappings":"AAAA,SAAS,eAAe","names":[],"sources":["../src/breath.ts"],"sourcesContent":["export { default } from \"./web-components/breath/definition.js\";\n"],"version":3,"file":"breath.d.ts"}
package/breath.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"breath.js","sources":[],"sourcesContent":null,"names":[],"mappings":""}
1
+ {"version":3,"file":"breath.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,58 +1,17 @@
1
- var Godown=function(t){"use strict";
2
- /**
3
- * @license MIT
4
- * @version 3.13.1
5
- */function e(t,e,o,s){var r,a=arguments.length,l=a<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,o):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,e,o,s);else for(var h=t.length-1;h>=0;h--)(r=t[h])&&(l=(a<3?r(l):a>3?r(e,o,l):r(e,o))||l);return a>3&&l&&Object.defineProperty(e,o,l),l}"function"==typeof SuppressedError&&SuppressedError;const o=t=>null==t,s=t=>"string"==typeof t,r=t=>null!==t&&"object"==typeof t,{isArray:a}=Array,l=(t,...e)=>{const o={};for(const s in t)e.includes(s)||(o[s]=t[s]);return o},h=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 d=globalThis,c=d.ShadowRoot&&(void 0===d.ShadyCSS||d.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,p=Symbol(),u=new WeakMap;let v=class n{constructor(t,e,o){if(this._$cssResult$=!0,o!==p)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(c&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=u.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&u.set(e,t))}return t}toString(){return this.cssText}};const f=t=>new v("string"==typeof t?t:t+"",void 0,p),m=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,o,s)=>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.")})(o)+t[s+1]),t[0]);return new v(o,t,p)},g=c?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return f(e)})(t):t
12
- /**
13
- * @license
14
- * Copyright 2017 Google LLC
15
- * SPDX-License-Identifier: BSD-3-Clause
16
- */,{is:$,defineProperty:b,getOwnPropertyDescriptor:_,getOwnPropertyNames:w,getOwnPropertySymbols:x,getPrototypeOf:S}=Object,C=globalThis,A=C.trustedTypes,E=A?A.emptyScript:"",T=C.reactiveElementPolyfillSupport,P=(t,e)=>t,O={toAttribute(t,e){switch(e){case Boolean:t=t?E:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=null!==t;break;case Number:o=null===t?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch(t){o=null}}return o}},B=(t,e)=>!$(t,e),D={attribute:!0,type:String,converter:O,reflect:!1,useDefault:!1,hasChanged:B};Symbol.metadata??=Symbol("metadata"),C.litPropertyMetadata??=new WeakMap;let U=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=D){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 o=Symbol(),s=this.getPropertyDescriptor(t,o,e);void 0!==s&&b(this.prototype,t,s)}}static getPropertyDescriptor(t,e,o){const{get:s,set:r}=_(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:s,set(e){const a=s?.call(this);r?.call(this,e),this.requestUpdate(t,a,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??D}static _$Ei(){if(this.hasOwnProperty(P("elementProperties")))return;const t=S(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(P("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(P("properties"))){const t=this.properties,e=[...w(t),...x(t)];for(const o of e)this.createProperty(o,t[o])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,o]of e)this.elementProperties.set(t,o)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const o=this._$Eu(t,e);void 0!==o&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const t of o)e.unshift(g(t))}else void 0!==t&&e.push(g(t));return e}static _$Eu(t,e){const o=e.attribute;return!1===o?void 0:"string"==typeof o?o:"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 o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(c)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of e){const e=document.createElement("style"),s=d.litNonce;void 0!==s&&e.setAttribute("nonce",s),e.textContent=o.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,o){this._$AK(t,o)}_$ET(t,e){const o=this.constructor.elementProperties.get(t),s=this.constructor._$Eu(t,o);if(void 0!==s&&!0===o.reflect){const r=(void 0!==o.converter?.toAttribute?o.converter:O).toAttribute(e,o.type);this._$Em=t,null==r?this.removeAttribute(s):this.setAttribute(s,r),this._$Em=null}}_$AK(t,e){const o=this.constructor,s=o._$Eh.get(t);if(void 0!==s&&this._$Em!==s){const t=o.getPropertyOptions(s),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:O;this._$Em=s,this[s]=r.fromAttribute(e,t.type)??this._$Ej?.get(s)??null,this._$Em=null}}requestUpdate(t,e,o){if(void 0!==t){const s=this.constructor,r=this[t];if(o??=s.getPropertyOptions(t),!((o.hasChanged??B)(r,e)||o.useDefault&&o.reflect&&r===this._$Ej?.get(t)&&!this.hasAttribute(s._$Eu(t,o))))return;this.C(t,e,o)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:o,reflect:s,wrapped:r},a){o&&!(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||o||(e=void 0),this._$AL.set(t,e)),!0===s&&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,o]of t){const{wrapped:t}=o,s=this[e];!0!==t||this._$AL.has(e)||void 0===s||this.C(e,void 0,o,s)}}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){}};U.elementStyles=[],U.shadowRootOptions={mode:"open"},U[P("elementProperties")]=new Map,U[P("finalized")]=new Map,T?.({ReactiveElement:U}),(C.reactiveElementVersions??=[]).push("2.1.0");
17
- /**
18
- * @license
19
- * Copyright 2017 Google LLC
20
- * SPDX-License-Identifier: BSD-3-Clause
21
- */
22
- const j=globalThis,V=j.trustedTypes,G=V?V.createPolicy("lit-html",{createHTML:t=>t}):void 0,F="$lit$",W=`lit$${Math.random().toFixed(9).slice(2)}$`,q="?"+W,Y=`<${q}>`,X=document,Z=()=>X.createComment(""),K=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Q=Array.isArray,J="[ \t\n\f\r]",tt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,et=/-->/g,it=/>/g,ot=RegExp(`>|${J}(?:([^\\s"'>=/]+)(${J}*=${J}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),st=/'/g,rt=/"/g,nt=/^(?:script|style|textarea|title)$/i,at=t=>(e,...o)=>({_$litType$:t,strings:e,values:o}),lt=at(1),ht=at(2),dt=Symbol.for("lit-noChange"),ct=Symbol.for("lit-nothing"),pt=new WeakMap,ut=X.createTreeWalker(X,129);function vt(t,e){if(!Q(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==G?G.createHTML(e):e}class N{constructor({strings:t,_$litType$:e},o){let s;this.parts=[];let r=0,a=0;const l=t.length-1,h=this.parts,[d,c]=((t,e)=>{const o=t.length-1,s=[];let r,a=2===e?"<svg>":3===e?"<math>":"",l=tt;for(let e=0;e<o;e++){const o=t[e];let h,d,c=-1,p=0;for(;p<o.length&&(l.lastIndex=p,d=l.exec(o),null!==d);)p=l.lastIndex,l===tt?"!--"===d[1]?l=et:void 0!==d[1]?l=it:void 0!==d[2]?(nt.test(d[2])&&(r=RegExp("</"+d[2],"g")),l=ot):void 0!==d[3]&&(l=ot):l===ot?">"===d[0]?(l=r??tt,c=-1):void 0===d[1]?c=-2:(c=l.lastIndex-d[2].length,h=d[1],l=void 0===d[3]?ot:'"'===d[3]?rt:st):l===rt||l===st?l=ot:l===et||l===it?l=tt:(l=ot,r=void 0);const u=l===ot&&t[e+1].startsWith("/>")?" ":"";a+=l===tt?o+Y:c>=0?(s.push(h),o.slice(0,c)+F+o.slice(c)+W+u):o+W+(-2===c?e:u)}return[vt(t,a+(t[o]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),s]})(t,e);if(this.el=N.createElement(d,o),ut.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(s=ut.nextNode())&&h.length<l;){if(1===s.nodeType){if(s.hasAttributes())for(const t of s.getAttributeNames())if(t.endsWith(F)){const e=c[a++],o=s.getAttribute(t).split(W),l=/([.?@])?(.*)/.exec(e);h.push({type:1,index:r,name:l[2],strings:o,ctor:"."===l[1]?H:"?"===l[1]?I:"@"===l[1]?L:mt}),s.removeAttribute(t)}else t.startsWith(W)&&(h.push({type:6,index:r}),s.removeAttribute(t));if(nt.test(s.tagName)){const t=s.textContent.split(W),e=t.length-1;if(e>0){s.textContent=V?V.emptyScript:"";for(let o=0;o<e;o++)s.append(t[o],Z()),ut.nextNode(),h.push({type:2,index:++r});s.append(t[e],Z())}}}else if(8===s.nodeType)if(s.data===q)h.push({type:2,index:r});else{let t=-1;for(;-1!==(t=s.data.indexOf(W,t+1));)h.push({type:7,index:r}),t+=W.length-1}r++}}static createElement(t,e){const o=X.createElement("template");return o.innerHTML=t,o}}function ft(t,e,o=t,s){if(e===dt)return e;let r=void 0!==s?o._$Co?.[s]:o._$Cl;const a=K(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,o,s)),void 0!==s?(o._$Co??=[])[s]=r:o._$Cl=r),void 0!==r&&(e=ft(t,r._$AS(t,e.values),r,s)),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:o}=this._$AD,s=(t?.creationScope??X).importNode(e,!0);ut.currentNode=s;let r=ut.nextNode(),a=0,l=0,h=o[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=o[++l]}a!==h?.index&&(r=ut.nextNode(),a++)}return ut.currentNode=X,s}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}}class R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,s){this.type=2,this._$AH=ct,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=s,this._$Cv=s?.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=ft(this,t,e),K(t)?t===ct||null==t||""===t?(this._$AH!==ct&&this._$AR(),this._$AH=ct):t!==this._$AH&&t!==dt&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>Q(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!==ct&&K(this._$AH)?this._$AA.nextSibling.data=t:this.T(X.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=N.createElement(vt(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===s)this._$AH.p(e);else{const t=new M(s,this),o=t.u(this.options);t.p(e),this.T(o),this._$AH=t}}_$AC(t){let e=pt.get(t.strings);return void 0===e&&pt.set(t.strings,e=new N(t)),e}k(t){Q(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let o,s=0;for(const r of t)s===e.length?e.push(o=new R(this.O(Z()),this.O(Z()),this,this.options)):o=e[s],o._$AI(r),s++;s<e.length&&(this._$AR(o&&o._$AB.nextSibling,s),e.length=s)}_$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 mt=class k{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,s,r){this.type=1,this._$AH=ct,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=r,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=ct}_$AI(t,e=this,o,s){const r=this.strings;let a=!1;if(void 0===r)t=ft(this,t,e,0),a=!K(t)||t!==this._$AH&&t!==dt,a&&(this._$AH=t);else{const s=t;let l,h;for(t=r[0],l=0;l<r.length-1;l++)h=ft(this,s[o+l],e,l),h===dt&&(h=this._$AH[l]),a||=!K(h)||h!==this._$AH[l],h===ct?t=ct:t!==ct&&(t+=(h??"")+r[l+1]),this._$AH[l]=h}a&&!s&&this.j(t)}j(t){t===ct?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}};class H extends mt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===ct?void 0:t}}class I extends mt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==ct)}}class L extends mt{constructor(t,e,o,s,r){super(t,e,o,s,r),this.type=5}_$AI(t,e=this){if((t=ft(this,t,e,0)??ct)===dt)return;const o=this._$AH,s=t===ct&&o!==ct||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==ct&&(o===ct||s);s&&this.element.removeEventListener(this.name,this,o),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,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){ft(this,t)}}const gt=j.litHtmlPolyfillSupport;gt?.(N,R),(j.litHtmlVersions??=[]).push("3.3.0");const yt=globalThis;
23
- /**
24
- * @license
25
- * Copyright 2017 Google LLC
26
- * SPDX-License-Identifier: BSD-3-Clause
27
- */let $t=class i extends U{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,o)=>{const s=o?.renderBefore??e;let r=s._$litPart$;if(void 0===r){const t=o?.renderBefore??null;s._$litPart$=r=new R(e.insertBefore(Z(),t),t,void 0,o??{})}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 dt}};$t._$litElement$=!0,$t.finalized=!0,yt.litElementHydrateSupport?.({LitElement:$t});const bt=yt.litElementPolyfillSupport;function*_t(t){for(const e of a(t)?t:Object.entries(t))e&&(yield e)}bt?.({LitElement:$t}),(yt.litElementVersions??=[]).push("4.2.0");const wt=t=>r(t)&&"_$cssResult$"in t,xt=t=>!o(t)&&!1!==t,kt=t=>{let e="";for(const[o,s]of _t(t))if(s){const t=r(s)&&!wt(s)?St(s):s;xt(t)&&(e+=o?`${o}{${t}}`:t)}return e},St=t=>{let e="";for(const[o,s]of _t(t))o&&xt(s)&&(e+=`${o}:${s};`);return e},Ct=(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 wt(t)?t.styleSheet:t})(e))-1:void 0}}const At=(...t)=>e=>{const o=[];for(let t=Object.getPrototypeOf(e);t.styles;t=Object.getPrototypeOf(t))o.push(t.styles);e.styles=[...o,...t]},Rt=(t,e)=>o=>{t||=h(o.name),o.protoName=t;(({tagName:t,styles:e,autoDefine:o=!1,registry:s=customElements})=>r=>{r.elementTagName=t,e&&At(e)(r),o&&!s.get(t)&&s.define(t,r)})({tagName:o.godownConfig.tag(t),...e})(o)}
28
- /**
29
- * @license
30
- * Copyright 2017 Google LLC
31
- * SPDX-License-Identifier: BSD-3-Clause
32
- */,Et={attribute:!0,type:String,converter:O,reflect:!1,hasChanged:B},Tt=(t=Et,e,o)=>{const{kind:s,metadata:r}=o;let a=globalThis.litPropertyMetadata.get(r);if(void 0===a&&globalThis.litPropertyMetadata.set(r,a=new Map),"setter"===s&&((t=Object.create(t)).wrapped=!0),a.set(o.name,t),"accessor"===s){const{name:s}=o;return{set(o){const r=e.get.call(this);e.set.call(this,o),this.requestUpdate(s,r,t)},init(e){return void 0!==e&&this.C(s,void 0,t,e),e}}}if("setter"===s){const{name:s}=o;return function(o){const r=this[s];e.call(this,o),this.requestUpdate(s,r,t)}}throw Error("Unsupported decorator location: "+s)};function Mt(t){return(e,o)=>"object"==typeof o?Tt(t,e,o):((t,e,o)=>{const s=e.hasOwnProperty(o);return e.constructor.createProperty(o,t),s?Object.getOwnPropertyDescriptor(e,o):void 0})(t,e,o)
33
- /**
34
- * @license
35
- * Copyright 2017 Google LLC
36
- * SPDX-License-Identifier: BSD-3-Clause
37
- */}function Nt(t){return Mt({...t,state:!0,attribute:!1})}
38
- /**
39
- * @license
40
- * Copyright 2017 Google LLC
41
- * SPDX-License-Identifier: BSD-3-Clause
42
- */const Pt=(t,e,o)=>(o.configurable=!0,o.enumerable=!0,Reflect.decorate&&"object"!=typeof e&&Object.defineProperty(t,e,o),o)
43
- /**
44
- * @license
45
- * Copyright 2017 Google LLC
46
- * SPDX-License-Identifier: BSD-3-Clause
47
- */;function Ot(t,e){return(o,s,r)=>{const a=e=>e.renderRoot?.querySelector(t)??null;if(e){const{get:t,set:e}="object"==typeof s?o:r??(()=>{const t=Symbol();return{get(){return this[t]},set(e){this[t]=e}}})();return Pt(o,s,{get(){let o=t.call(this);return void 0===o&&(o=a(this),(null!==o||this.hasUpdated)&&e.call(this,o)),o}})}return Pt(o,s,{get(){return a(this)}})}}
48
- /**
49
- * @license
50
- * Copyright 2017 Google LLC
51
- * SPDX-License-Identifier: BSD-3-Clause
52
- */let Bt;function It(t){return(e,o)=>Pt(e,o,{get(){return(this.renderRoot??(Bt??=document.createDocumentFragment())).querySelectorAll(t)}})}const zt=(t,e=!0)=>{return Ot((o=t,s?`::part(${o})`:((t,e)=>e?`[${t}~="${e}"]`:`[${t}]`)("part",o)),e);
53
- /**
54
- * @license
55
- * Copyright 2017 Google LLC
56
- * SPDX-License-Identifier: BSD-3-Clause
57
- */var o,s},Dt=6;let Ut=class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,o){this._$Ct=t,this._$AM=e,this._$Ci=o}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};const jt=(t,e)=>(t?t+(e?" "+e:""):e)||"",Vt=(...t)=>t.reduce(((t,e)=>{if(!e)return t;if(a(e))return jt(t,Vt(...e));if(r(e)){for(const o in e)e[o]&&(t=jt(t,o));return t}return jt(t,e)}),"");function Ht(t,e){(t=>o(t)||!1===t)(e)?this.removeAttribute(t):!0===e?this.setAttribute(t,""):s(e)||(t=>"number"==typeof t)(e)&&!Number.isNaN(e)?this.setAttribute(t,String(e)):this[t]=e}const Lt=(t=>(...e)=>({_$litDirective$:t,values:e}))(class AttrDirective extends Ut{render(t,e){}update(t,[e,o=Ht]){if(e&&t.type===Dt)for(const s in e)o.call(t.element,s,e[s]);return dt}}),Gt=((t,e)=>o=>t({...e,...o}))(Lt,{width:"1em",height:"1em",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}),Ft=(t,e)=>lt`<slot name="${t||ct}">${e||ct}</slot>`,Wt=(t,e)=>{if(!t)return ct;const o=s(t)?t:kt(t);return o?lt`<style media="${ct}">${o}</style>`:ct},qt=t=>(e,...o)=>{const r=ht(e,o),a=s(t)?t:t.join(" "),l=t=>lt`<svg viewBox="${a}" ${Gt(t)}>${r}</svg>`;return l.body=r,l.viewBox=a,l};function*Yt(t,e,o){for(let o=0;o<t;o++)yield e(o)}function Xt(t,e=this){if(!e||!t)return[];const o=new Set;e instanceof Element&&e.shadowRoot&&Xt(t,e.shadowRoot).forEach((t=>o.add(t))),e.querySelectorAll(t).forEach((t=>o.add(t)));for(const s of e.children)Xt(t,s).forEach((t=>o.add(t)));return Array.from(o)}function Zt(t,e=this){if(!e||!t)return null;let o;if(e instanceof Element&&e.shadowRoot&&(o=Zt(t,e.shadowRoot),o))return o;if(o=e.querySelector(t),o)return o;for(const s of e.children)if(o=Zt(t,s),o)return o;return null}class Events{constructor(){this.inner=new Map}add(t,e,o,s){if(!t||!o)return;const r=this.inner.get(e)||new Map,a=r.get(t)||new Set;return a.add(o),r.set(t,a),this.inner.set(e,r),t.addEventListener(e,o,s),o}remove(t,e,o,s){if(!t||!o)return;const r=this.inner.get(e);if(r){const s=r.get(t);s&&(s.delete(o),s.size||(r.delete(t),r.size||this.inner.delete(e)))}t.removeEventListener(e,o,s)}removeAll(){this.inner.forEach(((t,e)=>{t.forEach(((t,o)=>{t.forEach((t=>{o.removeEventListener(e,t)}))})),t.clear()})),this.inner.clear()}}class Observers{constructor(){this.inner=new Map}add(t,e,o,s){const[r,a]=((t,e,o)=>{let s,r;switch(t){case MutationObserver:case ResizeObserver:s=new t(e),r=t=>s.observe(t,o);break;case IntersectionObserver:s=new t(e,o),r=t=>s.observe(t);break;case PerformanceObserver:s=new t(e),r=()=>s.observe(o)}return[s,r]})(e,o,s);if(r)return this.inner.set(r,(this.inner.get(r)||new Set).add(t)),a(t),r}remove(t,e){t.disconnect();const o=this.inner.get(t);"unobserve"in t?(e?(t.unobserve(e),o?.delete(e)):(o?.forEach((e=>{t.unobserve(e)})),o?.clear()),o&&!o.size&&this.inner.delete(t)):o&&this.inner.delete(t)}removeAll(){this.inner.forEach(((t,e)=>{this.remove(e)}))}}class Ranger{constructor(t,e,o){this.max=Math.max(t,e),this.min=Math.min(t,e),this.diff=this.max-this.min,this.step=o}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 Kt=(t,e,o)=>t.startsWith(e)&&t.endsWith(o);class RouteTree{constructor(){this.matchType=RouteTree.MatchTypes.strict,this.children=[]}insert(t,e,o=0){if(e||(e=RouteTree.split(t)),e.length===o)return void(this.pattern=t);const s=e[o];let r=this.findStrict(s);r||(r=new RouteTree,r.part=s,r.matchType=RouteTree.dynamic(s).matchType,this.children.push(r),this.sorted=!1),r.insert(t,e,o+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 o of r){const s=o.search(t,e+1);if(null!==s)return s}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 o=RouteTree.split(t),s=RouteTree.split(e),r={};for(let t=0;t<s.length;t++){const e=s[t],{key:a,matchType:l}=RouteTree.dynamic(e);if(l===RouteTree.MatchTypes.single)r[a]=o[t];else if(l===RouteTree.MatchTypes.multi){r[a]=o.slice(t).join("/");break}}return r}static dynamic(t){if(t){if(Kt(t,"{","}")||Kt(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 Qt=(t,{attribute:e})=>!0===e||void 0===e?String(t).toLowerCase():!1!==e&&"symbol"!=typeof t?e:void 0,Jt=/^[\s\S]*{[\s\S]*}$/;class GodownElement extends $t{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 o=Qt(t,e);o&&this.elementAttributes.set(o,t)}}get observedRecord(){const t={};for(const[e,o]of this.constructor.elementAttributes.entries())t[e]=this[o];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(),Jt.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 Zt.call(this,t)}deepQuerySelectorAll(t){return Xt.call(this,t)}adoptStyles(...t){if(!this.shadowRoot||!t.length)return;const e=this.shadowRoot.adoptedStyleSheets,o=new CSSStyleSheet;return t.forEach((t=>o.insertRule(t.toString()))),e.push(o),e.length-1}dispatchCustomEvent(t,e,o){this.dispatchEvent(new CustomEvent(t,{detail:e,composed:!0,...o}))}}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 h(this.prefix+"-"+t+"-"+this.suffix)}define(t,e,o){this.registry.define(t,e,o),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)}},e([Mt({type:Boolean,reflect:!0})],GodownElement.prototype,"contents",void 0),e([Mt({reflect:!0})],GodownElement.prototype,"stylex",null);const te=m`*,: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 ee=((t,e)=>((t,e)=>((t,e)=>{if(!t||!e)return t;let o=0;for(;o<t.length&&e(t.slice(o,o+1));)o+=1;return t.slice(o)})(((t,e)=>{if(!t||!e)return t;let o=t.length;for(;o>0&&e(t.slice(o-1,o));)o-=1;return t.slice(0,o)})(t,e),e))(t,(t=>t===e)))(GlobalStyle.godownConfig.prefix,"-");function ie(t,e=1){return function(t){return f(`--${t}`)}(ee+"-".repeat(e)+t)}const oe={background:ie("background",2),foreground:ie("foreground",2),backgroundClip:ie("background-clip",2),primaryBackground:ie("primary",2),primaryForeground:ie("primary-foreground",2),muted:ie("muted",2),active:ie("active",2),passive:ie("passive",2),input:ie("input",2),radius:ie("radius",2),ringWidth:ie("ring-width",2),ringColor:ie("ring-color",2)};GlobalStyle.styles=[te,f(((t,e,o)=>{const s=[..._t(e)];return((t,{truecase:e,falsecase:o})=>{const s="@supports";let r="";return e&&(r+=`${s}(${t}){${e}}`),o&&(r+=`${s} not (${t}){${o}}`),r})("color:light-dark(#fff,#000)",{truecase:kt([[t,St(s.map((([t,[e,o]])=>[t,`light-dark(${e},${o})`])))]]),falsecase:kt([[t,St(s.map((([t,e])=>[t,e[o]])))]])})})(":host",[[oe.background,["hsl(0 0% 96%)","hsl(0 0% 4%)"]],[oe.foreground,["hsl(0 0% 4%)","hsl(0 0% 96%)"]],[oe.muted,["hsl(0 0% 88%)","hsl(0 0% 18%)"]]],1)),f(kt({":host":St([[oe.primaryBackground,Ct(oe.foreground)],[oe.primaryForeground,Ct(oe.background)],[oe.active,Ct(oe.primaryBackground)],[oe.passive,Ct(oe.muted)],[oe.backgroundClip,`linear-gradient(to bottom, ${Ct(oe.foreground)}, ${Ct(oe.muted)})`],[oe.ringColor,Ct(oe.passive)],[oe.ringWidth,".1em"],[oe.radius,".25em"]])})),m`: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}`,m`:host{border-radius:var(${oe.radius});border-style:none;outline-style:none}`];const se=({width:t,color:e,inset:o})=>`outline-style:solid;outline-color:${e};outline-width:${t};${o?`outline-offset:calc(-1 * ${t});`:""}`,re=({width:t,color:e,inset:o})=>`box-shadow:${o?"inset":""} 0 0 0 ${t} ${e};`,ne={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)=>re({width:t,color:e,inset:!1}),shadow:(t,e)=>re({width:t,color:e,inset:!1}),"box-shadow-inset":(t,e)=>re({width:t,color:e,inset:!0}),"shadow-inset":(t,e)=>re({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=Ct(oe.ringWidth),color:o=Ct(oe.ringColor),type:s}={}){if(s&&s in ne){const r=ne[s](e,o);this.css=`${t}{${r}}`}else this.css=""}get styleSheet(){return f(this.css).styleSheet}}const ae="ring-type";let le=class Alert extends GlobalStyle{constructor(){super(),this.ringType="border",new StyleController(this,(()=>new RingBuilder({type:this.ringType}).css))}render(){return lt`<div part="root"> <div>${Ft("prefix")}</div> <div part="content"> <b part="title">${Ft("title",this.title)}</b> ${Ft("",this.content)} </div> <div>${Ft("suffix")}</div> </div>`}static alert(t,e){const o=new this;return Object.assign(o,e),t.appendChild(o),o}};e([Mt({attribute:ae})],le.prototype,"ringType",void 0),e([Mt()],le.prototype,"title",void 0),e([Mt()],le.prototype,"content",void 0),le=e([Rt("alert"),At(m`:host{background:var(${oe.background});color:var(${oe.foreground})}:host,:where(:host([contents]) [part=root]),b{display:block}[part=root]{display:grid;grid-template-columns:auto 1fr auto;padding:1em}`)],le);var he=le;he.define();let de=class Avatar extends GlobalStyle{constructor(){super(...arguments),this.name="",this.round=!1}render(){return lt`<div part="root" ${Lt(l(this.observedRecord,"src"))}> ${this._renderAvatar()} </div>`}_renderAvatar(){return this.src?lt`<img part="image" src="${this.src}" alt="${this.name}" @error=${this._handleError}/>`:this.name?lt`<span part="name">${this.formatName()}</span>`:Ft()}formatName(){return this.name}_handleError(){this.src=void 0}};e([Mt()],de.prototype,"src",void 0),e([Mt()],de.prototype,"name",void 0),e([Mt({type:Boolean})],de.prototype,"round",void 0),de=e([Rt("avatar"),At(m`:host{background:var(${oe.passive});color:var(${oe.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}`)],de);var ce=de;ce.define();const pe="button",ue=ie(pe);let ve=class Button extends GlobalStyle{constructor(){super(...arguments),this.plain=!1,this.disabled=!1,this.active=!1,this.round=!1}render(){return lt`<div part="root" ${Lt(this.observedRecord)}> ${Ft("",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:o,height:s}=this.getBoundingClientRect(),{x:r,y:a}=this._root.getBoundingClientRect(),l=2*Math.sqrt(s**2+o**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})}};e([Mt({type:Boolean,reflect:!0})],ve.prototype,"plain",void 0),e([Mt({type:Boolean,reflect:!0})],ve.prototype,"disabled",void 0),e([Mt({type:Boolean,reflect:!0})],ve.prototype,"active",void 0),e([Mt({type:Boolean,reflect:!0})],ve.prototype,"round",void 0),e([Mt()],ve.prototype,"content",void 0),e([zt("modal-root")],ve.prototype,"_modalRoot",void 0),e([zt("root")],ve.prototype,"_root",void 0),ve=e([Rt(pe),At(m`:host(:not([disabled]):active){transform:scale(var(${ue}--focus-scale))}:host([round]){border-radius:calc(infinity*1px)}:host([disabled]){cursor:not-allowed;filter:brightness(.85)}:host([plain]){${ue}--gradients:unset;${ue}--focus-scale:unset}`,m`:host{${ue}--modal-animation-duration:1.5s;${ue}--focus-scale:.97;${ue}--deg:45deg;background:var(${oe.primaryBackground});color:var(${oe.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%}`)],ve);var fe=ve;let me=class Badge extends fe{constructor(){super(...arguments),this.plain=!0,this.round=!0}};me=e([Rt("badge"),At(m`:host{font-size:.75em}[part=root]{padding:0 .5em}`)],me);var ge=me;ge.define();const ye="breath",$e=ie(ye),be=/[\s,]+/;let _e=class Breath extends GlobalStyle{render(){const t=this.getTexts();return lt`<div part="root" ${Lt(this.observedRecord)}> ${[t.map(this._renderText),Wt(this._computeStyle(t.length))]} </div>`}_renderText(t){return lt`<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(be).filter((t=>t))}_computeStyle(t){const e=50/t,o=this.duration||1e3*(2*t+2);let s="";for(let e=1;e<=t;e++)s+=`.rel:nth-child(${e}) .colorful{animation-delay:${-o/t*(t-e+1)}ms;background:var(${$e}--${e},var(${$e}--${(e-1)%3+1}));}`;return`.colorful{animation-duration:${o}ms;}@keyframes colorfulN{0%,${3*e}%{opacity:0;}${e}%,${2*e}%{opacity:1;}}${s}`}};e([Mt()],_e.prototype,"content",void 0),e([Mt({type:Number})],_e.prototype,"duration",void 0),_e=e([Rt(ye),At(m`:host{${$e}--deg:60deg;${$e}--1-1:#dd3c3c;${$e}--1-2:#f5993d;${$e}--2-1:#26d944;${$e}--2-2:#29a3a3;${$e}--3-1:#8c30e8;${$e}--3-2:#0d80f2;${$e}--1:linear-gradient(var(${$e}--deg),var(${$e}--1-1),var(${$e}--1-2));${$e}--2:linear-gradient(var(${$e}--deg),var(${$e}--2-1),var(${$e}--2-2));${$e}--3:linear-gradient(var(${$e}--deg),var(${$e}--3-1),var(${$e}--3-2))}`,m`: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}`,m`.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(${oe.backgroundClip});position:absolute;top:0}`)],_e);var we=_e;we.define(),fe.define();const xe="card";ie(xe);let ke=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 lt`<div part="root" ${Lt(this.observedRecord)}> ${[this.header?Ft("header"):"",Ft(),this.footer?Ft("footer"):""]} </div>`}};e([Mt({attribute:ae})],ke.prototype,"ringType",void 0),e([Mt({type:Boolean})],ke.prototype,"footer",void 0),e([Mt({type:Boolean})],ke.prototype,"header",void 0),ke=e([Rt(xe),At(m`:host{background:var(${oe.background});color:var(${oe.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}`)],ke);var Se=ke;Se.define();const Ce=qt("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">`,Ae=qt("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 Re(t){return t.getBoundingClientRect().width}let Ee=class Carousel extends GlobalStyle{constructor(){super(...arguments),this.index=0,this.autoChange=0}render(){return lt`<div part="root" ${Lt(this.observedRecord)}> <i part="prev" @click="${this.prev}"> ${Ce()} </i> <div part="move-root">${Ft()}</div> <i part="next" @click="${this.next}"> ${Ae()} </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,o){super.attributeChangedCallback(t,e,o),"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-=Re(this.children[e]);return t+=(Re(this)-Re(this.children[this.index+1]))/2,t}normalizeIndex(t){return t<0?0:t>this.children.length-3?this.children.length-3:t}};e([Mt({type:Number})],Ee.prototype,"index",void 0),e([Mt({type:Number})],Ee.prototype,"autoChange",void 0),e([zt("move-root")],Ee.prototype,"_moveRoot",void 0),Ee=e([Rt("carousel"),At(m`: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}`)],Ee);var Te=Ee;Te.define();const Me="chip",Ne=ie(Me);let Pe=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 lt`<div part="root" ${Lt(this.observedRecord)}> ${Ft()} ${this.value||this.dot?lt`<div part="chip">${this.dot?"":this.formatValue(this.value)}</div>`:""} </div>`}};e([Mt()],Pe.prototype,"position",void 0),e([Mt({type:Number})],Pe.prototype,"value",void 0),e([Mt({type:Boolean})],Pe.prototype,"dot",void 0),e([Mt({type:Number})],Pe.prototype,"max",void 0),Pe=e([Rt(Me),At(m`:host{${Ne}--offset:0%;${Ne}--offset-x:var(${Ne}--offset);${Ne}--offset-y:var(${Ne}--offset)}:host,:host([contents]) [part=root]{display:inline-block}[part=root]{position:relative}[part=chip]{background:var(${oe.primaryBackground});border-radius:calc(infinity*1px);color:var(${oe.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(${Ne}--offset-y))}[position$=right] [part=chip]{left:calc(100% - var(${Ne}--offset-x))}[position^=bottom] [part=chip]{top:calc(100% - var(${Ne}--offset-y))}[position$=left] [part=chip]{left:calc(var(${Ne}--offset-x))}`)],Pe);var Oe=Pe;Oe.define();const Be=qt("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">`,Ie="details",ze=ie(Ie);let De=class Details extends GlobalStyle{constructor(){super(...arguments),this.open=!1,this.float=!1,this.fill=!1,this.summary=""}render(){return lt`<dl part="root" ${Lt(this.observedRecord)}> <dt part="title" @click="${()=>this.toggle()}"> <span part="summary">${Ft("summary",this.summary)}</span> <span part="icon">${Ft("icon",Be())}</span> </dt> <dd part="details" @click=${this.fill?()=>this.toggle():null}> <div style="min-height: 0;">${Ft()}</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}};e([Mt({type:Boolean,reflect:!0})],De.prototype,"open",void 0),e([Mt({type:Boolean})],De.prototype,"float",void 0),e([Mt({type:Boolean})],De.prototype,"fill",void 0),e([Mt()],De.prototype,"summary",void 0),De=e([Rt(Ie),At(m`:host{${ze}--icon-deg-open:0deg;${ze}--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(${ze}--icon-deg-close))}:host([open]) [part=icon]{transform:rotate(var(${ze}--icon-deg-open))}`)],De);var Ue=De;Ue.define();const je="dialog",Ve=ie(je);let He=class Dialog extends GlobalStyle{constructor(){super(...arguments),this.open=!1,this.modal=!1,this.__modalInvoke=!1}render(){return lt`<div part="root" @click=${this.show}> ${Ft("trigger")} </div> <dialog part="dialog" role="dialog"> ${Ft("dialog")}${Ft()} </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())}};e([Mt({type:Boolean,reflect:!0})],He.prototype,"open",void 0),e([Mt({type:Boolean,reflect:!0})],He.prototype,"modal",void 0),e([zt("dialog")],He.prototype,"_dialog",void 0),He=e([Rt(je),At(m`:host{${Ve}--background-modal:#000;${Ve}--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(${Ve}--background-modal);opacity:var(${Ve}--opacity-modal)}`)],He);var Le=He;Le.define();let Ge=class Divider extends GlobalStyle{constructor(){super(...arguments),this.vertical=!1}render(){return lt`<div part="root"></div>`}};e([Mt({type:Boolean,reflect:!0})],Ge.prototype,"vertical",void 0),Ge=e([Rt("divider"),At(m`:host{background:currentColor;color:var(${oe.passive});display:block;height:.05em;width:100%}:host([vertical]){height:100%;width:.05em}`)],Ge);var Fe=Ge;Fe.define();let We=class Dragbox extends GlobalStyle{constructor(){super(...arguments),this.__drag=!1}get _offsetParent(){return this.offsetParent??document.body}render(){return lt`<div part="root" ${Lt(this.observedRecord)} @mousedown="${this._handleDragStart}"> ${Ft()} </div>`}firstUpdated(){this.reset()}_handleDragStart(t){this.__x=t.x,this.__y=t.y;const e=this._offsetParent.getBoundingClientRect(),o=this.getBoundingClientRect();this.__t=o.top-e.top,this.__l=o.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:o,__l:s,__t:r,style:a}=this,{height:l,width:h}=this._offsetParent.getBoundingClientRect(),{width:d,height:c}=this.getBoundingClientRect(),p=t.x-(e-s),u=t.y-(o-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:o,offsetWidth:s,offsetHeight:r,offsetLeft:a,offsetTop:l}=this,{height:h,width:d}=this._offsetParent.getBoundingClientRect();o.left=t||"0",o.top=e||"0",a>d-s&&(o.left=d-s+"px"),l>h-r&&(o.top=h-r+"px")}};e([Mt()],We.prototype,"x",void 0),e([Mt()],We.prototype,"y",void 0),We=e([Rt("dragbox"),At(m`:host{display:block;position:absolute}:host(:active){-webkit-user-select:none;user-select:none}`)],We);var qe=We;qe.define();let Ye=class Flex extends GlobalStyle{constructor(){super(...arguments),this.vertical=!1}render(){return lt`<div part="root" ${Lt(this.observedRecord)}> ${[Ft(),Wt(kt({":host":{gap:this.gap,"flex-flow":this.flexFlow,"flex-direction":this.vertical&&"column","align-items":this.items,"justify-content":this.content}}))]} </div>`}};e([Mt({attribute:"flex-flow"})],Ye.prototype,"flexFlow",void 0),e([Mt()],Ye.prototype,"gap",void 0),e([Mt()],Ye.prototype,"content",void 0),e([Mt()],Ye.prototype,"items",void 0),e([Mt({type:Boolean})],Ye.prototype,"vertical",void 0),Ye=e([Rt("flex"),At(m`:host,:host([contents]) [part=root]{display:flex}[part=root]{display:contents}`)],Ye);var Xe,Ze=Ye;Ze.define();let Ke=Xe=class Form extends GlobalStyle{constructor(){super(...arguments),this.name="",this.nameValue=this.namevalue}get value(){return Xe.buildValue(this._slot.assignedElements())}render(){return Ft()}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 o of t)if("FORM"===o.tagName)Object.assign(e,Object.fromEntries(new FormData(o).entries()));else if(o.namevalue){const[t,s]=o.namevalue();t&&(e[t]=s)}else if(o.name&&void 0!==o.value)e[o.name]=o.value;else if(o.shadowRoot)for(const t of o.shadowRoot.querySelectorAll("slot"))Object.assign(e,this.buildValue(t.assignedElements()));return e}};e([Mt()],Ke.prototype,"name",void 0),Ke=Xe=e([Rt("form"),At(m`:host{display:block}`)],Ke);var Qe=Ke;Qe.define();const Je=t=>{return e=t,Number.isNaN(+e)?t:`repeat(${t},1fr)`;var e};let ti=class Grid extends GlobalStyle{render(){return lt`<div part="root" ${Lt(this.observedRecord)}> ${[Ft(),Wt(kt({":host":{gap:this.gap,"grid-template-columns":Je(this.columns),"grid-template-rows":Je(this.rows),"place-content":this.content,"place-items":this.items}}))]} </div>`}};e([Mt()],ti.prototype,"gap",void 0),e([Mt()],ti.prototype,"columns",void 0),e([Mt()],ti.prototype,"rows",void 0),e([Mt()],ti.prototype,"content",void 0),e([Mt()],ti.prototype,"items",void 0),ti=e([Rt("grid"),At(m`:host,:host([contents]) [part=root]{display:grid}[part=root]{display:contents}`)],ti);var ei,ii=ti;ii.define();let oi=ei=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=Ft(),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(),ei.routerInstances.add(this),"field"!==this.type&&(this.observers.add(this,MutationObserver,this.collectSlottedRoutes,{attributes:!0,attributeFilter:["slot"],subtree:!0}),this.collectSlottedRoutes())}disconnectedCallback(){super.disconnectedCallback(),ei.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?.(l(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?Ft(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)}};oi.routerInstances=new Set,e([Nt()],oi.prototype,"component",void 0),e([Nt()],oi.prototype,"path",void 0),e([Mt()],oi.prototype,"pathname",void 0),e([Nt()],oi.prototype,"default",void 0),e([Mt()],oi.prototype,"type",void 0),e([Mt({type:Boolean})],oi.prototype,"cache",void 0),e([Nt()],oi.prototype,"routes",null),oi=ei=e([Rt("router"),At(m`:host{display:contents}`)],oi);var si=oi;const ri="auto";let ni=class Link extends GlobalStyle{constructor(){super(...arguments),this.type=ri,this.suppress=!1,this.replace=!1,this.target="_self",this.state={},this.handleState=()=>{switch(this.type){case ri: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:o,href:s,pathname:r,suppress:a}=this;if(!s)return;if(this.dispatchCustomEvent("navigate",{...this.observedRecord,pathname:r,state:e}),s.startsWith("#")||"normal"===o)return;this.handleState();const l=[...si.routerInstances];a||o===ri&&!l.some((t=>t.search(location.pathname)))||(t.preventDefault(),si.routerInstances.forEach((t=>{t.handlePopstate()})))}render(){return lt`<a part="root" ${Lt(this.observedRecord)} href="${this.href||ct}" target="${this.target}" @click=${this._handleClick}> ${Ft()} </a>`}};e([Mt()],ni.prototype,"type",void 0),e([Mt({type:Boolean})],ni.prototype,"suppress",void 0),e([Mt({type:Boolean})],ni.prototype,"replace",void 0),e([Mt()],ni.prototype,"href",void 0),e([Mt()],ni.prototype,"target",void 0),ni=e([Rt("link"),At(m`:host{cursor:default;display:inline-block}:host([href]){cursor:pointer}a{display:contents}`)],ni);var ai=ni;let li=class Heading extends ai{constructor(){super(...arguments),this.as="h1",this.anchor="#",this.side="left"}render(){const t=this.href||(this.id?"#"+this.id:void 0);return lt`<a part="root" href="${t||ct}"> ${this.wrapHeading(Ft(),t?lt`<i part="${Vt("anchor",this.side)}">${this.anchor}</i>`:"")} </a>`}wrapHeading(...t){switch(this.as){case"h2":return lt`<h2>${t}</h2>`;case"h3":return lt`<h3>${t}</h3>`;case"h4":return lt`<h4>${t}</h4>`;case"h5":return lt`<h5>${t}</h5>`;case"h6":return lt`<h6>${t}</h6>`;default:return lt`<h1>${t}</h1>`}}};e([Mt()],li.prototype,"as",void 0),e([Mt()],li.prototype,"anchor",void 0),e([Mt()],li.prototype,"side",void 0),li=e([Rt("heading"),At(m`: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}`)],li);var hi=li;hi.define();const di=qt("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">`,ci=m`:host([disabled]){cursor:not-allowed;filter:brightness(.85)}input:disabled{cursor:inherit}input::-ms-clear,input::-ms-reveal{display:none}`;let pi=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 l(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 lt`<i part="prefix">${Ft("prefix")}</i>`}_renderSuffix(){return lt`<i part="suffix">${Ft("suffix")}</i>`}};e([Mt()],pi.prototype,"autocomplete",void 0),e([Mt({attribute:ae})],pi.prototype,"ringType",void 0),e([Mt({type:Boolean,reflect:!0})],pi.prototype,"disabled",void 0),e([Mt({reflect:!0})],pi.prototype,"placeholder",void 0),e([Mt({reflect:!0})],pi.prototype,"name",void 0),e([Mt()],pi.prototype,"value",void 0),e([Mt()],pi.prototype,"default",void 0),e([zt("input")],pi.prototype,"_input",void 0),pi=e([At(ci)],pi);let ui=class Input extends pi{constructor(){super(),this.type="text",this.variant="default",new StyleController(this,(()=>new RingBuilder({type:this.ringType}).css+("outline"===this.variant?`:host{${oe.ringColor}:currentColor}`:"")))}render(){return lt`<label part="root" ${Lt(this.observedRecord)}> ${[this._renderPrefix(),lt`<input part="input" type="${this.type}" .value="${this.value}" ?autofocus="${this.autofocus}" ?disabled="${this.disabled}" autocapitalize="${this.autocapitalize||ct}" autocomplete="${this.autocomplete||ct}" placeholder="${this.placeholder||ct}" @input="${this._handleInput}" @change="${this._handleChange}"/>`,this._renderSuffix()]} </label>`}_renderSuffix(){const t="password";return this.type===t?lt`<i part="suffix" @mousedown="${()=>this._changeInputType("text")}" @mouseup="${()=>this._changeInputType(t)}" @mouseleave="${()=>this._changeInputType(t)}"> ${Ft("suffix",di())} </i>`:super._renderSuffix()}_changeInputType(t){this._input&&(this._input.type=t)}};e([Mt({reflect:!0})],ui.prototype,"type",void 0),e([Mt()],ui.prototype,"variant",void 0),e([zt("input")],ui.prototype,"_input",void 0),ui=e([Rt("input"),At(m`:host{display:block;${oe.input}-icon-color:grey}:host(:active),:host(:focus-within){${oe.ringColor}:currentColor;${oe.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(${oe.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}`)],ui);var vi=ui;vi.define();let fi=class Layout extends GlobalStyle{constructor(){super(...arguments),this.sticky=!1}render(){return lt`<div part="root" ${Lt(this.observedRecord)}> <header part="header">${Ft("header")}</header> <main part="main">${Ft()}</main> <footer part="footer">${Ft("footer")}</footer> </div>`}};e([Mt({type:Boolean})],fi.prototype,"sticky",void 0),fi=e([Rt("layout"),At(m`: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}`)],fi);var mi=fi;function gi(t){let e,o=function(...s){return e=t.apply(this,s),o=()=>e,e};return o}mi.define(),ai.define();const yi="popover",$i=()=>Object.hasOwn(HTMLElement.prototype,yi),bi=t=>t.getAttribute(yi),_i=t=>{t.style.display="none"},wi=gi((t=>$i()?(t=>{null!==bi(t)?t.hidePopover():_i(t)})(t):_i(t))),xi=t=>{if(t.style.display="block","manual"!==bi(t)){const e="click",o=s=>{t.contains(s.target)||(t.dispatchEvent(new Event("toggle",{bubbles:!0,composed:!0,newState:"closed"})),wi(t),document.removeEventListener(e,o))};document.addEventListener(e,o)}},ki=gi((function(t){return $i()?(t=>{null!==bi(t)?t.showPopover():xi.call(void 0,t)})(t):xi(t)})),Si="popover",Ci=Si;let Ai=class Popover extends GlobalStyle{constructor(){super(),this.anchorName=`--${Si}-${Math.random().toString(36).slice(2)}`,this.open=!1,this.action="show",this.span="span",this.position="bottom",new StyleController(this,(()=>kt({"[part=root],slot:not([name])::slotted(*)":{"anchor-name":this.anchorName},"[part=popover]":{"position-anchor":this.anchorName,"position-area":this.resolveArea()}})))}render(){return lt`<div part="root"> <div part="trigger" @click=${this._handleClick}> ${Ft()} </div> <div part="popover" popover="manual"> ${Ft("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){ki.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 wi(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]}`}`}};e([Mt({type:Boolean,reflect:!0})],Ai.prototype,"open",void 0),e([Mt()],Ai.prototype,"action",void 0),e([Mt()],Ai.prototype,"span",void 0),e([Mt()],Ai.prototype,"position",void 0),e([zt(Si)],Ai.prototype,"_popover",void 0),Ai=e([Rt(Ci),At(m`: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}`)],Ai),Ai.define();var Ri=Ai;let Ei=class Progress extends GlobalStyle{constructor(){super(...arguments),this.max=1,this.min=0}render(){let t,e=20;if(!o(this.value)){const o=new Ranger(this.min,this.max);e=(+this.value-this.min)/o.diff*100,t="static"}return lt`<div part="root" ${Lt(this.observedRecord)} class="${t}"> <i part="value" style="width:${e}%;"></i> </div>`}};e([Mt({type:Number})],Ei.prototype,"max",void 0),e([Mt({type:Number})],Ei.prototype,"min",void 0),e([Mt({type:Number})],Ei.prototype,"value",void 0),Ei=e([Rt("progress"),At(m`:host{background:var(${oe.passive});border-radius:.25em;color:var(${oe.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}`)],Ei);var Ti=Ei;Ti.define();const Mi="range",Ni=ie(Mi);let Pi=class Range extends pi{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:o}=this,s=t-o.length;return s>0?new Array(s).fill(e).concat(o):o}attributeChangedCallback(t,e,o){super.attributeChangedCallback(t,e,o),"max"!==t&&"min"!==t&&"step"!==t||(this._ranger=new Ranger(this.min,this.max,this.step))}get observedRecord(){return l(super.observedRecord,ae)}render(){const t=this.padValue(2),e=Math.min(...t),o=Math.max(...t),s=this._ranger.diff;return lt`<div part="root" ${Lt(this.observedRecord)} @mousedown="${this.disabled?null:this._handleMousedownRoot}" style="${St([["--from",(e-this.min)/s*100+"%"],["--to",(o-this.min)/s*100+"%"],...t.map(((t,e)=>[`--handle-${e}`,(t-this.min)/s*100+"%"]))])}"> <div part="track"></div> ${Yt(this.rangeValue.length,(t=>this._renderHandle(t)))} </div>`}_renderHandle(t){const{disabled:e,range:o,rangeValue:s}=this,r=!o||o&&t===s.length-1&&1===s.length;return lt`<i tabindex="0" part="${Vt("handle",`handle-${t}`)}" @mousedown="${e?null:this.createMouseDown(t)}" style="${St({"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 o=this._handles.item(t);o?.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:o,step:s}=this;o.length<2&&(t=0);const r=o[t];"ArrowLeft"===e.key||"ArrowDown"===e.key?(e.preventDefault(),this.createSetValue(t)(r-s)):"ArrowRight"!==e.key&&"ArrowUp"!==e.key||(e.preventDefault(),this.createSetValue(t)(r+s))}}createMouseDown(t){return e=>{this.focusHandle(t),this.createMousedownListener(this.createSetValue(t))(e)}}createSetValue(t){return e=>{const o=this._ranger.normalize(e);let s=o;this.range&&(s=[...this.value],s[t]=o),this.value=s,this.dispatchCustomEvent("change",this.value)}}_computeValue({clientX:t,clientY:e}){const{top:o,left:s,height:r,width:a}=this._root.getBoundingClientRect();return this._ranger.present(this.vertical?(e-o)/r:(t-s)/a)}_handleMousedownRoot(t){const e=this._computeValue(t),o=this.range?this.rangeValue.reduce(((t,o,s)=>Math.abs(e-o)<Math.abs(e-this.rangeValue[t])?s:t),0):0,s=this.createSetValue(o);s(e),this.createMousedownListener(s)(t),this.focusHandle(o)}createMousedownListener(t){return e=>{e.preventDefault(),e.stopPropagation();const o=this.createMousemoveListener(t);this.events.add(document,"mousemove",o);const s=()=>{this.events.remove(document,"mousemove",o),this.events.remove(document,"mouseup",s)};this.events.add(document,"mouseup",s)}}createMousemoveListener(t){return e=>{const o=this._computeValue(e);o===this._ranger.restrict(o)&&t?.call(this,o)}}_connectedInit(){this._ranger=new Ranger(this.min,this.max,this.step);const t=this._ranger.diff;this.step||=t/100,o(this.value)&&(o(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}};e([Mt({type:Number})],Pi.prototype,"min",void 0),e([Mt({type:Number})],Pi.prototype,"max",void 0),e([Mt({type:Number})],Pi.prototype,"step",void 0),e([Mt({type:Boolean,reflect:!0})],Pi.prototype,"vertical",void 0),e([Mt({type:Array})],Pi.prototype,"value",void 0),e([Mt({type:Array})],Pi.prototype,"default",void 0),e([zt("root")],Pi.prototype,"_root",void 0),e([It("[part=handle]")],Pi.prototype,"_handles",void 0),e([Nt()],Pi.prototype,"lastFocus",void 0),Pi=e([Rt(Mi),At(m`:host{${Ni}--track-width:.5em;${Ni}--handle-scale:1;${Ni}--track-background:var(${oe.active});background:var(${oe.passive});display:block;height:var(${Ni}--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(${Ni}--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(${oe.background});border:.1em solid;border-radius:50%;height:1em;justify-content:center;outline:0;transform:scale(var(${Ni}--handle-scale)) translate(-50%,-25%);transform-origin:0 25%;-webkit-user-select:none;user-select:none;width:1em}`,m`[vertical]{height:inherit;width:var(${Ni}--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%}`,m`[part~=handle]{left:var(--handle);top:0}[vertical] [part~=handle]{left:0;top:var(--handle)}`)],Pi);var Oi=Pi;Oi.define();const Bi="rotate",Ii=ie(Bi);let zi=class Rotate extends GlobalStyle{render(){return lt`<div part="root"> <div part="slot" @mousemove="${this._handleRotate}"> ${Ft()} </div> <i @mouseleave="${this.reset}"></i> </div>`}reset(){this._root.style.removeProperty("transform"),this._root.style.removeProperty("transition")}_handleRotate(t){const{rotateX:e,rotateY:o}=this._computeOffset(t);this._root.style.setProperty("transform",`rotateX(${e}rad) rotateY(${o}rad)`),this._root.style.setProperty("transition","0s")}_computeOffset(t){const{left:e,top:o,width:s,height:r}=this._root.getBoundingClientRect(),{clientX:a,clientY:l}=t;return{rotateX:-(l-o-r/2)/r/2,rotateY:(a-e-s/2)/s/2}}};e([zt("root")],zi.prototype,"_root",void 0),zi=e([Rt(Bi),At(m`:host{display:block;transition:all .5s ease-in-out;width:-moz-fit-content;width:fit-content;${Ii}--offset:.5em}div{position:relative;transition:inherit;transition-property:transform}i{box-sizing:content-box;height:100%;margin:calc(var(${Ii}--offset)*-1);padding:var(${Ii}--offset);position:absolute;top:0;width:100%}[part=slot]{z-index:2}`)],zi);var Di=zi;Di.define(),si.define();const Ui=gi((()=>CSS.supports("position-area:top")));function ji(t,e){if(t){const o="selected";e?t.setAttribute(o,""):t.removeAttribute(o)}}let Vi=class Select extends vi{constructor(){super(...arguments),this.multiple=!1,this.noEdit=!1,this.values=[],this.optionsVisible=!1}render(){const t=this.noEdit||this.disabled;return lt`<label part="root" ${Lt(this.observedRecord)}> ${[this._renderPrefix(),this.noEdit?lt`<input style="position: absolute;inset: 0;opacity: 0;"/>`:"",lt`<input part="input" .value="${this.text}" ?autofocus="${this.autofocus}" ?disabled="${t}" autocapitalize="${this.autocapitalize||ct}" autocomplete="${this.autocomplete||ct}" placeholder="${this.placeholder||ct}" @input="${t?null:this._handleInput}" @change="${t?null:this._handleChange}"/>`,this._renderSuffix()]} <div part="popover" popover="${Ui()?"manual":ct}"> ${Ft()} </div> </label>`}_renderSuffix(){return lt`<i part="suffix">${Ft("suffix",Be())}</i>`}firstUpdated(){this.events.add(this._slot,"click",(t=>{const{target:e}=t;if("OPTION"!==e.tagName)return;t.preventDefault();const{label:o,value:s}=e,r=this.select(s,o);this.multiple||(ji(this.lastChecked,0),this.hideOptions()),ji(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 o=0;const s=this.values.findIndex((e=>e.value===t));return s>-1?this.values.splice(s,1):(this.values.push({value:t,label:e}),o=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),o}checkValues(){!this.multiple&&this.values.length>1&&(this.values.splice(0,this.values.length-1),this.requestUpdate())}showOptions(){if(this.optionsVisible)return;ki(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&&(wi(this._popover),this.optionsVisible=!1)}focus(t){super.focus(),this._input.focus(t),this.showOptions()}blur(){super.blur(),this._input.blur(),wi(this._popover)}};e([Mt()],Vi.prototype,"text",void 0),e([Mt({type:Boolean})],Vi.prototype,"multiple",void 0),e([Mt({type:Boolean})],Vi.prototype,"noEdit",void 0),e([Mt({type:Array})],Vi.prototype,"values",void 0),e([zt("popover")],Vi.prototype,"_popover",void 0),Vi=e([Rt("select"),At(m`[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%}}`)],Vi);var Hi=Vi;Hi.define();const Li="skeleton",Gi=ie(Li);let Fi=class Skeleton extends GlobalStyle{constructor(){super(...arguments),this.loading=!0}render(){return this.loading?lt`<div part="root">${Ft("loading")}</div>`:Ft()}};e([Nt()],Fi.prototype,"loading",void 0),Fi=e([Rt(Li),At(m`:host{${Gi}--from:var(${oe.background});${Gi}--to:var(${oe.passive});${Gi}--deg:95deg;${Gi}--duration:2s;animation:_ var(${Gi}--duration) ease-in-out infinite none running;background-color:transparent;background-image:linear-gradient(var(${Gi}--deg),var(${Gi}--from) 36%,var(${Gi}--to) 50%,var(${Gi}--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}`)],Fi);var Wi=Fi;Wi.define();const qi="split",Yi=ie(qi);let Xi=class Split extends pi{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 l(super.observedRecord,ae)}render(){return lt`<div part="root" ${Lt(this.observedRecord)}> ${Yt(this.len,(t=>lt`<span part="input-box" ring-type="${this.ringType}" class="${Vt({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)}};e([Mt({type:Number})],Xi.prototype,"len",void 0),e([Mt({type:Number})],Xi.prototype,"index",void 0),e([Nt()],Xi.prototype,"current",void 0),e([Nt()],Xi.prototype,"currentValue",void 0),Xi=e([Rt(qi),At(m`:host{border-radius:.1em;display:block;width:-moz-fit-content;width:fit-content;${Yi}--size:2em;${Yi}--gap:.25em}[part=root]{display:flex;gap:var(${Yi}--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(${Yi}--size);justify-content:center;width:var(${Yi}--size)}[part=input]{background:none;height:100%;opacity:0;position:absolute;width:100%;z-index:-1}.focus,[part=input-box]:active{${oe.ringColor}:var(${oe.active})}`)],Xi);var Zi=Xi;Zi.define();const Ki="switch",Qi=ie(Ki);let Ji=class Switch extends pi{constructor(){super(...arguments),this.default=!1,this.value=!1}set checked(t){this.value=t}get checked(){return this.value}get observedRecord(){return l(super.observedRecord,ae)}render(){return lt`<div part="root" ${Lt(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)}};e([Mt({type:Boolean})],Ji.prototype,"default",void 0),e([Mt({type:Boolean,attribute:"checked",reflect:!0})],Ji.prototype,"value",void 0),Ji=e([Rt(Ki),At(m`:host,:host([contents]) [part=root]{display:inline-block}:host{${Qi}-width:3em;${Qi}-height:calc(var(${Qi}-width)/2);${Qi}-handle-size:1.25em;${Qi}-handle-space:calc(var(${Qi}-width)/4 - var(${Qi}-handle-size)/2);background:var(${oe.passive});border-radius:calc(var(${Qi}-height)/2);height:var(${Qi}-height);transition:.2s ease-in-out;transition-property:background,left;vertical-align:bottom;width:var(${Qi}-width)}:host([checked]){background:var(${oe.active})}[part=root]{position:relative}[part=handle],[part=root]{align-items:center;display:flex;transition:inherit}[part=handle]{background:var(${oe.background});border-radius:100%;height:var(${Qi}-handle-size);justify-content:center;left:0;pointer-events:none;position:absolute;top:50%;transform:translateY(-50%) translateX(var(${Qi}-handle-space));width:var(${Qi}-handle-size)}:host([checked]) [part=handle]{left:50%}[part=input]{height:100%;opacity:0;width:100%}`)],Ji);var to=Ji;to.define();let eo=class Text extends GlobalStyle{constructor(){super(...arguments),this.underline="none",this.nowrap=!1,this.italic=!1,this.truncate=!1,this.clip=!1}render(){return lt`<p part="root">${Ft()}</p>`}};e([Mt({converter:{fromAttribute:t=>""===t||t,toAttribute:t=>!1===t?null:!0===t?"":t},reflect:!0})],eo.prototype,"underline",void 0),e([Mt({type:Boolean,reflect:!0})],eo.prototype,"nowrap",void 0),e([Mt({type:Boolean,reflect:!0})],eo.prototype,"italic",void 0),e([Mt({type:Boolean,reflect:!0})],eo.prototype,"truncate",void 0),e([Mt({type:Boolean,reflect:!0})],eo.prototype,"clip",void 0),eo=e([Rt("text"),At(m`:host([clip]){background:var(${oe.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}`)],eo);var io=eo;io.define();const oo="tabs",so=ie(oo),ro="hover";let no=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 lt`<ul part="root" ${Lt(this.observedRecord)} @mouseleave="${this._handleMouseLeave}"> ${this.tabs?.map(((t,e)=>lt`<li part="${Vt("item",this.index===e&&"selected")}" @mouseenter=${()=>{this.move(this.previousIndex,e),this.previousIndex=e}} @click=${()=>this.select(e)}> ${Ft(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(ro),this.previousIndex="selected"===this.beginning?this.index:-1}move(t,e){if(t===e)return;const{_items:o,_indicators:s}=this,r=o[e];if(!r)return;r.part.add(ro);const a=o[t];if(!a)return;if(a.part.remove(ro),"none"===this.beginning)return;const l=s[e],h=s[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:o}=this;this.move(o,t),t!==e&&(this.previousIndex=t,this.index=t,this.dispatchCustomEvent("select",t))}};e([Mt({attribute:ae})],no.prototype,"ringType",void 0),e([Mt()],no.prototype,"beginning",void 0),e([Mt()],no.prototype,"indicator",void 0),e([Mt({type:Array})],no.prototype,"tabs",void 0),e([Mt({type:Number})],no.prototype,"index",void 0),e([It("[part~=item]")],no.prototype,"_items",void 0),e([It("[part=indicator]")],no.prototype,"_indicators",void 0),no=e([Rt(oo),At(m`:host{${so}--indicator-background:var(${oe.passive});${so}--selected-background:var(${oe.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(${so}--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(${so}--selected-background);content:""}[part~=hover] [part=indicator]{opacity:1}`)],no);var ao=no;function lo(t,e=2){return t.toString().padStart(e,"0").split("")}ao.define();let ho=class Time extends io{constructor(){super(...arguments),this.escape="%",this.format="YYYY-MM-DD hh:mm:ss",this.time=new Date}render(){return lt`<p part="root">${function(t,e=new Date,o="%"){var s;if(!t)return t;if(isNaN(e.getTime()))return;const r=`${o}${o}`,a=[];t=t.replace(new RegExp(`${o}([ZYMDhmsS${o}])`,"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:lo(e.getMonth()+1),D:lo(e.getDate()),h:lo(e.getHours()),m:lo(e.getMinutes()),s:lo(e.getSeconds()),S:lo(e.getMilliseconds(),3)},d=[];for(const e of t.split("").reverse()){const t=null===(s=h[e])||void 0===s?void 0:s.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))))}};e([Mt()],ho.prototype,"escape",void 0),e([Mt()],ho.prototype,"format",void 0),e([Mt({type:Object})],ho.prototype,"time",void 0),e([Mt({type:Number})],ho.prototype,"timeout",void 0),e([Mt({type:Number})],ho.prototype,"gap",void 0),ho=e([Rt("time")],ho);var co=ho;co.define();let po=class Tooltip extends Ai{constructor(){super(...arguments),this.delay=300}render(){return lt`<div part="root"> <div part="trigger" @click=${this.hide}> ${Ft()} </div> <div part="popover" popover="manual"> ${Ft("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)}))}};e([Mt()],po.prototype,"tip",void 0),e([Mt({type:Number})],po.prototype,"delay",void 0),po=e([Rt("tooltip")],po);var uo=po;uo.define();const vo="typewriter",fo=ie(vo);let mo=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 lt`<div part="root" ${Lt(this.observedRecord)}> ${Ft()} ${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}};e([Mt()],mo.prototype,"content",void 0),e([Mt({type:Boolean})],mo.prototype,"ended",void 0),e([Mt({type:Number})],mo.prototype,"max",void 0),e([Mt({type:Number})],mo.prototype,"min",void 0),e([Mt({type:Number})],mo.prototype,"delay",void 0),e([Mt({type:Number})],mo.prototype,"index",void 0),e([Nt()],mo.prototype,"contentInternal",void 0),e([Ot("i")],mo.prototype,"_i",void 0),mo=e([Rt(vo),At(m`:host{${fo}--cursor-width:.05em}:host,:host([contents]) [part=root]{display:inline-block}i{animation:s 1.5s steps(1) infinite;border-right:var(${fo}--cursor-width) solid;margin-left:.02em}@keyframes s{0%{border-color:currentColor}50%{border-color:transparent}}slot{display:none}`)],mo);var go=mo;return go.define(),t.Alert=he,t.Avatar=ce,t.Badge=ge,t.Breath=we,t.Button=fe,t.Card=Se,t.Carousel=Te,t.Chip=Oe,t.Details=Ue,t.Dialog=Le,t.Divider=Fe,t.Dragbox=qe,t.Flex=Ze,t.Form=Qe,t.Grid=ii,t.Heading=hi,t.Input=vi,t.Layout=mi,t.Link=ai,t.Popover=Ri,t.Progress=Ti,t.Range=Oi,t.Rotate=Di,t.Router=si,t.Select=Hi,t.Skeleton=Wi,t.Split=Zi,t.Switch=to,t.Tabs=ao,t.Text=io,t.Time=co,t.Tooltip=uo,t.Typewriter=go,t}({});
1
+ var Godown=function(exports){"use strict";let t=e=>e==null,n=e=>!Number.isNaN(+e),r=e=>typeof e==`string`,i=e=>typeof e==`symbol`,a=e=>typeof e==`number`,o=e=>typeof e==`object`&&!!e,{isArray:s}=Array,c=(e,...t)=>{let n={};for(let r in e)t.includes(r)||(n[r]=e[r]);return n},l=(e,t)=>{if(!e||!t)return e;let n=0;for(;n<e.length&&t(e.slice(n,n+1));)n+=1;return e.slice(n)},u=(e,t)=>{if(!e||!t)return e;let n=e.length;for(;n>0&&t(e.slice(n-1,n));)--n;return e.slice(0,n)},d=(e,t)=>l(u(e,t),t),ee=(e,t)=>d(e,e=>e===t),te=e=>{var t;return(t=e.match(/[A-Z][^A-Z_-\s]*|[^A-Z_-\s]+/g))?.map(e=>e.toLowerCase())||[]},ne=e=>te(e).join(`-`),f=`-`;class re{constructor(e){this.assign=null,this.prefix=`godown`,this.suffix=``,this.components=new Map,this.registry=customElements,e&&Object.assign(this,e)}tag(e){return ne(this.prefix+f+e+f+this.suffix)}define(e,t,n){this.registry.define(e,t,n),this.components.set(e,t)}get(e){return this.registry.get(e)}getName(e){let{getName:t}=this.registry;return t?t(e):[...this.components.entries()].find(([,t])=>t===e)?.[0]||null}whenDefined(e){return this.registry.whenDefined(e)}upgrade(e){this.registry.upgrade(e)}}let ie=globalThis,ae=ie.ShadowRoot&&(ie.ShadyCSS===void 0||ie.ShadyCSS.nativeShadow)&&`adoptedStyleSheets`in Document.prototype&&`replace`in CSSStyleSheet.prototype,oe=Symbol(),se=new WeakMap,ce=class e{constructor(e,t,n){if(this._$cssResult$=!0,n!==oe)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(ae&&e===void 0){let n=t!==void 0&&t.length===1;n&&(e=se.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&se.set(t,e))}return e}toString(){return this.cssText}},le=e=>new ce(typeof e==`string`?e:e+``,void 0,oe),p=(e,...t)=>{let n=e.length===1?e[0]:t.reduce((t,n,r)=>t+(e=>{if(e._$cssResult$===!0)return e.cssText;if(typeof e==`number`)return e;throw Error(`Value passed to 'css' function must be a 'css' function result: `+e+`. Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.`)})(n)+e[r+1],e[0]);return new ce(n,e,oe)},ue=(e,t)=>{if(ae)e.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let n of t){let t=document.createElement(`style`),r=ie.litNonce;r!==void 0&&t.setAttribute(`nonce`,r),t.textContent=n.cssText,e.appendChild(t)}},de=ae?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t=``;for(let n of e.cssRules)t+=n.cssText;return le(t)})(e):e,{is:fe,defineProperty:pe,getOwnPropertyDescriptor:me,getOwnPropertyNames:he,getOwnPropertySymbols:ge,getPrototypeOf:_e}=Object,ve=globalThis,ye=ve.trustedTypes,be=ye?ye.emptyScript:``,xe=ve.reactiveElementPolyfillSupport,Se=(e,t)=>e,Ce={toAttribute(e,t){switch(t){case Boolean:e=e?be:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=e!==null;break;case Number:n=e===null?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch{n=null}}return n}},we=(e,t)=>!fe(e,t),Te={attribute:!0,type:String,converter:Ce,reflect:!1,useDefault:!1,hasChanged:we};Symbol.metadata??=Symbol(`metadata`),ve.litPropertyMetadata??=new WeakMap;let Ee=class e extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=Te){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let n=Symbol(),r=this.getPropertyDescriptor(e,n,t);r!==void 0&&pe(this.prototype,e,r)}}static getPropertyDescriptor(e,t,n){let{get:r,set:i}=me(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get:r,set(t){let a=r?.call(this);i?.call(this,t),this.requestUpdate(e,a,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Te}static _$Ei(){if(this.hasOwnProperty(Se(`elementProperties`)))return;let e=_e(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Se(`finalized`)))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Se(`properties`))){let e=this.properties,t=[...he(e),...ge(e)];for(let n of t)this.createProperty(n,e[n])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[e,n]of t)this.elementProperties.set(e,n)}this._$Eh=new Map;for(let[e,t]of this.elementProperties){let n=this._$Eu(e,t);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let e of n)t.unshift(de(e))}else e!==void 0&&t.push(de(e));return t}static _$Eu(e,t){let n=t.attribute;return n===!1?void 0:typeof n==`string`?n:typeof e==`string`?e.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(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,t=this.constructor.elementProperties;for(let n of t.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return ue(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$ET(e,t){let n=this.constructor.elementProperties.get(e),r=this.constructor._$Eu(e,n);if(r!==void 0&&n.reflect===!0){let i=(n.converter?.toAttribute===void 0?Ce:n.converter).toAttribute(t,n.type);this._$Em=e,i==null?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(e,t){let n=this.constructor,r=n._$Eh.get(e);if(r!==void 0&&this._$Em!==r){let e=n.getPropertyOptions(r),i=typeof e.converter==`function`?{fromAttribute:e.converter}:e.converter?.fromAttribute===void 0?Ce:e.converter;this._$Em=r,this[r]=i.fromAttribute(t,e.type)??this._$Ej?.get(r)??null,this._$Em=null}}requestUpdate(e,t,n){if(e!==void 0){let r=this.constructor,i=this[e];if(n??=r.getPropertyOptions(e),!((n.hasChanged??we)(i,t)||n.useDefault&&n.reflect&&i===this._$Ej?.get(e)&&!this.hasAttribute(r._$Eu(e,n))))return;this.C(e,t,n)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:n,reflect:r,wrapped:i},a){n&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,a??t??this[e]),i!==!0||a!==void 0)||(this._$AL.has(e)||(this.hasUpdated||n||(t=void 0),this._$AL.set(e,t)),r===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}let e=this.constructor.elementProperties;if(e.size>0)for(let[t,n]of e){let{wrapped:e}=n,r=this[t];e!==!0||this._$AL.has(t)||r===void 0||this.C(t,void 0,n,r)}}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(e){}firstUpdated(e){}};Ee.elementStyles=[],Ee.shadowRootOptions={mode:`open`},Ee[Se(`elementProperties`)]=new Map,Ee[Se(`finalized`)]=new Map,xe?.({ReactiveElement:Ee}),(ve.reactiveElementVersions??=[]).push(`2.1.0`);let De=globalThis,Oe=De.trustedTypes,ke=Oe?Oe.createPolicy(`lit-html`,{createHTML:e=>e}):void 0,Ae=`$lit$`,m=`lit$${Math.random().toFixed(9).slice(2)}$`,je=`?`+m,Me=`<${je}>`,h=document,Ne=()=>h.createComment(``),Pe=e=>e===null||typeof e!=`object`&&typeof e!=`function`,Fe=Array.isArray,Ie=e=>Fe(e)||typeof e?.[Symbol.iterator]==`function`,Le=`[
2
+ \f\r]`,Re=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ze=/-->/g,Be=/>/g,g=RegExp(`>|${Le}(?:([^\\s"'>=/]+)(${Le}*=${Le}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,`g`),Ve=/'/g,He=/"/g,Ue=/^(?:script|style|textarea|title)$/i,We=e=>(t,...n)=>({_$litType$:e,strings:t,values:n}),_=We(1),Ge=We(2),v=Symbol.for(`lit-noChange`),y=Symbol.for(`lit-nothing`),Ke=new WeakMap,qe=h.createTreeWalker(h,129);function Je(e,t){if(!Fe(e)||!e.hasOwnProperty(`raw`))throw Error(`invalid template strings array`);return ke===void 0?t:ke.createHTML(t)}let Ye=(e,t)=>{let n=e.length-1,r=[],i,a=t===2?`<svg>`:t===3?`<math>`:``,o=Re;for(let t=0;t<n;t++){let n=e[t],s,c,l=-1,u=0;for(;u<n.length&&(o.lastIndex=u,c=o.exec(n),c!==null);)u=o.lastIndex,o===Re?c[1]===`!--`?o=ze:c[1]===void 0?c[2]===void 0?c[3]!==void 0&&(o=g):(Ue.test(c[2])&&(i=RegExp(`</`+c[2],`g`)),o=g):o=Be:o===g?c[0]===`>`?(o=i??Re,l=-1):c[1]===void 0?l=-2:(l=o.lastIndex-c[2].length,s=c[1],o=c[3]===void 0?g:c[3]===`"`?He:Ve):o===He||o===Ve?o=g:o===ze||o===Be?o=Re:(o=g,i=void 0);let d=o===g&&e[t+1].startsWith(`/>`)?` `:``;a+=o===Re?n+Me:l>=0?(r.push(s),n.slice(0,l)+Ae+n.slice(l)+m+d):n+m+(l===-2?t:d)}return[Je(e,a+(e[n]||`<?>`)+(t===2?`</svg>`:t===3?`</math>`:``)),r]};class Xe{constructor({strings:e,_$litType$:t},n){let r;this.parts=[];let i=0,a=0,o=e.length-1,s=this.parts,[c,l]=Ye(e,t);if(this.el=Xe.createElement(c,n),qe.currentNode=this.el.content,t===2||t===3){let e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;(r=qe.nextNode())!==null&&s.length<o;){if(r.nodeType===1){if(r.hasAttributes())for(let e of r.getAttributeNames())if(e.endsWith(Ae)){let t=l[a++],n=r.getAttribute(e).split(m),o=/([.?@])?(.*)/.exec(t);s.push({type:1,index:i,name:o[2],strings:n,ctor:o[1]===`.`?tt:o[1]===`?`?nt:o[1]===`@`?rt:et}),r.removeAttribute(e)}else e.startsWith(m)&&(s.push({type:6,index:i}),r.removeAttribute(e));if(Ue.test(r.tagName)){let e=r.textContent.split(m),t=e.length-1;if(t>0){r.textContent=Oe?Oe.emptyScript:``;for(let n=0;n<t;n++)r.append(e[n],Ne()),qe.nextNode(),s.push({type:2,index:++i});r.append(e[t],Ne())}}}else if(r.nodeType===8)if(r.data===je)s.push({type:2,index:i});else{let e=-1;for(;(e=r.data.indexOf(m,e+1))!==-1;)s.push({type:7,index:i}),e+=m.length-1}i++}}static createElement(e,t){let n=h.createElement(`template`);return n.innerHTML=e,n}}function Ze(e,t,n=e,r){if(t===v)return t;let i=r===void 0?n._$Cl:n._$Co?.[r],a=Pe(t)?void 0:t._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),a===void 0?i=void 0:(i=new a(e),i._$AT(e,n,r)),r===void 0?n._$Cl=i:(n._$Co??=[])[r]=i),i!==void 0&&(t=Ze(e,i._$AS(e,t.values),i,r)),t}class Qe{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:n}=this._$AD,r=(e?.creationScope??h).importNode(t,!0);qe.currentNode=r;let i=qe.nextNode(),a=0,o=0,s=n[0];for(;s!==void 0;){if(a===s.index){let t;s.type===2?t=new $e(i,i.nextSibling,this,e):s.type===1?t=new s.ctor(i,s.name,s.strings,this,e):s.type===6&&(t=new it(i,this,e)),this._$AV.push(t),s=n[++o]}a!==s?.index&&(i=qe.nextNode(),a++)}return qe.currentNode=h,r}p(e){let t=0;for(let n of this._$AV)n!==void 0&&(n.strings===void 0?n._$AI(e[t]):(n._$AI(e,n,t),t+=n.strings.length-2)),t++}}class $e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,n,r){this.type=2,this._$AH=y,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Ze(this,e,t),Pe(e)?e===y||e==null||e===``?(this._$AH!==y&&this._$AR(),this._$AH=y):e!==this._$AH&&e!==v&&this._(e):e._$litType$===void 0?e.nodeType===void 0?Ie(e)?this.k(e):this._(e):this.T(e):this.$(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==y&&Pe(this._$AH)?this._$AA.nextSibling.data=e:this.T(h.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:n}=e,r=typeof n==`number`?this._$AC(e):(n.el===void 0&&(n.el=Xe.createElement(Je(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===r)this._$AH.p(t);else{let e=new Qe(r,this),n=e.u(this.options);e.p(t),this.T(n),this._$AH=e}}_$AC(e){let t=Ke.get(e.strings);return t===void 0&&Ke.set(e.strings,t=new Xe(e)),t}k(e){Fe(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,n,r=0;for(let i of e)r===t.length?t.push(n=new $e(this.O(Ne()),this.O(Ne()),this,this.options)):n=t[r],n._$AI(i),r++;r<t.length&&(this._$AR(n&&n._$AB.nextSibling,r),t.length=r)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e&&e!==this._$AB;){let t=e.nextSibling;e.remove(),e=t}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}}class et{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,n,r,i){this.type=1,this._$AH=y,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=i,n.length>2||n[0]!==``||n[1]!==``?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=y}_$AI(e,t=this,n,r){let i=this.strings,a=!1;if(i===void 0)e=Ze(this,e,t,0),a=!Pe(e)||e!==this._$AH&&e!==v,a&&(this._$AH=e);else{let r=e,o,s;for(e=i[0],o=0;o<i.length-1;o++)s=Ze(this,r[n+o],t,o),s===v&&(s=this._$AH[o]),a||=!Pe(s)||s!==this._$AH[o],s===y?e=y:e!==y&&(e+=(s??``)+i[o+1]),this._$AH[o]=s}a&&!r&&this.j(e)}j(e){e===y?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??``)}}class tt extends et{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===y?void 0:e}}class nt extends et{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==y)}}class rt extends et{constructor(e,t,n,r,i){super(e,t,n,r,i),this.type=5}_$AI(e,t=this){if((e=Ze(this,e,t,0)??y)===v)return;let n=this._$AH,r=e===y&&n!==y||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==y&&(n===y||r);r&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH==`function`?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}class it{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){Ze(this,e)}}let at=De.litHtmlPolyfillSupport;at?.(Xe,$e),(De.litHtmlVersions??=[]).push(`3.3.0`);let ot=(e,t,n)=>{let r=n?.renderBefore??t,i=r._$litPart$;if(i===void 0){let e=n?.renderBefore??null;r._$litPart$=i=new $e(t.insertBefore(Ne(),e),e,void 0,n??{})}return i._$AI(e),i},st=globalThis,ct=class e extends Ee{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=ot(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return v}};ct._$litElement$=!0,ct.finalized=!0,st.litElementHydrateSupport?.({LitElement:ct});let lt=st.litElementPolyfillSupport;lt?.({LitElement:ct}),(st.litElementVersions??=[]).push(`4.2.0`);function*ut(e){for(let t of s(e)?e:Object.entries(e))t&&(yield t)}let dt=e=>o(e)&&`_$cssResult$`in e,ft=e=>!t(e)&&e!==!1,pt=e=>{if(r(e)){let t=new CSSStyleSheet;return t.replaceSync(e),t}return dt(e)?e.styleSheet:e},mt=(e,t)=>t?`[${e}~="${t}"]`:`[${e}]`,ht=(e,t)=>t?`::part(${e})`:mt(`part`,e),gt=e=>{let t=``;for(let[n,r]of ut(e))if(r){let e=o(r)&&!dt(r)?_t(r):r;ft(e)&&(t+=n?`${n}{${e}}`:e)}return t},_t=e=>{let t=``;for(let[n,r]of ut(e))n&&ft(r)&&(t+=`${n}:${r};`);return t},vt=(e,{truecase:t,falsecase:n})=>{let r=`@supports`,i=``;return t&&(i+=`${r}(${e}){${t}}`),n&&(i+=`${r} not (${e}){${n}}`),i},yt=(e,t,n)=>{let r=[...ut(t)],i=([e,[t,n]])=>[e,`light-dark(${t},${n})`],a=([e,t])=>[e,t[n]];return vt(`color:light-dark(#fff,#000)`,{truecase:gt([[e,_t(r.map(i))]]),falsecase:gt([[e,_t(r.map(a))]])})},b=(e,t)=>e?`var(${e})`:``;class bt{constructor(e,t){(this.host=e).addController(this),this.computeStyle=t}hostUpdated(){let e=this.host.shadowRoot?.adoptedStyleSheets;if(!e)return;this.styleID!==void 0&&e.splice(this.styleID,1);let t=this.computeStyle();if(!t){this.styleID=void 0;return}this.styleID=e.push(pt(t))-1}}let x=(...e)=>t=>{let n=[];for(let e=Object.getPrototypeOf(t);e.styles;e=Object.getPrototypeOf(e))n.push(e.styles);t.styles=[...n,...e]},xt=({tagName:e,styles:t,autoDefine:n=!1,registry:r=customElements})=>i=>{i.elementTagName=e,t&&x(t)(i),n&&!r.get(e)&&r.define(e,i)},S=(e,t)=>n=>{e||=ne(n.name),n.protoName=e;let r=n.godownConfig.tag(e);xt({tagName:r,...t})(n)},St={attribute:!0,type:String,converter:Ce,reflect:!1,hasChanged:we},Ct=(e=St,t,n)=>{let{kind:r,metadata:i}=n,a=globalThis.litPropertyMetadata.get(i);if(a===void 0&&globalThis.litPropertyMetadata.set(i,a=new Map),r===`setter`&&((e=Object.create(e)).wrapped=!0),a.set(n.name,e),r===`accessor`){let{name:r}=n;return{set(n){let i=t.get.call(this);t.set.call(this,n),this.requestUpdate(r,i,e)},init(t){return t!==void 0&&this.C(r,void 0,e,t),t}}}if(r===`setter`){let{name:r}=n;return function(n){let i=this[r];t.call(this,n),this.requestUpdate(r,i,e)}}throw Error(`Unsupported decorator location: `+r)};function C(e){return(t,n)=>typeof n==`object`?Ct(e,t,n):((e,t,n)=>{let r=t.hasOwnProperty(n);return t.constructor.createProperty(n,e),r?Object.getOwnPropertyDescriptor(t,n):void 0})(e,t,n)}function w(e){return C({...e,state:!0,attribute:!1})}let wt=(e,t,n)=>(n.configurable=!0,n.enumerable=!0,Reflect.decorate&&typeof t!=`object`&&Object.defineProperty(e,t,n),n);function Tt(e,t){return(n,r,i)=>{let a=t=>t.renderRoot?.querySelector(e)??null;if(t){let{get:e,set:t}=typeof r==`object`?n:i??(()=>{let e=Symbol();return{get(){return this[e]},set(t){this[e]=t}}})();return wt(n,r,{get(){let n=e.call(this);return n===void 0&&(n=a(this),(n!==null||this.hasUpdated)&&t.call(this,n)),n}})}return wt(n,r,{get(){return a(this)}})}}let Et;function Dt(e){return(t,n)=>wt(t,n,{get(){return(this.renderRoot??(Et??=document.createDocumentFragment())).querySelectorAll(e)}})}let T=(e,t=!0)=>Tt(ht(e),t),Ot={ELEMENT:6},kt=e=>(...t)=>({_$litDirective$:e,values:t});class At{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}let jt=(e,t)=>(e?e+(t?` `+t:``):t)||``,Mt=(...e)=>e.reduce((e,t)=>{if(!t)return e;if(s(t))return jt(e,Mt(...t));if(o(t)){for(let n in t)t[n]&&(e=jt(e,n));return e}return jt(e,t)},``),Nt=e=>t(e)||e===!1;function Pt(e,t){Nt(t)?this.removeAttribute(e):t===!0?this.setAttribute(e,``):r(t)||a(t)&&!Number.isNaN(t)?this.setAttribute(e,String(t)):this[e]=t}class Ft extends At{render(e,t){}update(e,[t,n=Pt]){if(t&&e.type===Ot.ELEMENT)for(let r in t)n.call(e.element,r,t[r]);return v}}let E=kt(Ft),It={width:`1em`,height:`1em`,xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`},Lt=(e,t)=>n=>e({...t,...n}),Rt=Lt(E,It),D=(e,t)=>_`<slot name="${e||y}">${t||y}</slot>`,zt=(e,t)=>{if(!e)return y;let n=r(e)?e:gt(e);return n?_`<style media="${y}">${n}</style>`:y},Bt=e=>(t,...n)=>{let i=Ge(t,n),a=r(e)?e:e.join(` `),o=e=>_`<svg viewBox="${a}" ${Rt(e)}>${i}</svg>`;return o.body=i,o.viewBox=a,o};function*Vt(e,t,n){for(let n=0;n<e;n++)yield t(n)}function Ht(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}typeof SuppressedError==`function`&&SuppressedError;function Ut(e,t=this){if(!t||!e)return[];let n=new Set;t instanceof Element&&t.shadowRoot&&Ut(e,t.shadowRoot).forEach(e=>n.add(e)),t.querySelectorAll(e).forEach(e=>n.add(e));for(let r of t.children)Ut(e,r).forEach(e=>n.add(e));return Array.from(n)}function Wt(e,t=this){if(!t||!e)return null;let n;if(t instanceof Element&&t.shadowRoot&&(n=Wt(e,t.shadowRoot),n)||(n=t.querySelector(e),n))return n;for(let r of t.children)if(n=Wt(e,r),n)return n;return null}class Gt{constructor(){this.inner=new Map}add(e,t,n,r){if(!e||!n)return;let i=this.inner.get(t)||new Map,a=i.get(e)||new Set;return a.add(n),i.set(e,a),this.inner.set(t,i),e.addEventListener(t,n,r),n}remove(e,t,n,r){if(!e||!n)return;let i=this.inner.get(t);if(i){let r=i.get(e);r&&(r.delete(n),r.size||(i.delete(e),i.size||this.inner.delete(t)))}e.removeEventListener(t,n,r)}removeAll(){this.inner.forEach((e,t)=>{e.forEach((e,n)=>{e.forEach(e=>{n.removeEventListener(t,e)})}),e.clear()}),this.inner.clear()}}let Kt=(e,t,n)=>{let r,i;switch(e){case MutationObserver:case ResizeObserver:r=new e(t),i=e=>r.observe(e,n);break;case IntersectionObserver:r=new e(t,n),i=e=>r.observe(e);break;case PerformanceObserver:r=new e(t),i=()=>r.observe(n);break}return[r,i]};class qt{constructor(){this.inner=new Map}add(e,t,n,r){let[i,a]=Kt(t,n,r);if(i)return this.inner.set(i,(this.inner.get(i)||new Set).add(e)),a(e),i}remove(e,t){e.disconnect();let n=this.inner.get(e);`unobserve`in e?(t?(e.unobserve(t),n?.delete(t)):(n?.forEach(t=>{e.unobserve(t)}),n?.clear()),n&&!n.size&&this.inner.delete(e)):n&&this.inner.delete(e)}removeAll(){this.inner.forEach((e,t)=>{this.remove(t)})}}class Jt{constructor(e,t,n){this.max=Math.max(e,t),this.min=Math.min(e,t),this.diff=this.max-this.min,this.step=n}random(){return this.normalize(Math.random()*this.diff+this.min)}present(e){return this.normalize(e*this.diff)}normalize(e){return e=this.restrict(e),this.step?this.min+Math.round((e-this.min)/this.step)*this.step:e}restrict(e){return this.max<=e?this.max:this.min>=e?this.min:e}}let O={strict:0,single:1,multi:2},Yt=e=>{for(let t=0;t<e.length;t++)if(e[t]!==`/`)return e.slice(t);return e},Xt=e=>{if(e=Yt(e),e===``)return[``,``];let t=e.indexOf(`/`);return t===-1?[e,``]:[e.slice(0,t),e.slice(t+1)]},Zt=e=>{if(e.length>1){let t=e[0],n=e[e.length-1];if(t===`{`&&n===`}`||t===`[`&&n===`]`){e=e.slice(1,e.length-1);let t=Zt(e);return t.matchType===O.strict&&(t.matchType=O.single),t}if(t===`:`)return{key:e.slice(1),matchType:O.single};if(t===`*`)return{key:e.slice(1),matchType:O.multi};if(e.startsWith(`...`))return{key:e.slice(3),matchType:O.multi};if(e.endsWith(`...`))return{key:e.slice(-3),matchType:O.multi}}return{key:e,matchType:O.strict}},Qt=(e,t)=>{let n={},r,i;for(;[r,e]=Xt(e),[i,t]=Xt(t),!(i===``||r===``);){let t=Zt(i);switch(t.matchType){case O.single:n[t.key]=r;break;case O.multi:return n[t.key]=r,e!==``&&(n[t.key]+=`/`+e),n}}return n},k=class e{constructor(){this.match=O.strict,this.children=[],this.part=``,this.match=O.strict,this.pattern=``,this.children=[]}insert(e){this._insert(e,e),this.sort()}_insert(t,n){if(t===``){this.pattern=n;return}let[r,i]=Xt(t),a=this.findStrict(r);a||(a=new e,a.part=r,a.match=Zt(r).matchType,this.children.push(a)),a._insert(i,n)}search(e){if(e===``)return this.pattern===``?null:this;let[t,n]=Xt(e);for(let e of this.children)switch(e.match){case O.strict:if(e.part===t){let t=e.search(n);if(t)return t}break;case O.single:{let t=e.search(n);if(t)return t;break}case O.multi:return e}return null}findStrict(e){return this.children.find(t=>t.part===e)||null}sort(){this.children.sort((e,t)=>e.match-t.match);for(let e of this.children)e.sort()}};k.MatchTypes=O,k.parseParams=Qt,k.dynamic=Zt;class $t{constructor(){this.inner=new Set}add(e){if(e!==void 0)return e=+e,this.inner.has(e)&&clearTimeout(e),this.inner.add(e),e}remove(e){e!==void 0&&(e=+e,clearTimeout(e),this.inner.delete(e))}removeAll(){this.inner.forEach(clearTimeout),this.inner.clear()}}let en=(e,{attribute:t})=>{if(t===!0||t===void 0)return String(e).toLowerCase();if(!(t===!1||i(e)))return t},tn=/^[\s\S]*{[\s\S]*}$/;class nn extends ct{static define(e=this.elementTagName,t){this.isDefined()||this.godownConfig.define(e,this,t)}static isDefined(){return!!this.getDefined()}static getDefined(){return this.godownConfig.get(this.elementTagName)}static finalize(){super.finalize(),this.elementAttributes=new Map;for(let[e,t]of this.elementProperties.entries()){let n=en(e,t);n&&this.elementAttributes.set(n,e)}}get observedRecord(){let e={};for(let[t,n]of this.constructor.elementAttributes.entries())e[t]=this[n];return e}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(e=>e.getAttribute(`slot`)).filter(e=>e)}getBoundingClientRect(){let e;return this.contents&&(e=this.contentsRoot||this.shadowRoot?.firstElementChild)&&e!==this?e.getBoundingClientRect():super.getBoundingClientRect()}getClientRects(){let e;return this.contents&&(e=this.contentsRoot||this.shadowRoot?.firstElementChild)&&e!==this?e.getClientRects():super.getClientRects()}get stylex(){return this.__stylex.css}set stylex(e){if(e=e.trim(),tn.test(e)||(e=`:host{${e}}`),!this.shadowRoot){this.__stylex.lazy=e;return}this.__stylex.index&&this.shadowRoot.adoptedStyleSheets.splice(this.__stylex.index,1),this.__stylex.css=e,this.__stylex.index=this.adoptStyles(e)}constructor(e){super(),this.events=new Gt,this.observers=new qt,this.timeouts=new $t,this.__stylex={},this.assign={...nn.godownConfig?.assign||{},...e}}connectedCallback(){super.connectedCallback(),this.assign&&(Object.assign(this,this.assign),this.assign=null);let{lazy:e}=this.__stylex;e&&(this.adoptStyles(e),this.__stylex.lazy=``)}disconnectedCallback(){this.events.removeAll(),this.observers.removeAll(),this.timeouts.removeAll()}mount(e){this.firstUpdated(e)}unmount(){this.disconnectedCallback()}remount(e){this.unmount(),this.connectedCallback(),this.mount(e)}deepQuerySelector(e){return Wt.call(this,e)}deepQuerySelectorAll(e){return Ut.call(this,e)}adoptStyles(...e){if(!this.shadowRoot||!e.length)return;let t=this.shadowRoot.adoptedStyleSheets,n=new CSSStyleSheet;return e.forEach(e=>n.insertRule(e.toString())),t.push(n),t.length-1}dispatchCustomEvent(e,t,n){this.dispatchEvent(new CustomEvent(e,{detail:t,composed:!0,...n}))}}nn.godownConfig=new re,Ht([C({type:Boolean,reflect:!0})],nn.prototype,`contents`,void 0),Ht([C({reflect:!0})],nn.prototype,`stylex`,null);let rn=p`*,: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 A extends nn{}let an=ee(A.godownConfig.prefix,`-`);function j(e,t=1){return on(an+`-`.repeat(t)+e)}function on(e){return le(`--${e}`)}let M={background:j(`background`,2),foreground:j(`foreground`,2),backgroundClip:j(`background-clip`,2),primaryBackground:j(`primary`,2),primaryForeground:j(`primary-foreground`,2),muted:j(`muted`,2),active:j(`active`,2),passive:j(`passive`,2),input:j(`input`,2),radius:j(`radius`,2),ringWidth:j(`ring-width`,2),ringColor:j(`ring-color`,2)};A.styles=[rn,le(yt(`:host`,[[M.background,[`hsl(0 0% 96%)`,`hsl(0 0% 4%)`]],[M.foreground,[`hsl(0 0% 4%)`,`hsl(0 0% 96%)`]],[M.muted,[`hsl(0 0% 88%)`,`hsl(0 0% 18%)`]]],1)),le(gt({":host":_t([[M.primaryBackground,b(M.foreground)],[M.primaryForeground,b(M.background)],[M.active,b(M.primaryBackground)],[M.passive,b(M.muted)],[M.backgroundClip,`linear-gradient(to bottom, ${b(M.foreground)}, ${b(M.muted)})`],[M.ringColor,b(M.passive)],[M.ringWidth,`.1em`],[M.radius,`.25em`]])})),p`: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} `,p`:host{border-radius:var(${M.radius});border-style:none;outline-style:none}`];let sn=({width:e,color:t,inset:n})=>`outline-style:solid;outline-color:${t};outline-width:${e};${n?`outline-offset:calc(-1 * ${e});`:``}`,cn=({width:e,color:t})=>`border-style:solid;border-color:${t};border-width:${e};`,ln=({width:e,color:t,inset:n})=>`box-shadow:${n?`inset`:``} 0 0 0 ${e} ${t};`,un={outline:(e,t)=>sn({width:e,color:t,inset:!1}),"outline-inset":(e,t)=>sn({width:e,color:t,inset:!0}),"box-shadow":(e,t)=>ln({width:e,color:t,inset:!1}),shadow:(e,t)=>ln({width:e,color:t,inset:!1}),"box-shadow-inset":(e,t)=>ln({width:e,color:t,inset:!0}),"shadow-inset":(e,t)=>ln({width:e,color:t,inset:!0}),border:(e,t)=>cn({width:e,color:t})};class dn{constructor({selector:e=`:host`,width:t=b(M.ringWidth),color:n=b(M.ringColor),type:r}={}){if(r&&r in un){let i=un[r](t,n);this.css=`${e}{${i}}`}else this.css=``}get styleSheet(){return le(this.css).styleSheet}}let fn=`ring-type`;function N(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}let pn=`alert`,mn=class e extends A{constructor(){super(),this.ringType=`border`,new bt(this,()=>new dn({type:this.ringType}).css)}render(){return _`<div part="root"> <div>${D(`prefix`)}</div> <div part="content"> <b part="title">${D(`title`,this.title)}</b> ${D(``,this.content)} </div> <div>${D(`suffix`)}</div> </div>`}static alert(e,t){let n=new this;return Object.assign(n,t),e.appendChild(n),n}};N([C({attribute:fn})],mn.prototype,`ringType`,void 0),N([C()],mn.prototype,`title`,void 0),N([C()],mn.prototype,`content`,void 0),mn=N([S(pn),x(p`:host{background:var(${M.background});color:var(${M.foreground})}:host,:where(:host([contents]) [part=root]),b{display:block}[part=root]{padding:1em;display:grid;grid-template-columns:auto 1fr auto}`)],mn);var hn=mn;hn.define();let gn=`avatar`,_n=class e extends A{constructor(...e){super(...e),this.name=``,this.round=!1}render(){return _`<div part="root" ${E(c(this.observedRecord,`src`))}> ${this._renderAvatar()} </div>`}_renderAvatar(){return this.src?_`<img part="image" src="${this.src}" alt="${this.name}" @error=${this._handleError}/>`:this.name?_`<span part="name">${this.formatName()}</span>`:D()}formatName(){return this.name}_handleError(){this.src=void 0}};N([C()],_n.prototype,`src`,void 0),N([C()],_n.prototype,`name`,void 0),N([C({type:Boolean})],_n.prototype,`round`,void 0),_n=N([S(gn),x(p`:host{color:var(${M.foreground});background:var(${M.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}`)],_n);var vn=_n;vn.define();let yn=`button`,bn=j(yn),P=class e extends A{constructor(...e){super(...e),this.plain=!1,this.disabled=!1,this.active=!1,this.round=!1}render(){return _`<div part="root" ${E(this.observedRecord)}> ${D(``,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(e){if(this.disabled){e.stopPropagation(),e.preventDefault();return}this.plain||this._handleModal(e)}_handleModal(e){let t=document.createElement(`i`),{width:n,height:r}=this.getBoundingClientRect(),{x:i,y:a}=this._root.getBoundingClientRect(),o=`${Math.sqrt(r**2+n**2)*2}px`;t.style.height=o,t.style.width=o,t.style.left=`${e.x-i}px`,t.style.top=`${e.y-a}px`,this._modalRoot.appendChild(t);let s=[{transform:`scale(0) translate(-50%, -50%)`,opacity:.1},{transform:`scale(1) translate(-50%, -50%)`,offset:.8},{opacity:0}];t.animate(s,{duration:800,iterations:1}),t.addEventListener(`animationend`,()=>t.remove(),{once:!0})}};N([C({type:Boolean,reflect:!0})],P.prototype,`plain`,void 0),N([C({type:Boolean,reflect:!0})],P.prototype,`disabled`,void 0),N([C({type:Boolean,reflect:!0})],P.prototype,`active`,void 0),N([C({type:Boolean,reflect:!0})],P.prototype,`round`,void 0),N([C()],P.prototype,`content`,void 0),N([T(`modal-root`)],P.prototype,`_modalRoot`,void 0),N([T(`root`)],P.prototype,`_root`,void 0),P=N([S(yn),x(p`:host(:not([disabled]):active){transform:scale(var(${bn}--focus-scale))}:host([round]){border-radius:calc(infinity*1px)}:host([disabled]){cursor:not-allowed;filter:brightness(.85)}:host([plain]){${bn}--gradients:unset;${bn}--focus-scale:unset}`,p`:host{${bn}--modal-animation-duration:1.5s;${bn}--focus-scale:.97;${bn}--deg:45deg;color:var(${M.primaryForeground});background:var(${M.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}`)],P);var xn=P;let Sn=`badge`,Cn=class e extends xn{constructor(...e){super(...e),this.plain=!0,this.round=!0}};Cn=N([S(Sn),x(p`:host{font-size:.75em}[part=root]{padding:0 .5em}
4
+ `)],Cn);var wn=Cn;wn.define();let Tn=`breath`,F=j(Tn),En=/[\s,]+/,Dn=class e extends A{render(){let e=this.getTexts();return _`<div part="root" ${E(this.observedRecord)}> ${[e.map(this._renderText),zt(this._computeStyle(e.length))]} </div>`}_renderText(e){return _`<span class="rel"> <span class="nocolor">${e}</span> <span class="colorful">${e}</span> </span>`}getTexts(){return Array.isArray(this.content)?this.content:(this.content||this.textContent).split(En).filter(e=>e)}_computeStyle(e){let t=100/2/e,n=this.duration||(e*2+2)*1e3,r=``;for(let t=1;t<=e;t++){let i=-n/e*(e-t+1),a=(t-1)%3+1;r+=`.rel:nth-child(${t}) .colorful{animation-delay:${i}ms;background:var(${F}--${t},var(${F}--${a}));}`}return`.colorful{animation-duration:${n}ms;}@keyframes colorfulN{0%,${t*3}%{opacity:0;}${t}%,${t*2}%{opacity:1;}}${r}`}};N([C()],Dn.prototype,`content`,void 0),N([C({type:Number})],Dn.prototype,`duration`,void 0),Dn=N([S(Tn),x(p`:host{${F}--deg:60deg;${F}--1-1:hsl(0 70% 55%);${F}--1-2:hsl(30 90% 60%);${F}--2-1:hsl(130 70% 50%);${F}--2-2:hsl(180 60% 40%);${F}--3-1:hsl(270 80% 55%);${F}--3-2:hsl(210 90% 50%);${F}--1:linear-gradient(var(${F}--deg),var(${F}--1-1),var(${F}--1-2));${F}--2:linear-gradient(var(${F}--deg),var(${F}--2-1),var(${F}--2-2));${F}--3:linear-gradient(var(${F}--deg),var(${F}--3-1),var(${F}--3-2))}`,p`: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} `,p`.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(${M.backgroundClip})}`)],Dn);var On=Dn;On.define(),xn.define();let kn=`card`;j(kn);let An=class e extends A{constructor(){super(),this.ringType=`border`,this.footer=!1,this.header=!1,new bt(this,()=>new dn({type:this.ringType}).css)}render(){return _`<div part="root" ${E(this.observedRecord)}> ${[this.header?D(`header`):``,D(),this.footer?D(`footer`):``]} </div>`}};N([C({attribute:fn})],An.prototype,`ringType`,void 0),N([C({type:Boolean})],An.prototype,`footer`,void 0),N([C({type:Boolean})],An.prototype,`header`,void 0),An=N([S(kn),x(p`:host{background:var(${M.background});color:var(${M.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}`)],An);var jn=An;jn.define();let Mn=Bt(`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">`,Nn=Bt(`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">`,Pn=`carousel`;function Fn(e){return e.getBoundingClientRect().width}let In=class e extends A{constructor(...e){super(...e),this.index=0,this.autoChange=0}render(){return _`<div part="root" ${E(this.observedRecord)}> <i part="prev" @click="${this.prev}"> ${Mn()} </i> <div part="move-root">${D()}</div> <i part="next" @click="${this.next}"> ${Nn()} </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(e,t,n){super.attributeChangedCallback(e,t,n),e===`index`&&this.isConnected&&this.show(this.index)}show(e,t){e=this.normalizeIndex(e),this.index=e,this._offset=this._computeOffset(),this._doTranslateX(`${this._offset}px`,t),this.dispatchCustomEvent(`change`,e),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(e,t){this._moveRoot.style.transform=`translateX(${e})`,this._moveRoot.style.transition=t?`none`:``}_computeOffset(){let e=0;for(let t=0;t<=this.index;t++)e-=Fn(this.children[t]);return e+=(Fn(this)-Fn(this.children[this.index+1]))/2,e}normalizeIndex(e){return e<0?0:e>this.children.length-3?this.children.length-3:e}};N([C({type:Number})],In.prototype,`index`,void 0),N([C({type:Number})],In.prototype,`autoChange`,void 0),N([T(`move-root`)],In.prototype,`_moveRoot`,void 0),In=N([S(Pn),x(p`: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
+ `)],In);var Ln=In;Ln.define();let Rn=`chip`,I=j(Rn),L=class e extends A{constructor(...e){super(...e),this.position=`top-right`,this.value=0,this.dot=!1,this.max=99}formatValue(e){return e>this.max?this.max+`+`:e+``}render(){return _`<div part="root" ${E(this.observedRecord)}> ${D()} ${this.value||this.dot?_`<div part="chip">${this.dot?``:this.formatValue(this.value)}</div>`:``} </div>`}};N([C()],L.prototype,`position`,void 0),N([C({type:Number})],L.prototype,`value`,void 0),N([C({type:Boolean})],L.prototype,`dot`,void 0),N([C({type:Number})],L.prototype,`max`,void 0),L=N([S(Rn),x(p`:host{${I}--offset:0%;${I}--offset-x:var(${I}--offset);${I}--offset-y:var(${I}--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(${M.primaryForeground});background:var(${M.primaryBackground})}[part=chip]:empty{width:.5em;height:.5em;font-size:100%;padding:0;border-radius:50%}[position^=top] [part=chip]{top:calc(0% + var(${I}--offset-y))}[position$=right] [part=chip]{left:calc(100% - var(${I}--offset-x))}[position^=bottom] [part=chip]{top:calc(100% - var(${I}--offset-y))}[position$=left] [part=chip]{left:calc(0% + var(${I}--offset-x))}`)],L);var zn=L;zn.define();let Bn=Bt(`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">`,Vn=`details`,Hn=j(Vn),R=class e extends A{constructor(...e){super(...e),this.open=!1,this.float=!1,this.fill=!1,this.summary=``}render(){return _`<dl part="root" ${E(this.observedRecord)}> <dt part="title" @click="${()=>this.toggle()}"> <span part="summary">${D(`summary`,this.summary)}</span> <span part="icon">${D(`icon`,Bn())}</span> </dt> <dd part="details" @click=${this.fill?()=>this.toggle():null}> <div style="min-height: 0;">${D()}</div> </dd> </dl>`}updated(e){let t=e.get(`open`);t!==void 0&&this.dispatchCustomEvent(`change`,t)}toggle(e){this.open=e??!this.open}close(){this.open=!1}show(){this.open=!0}};N([C({type:Boolean,reflect:!0})],R.prototype,`open`,void 0),N([C({type:Boolean})],R.prototype,`float`,void 0),N([C({type:Boolean})],R.prototype,`fill`,void 0),N([C()],R.prototype,`summary`,void 0),R=N([S(Vn),x(p`:host{${Hn}--icon-deg-open:0deg;${Hn}--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(${Hn}--icon-deg-close))}:host([open]) [part=icon]{transform:rotate(var(${Hn}--icon-deg-open))}`)],R);var Un=R;Un.define();let Wn=`dialog`,Gn=j(Wn),Kn=class e extends A{constructor(...e){super(...e),this.open=!1,this.modal=!1,this.__modalInvoke=!1}render(){return _`<div part="root" @click=${this.show}> ${D(`trigger`)} </div> <dialog part="dialog" role="dialog"> ${D(`dialog`)}${D()} </dialog>`}showModal(){this.modal=!0,this.__modalInvoke=!0,this.show()}show(){this.open=!0}close(){this.open=!1}toggle(e){this.open=e??!this.open}updated(e){e.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(e){e.key===`Escape`&&(e.preventDefault(),this.close())}_handelSubmit(e){e.target.method===`dialog`&&(e.preventDefault(),this.close())}};N([C({type:Boolean,reflect:!0})],Kn.prototype,`open`,void 0),N([C({type:Boolean,reflect:!0})],Kn.prototype,`modal`,void 0),N([T(`dialog`)],Kn.prototype,`_dialog`,void 0),Kn=N([S(Wn),x(p`:host{${Gn}--background-modal:black;${Gn}--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(${Gn}--background-modal);opacity:var(${Gn}--opacity-modal)}`)],Kn);var qn=Kn;qn.define();let Jn=`divider`,Yn=class e extends A{constructor(...e){super(...e),this.vertical=!1}render(){return _`<div part="root"></div> `}};N([C({type:Boolean,reflect:!0})],Yn.prototype,`vertical`,void 0),Yn=N([S(Jn),x(p`:host{width:100%;height:.05em;display:block;background:currentColor;color:var(${M.passive})}:host([vertical]){width:.05em;height:100%}`)],Yn);var Xn=Yn;Xn.define();let Zn=`dragbox`,Qn=class e extends A{constructor(...e){super(...e),this.__drag=!1}get _offsetParent(){return this.offsetParent??document.body}render(){return _`<div part="root" ${E(this.observedRecord)} @mousedown="${this._handleDragStart}"> ${D()} </div>`}firstUpdated(){this.reset()}_handleDragStart(e){this.__x=e.x,this.__y=e.y;let t=this._offsetParent.getBoundingClientRect(),n=this.getBoundingClientRect();this.__t=n.top-t.top,this.__l=n.left-t.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(e){if(!this.__drag)return;let{__x:t,__y:n,__l:r,__t:i,style:a}=this,{height:o,width:s}=this._offsetParent.getBoundingClientRect(),{width:c,height:l}=this.getBoundingClientRect(),u=e.x-(t-r),d=e.y-(n-i);u<0?a.left=`0`:u<s-c?a.left=`${u}px`:a.left=`${s-c}px`,d<0?a.top=`0`:d<o-l?a.top=`${d}px`:a.top=`${o-l}px`}reset(){let{x:e,y:t,style:n,offsetWidth:r,offsetHeight:i,offsetLeft:a,offsetTop:o}=this,{height:s,width:c}=this._offsetParent.getBoundingClientRect();n.left=e||`0`,n.top=t||`0`,a>c-r&&(n.left=`${c-r}px`),o>s-i&&(n.top=`${s-i}px`)}};N([C()],Qn.prototype,`x`,void 0),N([C()],Qn.prototype,`y`,void 0),Qn=N([S(Zn),x(p`:host{position:absolute;display:block}:host(:active){-webkit-user-select:none;user-select:none}
6
+ `)],Qn);var $n=Qn;$n.define();let er=`flex`,z=class e extends A{constructor(...e){super(...e),this.vertical=!1}render(){return _`<div part="root" ${E(this.observedRecord)}> ${[D(),zt(gt({":host":{gap:this.gap,"flex-flow":this.flexFlow,"flex-direction":this.vertical&&`column`,"align-items":this.items,"justify-content":this.content}}))]} </div>`}};N([C({attribute:`flex-flow`})],z.prototype,`flexFlow`,void 0),N([C()],z.prototype,`gap`,void 0),N([C()],z.prototype,`content`,void 0),N([C()],z.prototype,`items`,void 0),N([C({type:Boolean})],z.prototype,`vertical`,void 0),z=N([S(er),x(p`:host,:host([contents]) [part=root]{display:flex}[part=root]{display:contents}
7
+ `)],z);var tr=z;tr.define();var nr;let rr=`form`,ir=nr=class e extends A{constructor(...e){super(...e),this.name=``,this.nameValue=this.namevalue}get value(){return nr.buildValue(this._slot.assignedElements())}render(){return D()}reset(){this.deepQuerySelectorAll(`*`).forEach(e=>{e.tagName!==this.tagName&&e.reset&&e.reset()})}namevalue(){return[this.name,this.value]}static buildValue(e){let t={};for(let n of e)if(n.tagName===`FORM`)Object.assign(t,Object.fromEntries(new FormData(n).entries()));else if(n.namevalue){let[e,r]=n.namevalue();e&&(t[e]=r)}else if(n.name&&n.value!==void 0)t[n.name]=n.value;else if(n.shadowRoot)for(let e of n.shadowRoot.querySelectorAll(`slot`))Object.assign(t,this.buildValue(e.assignedElements()));return t}};N([C()],ir.prototype,`name`,void 0),ir=nr=N([S(rr),x(p`:host{display:block}
8
+ `)],ir);var ar=ir;ar.define();let or=e=>n(e)?`repeat(${e},1fr)`:e,sr=`grid`,B=class e extends A{render(){return _`<div part="root" ${E(this.observedRecord)}> ${[D(),zt(gt({":host":{gap:this.gap,"grid-template-columns":or(this.columns),"grid-template-rows":or(this.rows),"place-content":this.content,"place-items":this.items}}))]} </div>`}};N([C()],B.prototype,`gap`,void 0),N([C()],B.prototype,`columns`,void 0),N([C()],B.prototype,`rows`,void 0),N([C()],B.prototype,`content`,void 0),N([C()],B.prototype,`items`,void 0),B=N([S(sr),x(p`:host,:host([contents]) [part=root]{display:grid}[part=root]{display:contents}
9
+ `)],B);var cr=B;cr.define();var lr;let ur={field:`field`,slotted:`slotted`,united:`united`},dr=`router`,V=lr=class e extends A{constructor(...e){super(...e),this.__fieldRoute=new k,this.__slottedRoute=new k,this.__cacheRecord=new Map,this.component=null,this.pathname=location.pathname,this.default=D(),this.type=ur.united,this.cache=!1,this.handlePopstate=this.events.add(window,`popstate`,()=>{this.pathname=location.pathname})}get params(){return this.path?Qt(this.pathname,this.path):{}}set routes(e){this.__routes=e,this.collectFieldRoutes(e)}get routes(){return this.__routes}clear(){this.__cacheRecord.clear()}render(){let e;if(this.cache&&(e=this.__cacheRecord.get(this.pathname))&&(this.component=e.component,this.path=e.path,this.pathname=e.pathname),!e)switch(this.type){case ur.field:this.component=this.fieldComponent();break;case ur.slotted:this.component=this.slottedComponent();break;default:this.component=this.fieldComponent()??this.slottedComponent()}return this.component??this.default}connectedCallback(){super.connectedCallback(),lr.routerInstances.add(this),this.type!==`field`&&(this.observers.add(this,MutationObserver,this.collectSlottedRoutes,{attributes:!0,attributeFilter:[`slot`],subtree:!0}),this.collectSlottedRoutes())}disconnectedCallback(){super.disconnectedCallback(),lr.routerInstances.delete(this)}useRouter(){return{pathname:this.pathname,params:this.params,path:this.path,component:this.component}}updated(e){let t=e.has(`pathname`)||e.has(`path`);if(t){let e=this.useRouter();!this.__cacheRecord.has(this.pathname)&&this.path&&this.__cacheRecord.set(this.pathname,e),this.dispatchCustomEvent(`change`,e)}}fieldComponent(e){if(e||=this.__fieldRoute.search(this.pathname)?.pattern,this.path=e,!e)return null;let t=this.routes.find(t=>t.path===e);return t?`render`in t?t.render?.(c(this.useRouter(),`component`))||null:t.component:null}slottedComponent(e){let t=this._slottedNames;return e||=this.__slottedRoute.search(this.pathname)?.pattern,this.path=e,!e||(this.path=t.find(t=>t===e),!this.path)?null:D(this.path)}collectSlottedRoutes(){this.__slottedRoute=new k,this.clear(),this._slottedNames.forEach(e=>{this.__slottedRoute.insert(e)})}collectFieldRoutes(e){this.__fieldRoute=new k,this.clear(),e.forEach(({path:e})=>{this.__fieldRoute.insert(e)})}static updateAll(){this.routerInstances.forEach(e=>{e.handlePopstate()})}search(e){return this.__fieldRoute.search(e)||this.__slottedRoute.search(e)}};N([w()],V.prototype,`component`,void 0),N([w()],V.prototype,`path`,void 0),N([C()],V.prototype,`pathname`,void 0),N([w()],V.prototype,`default`,void 0),N([C()],V.prototype,`type`,void 0),N([C({type:Boolean})],V.prototype,`cache`,void 0),N([w()],V.prototype,`routes`,null),V=lr=N([S(dr),x(p`:host{display:contents}
10
+ `)],V),V.routerInstances=new Set;var fr=V;let pr=`link`,mr={push:`push`,replace:`replace`,normal:`normal`,auto:`auto`},H=class e extends A{constructor(...e){super(...e),this.type=mr.auto,this.suppress=!1,this.replace=!1,this.target=`_self`,this.state={},this.handleState=()=>{switch(this.type){case mr.auto:case mr.push:if(!this.replace){history.pushState(this.state,``,this.href);break}case mr.replace:history.replaceState(this.state,``,this.href);break}}}get pathname(){return new URL(this.href,location.href).pathname}_handleClick(e){let{state:t,type:n,href:r,pathname:i,suppress:a}=this;if(!r||(this.dispatchCustomEvent(`navigate`,{...this.observedRecord,pathname:i,state:t}),r.startsWith(`#`)||n===mr.normal))return;this.handleState();let o=[...fr.routerInstances];!a&&(n!==mr.auto||o.some(e=>e.search(location.pathname)))&&(e.preventDefault(),fr.routerInstances.forEach(e=>{e.handlePopstate()}))}render(){return _`<a part="root" ${E(this.observedRecord)} href="${this.href||y}" target="${this.target}" @click=${this._handleClick}> ${D()} </a>`}};N([C()],H.prototype,`type`,void 0),N([C({type:Boolean})],H.prototype,`suppress`,void 0),N([C({type:Boolean})],H.prototype,`replace`,void 0),N([C()],H.prototype,`href`,void 0),N([C()],H.prototype,`target`,void 0),H=N([S(pr),x(p`:host{display:inline-block;cursor:default}:host([href]){cursor:pointer}a{display:contents}
11
+ `)],H);var hr=H;let gr=`heading`,_r=class e extends hr{constructor(...e){super(...e),this.as=`h1`,this.anchor=`#`,this.side=`left`}render(){let e=this.href||(this.id?`#`+this.id:void 0);return _`<a part="root" href="${e||y}"> ${this.wrapHeading(D(),e?_`<i part="${Mt(`anchor`,this.side)}">${this.anchor}</i>`:``)} </a>`}wrapHeading(...e){switch(this.as){case`h2`:return _`<h2>${e}</h2>`;case`h3`:return _`<h3>${e}</h3>`;case`h4`:return _`<h4>${e}</h4>`;case`h5`:return _`<h5>${e}</h5>`;case`h6`:return _`<h6>${e}</h6>`;default:return _`<h1>${e}</h1>`}}};N([C()],_r.prototype,`as`,void 0),N([C()],_r.prototype,`anchor`,void 0),N([C()],_r.prototype,`side`,void 0),_r=N([S(gr),x(p`: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
+ `)],_r);var vr=_r;vr.define();let yr=Bt(`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">`,br=p`:host([disabled]){cursor:not-allowed;filter:brightness(.85)}input:disabled{cursor:inherit}input::-ms-reveal,input::-ms-clear{display:none}
13
+ `,U=class e extends A{constructor(...e){super(...e),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 c(super.observedRecord,`default`,`value`)}set defaultValue(e){this.default=e}get defaultValue(){return this.default}namevalue(){return[this.name,this.value]}reset(){this.value=this.default,this._input.value=this.default}_handleInput(e){e.stopPropagation(),!this.compositing&&(this.value=e.target.value?.trim(),this.dispatchCustomEvent(`input`,this.value,{bubbles:!0}))}_handleChange(e){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`,e=>{this.compositing=!1,this._handleInput(e)}))}focus(e){this._input?.focus(e)}firstUpdated(){this._compositionInit()}_renderPrefix(){return _`<i part="prefix">${D(`prefix`)}</i>`}_renderSuffix(){return _`<i part="suffix">${D(`suffix`)}</i>`}};N([C()],U.prototype,`autocomplete`,void 0),N([C({attribute:fn})],U.prototype,`ringType`,void 0),N([C({type:Boolean,reflect:!0})],U.prototype,`disabled`,void 0),N([C({reflect:!0})],U.prototype,`placeholder`,void 0),N([C({reflect:!0})],U.prototype,`name`,void 0),N([C()],U.prototype,`value`,void 0),N([C()],U.prototype,`default`,void 0),N([T(`input`)],U.prototype,`_input`,void 0),U=N([x(br)],U);let xr=`input`,Sr=class e extends U{constructor(){super(),this.type=`text`,this.variant=`default`,new bt(this,()=>new dn({type:this.ringType}).css+(this.variant===`outline`?`:host{${M.ringColor}:currentColor}`:``))}render(){return _`<label part="root" ${E(this.observedRecord)}> ${[this._renderPrefix(),_`<input part="input" type="${this.type}" .value="${this.value}" ?autofocus="${this.autofocus}" ?disabled="${this.disabled}" autocapitalize="${this.autocapitalize||y}" autocomplete="${this.autocomplete||y}" placeholder="${this.placeholder||y}" @input="${this._handleInput}" @change="${this._handleChange}"/>`,this._renderSuffix()]} </label>`}_renderSuffix(){let e=`password`;return this.type===e?_`<i part="suffix" @mousedown="${()=>this._changeInputType(`text`)}" @mouseup="${()=>this._changeInputType(e)}" @mouseleave="${()=>this._changeInputType(e)}"> ${D(`suffix`,yr())} </i>`:super._renderSuffix()}_changeInputType(e){this._input&&(this._input.type=e)}};N([C({reflect:!0})],Sr.prototype,`type`,void 0),N([C()],Sr.prototype,`variant`,void 0),N([T(`input`)],Sr.prototype,`_input`,void 0),Sr=N([S(xr),x(p`:host{display:block;${M.input}-icon-color:gray}:host(:focus-within),:host(:active){${M.ringColor}:currentColor;${M.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(${M.input}-icon-color)}[part=suffix] slot svg{margin-inline-start:.25em}[part=prefix] slot svg{margin-inline-end:.25em}`)],Sr);var Cr=Sr;Cr.define();let wr=`layout`,Tr=class e extends A{constructor(...e){super(...e),this.sticky=!1}render(){return _`<div part="root" ${E(this.observedRecord)}> <header part="header">${D(`header`)}</header> <main part="main">${D()}</main> <footer part="footer">${D(`footer`)}</footer> </div>`}};N([C({type:Boolean})],Tr.prototype,`sticky`,void 0),Tr=N([S(wr),x(p`: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
+ `)],Tr);var Er=Tr;Er.define(),hr.define();function Dr(e){let t,n=function(...r){return t=e.apply(this,r),n=()=>t,t};return n}let Or=`popover`,kr=()=>Object.hasOwn(HTMLElement.prototype,Or),Ar=e=>e.getAttribute(Or),jr=e=>{e.style.display=`none`},Mr=e=>{Ar(e)===null?jr(e):e.hidePopover()},Nr=Dr(e=>kr()?Mr(e):jr(e)),Pr=e=>{if(e.style.display=`block`,Ar(e)!==`manual`){let t=`click`,n=r=>{e.contains(r.target)||(e.dispatchEvent(new Event(`toggle`,{bubbles:!0,composed:!0,newState:`closed`})),Nr(e),document.removeEventListener(t,n))};document.addEventListener(t,n)}},Fr=e=>{Ar(e)===null?Pr(e):e.showPopover()},Ir=Dr(function(e){return kr()?Fr(e):Pr(e)}),Lr=`popover`,Rr=Lr,W=class e extends A{constructor(){super(),this.anchorName=`--${Lr}-${Math.random().toString(36).slice(2)}`,this.open=!1,this.action=`show`,this.span=`span`,this.position=`bottom`,new bt(this,()=>gt({"[part=root],slot:not([name])::slotted(*)":{"anchor-name":this.anchorName},"[part=popover]":{"position-anchor":this.anchorName,"position-area":this.resolveArea()}}))}render(){return _`<div part="root"> <div part="trigger" @click=${this._handleClick}> ${D()} </div> <div part="popover" popover="manual"> ${D(`popover`)} </div> </div>`}_handleClick(){let{action:e}=this;switch(e){case`show`:case`hide`:case`toggle`:this[e]()}}show(){this.toggle(!0)}hide(){this.toggle(!1)}toggle(e){this.open=e??!this.open}updated(e){e.has(`open`)&&this._openChange()}_openChange(){let{open:e}=this;if(e){Ir.call(this,this._popover);let e=t=>{this.contains(t.target)||(this.events.remove(document,`click`,e),this.open=!1)};this.events.add(document,`click`,e)}else Nr(this._popover);this.dispatchCustomEvent(`toggle`,e)}resolveArea(){let e=this.position.split(`-`),t=this.span===`spread`?`span-${e[0]}`:e[0];if(e.length<2)return`${t} center`;let n=this.span===`isolated`?e[1]:`span-${e[1]}`;return`${t} ${n}`}};N([C({type:Boolean,reflect:!0})],W.prototype,`open`,void 0),N([C()],W.prototype,`action`,void 0),N([C()],W.prototype,`span`,void 0),N([C()],W.prototype,`position`,void 0),N([T(Lr)],W.prototype,`_popover`,void 0),W=N([S(Rr),x(p`: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
+ `)],W),W.define();var zr=W;let Br=`progress`,Vr=class e extends A{constructor(...e){super(...e),this.max=1,this.min=0}render(){let e=20,n;if(!t(this.value)){let t=new Jt(this.min,this.max),r=+this.value-this.min;e=r/t.diff*100,n=`static`}return _`<div part="root" ${E(this.observedRecord)} class="${n}"> <i part="value" style="width:${e}%;"></i> </div>`}};N([C({type:Number})],Vr.prototype,`max`,void 0),N([C({type:Number})],Vr.prototype,`min`,void 0),N([C({type:Number})],Vr.prototype,`value`,void 0),Vr=N([S(Br),x(p`:host{width:100%;height:.5em;border-radius:.25em;background:var(${M.passive});color:var(${M.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}`)],Vr);var Hr=Vr;Hr.define();let Ur=`range`,G=j(Ur),K=class e extends U{constructor(...e){super(...e),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(e,t=0){let{rangeValue:n}=this,r=e-n.length;return r>0?Array(r).fill(t).concat(n):n}attributeChangedCallback(e,t,n){super.attributeChangedCallback(e,t,n),(e===`max`||e===`min`||e===`step`)&&(this._ranger=new Jt(this.min,this.max,this.step))}get observedRecord(){return c(super.observedRecord,fn)}render(){let e=this.padValue(2),t=Math.min(...e),n=Math.max(...e),r=this._ranger.diff;return _`<div part="root" ${E(this.observedRecord)} @mousedown="${this.disabled?null:this._handleMousedownRoot}" style="${_t([[`--from`,`${(t-this.min)/r*100}%`],[`--to`,`${(n-this.min)/r*100}%`],...e.map((e,t)=>[`--handle-${t}`,`${(e-this.min)/r*100}%`])])}"> <div part="track"></div> ${Vt(this.rangeValue.length,e=>this._renderHandle(e))} </div>`}_renderHandle(e){let{disabled:t,range:n,rangeValue:r}=this,i=!n||n&&e===r.length-1&&r.length===1;return _`<i tabindex="0" part="${Mt(`handle`,`handle-${e}`)}" @mousedown="${t?null:this.createMouseDown(e)}" style="${_t({"z-index":this.__focusStack.indexOf(e)+1,"--handle":`var(--${i?`to`:`handle-${e}`})`})}"></i>`}focusHandle(e){this.lastFocus=e;let t=this.__focusStack.indexOf(e);t!==-1&&this.__focusStack.splice(t,1),this.__focusStack.push(e);let n=this._handles.item(e);n?.focus(),this.__keydownEvent||=this.events.add(document,`keydown`,this.createKeydownEvent(e))}blurHandle(){this.lastFocus=void 0,this.__keydownEvent=this.events.remove(document,`keydown`,this.__keydownEvent)}createKeydownEvent(e){return t=>{let{rangeValue:n,step:r}=this;n.length<2&&(e=0);let i=n[e];t.key===`ArrowLeft`||t.key===`ArrowDown`?(t.preventDefault(),this.createSetValue(e)(i-r)):(t.key===`ArrowRight`||t.key===`ArrowUp`)&&(t.preventDefault(),this.createSetValue(e)(i+r))}}createMouseDown(e){return t=>{this.focusHandle(e),this.createMousedownListener(this.createSetValue(e))(t)}}createSetValue(e){return t=>{let n=this._ranger.normalize(t),r=n;this.range&&(r=[...this.value],r[e]=n),this.value=r,this.dispatchCustomEvent(`change`,this.value)}}_computeValue({clientX:e,clientY:t}){let{top:n,left:r,height:i,width:a}=this._root.getBoundingClientRect();return this._ranger.present(this.vertical?(t-n)/i:(e-r)/a)}_handleMousedownRoot(e){let t=this._computeValue(e),n=this.range?this.rangeValue.reduce((e,n,r)=>{let i=Math.abs(t-n),a=Math.abs(t-this.rangeValue[e]);return i<a?r:e},0):0,r=this.createSetValue(n);r(t),this.createMousedownListener(r)(e),this.focusHandle(n)}createMousedownListener(e){return t=>{t.preventDefault(),t.stopPropagation();let n=this.createMousemoveListener(e);this.events.add(document,`mousemove`,n);let r=()=>{this.events.remove(document,`mousemove`,n),this.events.remove(document,`mouseup`,r)};this.events.add(document,`mouseup`,r)}}createMousemoveListener(e){return t=>{let n=this._computeValue(t);n===this._ranger.restrict(n)&&e?.call(this,n)}}_connectedInit(){this._ranger=new Jt(this.min,this.max,this.step);let e=this._ranger.diff;this.step||=e/100,t(this.value)&&(t(this.default)?this.value=Math.round(e/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((e,t)=>e-t):this.value}};N([C({type:Number})],K.prototype,`min`,void 0),N([C({type:Number})],K.prototype,`max`,void 0),N([C({type:Number})],K.prototype,`step`,void 0),N([C({type:Boolean,reflect:!0})],K.prototype,`vertical`,void 0),N([C({type:Array})],K.prototype,`value`,void 0),N([C({type:Array})],K.prototype,`default`,void 0),N([T(`root`)],K.prototype,`_root`,void 0),N([Dt(`[part=handle]`)],K.prototype,`_handles`,void 0),N([w()],K.prototype,`lastFocus`,void 0),K=N([S(Ur),x(p`:host{${G}--track-width:.5em;${G}--handle-scale:1;${G}--track-background:var(${M.active});background:var(${M.passive});width:100%;display:block;height:var(${G}--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(${G}--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(${G}--handle-scale)) translate(-50%,-25%);background:var(${M.background});border-color:currentColor}`,p`[vertical]{height:inherit;width:var(${G}--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}`,p`[part~=handle]{left:var(--handle);top:0}[vertical] [part~=handle]{top:var(--handle);left:0} `)],K);var Wr=K;Wr.define();let Gr=`rotate`,Kr=j(Gr),qr=class e extends A{render(){return _`<div part="root"> <div part="slot" @mousemove="${this._handleRotate}"> ${D()} </div> <i @mouseleave="${this.reset}"></i> </div>`}reset(){this._root.style.removeProperty(`transform`),this._root.style.removeProperty(`transition`)}_handleRotate(e){let{rotateX:t,rotateY:n}=this._computeOffset(e);this._root.style.setProperty(`transform`,`rotateX(${t}rad) rotateY(${n}rad)`),this._root.style.setProperty(`transition`,`0s`)}_computeOffset(e){let{left:t,top:n,width:r,height:i}=this._root.getBoundingClientRect(),{clientX:a,clientY:o}=e,s=a-t,c=o-n,l=-(c-i/2)/i/2,u=(s-r/2)/r/2;return{rotateX:l,rotateY:u}}};N([T(`root`)],qr.prototype,`_root`,void 0),qr=N([S(Gr),x(p`:host{display:block;width:-moz-fit-content;width:fit-content;transition:all .5s ease-in-out;${Kr}--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(${Kr}--offset);margin:calc(-1*var(${Kr}--offset))}[part=slot]{z-index:2}`)],qr);var Jr=qr;Jr.define(),fr.define();let Yr=Dr(()=>CSS.supports(`position-area:top`));function Xr(e,t){if(e){let n=`selected`;t?e.setAttribute(n,``):e.removeAttribute(n)}}let Zr=`select`,q=class e extends Cr{constructor(...e){super(...e),this.multiple=!1,this.noEdit=!1,this.values=[],this.optionsVisible=!1}render(){let e=this.noEdit||this.disabled;return _`<label part="root" ${E(this.observedRecord)}> ${[this._renderPrefix(),this.noEdit?_`<input style="position: absolute;inset: 0;opacity: 0;"/> `:``,_`<input part="input" .value="${this.text}" ?autofocus="${this.autofocus}" ?disabled="${e}" autocapitalize="${this.autocapitalize||y}" autocomplete="${this.autocomplete||y}" placeholder="${this.placeholder||y}" @input="${e?null:this._handleInput}" @change="${e?null:this._handleChange}"/>`,this._renderSuffix()]} <div part="popover" popover="${Yr()?`manual`:y}"> ${D()} </div> </label>`}_renderSuffix(){return _`<i part="suffix">${D(`suffix`,Bn())}</i>`}firstUpdated(){this.events.add(this._slot,`click`,e=>{let{target:t}=e;if(t.tagName!==`OPTION`)return;e.preventDefault();let{label:n,value:r}=t,i=this.select(r,n);this.multiple||(Xr(this.lastChecked,0),this.hideOptions()),Xr(t,i),this.lastChecked=t})}_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(e,t){t||=e;let n=0,r=this.values.findIndex(t=>t.value===e);return r>-1?this.values.splice(r,1):(this.values.push({value:e,label:t}),n=1),this.checkValues(),this.value=this.values.map(e=>e.value).join(`,`),this.text=this.values.map(e=>e.label).join(`, `),this.dispatchCustomEvent(`select`,this.value),n}checkValues(){!this.multiple&&this.values.length>1&&(this.values.splice(0,this.values.length-1),this.requestUpdate())}showOptions(){if(this.optionsVisible)return;Ir(this._popover);let e=t=>{this.contains(t.target)||(this.hideOptions(),this.events.remove(document,`click`,e))};this.events.add(document,`click`,e),this.optionsVisible=!0}hideOptions(){this.optionsVisible&&(Nr(this._popover),this.optionsVisible=!1)}focus(e){super.focus(),this._input.focus(e),this.showOptions()}blur(){super.blur(),this._input.blur(),Nr(this._popover)}};N([C()],q.prototype,`text`,void 0),N([C({type:Boolean})],q.prototype,`multiple`,void 0),N([C({type:Boolean})],q.prototype,`noEdit`,void 0),N([C({type:Array})],q.prototype,`values`,void 0),N([T(`popover`)],q.prototype,`_popover`,void 0),q=N([S(Zr),x(p`[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
+ `)],q);var Qr=q;Qr.define();let $r=`skeleton`,J=j($r),ei=class e extends A{constructor(...e){super(...e),this.loading=!0}render(){return this.loading?_`<div part="root">${D(`loading`)}</div>`:D()}};N([w()],ei.prototype,`loading`,void 0),ei=N([S($r),x(p`:host{${J}--from:var(${M.background});${J}--to:var(${M.passive});${J}--deg:95deg;${J}--duration:2s;height:2em;width:100%;flex-shrink:0;overflow:hidden;background-color:transparent;background-size:200% 100%;background-image:linear-gradient(var(${J}--deg),var(${J}--from) 36%,var(${J}--to) 50%,var(${J}--from) 64%);animation:_ var(${J}--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}`)],ei);var ti=ei;ti.define();let ni=`split`,ri=j(ni),ii=class e extends U{constructor(){super(),this.len=6,this.index=-1,this.current=-1,this.currentValue=[],new bt(this,()=>new dn({selector:`[part=input-box]`,type:this.ringType}).css)}get observedRecord(){return c(super.observedRecord,fn)}render(){return _`<div part="root" ${E(this.observedRecord)}> ${Vt(this.len,e=>_`<span part="input-box" ring-type="${this.ringType}" class="${Mt({focus:this.current===e})}" @click="${this.disabled?null:()=>this.focusAt(e)}"> ${this.currentValue[e]} </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(e){e.stopPropagation(),!this.compositing&&(this.fillInput(e.data),this.value=this.currentValue.join(``),this.dispatchCustomEvent(`input`,this.value,{bubbles:!0}))}fillInput(e){if(e===null){if(this.currentValue[this.current]!==null)this.currentValue[this.current]=null;else{this.currentValue[this.current-1]=null;let e=this.currentValue.findLastIndex(e=>e!==null);this.current=this.current-1<0?e<0?0:e:this.current-1}return}let t=e.length>1;if(this.currentValue[this.current]=e[0],this.current+1>=this.len?(this.current=this.currentValue.indexOf(null),this.current===-1&&this.blur()):this.current+=1,t){let t=e.slice(1);t&&this.fillInput(t)}}focus(){this.focusAt(this.current),super.focus()}focusAt(e){this.current=e,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)}};N([C({type:Number})],ii.prototype,`len`,void 0),N([C({type:Number})],ii.prototype,`index`,void 0),N([w()],ii.prototype,`current`,void 0),N([w()],ii.prototype,`currentValue`,void 0),ii=N([S(ni),x(p`:host{display:block;border-radius:.1em;width:-moz-fit-content;width:fit-content;${ri}--size:2em;${ri}--gap:.25em}[part=root]{gap:var(${ri}--gap);position:relative;vertical-align:top;display:flex;justify-content:space-between;border-radius:inherit}[part=input-box]{width:var(${ri}--size);height:var(${ri}--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{${M.ringColor}:var(${M.active})}`)],ii);var ai=ii;ai.define();let oi=`switch`,Y=j(oi),si=class e extends U{constructor(...e){super(...e),this.default=!1,this.value=!1}set checked(e){this.value=e}get checked(){return this.value}get observedRecord(){return c(super.observedRecord,fn)}render(){return _`<div part="root" ${E(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:e}=this._input;this.value=e,this.dispatchCustomEvent(`change`,this.value)}};N([C({type:Boolean})],si.prototype,`default`,void 0),N([C({type:Boolean,attribute:`checked`,reflect:!0})],si.prototype,`value`,void 0),si=N([S(oi),x(p`:host,:host([contents]) [part=root]{display:inline-block}:host{${Y}-width:3em;${Y}-height:calc(var(${Y}-width)/2);${Y}-handle-size:1.25em;${Y}-handle-space:calc(var(${Y}-width)/4 - var(${Y}-handle-size)/2);width:var(${Y}-width);height:var(${Y}-height);border-radius:calc(var(${Y}-height)/2);background:var(${M.passive});vertical-align:bottom;transition:.2s ease-in-out;transition-property:background,left}:host([checked]){background:var(${M.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(${M.background});width:var(${Y}-handle-size);height:var(${Y}-handle-size);transform:translateY(-50%) translateX(var(${Y}-handle-space))}:host([checked]) [part=handle]{left:50%}[part=input]{opacity:0;width:100%;height:100%}`)],si);var ci=si;ci.define();let li=`text`,X=class e extends A{constructor(...e){super(...e),this.underline=`none`,this.nowrap=!1,this.italic=!1,this.truncate=!1,this.clip=!1}render(){return _`<p part="root">${D()}</p>`}};N([C({converter:{fromAttribute(e){return e===``?!0:e},toAttribute(e){return e===!1?null:e===!0?``:e}},reflect:!0})],X.prototype,`underline`,void 0),N([C({type:Boolean,reflect:!0})],X.prototype,`nowrap`,void 0),N([C({type:Boolean,reflect:!0})],X.prototype,`italic`,void 0),N([C({type:Boolean,reflect:!0})],X.prototype,`truncate`,void 0),N([C({type:Boolean,reflect:!0})],X.prototype,`clip`,void 0),X=N([S(li),x(p`:host([clip]){background:var(${M.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}`)],X);var ui=X;ui.define();let di=`tabs`,fi=j(di),pi=`hover`,Z=class e extends A{constructor(){super(),this.ringType=`border`,this.beginning=`selected`,this.indicator=`background`,this.index=0,new bt(this,()=>new dn({type:this.ringType}).css)}render(){return _`<ul part="root" ${E(this.observedRecord)} @mouseleave="${this._handleMouseLeave}"> ${this.tabs?.map((e,t)=>_`<li part="${Mt(`item`,this.index===t&&`selected`)}" @mouseenter=${()=>{this.move(this.previousIndex,t),this.previousIndex=t}} @click=${()=>this.select(t)}> ${D(e,e)} <div part="indicator"></div> </li>`)} </ul>`}connectedCallback(){super.connectedCallback(),this.previousIndex=this.beginning===`selected`?this.index:-1}_handleMouseLeave(){let e=this._items[this.previousIndex];e&&e.part.remove(pi),this.previousIndex=this.beginning===`selected`?this.index:-1}move(e,t){if(e===t)return;let{_items:n,_indicators:r}=this,i=n[t];if(!i)return;i.part.add(pi);let a=n[e];if(!a||(a.part.remove(pi),this.beginning===`none`))return;let o=r[t],s=r[e];if(!o||!s)return;let{x:c,y:l,width:u}=s.getBoundingClientRect(),{x:d,y:ee}=o.getBoundingClientRect(),te=c-d,ne=l-ee,{style:f}=o,{style:re}=s;f.transform=`translate3d(${te}px,${ne}px,0)`,f.width=`${u}px`,f.transition=re.transition=`none`,o.getBoundingClientRect(),f.width=f.transform=f.transition=re.transition=``}select(e){let{index:t,previousIndex:n}=this;this.move(n,e),e!==t&&(this.previousIndex=e,this.index=e,this.dispatchCustomEvent(`select`,e))}};N([C({attribute:fn})],Z.prototype,`ringType`,void 0),N([C()],Z.prototype,`beginning`,void 0),N([C()],Z.prototype,`indicator`,void 0),N([C({type:Array})],Z.prototype,`tabs`,void 0),N([C({type:Number})],Z.prototype,`index`,void 0),N([Dt(`[part~=item]`)],Z.prototype,`_items`,void 0),N([Dt(`[part=indicator]`)],Z.prototype,`_indicators`,void 0),Z=N([S(di),x(p`:host{${fi}--indicator-background:var(${M.passive});${fi}--selected-background:var(${M.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(${fi}--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(${fi}--selected-background)}[part~=hover] [part=indicator]{opacity:1}`)],Z);var mi=Z;mi.define();function hi(e,t=2){return e.toString().padStart(t,`0`).split(``)}function gi(e,t=new Date,n=`%`){var r;if(!e)return e;if(isNaN(t.getTime()))return;let i=`${n}${n}`,a=[];e=e.replace(RegExp(`${n}([ZYMDhmsS${n}])`,`g`),(e,t)=>(a.push(t),i));let o=t.getTimezoneOffset()/-60,s={Z:[o>=0?`+`+o.toString():o.toString()],Y:t.getFullYear().toString().split(``),M:hi(t.getMonth()+1),D:hi(t.getDate()),h:hi(t.getHours()),m:hi(t.getMinutes()),s:hi(t.getSeconds()),S:hi(t.getMilliseconds(),3)},c=[];for(let t of e.split(``).reverse()){let e=(r=s[t])?.pop();e?c.push(e):c.push(t)}return c.reverse().join(``).replace(new RegExp(i,`g`),()=>a.shift())}let _i=`time`,Q=class e extends ui{constructor(...e){super(...e),this.escape=`%`,this.format=`YYYY-MM-DD hh:mm:ss`,this.time=new Date}render(){return _`<p part="root">${gi(this.format,this.time,this.escape)}</p>`}updated(e){e.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))))}};N([C()],Q.prototype,`escape`,void 0),N([C()],Q.prototype,`format`,void 0),N([C({type:Object})],Q.prototype,`time`,void 0),N([C({type:Number})],Q.prototype,`timeout`,void 0),N([C({type:Number})],Q.prototype,`gap`,void 0),Q=N([S(_i)],Q);var vi=Q;vi.define();let yi=`tooltip`,bi=class e extends W{constructor(...e){super(...e),this.delay=300}render(){return _`<div part="root"> <div part="trigger" @click=${this.hide}> ${D()} </div> <div part="popover" popover="manual"> ${D(`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)})}};N([C()],bi.prototype,`tip`,void 0),N([C({type:Number})],bi.prototype,`delay`,void 0),bi=N([S(yi)],bi);var xi=bi;xi.define();let Si=`typewriter`,Ci=j(Si),$=class e extends A{constructor(...e){super(...e),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 _`<div part="root" ${E(this.observedRecord)}> ${D()} ${this.contentInternal} <i part="cursor" ?hidden="${this.ended}"></i> </div>`}connectedCallback(){super.connectedCallback(),this._ranger=new Jt(this.min,this.max)}firstUpdated(){this.content||=this._slot?.assignedNodes()[0]?.textContent.trim()||``,!this.ended&&this.len&&this.write()}updated(e){e.has(`index`)&&this.dispatchCustomEvent(this.index===this.len?`done`:`write`,this.contentInternal)}write(e=this.index){this.contentInternal=this.content.slice(0,e+1);let t=this.delay||this._ranger.random();this.timeoutID=this.timeouts.add(setTimeout(()=>{let t=e+1;t<=this.len&&(this.index=t,this.write())},t))}stop(){clearTimeout(this.timeoutID)}end(){this.ended=!0}};N([C()],$.prototype,`content`,void 0),N([C({type:Boolean})],$.prototype,`ended`,void 0),N([C({type:Number})],$.prototype,`max`,void 0),N([C({type:Number})],$.prototype,`min`,void 0),N([C({type:Number})],$.prototype,`delay`,void 0),N([C({type:Number})],$.prototype,`index`,void 0),N([w()],$.prototype,`contentInternal`,void 0),N([Tt(`i`)],$.prototype,`_i`,void 0),$=N([S(Si),x(p`:host{${Ci}--cursor-width:.05em}:host,:host([contents]) [part=root]{display:inline-block}i{border-right:var(${Ci}--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}`)],$);var wi=$;return wi.define(),exports.Alert=hn,exports.Avatar=vn,exports.Badge=wn,exports.Breath=On,exports.Button=xn,exports.Card=jn,exports.Carousel=Ln,exports.Chip=zn,exports.Details=Un,exports.Dialog=qn,exports.Divider=Xn,exports.Dragbox=$n,exports.Flex=tr,exports.Form=ar,exports.Grid=cr,exports.Heading=vr,exports.Input=Cr,exports.Layout=Er,exports.Link=hr,exports.Popover=zr,exports.Progress=Hr,exports.Range=Wr,exports.Rotate=Jr,exports.Router=fr,exports.Select=Qr,exports.Skeleton=ti,exports.Split=ai,exports.Switch=ci,exports.Tabs=mi,exports.Text=ui,exports.Time=vi,exports.Tooltip=xi,exports.Typewriter=wi,exports}({});
58
17
  //# sourceMappingURL=godown+lit.iife.js.map