godown 3.0.0-canary.9 → 3.0.0

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 (510) hide show
  1. package/README.md +38 -9
  2. package/alert.d.ts +1 -0
  3. package/alert.d.ts.map +1 -1
  4. package/alert.js +1 -5
  5. package/alert.js.map +1 -1
  6. package/avatar.d.ts +1 -0
  7. package/avatar.d.ts.map +1 -1
  8. package/avatar.js +1 -5
  9. package/avatar.js.map +1 -1
  10. package/badge.d.ts +9 -0
  11. package/badge.d.ts.map +1 -0
  12. package/badge.js +2 -0
  13. package/badge.js.map +1 -0
  14. package/breath.js +1 -5
  15. package/breath.js.map +1 -1
  16. package/build/godown+lit.iife.js +59 -0
  17. package/build/godown+lit.iife.js.map +1 -0
  18. package/build/godown+lit.js +59 -0
  19. package/build/godown+lit.js.map +1 -0
  20. package/build/godown+lit.umd.js +59 -0
  21. package/build/godown+lit.umd.js.map +1 -0
  22. package/build/godown.iife.js +47 -0
  23. package/build/godown.js +48 -0
  24. package/build/godown.js.map +1 -0
  25. package/build/godown.umd.js +48 -0
  26. package/build/godown.umd.js.map +1 -0
  27. package/button.d.ts +1 -0
  28. package/button.d.ts.map +1 -1
  29. package/button.js +1 -5
  30. package/button.js.map +1 -1
  31. package/card.d.ts +1 -0
  32. package/card.d.ts.map +1 -1
  33. package/card.js +1 -5
  34. package/card.js.map +1 -1
  35. package/carousel.d.ts +1 -0
  36. package/carousel.d.ts.map +1 -1
  37. package/carousel.js +1 -5
  38. package/carousel.js.map +1 -1
  39. package/components/alert.d.ts +4 -1
  40. package/components/alert.d.ts.map +1 -1
  41. package/components/alert.js +1 -176
  42. package/components/alert.js.map +1 -1
  43. package/components/avatar.d.ts +7 -2
  44. package/components/avatar.d.ts.map +1 -1
  45. package/components/avatar.js +1 -62
  46. package/components/avatar.js.map +1 -1
  47. package/components/badge.d.ts +23 -0
  48. package/components/badge.d.ts.map +1 -0
  49. package/components/badge.js +2 -0
  50. package/components/badge.js.map +1 -0
  51. package/components/breath.d.ts +6 -4
  52. package/components/breath.d.ts.map +1 -1
  53. package/components/breath.js +1 -80
  54. package/components/breath.js.map +1 -1
  55. package/components/button.d.ts +8 -5
  56. package/components/button.d.ts.map +1 -1
  57. package/components/button.js +1 -168
  58. package/components/button.js.map +1 -1
  59. package/components/card.d.ts +3 -1
  60. package/components/card.d.ts.map +1 -1
  61. package/components/card.js +1 -48
  62. package/components/card.js.map +1 -1
  63. package/components/carousel.d.ts +5 -1
  64. package/components/carousel.d.ts.map +1 -1
  65. package/components/carousel.js +1 -113
  66. package/components/carousel.js.map +1 -1
  67. package/components/details.d.ts +4 -3
  68. package/components/details.d.ts.map +1 -1
  69. package/components/details.js +1 -52
  70. package/components/details.js.map +1 -1
  71. package/components/dialog.d.ts +4 -2
  72. package/components/dialog.d.ts.map +1 -1
  73. package/components/dialog.js +1 -96
  74. package/components/dialog.js.map +1 -1
  75. package/components/divider.d.ts +3 -3
  76. package/components/divider.d.ts.map +1 -1
  77. package/components/divider.js +1 -36
  78. package/components/divider.js.map +1 -1
  79. package/components/dragbox.d.ts +4 -2
  80. package/components/dragbox.d.ts.map +1 -1
  81. package/components/dragbox.js +1 -109
  82. package/components/dragbox.js.map +1 -1
  83. package/components/flex.d.ts +3 -1
  84. package/components/flex.d.ts.map +1 -1
  85. package/components/flex.js +1 -62
  86. package/components/flex.js.map +1 -1
  87. package/components/form.d.ts +3 -1
  88. package/components/form.d.ts.map +1 -1
  89. package/components/form.js +1 -75
  90. package/components/form.js.map +1 -1
  91. package/components/grid.d.ts +3 -1
  92. package/components/grid.d.ts.map +1 -1
  93. package/components/grid.js +1 -56
  94. package/components/grid.js.map +1 -1
  95. package/components/heading.d.ts +29 -0
  96. package/components/heading.d.ts.map +1 -0
  97. package/components/heading.js +2 -0
  98. package/components/heading.js.map +1 -0
  99. package/components/input.d.ts +5 -1
  100. package/components/input.d.ts.map +1 -1
  101. package/components/input.js +1 -50
  102. package/components/input.js.map +1 -1
  103. package/components/layout.d.ts +6 -4
  104. package/components/layout.d.ts.map +1 -1
  105. package/components/layout.js +1 -58
  106. package/components/layout.js.map +1 -1
  107. package/components/link.d.ts +5 -0
  108. package/components/link.d.ts.map +1 -1
  109. package/components/link.js +1 -44
  110. package/components/link.js.map +1 -1
  111. package/components/progress.d.ts +3 -1
  112. package/components/progress.d.ts.map +1 -1
  113. package/components/progress.js +1 -58
  114. package/components/progress.js.map +1 -1
  115. package/components/range.d.ts +10 -4
  116. package/components/range.d.ts.map +1 -1
  117. package/components/range.js +1 -266
  118. package/components/range.js.map +1 -1
  119. package/components/rotate.d.ts +3 -1
  120. package/components/rotate.d.ts.map +1 -1
  121. package/components/rotate.js +1 -56
  122. package/components/rotate.js.map +1 -1
  123. package/components/router.d.ts +14 -16
  124. package/components/router.d.ts.map +1 -1
  125. package/components/router.js +1 -250
  126. package/components/router.js.map +1 -1
  127. package/components/select.d.ts +7 -2
  128. package/components/select.d.ts.map +1 -1
  129. package/components/select.js +1 -211
  130. package/components/select.js.map +1 -1
  131. package/components/skeleton.d.ts +3 -1
  132. package/components/skeleton.d.ts.map +1 -1
  133. package/components/skeleton.js +1 -54
  134. package/components/skeleton.js.map +1 -1
  135. package/components/split.d.ts +8 -2
  136. package/components/split.d.ts.map +1 -1
  137. package/components/split.js +1 -153
  138. package/components/split.js.map +1 -1
  139. package/components/switch.d.ts +5 -2
  140. package/components/switch.d.ts.map +1 -1
  141. package/components/switch.js +1 -92
  142. package/components/switch.js.map +1 -1
  143. package/components/text.d.ts +3 -1
  144. package/components/text.d.ts.map +1 -1
  145. package/components/text.js +1 -43
  146. package/components/text.js.map +1 -1
  147. package/components/time.d.ts +4 -2
  148. package/components/time.d.ts.map +1 -1
  149. package/components/time.js +1 -77
  150. package/components/time.js.map +1 -1
  151. package/components/tooltip.d.ts +4 -2
  152. package/components/tooltip.d.ts.map +1 -1
  153. package/components/tooltip.js +1 -80
  154. package/components/tooltip.js.map +1 -1
  155. package/components/typewriter.d.ts +6 -12
  156. package/components/typewriter.d.ts.map +1 -1
  157. package/components/typewriter.js +1 -129
  158. package/components/typewriter.js.map +1 -1
  159. package/core/global-style.d.ts +2 -2
  160. package/core/global-style.d.ts.map +1 -1
  161. package/core/global-style.js +1 -52
  162. package/core/global-style.js.map +1 -1
  163. package/core/super-anchor.d.ts +2 -1
  164. package/core/super-anchor.d.ts.map +1 -1
  165. package/core/super-anchor.js +1 -38
  166. package/core/super-anchor.js.map +1 -1
  167. package/core/super-input.d.ts +4 -3
  168. package/core/super-input.d.ts.map +1 -1
  169. package/core/super-input.js +1 -111
  170. package/core/super-input.js.map +1 -1
  171. package/core/super-openable.d.ts +1 -1
  172. package/core/super-openable.d.ts.map +1 -1
  173. package/core/super-openable.js +1 -37
  174. package/core/super-openable.js.map +1 -1
  175. package/custom-elements.json +1 -1
  176. package/details.d.ts +1 -0
  177. package/details.d.ts.map +1 -1
  178. package/details.js +1 -5
  179. package/details.js.map +1 -1
  180. package/dev/alert.d.ts +1 -0
  181. package/dev/alert.d.ts.map +1 -1
  182. package/dev/alert.js +1 -0
  183. package/dev/alert.js.map +1 -1
  184. package/dev/avatar.d.ts +1 -0
  185. package/dev/avatar.d.ts.map +1 -1
  186. package/dev/avatar.js +1 -0
  187. package/dev/avatar.js.map +1 -1
  188. package/dev/badge.d.ts +9 -0
  189. package/dev/badge.d.ts.map +1 -0
  190. package/dev/badge.js +5 -0
  191. package/dev/badge.js.map +1 -0
  192. package/dev/button.d.ts +1 -0
  193. package/dev/button.d.ts.map +1 -1
  194. package/dev/button.js +1 -0
  195. package/dev/button.js.map +1 -1
  196. package/dev/card.d.ts +1 -0
  197. package/dev/card.d.ts.map +1 -1
  198. package/dev/card.js +1 -0
  199. package/dev/card.js.map +1 -1
  200. package/dev/carousel.d.ts +1 -0
  201. package/dev/carousel.d.ts.map +1 -1
  202. package/dev/carousel.js +1 -0
  203. package/dev/carousel.js.map +1 -1
  204. package/dev/components/alert.d.ts +4 -1
  205. package/dev/components/alert.d.ts.map +1 -1
  206. package/dev/components/alert.js +20 -23
  207. package/dev/components/alert.js.map +1 -1
  208. package/dev/components/avatar.d.ts +7 -2
  209. package/dev/components/avatar.d.ts.map +1 -1
  210. package/dev/components/avatar.js +22 -10
  211. package/dev/components/avatar.js.map +1 -1
  212. package/dev/components/badge.d.ts +23 -0
  213. package/dev/components/badge.d.ts.map +1 -0
  214. package/dev/components/badge.js +107 -0
  215. package/dev/components/badge.js.map +1 -0
  216. package/dev/components/breath.d.ts +6 -4
  217. package/dev/components/breath.d.ts.map +1 -1
  218. package/dev/components/breath.js +29 -26
  219. package/dev/components/breath.js.map +1 -1
  220. package/dev/components/button.d.ts +8 -5
  221. package/dev/components/button.d.ts.map +1 -1
  222. package/dev/components/button.js +31 -17
  223. package/dev/components/button.js.map +1 -1
  224. package/dev/components/card.d.ts +3 -1
  225. package/dev/components/card.d.ts.map +1 -1
  226. package/dev/components/card.js +8 -11
  227. package/dev/components/card.js.map +1 -1
  228. package/dev/components/carousel.d.ts +5 -1
  229. package/dev/components/carousel.d.ts.map +1 -1
  230. package/dev/components/carousel.js +32 -26
  231. package/dev/components/carousel.js.map +1 -1
  232. package/dev/components/details.d.ts +4 -3
  233. package/dev/components/details.d.ts.map +1 -1
  234. package/dev/components/details.js +22 -27
  235. package/dev/components/details.js.map +1 -1
  236. package/dev/components/dialog.d.ts +4 -2
  237. package/dev/components/dialog.d.ts.map +1 -1
  238. package/dev/components/dialog.js +17 -16
  239. package/dev/components/dialog.js.map +1 -1
  240. package/dev/components/divider.d.ts +3 -3
  241. package/dev/components/divider.d.ts.map +1 -1
  242. package/dev/components/divider.js +29 -17
  243. package/dev/components/divider.js.map +1 -1
  244. package/dev/components/dragbox.d.ts +4 -2
  245. package/dev/components/dragbox.d.ts.map +1 -1
  246. package/dev/components/dragbox.js +11 -4
  247. package/dev/components/dragbox.js.map +1 -1
  248. package/dev/components/flex.d.ts +3 -1
  249. package/dev/components/flex.d.ts.map +1 -1
  250. package/dev/components/flex.js +17 -9
  251. package/dev/components/flex.js.map +1 -1
  252. package/dev/components/form.d.ts +3 -1
  253. package/dev/components/form.d.ts.map +1 -1
  254. package/dev/components/form.js +2 -3
  255. package/dev/components/form.js.map +1 -1
  256. package/dev/components/grid.d.ts +3 -1
  257. package/dev/components/grid.d.ts.map +1 -1
  258. package/dev/components/grid.js +17 -10
  259. package/dev/components/grid.js.map +1 -1
  260. package/dev/components/heading.d.ts +29 -0
  261. package/dev/components/heading.d.ts.map +1 -0
  262. package/dev/components/heading.js +103 -0
  263. package/dev/components/heading.js.map +1 -0
  264. package/dev/components/input.d.ts +5 -1
  265. package/dev/components/input.d.ts.map +1 -1
  266. package/dev/components/input.js +17 -17
  267. package/dev/components/input.js.map +1 -1
  268. package/dev/components/layout.d.ts +6 -4
  269. package/dev/components/layout.d.ts.map +1 -1
  270. package/dev/components/layout.js +23 -22
  271. package/dev/components/layout.js.map +1 -1
  272. package/dev/components/link.d.ts +5 -0
  273. package/dev/components/link.d.ts.map +1 -1
  274. package/dev/components/link.js +12 -2
  275. package/dev/components/link.js.map +1 -1
  276. package/dev/components/progress.d.ts +3 -1
  277. package/dev/components/progress.d.ts.map +1 -1
  278. package/dev/components/progress.js +41 -38
  279. package/dev/components/progress.js.map +1 -1
  280. package/dev/components/range.d.ts +10 -4
  281. package/dev/components/range.d.ts.map +1 -1
  282. package/dev/components/range.js +53 -51
  283. package/dev/components/range.js.map +1 -1
  284. package/dev/components/rotate.d.ts +3 -1
  285. package/dev/components/rotate.d.ts.map +1 -1
  286. package/dev/components/rotate.js +3 -5
  287. package/dev/components/rotate.js.map +1 -1
  288. package/dev/components/router.d.ts +14 -16
  289. package/dev/components/router.d.ts.map +1 -1
  290. package/dev/components/router.js +14 -27
  291. package/dev/components/router.js.map +1 -1
  292. package/dev/components/select.d.ts +7 -2
  293. package/dev/components/select.d.ts.map +1 -1
  294. package/dev/components/select.js +44 -31
  295. package/dev/components/select.js.map +1 -1
  296. package/dev/components/skeleton.d.ts +3 -1
  297. package/dev/components/skeleton.d.ts.map +1 -1
  298. package/dev/components/skeleton.js +9 -9
  299. package/dev/components/skeleton.js.map +1 -1
  300. package/dev/components/split.d.ts +8 -2
  301. package/dev/components/split.d.ts.map +1 -1
  302. package/dev/components/split.js +32 -24
  303. package/dev/components/split.js.map +1 -1
  304. package/dev/components/switch.d.ts +5 -2
  305. package/dev/components/switch.d.ts.map +1 -1
  306. package/dev/components/switch.js +22 -25
  307. package/dev/components/switch.js.map +1 -1
  308. package/dev/components/text.d.ts +3 -1
  309. package/dev/components/text.d.ts.map +1 -1
  310. package/dev/components/text.js +12 -15
  311. package/dev/components/text.js.map +1 -1
  312. package/dev/components/time.d.ts +4 -2
  313. package/dev/components/time.d.ts.map +1 -1
  314. package/dev/components/time.js +7 -5
  315. package/dev/components/time.js.map +1 -1
  316. package/dev/components/tooltip.d.ts +4 -2
  317. package/dev/components/tooltip.d.ts.map +1 -1
  318. package/dev/components/tooltip.js +37 -27
  319. package/dev/components/tooltip.js.map +1 -1
  320. package/dev/components/typewriter.d.ts +6 -12
  321. package/dev/components/typewriter.d.ts.map +1 -1
  322. package/dev/components/typewriter.js +22 -36
  323. package/dev/components/typewriter.js.map +1 -1
  324. package/dev/core/global-style.d.ts +2 -2
  325. package/dev/core/global-style.d.ts.map +1 -1
  326. package/dev/core/global-style.js +11 -6
  327. package/dev/core/global-style.js.map +1 -1
  328. package/dev/core/super-anchor.d.ts +2 -1
  329. package/dev/core/super-anchor.d.ts.map +1 -1
  330. package/dev/core/super-anchor.js +25 -23
  331. package/dev/core/super-anchor.js.map +1 -1
  332. package/dev/core/super-input.d.ts +4 -3
  333. package/dev/core/super-input.d.ts.map +1 -1
  334. package/dev/core/super-input.js +43 -36
  335. package/dev/core/super-input.js.map +1 -1
  336. package/dev/core/super-openable.d.ts +1 -1
  337. package/dev/core/super-openable.d.ts.map +1 -1
  338. package/dev/core/super-openable.js +2 -2
  339. package/dev/core/super-openable.js.map +1 -1
  340. package/dev/details.d.ts +1 -0
  341. package/dev/details.d.ts.map +1 -1
  342. package/dev/details.js +1 -0
  343. package/dev/details.js.map +1 -1
  344. package/dev/dialog.d.ts +1 -0
  345. package/dev/dialog.d.ts.map +1 -1
  346. package/dev/dialog.js +1 -0
  347. package/dev/dialog.js.map +1 -1
  348. package/dev/divider.d.ts +1 -0
  349. package/dev/divider.d.ts.map +1 -1
  350. package/dev/divider.js +1 -0
  351. package/dev/divider.js.map +1 -1
  352. package/dev/dragbox.d.ts +1 -0
  353. package/dev/dragbox.d.ts.map +1 -1
  354. package/dev/dragbox.js +1 -0
  355. package/dev/dragbox.js.map +1 -1
  356. package/dev/flex.d.ts +1 -0
  357. package/dev/flex.d.ts.map +1 -1
  358. package/dev/flex.js +1 -0
  359. package/dev/flex.js.map +1 -1
  360. package/dev/form.d.ts +1 -0
  361. package/dev/form.d.ts.map +1 -1
  362. package/dev/form.js +1 -0
  363. package/dev/form.js.map +1 -1
  364. package/dev/grid.d.ts +1 -0
  365. package/dev/grid.d.ts.map +1 -1
  366. package/dev/grid.js +1 -0
  367. package/dev/grid.js.map +1 -1
  368. package/dev/heading.d.ts +9 -0
  369. package/dev/heading.d.ts.map +1 -0
  370. package/dev/heading.js +5 -0
  371. package/dev/heading.js.map +1 -0
  372. package/dev/index.d.ts +2 -0
  373. package/dev/index.d.ts.map +1 -1
  374. package/dev/index.js +2 -0
  375. package/dev/index.js.map +1 -1
  376. package/dev/layout.d.ts.map +1 -1
  377. package/dev/progress.d.ts.map +1 -1
  378. package/dev/router.d.ts.map +1 -1
  379. package/dev/split.d.ts +1 -1
  380. package/dev/split.d.ts.map +1 -1
  381. package/dev/typewriter.d.ts +1 -0
  382. package/dev/typewriter.d.ts.map +1 -1
  383. package/dev/typewriter.js +1 -0
  384. package/dev/typewriter.js.map +1 -1
  385. package/dialog.d.ts +1 -0
  386. package/dialog.d.ts.map +1 -1
  387. package/dialog.js +1 -5
  388. package/dialog.js.map +1 -1
  389. package/divider.d.ts +1 -0
  390. package/divider.d.ts.map +1 -1
  391. package/divider.js +1 -5
  392. package/divider.js.map +1 -1
  393. package/dragbox.d.ts +1 -0
  394. package/dragbox.d.ts.map +1 -1
  395. package/dragbox.js +1 -5
  396. package/dragbox.js.map +1 -1
  397. package/flex.d.ts +1 -0
  398. package/flex.d.ts.map +1 -1
  399. package/flex.js +1 -5
  400. package/flex.js.map +1 -1
  401. package/form.d.ts +1 -0
  402. package/form.d.ts.map +1 -1
  403. package/form.js +1 -5
  404. package/form.js.map +1 -1
  405. package/grid.d.ts +1 -0
  406. package/grid.d.ts.map +1 -1
  407. package/grid.js +1 -5
  408. package/grid.js.map +1 -1
  409. package/heading.d.ts +9 -0
  410. package/heading.d.ts.map +1 -0
  411. package/heading.js +2 -0
  412. package/heading.js.map +1 -0
  413. package/index.d.ts +2 -0
  414. package/index.d.ts.map +1 -1
  415. package/index.js +1 -56
  416. package/index.js.map +1 -1
  417. package/input.js +1 -5
  418. package/input.js.map +1 -1
  419. package/layout.d.ts.map +1 -1
  420. package/layout.js +1 -5
  421. package/layout.js.map +1 -1
  422. package/link.js +1 -5
  423. package/link.js.map +1 -1
  424. package/package.json +11 -6
  425. package/progress.d.ts.map +1 -1
  426. package/progress.js +1 -5
  427. package/progress.js.map +1 -1
  428. package/range.js +1 -5
  429. package/range.js.map +1 -1
  430. package/rotate.js +1 -5
  431. package/rotate.js.map +1 -1
  432. package/router.d.ts.map +1 -1
  433. package/router.js +1 -5
  434. package/router.js.map +1 -1
  435. package/select.js +1 -5
  436. package/select.js.map +1 -1
  437. package/skeleton.js +1 -5
  438. package/skeleton.js.map +1 -1
  439. package/split.d.ts +1 -1
  440. package/split.d.ts.map +1 -1
  441. package/split.js +1 -5
  442. package/split.js.map +1 -1
  443. package/src/alert.ts +2 -0
  444. package/src/avatar.ts +2 -0
  445. package/src/badge.ts +13 -0
  446. package/src/button.ts +2 -0
  447. package/src/card.ts +2 -0
  448. package/src/carousel.ts +2 -0
  449. package/src/components/alert.ts +26 -29
  450. package/src/components/avatar.ts +26 -14
  451. package/src/components/badge.ts +107 -0
  452. package/src/components/breath.ts +36 -31
  453. package/src/components/button.ts +31 -32
  454. package/src/components/card.ts +9 -12
  455. package/src/components/carousel.ts +41 -34
  456. package/src/components/details.ts +24 -29
  457. package/src/components/dialog.ts +24 -25
  458. package/src/components/divider.ts +29 -17
  459. package/src/components/dragbox.ts +18 -13
  460. package/src/components/flex.ts +20 -10
  461. package/src/components/form.ts +6 -7
  462. package/src/components/grid.ts +20 -11
  463. package/src/components/heading.ts +105 -0
  464. package/src/components/input.ts +20 -20
  465. package/src/components/layout.ts +20 -23
  466. package/src/components/link.ts +12 -3
  467. package/src/components/progress.ts +46 -41
  468. package/src/components/range.ts +69 -76
  469. package/src/components/rotate.ts +11 -10
  470. package/src/components/router.ts +42 -40
  471. package/src/components/select.ts +57 -45
  472. package/src/components/skeleton.ts +11 -11
  473. package/src/components/split.ts +45 -35
  474. package/src/components/switch.ts +27 -30
  475. package/src/components/text.ts +14 -21
  476. package/src/components/time.ts +14 -12
  477. package/src/components/tooltip.ts +36 -32
  478. package/src/components/typewriter.ts +32 -45
  479. package/src/core/global-style.ts +25 -11
  480. package/src/core/super-anchor.ts +30 -26
  481. package/src/core/super-input.ts +53 -53
  482. package/src/core/super-openable.ts +7 -7
  483. package/src/details.ts +2 -0
  484. package/src/dialog.ts +2 -0
  485. package/src/divider.ts +2 -0
  486. package/src/dragbox.ts +2 -0
  487. package/src/flex.ts +2 -0
  488. package/src/form.ts +2 -0
  489. package/src/grid.ts +2 -0
  490. package/src/heading.ts +13 -0
  491. package/src/index.ts +2 -0
  492. package/src/layout.ts +1 -0
  493. package/src/progress.ts +1 -0
  494. package/src/router.ts +1 -0
  495. package/src/split.ts +1 -1
  496. package/src/typewriter.ts +2 -0
  497. package/switch.js +1 -5
  498. package/switch.js.map +1 -1
  499. package/text.js +1 -5
  500. package/text.js.map +1 -1
  501. package/time.js +1 -5
  502. package/time.js.map +1 -1
  503. package/tooltip.js +1 -5
  504. package/tooltip.js.map +1 -1
  505. package/typewriter.d.ts +1 -0
  506. package/typewriter.d.ts.map +1 -1
  507. package/typewriter.js +1 -5
  508. package/typewriter.js.map +1 -1
  509. package/vscode.html-custom-data.json +1 -1
  510. package/web-types.json +1 -1
@@ -0,0 +1,47 @@
1
+ var Godown=function(t,e){"use strict";
2
+ /**
3
+ * @license MIT
4
+ * @version 3.0.0
5
+ * Require Lit Core ("Lit" in globalThis).
6
+ */function o(t,e,o,r){var s,a=arguments.length,l=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,e,o,r);else for(var h=t.length-1;h>=0;h--)(s=t[h])&&(l=(a<3?s(l):a>3?s(e,o,l):s(e,o))||l);return a>3&&l&&Object.defineProperty(e,o,l),l}"function"==typeof SuppressedError&&SuppressedError;const r=t=>null==t,s=t=>!isNaN(+t),a=(t,e=" ")=>{if(!t||!e)return t;let o=t.length;for(;o>0&&t.slice(o-e.length,o)===e;)o-=e.length;return t.slice(0,o)},l=(t,e=" ")=>{if(!t||!e)return t;let o=0;for(;o<t.length&&t.slice(o,o+e.length)===e;)o+=e.length;return t.slice(o)},h=(t,e)=>a(l(t,e),e),c="-";const d=(...t)=>e=>{const o=[];for(let t=Object.getPrototypeOf(e);t.styles;t=Object.getPrototypeOf(t))o.push(t.styles);e.styles=[...o,...t]},p=(t,e)=>o=>{t||=o.name.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),o.protoName=t;(({tagName:t,styles:e,autoDefine:o=!1,registry:r=customElements})=>s=>{s.elementTagName=t,e&&d(e)(s),o&&!r.get(t)&&r.define(t,s)})({tagName:o.godownConfig.tag(t),...e})(o)}
7
+ /**
8
+ * @license
9
+ * Copyright 2019 Google LLC
10
+ * SPDX-License-Identifier: BSD-3-Clause
11
+ */,u=globalThis,v=u.ShadowRoot&&(void 0===u.ShadyCSS||u.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,m=Symbol(),f=new WeakMap;let g=class n{constructor(t,e,o){if(this._$cssResult$=!0,o!==m)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(v&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=f.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&f.set(e,t))}return t}toString(){return this.cssText}};const y=v?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return(t=>new g("string"==typeof t?t:t+"",void 0,m))(e)})(t):t
12
+ /**
13
+ * @license
14
+ * Copyright 2017 Google LLC
15
+ * SPDX-License-Identifier: BSD-3-Clause
16
+ */,{is:$,defineProperty:w,getOwnPropertyDescriptor:_,getOwnPropertyNames:k,getOwnPropertySymbols:x,getPrototypeOf:S}=Object,C=globalThis,E=C.trustedTypes,R=E?E.emptyScript:"",T=C.reactiveElementPolyfillSupport,A=(t,e)=>t,P={toAttribute(t,e){switch(e){case Boolean:t=t?R: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}},M=(t,e)=>!$(t,e),z={attribute:!0,type:String,converter:P,reflect:!1,hasChanged:M};Symbol.metadata??=Symbol("metadata"),C.litPropertyMetadata??=new WeakMap;let O=class b 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=z){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),r=this.getPropertyDescriptor(t,o,e);void 0!==r&&w(this.prototype,t,r)}}static getPropertyDescriptor(t,e,o){const{get:r,set:s}=_(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return r?.call(this)},set(e){const a=r?.call(this);s.call(this,e),this.requestUpdate(t,a,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??z}static _$Ei(){if(this.hasOwnProperty(A("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(A("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(A("properties"))){const t=this.properties,e=[...k(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(y(t))}else void 0!==t&&e.push(y(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(v)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of e){const e=document.createElement("style"),r=u.litNonce;void 0!==r&&e.setAttribute("nonce",r),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)}_$EC(t,e){const o=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,o);if(void 0!==r&&!0===o.reflect){const s=(void 0!==o.converter?.toAttribute?o.converter:P).toAttribute(e,o.type);this._$Em=t,null==s?this.removeAttribute(r):this.setAttribute(r,s),this._$Em=null}}_$AK(t,e){const o=this.constructor,r=o._$Eh.get(t);if(void 0!==r&&this._$Em!==r){const t=o.getPropertyOptions(r),s="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:P;this._$Em=r,this[r]=s.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,o){if(void 0!==t){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??M)(this[t],e))return;this.P(t,e,o)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),!0===o.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$ET(){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)!0!==o.wrapped||this._$AL.has(e)||void 0===this[e]||this.P(e,this[e],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$EU()}catch(e){throw t=!1,this._$EU(),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)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU()}updated(t){}firstUpdated(t){}};O.elementStyles=[],O.shadowRootOptions={mode:"open"},O[A("elementProperties")]=new Map,O[A("finalized")]=new Map,T?.({ReactiveElement:O}),(C.reactiveElementVersions??=[]).push("2.0.4");
17
+ /**
18
+ * @license
19
+ * Copyright 2017 Google LLC
20
+ * SPDX-License-Identifier: BSD-3-Clause
21
+ */
22
+ const I={attribute:!0,type:String,converter:P,reflect:!1,hasChanged:M},D=(t=I,e,o)=>{const{kind:r,metadata:s}=o;let a=globalThis.litPropertyMetadata.get(s);if(void 0===a&&globalThis.litPropertyMetadata.set(s,a=new Map),a.set(o.name,t),"accessor"===r){const{name:r}=o;return{set(o){const s=e.get.call(this);e.set.call(this,o),this.requestUpdate(r,s,t)},init(e){return void 0!==e&&this.P(r,void 0,t),e}}}if("setter"===r){const{name:r}=o;return function(o){const s=this[r];e.call(this,o),this.requestUpdate(r,s,t)}}throw Error("Unsupported decorator location: "+r)};function j(t){return(e,o)=>"object"==typeof o?D(t,e,o):((t,e,o)=>{const r=e.hasOwnProperty(o);return e.constructor.createProperty(o,r?{...t,wrapped:!0}:t),r?Object.getOwnPropertyDescriptor(e,o):void 0})(t,e,o)
23
+ /**
24
+ * @license
25
+ * Copyright 2017 Google LLC
26
+ * SPDX-License-Identifier: BSD-3-Clause
27
+ */}function B(t){return j({...t,state:!0,attribute:!1})}
28
+ /**
29
+ * @license
30
+ * Copyright 2017 Google LLC
31
+ * SPDX-License-Identifier: BSD-3-Clause
32
+ */const N=(t,e,o)=>(o.configurable=!0,o.enumerable=!0,Reflect.decorate&&"object"!=typeof e&&Object.defineProperty(t,e,o),o)
33
+ /**
34
+ * @license
35
+ * Copyright 2017 Google LLC
36
+ * SPDX-License-Identifier: BSD-3-Clause
37
+ */;function U(t,e){return(o,r,s)=>{const a=e=>e.renderRoot?.querySelector(t)??null;if(e){const{get:t,set:e}="object"==typeof r?o:s??(()=>{const t=Symbol();return{get(){return this[t]},set(e){this[t]=e}}})();return N(o,r,{get(){let o=t.call(this);return void 0===o&&(o=a(this),(null!==o||this.hasUpdated)&&e.call(this,o)),o}})}return N(o,r,{get(){return a(this)}})}}
38
+ /**
39
+ * @license
40
+ * Copyright 2017 Google LLC
41
+ * SPDX-License-Identifier: BSD-3-Clause
42
+ */let L;const V=(t,e=!0)=>U(`[part=${t}]`,e)
43
+ /**
44
+ * @license
45
+ * Copyright 2017 Google LLC
46
+ * SPDX-License-Identifier: BSD-3-Clause
47
+ */,G=6;let H=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 F=(t,e,o)=>{r(o)||!1===o?t.removeAttribute(e):(!0===o||"string"==typeof o||"number"==typeof o&&!isNaN(o))&&t.setAttribute(e,!0===o?"":String(o))};const q=(t=>(...e)=>({_$litDirective$:t,values:e}))(class AttrDirective extends H{render(t,e){}update(t,[o,r]){if(!o)return e.noChange;if(t.type===G){for(const e in o)(r||F)(t.element,e,o[e]);return e.noChange}}}),W=((t,e)=>o=>t({...e,...o}))(q,{width:"1em",height:"1em",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}),Y=(t,e)=>t?t+(e?" "+e:""):e,X=(...t)=>t.reduce(((t,e)=>{if(Array.isArray(e))return Y(t,e.join(" "));if("object"==typeof e){const o=Object.entries(e).reduce(((t,[e,o])=>o?Y(t,e):t),"");return Y(t,o)}return Y(t,e)}),""),Z=(t,o)=>e.html`<slot name="${t||e.nothing}" @slotchange=${null}></slot>`;function K(t,e,o,s){const a={};return Object.keys(e).forEach(((l,h)=>{const c=t.reduce(((t,o,a)=>{let h=e[l][a];return h=s?s(h,a):h,r(h)||t.push(`${o}:${h}`),t}),[]);a[l]=`${o?o(l,h):l}{${c.join(";")}}`})),a}function Q(t){return Object.keys(t).reduce(((e,o)=>{const r=t[o];if(!r)return e;const s="string"==typeof r?r:J(r);return s?e+`${o}{${s}}`:e}),"")}function J(t){return Object.keys(t).reduce(((e,o)=>{const s=t[o];return r(s)?e:e+`${o}:${s};`}),"")}function tt(t,e){return t?`var(${t})`:""}const et=(t,o)=>{if(!t)return e.nothing;const r="string"==typeof t?t:Q(t);return r?e.html`<style media="${e.nothing}">${r}</style>`:e.nothing},ot=t=>(o,...r)=>{const s=e.svg(o,r),a=t,l=t=>e.html`<svg viewBox="${a}" ${W(t)}>${s}</svg>`;return l.body=s,l.viewBox=a,l};function it(t,e=document.body){const o=[];if(!e||!t)return o;e.shadowRoot&&o.push(...it(t,e.shadowRoot));const r=e.querySelectorAll(t);o.push(...Array.from(r));for(const r of e.children)o.push(...it(t,r));return[...new Set(o)]}function rt(t,e=document.body){if(!e||!t)return null;if(e.shadowRoot)return rt(t,e.shadowRoot);const o=e.querySelector(t);if(o)return o;for(const o of e.children){const e=rt(t,o);if(e)return e}return null}class Events{constructor(){this.m=new Map}add(t,e,o,r){const s=this.m.get(e)||new Map,a=s.get(t)||new Set;return a.add(o),s.set(t,a),this.m.set(e,s),t.addEventListener(e,o,r),o}remove(t,e,o,r){if(o){const s=this.m.get(e);if(s){const r=s.get(t);r&&(r.delete(o),r.size||(s.delete(t),s.size||this.m.delete(e)))}t.removeEventListener(e,o,r)}}removeAll(){this.m.forEach(((t,e)=>{t.forEach(((t,o)=>{t.forEach((t=>{o.removeEventListener(e,t)}))})),t.clear(),this.m.delete(e)}))}}class GodownElement extends e.LitElement{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)}get observedRecord(){return Object.fromEntries(this.scopedObservedAttributes.map((t=>[t,this[t]])))}get scopedObservedAttributes(){return this.globalObservedAttributes.filter((t=>!GodownElement.observedAttributes.includes(t)))}get globalObservedAttributes(){return this.constructor.observedAttributes}get _slot(){return this.shadowRoot.querySelector("slot:not([name])")}get _slotAll(){return[...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(),/^[\s\S]*{[\s\S]*}$/.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.__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()}mount(t){this.firstUpdated(t)}unmount(){this.disconnectedCallback()}remount(t){this.unmount(),this.connectedCallback(),this.mount(t)}deepQuerySelector(t){return rt(t,this)}deepQuerySelectorAll(t){return it(t,this)}adoptStyles(...t){const e=this.shadowRoot.adoptedStyleSheets;if(t.length){const o=new CSSStyleSheet;t.forEach((t=>o.insertRule(t.toString()))),e.push(o)}return 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(a(this.prefix,c)+c+t+c+l(this.suffix,c),c)}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)}},o([j({type:Boolean,reflect:!0})],GodownElement.prototype,"contents",void 0),o([j({reflect:!0})],GodownElement.prototype,"stylex",null);class RouteTree{constructor(){this.matchType=RouteTree.matchType.strict,this.children=[]}insert(t,e,o=0){if(e||(e=RouteTree.split(t)),e.length===o)return void(this.pattern=t);const r=e[o];let s=this.findStrict(r);s||(s=new RouteTree,s.part=r,s.matchType=RouteTree.dynamic(r).matchType,this.children.push(s),this.sorted=!1),s.insert(t,e,o+1)}search(t,e=0){if("string"==typeof t&&(t=RouteTree.split(t)),this.sorted||this.sort(),t.length===e||RouteTree.dynamic(this.part).matchType===RouteTree.matchType.multi)return this.pattern?this:null;const o=t[e],r=this.filterWide(o);for(const o of r){const r=o.search(t,e+1);if(null!==r)return r}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))}static parseParams(t,e){const o=RouteTree.split(t),r=RouteTree.split(e),s={};for(let t=0;t<r.length;t++){const e=r[t],{key:a,carry:l,matchType:h}=RouteTree.dynamic(e);if(h===RouteTree.matchType.single)s[a.slice(l)]=o[t];else if(h===RouteTree.matchType.multi){s[a.slice(l)]=o.slice(t).join("/");break}}return s}static dynamic(t){if(t){if(t.startsWith("{")&&t.endsWith("}")||t.startsWith("[")&&t.endsWith("]")){t=t.slice(1,-1);const e=RouteTree.dynamic(t);return e.matchType||=RouteTree.matchType.single,e}if(t.length>1){const e=t[0];if(":"===e)return{key:t,carry:1,matchType:RouteTree.matchType.single};if("*"===e)return{key:t,carry:1,matchType:RouteTree.matchType.multi};if(t.startsWith("..."))return{key:t,carry:3,matchType:RouteTree.matchType.multi}}}return{key:t,carry:0,matchType:RouteTree.matchType.strict}}static join(...t){return t.map((t=>h(t,"/"))).join("/")}static split(t){return t.split("/").filter((t=>t))}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}}RouteTree.matchType={strict:0,single:1,multi:2};var st=ot("0 0 56 56")`<path fill="currentColor" d="M28 4c13.255 0 24 10.745 24 24S41.255 52 28 52S4 41.255 4 28S14.745 4 28 4m0 4C16.954 8 8 16.954 8 28s8.954 20 20 20s20-8.954 20-20S39.046 8 28 8m10.788 11.93c.67.67.67 1.756 0 2.425l-13.36 13.36a1.715 1.715 0 0 1-2.424 0l-5.645-5.646a1.714 1.714 0 0 1 2.425-2.424l3.22 3.22c.67.67 1.755.67 2.425 0l10.934-10.934c.67-.67 1.755-.67 2.425 0"/>`,nt=ot("0 0 56 56")`<path fill="currentColor" d="M28 51.906c13.055 0 23.906-10.828 23.906-23.906c0-13.055-10.875-23.906-23.93-23.906C14.899 4.094 4.095 14.945 4.095 28c0 13.078 10.828 23.906 23.906 23.906m0-3.984C16.937 47.922 8.1 39.062 8.1 28c0-11.04 8.813-19.922 19.876-19.922c11.039 0 19.921 8.883 19.945 19.922c.023 11.063-8.883 19.922-19.922 19.922m-.023-15.68c1.124 0 1.757-.633 1.78-1.851l.352-12.375c.024-1.196-.914-2.086-2.156-2.086c-1.266 0-2.156.867-2.133 2.062l.305 12.399c.023 1.195.68 1.851 1.852 1.851m0 7.617c1.335 0 2.53-1.078 2.53-2.437c0-1.383-1.171-2.438-2.53-2.438c-1.383 0-2.532 1.078-2.532 2.438c0 1.336 1.172 2.437 2.532 2.437"/>`,at=ot("0 0 56 56")`<path fill="currentColor" d="M28 51.906c13.055 0 23.906-10.828 23.906-23.906c0-13.055-10.875-23.906-23.93-23.906C14.899 4.094 4.095 14.945 4.095 28c0 13.078 10.828 23.906 23.906 23.906m0-3.984C16.937 47.922 8.1 39.062 8.1 28c0-11.04 8.813-19.922 19.876-19.922c11.039 0 19.921 8.883 19.945 19.922c.023 11.063-8.883 19.922-19.922 19.922m-.211-28.266c1.71 0 3.047-1.36 3.047-3.047c0-1.71-1.336-3.07-3.047-3.07s-3.047 1.36-3.047 3.07a3.026 3.026 0 0 0 3.047 3.047m-3.914 21.235h9.562c.961 0 1.711-.68 1.711-1.641c0-.914-.75-1.64-1.71-1.64H30.53V25.68c0-1.266-.656-2.11-1.828-2.11h-4.43c-.937 0-1.687.727-1.687 1.64c0 .962.75 1.642 1.687 1.642h2.532v10.757h-2.93c-.938 0-1.688.727-1.688 1.641c0 .96.75 1.64 1.688 1.64"/>`,lt=ot("0 0 56 56")`<path fill="currentColor" d="M19.504 43.152h16.969c.797 0 1.289-.492 1.289-1.289v-3.75c0-5.672 8.25-9.328 8.25-19.453C46.012 7.996 38.793.871 27.988.871s-18 7.125-18 17.79c0 10.124 8.227 13.78 8.227 19.452v3.75c0 .797.515 1.29 1.289 1.29m2.203-4.992c0-6.89-8.18-10.57-8.18-19.476c0-8.579 5.79-14.274 14.461-14.274c8.672 0 14.485 5.695 14.485 14.274c0 8.906-8.203 12.586-8.203 19.476v1.453H21.707Zm-1.336 11.32h15.235c1.195 0 2.156-.984 2.156-2.203s-.961-2.203-2.157-2.203H20.371c-1.195 0-2.156.985-2.156 2.203c0 1.22.96 2.203 2.156 2.203m7.617 5.649c3.235 0 5.508-1.477 5.742-3.75H22.246c.211 2.273 2.484 3.75 5.742 3.75"/>`,ht=ot("0 0 56 56")`<path fill="currentColor" d="M28 51.906c13.055 0 23.906-10.828 23.906-23.906c0-13.055-10.875-23.906-23.93-23.906C14.899 4.094 4.095 14.945 4.095 28c0 13.078 10.828 23.906 23.906 23.906m0-3.984C16.937 47.922 8.1 39.062 8.1 28c0-11.04 8.813-19.922 19.876-19.922c11.039 0 19.921 8.883 19.945 19.922c.023 11.063-8.883 19.922-19.922 19.922m-.492-15.07c1.172 0 1.898-.727 1.898-1.664v-.282c0-1.312.75-2.133 2.39-3.21c2.274-1.5 3.891-2.884 3.891-5.673c0-3.914-3.468-6-7.453-6c-4.031 0-6.68 1.899-7.312 4.055c-.117.399-.211.774-.211 1.172c0 1.031.844 1.617 1.617 1.617c1.336 0 1.547-.726 2.297-1.594c.773-1.289 1.898-2.062 3.469-2.062c2.133 0 3.515 1.195 3.515 3c0 1.594-.984 2.367-3.023 3.773c-1.688 1.172-2.953 2.414-2.953 4.711V31c0 1.242.68 1.852 1.875 1.852m-.047 7.007c1.36 0 2.531-1.078 2.531-2.437c0-1.383-1.148-2.438-2.531-2.438s-2.531 1.078-2.531 2.438c0 1.336 1.171 2.437 2.53 2.437"/>`,ct=ot("0 0 56 56")`<path fill="currentColor" d="M28 51.906c13.055 0 23.906-10.828 23.906-23.906c0-13.055-10.875-23.906-23.93-23.906C14.899 4.094 4.095 14.945 4.095 28c0 13.078 10.828 23.906 23.906 23.906m0-3.984C16.937 47.922 8.1 39.062 8.1 28c0-11.04 8.813-19.922 19.876-19.922c11.039 0 19.921 8.883 19.945 19.922c.023 11.063-8.883 19.922-19.922 19.922m-8.156-9.727c.656 0 1.148-.28 1.664-.797l15.75-15.984c.492-.492.797-1.078.797-1.617c0-1.078-.891-1.945-1.97-1.945c-.562 0-1.1.28-1.616.796L18.742 34.61c-.539.516-.797 1.102-.797 1.641c0 1.055.774 1.945 1.899 1.945"/>`,dt=ot("0 0 56 56")`<path fill="currentColor" d="M10.023 43.023c-.796.797-.82 2.157 0 2.954c.82.796 2.157.796 2.977 0l15-15l15 15c.797.796 2.156.82 2.977 0c.796-.82.796-2.157 0-2.954L30.953 28l15.024-15c.796-.797.82-2.156 0-2.953c-.844-.82-2.18-.82-2.977 0l-15 15l-15-15c-.82-.82-2.18-.844-2.977 0c-.796.82-.796 2.156 0 2.953l15 15Z"/>`,pt=ot("0 0 56 56")`<path fill="currentColor" d="M28 51.906c13.055 0 23.906-10.828 23.906-23.906c0-13.055-10.875-23.906-23.93-23.906C14.899 4.094 4.095 14.945 4.095 28c0 13.078 10.828 23.906 23.906 23.906m0-3.984C16.937 47.922 8.1 39.062 8.1 28c0-11.04 8.813-19.922 19.876-19.922c11.039 0 19.921 8.883 19.945 19.922c.023 11.063-8.883 19.922-19.922 19.922m-8.016-9.984c.516 0 .985-.211 1.336-.586l6.657-6.68l6.656 6.68c.351.351.82.586 1.36.586c1.03 0 1.874-.868 1.874-1.899c0-.539-.21-.984-.562-1.336l-6.657-6.656l6.68-6.703c.375-.399.563-.797.563-1.313a1.865 1.865 0 0 0-1.875-1.875c-.493 0-.915.164-1.313.563l-6.727 6.703l-6.703-6.68c-.351-.375-.773-.539-1.289-.539c-1.054 0-1.875.797-1.875 1.852c0 .515.188.96.563 1.312l6.656 6.68l-6.656 6.68c-.375.328-.563.796-.563 1.312c0 1.031.82 1.898 1.875 1.898"/>`;const ut=(t,e,o)=>({r:t,g:e,b:o,toString(){return`${this.r} ${this.g} ${this.b}`}}),vt={darkgray:[ut(121,121,121),ut(109,109,109),ut(97,97,97),ut(85,85,85),ut(73,73,73),ut(61,61,61),ut(48,48,48),ut(36,36,36),ut(24,24,24),ut(12,12,12)],lightgray:[ut(243,243,243),ut(231,231,231),ut(219,219,219),ut(206,206,206),ut(194,194,194),ut(182,182,182),ut(170,170,170),ut(158,158,158),ut(146,146,146),ut(133,133,133)],teal:[ut(213,249,248),ut(170,243,241),ut(128,237,234),ut(85,231,226),ut(43,225,219),ut(0,219,212),ut(0,175,170),ut(0,131,127),ut(0,88,85),ut(0,44,42)],blue:[ut(213,240,255),ut(170,224,255),ut(128,209,255),ut(85,193,255),ut(43,178,255),ut(0,162,255),ut(0,130,204),ut(0,97,153),ut(0,65,102),ut(0,32,51)],green:[ut(221,243,221),ut(186,231,186),ut(152,219,152),ut(117,206,117),ut(82,194,82),ut(48,182,48),ut(38,146,38),ut(29,109,29),ut(19,73,19),ut(10,36,10)],red:[ut(251,221,221),ut(247,186,187),ut(243,152,154),ut(239,118,120),ut(235,83,86),ut(231,49,52),ut(185,39,42),ut(139,29,31),ut(92,20,21),ut(46,10,10)],purple:[ut(242,228,253),ut(229,201,250),ut(217,174,248),ut(204,146,245),ut(191,119,243),ut(178,92,240),ut(142,74,192),ut(107,55,144),ut(71,37,96),ut(36,18,48)],orange:[ut(255,235,213),ut(255,216,170),ut(255,196,128),ut(255,176,85),ut(255,157,43),ut(255,137,0),ut(204,110,0),ut(153,82,0),ut(102,55,0),ut(51,27,0)],yellow:[ut(251,252,216),ut(247,248,177),ut(243,245,138),ut(239,242,98),ut(235,238,59),ut(231,235,20),ut(185,188,16),ut(139,141,12),ut(92,94,8),ut(46,47,4)],pink:[ut(254,222,233),ut(253,189,211),ut(252,156,190),ut(251,123,168),ut(250,90,146),ut(249,57,124),ut(199,46,99),ut(149,34,74),ut(100,23,50),ut(50,11,25)]};class GlobalStyle extends GodownElement{}const mt=h(GlobalStyle.godownConfig.prefix,"-");function ft(t,o=1){return function(t){return e.unsafeCSS(`--${t}`)}(mt+"-".repeat(o)+t)}const gt={foreground:ft("foreground",2),background:ft("background",2),clipBackground:ft("clip-background",2),active:ft("active",2),passive:ft("passive",2),_colors:{},input:ft("input",2),white:ft("color-white",2),black:ft("color-black",2)};var yt,bt;GlobalStyle.styles=[e.unsafeCSS(`:host{${gt.black}:rgb(0 0 0);${gt.white}:rgb(255 255 255);`+(yt=(t,o,r)=>{gt._colors[t]||=[],gt._colors[t].push(e.unsafeCSS(ft("color",2)+"-"+t+"-"+o));const s=`-${t}-${o}`;return`${ft("color",2)+s}:rgb(${r});`},bt=vt,Object.entries(bt).flatMap((([t,e])=>e.map(((e,o)=>yt(t,o,e)))))).join("")+J({[gt.background+""]:`var(${gt._colors.darkgray[9]})`,[gt.foreground+""]:`var(${gt._colors.lightgray[0]})`,[gt.active+""]:`var(${gt._colors.blue[6]})`,[gt.passive+""]:`var(${gt._colors.darkgray[6]})`,[gt.clipBackground+""]:`linear-gradient(to bottom, var(${gt.foreground}), var(${gt.passive}))`})+"}"),e.css`*{border:0;outline:0;margin:0;padding:0;font-size:100%;font-style:normal;box-sizing:border-box}:host{box-sizing:border-box}a{text-decoration:none}span{white-space:nowrap}svg{-webkit-user-select:none;user-select:none}:host([contents]){display:contents}:where(:host([contents]) [part=root]){all:inherit;display:revert}`];const $t="alert",wt=ft($t),_t=["color","background"].map((t=>`${wt}--${t}`)),kt=t=>[gt._colors[t][5],gt._colors[t][9]],xt=K(_t,{green:kt("green"),blue:kt("blue"),orange:kt("orange"),red:kt("red"),yellow:kt("yellow"),purple:kt("purple"),teal:kt("teal"),pink:kt("pink"),gray:[gt._colors.lightgray[5],gt._colors.darkgray[5]],white:[gt._colors.lightgray[2],gt._colors.darkgray[7]],black:[gt._colors.darkgray[8],gt._colors.lightgray[5]]},(()=>":host"),(t=>tt(t))),St=t=>[gt._colors[t][6],gt._colors[t][0]],Ct=K(_t,{green:St("green"),blue:St("blue"),orange:St("orange"),red:St("red"),yellow:St("yellow"),purple:St("purple"),teal:St("teal"),pink:St("pink"),gray:[gt._colors.darkgray[5],gt._colors.lightgray[7]],white:[gt._colors.lightgray[0],gt._colors.darkgray[0]],black:[gt._colors.darkgray[7],gt._colors.lightgray[3]]},(()=>":host"),(t=>tt(t))),Et={tip:{color:"teal",icon:lt},success:{color:"green",icon:st},info:{color:"blue",icon:at},warning:{color:"orange",icon:nt},danger:{color:"red",icon:pt},error:{color:"red",icon:pt},help:{color:"purple",icon:ht},deprecated:{color:"gray",icon:ct}};let Rt=class Alert extends GlobalStyle{constructor(){super(...arguments),this.color="blue",this.autoclose=0,this.hideClose=!1,this.variant="dark"}render(){const t=Et[this.call]?.color||this.color,o=this.call?Et[this.call].icon():Z("icon");return e.html`<div part="root" ${q(this.observedRecord)}><div part="icon">${o}</div><div part="content"><strong part="title">${this.title||Z("title")}</strong> ${this.content||Z()}</div>${this.hideClose||"blockquote"===this.variant?"":e.html`<div part="close" tabindex="0" @click="${this.close}">${dt()}</div>`} ${et("light"===this.variant?Ct[t]:xt[t])}</div>`}close(){this.remove(),this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}firstUpdated(){this.autoclose&&setTimeout((()=>this.close()),this.autoclose)}static alert(t,e){const o=new this;return Object.assign(o,e),t.appendChild(o),o}};o([j()],Rt.prototype,"call",void 0),o([j()],Rt.prototype,"color",void 0),o([j({type:Number})],Rt.prototype,"autoclose",void 0),o([j()],Rt.prototype,"title",void 0),o([j()],Rt.prototype,"content",void 0),o([j({type:Boolean})],Rt.prototype,"hideClose",void 0),o([j()],Rt.prototype,"variant",void 0),Rt=o([p($t),d(e.css`:host,:where(:host([contents]) [part=root]){border-radius:var(${wt}--border-radius);${wt}--border-radius:.25em;${wt}--border-width:.075em;${wt}--blockquote-width:.2em;${wt}--padding:.5em;display:block;width:100%}[part=root]{--color:var(${wt}--color);color:var(--color);width:100%;transition:.25s;display:flex;justify-content:space-between;padding:var(${wt}--padding);border-radius:inherit;border:var(${wt}--border-width) solid var(--color);background:var(${wt}--background)}[variant=blockquote]{border-radius:0;border-left:var(${wt}--blockquote-width) solid var(--color);border-bottom:none;border-right:none;border-top:none;background:0 0}[part=content]{color:var(--color)}[part=root]{display:grid;align-items:center;grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr}[part=title]{line-height:2em}[part=icon]{display:inline-grid;align-items:center;height:2em}[part=icon] svg{margin-right:.5em;width:1.25em;height:1.25em}[part=content]{grid-row:span 2/span 2;line-height:1.5em}`)],Rt);var Tt=Rt;Tt.define();const At="avatar",Pt=ft(At);let Mt=class Avatar extends GlobalStyle{constructor(){super(...arguments),this.name="",this.round=!1}render(){return e.html`<div part="root" ${q(((t,...e)=>Object.keys(t).reduce(((o,r)=>(e.includes(r)||(o[r]=t[r]),o)),{}))(this.observedRecord,"src"))}>${this._renderAvatar()}</div>`}_renderAvatar(){return this.src?e.html`<img part="image" src="${this.src}" @error="${this._handleError}" alt="${this.name}">`:this.name?e.html`<span part="name">${this.format()}</span>`:Z()}format(){return this.name}_handleError(){this.src=void 0}};o([j()],Mt.prototype,"src",void 0),o([j()],Mt.prototype,"name",void 0),o([j({type:Boolean})],Mt.prototype,"round",void 0),Mt=o([p(At),d(e.css`:host{${Pt}--size:2em;width:var(${Pt}--size);height:var(${Pt}--size);vertical-align:bottom}: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]{overflow:hidden;position:relative;border-radius:inherit;width:100%;height:100%;align-items:center;justify-content:center}`)],Mt);var zt=Mt;zt.define();const Ot="badge",It=ft(Ot);let Dt=class Badge 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 e.html`<div part="root" ${q(this.observedRecord)}>${Z()} ${this.value||this.dot?e.html`<div part="badge">${this.dot?"":this.formatValue(this.value)}</div>`:""}</div>`}};o([j()],Dt.prototype,"position",void 0),o([j({type:Number})],Dt.prototype,"value",void 0),o([j({type:Boolean})],Dt.prototype,"dot",void 0),o([j({type:Number})],Dt.prototype,"max",void 0),Dt=o([p(Ot),d(e.css`:host{${It}--background:var(${gt.active});${It}--offset:0%;${It}--offset-x:var(${It}--offset);${It}--offset-y:var(${It}--offset)}:host,:host([contents]) [part=root]{display:inline-block}[part=root]{position:relative}[part=badge]{position:absolute;font-size:75%;padding:0 .5em;-webkit-user-select:none;user-select:none;border-radius:calc(infinity * 1px);transform:translate(-50%,-50%);left:var(--left);top:var(--top);background:var(${It}--background)}[part=badge]:empty{width:.5em;height:.5em;font-size:100%;padding:0;border-radius:50%}[position^=top]{--top:calc(0% + var(${It}--offset-y))}[position$=right]{--left:calc(100% - var(${It}--offset-x))}[position^=bottom]{--top:calc(100% - var(${It}--offset-y))}[position$=left]{--left:calc(0% + var(${It}--offset-x))}`)],Dt);var jt=Dt;jt.define();const Bt="breath",Nt=ft(Bt);let Ut=class Breath extends GlobalStyle{render(){const t=this.getTexts();return e.html`<div part="root" ${q(this.observedRecord)}>${[t.map(this.renderText),et(this._computeStyle(t.length))]}</div>`}renderText(t){return e.html`<span class="rel"><span class="nocolor">${t}</span> <span class="colorful">${t}</span></span>`}getTexts(){return Array.isArray(this.text)?this.text:(this.text||this.textContent).split(/\s+/).filter((t=>t))}_computeStyle(t){const e=50/t,o=this.parseDuration()||2*t+2;let r="";for(let e=1;e<=t;e++)r+=`.rel:nth-child(${e}) .colorful{animation-delay:${-o/t*(t-e+1)}s;background:var(${Nt}--${e},var(${Nt}--${(e-1)%3+1}));}`;return`.colorful{animation-duration:${o}s;}@keyframes colorfulN{0%,${3*e}%{opacity:0;}${e}%,${2*e}%{opacity:1;}}${r}`}parseDuration(){const{duration:t}=this;if(t){if(t.endsWith("s"))return Number.parseFloat(t.slice(0,-1));if(t.endsWith("ms"))return Number.parseFloat(t.slice(0,-2))/1e3}}};o([j()],Ut.prototype,"text",void 0),o([j()],Ut.prototype,"duration",void 0),Ut=o([p(Bt),d(e.css`:host{${Nt}--deg:60deg;${Nt}--1-1:var(${gt._colors.red[5]});${Nt}--1-2:var(${gt._colors.yellow[5]});${Nt}--2-1:var(${gt._colors.green[5]});${Nt}--2-2:var(${gt._colors.purple[5]});${Nt}--3-1:var(${gt._colors.blue[5]});${Nt}--3-2:var(${gt._colors.pink[5]});${Nt}--1:linear-gradient(var(${Nt}--deg),var(${Nt}--1-1),var(${Nt}--1-2));${Nt}--2:linear-gradient(var(${Nt}--deg),var(${Nt}--2-1),var(${Nt}--2-2));${Nt}--3:linear-gradient(var(${Nt}--deg),var(${Nt}--3-1),var(${Nt}--3-2))}`,e.css`: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}`,e.css`.colorful,.nocolor{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(${gt.clipBackground})}`)],Ut);var Lt=Ut;Lt.define();const Vt="button",Gt=ft(Vt),Ht=gt.white,Ft=gt.black,qt=K(["color","background","gradients"].map((t=>`${Gt}--${t}`)),{black:[Ht,gt._colors.darkgray[7],gt._colors.darkgray[5]],gray:[Ht,gt._colors.darkgray[1],gt._colors.lightgray[8]],white:[Ft,gt._colors.lightgray[3],gt._colors.lightgray[0]],blue:[Ht,gt._colors.blue[6],gt._colors.blue[4]],green:[Ht,gt._colors.green[6],gt._colors.green[4]],red:[Ht,gt._colors.red[6],gt._colors.red[4]],orange:[Ht,gt._colors.orange[6],gt._colors.orange[4]],pink:[Ht,gt._colors.pink[6],gt._colors.pink[4]],purple:[Ht,gt._colors.purple[6],gt._colors.purple[4]],yellow:[Ft,gt._colors.yellow[6],gt._colors.yellow[4]],teal:[Ht,gt._colors.teal[6],gt._colors.teal[4]]},(()=>":host"),(t=>tt(t)));let Wt=class Button extends GlobalStyle{constructor(){super(...arguments),this.disabled=!1,this.ghost=!1,this.active=!1,this.round=!1,this.color="black"}render(){const t=this.nextColor();return e.html`<div part="root" ${q(this.observedRecord)}><span part="modal-root"></span><div part="content">${[this.content||Z(),et(qt[t])]}</div></div>`}focus(){this.disabled||(this.active=!0,super.focus())}blur(){this.active=!1,super.blur()}firstUpdated(){this.events.add(this,"click",this._handelClick,!0)}_handelClick(t){if(this.disabled)return t.stopPropagation(),void t.preventDefault();this._handleModal(t)}_handleModal(t){const e=document.createElement("i"),o=this._root.getBoundingClientRect(),{height:r,width:s}=o,a=2*Math.sqrt(r*r+s*s)+"px";e.style.height=a,e.style.width=a,e.style.left=t.clientX-o.left+"px",e.style.top=t.clientY-o.y+"px",e.style.animationName="kf",this._modalRoot.appendChild(e),e.addEventListener("animationend",(()=>e.remove()),{once:!0})}nextColor(){return this.color}};o([j({type:Boolean,reflect:!0})],Wt.prototype,"disabled",void 0),o([j({type:Boolean,reflect:!0})],Wt.prototype,"ghost",void 0),o([j({type:Boolean,reflect:!0})],Wt.prototype,"active",void 0),o([j({type:Boolean,reflect:!0})],Wt.prototype,"round",void 0),o([j({reflect:!0})],Wt.prototype,"color",void 0),o([j()],Wt.prototype,"content",void 0),o([V("modal-root")],Wt.prototype,"_modalRoot",void 0),o([V("root")],Wt.prototype,"_root",void 0),Wt=o([p(Vt),d(e.css`:host(:not([disabled]):active){transform:scale(var(${Gt}--focus-scale))}:host([round]){${Gt}--padding-x:.75em;border-radius:calc(infinity * 1px)}:host([disabled]){cursor:not-allowed;filter:brightness(.85)}:host([ghost]){${Gt}--modal-background:var(${Gt}--ghost-color);box-shadow:inset 0 0 0 var(${Gt}--ghost-width) var(${Gt}--ghost-color);color:var(${Gt}--ghost-color);background:0 0}`,e.css`:host{${Gt}--padding-x:.5em;${Gt}--padding-y:min(calc(var(${Gt}--padding-x) / 2),.25em);${Gt}--padding:var(${Gt}--padding-y) var(${Gt}--padding-x);${Gt}--modal-animation-duration:1s;${Gt}--ghost-width:.08em;${Gt}--focus-scale:.97;${Gt}--deg:45deg;${Gt}--ghost-color:var(${Gt}--background);color:var(${Gt}--color,inherit);background:linear-gradient(var(${Gt}--deg),var(${Gt}--background),var(${Gt}--gradients,var(${Gt}--background)));border-radius:.3em;width:-moz-fit-content;width:fit-content;transition:.1s;display:block;overflow:hidden;text-align:center;padding:0!important;cursor:pointer}:host([contents]) [part=root]{width:-moz-fit-content;width:fit-content}[part=root]{width:100%;height:100%;overflow:hidden;position:relative;transition:none;-webkit-user-select:none;user-select:none;border-radius:inherit;transition-duration:inherit}[part=content]{padding:var(${Gt}--padding)}i{position:absolute;inset:0;opacity:0;width:100%;height:100%;border-radius:50%;visibility:visible;pointer-events:none;transform-origin:0 0;background:var(${Gt}--modal-background,currentColor);animation-duration:var(${Gt}--modal-animation-duration)}@keyframes kf{0%{transform:scale(0) translate(-50%,-50%);opacity:var(${Gt}--modal-opacity,.1)}80%{transform:scale(1) translate(-50%,-50%)}to{opacity:0}}`)],Wt);var Yt=Wt;Yt.define();const Xt="card",Zt=ft(Xt);let Kt=class Card extends GlobalStyle{constructor(){super(...arguments),this.footer=!1,this.header=!1}render(){return e.html`<div part="root" ${q(this.observedRecord)}>${[this.header?Z("header"):"",Z(),this.footer?Z("footer"):""]}</div>`}};o([j({type:Boolean})],Kt.prototype,"footer",void 0),o([j({type:Boolean})],Kt.prototype,"header",void 0),Kt=o([p(Xt),d(e.css`:host{${Zt}--background:var(${gt.background});${Zt}--border-width:.0375em;${Zt}--border-color:transparent;${Zt}--border-background:var(${gt.passive});${Zt}--padding:.75em;color:var(${gt.foreground});background:var(${Zt}--background);border-width:var(${Zt}--border-width);display:block;flex-shrink:0;position:relative;overflow:hidden;box-sizing:border-box}slot{display:block;padding:var(${Zt}--padding)}:host,slot{border-color:var(${Zt}--border-background);border-style:solid}[name=footer]{border-top-width:var(${Zt}--border-width)}[name=header]{border-bottom-width:var(${Zt}--border-width)}`)],Kt);var Qt=Kt;Qt.define();var Jt=ot("0 0 56 56")`<path fill="currentColor" d="M35.805 47.723c.398.398.914.633 1.523.633c1.219 0 2.133-.915 2.133-2.133c0-.586-.234-1.125-.61-1.524L21.79 28.012l17.063-16.688c.375-.398.609-.96.609-1.523c0-1.219-.914-2.157-2.133-2.157c-.61 0-1.125.235-1.523.633L17.242 26.441c-.445.375-.703.961-.703 1.57c0 .587.258 1.126.703 1.571Z"/>`,te=ot("0 0 56 56")`<path fill="currentColor" d="M18.695 48.367c.586 0 1.102-.234 1.524-.633L38.78 29.57c.446-.445.68-.984.68-1.57c0-.61-.234-1.172-.68-1.57L20.22 8.289a2.07 2.07 0 0 0-1.524-.656a2.12 2.12 0 0 0-2.156 2.156c0 .563.258 1.125.633 1.524L34.21 28L17.17 44.688c-.374.398-.632.937-.632 1.523c0 1.219.938 2.156 2.156 2.156"/>`;let ee=class Carousel extends GlobalStyle{constructor(){super(...arguments),this.index=0,this.autoChange=0}render(){return e.html`<div part="root" ${q(this.observedRecord)}><i part="prev" @click="${this.prev}">${Jt()}</i><div part="move-root" style="transform:${`translateX(-${this.index+1}00%)`}">${Z()}</div><i part="next" @click="${this.next}">${te()} </i>${et(`:host,:host([contents]) [part=root]{width:${this.width};}`)}</div>`}async firstUpdated(){await this.updateComplete,this.children.length&&(this.width||=`${this.firstElementChild.offsetWidth}px`,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.show(this.index)),this.checkInterval()}disconnectedCallback(){clearInterval(this.intervalID)}show(t){this.index=t,this.dispatchEvent(new CustomEvent("change",{detail:t,composed:!0}))}next(){this.index===this.childElementCount-3?(this._doTranslateX("0",!0),this.show(0)):this.show(this.index+1),this.checkInterval()}prev(){0===this.index?(this._doTranslateX(`-${this.childElementCount-1}00%`,!0),this.show(this.children.length-3)):this.show(this.index-1),this.checkInterval()}_doTranslateX(t,e){this._moveRoot.style.transform=`translateX(${t})`,e&&(this._moveRoot.style.transition="none"),this._moveRoot.getBoundingClientRect()}checkInterval(){this.autoChange&&(this.intervalID&&clearInterval(this.intervalID),this.intervalID=setInterval((()=>{this.next()}),this.autoChange))}};o([j({type:Number})],ee.prototype,"index",void 0),o([j({type:Number})],ee.prototype,"autoChange",void 0),o([j()],ee.prototype,"width",void 0),o([V("move-root")],ee.prototype,"_moveRoot",void 0),ee=o([p("carousel"),d(e.css`:host{display:block;transition:.3s}[part=root]{direction:ltr;overflow:hidden}[part=move-root],[part=root]{height:100%;width:100%;display:flex;position:relative;transition:inherit}[part=next],[part=prev]{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}`)],ee);var oe=ee;oe.define();var ie=ot("0 0 56 56")`<path fill="currentColor" d="M28 39.46a2.1 2.1 0 0 0 1.57-.679l18.164-18.586a2.1 2.1 0 0 0 .633-1.5a2.12 2.12 0 0 0-2.156-2.156a2.27 2.27 0 0 0-1.523.61L28 34.21L11.313 17.148a2.23 2.23 0 0 0-1.524-.609a2.12 2.12 0 0 0-2.156 2.156c0 .586.234 1.102.633 1.524L26.43 38.78c.445.446.96.68 1.57.68"/>`;class SuperOpenable extends GlobalStyle{constructor(){super(...arguments),this.open=!1}toggle(t=!this.open){this.open=t}close(){this.open=!1}show(){this.open=!0}updated(t){void 0!==t.get("open")&&this.dispatchEvent(new CustomEvent("change",{detail:this.open,composed:!0}))}_handelClick(t){this.toggle()}}o([j({type:Boolean,reflect:!0})],SuperOpenable.prototype,"open",void 0);const re="details",se=ft(re);let ne=class Details extends SuperOpenable{constructor(){super(...arguments),this.fill=!1,this.summary=""}render(){return e.html`<dl part="root" ${q(this.observedRecord)}><dt part="title" @click="${this._handelClick}"><span part="summary">${this.summary||Z("summary")}</span> <span><i part="icon">${ie()}</i></span></dt><dd part="details" @click="${this.fill?()=>this.toggle():null}"><div style="min-height:0">${Z()}</div></dd></dl>`}};o([j({type:Boolean})],ne.prototype,"fill",void 0),o([j()],ne.prototype,"summary",void 0),ne=o([p(re),d(e.css`:host{${se}--icon-deg-open:0deg;${se}--icon-deg-close:90deg;${se}--icon-space:0.3em;${se}--summary-direction:row;${se}--transition:.3s;height:-moz-fit-content;height:fit-content;display:block;transition:var(${se}--transition)}[part=root]{height:100%;position:relative;overflow:hidden}[part=title]{direction:ltr;height:100%;display:flex;flex-wrap:nowrap;justify-content:space-between;background:inherit;align-items:center;flex-direction:var(${se}--summary-direction)}[part=details]{display:grid;overflow:hidden;grid-template-rows:0fr;transition:var(${se}--transition);transition-property:grid-template-rows}:host([open]) [part=details]{grid-template-rows:1fr}:host([float]) [part=details]{top:100%;position:absolute}[part=icon]{display:flex;-webkit-backface-visibility:hidden;backface-visibility:hidden;padding:var(${se}--icon-space);transition:var(${se}--transition);transform:rotate(var(${se}--icon-deg-close))}:host([open]) [part=icon]{transform:rotate(var(${se}--icon-deg-open))}`)],ne);var ae=ne;ae.define();const le="dialog",he=ft(le);let ce=class Dialog extends SuperOpenable{constructor(){super(...arguments),this.direction="center",this.modal=!1,this.key="Escape",this._modalInvoke=!1}render(){return e.html`<div part="root" ${q(this.observedRecord)}><div part="modal"></div><div part="container">${Z()}</div></div>`}showModal(){this.modal||(this.modal=!0,this._modalInvoke=!0),this.show()}updated(t){t.has("open")&&(this.open?(this._submitEvent=this.events.add(this,"submit",this._handelSubmit),this.key&&(this._keydownEvent=this.events.add(document,"keydown",this._handleKeydown.bind(this)))):(this.events.remove(this,"submit",this._submitEvent),this.events.remove(document,"keydown",this._keydownEvent)))}_handleKeydown(t){t.preventDefault();const e=this.key.split(/[\s,]/);(e.includes(t.key)||e.includes(t.code))&&this.close()}_handelSubmit(t){"dialog"===t.target.method&&this.close()}close(){this._modalInvoke&&(this.modal=!1,this._modalInvoke=!1),this.open=!1}};o([j()],ce.prototype,"direction",void 0),o([j({type:Boolean,reflect:!0})],ce.prototype,"modal",void 0),o([j()],ce.prototype,"key",void 0),ce=o([p(le),d(e.css`:host{${he}--background:none;${he}--background-modal:var(${gt.background});${he}--opacity-modal:0.2;background:var(${he}--background);pointer-events:none;visibility:hidden;position:fixed;z-index:1;inset:0}:host([open]){visibility:visible}:host([open][modal]) [part=modal]{pointer-events:all;visibility:visible;opacity:var(${he}--opacity-modal)}[part=modal]{visibility:hidden;opacity:0;width:100%;height:100%;position:absolute;background:var(${he}--background-modal)}[part=root]{width:100%;height:100%;display:flex;position:relative;align-items:center;justify-content:center}[part=container]{pointer-events:all;position:absolute}[direction^=top] [part=container]{top:0}[direction^=bottom] [part=container]{bottom:0}[direction$=right] [part=container]{right:0}[direction$=left] [part=container]{left:0}`)],ce);var de=ce;de.define();let pe=class Divider extends GlobalStyle{constructor(){super(...arguments),this.vertical=!1}render(){return e.html`<div part="root" ${q(this.observedRecord)}></div>`}};o([j({type:Boolean,reflect:!0})],pe.prototype,"vertical",void 0),pe=o([p("divider"),d(e.css`:host{width:100%;height:.05em;margin:auto;display:block;background:currentColor}:host([vertical]){width:.05em;height:max(1em,100%)}:host([contents]) [part=root]{width:100%;height:.05em;margin:auto;display:block;background:currentColor}[part=root]{display:contents}`)],pe);var ue=pe;ue.define();let ve=class Dragbox extends GlobalStyle{constructor(){super(...arguments),this.drag=!1,this.x="auto",this.y="auto"}get offsetsWidth(){return this.offsetParent?.clientWidth??document.body.offsetWidth}get offsetsHeight(){return this.offsetParent?.clientHeight??document.body.offsetHeight}render(){return e.html`<div part="root" ${q(this.observedRecord)} @mousedown="${this._handleDragStart}" @mouseup="${this._handleDragEnd}">${Z()}</div>`}firstUpdated(){this.reset()}_handleDragStart(t){this.cx=t.clientX,this.cy=t.clientY,this.t=this.offsetTop,this.l=this.offsetLeft,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))}_handleDragEnd(){this.drag=!1,this.events.remove(document,"mousemove",this._handleMouseMove),this.events.remove(document,"mouseleave",this._handleMouseLeave)}_handleDrag(t){if(!this.drag)return;const e=t.clientX-(this.cx-this.l),o=t.clientY-(this.cy-this.t),{style:r,offsetsWidth:s,offsetsHeight:a,offsetWidth:l,offsetHeight:h}=this;r.left=e<0?"0":e<s-l?`${e}px`:s-l+'"px"',r.top=o<0?"0":o<a-h?`${o}px`:a-h+"px"}reset(){const{x:t,y:e,style:o,offsetsWidth:r,offsetsHeight:s,offsetWidth:a,offsetHeight:l,offsetLeft:h,offsetTop:c}=this;o.left=t||"0",o.top=e||"0",h>r-a&&(o.left=r-a+"px"),c>s-l&&(o.top=s-l+"px")}};o([j()],ve.prototype,"x",void 0),o([j()],ve.prototype,"y",void 0),ve=o([p("dragbox"),d(e.css`:host{position:absolute;display:block}:host(:active){-webkit-user-select:none;user-select:none}`)],ve);var me=ve;me.define();let fe=class Flex extends GlobalStyle{constructor(){super(...arguments),this.vertical=!1}render(){return e.html`<div part="root" ${q(this.observedRecord)}>${[Z(),et(Q({":host":{gap:this.gap,"flex-flow":this.flexFlow,"flex-direction":this.vertical&&"column","align-items":this.items,"justify-content":this.content}}))]}</div>`}};o([j({attribute:"flex-flow"})],fe.prototype,"flexFlow",void 0),o([j()],fe.prototype,"gap",void 0),o([j()],fe.prototype,"content",void 0),o([j()],fe.prototype,"items",void 0),o([j({type:Boolean})],fe.prototype,"vertical",void 0),fe=o([p("flex"),d(e.css`:host,:host([contents]) [part=root]{display:flex}[part=root]{display:contents}`)],fe);var ge,ye=fe;ye.define();let be=ge=class Form extends GlobalStyle{constructor(){super(...arguments),this.name="",this.nameValue=this.namevalue}get value(){return ge.buildValue(this._slot.assignedElements())}render(){return Z()}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,r]=o.namevalue();t&&(e[t]=r)}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}};o([j()],be.prototype,"name",void 0),be=ge=o([p("form"),d(e.css`:host{display:block}`)],be);var $e=be;$e.define();let we=class Grid extends GlobalStyle{render(){return e.html`<div part="root" ${q(this.observedRecord)}>${[Z(),et(Q({":host":{gap:this.gap,"grid-template-columns":s(this.columns)?`repeat(${this.columns},1fr)`:this.columns,"grid-template-rows":s(this.rows)?`repeat(${this.rows},1fr)`:this.rows,"place-content":this.content,"place-items":this.items}}))]}</div>`}};o([j()],we.prototype,"gap",void 0),o([j()],we.prototype,"columns",void 0),o([j()],we.prototype,"rows",void 0),o([j()],we.prototype,"content",void 0),o([j()],we.prototype,"items",void 0),we=o([p("grid"),d(e.css`:host,:host([contents]) [part=root]{display:grid}[part=root]{display:contents}`)],we);var _e=we;_e.define();let ke=class Heading extends GlobalStyle{constructor(){super(...arguments),this.as="h1",this.anchor="#",this.side="left"}render(){return e.html`<a part="root" href="${this.id?"#"+this.id:e.nothing}" ${q(this.observedRecord)}>${this.wrapHeading(Z(),this.id?e.html`<i part="anchor">${this.anchor}</i>`:"")}</a>`}wrapHeading(...t){switch(this.as){case"h2":return e.html`<h2>${t}</h2>`;case"h3":return e.html`<h3>${t}</h3>`;case"h4":return e.html`<h4>${t}</h4>`;case"h5":return e.html`<h5>${t}</h5>`;case"h6":return e.html`<h6>${t}</h6>`;default:return e.html`<h1>${t}</h1>`}}};o([j()],ke.prototype,"as",void 0),o([j()],ke.prototype,"anchor",void 0),o([j()],ke.prototype,"side",void 0),ke=o([p("heading"),d(e.css`:host{display:block;text-align:start}[part=anchor]{position:absolute;text-align:center;min-width:1.25em;right:100%}[side=left] [part=anchor]{right:100%}[side=right] [part=anchor]{left:100%}a{color:inherit}h1,h2,h3,h4,h5,h6{direction:ltr;font-size:revert;position:relative;width:-moz-fit-content;width:fit-content}`)],ke);var xe=ke;xe.define();var Se=ot("0 0 56 56")`<path fill="currentColor" d="M43.95 47.323c.304.305.732.468 1.119.468c.814 0 1.567-.733 1.567-1.568c0-.407-.163-.814-.468-1.12L12.112 11.069a1.57 1.57 0 0 0-1.12-.448c-.814 0-1.567.733-1.567 1.547c0 .428.143.835.448 1.12Zm1.913-5.761C52.255 37.43 56 32.056 56 29.674c0-4.132-11.297-17.303-27.99-17.303c-3.46 0-6.697.59-9.669 1.567l5.313 5.293a11 11 0 0 1 4.356-.896c6.31 0 11.38 4.988 11.38 11.339c0 1.547-.326 3.033-.958 4.336ZM28.01 46.977c3.766 0 7.267-.672 10.402-1.771l-5.394-5.395a10.8 10.8 0 0 1-5.008 1.201c-6.35 0-11.379-5.15-11.4-11.338c0-1.832.428-3.562 1.202-5.09l-7.084-7.124C4.01 21.592 0 27.231 0 29.674c0 4.112 11.501 17.303 28.01 17.303m6.473-17.73a6.446 6.446 0 0 0-6.473-6.454c-.264 0-.53.02-.773.041l7.206 7.206c.02-.244.04-.529.04-.794m-12.966-.041c0 3.582 2.951 6.473 6.514 6.473c.285 0 .55-.02.834-.04l-7.308-7.309c-.02.285-.04.59-.04.876"/>`;const Ce=e.css`.input-field{display:flex;position:relative;align-items:center;border-radius:inherit;height:inherit}.input-field [part=input]{background:0 0;height:100%;width:100%;color:inherit;padding:0 var(${gt.input}-space)}.input-field.outline,.input-field:focus-within{box-shadow:var(${gt.input}-box-shadow)}.input-field [part=icon]{display:flex;align-items:center;justify-content:center}.input-field [part=prefix],.input-field [part=suffix]{height:100%;display:flex}.input-field [part=suffix] [part=icon]{padding-inline-end:var(${gt.input}-space)}.input-field [part=prefix] [part=icon]{padding-inline-start:var(${gt.input}-space)}`,Ee=e.css`:host{${gt.input}-width:10em;${gt.input}-height:1.6em;${gt.input}-space:.2em;${gt.input}-background:var(${gt.background});${gt.input}-control:var(${gt.foreground});${gt.input}-control-edge:var(${gt.active});${gt.input}-radius:.2em;${gt.input}-box-shadow:0 0 0 .1em var(${gt.active});border-radius:var(${gt.input}-radius)}:host([disabled]){cursor:not-allowed;filter:brightness(.85)}input:disabled{cursor:inherit}input::-ms-clear,input::-ms-reveal{display:none}`;let Re=class SuperInput extends GlobalStyle{constructor(){super(...arguments),this.autofocus=!1,this.disabled=!1,this.compositing=!1,this.makeId=Math.random().toString(36).slice(1),this.nameValue=this.namevalue}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.dispatchEvent(new CustomEvent("input",{detail:this.value,bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("input",{detail:this.value,composed:!0,bubbles:!0})),this.dispatchEvent(new CustomEvent("change",{detail:this.value,composed:!0})))}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)})))}_changeInputType(t){this._input&&(this._input.type=t)}focus(t){this._input?.focus(t)}firstUpdated(){this._compositionInit()}_renderPrefix(){return e.html`<label for="${this.makeId}" part="prefix">${Z("prefix")}</label>`}_renderSuffix(){const t="password";return e.html`<label for="${this.makeId}" part="suffix">${"password"===this.type?e.html`<i part="icon" @mousedown="${()=>this._changeInputType("text")}" @mouseup="${()=>this._changeInputType(t)}" @mouseleave="${()=>this._changeInputType(t)}">${Se()}</i>`:Z("suffix")}</label>`}};o([j()],Re.prototype,"autocomplete",void 0),o([j({type:Boolean,reflect:!0})],Re.prototype,"disabled",void 0),o([j({reflect:!0})],Re.prototype,"type",void 0),o([j({reflect:!0})],Re.prototype,"placeholder",void 0),o([j({reflect:!0})],Re.prototype,"name",void 0),o([j()],Re.prototype,"value",void 0),o([j()],Re.prototype,"default",void 0),o([V("input")],Re.prototype,"_input",void 0),Re=o([d(Ce,Ee)],Re);var Te=Re;let Ae=class Input extends Te{constructor(){super(...arguments),this.type="text",this.variant="default"}render(){return e.html`<div part="root" ${q(this.observedRecord)} class="${X("input-field",this.variant)}">${[this._renderPrefix(),e.html`<input part="input" type="${this.type}" id="${this.makeId}" .value="${this.value}" placeholder="${this.placeholder||e.nothing}" ?autofocus="${this.autofocus}" autocapitalize="${this.autocapitalize||e.nothing}" autocomplete="${this.autocomplete||e.nothing}" ?disabled="${this.disabled}" @input="${this._handleInput}">`,this._renderSuffix()]}</div>`}reset(){this._input.value=this.default,this.value=this.default}};o([j()],Ae.prototype,"variant",void 0),o([V("input")],Ae.prototype,"_input",void 0),Ae=o([p("input"),d(e.css`:host{width:var(${gt.input}-width);height:var(${gt.input}-height);color:var(${gt.foreground});background:var(${gt.input}-background);border-radius:var(${gt.input}-radius);display:block}`)],Ae);var Pe=Ae;Pe.define();let Me=class Layout extends GlobalStyle{constructor(){super(...arguments),this.noHeader=!1,this.noFooter=!1,this.sticky=!1}render(){return e.html`<div part="root" ${q(this.observedRecord)}>${this.noHeader?"":e.html`<header part="header">${Z("header")}</header>`}<main part="main">${Z()}</main>${this.noFooter?"":e.html`<footer part="footer">${Z("footer")}</footer>`}</div>`}};o([j({type:Boolean})],Me.prototype,"noHeader",void 0),o([j({type:Boolean})],Me.prototype,"noFooter",void 0),o([j({type:Boolean})],Me.prototype,"sticky",void 0),Me=o([p("layout"),d(e.css`:host,:host([contents]) [part=root]{min-height:100%;display:flex;flex-direction:column}[part=root]{display:contents}[sticky] header{position:sticky;top:0;z-index:1}[part=main]{position:relative;flex:1;width:100%}footer,header,main{width:100%}`)],Me);var ze=Me;ze.define();let Oe=class SuperAnchor extends GlobalStyle{constructor(){super(...arguments),this.href=void 0,this.target="_self"}render(){return e.html`<a part="root" ${q(this.observedRecord)} href="${this.href||e.nothing}" target="${this.target}" @click="${this._handleClick}">${Z()}</a>`}_handleClick(t){}};o([j()],Oe.prototype,"href",void 0),o([j()],Oe.prototype,"target",void 0),Oe=o([d(e.css`:host{display:inline-block;color:currentColor;text-decoration:none;cursor:default}:host([href]){cursor:pointer}[part=root]{width:100%;color:inherit;display:inline-block;text-decoration:inherit}`)],Oe);var Ie,De=Oe;let je=Ie=class Router extends GlobalStyle{constructor(){super(...arguments),this.__fieldRouteTree=new RouteTree,this.__slottedRouteTree=new RouteTree,this.__cacheRecord=new Map,this.component=null,this.params={},this.default=Z(),this.type="united",this.cache=!1,this.routeChangeCallback=null,this.handlePopstate=this.events.add(window,"popstate",(()=>{this.pathname=location.pathname}))}set routes(t){this.__routes=t,this.collectFieldRoutes(t)}get routes(){return this.__routes}clear(){this.__cacheRecord.clear()}render(){if(this.params={},this.cache){const t=this.__cacheRecord.get(this.pathname);if(t)return Object.assign(this,t),this.component}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??null}connectedCallback(){super.connectedCallback(),Ie.routerInstances.add(this),this.pathname??=location.pathname,"field"!==this.type&&(new MutationObserver(this.collectSlottedRoutes).observe(this,{attributeFilter:["slot"],attributes:!0,subtree:!0}),this.collectSlottedRoutes())}disconnectedCallback(){super.disconnectedCallback(),Ie.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(),e=!this.__cacheRecord.has(this.pathname);e&&this.__cacheRecord.set(this.pathname,t),this.routeChangeCallback?.(t,e),this.dispatchEvent(new CustomEvent("change",{detail:t}))}}fieldComponent(t){if(t||=this.__fieldRouteTree.search(this.pathname)?.pattern,this.path=t,!t)return null;this.params=this.parseParams(this.path,this.pathname);const e=this.routes.find((e=>e.path===t));return e?"render"in e?e.render?.(this.useRouter())||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?(this.params=this.parseParams(t,this.pathname),Z(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)}))}parseParams(t,e=this.pathname){return RouteTree.parseParams(e,t)}static updateAll(){this.routerInstances.forEach((t=>{t.handlePopstate()}))}};je.routerInstances=new Set,o([B()],je.prototype,"component",void 0),o([B()],je.prototype,"params",void 0),o([B()],je.prototype,"path",void 0),o([j()],je.prototype,"pathname",void 0),o([B()],je.prototype,"default",void 0),o([j()],je.prototype,"type",void 0),o([j({type:Boolean})],je.prototype,"cache",void 0),o([B()],je.prototype,"routes",null),je=Ie=o([p("router"),d(e.css`:host{display:contents}`)],je);var Be=je;let Ne=class Link extends De{constructor(){super(...arguments),this.type="normal",this.suppress=!1}_handleClick(t){"push"!==this.type&&"replace"!==this.type||(t.preventDefault(),history[`${this.type}State`](null,"",this.href),this.suppress||Be.updateAll())}};o([j()],Ne.prototype,"type",void 0),o([j({type:Boolean})],Ne.prototype,"suppress",void 0),Ne=o([p("link")],Ne);var Ue=Ne;Ue.define();let Le=class Progress extends GlobalStyle{constructor(){super(...arguments),this.max=1,this.min=0}render(){let t,o=20;return r(this.value)||(o=this.parsePercent(this.value),t="static"),e.html`<div part="root" ${q(this.observedRecord)} class="${t}"><i part="value" style="width:${o}"></i></div>`}parsePercent(t="0"){return String(t).includes("%")?parseFloat(String(t)):parseFloat(String(t))/(this.max-this.min)*100}};o([j({type:Number})],Le.prototype,"max",void 0),o([j({type:Number})],Le.prototype,"min",void 0),o([j({type:Number})],Le.prototype,"value",void 0),Le=o([p("progress"),d(e.css`:host{width:100%;height:.5em;border-radius:.25em;background:var(${gt.passive});color:var(${gt.active})}:host,[part=root]{display:block}[part=root]{height:inherit;z-index:1;position:relative;border-radius:inherit}[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{from{left:0}to{left:80%}}.static [part=value]{animation:none}`)],Le);var Ve=Le;Ve.define();const Ge="range",He=ft(Ge);let Fe=class Range extends Te{constructor(){super(...arguments),this.min=0,this.max=100,this.vertical=!1,this._focusStack=[]}get reverse(){return!!this.range&&this.value[0]>this.value[1]}get range(){return Array.isArray(this.value)}get rangeValue(){return this.range?this.value:[this.value]}padValue(t,e=0){const{rangeValue:o}=this,r=t-o.length;return r>0?new Array(r).fill(e).concat(o):o}render(){const t=this.padValue(2),o=Math.min(...t),r=Math.max(...t),s=this.max-this.min;return e.html`<div part="root" ${q(this.observedRecord)} @mousedown="${this.disabled?null:this._handleMousedownRoot}" style="${J({"--from":(o-this.min)/s*100+"%","--to":(r-this.min)/s*100+"%",...this.range?Object.fromEntries(t.map(((t,e)=>[`--handle-${e}`,(t-this.min)/s*100+"%"]))):{}})}"><div part="track"></div>${this.range?this.value.map(((t,e)=>this.renderHandle(e))):this.renderHandle(0)}</div>`}renderHandle(t){const{range:o}=this,r=!o||t===this.value.length-1;return e.html`<i tabindex="0" part="handle" class="${X({"last-focus":this.lastFocus===t})}" @mousedown="${this.disabled?null:this.createMouseDown(t)}" @focus="${this.disabled?null:()=>this.focusHandle(t)}" @blur="${this.disabled?null:this.blurHandle}" style="z-index:${this._focusStack.indexOf(t)+1};--handle:var(--${!o&&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))),this.dispatchEvent(new CustomEvent("focus",{detail:t}))}blurHandle(){this.lastFocus=void 0,this._keydownEvent=this.events.remove(document,"keydown",this._keydownEvent),this.dispatchEvent(new CustomEvent("blur"))}createKeydownEvent(t){return this.range||(t=0),e=>{"ArrowLeft"===e.key||"ArrowDown"===e.key?(e.preventDefault(),this.createSetValue(t)((t=>t-this.step))):"ArrowRight"!==e.key&&"ArrowUp"!==e.key||(e.preventDefault(),this.createSetValue(t)((t=>t+this.step)))}}createMouseDown(t){return e=>{this.focusHandle(t),this.createMousedownListener(this.createSetValue(t))(e)}}createSetValue(t){return e=>{const o="number"==typeof e?this.normalizeValue(e):e(this.rangeValue[t]);let r=o;this.range&&(r=[...this.rangeValue],r[t]=o),this.value=r,this.dispatchEvent(new CustomEvent("range",{detail:this.value}))}}_computeValue(t){const e=this._root.getBoundingClientRect(),o=this.vertical?(t.clientY-e.top)/e.height:(t.clientX-e.left)/e.width,r=Math.round(o*(this.max-this.min)/this.step)*this.step;return this.normalizeValue(r)}normalizeValue(t){return t>this.max?t-=this.step:t<this.min&&(t+=this.step),t}_handleMousedownRoot(t){const e=this._computeValue(t),o=this.range?this.rangeValue.reduce(((t,o,r)=>Math.abs(e-o)<Math.abs(e-this.rangeValue[t])?r:t),0):0,r=this.createSetValue(o);r(e),this.createMousedownListener(r)(t),this.focusHandle(o)}createMousedownListener(t){return e=>{e.preventDefault(),e.stopPropagation();const o=this.createMousemoveListener(t);this.events.add(document,"mousemove",o);const r=()=>{this.events.remove(document,"mousemove",o),this.events.remove(document,"mouseup",r)};this.events.add(document,"mouseup",r)}}createMousemoveListener(t){return e=>{const o=this._computeValue(e);o>this.max||o<this.min||t?.call(this,o)}}_connectedInit(){const t=this.max-this.min;this.step||=t/100,r(this.value)&&(r(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}};o([j({type:Number})],Fe.prototype,"min",void 0),o([j({type:Number})],Fe.prototype,"max",void 0),o([j({type:Number})],Fe.prototype,"step",void 0),o([j({type:Boolean,reflect:!0})],Fe.prototype,"vertical",void 0),o([j({type:Array})],Fe.prototype,"value",void 0),o([j({type:Array})],Fe.prototype,"default",void 0),o([V("root")],Fe.prototype,"_root",void 0),o([function(t){return(e,o)=>N(e,o,{get(){return(this.renderRoot??(L??=document.createDocumentFragment())).querySelectorAll(t)}})}("[part=handle]")],Fe.prototype,"_handles",void 0),o([B()],Fe.prototype,"lastFocus",void 0),Fe=o([p(Ge),d(e.css`:host{${He}--handle-active:var(${gt.active});${He}--track-width:.5em;${He}--length:var(${gt.input}-width);background:var(${gt.input}-background);width:var(${He}--length);display:block}:host([contents]) [part=root]{width:inherit}:host([vertical]){height:var(${He}--length);width:-moz-fit-content;width:fit-content}:host(:not([disabled])) .last-focus{${He}--handle-scale:1.05;background:var(${He}--handle-active)}[part=root]{min-height:inherit;position:relative;border-radius:inherit;width:100%;--from:0%;--to:50%;height:var(${He}--track-width)}[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(${gt.active});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:.1em solid;border-radius:50%;transform-origin:0 25%;transform:scale(var(${He}--handle-scale,1)) translate(-50%,-25%);background:var(${gt.active});border-color:var(${gt.input}-control)}`,e.css`[vertical]{height:inherit;width:var(${He}--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}`,e.css`[part=handle]{left:var(--handle);top:0}[vertical] [part=handle]{top:var(--handle);left:0}`)],Fe);var qe=Fe;qe.define();const We="rotate",Ye=ft(We);let Xe=class Rotate extends GlobalStyle{render(){return e.html`<div part="root"><div part="slot" @mousemove="${this._handleRotate}">${Z()}</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:r,height:s}=this._root.getBoundingClientRect(),{clientX:a,clientY:l}=t;return{rotateX:-(l-o-s/2)/s/2,rotateY:(a-e-r/2)/r/2}}};o([V("root")],Xe.prototype,"_root",void 0),Xe=o([p(We),d(e.css`:host{display:block;width:-moz-fit-content;width:fit-content;transition:all .5s ease-in-out;${Ye}--padding:.75em;${Ye}--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(${Ye}--offset);margin:calc(-1 * var(${Ye}--offset))}[part=slot]{z-index:2}`)],Xe);var Ze=Xe;function Ke(t,e){return t&&e&&t.toLowerCase().includes(e.toLowerCase())}function Qe(t,e){if(t){const o="checked";e?t.setAttribute(o,""):t.removeAttribute(o)}}Ze.define(),Be.define();let Je=class Select extends Pe{constructor(){super(...arguments),this.multiple=!1,this.visible=!1,this.autoDirection="bottom",this._store=[]}render(){return e.html`<div part="root" ${q({...this.observedRecord,direction:this.direction||this.autoDirection})} class="input-field">${[this._renderPrefix(),e.html`<input part="input" dir="${this.dir||e.nothing}" id="${this.makeId}" .value="${this.text}" type="${this.type}" placeholder="${this.placeholder||e.nothing}" ?autofocus="${this.autofocus}" autocapitalize="${this.autocapitalize||e.nothing}" autocomplete="${this.autocomplete||e.nothing}" ?disabled="${this.disabled}" @focus="${this._handleFocus}" @input="${this._handleInput}">`,e.html`<label for="${this.makeId}" part="suffix"><i part="icon">${ie()}</i></label>`,e.html`<label for="${this.makeId}" part="content">${Z()}</label>`]}</div>`}_handleFocus(){if(!this.direction){const{top:t,bottom:e}=this.getBoundingClientRect();window.innerHeight-e<this._content.clientHeight&&t>this._content.clientHeight?this.autoDirection="top":this.autoDirection="bottom"}this.visible=!0}firstUpdated(){this.events.add(this._content,"click",(t=>{t.preventDefault(),t.stopPropagation();const{target:e}=t,o=this.optionValue(e);if(o){const t=this.select(o,e.textContent);this.multiple||Qe(this.lastChecked,0),Qe(e,t),this.lastChecked=e}this._input.focus()})),this.events.add(document,"click",(t=>{t.stopPropagation();const e=t.composedPath()[0];e&&!this.shadowRoot.contains(e)&&this.blur()}))}_connectedInit(){if(!this.value){const t=[...this.querySelectorAll("[checked]")];(this.multiple?t:t.length?[this.lastChecked=t[0]]:[]).forEach((t=>{Qe(t,this.select(this.optionValue(t),t.textContent))})),this.default=this.value,this.defaultText=this.text,this.defaultChecked=t}this.text||(this.text="")}reset(){this.value=this.default,this.text=this.defaultText,this.querySelectorAll("[checked]").forEach((t=>Qe(t,0))),this.defaultChecked.forEach((t=>Qe(t,1)))}select(t,e){e||=t;let o=0;if(this.multiple){const r=this._store.findIndex((e=>e.value===t));r>-1?this._store.splice(r,1):(this._store.push({value:t,text:e}),o=1),this.value=this._store.map((t=>t.value)),this.text=this._store.map((t=>t.text)).join(", ")}else this.value===t?(this.value="",this.text=""):(this.value=t,this.text=e,o=1);return this.dispatchEvent(new CustomEvent("select",{detail:this.value,composed:!0})),this.filter(),o}filter(t){t=t?.trim(),[...this.children].forEach((e=>{this.filterCallback(e,!t||Ke(this.optionValue(e),t)||Ke(e.textContent,t),t)}))}filterCallback(t,e,o){t.style.display=e?"":"none"}_handleInput(t){if(t.stopPropagation(),this.compositing)return;const e=this._input.value;this.filter(this.multiple?function(t,e){const o=e.slice(0,t).lastIndexOf(",")+1||0,r=e.indexOf(",",t)||e.length;return e.slice(o,r)}(this._input.selectionStart,e):e),this.dispatchEvent(new CustomEvent("input",{detail:this.value,composed:!0,bubbles:!0})),this.dispatchEvent(new CustomEvent("change",{detail:this.value,composed:!0}))}focus(t){this._input.focus(t),this.visible=!0}blur(){this._input.blur(),this.visible=!1,super.blur()}optionValue(t){return t.value||t.getAttribute("value")||""}};o([j()],Je.prototype,"text",void 0),o([V("content")],Je.prototype,"_content",void 0),o([j()],Je.prototype,"direction",void 0),o([j({type:Boolean})],Je.prototype,"multiple",void 0),o([j({type:Boolean})],Je.prototype,"visible",void 0),o([B()],Je.prototype,"autoDirection",void 0),Je=o([p("select"),d(e.css`[part=input]{text-overflow:ellipsis}[part=content]{position:absolute;width:100%;visibility:hidden}[direction=bottom] [part=content]{top:100%}[direction=top] [part=content]{bottom:100%}[visible] [part=content]{visibility:visible}`)],Je);var to=Je;to.define();var eo=ot("0 0 56 56")`<path fill="currentColor" d="M7.715 49.574h40.57c4.899 0 7.36-2.437 7.36-7.265V13.69c0-4.828-2.461-7.265-7.36-7.265H7.715C2.84 6.426.355 8.84.355 13.69v28.62c0 4.851 2.485 7.265 7.36 7.265m31.57-21.633c-1.055-.937-2.25-1.43-3.515-1.43c-1.313 0-2.462.446-3.54 1.407l-10.593 9.469l-4.336-3.938c-.985-.867-2.04-1.336-3.164-1.336c-1.032 0-2.04.446-3 1.313L4.129 39.73V13.88c0-2.438 1.312-3.68 3.656-3.68h40.43c2.32 0 3.656 1.242 3.656 3.68v25.875Zm-21.469.258c3.024 0 5.508-2.484 5.508-5.531c0-3.023-2.484-5.531-5.508-5.531c-3.046 0-5.53 2.508-5.53 5.531a5.54 5.54 0 0 0 5.53 5.531"/>`;const oo="skeleton",io=ft(oo);let ro=class Skeleton extends GlobalStyle{constructor(){super(...arguments),this.animation="position",this.loading=!0}render(){return this.loading?e.html`<div part="root" ${q(this.observedRecord)}>${"image"===this.type?eo():""} ${Z("loading")}</div>`:Z()}};o([j()],ro.prototype,"type",void 0),o([j()],ro.prototype,"animation",void 0),o([B()],ro.prototype,"loading",void 0),ro=o([p(oo),d(e.css`:host{${io}--from:var(${gt._colors.darkgray[9]});${io}--to:var(${gt._colors.darkgray[7]});${io}--deg:95deg;${io}--duration:1.5s;${io}--icon-size:5em;${io}--icon-margin:.25em;color:var(${gt._colors.darkgray[5]});background:var(${io}--from);min-height:1.5em;width:100%;flex-shrink:0;display:block;overflow:hidden}[part=root]{height:100%;min-height:inherit;text-align:center;animation:var(${io}--duration) ease-in-out 0s infinite none running}svg{--size:var(${io}--icon-size);font-size:var(--size);margin:calc(var(--size) * .05)}[animation=position]{background-image:linear-gradient(var(${io}--deg),var(${io}--from) 36%,var(${io}--to) 50%,var(${io}--from) 64%);background-color:transparent;background-size:200% 100%;animation-name:po}@keyframes po{from{background-position:150% center}to{background-position:-50% center}}[animation=opacity]{animation-name:op;animation-direction:alternate}@keyframes op{50%{opacity:.25}to{opacity:1}}`)],ro);var so=ro;so.define();const no="split",ao=ft(no);let lo=class Split extends Te{constructor(){super(...arguments),this.len=6,this.index=-1,this.current=-1,this.currentValue=[]}render(){return e.html`<div part="root" ${q(this.observedRecord)}>${((t,e)=>{const o=new Array(t);for(let r=0;r<t;r++)o[r]=e(r);return o})(this.len,(t=>e.html`<span part="input-box" @click="${this.disabled?null:()=>this.focusAt(t)}" class="${X({focus:this.current===t})||e.nothing}">${this.currentValue[t]}</span>`))} <input part="input" id="${this.makeId}" @blur="${this.blur}" @input="${this._handleInput}" .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.dispatchEvent(new CustomEvent("input",{detail:this.value,composed:!0,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(),this.dispatchEvent(new CustomEvent("focus",{detail:t,bubbles:!0,composed:!0}))}blur(){this._input.blur(),this.current=-1,super.blur(),this.dispatchEvent(new CustomEvent("blur",{bubbles:!0,composed:!0}))}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)}};o([j({type:Number})],lo.prototype,"len",void 0),o([j({type:Number})],lo.prototype,"index",void 0),o([B()],lo.prototype,"current",void 0),o([B()],lo.prototype,"currentValue",void 0),lo=o([p(no),d(e.css`:host{color:var(${gt.foreground});display:block;border-radius:1px;width:-moz-fit-content;width:fit-content;${ao}--size:1.45em;${ao}--gap:.25em}:host([contents]) [part=root]{width:-moz-fit-content;width:fit-content}[part=root]{gap:var(${ao}--gap);width:100%;position:relative;vertical-align:top;display:flex;justify-content:space-between;border-radius:inherit}[part=input-box]{width:var(${ao}--size);height:var(${ao}--size);vertical-align:top;text-align:center;background-color:var(${gt.input}-background);border-radius:inherit}[part=input]{width:100%;height:100%;opacity:0;background:0 0;position:absolute;z-index:-1}.focus{box-shadow:var(${gt.input}-box-shadow)}`)],lo);var ho=lo;ho.define();const co="switch",po=ft(co);let uo=class Switch extends Te{constructor(){super(...arguments),this.round=!1,this.checked=!1,this.disabled=!1,this.default="false",this.value="on"}render(){return e.html`<div part="root" ${q(this.observedRecord)} class="${this.round?"round":"rect"}"><input part="input" @change="${this._handleChange}" ?disabled="${this.disabled}" ?checked="${this.checked}" name="${this.name}" id="${this.makeId}" type="checkbox"> <span part="handle" class="${this.checked}"></span></div>`}reset(){this.checked="true"===this.default,this._input.checked=this.checked}connectedCallback(){super.connectedCallback(),this.checked&&(this.default="true"),"true"===this.default&&(this.checked=!0)}_handleChange(){this.checked=this._input.checked,this.dispatchEvent(new CustomEvent("change",{detail:this.checked,composed:!0}))}namevalue(){return[this.name,this.checked]}};o([j({type:Boolean,reflect:!0})],uo.prototype,"round",void 0),o([j({type:Boolean,reflect:!0})],uo.prototype,"checked",void 0),o([j({type:Boolean,reflect:!0})],uo.prototype,"disabled",void 0),o([j()],uo.prototype,"default",void 0),o([j()],uo.prototype,"value",void 0),o([U("input")],uo.prototype,"_input",void 0),uo=o([p(co),d(e.css`:host,:host([contents]) [part=root]{width:var(${po}-width);height:var(${po}-height);display:inline-block}:host{${po}-width:3em;${po}-height:calc(var(${po}-width)/ 2);${po}-handle-size:1.25em;${po}-handle-space:.125em;${po}-transition:.2s ease-in-out;background:var(${gt.input}-background);vertical-align:bottom;border-radius:0}[part=handle],[part=root]{transition:var(${po}-transition)}[part=root]{border-radius:inherit;position:relative;height:inherit}[part=input]{opacity:0;width:100%;height:100%;-webkit-appearance:none;appearance:none}[part=handle]{height:100%;display:inline-flex;align-items:center;justify-content:center;position:absolute;left:0;width:50%;pointer-events:none;border-radius:inherit}:host([round]){border-radius:calc(var(${po}-height)/ 2);background:var(${gt.passive})}:host([checked]) [part=handle]{left:50%}.rect .true{background:var(${gt.active})}.rect .false{background:var(${gt.passive})}.round [part=handle]{--size:var(${po}-handle-size);border-radius:100%;background:var(--godown--input-control);width:var(--size);height:var(--size);margin:var(${po}-handle-space)}:host([checked]) .round{background:var(${gt.active})}`)],uo);var vo=uo;vo.define();const mo="text",fo=ft(mo);let go=class Text extends GlobalStyle{constructor(){super(...arguments),this.underline="none",this.clip=!1}render(){return e.html`<span part="root" ${q(this.observedRecord)} class="${X(this.underline)}">${Z()}</span>`}};o([j()],go.prototype,"underline",void 0),o([j({type:Boolean})],go.prototype,"clip",void 0),go=o([p(mo),d(e.css`:host{${fo}--color:currentColor;${fo}--color-hover:currentColor;${fo}--color-active:currentColor;display:inline-block;text-overflow:ellipsis;overflow-wrap:break-word}[part=root]{white-space:nowrap;width:100%;vertical-align:bottom;display:inline-block;text-overflow:inherit;overflow-wrap:inherit;overflow:hidden;color:var(${fo}--color)}[part=root]:hover{color:var(${fo}--color-hover,var(${fo}--color))}[part=root]:active{color:var(${fo}--color-active,var(${fo}--color))}.active:active,.always,.hover:hover{text-decoration:underline}.none{text-decoration:none}[clip]{background:var(${gt.clipBackground});display:inline-block;color:transparent;-webkit-text-fill-color:transparent;background-clip:text;-webkit-background-clip:text}`)],go);var yo=go;function bo(t,e=2){return t.toString().padStart(e,"0").split("")}yo.define();let $o=class Time extends GlobalStyle{constructor(){super(...arguments),this.escape="%",this.format="YYYY-MM-DD hh:mm:ss UTFZ",this.time=new Date}render(){return e.html`<span part="root" ${q(this.observedRecord)}>${function(t,e=new Date,o="%"){var r;if(!t)return t;if(isNaN(e.getTime()))return;const s=`${o}${o}`,a=[];t=t.replace(new RegExp(`${o}([ZYMDhmsS${o}])`,"g"),((t,e)=>(a.push(e),s)));const l=e.getTimezoneOffset()/-60,h={Z:[l>=0?"+"+l.toString():l.toString()],Y:e.getFullYear().toString().split(""),M:bo(e.getMonth()+1),D:bo(e.getDate()),h:bo(e.getHours()),m:bo(e.getMinutes()),s:bo(e.getSeconds()),S:bo(e.getMilliseconds(),3)},c=[];for(const e of t.split("").reverse()){const t=null===(r=h[e])||void 0===r?void 0:r.pop();t?c.push(t):c.push(e)}return c.reverse().join("").replace(new RegExp(s,"g"),(()=>a.shift()))}(this.format,this.time,this.escape)}</span>`}firstUpdated(){this.timeout&&(this.timeoutId=this.startTimeout())}updated(t){t.has("timeout")&&(clearInterval(this.timeoutId),this.timeout&&(this.timeoutId=this.startTimeout()))}disconnectedCallback(){clearInterval(this.timeoutId)}startTimeout(){return setInterval((()=>{this.dispatchEvent(new CustomEvent("time",{detail:this.time,composed:!0})),this.time=new Date(this.time.getTime()+(this.gap||this.timeout))}),Math.abs(this.timeout))}};o([j()],$o.prototype,"escape",void 0),o([j()],$o.prototype,"format",void 0),o([j({type:Object})],$o.prototype,"time",void 0),o([j({type:Number})],$o.prototype,"timeout",void 0),o([j({type:Number})],$o.prototype,"gap",void 0),$o=o([p("time"),d(e.css`:host{text-align:center}`)],$o);var wo,_o=$o;_o.define();const ko="tooltip",xo=ft(ko);let So=wo=class Tooltip extends SuperOpenable{constructor(){super(...arguments),this.direction="top",this.align="center",this.propagation=!1,this.type="hover"}render(){const t=wo.aligns[this.align]||"inherit",o="focus"===this.type;return e.html`<div part="root" ${q(this.observedRecord)} tabindex="${o?0:-1}" @focus="${o?()=>this.open=!0:null}" @blur="${o?()=>this.open=!1:null}" @mouseenter="${o?null:()=>this.open=!0}" @mouseleave="${o?null:()=>this.open=!1}" style="justify-content:${t};align-items:${t}">${Z()}<div part="tip">${this.tip?e.html`<span class="passive">${this.tip}</span>`:Z("tip")}</div></div>`}};So.aligns={start:"flex-start",end:"flex-end",center:"center","flex-start":"flex-start","flex-end":"flex-end"},o([j()],So.prototype,"tip",void 0),o([j()],So.prototype,"direction",void 0),o([j()],So.prototype,"align",void 0),o([j({type:Boolean})],So.prototype,"propagation",void 0),o([j()],So.prototype,"type",void 0),So=wo=o([p(ko),d(e.css`:host{${xo}--tip-background:inherit;width:-moz-fit-content;width:fit-content}:host,[part=root]{display:inline-flex}[part=root]{position:relative;transition:inherit;border-radius:inherit}[part=tip]{width:-moz-fit-content;width:fit-content;height:-moz-fit-content;height:fit-content;position:absolute;visibility:hidden;transition:inherit;-webkit-user-select:none;user-select:none}:host([open]) [part=tip]{visibility:visible}.passive{background:var(${xo}--tip-background)}[propagation] [part=tip]{pointer-events:none}`,e.css`[direction^=top] [part=tip]{bottom:100%}[direction^=bottom] [part=tip]{top:100%}[direction$=right] [part=tip]{left:100%}[direction$=left] [part=tip]{right:100%}`)],So);var Co=So;Co.define();const Eo="typewriter",Ro=ft(Eo);let To=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 e.html`<div part="root" ${q(this.observedRecord)}>${Z()} ${this.contentInternal} <i part="cursor" ?hidden="${this.ended}"></i></div>`}firstUpdated(){this.content||=this._slot?.assignedNodes()[0]?.textContent.trim()||"",!this.ended&&this.len&&this.write()}updated(t){t.has("index")&&this.dispatchEvent(new CustomEvent(this.index===this.len?"done":"write",{detail:this.contentInternal}))}write(t=this.index){this.contentInternal=this.content.slice(0,t+1);const e=this.delay||((t=0,e=1)=>{const o=Math.max(t,e),r=Math.min(t,e);return Math.random()*(o-r)+r})(this.max,this.min);this.timeoutID=setTimeout((()=>{const e=t+1;e<=this.len&&(this.index=e,this.write())}),e)}stop(){clearTimeout(this.timeoutID)}end(){this.ended=!0}};o([j()],To.prototype,"content",void 0),o([j({type:Boolean})],To.prototype,"ended",void 0),o([j({type:Number})],To.prototype,"max",void 0),o([j({type:Number})],To.prototype,"min",void 0),o([j({type:Number})],To.prototype,"delay",void 0),o([j({type:Number})],To.prototype,"index",void 0),o([B()],To.prototype,"contentInternal",void 0),o([U("i")],To.prototype,"_i",void 0),To=o([p(Eo),d(e.css`:host{${Ro}--cursor-width:.05em}:host,:host([contents]) [part=root]{display:inline-block}i{border-right:var(${Ro}--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}`)],To);var Ao=To;return Ao.define(),t.Alert=Tt,t.Avatar=zt,t.Badge=jt,t.Breath=Lt,t.Button=Yt,t.Card=Qt,t.Carousel=oe,t.Details=ae,t.Dialog=de,t.Divider=ue,t.Dragbox=me,t.Flex=ye,t.Form=$e,t.Grid=_e,t.Heading=xe,t.Input=Pe,t.Layout=ze,t.Link=Ue,t.Progress=Ve,t.Range=qe,t.Rotate=Ze,t.Router=Be,t.Select=to,t.Skeleton=so,t.Split=ho,t.Switch=vo,t.Text=yo,t.Time=_o,t.Tooltip=Co,t.Typewriter=Ao,t}({},Lit);
@@ -0,0 +1,48 @@
1
+ /**
2
+ * @license MIT
3
+ * @version 3.0.0
4
+ * Require Lit Core (import from `"lit"`).
5
+ */
6
+ import{noChange as t,html as e,nothing as o,svg as r,LitElement as s,unsafeCSS as a,css as l}from"lit";function h(t,e,o,r){var s,a=arguments.length,l=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,e,o,r);else for(var h=t.length-1;h>=0;h--)(s=t[h])&&(l=(a<3?s(l):a>3?s(e,o,l):s(e,o))||l);return a>3&&l&&Object.defineProperty(e,o,l),l}"function"==typeof SuppressedError&&SuppressedError;const c=t=>null==t,d=t=>!isNaN(+t),p=(t,e=" ")=>{if(!t||!e)return t;let o=t.length;for(;o>0&&t.slice(o-e.length,o)===e;)o-=e.length;return t.slice(0,o)},u=(t,e=" ")=>{if(!t||!e)return t;let o=0;for(;o<t.length&&t.slice(o,o+e.length)===e;)o+=e.length;return t.slice(o)},v=(t,e)=>p(u(t,e),e),m="-";const f=(...t)=>e=>{const o=[];for(let t=Object.getPrototypeOf(e);t.styles;t=Object.getPrototypeOf(t))o.push(t.styles);e.styles=[...o,...t]},g=(t,e)=>o=>{t||=o.name.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),o.protoName=t;(({tagName:t,styles:e,autoDefine:o=!1,registry:r=customElements})=>s=>{s.elementTagName=t,e&&f(e)(s),o&&!r.get(t)&&r.define(t,s)})({tagName:o.godownConfig.tag(t),...e})(o)}
7
+ /**
8
+ * @license
9
+ * Copyright 2019 Google LLC
10
+ * SPDX-License-Identifier: BSD-3-Clause
11
+ */,y=globalThis,$=y.ShadowRoot&&(void 0===y.ShadyCSS||y.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,w=Symbol(),_=new WeakMap;let k=class n{constructor(t,e,o){if(this._$cssResult$=!0,o!==w)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($&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=_.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&_.set(e,t))}return t}toString(){return this.cssText}};const x=$?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return(t=>new k("string"==typeof t?t:t+"",void 0,w))(e)})(t):t
12
+ /**
13
+ * @license
14
+ * Copyright 2017 Google LLC
15
+ * SPDX-License-Identifier: BSD-3-Clause
16
+ */,{is:C,defineProperty:S,getOwnPropertyDescriptor:E,getOwnPropertyNames:R,getOwnPropertySymbols:T,getPrototypeOf:A}=Object,P=globalThis,M=P.trustedTypes,z=M?M.emptyScript:"",O=P.reactiveElementPolyfillSupport,I=(t,e)=>t,D={toAttribute(t,e){switch(e){case Boolean:t=t?z: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}},j=(t,e)=>!C(t,e),B={attribute:!0,type:String,converter:D,reflect:!1,hasChanged:j};Symbol.metadata??=Symbol("metadata"),P.litPropertyMetadata??=new WeakMap;let N=class b extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=B){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),r=this.getPropertyDescriptor(t,o,e);void 0!==r&&S(this.prototype,t,r)}}static getPropertyDescriptor(t,e,o){const{get:r,set:s}=E(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return r?.call(this)},set(e){const a=r?.call(this);s.call(this,e),this.requestUpdate(t,a,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??B}static _$Ei(){if(this.hasOwnProperty(I("elementProperties")))return;const t=A(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(I("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(I("properties"))){const t=this.properties,e=[...R(t),...T(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(x(t))}else void 0!==t&&e.push(x(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($)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of e){const e=document.createElement("style"),r=y.litNonce;void 0!==r&&e.setAttribute("nonce",r),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)}_$EC(t,e){const o=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,o);if(void 0!==r&&!0===o.reflect){const s=(void 0!==o.converter?.toAttribute?o.converter:D).toAttribute(e,o.type);this._$Em=t,null==s?this.removeAttribute(r):this.setAttribute(r,s),this._$Em=null}}_$AK(t,e){const o=this.constructor,r=o._$Eh.get(t);if(void 0!==r&&this._$Em!==r){const t=o.getPropertyOptions(r),s="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:D;this._$Em=r,this[r]=s.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,o){if(void 0!==t){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??j)(this[t],e))return;this.P(t,e,o)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),!0===o.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$ET(){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)!0!==o.wrapped||this._$AL.has(e)||void 0===this[e]||this.P(e,this[e],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$EU()}catch(e){throw t=!1,this._$EU(),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)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU()}updated(t){}firstUpdated(t){}};N.elementStyles=[],N.shadowRootOptions={mode:"open"},N[I("elementProperties")]=new Map,N[I("finalized")]=new Map,O?.({ReactiveElement:N}),(P.reactiveElementVersions??=[]).push("2.0.4");
17
+ /**
18
+ * @license
19
+ * Copyright 2017 Google LLC
20
+ * SPDX-License-Identifier: BSD-3-Clause
21
+ */
22
+ const U={attribute:!0,type:String,converter:D,reflect:!1,hasChanged:j},V=(t=U,e,o)=>{const{kind:r,metadata:s}=o;let a=globalThis.litPropertyMetadata.get(s);if(void 0===a&&globalThis.litPropertyMetadata.set(s,a=new Map),a.set(o.name,t),"accessor"===r){const{name:r}=o;return{set(o){const s=e.get.call(this);e.set.call(this,o),this.requestUpdate(r,s,t)},init(e){return void 0!==e&&this.P(r,void 0,t),e}}}if("setter"===r){const{name:r}=o;return function(o){const s=this[r];e.call(this,o),this.requestUpdate(r,s,t)}}throw Error("Unsupported decorator location: "+r)};function L(t){return(e,o)=>"object"==typeof o?V(t,e,o):((t,e,o)=>{const r=e.hasOwnProperty(o);return e.constructor.createProperty(o,r?{...t,wrapped:!0}:t),r?Object.getOwnPropertyDescriptor(e,o):void 0})(t,e,o)
23
+ /**
24
+ * @license
25
+ * Copyright 2017 Google LLC
26
+ * SPDX-License-Identifier: BSD-3-Clause
27
+ */}function G(t){return L({...t,state:!0,attribute:!1})}
28
+ /**
29
+ * @license
30
+ * Copyright 2017 Google LLC
31
+ * SPDX-License-Identifier: BSD-3-Clause
32
+ */const H=(t,e,o)=>(o.configurable=!0,o.enumerable=!0,Reflect.decorate&&"object"!=typeof e&&Object.defineProperty(t,e,o),o)
33
+ /**
34
+ * @license
35
+ * Copyright 2017 Google LLC
36
+ * SPDX-License-Identifier: BSD-3-Clause
37
+ */;function F(t,e){return(o,r,s)=>{const a=e=>e.renderRoot?.querySelector(t)??null;if(e){const{get:t,set:e}="object"==typeof r?o:s??(()=>{const t=Symbol();return{get(){return this[t]},set(e){this[t]=e}}})();return H(o,r,{get(){let o=t.call(this);return void 0===o&&(o=a(this),(null!==o||this.hasUpdated)&&e.call(this,o)),o}})}return H(o,r,{get(){return a(this)}})}}
38
+ /**
39
+ * @license
40
+ * Copyright 2017 Google LLC
41
+ * SPDX-License-Identifier: BSD-3-Clause
42
+ */let q;const W=(t,e=!0)=>F(`[part=${t}]`,e)
43
+ /**
44
+ * @license
45
+ * Copyright 2017 Google LLC
46
+ * SPDX-License-Identifier: BSD-3-Clause
47
+ */,Y=6;let X=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 Z=(t,e,o)=>{c(o)||!1===o?t.removeAttribute(e):(!0===o||"string"==typeof o||"number"==typeof o&&!isNaN(o))&&t.setAttribute(e,!0===o?"":String(o))};const K=(t=>(...e)=>({_$litDirective$:t,values:e}))(class AttrDirective extends X{render(t,e){}update(e,[o,r]){if(!o)return t;if(e.type===Y){for(const t in o)(r||Z)(e.element,t,o[t]);return t}}}),Q=((t,e)=>o=>t({...e,...o}))(K,{width:"1em",height:"1em",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}),J=(t,e)=>t?t+(e?" "+e:""):e,tt=(...t)=>t.reduce(((t,e)=>{if(Array.isArray(e))return J(t,e.join(" "));if("object"==typeof e){const o=Object.entries(e).reduce(((t,[e,o])=>o?J(t,e):t),"");return J(t,o)}return J(t,e)}),""),et=(t,r)=>e`<slot name="${t||o}" @slotchange=${null}></slot>`;function ot(t,e,o,r){const s={};return Object.keys(e).forEach(((a,l)=>{const h=t.reduce(((t,o,s)=>{let l=e[a][s];return l=r?r(l,s):l,c(l)||t.push(`${o}:${l}`),t}),[]);s[a]=`${o?o(a,l):a}{${h.join(";")}}`})),s}function it(t){return Object.keys(t).reduce(((e,o)=>{const r=t[o];if(!r)return e;const s="string"==typeof r?r:rt(r);return s?e+`${o}{${s}}`:e}),"")}function rt(t){return Object.keys(t).reduce(((e,o)=>{const r=t[o];return c(r)?e:e+`${o}:${r};`}),"")}function st(t,e){return t?`var(${t})`:""}const nt=(t,r)=>{if(!t)return o;const s="string"==typeof t?t:it(t);return s?e`<style media="${o}">${s}</style>`:o},at=t=>(o,...s)=>{const a=r(o,s),l=t,h=t=>e`<svg viewBox="${l}" ${Q(t)}>${a}</svg>`;return h.body=a,h.viewBox=l,h};function lt(t,e=document.body){const o=[];if(!e||!t)return o;e.shadowRoot&&o.push(...lt(t,e.shadowRoot));const r=e.querySelectorAll(t);o.push(...Array.from(r));for(const r of e.children)o.push(...lt(t,r));return[...new Set(o)]}function ht(t,e=document.body){if(!e||!t)return null;if(e.shadowRoot)return ht(t,e.shadowRoot);const o=e.querySelector(t);if(o)return o;for(const o of e.children){const e=ht(t,o);if(e)return e}return null}class Events{constructor(){this.m=new Map}add(t,e,o,r){const s=this.m.get(e)||new Map,a=s.get(t)||new Set;return a.add(o),s.set(t,a),this.m.set(e,s),t.addEventListener(e,o,r),o}remove(t,e,o,r){if(o){const s=this.m.get(e);if(s){const r=s.get(t);r&&(r.delete(o),r.size||(s.delete(t),s.size||this.m.delete(e)))}t.removeEventListener(e,o,r)}}removeAll(){this.m.forEach(((t,e)=>{t.forEach(((t,o)=>{t.forEach((t=>{o.removeEventListener(e,t)}))})),t.clear(),this.m.delete(e)}))}}class GodownElement extends s{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)}get observedRecord(){return Object.fromEntries(this.scopedObservedAttributes.map((t=>[t,this[t]])))}get scopedObservedAttributes(){return this.globalObservedAttributes.filter((t=>!GodownElement.observedAttributes.includes(t)))}get globalObservedAttributes(){return this.constructor.observedAttributes}get _slot(){return this.shadowRoot.querySelector("slot:not([name])")}get _slotAll(){return[...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(),/^[\s\S]*{[\s\S]*}$/.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.__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()}mount(t){this.firstUpdated(t)}unmount(){this.disconnectedCallback()}remount(t){this.unmount(),this.connectedCallback(),this.mount(t)}deepQuerySelector(t){return ht(t,this)}deepQuerySelectorAll(t){return lt(t,this)}adoptStyles(...t){const e=this.shadowRoot.adoptedStyleSheets;if(t.length){const o=new CSSStyleSheet;t.forEach((t=>o.insertRule(t.toString()))),e.push(o)}return 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 v(p(this.prefix,m)+m+t+m+u(this.suffix,m),m)}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)}},h([L({type:Boolean,reflect:!0})],GodownElement.prototype,"contents",void 0),h([L({reflect:!0})],GodownElement.prototype,"stylex",null);class RouteTree{constructor(){this.matchType=RouteTree.matchType.strict,this.children=[]}insert(t,e,o=0){if(e||(e=RouteTree.split(t)),e.length===o)return void(this.pattern=t);const r=e[o];let s=this.findStrict(r);s||(s=new RouteTree,s.part=r,s.matchType=RouteTree.dynamic(r).matchType,this.children.push(s),this.sorted=!1),s.insert(t,e,o+1)}search(t,e=0){if("string"==typeof t&&(t=RouteTree.split(t)),this.sorted||this.sort(),t.length===e||RouteTree.dynamic(this.part).matchType===RouteTree.matchType.multi)return this.pattern?this:null;const o=t[e],r=this.filterWide(o);for(const o of r){const r=o.search(t,e+1);if(null!==r)return r}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))}static parseParams(t,e){const o=RouteTree.split(t),r=RouteTree.split(e),s={};for(let t=0;t<r.length;t++){const e=r[t],{key:a,carry:l,matchType:h}=RouteTree.dynamic(e);if(h===RouteTree.matchType.single)s[a.slice(l)]=o[t];else if(h===RouteTree.matchType.multi){s[a.slice(l)]=o.slice(t).join("/");break}}return s}static dynamic(t){if(t){if(t.startsWith("{")&&t.endsWith("}")||t.startsWith("[")&&t.endsWith("]")){t=t.slice(1,-1);const e=RouteTree.dynamic(t);return e.matchType||=RouteTree.matchType.single,e}if(t.length>1){const e=t[0];if(":"===e)return{key:t,carry:1,matchType:RouteTree.matchType.single};if("*"===e)return{key:t,carry:1,matchType:RouteTree.matchType.multi};if(t.startsWith("..."))return{key:t,carry:3,matchType:RouteTree.matchType.multi}}}return{key:t,carry:0,matchType:RouteTree.matchType.strict}}static join(...t){return t.map((t=>v(t,"/"))).join("/")}static split(t){return t.split("/").filter((t=>t))}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}}RouteTree.matchType={strict:0,single:1,multi:2};var ct=at("0 0 56 56")`<path fill="currentColor" d="M28 4c13.255 0 24 10.745 24 24S41.255 52 28 52S4 41.255 4 28S14.745 4 28 4m0 4C16.954 8 8 16.954 8 28s8.954 20 20 20s20-8.954 20-20S39.046 8 28 8m10.788 11.93c.67.67.67 1.756 0 2.425l-13.36 13.36a1.715 1.715 0 0 1-2.424 0l-5.645-5.646a1.714 1.714 0 0 1 2.425-2.424l3.22 3.22c.67.67 1.755.67 2.425 0l10.934-10.934c.67-.67 1.755-.67 2.425 0"/>`,dt=at("0 0 56 56")`<path fill="currentColor" d="M28 51.906c13.055 0 23.906-10.828 23.906-23.906c0-13.055-10.875-23.906-23.93-23.906C14.899 4.094 4.095 14.945 4.095 28c0 13.078 10.828 23.906 23.906 23.906m0-3.984C16.937 47.922 8.1 39.062 8.1 28c0-11.04 8.813-19.922 19.876-19.922c11.039 0 19.921 8.883 19.945 19.922c.023 11.063-8.883 19.922-19.922 19.922m-.023-15.68c1.124 0 1.757-.633 1.78-1.851l.352-12.375c.024-1.196-.914-2.086-2.156-2.086c-1.266 0-2.156.867-2.133 2.062l.305 12.399c.023 1.195.68 1.851 1.852 1.851m0 7.617c1.335 0 2.53-1.078 2.53-2.437c0-1.383-1.171-2.438-2.53-2.438c-1.383 0-2.532 1.078-2.532 2.438c0 1.336 1.172 2.437 2.532 2.437"/>`,pt=at("0 0 56 56")`<path fill="currentColor" d="M28 51.906c13.055 0 23.906-10.828 23.906-23.906c0-13.055-10.875-23.906-23.93-23.906C14.899 4.094 4.095 14.945 4.095 28c0 13.078 10.828 23.906 23.906 23.906m0-3.984C16.937 47.922 8.1 39.062 8.1 28c0-11.04 8.813-19.922 19.876-19.922c11.039 0 19.921 8.883 19.945 19.922c.023 11.063-8.883 19.922-19.922 19.922m-.211-28.266c1.71 0 3.047-1.36 3.047-3.047c0-1.71-1.336-3.07-3.047-3.07s-3.047 1.36-3.047 3.07a3.026 3.026 0 0 0 3.047 3.047m-3.914 21.235h9.562c.961 0 1.711-.68 1.711-1.641c0-.914-.75-1.64-1.71-1.64H30.53V25.68c0-1.266-.656-2.11-1.828-2.11h-4.43c-.937 0-1.687.727-1.687 1.64c0 .962.75 1.642 1.687 1.642h2.532v10.757h-2.93c-.938 0-1.688.727-1.688 1.641c0 .96.75 1.64 1.688 1.64"/>`,ut=at("0 0 56 56")`<path fill="currentColor" d="M19.504 43.152h16.969c.797 0 1.289-.492 1.289-1.289v-3.75c0-5.672 8.25-9.328 8.25-19.453C46.012 7.996 38.793.871 27.988.871s-18 7.125-18 17.79c0 10.124 8.227 13.78 8.227 19.452v3.75c0 .797.515 1.29 1.289 1.29m2.203-4.992c0-6.89-8.18-10.57-8.18-19.476c0-8.579 5.79-14.274 14.461-14.274c8.672 0 14.485 5.695 14.485 14.274c0 8.906-8.203 12.586-8.203 19.476v1.453H21.707Zm-1.336 11.32h15.235c1.195 0 2.156-.984 2.156-2.203s-.961-2.203-2.157-2.203H20.371c-1.195 0-2.156.985-2.156 2.203c0 1.22.96 2.203 2.156 2.203m7.617 5.649c3.235 0 5.508-1.477 5.742-3.75H22.246c.211 2.273 2.484 3.75 5.742 3.75"/>`,vt=at("0 0 56 56")`<path fill="currentColor" d="M28 51.906c13.055 0 23.906-10.828 23.906-23.906c0-13.055-10.875-23.906-23.93-23.906C14.899 4.094 4.095 14.945 4.095 28c0 13.078 10.828 23.906 23.906 23.906m0-3.984C16.937 47.922 8.1 39.062 8.1 28c0-11.04 8.813-19.922 19.876-19.922c11.039 0 19.921 8.883 19.945 19.922c.023 11.063-8.883 19.922-19.922 19.922m-.492-15.07c1.172 0 1.898-.727 1.898-1.664v-.282c0-1.312.75-2.133 2.39-3.21c2.274-1.5 3.891-2.884 3.891-5.673c0-3.914-3.468-6-7.453-6c-4.031 0-6.68 1.899-7.312 4.055c-.117.399-.211.774-.211 1.172c0 1.031.844 1.617 1.617 1.617c1.336 0 1.547-.726 2.297-1.594c.773-1.289 1.898-2.062 3.469-2.062c2.133 0 3.515 1.195 3.515 3c0 1.594-.984 2.367-3.023 3.773c-1.688 1.172-2.953 2.414-2.953 4.711V31c0 1.242.68 1.852 1.875 1.852m-.047 7.007c1.36 0 2.531-1.078 2.531-2.437c0-1.383-1.148-2.438-2.531-2.438s-2.531 1.078-2.531 2.438c0 1.336 1.171 2.437 2.53 2.437"/>`,mt=at("0 0 56 56")`<path fill="currentColor" d="M28 51.906c13.055 0 23.906-10.828 23.906-23.906c0-13.055-10.875-23.906-23.93-23.906C14.899 4.094 4.095 14.945 4.095 28c0 13.078 10.828 23.906 23.906 23.906m0-3.984C16.937 47.922 8.1 39.062 8.1 28c0-11.04 8.813-19.922 19.876-19.922c11.039 0 19.921 8.883 19.945 19.922c.023 11.063-8.883 19.922-19.922 19.922m-8.156-9.727c.656 0 1.148-.28 1.664-.797l15.75-15.984c.492-.492.797-1.078.797-1.617c0-1.078-.891-1.945-1.97-1.945c-.562 0-1.1.28-1.616.796L18.742 34.61c-.539.516-.797 1.102-.797 1.641c0 1.055.774 1.945 1.899 1.945"/>`,ft=at("0 0 56 56")`<path fill="currentColor" d="M10.023 43.023c-.796.797-.82 2.157 0 2.954c.82.796 2.157.796 2.977 0l15-15l15 15c.797.796 2.156.82 2.977 0c.796-.82.796-2.157 0-2.954L30.953 28l15.024-15c.796-.797.82-2.156 0-2.953c-.844-.82-2.18-.82-2.977 0l-15 15l-15-15c-.82-.82-2.18-.844-2.977 0c-.796.82-.796 2.156 0 2.953l15 15Z"/>`,gt=at("0 0 56 56")`<path fill="currentColor" d="M28 51.906c13.055 0 23.906-10.828 23.906-23.906c0-13.055-10.875-23.906-23.93-23.906C14.899 4.094 4.095 14.945 4.095 28c0 13.078 10.828 23.906 23.906 23.906m0-3.984C16.937 47.922 8.1 39.062 8.1 28c0-11.04 8.813-19.922 19.876-19.922c11.039 0 19.921 8.883 19.945 19.922c.023 11.063-8.883 19.922-19.922 19.922m-8.016-9.984c.516 0 .985-.211 1.336-.586l6.657-6.68l6.656 6.68c.351.351.82.586 1.36.586c1.03 0 1.874-.868 1.874-1.899c0-.539-.21-.984-.562-1.336l-6.657-6.656l6.68-6.703c.375-.399.563-.797.563-1.313a1.865 1.865 0 0 0-1.875-1.875c-.493 0-.915.164-1.313.563l-6.727 6.703l-6.703-6.68c-.351-.375-.773-.539-1.289-.539c-1.054 0-1.875.797-1.875 1.852c0 .515.188.96.563 1.312l6.656 6.68l-6.656 6.68c-.375.328-.563.796-.563 1.312c0 1.031.82 1.898 1.875 1.898"/>`;const yt=(t,e,o)=>({r:t,g:e,b:o,toString(){return`${this.r} ${this.g} ${this.b}`}}),bt={darkgray:[yt(121,121,121),yt(109,109,109),yt(97,97,97),yt(85,85,85),yt(73,73,73),yt(61,61,61),yt(48,48,48),yt(36,36,36),yt(24,24,24),yt(12,12,12)],lightgray:[yt(243,243,243),yt(231,231,231),yt(219,219,219),yt(206,206,206),yt(194,194,194),yt(182,182,182),yt(170,170,170),yt(158,158,158),yt(146,146,146),yt(133,133,133)],teal:[yt(213,249,248),yt(170,243,241),yt(128,237,234),yt(85,231,226),yt(43,225,219),yt(0,219,212),yt(0,175,170),yt(0,131,127),yt(0,88,85),yt(0,44,42)],blue:[yt(213,240,255),yt(170,224,255),yt(128,209,255),yt(85,193,255),yt(43,178,255),yt(0,162,255),yt(0,130,204),yt(0,97,153),yt(0,65,102),yt(0,32,51)],green:[yt(221,243,221),yt(186,231,186),yt(152,219,152),yt(117,206,117),yt(82,194,82),yt(48,182,48),yt(38,146,38),yt(29,109,29),yt(19,73,19),yt(10,36,10)],red:[yt(251,221,221),yt(247,186,187),yt(243,152,154),yt(239,118,120),yt(235,83,86),yt(231,49,52),yt(185,39,42),yt(139,29,31),yt(92,20,21),yt(46,10,10)],purple:[yt(242,228,253),yt(229,201,250),yt(217,174,248),yt(204,146,245),yt(191,119,243),yt(178,92,240),yt(142,74,192),yt(107,55,144),yt(71,37,96),yt(36,18,48)],orange:[yt(255,235,213),yt(255,216,170),yt(255,196,128),yt(255,176,85),yt(255,157,43),yt(255,137,0),yt(204,110,0),yt(153,82,0),yt(102,55,0),yt(51,27,0)],yellow:[yt(251,252,216),yt(247,248,177),yt(243,245,138),yt(239,242,98),yt(235,238,59),yt(231,235,20),yt(185,188,16),yt(139,141,12),yt(92,94,8),yt(46,47,4)],pink:[yt(254,222,233),yt(253,189,211),yt(252,156,190),yt(251,123,168),yt(250,90,146),yt(249,57,124),yt(199,46,99),yt(149,34,74),yt(100,23,50),yt(50,11,25)]};class GlobalStyle extends GodownElement{}const $t=v(GlobalStyle.godownConfig.prefix,"-");function wt(t,e=1){return function(t){return a(`--${t}`)}($t+"-".repeat(e)+t)}const _t={foreground:wt("foreground",2),background:wt("background",2),clipBackground:wt("clip-background",2),active:wt("active",2),passive:wt("passive",2),_colors:{},input:wt("input",2),white:wt("color-white",2),black:wt("color-black",2)};var kt,xt;GlobalStyle.styles=[a(`:host{${_t.black}:rgb(0 0 0);${_t.white}:rgb(255 255 255);`+(kt=(t,e,o)=>{_t._colors[t]||=[],_t._colors[t].push(a(wt("color",2)+"-"+t+"-"+e));const r=`-${t}-${e}`;return`${wt("color",2)+r}:rgb(${o});`},xt=bt,Object.entries(xt).flatMap((([t,e])=>e.map(((e,o)=>kt(t,o,e)))))).join("")+rt({[_t.background+""]:`var(${_t._colors.darkgray[9]})`,[_t.foreground+""]:`var(${_t._colors.lightgray[0]})`,[_t.active+""]:`var(${_t._colors.blue[6]})`,[_t.passive+""]:`var(${_t._colors.darkgray[6]})`,[_t.clipBackground+""]:`linear-gradient(to bottom, var(${_t.foreground}), var(${_t.passive}))`})+"}"),l`*{border:0;outline:0;margin:0;padding:0;font-size:100%;font-style:normal;box-sizing:border-box}:host{box-sizing:border-box}a{text-decoration:none}span{white-space:nowrap}svg{-webkit-user-select:none;user-select:none}:host([contents]){display:contents}:where(:host([contents]) [part=root]){all:inherit;display:revert}`];const Ct="alert",St=wt(Ct),Et=["color","background"].map((t=>`${St}--${t}`)),Rt=t=>[_t._colors[t][5],_t._colors[t][9]],Tt=ot(Et,{green:Rt("green"),blue:Rt("blue"),orange:Rt("orange"),red:Rt("red"),yellow:Rt("yellow"),purple:Rt("purple"),teal:Rt("teal"),pink:Rt("pink"),gray:[_t._colors.lightgray[5],_t._colors.darkgray[5]],white:[_t._colors.lightgray[2],_t._colors.darkgray[7]],black:[_t._colors.darkgray[8],_t._colors.lightgray[5]]},(()=>":host"),(t=>st(t))),At=t=>[_t._colors[t][6],_t._colors[t][0]],Pt=ot(Et,{green:At("green"),blue:At("blue"),orange:At("orange"),red:At("red"),yellow:At("yellow"),purple:At("purple"),teal:At("teal"),pink:At("pink"),gray:[_t._colors.darkgray[5],_t._colors.lightgray[7]],white:[_t._colors.lightgray[0],_t._colors.darkgray[0]],black:[_t._colors.darkgray[7],_t._colors.lightgray[3]]},(()=>":host"),(t=>st(t))),Mt={tip:{color:"teal",icon:ut},success:{color:"green",icon:ct},info:{color:"blue",icon:pt},warning:{color:"orange",icon:dt},danger:{color:"red",icon:gt},error:{color:"red",icon:gt},help:{color:"purple",icon:vt},deprecated:{color:"gray",icon:mt}};let zt=class Alert extends GlobalStyle{constructor(){super(...arguments),this.color="blue",this.autoclose=0,this.hideClose=!1,this.variant="dark"}render(){const t=Mt[this.call]?.color||this.color,o=this.call?Mt[this.call].icon():et("icon");return e`<div part="root" ${K(this.observedRecord)}><div part="icon">${o}</div><div part="content"><strong part="title">${this.title||et("title")}</strong> ${this.content||et()}</div>${this.hideClose||"blockquote"===this.variant?"":e`<div part="close" tabindex="0" @click="${this.close}">${ft()}</div>`} ${nt("light"===this.variant?Pt[t]:Tt[t])}</div>`}close(){this.remove(),this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}firstUpdated(){this.autoclose&&setTimeout((()=>this.close()),this.autoclose)}static alert(t,e){const o=new this;return Object.assign(o,e),t.appendChild(o),o}};h([L()],zt.prototype,"call",void 0),h([L()],zt.prototype,"color",void 0),h([L({type:Number})],zt.prototype,"autoclose",void 0),h([L()],zt.prototype,"title",void 0),h([L()],zt.prototype,"content",void 0),h([L({type:Boolean})],zt.prototype,"hideClose",void 0),h([L()],zt.prototype,"variant",void 0),zt=h([g(Ct),f(l`:host,:where(:host([contents]) [part=root]){border-radius:var(${St}--border-radius);${St}--border-radius:.25em;${St}--border-width:.075em;${St}--blockquote-width:.2em;${St}--padding:.5em;display:block;width:100%}[part=root]{--color:var(${St}--color);color:var(--color);width:100%;transition:.25s;display:flex;justify-content:space-between;padding:var(${St}--padding);border-radius:inherit;border:var(${St}--border-width) solid var(--color);background:var(${St}--background)}[variant=blockquote]{border-radius:0;border-left:var(${St}--blockquote-width) solid var(--color);border-bottom:none;border-right:none;border-top:none;background:0 0}[part=content]{color:var(--color)}[part=root]{display:grid;align-items:center;grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr}[part=title]{line-height:2em}[part=icon]{display:inline-grid;align-items:center;height:2em}[part=icon] svg{margin-right:.5em;width:1.25em;height:1.25em}[part=content]{grid-row:span 2/span 2;line-height:1.5em}`)],zt);var Ot=zt;Ot.define();const It="avatar",Dt=wt(It);let jt=class Avatar extends GlobalStyle{constructor(){super(...arguments),this.name="",this.round=!1}render(){return e`<div part="root" ${K(((t,...e)=>Object.keys(t).reduce(((o,r)=>(e.includes(r)||(o[r]=t[r]),o)),{}))(this.observedRecord,"src"))}>${this._renderAvatar()}</div>`}_renderAvatar(){return this.src?e`<img part="image" src="${this.src}" @error="${this._handleError}" alt="${this.name}">`:this.name?e`<span part="name">${this.format()}</span>`:et()}format(){return this.name}_handleError(){this.src=void 0}};h([L()],jt.prototype,"src",void 0),h([L()],jt.prototype,"name",void 0),h([L({type:Boolean})],jt.prototype,"round",void 0),jt=h([g(It),f(l`:host{${Dt}--size:2em;width:var(${Dt}--size);height:var(${Dt}--size);vertical-align:bottom}: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]{overflow:hidden;position:relative;border-radius:inherit;width:100%;height:100%;align-items:center;justify-content:center}`)],jt);var Bt=jt;Bt.define();const Nt="badge",Ut=wt(Nt);let Vt=class Badge 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 e`<div part="root" ${K(this.observedRecord)}>${et()} ${this.value||this.dot?e`<div part="badge">${this.dot?"":this.formatValue(this.value)}</div>`:""}</div>`}};h([L()],Vt.prototype,"position",void 0),h([L({type:Number})],Vt.prototype,"value",void 0),h([L({type:Boolean})],Vt.prototype,"dot",void 0),h([L({type:Number})],Vt.prototype,"max",void 0),Vt=h([g(Nt),f(l`:host{${Ut}--background:var(${_t.active});${Ut}--offset:0%;${Ut}--offset-x:var(${Ut}--offset);${Ut}--offset-y:var(${Ut}--offset)}:host,:host([contents]) [part=root]{display:inline-block}[part=root]{position:relative}[part=badge]{position:absolute;font-size:75%;padding:0 .5em;-webkit-user-select:none;user-select:none;border-radius:calc(infinity * 1px);transform:translate(-50%,-50%);left:var(--left);top:var(--top);background:var(${Ut}--background)}[part=badge]:empty{width:.5em;height:.5em;font-size:100%;padding:0;border-radius:50%}[position^=top]{--top:calc(0% + var(${Ut}--offset-y))}[position$=right]{--left:calc(100% - var(${Ut}--offset-x))}[position^=bottom]{--top:calc(100% - var(${Ut}--offset-y))}[position$=left]{--left:calc(0% + var(${Ut}--offset-x))}`)],Vt);var Lt=Vt;Lt.define();const Gt="breath",Ht=wt(Gt);let Ft=class Breath extends GlobalStyle{render(){const t=this.getTexts();return e`<div part="root" ${K(this.observedRecord)}>${[t.map(this.renderText),nt(this._computeStyle(t.length))]}</div>`}renderText(t){return e`<span class="rel"><span class="nocolor">${t}</span> <span class="colorful">${t}</span></span>`}getTexts(){return Array.isArray(this.text)?this.text:(this.text||this.textContent).split(/\s+/).filter((t=>t))}_computeStyle(t){const e=50/t,o=this.parseDuration()||2*t+2;let r="";for(let e=1;e<=t;e++)r+=`.rel:nth-child(${e}) .colorful{animation-delay:${-o/t*(t-e+1)}s;background:var(${Ht}--${e},var(${Ht}--${(e-1)%3+1}));}`;return`.colorful{animation-duration:${o}s;}@keyframes colorfulN{0%,${3*e}%{opacity:0;}${e}%,${2*e}%{opacity:1;}}${r}`}parseDuration(){const{duration:t}=this;if(t){if(t.endsWith("s"))return Number.parseFloat(t.slice(0,-1));if(t.endsWith("ms"))return Number.parseFloat(t.slice(0,-2))/1e3}}};h([L()],Ft.prototype,"text",void 0),h([L()],Ft.prototype,"duration",void 0),Ft=h([g(Gt),f(l`:host{${Ht}--deg:60deg;${Ht}--1-1:var(${_t._colors.red[5]});${Ht}--1-2:var(${_t._colors.yellow[5]});${Ht}--2-1:var(${_t._colors.green[5]});${Ht}--2-2:var(${_t._colors.purple[5]});${Ht}--3-1:var(${_t._colors.blue[5]});${Ht}--3-2:var(${_t._colors.pink[5]});${Ht}--1:linear-gradient(var(${Ht}--deg),var(${Ht}--1-1),var(${Ht}--1-2));${Ht}--2:linear-gradient(var(${Ht}--deg),var(${Ht}--2-1),var(${Ht}--2-2));${Ht}--3:linear-gradient(var(${Ht}--deg),var(${Ht}--3-1),var(${Ht}--3-2))}`,l`: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}`,l`.colorful,.nocolor{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(${_t.clipBackground})}`)],Ft);var qt=Ft;qt.define();const Wt="button",Yt=wt(Wt),Xt=_t.white,Zt=_t.black,Kt=ot(["color","background","gradients"].map((t=>`${Yt}--${t}`)),{black:[Xt,_t._colors.darkgray[7],_t._colors.darkgray[5]],gray:[Xt,_t._colors.darkgray[1],_t._colors.lightgray[8]],white:[Zt,_t._colors.lightgray[3],_t._colors.lightgray[0]],blue:[Xt,_t._colors.blue[6],_t._colors.blue[4]],green:[Xt,_t._colors.green[6],_t._colors.green[4]],red:[Xt,_t._colors.red[6],_t._colors.red[4]],orange:[Xt,_t._colors.orange[6],_t._colors.orange[4]],pink:[Xt,_t._colors.pink[6],_t._colors.pink[4]],purple:[Xt,_t._colors.purple[6],_t._colors.purple[4]],yellow:[Zt,_t._colors.yellow[6],_t._colors.yellow[4]],teal:[Xt,_t._colors.teal[6],_t._colors.teal[4]]},(()=>":host"),(t=>st(t)));let Qt=class Button extends GlobalStyle{constructor(){super(...arguments),this.disabled=!1,this.ghost=!1,this.active=!1,this.round=!1,this.color="black"}render(){const t=this.nextColor();return e`<div part="root" ${K(this.observedRecord)}><span part="modal-root"></span><div part="content">${[this.content||et(),nt(Kt[t])]}</div></div>`}focus(){this.disabled||(this.active=!0,super.focus())}blur(){this.active=!1,super.blur()}firstUpdated(){this.events.add(this,"click",this._handelClick,!0)}_handelClick(t){if(this.disabled)return t.stopPropagation(),void t.preventDefault();this._handleModal(t)}_handleModal(t){const e=document.createElement("i"),o=this._root.getBoundingClientRect(),{height:r,width:s}=o,a=2*Math.sqrt(r*r+s*s)+"px";e.style.height=a,e.style.width=a,e.style.left=t.clientX-o.left+"px",e.style.top=t.clientY-o.y+"px",e.style.animationName="kf",this._modalRoot.appendChild(e),e.addEventListener("animationend",(()=>e.remove()),{once:!0})}nextColor(){return this.color}};h([L({type:Boolean,reflect:!0})],Qt.prototype,"disabled",void 0),h([L({type:Boolean,reflect:!0})],Qt.prototype,"ghost",void 0),h([L({type:Boolean,reflect:!0})],Qt.prototype,"active",void 0),h([L({type:Boolean,reflect:!0})],Qt.prototype,"round",void 0),h([L({reflect:!0})],Qt.prototype,"color",void 0),h([L()],Qt.prototype,"content",void 0),h([W("modal-root")],Qt.prototype,"_modalRoot",void 0),h([W("root")],Qt.prototype,"_root",void 0),Qt=h([g(Wt),f(l`:host(:not([disabled]):active){transform:scale(var(${Yt}--focus-scale))}:host([round]){${Yt}--padding-x:.75em;border-radius:calc(infinity * 1px)}:host([disabled]){cursor:not-allowed;filter:brightness(.85)}:host([ghost]){${Yt}--modal-background:var(${Yt}--ghost-color);box-shadow:inset 0 0 0 var(${Yt}--ghost-width) var(${Yt}--ghost-color);color:var(${Yt}--ghost-color);background:0 0}`,l`:host{${Yt}--padding-x:.5em;${Yt}--padding-y:min(calc(var(${Yt}--padding-x) / 2),.25em);${Yt}--padding:var(${Yt}--padding-y) var(${Yt}--padding-x);${Yt}--modal-animation-duration:1s;${Yt}--ghost-width:.08em;${Yt}--focus-scale:.97;${Yt}--deg:45deg;${Yt}--ghost-color:var(${Yt}--background);color:var(${Yt}--color,inherit);background:linear-gradient(var(${Yt}--deg),var(${Yt}--background),var(${Yt}--gradients,var(${Yt}--background)));border-radius:.3em;width:-moz-fit-content;width:fit-content;transition:.1s;display:block;overflow:hidden;text-align:center;padding:0!important;cursor:pointer}:host([contents]) [part=root]{width:-moz-fit-content;width:fit-content}[part=root]{width:100%;height:100%;overflow:hidden;position:relative;transition:none;-webkit-user-select:none;user-select:none;border-radius:inherit;transition-duration:inherit}[part=content]{padding:var(${Yt}--padding)}i{position:absolute;inset:0;opacity:0;width:100%;height:100%;border-radius:50%;visibility:visible;pointer-events:none;transform-origin:0 0;background:var(${Yt}--modal-background,currentColor);animation-duration:var(${Yt}--modal-animation-duration)}@keyframes kf{0%{transform:scale(0) translate(-50%,-50%);opacity:var(${Yt}--modal-opacity,.1)}80%{transform:scale(1) translate(-50%,-50%)}to{opacity:0}}`)],Qt);var Jt=Qt;Jt.define();const te="card",ee=wt(te);let oe=class Card extends GlobalStyle{constructor(){super(...arguments),this.footer=!1,this.header=!1}render(){return e`<div part="root" ${K(this.observedRecord)}>${[this.header?et("header"):"",et(),this.footer?et("footer"):""]}</div>`}};h([L({type:Boolean})],oe.prototype,"footer",void 0),h([L({type:Boolean})],oe.prototype,"header",void 0),oe=h([g(te),f(l`:host{${ee}--background:var(${_t.background});${ee}--border-width:.0375em;${ee}--border-color:transparent;${ee}--border-background:var(${_t.passive});${ee}--padding:.75em;color:var(${_t.foreground});background:var(${ee}--background);border-width:var(${ee}--border-width);display:block;flex-shrink:0;position:relative;overflow:hidden;box-sizing:border-box}slot{display:block;padding:var(${ee}--padding)}:host,slot{border-color:var(${ee}--border-background);border-style:solid}[name=footer]{border-top-width:var(${ee}--border-width)}[name=header]{border-bottom-width:var(${ee}--border-width)}`)],oe);var ie=oe;ie.define();var re=at("0 0 56 56")`<path fill="currentColor" d="M35.805 47.723c.398.398.914.633 1.523.633c1.219 0 2.133-.915 2.133-2.133c0-.586-.234-1.125-.61-1.524L21.79 28.012l17.063-16.688c.375-.398.609-.96.609-1.523c0-1.219-.914-2.157-2.133-2.157c-.61 0-1.125.235-1.523.633L17.242 26.441c-.445.375-.703.961-.703 1.57c0 .587.258 1.126.703 1.571Z"/>`,se=at("0 0 56 56")`<path fill="currentColor" d="M18.695 48.367c.586 0 1.102-.234 1.524-.633L38.78 29.57c.446-.445.68-.984.68-1.57c0-.61-.234-1.172-.68-1.57L20.22 8.289a2.07 2.07 0 0 0-1.524-.656a2.12 2.12 0 0 0-2.156 2.156c0 .563.258 1.125.633 1.524L34.21 28L17.17 44.688c-.374.398-.632.937-.632 1.523c0 1.219.938 2.156 2.156 2.156"/>`;let ne=class Carousel extends GlobalStyle{constructor(){super(...arguments),this.index=0,this.autoChange=0}render(){return e`<div part="root" ${K(this.observedRecord)}><i part="prev" @click="${this.prev}">${re()}</i><div part="move-root" style="transform:${`translateX(-${this.index+1}00%)`}">${et()}</div><i part="next" @click="${this.next}">${se()} </i>${nt(`:host,:host([contents]) [part=root]{width:${this.width};}`)}</div>`}async firstUpdated(){await this.updateComplete,this.children.length&&(this.width||=`${this.firstElementChild.offsetWidth}px`,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.show(this.index)),this.checkInterval()}disconnectedCallback(){clearInterval(this.intervalID)}show(t){this.index=t,this.dispatchEvent(new CustomEvent("change",{detail:t,composed:!0}))}next(){this.index===this.childElementCount-3?(this._doTranslateX("0",!0),this.show(0)):this.show(this.index+1),this.checkInterval()}prev(){0===this.index?(this._doTranslateX(`-${this.childElementCount-1}00%`,!0),this.show(this.children.length-3)):this.show(this.index-1),this.checkInterval()}_doTranslateX(t,e){this._moveRoot.style.transform=`translateX(${t})`,e&&(this._moveRoot.style.transition="none"),this._moveRoot.getBoundingClientRect()}checkInterval(){this.autoChange&&(this.intervalID&&clearInterval(this.intervalID),this.intervalID=setInterval((()=>{this.next()}),this.autoChange))}};h([L({type:Number})],ne.prototype,"index",void 0),h([L({type:Number})],ne.prototype,"autoChange",void 0),h([L()],ne.prototype,"width",void 0),h([W("move-root")],ne.prototype,"_moveRoot",void 0),ne=h([g("carousel"),f(l`:host{display:block;transition:.3s}[part=root]{direction:ltr;overflow:hidden}[part=move-root],[part=root]{height:100%;width:100%;display:flex;position:relative;transition:inherit}[part=next],[part=prev]{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}`)],ne);var ae=ne;ae.define();var le=at("0 0 56 56")`<path fill="currentColor" d="M28 39.46a2.1 2.1 0 0 0 1.57-.679l18.164-18.586a2.1 2.1 0 0 0 .633-1.5a2.12 2.12 0 0 0-2.156-2.156a2.27 2.27 0 0 0-1.523.61L28 34.21L11.313 17.148a2.23 2.23 0 0 0-1.524-.609a2.12 2.12 0 0 0-2.156 2.156c0 .586.234 1.102.633 1.524L26.43 38.78c.445.446.96.68 1.57.68"/>`;class SuperOpenable extends GlobalStyle{constructor(){super(...arguments),this.open=!1}toggle(t=!this.open){this.open=t}close(){this.open=!1}show(){this.open=!0}updated(t){void 0!==t.get("open")&&this.dispatchEvent(new CustomEvent("change",{detail:this.open,composed:!0}))}_handelClick(t){this.toggle()}}h([L({type:Boolean,reflect:!0})],SuperOpenable.prototype,"open",void 0);const he="details",ce=wt(he);let de=class Details extends SuperOpenable{constructor(){super(...arguments),this.fill=!1,this.summary=""}render(){return e`<dl part="root" ${K(this.observedRecord)}><dt part="title" @click="${this._handelClick}"><span part="summary">${this.summary||et("summary")}</span> <span><i part="icon">${le()}</i></span></dt><dd part="details" @click="${this.fill?()=>this.toggle():null}"><div style="min-height:0">${et()}</div></dd></dl>`}};h([L({type:Boolean})],de.prototype,"fill",void 0),h([L()],de.prototype,"summary",void 0),de=h([g(he),f(l`:host{${ce}--icon-deg-open:0deg;${ce}--icon-deg-close:90deg;${ce}--icon-space:0.3em;${ce}--summary-direction:row;${ce}--transition:.3s;height:-moz-fit-content;height:fit-content;display:block;transition:var(${ce}--transition)}[part=root]{height:100%;position:relative;overflow:hidden}[part=title]{direction:ltr;height:100%;display:flex;flex-wrap:nowrap;justify-content:space-between;background:inherit;align-items:center;flex-direction:var(${ce}--summary-direction)}[part=details]{display:grid;overflow:hidden;grid-template-rows:0fr;transition:var(${ce}--transition);transition-property:grid-template-rows}:host([open]) [part=details]{grid-template-rows:1fr}:host([float]) [part=details]{top:100%;position:absolute}[part=icon]{display:flex;-webkit-backface-visibility:hidden;backface-visibility:hidden;padding:var(${ce}--icon-space);transition:var(${ce}--transition);transform:rotate(var(${ce}--icon-deg-close))}:host([open]) [part=icon]{transform:rotate(var(${ce}--icon-deg-open))}`)],de);var pe=de;pe.define();const ue="dialog",ve=wt(ue);let me=class Dialog extends SuperOpenable{constructor(){super(...arguments),this.direction="center",this.modal=!1,this.key="Escape",this._modalInvoke=!1}render(){return e`<div part="root" ${K(this.observedRecord)}><div part="modal"></div><div part="container">${et()}</div></div>`}showModal(){this.modal||(this.modal=!0,this._modalInvoke=!0),this.show()}updated(t){t.has("open")&&(this.open?(this._submitEvent=this.events.add(this,"submit",this._handelSubmit),this.key&&(this._keydownEvent=this.events.add(document,"keydown",this._handleKeydown.bind(this)))):(this.events.remove(this,"submit",this._submitEvent),this.events.remove(document,"keydown",this._keydownEvent)))}_handleKeydown(t){t.preventDefault();const e=this.key.split(/[\s,]/);(e.includes(t.key)||e.includes(t.code))&&this.close()}_handelSubmit(t){"dialog"===t.target.method&&this.close()}close(){this._modalInvoke&&(this.modal=!1,this._modalInvoke=!1),this.open=!1}};h([L()],me.prototype,"direction",void 0),h([L({type:Boolean,reflect:!0})],me.prototype,"modal",void 0),h([L()],me.prototype,"key",void 0),me=h([g(ue),f(l`:host{${ve}--background:none;${ve}--background-modal:var(${_t.background});${ve}--opacity-modal:0.2;background:var(${ve}--background);pointer-events:none;visibility:hidden;position:fixed;z-index:1;inset:0}:host([open]){visibility:visible}:host([open][modal]) [part=modal]{pointer-events:all;visibility:visible;opacity:var(${ve}--opacity-modal)}[part=modal]{visibility:hidden;opacity:0;width:100%;height:100%;position:absolute;background:var(${ve}--background-modal)}[part=root]{width:100%;height:100%;display:flex;position:relative;align-items:center;justify-content:center}[part=container]{pointer-events:all;position:absolute}[direction^=top] [part=container]{top:0}[direction^=bottom] [part=container]{bottom:0}[direction$=right] [part=container]{right:0}[direction$=left] [part=container]{left:0}`)],me);var fe=me;fe.define();let ge=class Divider extends GlobalStyle{constructor(){super(...arguments),this.vertical=!1}render(){return e`<div part="root" ${K(this.observedRecord)}></div>`}};h([L({type:Boolean,reflect:!0})],ge.prototype,"vertical",void 0),ge=h([g("divider"),f(l`:host{width:100%;height:.05em;margin:auto;display:block;background:currentColor}:host([vertical]){width:.05em;height:max(1em,100%)}:host([contents]) [part=root]{width:100%;height:.05em;margin:auto;display:block;background:currentColor}[part=root]{display:contents}`)],ge);var ye=ge;ye.define();let be=class Dragbox extends GlobalStyle{constructor(){super(...arguments),this.drag=!1,this.x="auto",this.y="auto"}get offsetsWidth(){return this.offsetParent?.clientWidth??document.body.offsetWidth}get offsetsHeight(){return this.offsetParent?.clientHeight??document.body.offsetHeight}render(){return e`<div part="root" ${K(this.observedRecord)} @mousedown="${this._handleDragStart}" @mouseup="${this._handleDragEnd}">${et()}</div>`}firstUpdated(){this.reset()}_handleDragStart(t){this.cx=t.clientX,this.cy=t.clientY,this.t=this.offsetTop,this.l=this.offsetLeft,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))}_handleDragEnd(){this.drag=!1,this.events.remove(document,"mousemove",this._handleMouseMove),this.events.remove(document,"mouseleave",this._handleMouseLeave)}_handleDrag(t){if(!this.drag)return;const e=t.clientX-(this.cx-this.l),o=t.clientY-(this.cy-this.t),{style:r,offsetsWidth:s,offsetsHeight:a,offsetWidth:l,offsetHeight:h}=this;r.left=e<0?"0":e<s-l?`${e}px`:s-l+'"px"',r.top=o<0?"0":o<a-h?`${o}px`:a-h+"px"}reset(){const{x:t,y:e,style:o,offsetsWidth:r,offsetsHeight:s,offsetWidth:a,offsetHeight:l,offsetLeft:h,offsetTop:c}=this;o.left=t||"0",o.top=e||"0",h>r-a&&(o.left=r-a+"px"),c>s-l&&(o.top=s-l+"px")}};h([L()],be.prototype,"x",void 0),h([L()],be.prototype,"y",void 0),be=h([g("dragbox"),f(l`:host{position:absolute;display:block}:host(:active){-webkit-user-select:none;user-select:none}`)],be);var $e=be;$e.define();let we=class Flex extends GlobalStyle{constructor(){super(...arguments),this.vertical=!1}render(){return e`<div part="root" ${K(this.observedRecord)}>${[et(),nt(it({":host":{gap:this.gap,"flex-flow":this.flexFlow,"flex-direction":this.vertical&&"column","align-items":this.items,"justify-content":this.content}}))]}</div>`}};h([L({attribute:"flex-flow"})],we.prototype,"flexFlow",void 0),h([L()],we.prototype,"gap",void 0),h([L()],we.prototype,"content",void 0),h([L()],we.prototype,"items",void 0),h([L({type:Boolean})],we.prototype,"vertical",void 0),we=h([g("flex"),f(l`:host,:host([contents]) [part=root]{display:flex}[part=root]{display:contents}`)],we);var _e,ke=we;ke.define();let xe=_e=class Form extends GlobalStyle{constructor(){super(...arguments),this.name="",this.nameValue=this.namevalue}get value(){return _e.buildValue(this._slot.assignedElements())}render(){return et()}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,r]=o.namevalue();t&&(e[t]=r)}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}};h([L()],xe.prototype,"name",void 0),xe=_e=h([g("form"),f(l`:host{display:block}`)],xe);var Ce=xe;Ce.define();let Se=class Grid extends GlobalStyle{render(){return e`<div part="root" ${K(this.observedRecord)}>${[et(),nt(it({":host":{gap:this.gap,"grid-template-columns":d(this.columns)?`repeat(${this.columns},1fr)`:this.columns,"grid-template-rows":d(this.rows)?`repeat(${this.rows},1fr)`:this.rows,"place-content":this.content,"place-items":this.items}}))]}</div>`}};h([L()],Se.prototype,"gap",void 0),h([L()],Se.prototype,"columns",void 0),h([L()],Se.prototype,"rows",void 0),h([L()],Se.prototype,"content",void 0),h([L()],Se.prototype,"items",void 0),Se=h([g("grid"),f(l`:host,:host([contents]) [part=root]{display:grid}[part=root]{display:contents}`)],Se);var Ee=Se;Ee.define();let Re=class Heading extends GlobalStyle{constructor(){super(...arguments),this.as="h1",this.anchor="#",this.side="left"}render(){return e`<a part="root" href="${this.id?"#"+this.id:o}" ${K(this.observedRecord)}>${this.wrapHeading(et(),this.id?e`<i part="anchor">${this.anchor}</i>`:"")}</a>`}wrapHeading(...t){switch(this.as){case"h2":return e`<h2>${t}</h2>`;case"h3":return e`<h3>${t}</h3>`;case"h4":return e`<h4>${t}</h4>`;case"h5":return e`<h5>${t}</h5>`;case"h6":return e`<h6>${t}</h6>`;default:return e`<h1>${t}</h1>`}}};h([L()],Re.prototype,"as",void 0),h([L()],Re.prototype,"anchor",void 0),h([L()],Re.prototype,"side",void 0),Re=h([g("heading"),f(l`:host{display:block;text-align:start}[part=anchor]{position:absolute;text-align:center;min-width:1.25em;right:100%}[side=left] [part=anchor]{right:100%}[side=right] [part=anchor]{left:100%}a{color:inherit}h1,h2,h3,h4,h5,h6{direction:ltr;font-size:revert;position:relative;width:-moz-fit-content;width:fit-content}`)],Re);var Te=Re;Te.define();var Ae=at("0 0 56 56")`<path fill="currentColor" d="M43.95 47.323c.304.305.732.468 1.119.468c.814 0 1.567-.733 1.567-1.568c0-.407-.163-.814-.468-1.12L12.112 11.069a1.57 1.57 0 0 0-1.12-.448c-.814 0-1.567.733-1.567 1.547c0 .428.143.835.448 1.12Zm1.913-5.761C52.255 37.43 56 32.056 56 29.674c0-4.132-11.297-17.303-27.99-17.303c-3.46 0-6.697.59-9.669 1.567l5.313 5.293a11 11 0 0 1 4.356-.896c6.31 0 11.38 4.988 11.38 11.339c0 1.547-.326 3.033-.958 4.336ZM28.01 46.977c3.766 0 7.267-.672 10.402-1.771l-5.394-5.395a10.8 10.8 0 0 1-5.008 1.201c-6.35 0-11.379-5.15-11.4-11.338c0-1.832.428-3.562 1.202-5.09l-7.084-7.124C4.01 21.592 0 27.231 0 29.674c0 4.112 11.501 17.303 28.01 17.303m6.473-17.73a6.446 6.446 0 0 0-6.473-6.454c-.264 0-.53.02-.773.041l7.206 7.206c.02-.244.04-.529.04-.794m-12.966-.041c0 3.582 2.951 6.473 6.514 6.473c.285 0 .55-.02.834-.04l-7.308-7.309c-.02.285-.04.59-.04.876"/>`;const Pe=l`.input-field{display:flex;position:relative;align-items:center;border-radius:inherit;height:inherit}.input-field [part=input]{background:0 0;height:100%;width:100%;color:inherit;padding:0 var(${_t.input}-space)}.input-field.outline,.input-field:focus-within{box-shadow:var(${_t.input}-box-shadow)}.input-field [part=icon]{display:flex;align-items:center;justify-content:center}.input-field [part=prefix],.input-field [part=suffix]{height:100%;display:flex}.input-field [part=suffix] [part=icon]{padding-inline-end:var(${_t.input}-space)}.input-field [part=prefix] [part=icon]{padding-inline-start:var(${_t.input}-space)}`,Me=l`:host{${_t.input}-width:10em;${_t.input}-height:1.6em;${_t.input}-space:.2em;${_t.input}-background:var(${_t.background});${_t.input}-control:var(${_t.foreground});${_t.input}-control-edge:var(${_t.active});${_t.input}-radius:.2em;${_t.input}-box-shadow:0 0 0 .1em var(${_t.active});border-radius:var(${_t.input}-radius)}:host([disabled]){cursor:not-allowed;filter:brightness(.85)}input:disabled{cursor:inherit}input::-ms-clear,input::-ms-reveal{display:none}`;let ze=class SuperInput extends GlobalStyle{constructor(){super(...arguments),this.autofocus=!1,this.disabled=!1,this.compositing=!1,this.makeId=Math.random().toString(36).slice(1),this.nameValue=this.namevalue}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.dispatchEvent(new CustomEvent("input",{detail:this.value,bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("input",{detail:this.value,composed:!0,bubbles:!0})),this.dispatchEvent(new CustomEvent("change",{detail:this.value,composed:!0})))}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)})))}_changeInputType(t){this._input&&(this._input.type=t)}focus(t){this._input?.focus(t)}firstUpdated(){this._compositionInit()}_renderPrefix(){return e`<label for="${this.makeId}" part="prefix">${et("prefix")}</label>`}_renderSuffix(){const t="password";return e`<label for="${this.makeId}" part="suffix">${"password"===this.type?e`<i part="icon" @mousedown="${()=>this._changeInputType("text")}" @mouseup="${()=>this._changeInputType(t)}" @mouseleave="${()=>this._changeInputType(t)}">${Ae()}</i>`:et("suffix")}</label>`}};h([L()],ze.prototype,"autocomplete",void 0),h([L({type:Boolean,reflect:!0})],ze.prototype,"disabled",void 0),h([L({reflect:!0})],ze.prototype,"type",void 0),h([L({reflect:!0})],ze.prototype,"placeholder",void 0),h([L({reflect:!0})],ze.prototype,"name",void 0),h([L()],ze.prototype,"value",void 0),h([L()],ze.prototype,"default",void 0),h([W("input")],ze.prototype,"_input",void 0),ze=h([f(Pe,Me)],ze);var Oe=ze;let Ie=class Input extends Oe{constructor(){super(...arguments),this.type="text",this.variant="default"}render(){return e`<div part="root" ${K(this.observedRecord)} class="${tt("input-field",this.variant)}">${[this._renderPrefix(),e`<input part="input" type="${this.type}" id="${this.makeId}" .value="${this.value}" placeholder="${this.placeholder||o}" ?autofocus="${this.autofocus}" autocapitalize="${this.autocapitalize||o}" autocomplete="${this.autocomplete||o}" ?disabled="${this.disabled}" @input="${this._handleInput}">`,this._renderSuffix()]}</div>`}reset(){this._input.value=this.default,this.value=this.default}};h([L()],Ie.prototype,"variant",void 0),h([W("input")],Ie.prototype,"_input",void 0),Ie=h([g("input"),f(l`:host{width:var(${_t.input}-width);height:var(${_t.input}-height);color:var(${_t.foreground});background:var(${_t.input}-background);border-radius:var(${_t.input}-radius);display:block}`)],Ie);var De=Ie;De.define();let je=class Layout extends GlobalStyle{constructor(){super(...arguments),this.noHeader=!1,this.noFooter=!1,this.sticky=!1}render(){return e`<div part="root" ${K(this.observedRecord)}>${this.noHeader?"":e`<header part="header">${et("header")}</header>`}<main part="main">${et()}</main>${this.noFooter?"":e`<footer part="footer">${et("footer")}</footer>`}</div>`}};h([L({type:Boolean})],je.prototype,"noHeader",void 0),h([L({type:Boolean})],je.prototype,"noFooter",void 0),h([L({type:Boolean})],je.prototype,"sticky",void 0),je=h([g("layout"),f(l`:host,:host([contents]) [part=root]{min-height:100%;display:flex;flex-direction:column}[part=root]{display:contents}[sticky] header{position:sticky;top:0;z-index:1}[part=main]{position:relative;flex:1;width:100%}footer,header,main{width:100%}`)],je);var Be=je;Be.define();let Ne=class SuperAnchor extends GlobalStyle{constructor(){super(...arguments),this.href=void 0,this.target="_self"}render(){return e`<a part="root" ${K(this.observedRecord)} href="${this.href||o}" target="${this.target}" @click="${this._handleClick}">${et()}</a>`}_handleClick(t){}};h([L()],Ne.prototype,"href",void 0),h([L()],Ne.prototype,"target",void 0),Ne=h([f(l`:host{display:inline-block;color:currentColor;text-decoration:none;cursor:default}:host([href]){cursor:pointer}[part=root]{width:100%;color:inherit;display:inline-block;text-decoration:inherit}`)],Ne);var Ue,Ve=Ne;let Le=Ue=class Router extends GlobalStyle{constructor(){super(...arguments),this.__fieldRouteTree=new RouteTree,this.__slottedRouteTree=new RouteTree,this.__cacheRecord=new Map,this.component=null,this.params={},this.default=et(),this.type="united",this.cache=!1,this.routeChangeCallback=null,this.handlePopstate=this.events.add(window,"popstate",(()=>{this.pathname=location.pathname}))}set routes(t){this.__routes=t,this.collectFieldRoutes(t)}get routes(){return this.__routes}clear(){this.__cacheRecord.clear()}render(){if(this.params={},this.cache){const t=this.__cacheRecord.get(this.pathname);if(t)return Object.assign(this,t),this.component}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??null}connectedCallback(){super.connectedCallback(),Ue.routerInstances.add(this),this.pathname??=location.pathname,"field"!==this.type&&(new MutationObserver(this.collectSlottedRoutes).observe(this,{attributeFilter:["slot"],attributes:!0,subtree:!0}),this.collectSlottedRoutes())}disconnectedCallback(){super.disconnectedCallback(),Ue.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(),e=!this.__cacheRecord.has(this.pathname);e&&this.__cacheRecord.set(this.pathname,t),this.routeChangeCallback?.(t,e),this.dispatchEvent(new CustomEvent("change",{detail:t}))}}fieldComponent(t){if(t||=this.__fieldRouteTree.search(this.pathname)?.pattern,this.path=t,!t)return null;this.params=this.parseParams(this.path,this.pathname);const e=this.routes.find((e=>e.path===t));return e?"render"in e?e.render?.(this.useRouter())||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?(this.params=this.parseParams(t,this.pathname),et(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)}))}parseParams(t,e=this.pathname){return RouteTree.parseParams(e,t)}static updateAll(){this.routerInstances.forEach((t=>{t.handlePopstate()}))}};Le.routerInstances=new Set,h([G()],Le.prototype,"component",void 0),h([G()],Le.prototype,"params",void 0),h([G()],Le.prototype,"path",void 0),h([L()],Le.prototype,"pathname",void 0),h([G()],Le.prototype,"default",void 0),h([L()],Le.prototype,"type",void 0),h([L({type:Boolean})],Le.prototype,"cache",void 0),h([G()],Le.prototype,"routes",null),Le=Ue=h([g("router"),f(l`:host{display:contents}`)],Le);var Ge=Le;let He=class Link extends Ve{constructor(){super(...arguments),this.type="normal",this.suppress=!1}_handleClick(t){"push"!==this.type&&"replace"!==this.type||(t.preventDefault(),history[`${this.type}State`](null,"",this.href),this.suppress||Ge.updateAll())}};h([L()],He.prototype,"type",void 0),h([L({type:Boolean})],He.prototype,"suppress",void 0),He=h([g("link")],He);var Fe=He;Fe.define();let qe=class Progress extends GlobalStyle{constructor(){super(...arguments),this.max=1,this.min=0}render(){let t,o=20;return c(this.value)||(o=this.parsePercent(this.value),t="static"),e`<div part="root" ${K(this.observedRecord)} class="${t}"><i part="value" style="width:${o}"></i></div>`}parsePercent(t="0"){return String(t).includes("%")?parseFloat(String(t)):parseFloat(String(t))/(this.max-this.min)*100}};h([L({type:Number})],qe.prototype,"max",void 0),h([L({type:Number})],qe.prototype,"min",void 0),h([L({type:Number})],qe.prototype,"value",void 0),qe=h([g("progress"),f(l`:host{width:100%;height:.5em;border-radius:.25em;background:var(${_t.passive});color:var(${_t.active})}:host,[part=root]{display:block}[part=root]{height:inherit;z-index:1;position:relative;border-radius:inherit}[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{from{left:0}to{left:80%}}.static [part=value]{animation:none}`)],qe);var We=qe;We.define();const Ye="range",Xe=wt(Ye);let Ze=class Range extends Oe{constructor(){super(...arguments),this.min=0,this.max=100,this.vertical=!1,this._focusStack=[]}get reverse(){return!!this.range&&this.value[0]>this.value[1]}get range(){return Array.isArray(this.value)}get rangeValue(){return this.range?this.value:[this.value]}padValue(t,e=0){const{rangeValue:o}=this,r=t-o.length;return r>0?new Array(r).fill(e).concat(o):o}render(){const t=this.padValue(2),o=Math.min(...t),r=Math.max(...t),s=this.max-this.min;return e`<div part="root" ${K(this.observedRecord)} @mousedown="${this.disabled?null:this._handleMousedownRoot}" style="${rt({"--from":(o-this.min)/s*100+"%","--to":(r-this.min)/s*100+"%",...this.range?Object.fromEntries(t.map(((t,e)=>[`--handle-${e}`,(t-this.min)/s*100+"%"]))):{}})}"><div part="track"></div>${this.range?this.value.map(((t,e)=>this.renderHandle(e))):this.renderHandle(0)}</div>`}renderHandle(t){const{range:o}=this,r=!o||t===this.value.length-1;return e`<i tabindex="0" part="handle" class="${tt({"last-focus":this.lastFocus===t})}" @mousedown="${this.disabled?null:this.createMouseDown(t)}" @focus="${this.disabled?null:()=>this.focusHandle(t)}" @blur="${this.disabled?null:this.blurHandle}" style="z-index:${this._focusStack.indexOf(t)+1};--handle:var(--${!o&&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))),this.dispatchEvent(new CustomEvent("focus",{detail:t}))}blurHandle(){this.lastFocus=void 0,this._keydownEvent=this.events.remove(document,"keydown",this._keydownEvent),this.dispatchEvent(new CustomEvent("blur"))}createKeydownEvent(t){return this.range||(t=0),e=>{"ArrowLeft"===e.key||"ArrowDown"===e.key?(e.preventDefault(),this.createSetValue(t)((t=>t-this.step))):"ArrowRight"!==e.key&&"ArrowUp"!==e.key||(e.preventDefault(),this.createSetValue(t)((t=>t+this.step)))}}createMouseDown(t){return e=>{this.focusHandle(t),this.createMousedownListener(this.createSetValue(t))(e)}}createSetValue(t){return e=>{const o="number"==typeof e?this.normalizeValue(e):e(this.rangeValue[t]);let r=o;this.range&&(r=[...this.rangeValue],r[t]=o),this.value=r,this.dispatchEvent(new CustomEvent("range",{detail:this.value}))}}_computeValue(t){const e=this._root.getBoundingClientRect(),o=this.vertical?(t.clientY-e.top)/e.height:(t.clientX-e.left)/e.width,r=Math.round(o*(this.max-this.min)/this.step)*this.step;return this.normalizeValue(r)}normalizeValue(t){return t>this.max?t-=this.step:t<this.min&&(t+=this.step),t}_handleMousedownRoot(t){const e=this._computeValue(t),o=this.range?this.rangeValue.reduce(((t,o,r)=>Math.abs(e-o)<Math.abs(e-this.rangeValue[t])?r:t),0):0,r=this.createSetValue(o);r(e),this.createMousedownListener(r)(t),this.focusHandle(o)}createMousedownListener(t){return e=>{e.preventDefault(),e.stopPropagation();const o=this.createMousemoveListener(t);this.events.add(document,"mousemove",o);const r=()=>{this.events.remove(document,"mousemove",o),this.events.remove(document,"mouseup",r)};this.events.add(document,"mouseup",r)}}createMousemoveListener(t){return e=>{const o=this._computeValue(e);o>this.max||o<this.min||t?.call(this,o)}}_connectedInit(){const t=this.max-this.min;this.step||=t/100,c(this.value)&&(c(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}};h([L({type:Number})],Ze.prototype,"min",void 0),h([L({type:Number})],Ze.prototype,"max",void 0),h([L({type:Number})],Ze.prototype,"step",void 0),h([L({type:Boolean,reflect:!0})],Ze.prototype,"vertical",void 0),h([L({type:Array})],Ze.prototype,"value",void 0),h([L({type:Array})],Ze.prototype,"default",void 0),h([W("root")],Ze.prototype,"_root",void 0),h([function(t){return(e,o)=>H(e,o,{get(){return(this.renderRoot??(q??=document.createDocumentFragment())).querySelectorAll(t)}})}("[part=handle]")],Ze.prototype,"_handles",void 0),h([G()],Ze.prototype,"lastFocus",void 0),Ze=h([g(Ye),f(l`:host{${Xe}--handle-active:var(${_t.active});${Xe}--track-width:.5em;${Xe}--length:var(${_t.input}-width);background:var(${_t.input}-background);width:var(${Xe}--length);display:block}:host([contents]) [part=root]{width:inherit}:host([vertical]){height:var(${Xe}--length);width:-moz-fit-content;width:fit-content}:host(:not([disabled])) .last-focus{${Xe}--handle-scale:1.05;background:var(${Xe}--handle-active)}[part=root]{min-height:inherit;position:relative;border-radius:inherit;width:100%;--from:0%;--to:50%;height:var(${Xe}--track-width)}[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(${_t.active});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:.1em solid;border-radius:50%;transform-origin:0 25%;transform:scale(var(${Xe}--handle-scale,1)) translate(-50%,-25%);background:var(${_t.active});border-color:var(${_t.input}-control)}`,l`[vertical]{height:inherit;width:var(${Xe}--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}`,l`[part=handle]{left:var(--handle);top:0}[vertical] [part=handle]{top:var(--handle);left:0}`)],Ze);var Ke=Ze;Ke.define();const Qe="rotate",Je=wt(Qe);let to=class Rotate extends GlobalStyle{render(){return e`<div part="root"><div part="slot" @mousemove="${this._handleRotate}">${et()}</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:r,height:s}=this._root.getBoundingClientRect(),{clientX:a,clientY:l}=t;return{rotateX:-(l-o-s/2)/s/2,rotateY:(a-e-r/2)/r/2}}};h([W("root")],to.prototype,"_root",void 0),to=h([g(Qe),f(l`:host{display:block;width:-moz-fit-content;width:fit-content;transition:all .5s ease-in-out;${Je}--padding:.75em;${Je}--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(${Je}--offset);margin:calc(-1 * var(${Je}--offset))}[part=slot]{z-index:2}`)],to);var eo=to;function oo(t,e){return t&&e&&t.toLowerCase().includes(e.toLowerCase())}function io(t,e){if(t){const o="checked";e?t.setAttribute(o,""):t.removeAttribute(o)}}eo.define(),Ge.define();let ro=class Select extends De{constructor(){super(...arguments),this.multiple=!1,this.visible=!1,this.autoDirection="bottom",this._store=[]}render(){return e`<div part="root" ${K({...this.observedRecord,direction:this.direction||this.autoDirection})} class="input-field">${[this._renderPrefix(),e`<input part="input" dir="${this.dir||o}" id="${this.makeId}" .value="${this.text}" type="${this.type}" placeholder="${this.placeholder||o}" ?autofocus="${this.autofocus}" autocapitalize="${this.autocapitalize||o}" autocomplete="${this.autocomplete||o}" ?disabled="${this.disabled}" @focus="${this._handleFocus}" @input="${this._handleInput}">`,e`<label for="${this.makeId}" part="suffix"><i part="icon">${le()}</i></label>`,e`<label for="${this.makeId}" part="content">${et()}</label>`]}</div>`}_handleFocus(){if(!this.direction){const{top:t,bottom:e}=this.getBoundingClientRect();window.innerHeight-e<this._content.clientHeight&&t>this._content.clientHeight?this.autoDirection="top":this.autoDirection="bottom"}this.visible=!0}firstUpdated(){this.events.add(this._content,"click",(t=>{t.preventDefault(),t.stopPropagation();const{target:e}=t,o=this.optionValue(e);if(o){const t=this.select(o,e.textContent);this.multiple||io(this.lastChecked,0),io(e,t),this.lastChecked=e}this._input.focus()})),this.events.add(document,"click",(t=>{t.stopPropagation();const e=t.composedPath()[0];e&&!this.shadowRoot.contains(e)&&this.blur()}))}_connectedInit(){if(!this.value){const t=[...this.querySelectorAll("[checked]")];(this.multiple?t:t.length?[this.lastChecked=t[0]]:[]).forEach((t=>{io(t,this.select(this.optionValue(t),t.textContent))})),this.default=this.value,this.defaultText=this.text,this.defaultChecked=t}this.text||(this.text="")}reset(){this.value=this.default,this.text=this.defaultText,this.querySelectorAll("[checked]").forEach((t=>io(t,0))),this.defaultChecked.forEach((t=>io(t,1)))}select(t,e){e||=t;let o=0;if(this.multiple){const r=this._store.findIndex((e=>e.value===t));r>-1?this._store.splice(r,1):(this._store.push({value:t,text:e}),o=1),this.value=this._store.map((t=>t.value)),this.text=this._store.map((t=>t.text)).join(", ")}else this.value===t?(this.value="",this.text=""):(this.value=t,this.text=e,o=1);return this.dispatchEvent(new CustomEvent("select",{detail:this.value,composed:!0})),this.filter(),o}filter(t){t=t?.trim(),[...this.children].forEach((e=>{this.filterCallback(e,!t||oo(this.optionValue(e),t)||oo(e.textContent,t),t)}))}filterCallback(t,e,o){t.style.display=e?"":"none"}_handleInput(t){if(t.stopPropagation(),this.compositing)return;const e=this._input.value;this.filter(this.multiple?function(t,e){const o=e.slice(0,t).lastIndexOf(",")+1||0,r=e.indexOf(",",t)||e.length;return e.slice(o,r)}(this._input.selectionStart,e):e),this.dispatchEvent(new CustomEvent("input",{detail:this.value,composed:!0,bubbles:!0})),this.dispatchEvent(new CustomEvent("change",{detail:this.value,composed:!0}))}focus(t){this._input.focus(t),this.visible=!0}blur(){this._input.blur(),this.visible=!1,super.blur()}optionValue(t){return t.value||t.getAttribute("value")||""}};h([L()],ro.prototype,"text",void 0),h([W("content")],ro.prototype,"_content",void 0),h([L()],ro.prototype,"direction",void 0),h([L({type:Boolean})],ro.prototype,"multiple",void 0),h([L({type:Boolean})],ro.prototype,"visible",void 0),h([G()],ro.prototype,"autoDirection",void 0),ro=h([g("select"),f(l`[part=input]{text-overflow:ellipsis}[part=content]{position:absolute;width:100%;visibility:hidden}[direction=bottom] [part=content]{top:100%}[direction=top] [part=content]{bottom:100%}[visible] [part=content]{visibility:visible}`)],ro);var so=ro;so.define();var no=at("0 0 56 56")`<path fill="currentColor" d="M7.715 49.574h40.57c4.899 0 7.36-2.437 7.36-7.265V13.69c0-4.828-2.461-7.265-7.36-7.265H7.715C2.84 6.426.355 8.84.355 13.69v28.62c0 4.851 2.485 7.265 7.36 7.265m31.57-21.633c-1.055-.937-2.25-1.43-3.515-1.43c-1.313 0-2.462.446-3.54 1.407l-10.593 9.469l-4.336-3.938c-.985-.867-2.04-1.336-3.164-1.336c-1.032 0-2.04.446-3 1.313L4.129 39.73V13.88c0-2.438 1.312-3.68 3.656-3.68h40.43c2.32 0 3.656 1.242 3.656 3.68v25.875Zm-21.469.258c3.024 0 5.508-2.484 5.508-5.531c0-3.023-2.484-5.531-5.508-5.531c-3.046 0-5.53 2.508-5.53 5.531a5.54 5.54 0 0 0 5.53 5.531"/>`;const ao="skeleton",lo=wt(ao);let ho=class Skeleton extends GlobalStyle{constructor(){super(...arguments),this.animation="position",this.loading=!0}render(){return this.loading?e`<div part="root" ${K(this.observedRecord)}>${"image"===this.type?no():""} ${et("loading")}</div>`:et()}};h([L()],ho.prototype,"type",void 0),h([L()],ho.prototype,"animation",void 0),h([G()],ho.prototype,"loading",void 0),ho=h([g(ao),f(l`:host{${lo}--from:var(${_t._colors.darkgray[9]});${lo}--to:var(${_t._colors.darkgray[7]});${lo}--deg:95deg;${lo}--duration:1.5s;${lo}--icon-size:5em;${lo}--icon-margin:.25em;color:var(${_t._colors.darkgray[5]});background:var(${lo}--from);min-height:1.5em;width:100%;flex-shrink:0;display:block;overflow:hidden}[part=root]{height:100%;min-height:inherit;text-align:center;animation:var(${lo}--duration) ease-in-out 0s infinite none running}svg{--size:var(${lo}--icon-size);font-size:var(--size);margin:calc(var(--size) * .05)}[animation=position]{background-image:linear-gradient(var(${lo}--deg),var(${lo}--from) 36%,var(${lo}--to) 50%,var(${lo}--from) 64%);background-color:transparent;background-size:200% 100%;animation-name:po}@keyframes po{from{background-position:150% center}to{background-position:-50% center}}[animation=opacity]{animation-name:op;animation-direction:alternate}@keyframes op{50%{opacity:.25}to{opacity:1}}`)],ho);var co=ho;co.define();const po="split",uo=wt(po);let vo=class Split extends Oe{constructor(){super(...arguments),this.len=6,this.index=-1,this.current=-1,this.currentValue=[]}render(){return e`<div part="root" ${K(this.observedRecord)}>${((t,e)=>{const o=new Array(t);for(let r=0;r<t;r++)o[r]=e(r);return o})(this.len,(t=>e`<span part="input-box" @click="${this.disabled?null:()=>this.focusAt(t)}" class="${tt({focus:this.current===t})||o}">${this.currentValue[t]}</span>`))} <input part="input" id="${this.makeId}" @blur="${this.blur}" @input="${this._handleInput}" .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.dispatchEvent(new CustomEvent("input",{detail:this.value,composed:!0,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(),this.dispatchEvent(new CustomEvent("focus",{detail:t,bubbles:!0,composed:!0}))}blur(){this._input.blur(),this.current=-1,super.blur(),this.dispatchEvent(new CustomEvent("blur",{bubbles:!0,composed:!0}))}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)}};h([L({type:Number})],vo.prototype,"len",void 0),h([L({type:Number})],vo.prototype,"index",void 0),h([G()],vo.prototype,"current",void 0),h([G()],vo.prototype,"currentValue",void 0),vo=h([g(po),f(l`:host{color:var(${_t.foreground});display:block;border-radius:1px;width:-moz-fit-content;width:fit-content;${uo}--size:1.45em;${uo}--gap:.25em}:host([contents]) [part=root]{width:-moz-fit-content;width:fit-content}[part=root]{gap:var(${uo}--gap);width:100%;position:relative;vertical-align:top;display:flex;justify-content:space-between;border-radius:inherit}[part=input-box]{width:var(${uo}--size);height:var(${uo}--size);vertical-align:top;text-align:center;background-color:var(${_t.input}-background);border-radius:inherit}[part=input]{width:100%;height:100%;opacity:0;background:0 0;position:absolute;z-index:-1}.focus{box-shadow:var(${_t.input}-box-shadow)}`)],vo);var mo=vo;mo.define();const fo="switch",go=wt(fo);let yo=class Switch extends Oe{constructor(){super(...arguments),this.round=!1,this.checked=!1,this.disabled=!1,this.default="false",this.value="on"}render(){return e`<div part="root" ${K(this.observedRecord)} class="${this.round?"round":"rect"}"><input part="input" @change="${this._handleChange}" ?disabled="${this.disabled}" ?checked="${this.checked}" name="${this.name}" id="${this.makeId}" type="checkbox"> <span part="handle" class="${this.checked}"></span></div>`}reset(){this.checked="true"===this.default,this._input.checked=this.checked}connectedCallback(){super.connectedCallback(),this.checked&&(this.default="true"),"true"===this.default&&(this.checked=!0)}_handleChange(){this.checked=this._input.checked,this.dispatchEvent(new CustomEvent("change",{detail:this.checked,composed:!0}))}namevalue(){return[this.name,this.checked]}};h([L({type:Boolean,reflect:!0})],yo.prototype,"round",void 0),h([L({type:Boolean,reflect:!0})],yo.prototype,"checked",void 0),h([L({type:Boolean,reflect:!0})],yo.prototype,"disabled",void 0),h([L()],yo.prototype,"default",void 0),h([L()],yo.prototype,"value",void 0),h([F("input")],yo.prototype,"_input",void 0),yo=h([g(fo),f(l`:host,:host([contents]) [part=root]{width:var(${go}-width);height:var(${go}-height);display:inline-block}:host{${go}-width:3em;${go}-height:calc(var(${go}-width)/ 2);${go}-handle-size:1.25em;${go}-handle-space:.125em;${go}-transition:.2s ease-in-out;background:var(${_t.input}-background);vertical-align:bottom;border-radius:0}[part=handle],[part=root]{transition:var(${go}-transition)}[part=root]{border-radius:inherit;position:relative;height:inherit}[part=input]{opacity:0;width:100%;height:100%;-webkit-appearance:none;appearance:none}[part=handle]{height:100%;display:inline-flex;align-items:center;justify-content:center;position:absolute;left:0;width:50%;pointer-events:none;border-radius:inherit}:host([round]){border-radius:calc(var(${go}-height)/ 2);background:var(${_t.passive})}:host([checked]) [part=handle]{left:50%}.rect .true{background:var(${_t.active})}.rect .false{background:var(${_t.passive})}.round [part=handle]{--size:var(${go}-handle-size);border-radius:100%;background:var(--godown--input-control);width:var(--size);height:var(--size);margin:var(${go}-handle-space)}:host([checked]) .round{background:var(${_t.active})}`)],yo);var bo=yo;bo.define();const $o="text",wo=wt($o);let _o=class Text extends GlobalStyle{constructor(){super(...arguments),this.underline="none",this.clip=!1}render(){return e`<span part="root" ${K(this.observedRecord)} class="${tt(this.underline)}">${et()}</span>`}};h([L()],_o.prototype,"underline",void 0),h([L({type:Boolean})],_o.prototype,"clip",void 0),_o=h([g($o),f(l`:host{${wo}--color:currentColor;${wo}--color-hover:currentColor;${wo}--color-active:currentColor;display:inline-block;text-overflow:ellipsis;overflow-wrap:break-word}[part=root]{white-space:nowrap;width:100%;vertical-align:bottom;display:inline-block;text-overflow:inherit;overflow-wrap:inherit;overflow:hidden;color:var(${wo}--color)}[part=root]:hover{color:var(${wo}--color-hover,var(${wo}--color))}[part=root]:active{color:var(${wo}--color-active,var(${wo}--color))}.active:active,.always,.hover:hover{text-decoration:underline}.none{text-decoration:none}[clip]{background:var(${_t.clipBackground});display:inline-block;color:transparent;-webkit-text-fill-color:transparent;background-clip:text;-webkit-background-clip:text}`)],_o);var ko=_o;function xo(t,e=2){return t.toString().padStart(e,"0").split("")}ko.define();let Co=class Time extends GlobalStyle{constructor(){super(...arguments),this.escape="%",this.format="YYYY-MM-DD hh:mm:ss UTFZ",this.time=new Date}render(){return e`<span part="root" ${K(this.observedRecord)}>${function(t,e=new Date,o="%"){var r;if(!t)return t;if(isNaN(e.getTime()))return;const s=`${o}${o}`,a=[];t=t.replace(new RegExp(`${o}([ZYMDhmsS${o}])`,"g"),((t,e)=>(a.push(e),s)));const l=e.getTimezoneOffset()/-60,h={Z:[l>=0?"+"+l.toString():l.toString()],Y:e.getFullYear().toString().split(""),M:xo(e.getMonth()+1),D:xo(e.getDate()),h:xo(e.getHours()),m:xo(e.getMinutes()),s:xo(e.getSeconds()),S:xo(e.getMilliseconds(),3)},c=[];for(const e of t.split("").reverse()){const t=null===(r=h[e])||void 0===r?void 0:r.pop();t?c.push(t):c.push(e)}return c.reverse().join("").replace(new RegExp(s,"g"),(()=>a.shift()))}(this.format,this.time,this.escape)}</span>`}firstUpdated(){this.timeout&&(this.timeoutId=this.startTimeout())}updated(t){t.has("timeout")&&(clearInterval(this.timeoutId),this.timeout&&(this.timeoutId=this.startTimeout()))}disconnectedCallback(){clearInterval(this.timeoutId)}startTimeout(){return setInterval((()=>{this.dispatchEvent(new CustomEvent("time",{detail:this.time,composed:!0})),this.time=new Date(this.time.getTime()+(this.gap||this.timeout))}),Math.abs(this.timeout))}};h([L()],Co.prototype,"escape",void 0),h([L()],Co.prototype,"format",void 0),h([L({type:Object})],Co.prototype,"time",void 0),h([L({type:Number})],Co.prototype,"timeout",void 0),h([L({type:Number})],Co.prototype,"gap",void 0),Co=h([g("time"),f(l`:host{text-align:center}`)],Co);var So,Eo=Co;Eo.define();const Ro="tooltip",To=wt(Ro);let Ao=So=class Tooltip extends SuperOpenable{constructor(){super(...arguments),this.direction="top",this.align="center",this.propagation=!1,this.type="hover"}render(){const t=So.aligns[this.align]||"inherit",o="focus"===this.type;return e`<div part="root" ${K(this.observedRecord)} tabindex="${o?0:-1}" @focus="${o?()=>this.open=!0:null}" @blur="${o?()=>this.open=!1:null}" @mouseenter="${o?null:()=>this.open=!0}" @mouseleave="${o?null:()=>this.open=!1}" style="justify-content:${t};align-items:${t}">${et()}<div part="tip">${this.tip?e`<span class="passive">${this.tip}</span>`:et("tip")}</div></div>`}};Ao.aligns={start:"flex-start",end:"flex-end",center:"center","flex-start":"flex-start","flex-end":"flex-end"},h([L()],Ao.prototype,"tip",void 0),h([L()],Ao.prototype,"direction",void 0),h([L()],Ao.prototype,"align",void 0),h([L({type:Boolean})],Ao.prototype,"propagation",void 0),h([L()],Ao.prototype,"type",void 0),Ao=So=h([g(Ro),f(l`:host{${To}--tip-background:inherit;width:-moz-fit-content;width:fit-content}:host,[part=root]{display:inline-flex}[part=root]{position:relative;transition:inherit;border-radius:inherit}[part=tip]{width:-moz-fit-content;width:fit-content;height:-moz-fit-content;height:fit-content;position:absolute;visibility:hidden;transition:inherit;-webkit-user-select:none;user-select:none}:host([open]) [part=tip]{visibility:visible}.passive{background:var(${To}--tip-background)}[propagation] [part=tip]{pointer-events:none}`,l`[direction^=top] [part=tip]{bottom:100%}[direction^=bottom] [part=tip]{top:100%}[direction$=right] [part=tip]{left:100%}[direction$=left] [part=tip]{right:100%}`)],Ao);var Po=Ao;Po.define();const Mo="typewriter",zo=wt(Mo);let Oo=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 e`<div part="root" ${K(this.observedRecord)}>${et()} ${this.contentInternal} <i part="cursor" ?hidden="${this.ended}"></i></div>`}firstUpdated(){this.content||=this._slot?.assignedNodes()[0]?.textContent.trim()||"",!this.ended&&this.len&&this.write()}updated(t){t.has("index")&&this.dispatchEvent(new CustomEvent(this.index===this.len?"done":"write",{detail:this.contentInternal}))}write(t=this.index){this.contentInternal=this.content.slice(0,t+1);const e=this.delay||((t=0,e=1)=>{const o=Math.max(t,e),r=Math.min(t,e);return Math.random()*(o-r)+r})(this.max,this.min);this.timeoutID=setTimeout((()=>{const e=t+1;e<=this.len&&(this.index=e,this.write())}),e)}stop(){clearTimeout(this.timeoutID)}end(){this.ended=!0}};h([L()],Oo.prototype,"content",void 0),h([L({type:Boolean})],Oo.prototype,"ended",void 0),h([L({type:Number})],Oo.prototype,"max",void 0),h([L({type:Number})],Oo.prototype,"min",void 0),h([L({type:Number})],Oo.prototype,"delay",void 0),h([L({type:Number})],Oo.prototype,"index",void 0),h([G()],Oo.prototype,"contentInternal",void 0),h([F("i")],Oo.prototype,"_i",void 0),Oo=h([g(Mo),f(l`:host{${zo}--cursor-width:.05em}:host,:host([contents]) [part=root]{display:inline-block}i{border-right:var(${zo}--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}`)],Oo);var Io=Oo;Io.define();export{Ot as Alert,Bt as Avatar,Lt as Badge,qt as Breath,Jt as Button,ie as Card,ae as Carousel,pe as Details,fe as Dialog,ye as Divider,$e as Dragbox,ke as Flex,Ce as Form,Ee as Grid,Te as Heading,De as Input,Be as Layout,Fe as Link,We as Progress,Ke as Range,eo as Rotate,Ge as Router,so as Select,co as Skeleton,mo as Split,bo as Switch,ko as Text,Eo as Time,Po as Tooltip,Io as Typewriter};
48
+ //# sourceMappingURL=godown.js.map