@e280/sly 0.2.5 → 0.3.0-10

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 (350) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +356 -626
  3. package/package.json +22 -30
  4. package/s/_archive/README.md +1221 -0
  5. package/s/_archive/view/index.ts +7 -0
  6. package/s/_archive/view/types.ts +45 -0
  7. package/s/demo/demo.bundle.ts +5 -8
  8. package/s/demo/views/counter-light.ts +13 -0
  9. package/s/demo/views/counter-shadow.ts +16 -0
  10. package/s/demo/views/demo.ts +24 -20
  11. package/s/demo/views/loaders.ts +9 -9
  12. package/s/demo/views/time-light.ts +19 -0
  13. package/s/demo/views/time-shadow.ts +22 -0
  14. package/s/dom/attrs/attrs.ts +3 -3
  15. package/s/dom/attrs/parts/attr-spec.ts +17 -5
  16. package/s/dom/attrs/parts/on-attrs.ts +1 -1
  17. package/s/dom/dom.ts +1 -1
  18. package/s/index.html.ts +30 -33
  19. package/s/index.ts +2 -4
  20. package/s/{loaders → loader}/index.barrel.ts +0 -1
  21. package/s/{loaders → loader}/index.ts +0 -1
  22. package/s/{loaders → loader}/make.ts +1 -1
  23. package/s/{loaders → loader}/parts/ascii-anim.ts +6 -8
  24. package/s/loader/parts/error-display.ts +26 -0
  25. package/s/{loaders → loader}/types.ts +1 -1
  26. package/s/test.ts +5 -0
  27. package/s/view/common/css-reset.ts +19 -0
  28. package/s/view/common/sly-shadow.ts +14 -0
  29. package/s/view/elements/light.ts +14 -0
  30. package/s/view/elements/shadow.ts +52 -0
  31. package/s/view/hooks/plumbing/hooks.ts +28 -0
  32. package/s/view/hooks/plumbing/hookscope.ts +12 -0
  33. package/s/view/hooks/use-attrs.ts +28 -0
  34. package/s/view/hooks/use-css.ts +14 -0
  35. package/s/view/hooks/use-cx.ts +41 -0
  36. package/s/view/hooks/use-life.ts +17 -0
  37. package/s/view/hooks/use-mount.ts +30 -0
  38. package/s/view/hooks/use-name.ts +10 -0
  39. package/s/view/hooks/use-once.ts +9 -0
  40. package/s/view/hooks/use-op.ts +12 -0
  41. package/s/view/hooks/use-ref.ts +11 -0
  42. package/s/view/hooks/use-signal.ts +16 -0
  43. package/s/view/hooks/use-state.ts +20 -0
  44. package/s/view/hooks/use-wake.ts +8 -0
  45. package/s/view/index.ts +22 -4
  46. package/s/view/light.ts +50 -0
  47. package/s/view/parts/apply-attrs.ts +22 -0
  48. package/s/view/parts/apply-styles.ts +21 -0
  49. package/s/view/parts/cx.ts +26 -0
  50. package/s/view/parts/reactivity.ts +22 -0
  51. package/s/view/shadow.ts +93 -0
  52. package/s/view/types.ts +15 -34
  53. package/x/demo/demo.bundle.js +5 -8
  54. package/x/demo/demo.bundle.js.map +1 -1
  55. package/x/demo/demo.bundle.min.js +52 -63
  56. package/x/demo/demo.bundle.min.js.map +4 -4
  57. package/x/demo/views/counter-light.d.ts +1 -0
  58. package/x/demo/views/counter-light.js +10 -0
  59. package/x/demo/views/counter-light.js.map +1 -0
  60. package/x/demo/views/counter-shadow.d.ts +1 -0
  61. package/x/demo/views/counter-shadow.js +12 -0
  62. package/x/demo/views/counter-shadow.js.map +1 -0
  63. package/x/demo/views/demo.d.ts +1 -4
  64. package/x/demo/views/demo.js +24 -20
  65. package/x/demo/views/demo.js.map +1 -1
  66. package/x/demo/views/loaders.d.ts +1 -1
  67. package/x/demo/views/loaders.js +9 -9
  68. package/x/demo/views/loaders.js.map +1 -1
  69. package/x/demo/views/{counter.d.ts → time-light.d.ts} +3 -19
  70. package/x/demo/views/time-light.js +16 -0
  71. package/x/demo/views/time-light.js.map +1 -0
  72. package/x/demo/views/time-shadow.d.ts +365 -0
  73. package/x/demo/views/time-shadow.js +18 -0
  74. package/x/demo/views/time-shadow.js.map +1 -0
  75. package/x/dom/attrs/attrs.d.ts +3 -2
  76. package/x/dom/attrs/attrs.js +2 -2
  77. package/x/dom/attrs/attrs.js.map +1 -1
  78. package/x/dom/attrs/parts/attr-spec.d.ts +5 -1
  79. package/x/dom/attrs/parts/attr-spec.js +12 -6
  80. package/x/dom/attrs/parts/attr-spec.js.map +1 -1
  81. package/x/dom/attrs/parts/on-attrs.d.ts +1 -1
  82. package/x/dom/attrs/parts/on-attrs.js.map +1 -1
  83. package/x/dom/dom.d.ts +1 -1
  84. package/x/dom/dom.js.map +1 -1
  85. package/x/index.d.ts +2 -4
  86. package/x/index.html +30 -140
  87. package/x/index.html.js +31 -31
  88. package/x/index.html.js.map +1 -1
  89. package/x/index.js +2 -4
  90. package/x/index.js.map +1 -1
  91. package/x/{loaders → loader}/index.barrel.d.ts +0 -1
  92. package/x/loader/index.barrel.js.map +1 -0
  93. package/x/{loaders → loader}/index.d.ts +0 -1
  94. package/x/loader/index.js.map +1 -0
  95. package/x/{loaders → loader}/make.d.ts +1 -1
  96. package/x/loader/make.js.map +1 -0
  97. package/x/loader/mock.js.map +1 -0
  98. package/x/loader/parts/anims.js.map +1 -0
  99. package/x/{loaders → loader}/parts/ascii-anim.d.ts +1 -1
  100. package/x/{loaders → loader}/parts/ascii-anim.js +6 -7
  101. package/x/loader/parts/ascii-anim.js.map +1 -0
  102. package/x/loader/parts/error-display.d.ts +1 -0
  103. package/x/loader/parts/error-display.js +20 -0
  104. package/x/loader/parts/error-display.js.map +1 -0
  105. package/x/{loaders → loader}/types.d.ts +1 -1
  106. package/x/{loaders → loader}/types.js.map +1 -1
  107. package/x/loot/drag-and-drops.d.ts +2 -2
  108. package/x/loot/drops.d.ts +1 -1
  109. package/x/op/index.js.map +1 -0
  110. package/x/op/op.js.map +1 -0
  111. package/x/op/podium.js.map +1 -0
  112. package/x/{ops → op}/types.js.map +1 -1
  113. package/x/test.js +3 -0
  114. package/x/test.js.map +1 -0
  115. package/x/view/common/css-reset.js +17 -0
  116. package/x/view/common/css-reset.js.map +1 -0
  117. package/x/view/common/sly-shadow.d.ts +4 -0
  118. package/x/view/common/sly-shadow.js +11 -0
  119. package/x/view/common/sly-shadow.js.map +1 -0
  120. package/x/view/elements/light.d.ts +357 -0
  121. package/x/view/elements/light.js +10 -0
  122. package/x/view/elements/light.js.map +1 -0
  123. package/x/view/elements/shadow.d.ts +366 -0
  124. package/x/view/elements/shadow.js +42 -0
  125. package/x/view/elements/shadow.js.map +1 -0
  126. package/x/view/hooks/plumbing/hooks.d.ts +11 -0
  127. package/x/view/hooks/plumbing/hooks.js +26 -0
  128. package/x/view/hooks/plumbing/hooks.js.map +1 -0
  129. package/x/view/hooks/plumbing/hookscope.d.ts +10 -0
  130. package/x/view/hooks/plumbing/hookscope.js +12 -0
  131. package/x/view/hooks/plumbing/hookscope.js.map +1 -0
  132. package/x/view/hooks/use-attrs.d.ts +2 -0
  133. package/x/view/hooks/use-attrs.js +23 -0
  134. package/x/view/hooks/use-attrs.js.map +1 -0
  135. package/x/view/hooks/use-css.d.ts +4 -0
  136. package/x/view/hooks/use-css.js +10 -0
  137. package/x/view/hooks/use-css.js.map +1 -0
  138. package/x/view/hooks/use-cx.d.ts +10 -0
  139. package/x/view/hooks/use-cx.js +33 -0
  140. package/x/view/hooks/use-cx.js.map +1 -0
  141. package/x/view/hooks/use-life.d.ts +2 -0
  142. package/x/view/hooks/use-life.js +13 -0
  143. package/x/view/hooks/use-life.js.map +1 -0
  144. package/x/{base/utils/mounts.d.ts → view/hooks/use-mount.d.ts} +1 -0
  145. package/x/{base/utils/mounts.js → view/hooks/use-mount.js} +7 -1
  146. package/x/view/hooks/use-mount.js.map +1 -0
  147. package/x/view/hooks/use-name.d.ts +2 -0
  148. package/x/view/hooks/use-name.js +8 -0
  149. package/x/view/hooks/use-name.js.map +1 -0
  150. package/x/view/hooks/use-once.d.ts +2 -0
  151. package/x/view/hooks/use-once.js +7 -0
  152. package/x/view/hooks/use-once.js.map +1 -0
  153. package/x/view/hooks/use-op.d.ts +3 -0
  154. package/x/view/hooks/use-op.js +9 -0
  155. package/x/view/hooks/use-op.js.map +1 -0
  156. package/x/view/hooks/use-ref.d.ts +5 -0
  157. package/x/view/hooks/use-ref.js +11 -0
  158. package/x/view/hooks/use-ref.js.map +1 -0
  159. package/x/view/hooks/use-signal.d.ts +3 -0
  160. package/x/view/hooks/use-signal.js +12 -0
  161. package/x/view/hooks/use-signal.js.map +1 -0
  162. package/x/view/hooks/use-state.d.ts +1 -0
  163. package/x/view/hooks/use-state.js +17 -0
  164. package/x/view/hooks/use-state.js.map +1 -0
  165. package/x/view/hooks/use-wake.d.ts +2 -0
  166. package/x/view/hooks/use-wake.js +6 -0
  167. package/x/view/hooks/use-wake.js.map +1 -0
  168. package/x/view/index.d.ts +19 -4
  169. package/x/view/index.js +19 -4
  170. package/x/view/index.js.map +1 -1
  171. package/x/view/light.d.ts +2 -0
  172. package/x/view/light.js +41 -0
  173. package/x/view/light.js.map +1 -0
  174. package/x/view/parts/apply-attrs.d.ts +2 -0
  175. package/x/view/parts/apply-attrs.js +22 -0
  176. package/x/view/parts/apply-attrs.js.map +1 -0
  177. package/x/{base/utils → view/parts}/apply-styles.js.map +1 -1
  178. package/x/view/parts/cx.d.ts +12 -0
  179. package/x/view/parts/cx.js +24 -0
  180. package/x/view/parts/cx.js.map +1 -0
  181. package/x/view/parts/reactivity.d.ts +5 -0
  182. package/x/view/parts/reactivity.js +18 -0
  183. package/x/view/parts/reactivity.js.map +1 -0
  184. package/x/view/shadow.d.ts +6 -0
  185. package/x/view/shadow.js +71 -0
  186. package/x/view/shadow.js.map +1 -0
  187. package/x/view/types.d.ts +13 -21
  188. package/s/demo/views/counter.ts +0 -50
  189. package/s/demo/views/fastcount.ts +0 -29
  190. package/s/demo/views/mounting.ts +0 -36
  191. package/s/loaders/parts/error-display.ts +0 -26
  192. package/s/tests.test.ts +0 -8
  193. package/x/base/css-reset.js +0 -19
  194. package/x/base/css-reset.js.map +0 -1
  195. package/x/base/element.d.ts +0 -19
  196. package/x/base/element.js +0 -55
  197. package/x/base/element.js.map +0 -1
  198. package/x/base/index.d.ts +0 -5
  199. package/x/base/index.js +0 -6
  200. package/x/base/index.js.map +0 -1
  201. package/x/base/types.d.ts +0 -3
  202. package/x/base/types.js +0 -3
  203. package/x/base/types.js.map +0 -1
  204. package/x/base/use.d.ts +0 -59
  205. package/x/base/use.js +0 -129
  206. package/x/base/use.js.map +0 -1
  207. package/x/base/utils/attr-watcher.d.ts +0 -8
  208. package/x/base/utils/attr-watcher.js +0 -20
  209. package/x/base/utils/attr-watcher.js.map +0 -1
  210. package/x/base/utils/mounts.js.map +0 -1
  211. package/x/base/utils/reactor.d.ts +0 -5
  212. package/x/base/utils/reactor.js +0 -25
  213. package/x/base/utils/reactor.js.map +0 -1
  214. package/x/base/utils/states.d.ts +0 -13
  215. package/x/base/utils/states.js +0 -41
  216. package/x/base/utils/states.js.map +0 -1
  217. package/x/base/utils/use-attrs.d.ts +0 -11
  218. package/x/base/utils/use-attrs.js +0 -18
  219. package/x/base/utils/use-attrs.js.map +0 -1
  220. package/x/demo/views/counter.js +0 -42
  221. package/x/demo/views/counter.js.map +0 -1
  222. package/x/demo/views/fastcount.d.ts +0 -12
  223. package/x/demo/views/fastcount.js +0 -21
  224. package/x/demo/views/fastcount.js.map +0 -1
  225. package/x/demo/views/mounting.d.ts +0 -3
  226. package/x/demo/views/mounting.js +0 -28
  227. package/x/demo/views/mounting.js.map +0 -1
  228. package/x/loaders/index.barrel.js.map +0 -1
  229. package/x/loaders/index.js.map +0 -1
  230. package/x/loaders/make.js.map +0 -1
  231. package/x/loaders/mock.js.map +0 -1
  232. package/x/loaders/parts/anims.js.map +0 -1
  233. package/x/loaders/parts/ascii-anim.js.map +0 -1
  234. package/x/loaders/parts/error-display.d.ts +0 -1
  235. package/x/loaders/parts/error-display.js +0 -20
  236. package/x/loaders/parts/error-display.js.map +0 -1
  237. package/x/ops/index.js.map +0 -1
  238. package/x/ops/op.js.map +0 -1
  239. package/x/ops/podium.js.map +0 -1
  240. package/x/spa/index.barrel.d.ts +0 -4
  241. package/x/spa/index.barrel.js +0 -3
  242. package/x/spa/index.barrel.js.map +0 -1
  243. package/x/spa/index.d.ts +0 -2
  244. package/x/spa/index.js +0 -2
  245. package/x/spa/index.js.map +0 -1
  246. package/x/spa/plumbing/braces.d.ts +0 -12
  247. package/x/spa/plumbing/braces.js +0 -55
  248. package/x/spa/plumbing/braces.js.map +0 -1
  249. package/x/spa/plumbing/primitives.d.ts +0 -22
  250. package/x/spa/plumbing/primitives.js +0 -65
  251. package/x/spa/plumbing/primitives.js.map +0 -1
  252. package/x/spa/plumbing/router-core.d.ts +0 -13
  253. package/x/spa/plumbing/router-core.js +0 -38
  254. package/x/spa/plumbing/router-core.js.map +0 -1
  255. package/x/spa/plumbing/types.d.ts +0 -35
  256. package/x/spa/plumbing/types.js +0 -2
  257. package/x/spa/plumbing/types.js.map +0 -1
  258. package/x/spa/router.d.ts +0 -13
  259. package/x/spa/router.js +0 -39
  260. package/x/spa/router.js.map +0 -1
  261. package/x/spa/spa.test.d.ts +0 -15
  262. package/x/spa/spa.test.js +0 -78
  263. package/x/spa/spa.test.js.map +0 -1
  264. package/x/tests.test.js +0 -6
  265. package/x/tests.test.js.map +0 -1
  266. package/x/view/utils/contextualize.d.ts +0 -13
  267. package/x/view/utils/contextualize.js +0 -18
  268. package/x/view/utils/contextualize.js.map +0 -1
  269. package/x/view/utils/make-component.d.ts +0 -5
  270. package/x/view/utils/make-component.js +0 -17
  271. package/x/view/utils/make-component.js.map +0 -1
  272. package/x/view/utils/make-view.d.ts +0 -2
  273. package/x/view/utils/make-view.js +0 -32
  274. package/x/view/utils/make-view.js.map +0 -1
  275. package/x/view/utils/parts/capsule.d.ts +0 -12
  276. package/x/view/utils/parts/capsule.js +0 -56
  277. package/x/view/utils/parts/capsule.js.map +0 -1
  278. package/x/view/utils/parts/chain.d.ts +0 -13
  279. package/x/view/utils/parts/chain.js +0 -26
  280. package/x/view/utils/parts/chain.js.map +0 -1
  281. package/x/view/utils/parts/context.d.ts +0 -9
  282. package/x/view/utils/parts/context.js +0 -10
  283. package/x/view/utils/parts/context.js.map +0 -1
  284. package/x/view/utils/parts/directive.d.ts +0 -5
  285. package/x/view/utils/parts/directive.js +0 -20
  286. package/x/view/utils/parts/directive.js.map +0 -1
  287. package/x/view/utils/parts/naked.d.ts +0 -18
  288. package/x/view/utils/parts/naked.js +0 -57
  289. package/x/view/utils/parts/naked.js.map +0 -1
  290. package/x/view/utils/parts/sly-view.d.ts +0 -6
  291. package/x/view/utils/parts/sly-view.js +0 -16
  292. package/x/view/utils/parts/sly-view.js.map +0 -1
  293. package/x/view/view.d.ts +0 -11
  294. package/x/view/view.js +0 -15
  295. package/x/view/view.js.map +0 -1
  296. /package/s/{base → _archive/base}/css-reset.ts +0 -0
  297. /package/s/{base → _archive/base}/element.ts +0 -0
  298. /package/s/{base → _archive/base}/index.ts +0 -0
  299. /package/s/{base → _archive/base}/types.ts +0 -0
  300. /package/s/{base → _archive/base}/use.ts +0 -0
  301. /package/s/{base → _archive/base}/utils/apply-styles.ts +0 -0
  302. /package/s/{base → _archive/base}/utils/attr-watcher.ts +0 -0
  303. /package/s/{base → _archive/base}/utils/mounts.ts +0 -0
  304. /package/s/{base → _archive/base}/utils/reactor.ts +0 -0
  305. /package/s/{base → _archive/base}/utils/states.ts +0 -0
  306. /package/s/{base → _archive/base}/utils/use-attrs.ts +0 -0
  307. /package/s/{spa → _archive/spa}/index.barrel.ts +0 -0
  308. /package/s/{spa → _archive/spa}/index.ts +0 -0
  309. /package/s/{spa → _archive/spa}/plumbing/braces.ts +0 -0
  310. /package/s/{spa → _archive/spa}/plumbing/primitives.ts +0 -0
  311. /package/s/{spa → _archive/spa}/plumbing/router-core.ts +0 -0
  312. /package/s/{spa → _archive/spa}/plumbing/types.ts +0 -0
  313. /package/s/{spa → _archive/spa}/router.ts +0 -0
  314. /package/s/{spa → _archive/spa}/spa.test.ts +0 -0
  315. /package/s/{view → _archive/view}/utils/contextualize.ts +0 -0
  316. /package/s/{view → _archive/view}/utils/make-component.ts +0 -0
  317. /package/s/{view → _archive/view}/utils/make-view.ts +0 -0
  318. /package/s/{view → _archive/view}/utils/parts/capsule.ts +0 -0
  319. /package/s/{view → _archive/view}/utils/parts/chain.ts +0 -0
  320. /package/s/{view → _archive/view}/utils/parts/context.ts +0 -0
  321. /package/s/{view → _archive/view}/utils/parts/directive.ts +0 -0
  322. /package/s/{view → _archive/view}/utils/parts/naked.ts +0 -0
  323. /package/s/{view → _archive/view}/utils/parts/sly-view.ts +0 -0
  324. /package/s/{view → _archive/view}/view.ts +0 -0
  325. /package/s/{loaders → loader}/mock.ts +0 -0
  326. /package/s/{loaders → loader}/parts/anims.ts +0 -0
  327. /package/s/{ops → op}/index.ts +0 -0
  328. /package/s/{ops → op}/op.ts +0 -0
  329. /package/s/{ops → op}/podium.ts +0 -0
  330. /package/s/{ops → op}/types.ts +0 -0
  331. /package/x/{loaders → loader}/index.barrel.js +0 -0
  332. /package/x/{loaders → loader}/index.js +0 -0
  333. /package/x/{loaders → loader}/make.js +0 -0
  334. /package/x/{loaders → loader}/mock.d.ts +0 -0
  335. /package/x/{loaders → loader}/mock.js +0 -0
  336. /package/x/{loaders → loader}/parts/anims.d.ts +0 -0
  337. /package/x/{loaders → loader}/parts/anims.js +0 -0
  338. /package/x/{loaders → loader}/types.js +0 -0
  339. /package/x/{ops → op}/index.d.ts +0 -0
  340. /package/x/{ops → op}/index.js +0 -0
  341. /package/x/{ops → op}/op.d.ts +0 -0
  342. /package/x/{ops → op}/op.js +0 -0
  343. /package/x/{ops → op}/podium.d.ts +0 -0
  344. /package/x/{ops → op}/podium.js +0 -0
  345. /package/x/{ops → op}/types.d.ts +0 -0
  346. /package/x/{ops → op}/types.js +0 -0
  347. /package/x/{tests.test.d.ts → test.d.ts} +0 -0
  348. /package/x/{base → view/common}/css-reset.d.ts +0 -0
  349. /package/x/{base/utils → view/parts}/apply-styles.d.ts +0 -0
  350. /package/x/{base/utils → view/parts}/apply-styles.js +0 -0
@@ -1,56 +1,36 @@
1
- var es=Object.defineProperty;var re=(s,t)=>{for(var e in t)es(s,e,{get:t[e],enumerable:!0})};var _t=globalThis,vt=_t.ShadowRoot&&(_t.ShadyCSS===void 0||_t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,oe=Symbol(),xe=new WeakMap,ut=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==oe)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(vt&&t===void 0){let r=e!==void 0&&e.length===1;r&&(t=xe.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&xe.set(e,t))}return t}toString(){return this.cssText}},_e=s=>new ut(typeof s=="string"?s:s+"",void 0,oe),w=(s,...t)=>{let e=s.length===1?s[0]:t.reduce(((r,o,i)=>r+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+s[i+1]),s[0]);return new ut(e,s,oe)},At=(s,t)=>{if(vt)s.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet));else for(let e of t){let r=document.createElement("style"),o=_t.litNonce;o!==void 0&&r.setAttribute("nonce",o),r.textContent=e.cssText,s.appendChild(r)}},G=vt?s=>s:s=>s instanceof CSSStyleSheet?(t=>{let e="";for(let r of t.cssRules)e+=r.cssText;return _e(e)})(s):s;var{is:ss,defineProperty:rs,getOwnPropertyDescriptor:os,getOwnPropertyNames:is,getOwnPropertySymbols:ns,getPrototypeOf:as}=Object,St=globalThis,ve=St.trustedTypes,cs=ve?ve.emptyScript:"",hs=St.reactiveElementPolyfillSupport,pt=(s,t)=>s,ie={toAttribute(s,t){switch(t){case Boolean:s=s?cs:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,t){let e=s;switch(t){case Boolean:e=s!==null;break;case Number:e=s===null?null:Number(s);break;case Object:case Array:try{e=JSON.parse(s)}catch{e=null}}return e}},Se=(s,t)=>!ss(s,t),Ae={attribute:!0,type:String,converter:ie,reflect:!1,useDefault:!1,hasChanged:Se};Symbol.metadata??=Symbol("metadata"),St.litPropertyMetadata??=new WeakMap;var k=class 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=Ae){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){let r=Symbol(),o=this.getPropertyDescriptor(t,r,e);o!==void 0&&rs(this.prototype,t,o)}}static getPropertyDescriptor(t,e,r){let{get:o,set:i}=os(this.prototype,t)??{get(){return this[e]},set(n){this[e]=n}};return{get:o,set(n){let c=o?.call(this);i?.call(this,n),this.requestUpdate(t,c,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Ae}static _$Ei(){if(this.hasOwnProperty(pt("elementProperties")))return;let t=as(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(pt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(pt("properties"))){let e=this.properties,r=[...is(e),...ns(e)];for(let o of r)this.createProperty(o,e[o])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[r,o]of e)this.elementProperties.set(r,o)}this._$Eh=new Map;for(let[e,r]of this.elementProperties){let o=this._$Eu(e,r);o!==void 0&&this._$Eh.set(o,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let r=new Set(t.flat(1/0).reverse());for(let o of r)e.unshift(G(o))}else t!==void 0&&e.push(G(t));return e}static _$Eu(t,e){let r=e.attribute;return r===!1?void 0:typeof r=="string"?r:typeof t=="string"?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),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let r of e.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return At(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,r){this._$AK(t,r)}_$ET(t,e){let r=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,r);if(o!==void 0&&r.reflect===!0){let i=(r.converter?.toAttribute!==void 0?r.converter:ie).toAttribute(e,r.type);this._$Em=t,i==null?this.removeAttribute(o):this.setAttribute(o,i),this._$Em=null}}_$AK(t,e){let r=this.constructor,o=r._$Eh.get(t);if(o!==void 0&&this._$Em!==o){let i=r.getPropertyOptions(o),n=typeof i.converter=="function"?{fromAttribute:i.converter}:i.converter?.fromAttribute!==void 0?i.converter:ie;this._$Em=o;let c=n.fromAttribute(e,i.type);this[o]=c??this._$Ej?.get(o)??c,this._$Em=null}}requestUpdate(t,e,r){if(t!==void 0){let o=this.constructor,i=this[t];if(r??=o.getPropertyOptions(t),!((r.hasChanged??Se)(i,e)||r.useDefault&&r.reflect&&i===this._$Ej?.get(t)&&!this.hasAttribute(o._$Eu(t,r))))return;this.C(t,e,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:r,reflect:o,wrapped:i},n){r&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,n??e??this[t]),i!==!0||n!==void 0)||(this._$AL.has(t)||(this.hasUpdated||r||(e=void 0),this._$AL.set(t,e)),o===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[o,i]of this._$Ep)this[o]=i;this._$Ep=void 0}let r=this.constructor.elementProperties;if(r.size>0)for(let[o,i]of r){let{wrapped:n}=i,c=this[o];n!==!0||this._$AL.has(o)||c===void 0||this.C(o,void 0,i,c)}}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((r=>r.hostUpdate?.())),this.update(e)):this._$EM()}catch(r){throw t=!1,this._$EM(),r}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((e=>e.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach((e=>this._$ET(e,this[e]))),this._$EM()}updated(t){}firstUpdated(t){}};k.elementStyles=[],k.shadowRootOptions={mode:"open"},k[pt("elementProperties")]=new Map,k[pt("finalized")]=new Map,hs?.({ReactiveElement:k}),(St.reactiveElementVersions??=[]).push("2.1.1");var ae=globalThis,Et=ae.trustedTypes,Ee=Et?Et.createPolicy("lit-html",{createHTML:s=>s}):void 0,ce="$lit$",P=`lit$${Math.random().toFixed(9).slice(2)}$`,he="?"+P,us=`<${he}>`,U=document,mt=()=>U.createComment(""),ft=s=>s===null||typeof s!="object"&&typeof s!="function",ue=Array.isArray,Me=s=>ue(s)||typeof s?.[Symbol.iterator]=="function",ne=`[
2
- \f\r]`,lt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ce=/-->/g,ke=/>/g,j=RegExp(`>|${ne}(?:([^\\s"'>=/]+)(${ne}*=${ne}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Pe=/'/g,Re=/"/g,Oe=/^(?:script|style|textarea|title)$/i,pe=s=>(t,...e)=>({_$litType$:s,strings:t,values:e}),$=pe(1),fr=pe(2),dr=pe(3),H=Symbol.for("lit-noChange"),b=Symbol.for("lit-nothing"),Te=new WeakMap,L=U.createTreeWalker(U,129);function Ne(s,t){if(!ue(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ee!==void 0?Ee.createHTML(t):t}var je=(s,t)=>{let e=s.length-1,r=[],o,i=t===2?"<svg>":t===3?"<math>":"",n=lt;for(let c=0;c<e;c++){let a=s[c],u,y,l=-1,x=0;for(;x<a.length&&(n.lastIndex=x,y=n.exec(a),y!==null);)x=n.lastIndex,n===lt?y[1]==="!--"?n=Ce:y[1]!==void 0?n=ke:y[2]!==void 0?(Oe.test(y[2])&&(o=RegExp("</"+y[2],"g")),n=j):y[3]!==void 0&&(n=j):n===j?y[0]===">"?(n=o??lt,l=-1):y[1]===void 0?l=-2:(l=n.lastIndex-y[2].length,u=y[1],n=y[3]===void 0?j:y[3]==='"'?Re:Pe):n===Re||n===Pe?n=j:n===Ce||n===ke?n=lt:(n=j,o=void 0);let T=n===j&&s[c+1].startsWith("/>")?" ":"";i+=n===lt?a+us:l>=0?(r.push(u),a.slice(0,l)+ce+a.slice(l)+P+T):a+P+(l===-2?c:T)}return[Ne(s,i+(s[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},dt=class s{constructor({strings:t,_$litType$:e},r){let o;this.parts=[];let i=0,n=0,c=t.length-1,a=this.parts,[u,y]=je(t,e);if(this.el=s.createElement(u,r),L.currentNode=this.el.content,e===2||e===3){let l=this.el.content.firstChild;l.replaceWith(...l.childNodes)}for(;(o=L.nextNode())!==null&&a.length<c;){if(o.nodeType===1){if(o.hasAttributes())for(let l of o.getAttributeNames())if(l.endsWith(ce)){let x=y[n++],T=o.getAttribute(l).split(P),xt=/([.?@])?(.*)/.exec(x);a.push({type:1,index:i,name:xt[2],strings:T,ctor:xt[1]==="."?kt:xt[1]==="?"?Pt:xt[1]==="@"?Rt:D}),o.removeAttribute(l)}else l.startsWith(P)&&(a.push({type:6,index:i}),o.removeAttribute(l));if(Oe.test(o.tagName)){let l=o.textContent.split(P),x=l.length-1;if(x>0){o.textContent=Et?Et.emptyScript:"";for(let T=0;T<x;T++)o.append(l[T],mt()),L.nextNode(),a.push({type:2,index:++i});o.append(l[x],mt())}}}else if(o.nodeType===8)if(o.data===he)a.push({type:2,index:i});else{let l=-1;for(;(l=o.data.indexOf(P,l+1))!==-1;)a.push({type:7,index:i}),l+=P.length-1}i++}}static createElement(t,e){let r=U.createElement("template");return r.innerHTML=t,r}};function z(s,t,e=s,r){if(t===H)return t;let o=r!==void 0?e._$Co?.[r]:e._$Cl,i=ft(t)?void 0:t._$litDirective$;return o?.constructor!==i&&(o?._$AO?.(!1),i===void 0?o=void 0:(o=new i(s),o._$AT(s,e,r)),r!==void 0?(e._$Co??=[])[r]=o:e._$Cl=o),o!==void 0&&(t=z(s,o._$AS(s,t.values),o,r)),t}var Ct=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:r}=this._$AD,o=(t?.creationScope??U).importNode(e,!0);L.currentNode=o;let i=L.nextNode(),n=0,c=0,a=r[0];for(;a!==void 0;){if(n===a.index){let u;a.type===2?u=new J(i,i.nextSibling,this,t):a.type===1?u=new a.ctor(i,a.name,a.strings,this,t):a.type===6&&(u=new Tt(i,this,t)),this._$AV.push(u),a=r[++c]}n!==a?.index&&(i=L.nextNode(),n++)}return L.currentNode=U,o}p(t){let e=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}},J=class s{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,r,o){this.type=2,this._$AH=b,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=z(this,t,e),ft(t)?t===b||t==null||t===""?(this._$AH!==b&&this._$AR(),this._$AH=b):t!==this._$AH&&t!==H&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Me(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==b&&ft(this._$AH)?this._$AA.nextSibling.data=t:this.T(U.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:r}=t,o=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=dt.createElement(Ne(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===o)this._$AH.p(e);else{let i=new Ct(o,this),n=i.u(this.options);i.p(e),this.T(n),this._$AH=i}}_$AC(t){let e=Te.get(t.strings);return e===void 0&&Te.set(t.strings,e=new dt(t)),e}k(t){ue(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,r,o=0;for(let i of t)o===e.length?e.push(r=new s(this.O(mt()),this.O(mt()),this,this.options)):r=e[o],r._$AI(i),o++;o<e.length&&(this._$AR(r&&r._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let r=t.nextSibling;t.remove(),t=r}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},D=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,o,i){this.type=1,this._$AH=b,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=i,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=b}_$AI(t,e=this,r,o){let i=this.strings,n=!1;if(i===void 0)t=z(this,t,e,0),n=!ft(t)||t!==this._$AH&&t!==H,n&&(this._$AH=t);else{let c=t,a,u;for(t=i[0],a=0;a<i.length-1;a++)u=z(this,c[r+a],e,a),u===H&&(u=this._$AH[a]),n||=!ft(u)||u!==this._$AH[a],u===b?t=b:t!==b&&(t+=(u??"")+i[a+1]),this._$AH[a]=u}n&&!o&&this.j(t)}j(t){t===b?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},kt=class extends D{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===b?void 0:t}},Pt=class extends D{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==b)}},Rt=class extends D{constructor(t,e,r,o,i){super(t,e,r,o,i),this.type=5}_$AI(t,e=this){if((t=z(this,t,e,0)??b)===H)return;let r=this._$AH,o=t===b&&r!==b||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,i=t!==b&&(r===b||o);o&&this.element.removeEventListener(this.name,this,r),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},Tt=class{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){z(this,t)}},Le={M:ce,P,A:he,C:1,L:je,R:Ct,D:Me,V:z,I:J,H:D,N:Pt,U:Rt,B:kt,F:Tt},ps=ae.litHtmlPolyfillSupport;ps?.(dt,J),(ae.litHtmlVersions??=[]).push("3.3.1");var M=(s,t,e)=>{let r=e?.renderBefore??t,o=r._$litPart$;if(o===void 0){let i=e?.renderBefore??null;r._$litPart$=o=new J(t.insertBefore(mt(),i),i,void 0,e??{})}return o._$AI(s),o};var le=globalThis,Z=class extends k{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=M(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return H}};Z._$litElement$=!0,Z.finalized=!0,le.litElementHydrateSupport?.({LitElement:Z});var ls=le.litElementPolyfillSupport;ls?.({LitElement:Z});(le.litElementVersions??=[]).push("4.2.1");var v={string:(s,t)=>s.getAttribute(t)??void 0,number:(s,t)=>{let e=s.getAttribute(t);return e===null||!e?void 0:Number(e)},boolean:(s,t)=>s.getAttribute(t)!==null},d={string:(s,t,e)=>(e===void 0?s.removeAttribute(t):s.setAttribute(t,e),!0),number:(s,t,e)=>(e===void 0?s.removeAttribute(t):s.setAttribute(t,e.toString()),!0),boolean:(s,t,e)=>(e?s.setAttribute(t,""):s.removeAttribute(t),!0),any:(s,t,e)=>{e==null?s.removeAttribute(t):typeof e=="string"?s.setAttribute(t,e):typeof e=="number"?s.setAttribute(t,e.toString()):typeof e=="boolean"?e===!0?s.setAttribute(t,""):s.removeAttribute(t):console.warn(`invalid attribute "${t}" type is "${typeof e}"`)},entries:(s,t)=>{for(let[e,r]of t)d.any(s,e,r)},record:(s,t)=>d.entries(s,Object.entries(t))};function Ue(s,t={}){let e=document.createElement(s);return d.record(e,t),e}function He(s){let t=document.createDocumentFragment();return M(s,t),t.firstElementChild}function K(s,t){let e=[];for(let[r,o]of Object.entries(t))if(typeof o=="function")s.addEventListener(r,o),e.push(()=>s.removeEventListener(r,o));else{let[i,n]=o;s.addEventListener(r,n,i),e.push(()=>s.removeEventListener(r,n))}return()=>e.forEach(r=>r())}function ze(s,t){let e=new MutationObserver(t);return e.observe(s,{attributes:!0}),()=>e.disconnect()}var De=(s,t)=>new Proxy(t,{get:(e,r)=>{switch(t[r]){case String:return v.string(s,r);case Number:return v.number(s,r);case Boolean:return v.boolean(s,r);default:throw new Error(`invalid attribute type for "${r}"`)}},set:(e,r,o)=>{switch(t[r]){case String:return d.string(s,r,o);case Number:return d.number(s,r,o);case Boolean:return d.boolean(s,r,o);default:throw new Error(`invalid attribute type for "${r}"`)}}});var Mt=class{element;constructor(t){this.element=t}strings=new Proxy({},{get:(t,e)=>v.string(this.element,e),set:(t,e,r)=>d.string(this.element,e,r)});numbers=new Proxy({},{get:(t,e)=>v.number(this.element,e),set:(t,e,r)=>d.number(this.element,e,r)});booleans=new Proxy({},{get:(t,e)=>v.boolean(this.element,e),set:(t,e,r)=>d.boolean(this.element,e,r)})};function Q(s){let t=new Mt(s);return{strings:t.strings,numbers:t.numbers,booleans:t.booleans,on:e=>ze(s,e),spec:e=>De(s,e)}}Q.get=v;Q.set=d;function qe(s){return new me(s)}var me=class{tagName;#t=new Map;#e=[];constructor(t){this.tagName=t}attr(t,e=!0){return this.#t.set(t,e),this}attrs(t){for(let[e,r]of Object.entries(t))this.attr(e,r);return this}children(...t){return this.#e.push(...t),this}done(){let t=document.createElement(this.tagName);return d.entries(t,this.#t),t.append(...this.#e),t}};function Y(s,t=document){let e=t.querySelector(s);if(!e)throw new Error(`element not found (${s})`);return e}function Ot(s,t=document){return t.querySelector(s)}function Nt(s,t=document){return Array.from(t.querySelectorAll(s))}var jt=class s{element;#t;constructor(t){this.element=t}in(t){return new s(typeof t=="string"?Y(t,this.element):t)}require(t){return Y(t,this.element)}maybe(t){return Ot(t,this.element)}all(t){return Nt(t,this.element)}render(...t){return M(t,this.element)}get attrs(){return this.#t??=Q(this.element)}events(t){return K(this.element,t)}};function Be(s){return s.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()}function We(s,t={}){let{soft:e=!1,upgrade:r=!0}=t;for(let[o,i]of Object.entries(s)){let n=Be(o),c=customElements.get(n);e&&c||(customElements.define(n,i),r&&document.querySelectorAll(n).forEach(a=>{a.constructor===HTMLElement&&customElements.upgrade(a)}))}}function p(s,t=document){return Y(s,t)}p.in=(s,t=document)=>new jt(t).in(s);p.require=Y;p.maybe=Ot;p.all=Nt;p.el=Ue;p.elmer=qe;p.mk=He;p.events=K;p.attrs=Q;p.register=We;p.render=(s,...t)=>M(t,s);var Lt=class{#t;#e;constructor(t,e){this.#e=t,this.#t=e}attr(t,e=!0){return this.#e.attrs.set(t,e),this}attrs(t){for(let[e,r]of Object.entries(t))this.#e.attrs.set(e,r);return this}children(...t){return this.#e.children.push(...t),this}render(){return this.#t(this.#e)}};var gt=class{props;attrs=new Map;children=[];constructor(t){this.props=t}};function X(s,t){let e,r,o=[];function i(){e=[],r&&clearTimeout(r),r=void 0,o=[]}return i(),((...n)=>{e=n,r&&clearTimeout(r);let c=new Promise((a,u)=>{o.push({resolve:a,reject:u})});return r=setTimeout(()=>{Promise.resolve().then(()=>t(...e)).then(a=>{for(let{resolve:u}of o)u(a);i()}).catch(a=>{for(let{reject:u}of o)u(a);i()})},s),c})}function q(){let s,t,e=new Promise((o,i)=>{s=o,t=i});function r(o){return o.then(s).catch(t),e}return{promise:e,resolve:s,reject:t,entangle:r}}function Ut(s){let t=null;return((...e)=>(t?t.params=e:(t={params:e,deferred:q()},queueMicrotask(()=>{let{params:r,deferred:o}=t;t=null,Promise.resolve(s(...r)).then(o.resolve).catch(o.reject)})),t.deferred.promise))}var R={};re(R,{clone:()=>yt,equal:()=>ms,freeze:()=>fs});function yt(s,t=new Set){if(t.has(s))throw new Error("cannot clone circular reference");let e;return typeof s=="function"||s!==null&&typeof s=="object"?(t.add(s),Array.isArray(s)?e=s.map(r=>yt(r,new Set(t))):s.constructor===Object?e=Object.fromEntries(Object.entries(s).map(([r,o])=>[r,yt(o,new Set(t))])):s instanceof Map?e=new Map(Array.from(s,([r,o])=>[r,yt(o,new Set(t))])):s instanceof Set?e=new Set(Array.from(s,r=>yt(r,new Set(t)))):s instanceof Date?e=new Date(s.getTime()):e=s,t.delete(s)):e=s,e}var bt=Object.freeze({happy:s=>s!=null,sad:s=>s==null,boolean:s=>typeof s=="boolean",number:s=>typeof s=="number",string:s=>typeof s=="string",bigint:s=>typeof s=="bigint",object:s=>typeof s=="object"&&s!==null,array:s=>Array.isArray(s),fn:s=>typeof s=="function",symbol:s=>typeof s=="symbol"});var ms=(s,t)=>{function e(r,o,i){if(!bt.object(r)||!bt.object(o))return r===o;if(i.includes(r))throw new Error("forbidden circularity detected in deep equal comparison");let n=[...i,r];if(r instanceof Map&&o instanceof Map){if(r.size!==o.size)return!1;for(let[c,a]of r)if(!o.has(c)||!e(a,o.get(c),n))return!1}else if(r instanceof Set&&o instanceof Set){if(r.size!==o.size)return!1;for(let c of r)if(!Array.from(o).some(a=>e(c,a,n)))return!1}else{let c=Object.keys(r),a=Object.keys(o);if(c.length!==a.length)return!1;for(let u of c)if(!a.includes(u)||!e(r[u],o[u],n))return!1}return!0}return e(s,t,[])};function fs(s){function t(e,r){if(!bt.object(e)||r.includes(e))return e;let o=[...r,e];if(e instanceof Map)for(let i of e.entries())for(let n of i)t(n,o);else if(e instanceof Set)for(let i of e)t(i,o);else if(Array.isArray(e))for(let i of e)t(i,o);else for(let i of Object.values(e))t(i,o);return Object.freeze(e)}return t(s,[])}var tt=class s extends Map{static require(t,e){if(t.has(e))return t.get(e);throw new Error(`required key not found: "${e}"`)}static guarantee(t,e,r){if(t.has(e))return t.get(e);{let o=r();return t.set(e,o),o}}array(){return[...this]}require(t){return s.require(this,t)}guarantee(t,e){return s.guarantee(this,t,e)}};function et(s){let t,e=!1,r=()=>{e=!0,clearTimeout(t)},o=async()=>{e||(await s(r),!e&&(t=setTimeout(o,0)))};return o(),r}var st=(s=0)=>new Promise(t=>setTimeout(t,s));function Ie(){let s=new Set;async function t(...a){await Promise.all([...s].map(u=>u(...a)))}function e(a){return s.add(a),()=>{s.delete(a)}}async function r(...a){return t(...a)}function o(a){return e(a)}async function i(a){let{promise:u,resolve:y}=q(),l=o(async(...x)=>{a&&await a(...x),y(x),l()});return u}function n(){s.clear()}let c={pub:r,sub:o,publish:t,subscribe:e,on:e,next:i,clear:n};return Object.assign(o,c),Object.assign(r,c),c}function rt(s){let t=Ie();return s&&t.sub(s),t.sub}function fe(s){let t=Ie();return s&&t.sub(s),t.pub}function Ve(s){return R.freeze(R.clone(s))}var de=class{#t=[];#e=new WeakMap;#s=[];#r=new Set;notifyRead(t){this.#t.at(-1)?.add(t)}async notifyWrite(t){if(this.#r.has(t))throw new Error("circularity forbidden");let e=this.#o(t).pub();return this.#s.at(-1)?.add(e),e}observe(t){this.#t.push(new Set);let e=t();return{seen:this.#t.pop(),result:e}}subscribe(t,e){return this.#o(t)(async()=>{let r=new Set;this.#s.push(r),this.#r.add(t),r.add(e()),this.#r.delete(t),await Promise.all(r),this.#s.pop()})}#o(t){let e=this.#e.get(t);return e||(e=rt(),this.#e.set(t,e)),e}},m=globalThis[Symbol.for("e280.tracker")]??=new de;var A=Symbol("optic");var Ht=class{calculate;#t=!1;#e;constructor(t){this.calculate=t,this.#e=t()}get(){return this.#t&&(this.#t=!1,this.#e=this.calculate()),this.#e}invalidate(){this.#t=!0}};var zt=class s{on=rt();[A];#t;#e;#s=Ut(()=>this.on.publish(this.state));constructor(t){this[A]=t,this.#t=R.clone(t.getState()),this.#e=new Ht(()=>Ve(t.getState()))}async update(){let t=this[A].getState();!R.equal(t,this.#t)&&(this.#e.invalidate(),this.#t=R.clone(t),this.#s(),await m.notifyWrite(this))}get state(){return m.notifyRead(this),this.#e.get()}async mutate(t){return this[A].mutate(t)}lens(t){let e=new s({getState:()=>t(this[A].getState()),mutate:r=>this[A].mutate(o=>r(t(o))),registerLens:this[A].registerLens});return this[A].registerLens(e),e}};var ot=class{sneak;constructor(t){this.sneak=t}get(){return m.notifyRead(this),this.sneak}get value(){return this.get()}};var it=class extends ot{on=rt();dispose(){this.on.clear()}};function Dt(s,t=s){let{seen:e,result:r}=m.observe(s),o=Ut(t),i=[],n=()=>i.forEach(c=>c());for(let c of e){let a=m.subscribe(c,o);i.push(a)}return{result:r,dispose:n}}function nt(s,t){return s===t}var qt=class extends it{#t;constructor(t,e){let r=e?.compare??nt,{result:o,dispose:i}=Dt(t,async()=>{let n=t();!r(this.sneak,n)&&(this.sneak=n,await Promise.all([m.notifyWrite(this),this.on.pub(n)]))});super(o),this.#t=i}toString(){return`(derived "${String(this.get())}")`}dispose(){super.dispose(),this.#t()}get core(){return this}fn(){let t=this;function e(){return t.get()}return e.core=t,e.get=t.get.bind(t),e.on=t.on,e.dispose=t.dispose.bind(t),e.fn=t.fn.bind(t),Object.defineProperty(e,"value",{get:()=>t.value}),Object.defineProperty(e,"sneak",{get:()=>t.sneak}),e}};var Bt=class extends ot{#t;#e;#s=!1;#r;constructor(t,e){super(void 0),this.#t=t,this.#e=e?.compare??nt}toString(){return`($lazy "${String(this.get())}")`}get(){if(!this.#r){let{result:t,dispose:e}=Dt(this.#t,()=>this.#s=!0);this.#r=e,this.sneak=t}if(this.#s){this.#s=!1;let t=this.#t();!this.#e(this.sneak,t)&&(this.sneak=t,m.notifyWrite(this))}return super.get()}dispose(){this.#r&&this.#r()}get core(){return this}fn(){let t=this;function e(){return t.get()}return e.core=t,e.get=t.get.bind(t),e.dispose=t.dispose.bind(t),e.fn=t.fn.bind(t),Object.defineProperty(e,"value",{get:()=>t.value}),Object.defineProperty(e,"sneak",{get:()=>t.sneak}),e}};var Wt=class extends it{#t=!1;#e;constructor(t,e){super(t),this.#e=e?.compare??nt}toString(){return`($signal "${String(this.get())}")`}async set(t,e=!1){let r=this.sneak;return this.sneak=t,(e||!this.#e(r,t))&&await this.publish(),t}get value(){return this.get()}set value(t){this.set(t)}async publish(){if(this.#t)throw new Error("forbid circularity");let t=this.sneak,e=Promise.resolve();try{this.#t=!0,e=Promise.all([m.notifyWrite(this),this.on.publish(t)])}finally{this.#t=!1}return await e,t}get core(){return this}fn(){let t=this;function e(r){return arguments.length===0?t.get():t.set(arguments[0])}return e.core=t,e.get=t.get.bind(t),e.set=t.set.bind(t),e.on=t.on,e.dispose=t.dispose.bind(t),e.publish=t.publish.bind(t),e.fn=t.fn.bind(t),Object.defineProperty(e,"value",{get:()=>t.value,set:r=>t.value=r}),Object.defineProperty(e,"sneak",{get:()=>t.sneak,set:r=>t.sneak=r}),e}};function ds(s,t){return new Bt(s,t).fn()}function gs(s,t){return new qt(s,t).fn()}function _(s,t){return new Wt(s,t).fn()}_.lazy=ds;_.derived=gs;var S=class{#t=new tt;effect(t,e){let{seen:r,result:o}=m.observe(t);for(let i of r)this.#t.guarantee(i,()=>m.subscribe(i,e));for(let[i,n]of this.#t)r.has(i)||(n(),this.#t.delete(i));return o}clear(){for(let t of this.#t.values())t();this.#t.clear()}};var O=class{element;response;#t;constructor(t,e){this.element=t,this.response=e}start(){this.#t||(this.#t=p.attrs(this.element).on(this.response))}stop(){this.#t&&this.#t(),this.#t=void 0}};function It(s,t){At(s,bs(t))}function bs(s){let t=[];if(Array.isArray(s)){let e=new Set(s.flat(1/0).reverse());for(let r of e)t.unshift(G(r))}else s!==void 0&&t.push(G(s));return t}var B={status:s=>s[0],value:s=>s[0]==="ready"?s[1]:void 0,error:s=>s[0]==="error"?s[1]:void 0,select:(s,t)=>{switch(s[0]){case"loading":return t.loading();case"error":return t.error(s[1]);case"ready":return t.ready(s[1]);default:throw new Error("unknown op status")}},morph:(s,t)=>B.select(s,{loading:()=>["loading"],error:e=>["error",e],ready:e=>["ready",t(e)]}),all:(...s)=>{let t=[],e=[],r=0;for(let o of s)switch(o[0]){case"loading":r++;break;case"ready":t.push(o[1]);break;case"error":e.push(o[1]);break}return e.length>0?["error",e]:r===0?["ready",t]:["loading"]}};var W=class{static loading(){return new this}static ready(t){return new this(["ready",t])}static error(t){return new this(["error",t])}static promise(t){let e=new this;return e.promise(t),e}static load(t){return this.promise(t())}static all(...t){let e=t.map(r=>r.pod);return B.all(...e)}signal;#t=0;#e=fe();#s=fe();constructor(t=["loading"]){this.signal=_(t)}get wait(){return new Promise((t,e)=>{this.#e.next().then(([r])=>t(r)),this.#s.next().then(([r])=>e(r))})}get then(){return this.wait.then.bind(this.wait)}get catch(){return this.wait.catch.bind(this.wait)}get finally(){return this.wait.finally.bind(this.wait)}async setLoading(){await this.signal.set(["loading"])}async setReady(t){await this.signal.set(["ready",t]),await this.#e(t)}async setError(t){await this.signal.set(["error",t]),await this.#s(t)}async promise(t){let e=++this.#t;await this.setLoading();try{let r=await t;return e===this.#t&&await this.setReady(r),r}catch(r){console.error(r),e===this.#t&&await this.setError(r)}}async load(t){return this.promise(t())}get pod(){return this.signal.get()}set pod(t){this.signal.set(t)}get status(){return this.signal.get()[0]}get value(){return B.value(this.signal.get())}get error(){return B.error(this.signal.get())}get isLoading(){return this.status==="loading"}get isReady(){return this.status==="ready"}get isError(){return this.status==="error"}require(){let t=this.signal.get();if(t[0]!=="ready")throw new Error("required value not ready");return t[1]}select(t){return B.select(this.signal.get(),t)}morph(t){return B.morph(this.pod,t)}};var Vt=class{#t=[];#e=[];mount(t){this.#t.push(t),this.#e.push(t())}unmountAll(){for(let t of this.#e)t();this.#e=[]}remountAll(){for(let t of this.#t)this.#e.push(t())}};var Ft=class{#t;constructor(t){this.#t=t.attachInternals().states}[Symbol.iterator](){return this.#t.values()}values(){return this.#t.values()}forEach(t){return this.#t.forEach(t),this}get size(){return this.#t.size}has(t){return this.#t.has(t)}add(...t){for(let e of t)this.#t.add(e);return this}delete(...t){for(let e of t)this.#t.delete(e);return this}clear(){return this.#t.clear(),this}assign(...t){return this.clear().add(...t)}};function Fe(s){let t=p.attrs(s.element);function e(r){return s.once(()=>t.spec(r))}return e.strings=t.strings,e.numbers=t.numbers,e.booleans=t.booleans,e.spec=r=>s.once(()=>t.spec(r)),e.on=r=>s.mount(()=>t.on(r)),e}var I=Symbol(),V=Symbol(),F=Symbol(),N=class{element;shadow;renderNow;render;attrs;#t=0;#e=0;#s=new tt;#r=q();#o=new Vt;[I](t){this.#t++,this.#e=0,this.#r=q();let e=t();return this.#r.resolve(),e}[V](){this.#o.unmountAll()}[F](){this.#o.remountAll()}constructor(t,e,r,o){this.element=t,this.shadow=e,this.renderNow=r,this.render=o,this.attrs=Fe(this)}get renderCount(){return this.#t}get rendered(){return this.#r.promise}name(t){this.once(()=>this.element.setAttribute("view",t))}styles(...t){this.once(()=>It(this.shadow,t))}css(...t){return this.styles(...t)}once(t){return this.#s.guarantee(this.#e++,t)}mount(t){return this.once(()=>this.#o.mount(t))}wake(t){return this.life(()=>[t(),()=>{}])}life(t){let e=this.once(()=>({value:void 0}));return this.mount(()=>{let[r,o]=t();return e.value=r,o}),e.value}events(t){return this.mount(()=>K(this.element,t))}states(){return this.once(()=>new Ft(this.element))}op=(()=>{let t=this;function e(r){return t.once(()=>W.load(r))}return e.load=e,e.promise=r=>this.once(()=>W.promise(r)),e})();signal=(()=>{let t=this;function e(r,o){return t.once(()=>_(r,o))}return e.derived=function(o,i){return t.once(()=>_.derived(o,i))},e.lazy=function(o,i){return t.once(()=>_.lazy(o,i))},e})();derived(t,e){return this.once(()=>_.derived(t,e))}lazy(t,e){return this.once(()=>_.lazy(t,e))}};var E=class extends HTMLElement{static styles;shadow;#t;#e=0;#s=new S;#r=new O(this,()=>this.update());#o;createShadow(){return this.attachShadow({mode:"open"})}constructor(){super(),this.shadow=this.createShadow(),this.#t=new N(this,this.shadow,this.updateNow,this.update)}render(t){}updateNow=()=>{this.#t[I](()=>{this.#o=p.render(this.shadow,this.#s.effect(()=>this.render(this.#t),this.update))})};update=X(0,this.updateNow);connectedCallback(){if(this.#e===0){let t=this.constructor.styles;t&&It(this.shadow,t),this.updateNow()}else this.#t[F](),this.#o?.setConnected(!0);this.#r.start(),this.#e++}disconnectedCallback(){this.#o?.setConnected(!1),this.#t[V](),this.#s.clear(),this.#r.stop()}};function Ge(s,t,e,r){return class extends t{static view=at(r,s);#t=new S;createShadow(){return this.attachShadow(s)}render(i){return r(i)(...this.#t.effect(()=>e(this),()=>this.update()))}}}var{I:ba}=Le;var Je=s=>s.strings===void 0;var Ze={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},ge=s=>(...t)=>({_$litDirective$:s,values:t}),Gt=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,r){this._$Ct=t,this._$AM=e,this._$Ci=r}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var wt=(s,t)=>{let e=s._$AN;if(e===void 0)return!1;for(let r of e)r._$AO?.(t,!1),wt(r,t);return!0},Jt=s=>{let t,e;do{if((t=s._$AM)===void 0)break;e=t._$AN,e.delete(s),s=t}while(e?.size===0)},Ke=s=>{for(let t;t=s._$AM;s=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(s))break;e.add(s),xs(t)}};function ws(s){this._$AN!==void 0?(Jt(this),this._$AM=s,Ke(this)):this._$AM=s}function $s(s,t=!1,e=0){let r=this._$AH,o=this._$AN;if(o!==void 0&&o.size!==0)if(t)if(Array.isArray(r))for(let i=e;i<r.length;i++)wt(r[i],!1),Jt(r[i]);else r!=null&&(wt(r,!1),Jt(r));else wt(this,s)}var xs=s=>{s.type==Ze.CHILD&&(s._$AP??=$s,s._$AQ??=ws)},Zt=class extends Gt{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,r){super._$AT(t,e,r),Ke(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(wt(this,t),Jt(this))}setValue(t){if(Je(this._$Ct))this._$Ct._$AI(t,this);else{let e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}};var Kt=class s extends HTMLElement{static#t=!1;static register(){this.#t||(p.register({SlyView:s},{soft:!0,upgrade:!0}),this.#t=!0)}static make(){return this.register(),document.createElement("sly-view")}};var Qt=class{viewFn;settings;#t;#e=new S;#s;#r;#o;#i;#n;#a;constructor(t,e,r){this.viewFn=e,this.settings=r,this.#t=t,this.#r=this.#t.attachShadow(this.settings),this.#s=new N(this.#t,this.#r,this.#c,this.#h),this.#i=new O(this.#t,()=>this.#h())}update(t){return this.#o=t,this.#c(),this.#t}#c=()=>{this.#s[I](()=>{let t=this.#e.effect(()=>this.viewFn(this.#s)(...this.#o.props),()=>this.#h());d.entries(this.#t,this.#o.attrs),this.#n=p.render(this.#r,t),this.#a=p.render(this.#t,this.#o.children),this.#i.start()})};#h=X(0,this.#c);disconnected(){this.#n?.setConnected(!1),this.#a?.setConnected(!1),this.#s[V](),this.#e.clear(),this.#i.stop()}reconnected(){this.#s[F](),this.#i.start(),this.#n?.setConnected(!0),this.#a?.setConnected(!0)}};function Qe(s,t){return ge(class extends Zt{#t=Kt.make();#e=new Qt(this.#t,s,t);render(r){return this.#e.update(r)}disconnected(){this.#e.disconnected()}reconnected(){this.#e.reconnected()}})}var Yt=class{props;attrs=new Map;constructor(t){this.props=t}},Xt=class{viewFn;settings;#t;#e=new S;#s;#r;#o;#i;constructor(t,e,r){this.viewFn=e,this.settings=r,this.#t=t,this.#r=this.#t.attachShadow(this.settings),this.#s=new N(this.#t,this.#r,this.#n,this.#a),this.#i=new O(this.#t,()=>this.#a())}update(t){return this.#o=t,this.#n(),this.#t}#n=()=>{this.#s[I](()=>{let t=this.#e.effect(()=>this.viewFn(this.#s)(...this.#o.props),()=>this.#a());d.entries(this.#t,this.#o.attrs),p.render(this.#r,t),this.#i.start()})};#a=X(0,this.#n);disconnected(){this.#s[V](),this.#e.clear(),this.#i.stop()}reconnected(){this.#s[F](),this.#i.start()}};function at(s,t){let e=Qe(s,t);function r(...o){return e(new gt(o))}return r.props=(...o)=>new Lt(new gt(o),e),r.transmute=o=>at(n=>{let c=s(n);return(...a)=>c(...o(...a))},t),r.component=(o=E)=>({props:i=>Ge(t,o,i,s)}),r.naked=o=>{let i=new Xt(o,s,t);return{host:o,render:(...n)=>i.update(new Yt(n))}},r}function g(s){return at(s,{mode:"open"})}g.settings=s=>({render:t=>at(t,s)});g.render=g;g.component=s=>g(t=>()=>s(t)).component(E).props(()=>[]);var C=w`
4
- @layer reset {
5
- * {
6
- margin: 0;
7
- padding: 0;
8
- box-sizing: border-box;
9
-
10
- scrollbar-width: thin;
11
- scrollbar-color: #888 transparent;
12
- }
13
-
14
- ::-webkit-scrollbar { width: 8px; }
15
- ::-webkit-scrollbar-track { background: transparent; }
16
- ::-webkit-scrollbar-thumb { background: #333; border-radius: 1em; }
17
- ::-webkit-scrollbar-thumb:hover { background: #444; }
1
+ var hr=Object.defineProperty;var ne=(r,t)=>{for(var e in t)hr(r,e,{get:t[e],enumerable:!0})};var kt=globalThis,Rt=kt.ShadowRoot&&(kt.ShadyCSS===void 0||kt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ie=Symbol(),ve=new WeakMap,lt=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==ie)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(Rt&&t===void 0){let s=e!==void 0&&e.length===1;s&&(t=ve.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&ve.set(e,t))}return t}toString(){return this.cssText}},Se=r=>new lt(typeof r=="string"?r:r+"",void 0,ie),x=(r,...t)=>{let e=r.length===1?r[0]:t.reduce(((s,o,n)=>s+(i=>{if(i._$cssResult$===!0)return i.cssText;if(typeof i=="number")return i;throw Error("Value passed to 'css' function must be a 'css' function result: "+i+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+r[n+1]),r[0]);return new lt(e,r,ie)},Pt=(r,t)=>{if(Rt)r.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet));else for(let e of t){let s=document.createElement("style"),o=kt.litNonce;o!==void 0&&s.setAttribute("nonce",o),s.textContent=e.cssText,r.appendChild(s)}},et=Rt?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(let s of t.cssRules)e+=s.cssText;return Se(e)})(r):r;var{is:lr,defineProperty:mr,getOwnPropertyDescriptor:fr,getOwnPropertyNames:dr,getOwnPropertySymbols:gr,getPrototypeOf:yr}=Object,Ot=globalThis,Ee=Ot.trustedTypes,br=Ee?Ee.emptyScript:"",xr=Ot.reactiveElementPolyfillSupport,mt=(r,t)=>r,ae={toAttribute(r,t){switch(t){case Boolean:r=r?br:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},ke=(r,t)=>!lr(r,t),Ce={attribute:!0,type:String,converter:ae,reflect:!1,useDefault:!1,hasChanged:ke};Symbol.metadata??=Symbol("metadata"),Ot.litPropertyMetadata??=new WeakMap;var O=class 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=Ce){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){let s=Symbol(),o=this.getPropertyDescriptor(t,s,e);o!==void 0&&mr(this.prototype,t,o)}}static getPropertyDescriptor(t,e,s){let{get:o,set:n}=fr(this.prototype,t)??{get(){return this[e]},set(i){this[e]=i}};return{get:o,set(i){let c=o?.call(this);n?.call(this,i),this.requestUpdate(t,c,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Ce}static _$Ei(){if(this.hasOwnProperty(mt("elementProperties")))return;let t=yr(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(mt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(mt("properties"))){let e=this.properties,s=[...dr(e),...gr(e)];for(let o of s)this.createProperty(o,e[o])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[s,o]of e)this.elementProperties.set(s,o)}this._$Eh=new Map;for(let[e,s]of this.elementProperties){let o=this._$Eu(e,s);o!==void 0&&this._$Eh.set(o,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let s=new Set(t.flat(1/0).reverse());for(let o of s)e.unshift(et(o))}else t!==void 0&&e.push(et(t));return e}static _$Eu(t,e){let s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?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),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Pt(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){let s=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,s);if(o!==void 0&&s.reflect===!0){let n=(s.converter?.toAttribute!==void 0?s.converter:ae).toAttribute(e,s.type);this._$Em=t,n==null?this.removeAttribute(o):this.setAttribute(o,n),this._$Em=null}}_$AK(t,e){let s=this.constructor,o=s._$Eh.get(t);if(o!==void 0&&this._$Em!==o){let n=s.getPropertyOptions(o),i=typeof n.converter=="function"?{fromAttribute:n.converter}:n.converter?.fromAttribute!==void 0?n.converter:ae;this._$Em=o;let c=i.fromAttribute(e,n.type);this[o]=c??this._$Ej?.get(o)??c,this._$Em=null}}requestUpdate(t,e,s){if(t!==void 0){let o=this.constructor,n=this[t];if(s??=o.getPropertyOptions(t),!((s.hasChanged??ke)(n,e)||s.useDefault&&s.reflect&&n===this._$Ej?.get(t)&&!this.hasAttribute(o._$Eu(t,s))))return;this.C(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:o,wrapped:n},i){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,i??e??this[t]),n!==!0||i!==void 0)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),o===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[o,n]of this._$Ep)this[o]=n;this._$Ep=void 0}let s=this.constructor.elementProperties;if(s.size>0)for(let[o,n]of s){let{wrapped:i}=n,c=this[o];i!==!0||this._$AL.has(o)||c===void 0||this.C(o,void 0,n,c)}}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((s=>s.hostUpdate?.())),this.update(e)):this._$EM()}catch(s){throw t=!1,this._$EM(),s}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((e=>e.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach((e=>this._$ET(e,this[e]))),this._$EM()}updated(t){}firstUpdated(t){}};O.elementStyles=[],O.shadowRootOptions={mode:"open"},O[mt("elementProperties")]=new Map,O[mt("finalized")]=new Map,xr?.({ReactiveElement:O}),(Ot.reactiveElementVersions??=[]).push("2.1.1");var ue=globalThis,Mt=ue.trustedTypes,Re=Mt?Mt.createPolicy("lit-html",{createHTML:r=>r}):void 0,pe="$lit$",M=`lit$${Math.random().toFixed(9).slice(2)}$`,he="?"+M,$r=`<${he}>`,F=document,dt=()=>F.createComment(""),gt=r=>r===null||typeof r!="object"&&typeof r!="function",le=Array.isArray,Le=r=>le(r)||typeof r?.[Symbol.iterator]=="function",ce=`[
2
+ \f\r]`,ft=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Pe=/-->/g,Oe=/>/g,G=RegExp(`>|${ce}(?:([^\\s"'>=/]+)(${ce}*=${ce}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Me=/'/g,Te=/"/g,He=/^(?:script|style|textarea|title)$/i,me=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),$=me(1),As=me(2),vs=me(3),J=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Ne=new WeakMap,Z=F.createTreeWalker(F,129);function je(r,t){if(!le(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Re!==void 0?Re.createHTML(t):t}var Ue=(r,t)=>{let e=r.length-1,s=[],o,n=t===2?"<svg>":t===3?"<math>":"",i=ft;for(let c=0;c<e;c++){let a=r[c],p,f,h=-1,_=0;for(;_<a.length&&(i.lastIndex=_,f=i.exec(a),f!==null);)_=i.lastIndex,i===ft?f[1]==="!--"?i=Pe:f[1]!==void 0?i=Oe:f[2]!==void 0?(He.test(f[2])&&(o=RegExp("</"+f[2],"g")),i=G):f[3]!==void 0&&(i=G):i===G?f[0]===">"?(i=o??ft,h=-1):f[1]===void 0?h=-2:(h=i.lastIndex-f[2].length,p=f[1],i=f[3]===void 0?G:f[3]==='"'?Te:Me):i===Te||i===Me?i=G:i===Pe||i===Oe?i=ft:(i=G,o=void 0);let L=i===G&&r[c+1].startsWith("/>")?" ":"";n+=i===ft?a+$r:h>=0?(s.push(p),a.slice(0,h)+pe+a.slice(h)+M+L):a+M+(h===-2?c:L)}return[je(r,n+(r[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]},yt=class r{constructor({strings:t,_$litType$:e},s){let o;this.parts=[];let n=0,i=0,c=t.length-1,a=this.parts,[p,f]=Ue(t,e);if(this.el=r.createElement(p,s),Z.currentNode=this.el.content,e===2||e===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(o=Z.nextNode())!==null&&a.length<c;){if(o.nodeType===1){if(o.hasAttributes())for(let h of o.getAttributeNames())if(h.endsWith(pe)){let _=f[i++],L=o.getAttribute(h).split(M),Ct=/([.?@])?(.*)/.exec(_);a.push({type:1,index:n,name:Ct[2],strings:L,ctor:Ct[1]==="."?Nt:Ct[1]==="?"?Lt:Ct[1]==="@"?Ht:Q}),o.removeAttribute(h)}else h.startsWith(M)&&(a.push({type:6,index:n}),o.removeAttribute(h));if(He.test(o.tagName)){let h=o.textContent.split(M),_=h.length-1;if(_>0){o.textContent=Mt?Mt.emptyScript:"";for(let L=0;L<_;L++)o.append(h[L],dt()),Z.nextNode(),a.push({type:2,index:++n});o.append(h[_],dt())}}}else if(o.nodeType===8)if(o.data===he)a.push({type:2,index:n});else{let h=-1;for(;(h=o.data.indexOf(M,h+1))!==-1;)a.push({type:7,index:n}),h+=M.length-1}n++}}static createElement(t,e){let s=F.createElement("template");return s.innerHTML=t,s}};function K(r,t,e=r,s){if(t===J)return t;let o=s!==void 0?e._$Co?.[s]:e._$Cl,n=gt(t)?void 0:t._$litDirective$;return o?.constructor!==n&&(o?._$AO?.(!1),n===void 0?o=void 0:(o=new n(r),o._$AT(r,e,s)),s!==void 0?(e._$Co??=[])[s]=o:e._$Cl=o),o!==void 0&&(t=K(r,o._$AS(r,t.values),o,s)),t}var Tt=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:s}=this._$AD,o=(t?.creationScope??F).importNode(e,!0);Z.currentNode=o;let n=Z.nextNode(),i=0,c=0,a=s[0];for(;a!==void 0;){if(i===a.index){let p;a.type===2?p=new rt(n,n.nextSibling,this,t):a.type===1?p=new a.ctor(n,a.name,a.strings,this,t):a.type===6&&(p=new jt(n,this,t)),this._$AV.push(p),a=s[++c]}i!==a?.index&&(n=Z.nextNode(),i++)}return Z.currentNode=F,o}p(t){let e=0;for(let s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}},rt=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,o){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=K(this,t,e),gt(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==J&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Le(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==d&&gt(this._$AH)?this._$AA.nextSibling.data=t:this.T(F.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:s}=t,o=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=yt.createElement(je(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===o)this._$AH.p(e);else{let n=new Tt(o,this),i=n.u(this.options);n.p(e),this.T(i),this._$AH=n}}_$AC(t){let e=Ne.get(t.strings);return e===void 0&&Ne.set(t.strings,e=new yt(t)),e}k(t){le(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,s,o=0;for(let n of t)o===e.length?e.push(s=new r(this.O(dt()),this.O(dt()),this,this.options)):s=e[o],s._$AI(n),o++;o<e.length&&(this._$AR(s&&s._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let s=t.nextSibling;t.remove(),t=s}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},Q=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,o,n){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=d}_$AI(t,e=this,s,o){let n=this.strings,i=!1;if(n===void 0)t=K(this,t,e,0),i=!gt(t)||t!==this._$AH&&t!==J,i&&(this._$AH=t);else{let c=t,a,p;for(t=n[0],a=0;a<n.length-1;a++)p=K(this,c[s+a],e,a),p===J&&(p=this._$AH[a]),i||=!gt(p)||p!==this._$AH[a],p===d?t=d:t!==d&&(t+=(p??"")+n[a+1]),this._$AH[a]=p}i&&!o&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Nt=class extends Q{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}},Lt=class extends Q{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}},Ht=class extends Q{constructor(t,e,s,o,n){super(t,e,s,o,n),this.type=5}_$AI(t,e=this){if((t=K(this,t,e,0)??d)===J)return;let s=this._$AH,o=t===d&&s!==d||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==d&&(s===d||o);o&&this.element.removeEventListener(this.name,this,s),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},jt=class{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){K(this,t)}},De={M:pe,P:M,A:he,C:1,L:Ue,R:Tt,D:Le,V:K,I:rt,H:Q,N:Lt,U:Ht,B:Nt,F:jt},wr=ue.litHtmlPolyfillSupport;wr?.(yt,rt),(ue.litHtmlVersions??=[]).push("3.3.1");var g=(r,t,e)=>{let s=e?.renderBefore??t,o=s._$litPart$;if(o===void 0){let n=e?.renderBefore??null;s._$litPart$=o=new rt(t.insertBefore(dt(),n),n,void 0,e??{})}return o._$AI(r),o};var fe=globalThis,st=class extends O{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=g(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return J}};st._$litElement$=!0,st.finalized=!0,fe.litElementHydrateSupport?.({LitElement:st});var _r=fe.litElementPolyfillSupport;_r?.({LitElement:st});(fe.litElementVersions??=[]).push("4.2.1");var E={string:(r,t)=>r.getAttribute(t)??void 0,number:(r,t)=>{let e=r.getAttribute(t);return e===null||!e?void 0:Number(e)},boolean:(r,t)=>r.getAttribute(t)!==null},b={string:(r,t,e)=>(e===void 0?r.removeAttribute(t):r.setAttribute(t,e),!0),number:(r,t,e)=>(e===void 0?r.removeAttribute(t):r.setAttribute(t,e.toString()),!0),boolean:(r,t,e)=>(e?r.setAttribute(t,""):r.removeAttribute(t),!0),any:(r,t,e)=>{e==null?r.removeAttribute(t):typeof e=="string"?r.setAttribute(t,e):typeof e=="number"?r.setAttribute(t,e.toString()):typeof e=="boolean"?e===!0?r.setAttribute(t,""):r.removeAttribute(t):console.warn(`invalid attribute "${t}" type is "${typeof e}"`)},entries:(r,t)=>{for(let[e,s]of t)b.any(r,e,s)},record:(r,t)=>b.entries(r,Object.entries(t))};function ze(r,t={}){let e=document.createElement(r);return b.record(e,t),e}function qe(r){let t=document.createDocumentFragment();return g(r,t),t.firstElementChild}function Ut(r,t){let e=[];for(let[s,o]of Object.entries(t))if(typeof o=="function")r.addEventListener(s,o),e.push(()=>r.removeEventListener(s,o));else{let[n,i]=o;r.addEventListener(s,i,n),e.push(()=>r.removeEventListener(s,i))}return()=>e.forEach(s=>s())}function Be(r,t){let e=new MutationObserver(t);return e.observe(r,{attributes:!0}),()=>e.disconnect()}var Dt=class{element;constructor(t){this.element=t}strings=new Proxy({},{get:(t,e)=>E.string(this.element,e),set:(t,e,s)=>b.string(this.element,e,s)});numbers=new Proxy({},{get:(t,e)=>E.number(this.element,e),set:(t,e,s)=>b.number(this.element,e,s)});booleans=new Proxy({},{get:(t,e)=>E.boolean(this.element,e),set:(t,e,s)=>b.boolean(this.element,e,s)})};var Ie=(r,t,e={})=>new Proxy(t,{get:(s,o)=>{switch(t[o]){case String:return E.string(r,o);case Number:return E.number(r,o);case Boolean:return E.boolean(r,o);default:throw new Error(`invalid attribute type for "${o}"`)}},set:(s,o,n)=>{try{switch(e.beforeSet?.(o),t[o]){case String:return b.string(r,o,n);case Number:return b.number(r,o,n);case Boolean:return b.boolean(r,o,n);default:throw new Error(`invalid attribute type for "${o}"`)}}finally{e.afterSet?.(o)}}});function ot(r){let t=new Dt(r);return{strings:t.strings,numbers:t.numbers,booleans:t.booleans,on:e=>Be(r,e),spec:(e,s={})=>Ie(r,e,s)}}ot.get=E;ot.set=b;function We(r){return new de(r)}var de=class{tagName;#t=new Map;#e=[];constructor(t){this.tagName=t}attr(t,e=!0){return this.#t.set(t,e),this}attrs(t){for(let[e,s]of Object.entries(t))this.attr(e,s);return this}children(...t){return this.#e.push(...t),this}done(){let t=document.createElement(this.tagName);return b.entries(t,this.#t),t.append(...this.#e),t}};function nt(r,t=document){let e=t.querySelector(r);if(!e)throw new Error(`element not found (${r})`);return e}function zt(r,t=document){return t.querySelector(r)}function qt(r,t=document){return Array.from(t.querySelectorAll(r))}var Bt=class r{element;#t;constructor(t){this.element=t}in(t){return new r(typeof t=="string"?nt(t,this.element):t)}require(t){return nt(t,this.element)}maybe(t){return zt(t,this.element)}all(t){return qt(t,this.element)}render(...t){return g(t,this.element)}get attrs(){return this.#t??=ot(this.element)}events(t){return Ut(this.element,t)}};function Ve(r){return r.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()}function Ge(r,t={}){let{soft:e=!1,upgrade:s=!0}=t;for(let[o,n]of Object.entries(r)){let i=Ve(o),c=customElements.get(i);e&&c||(customElements.define(i,n),s&&document.querySelectorAll(i).forEach(a=>{a.constructor===HTMLElement&&customElements.upgrade(a)}))}}function y(r,t=document){return nt(r,t)}y.in=(r,t=document)=>new Bt(t).in(r);y.require=nt;y.maybe=zt;y.all=qt;y.el=ze;y.elmer=We;y.mk=qe;y.events=Ut;y.attrs=ot;y.register=Ge;y.render=(r,...t)=>g(t,r);function Y(){let r,t,e=new Promise((o,n)=>{r=o,t=n});function s(o){return o.then(r).catch(t),e}return{promise:e,resolve:r,reject:t,entangle:s}}function C(r){let t=null;return((...e)=>(t?t.params=e:(t={params:e,deferred:Y()},queueMicrotask(()=>{let{params:s,deferred:o}=t;t=null,Promise.resolve(r(...s)).then(o.resolve).catch(o.reject)})),t.deferred.promise))}var T={};ne(T,{clone:()=>bt,equal:()=>Ar,freeze:()=>vr});function bt(r,t=new Set){if(t.has(r))throw new Error("cannot clone circular reference");let e;return typeof r=="function"||r!==null&&typeof r=="object"?(t.add(r),Array.isArray(r)?e=r.map(s=>bt(s,new Set(t))):r.constructor===Object?e=Object.fromEntries(Object.entries(r).map(([s,o])=>[s,bt(o,new Set(t))])):r instanceof Map?e=new Map(Array.from(r,([s,o])=>[s,bt(o,new Set(t))])):r instanceof Set?e=new Set(Array.from(r,s=>bt(s,new Set(t)))):r instanceof Date?e=new Date(r.getTime()):e=r,t.delete(r)):e=r,e}var xt=Object.freeze({happy:r=>r!=null,sad:r=>r==null,boolean:r=>typeof r=="boolean",number:r=>typeof r=="number",string:r=>typeof r=="string",bigint:r=>typeof r=="bigint",object:r=>typeof r=="object"&&r!==null,array:r=>Array.isArray(r),fn:r=>typeof r=="function",symbol:r=>typeof r=="symbol"});var Ar=(r,t)=>{function e(s,o,n){if(!xt.object(s)||!xt.object(o))return s===o;if(n.includes(s))throw new Error("forbidden circularity detected in deep equal comparison");let i=[...n,s];if(s instanceof Map&&o instanceof Map){if(s.size!==o.size)return!1;for(let[c,a]of s)if(!o.has(c)||!e(a,o.get(c),i))return!1}else if(s instanceof Set&&o instanceof Set){if(s.size!==o.size)return!1;for(let c of s)if(!Array.from(o).some(a=>e(c,a,i)))return!1}else{let c=Object.keys(s),a=Object.keys(o);if(c.length!==a.length)return!1;for(let p of c)if(!a.includes(p)||!e(s[p],o[p],i))return!1}return!0}return e(r,t,[])};function vr(r){function t(e,s){if(!xt.object(e)||s.includes(e))return e;let o=[...s,e];if(e instanceof Map)for(let n of e.entries())for(let i of n)t(i,o);else if(e instanceof Set)for(let n of e)t(n,o);else if(Array.isArray(e))for(let n of e)t(n,o);else for(let n of Object.values(e))t(n,o);return Object.freeze(e)}return t(r,[])}var It=class r extends Map{static require(t,e){if(t.has(e))return t.get(e);throw new Error(`required key not found: "${e}"`)}static guarantee(t,e,s){if(t.has(e))return t.get(e);{let o=s();return t.set(e,o),o}}array(){return[...this]}require(t){return r.require(this,t)}guarantee(t,e){return r.guarantee(this,t,e)}};function it(r){let t,e=!1,s=()=>{e=!0,clearTimeout(t)},o=async()=>{e||(await r(s),!e&&(t=setTimeout(o,0)))};return o(),s}var at=(r=0)=>new Promise(t=>setTimeout(t,r));function Ze(){let r=new Set;async function t(...a){await Promise.all([...r].map(p=>p(...a)))}function e(a){return r.add(a),()=>{r.delete(a)}}async function s(...a){return t(...a)}function o(a){return e(a)}async function n(a){let{promise:p,resolve:f}=Y(),h=o(async(..._)=>{a&&await a(..._),f(_),h()});return p}function i(){r.clear()}let c={pub:s,sub:o,publish:t,subscribe:e,on:e,next:n,clear:i};return Object.assign(o,c),Object.assign(s,c),c}function H(r){let t=Ze();return r&&t.sub(r),t.sub}function ge(r){let t=Ze();return r&&t.sub(r),t.pub}var ye=class{#t=[];#e=new WeakMap;#r=[];#s=new Set;notifyRead(t){this.#t.at(-1)?.add(t)}async notifyWrite(t){if(this.#s.has(t))throw new Error("circularity forbidden");let e=this.#o(t).pub();return this.#r.at(-1)?.add(e),e}observe(t){this.#t.push(new Set);let e=t();return{seen:this.#t.pop(),result:e}}subscribe(t,e){return this.#o(t)(async()=>{let s=new Set;this.#r.push(s),this.#s.add(t),s.add(e()),this.#s.delete(t),await Promise.all(s),this.#r.pop()})}#o(t){let e=this.#e.get(t);return e||(e=H(),this.#e.set(t,e)),e}},l=globalThis[Symbol.for("e280.tracker")]??=new ye;var Wt=class r{sneak;on;dispose;constructor(t,e){if(new.target!==r)throw new Error("Derived cannot be subclassed");return Vt(t,e)}get value(){return this.get()}get(){return l.notifyRead(this),this.sneak}toString(){return`(derived "${String(this.get())}")`}};function be(r,t){let e=[],s=()=>{for(let i of e)i();e=[]},o=()=>{let{seen:i,result:c}=l.observe(r);for(let a of i)e.push(l.subscribe(a,n));return c},n=C(()=>{s(),t?t(o()):o()});return{result:o(),dispose:s}}function ct(r,t){return Object.is(r,t)}function Vt(r,t){function e(){return e.get()}let s=t?.compare??ct;Object.setPrototypeOf(e,Wt.prototype),e.on=H();let{result:o,dispose:n}=be(r,async i=>{!s(e.sneak,i)&&(e.sneak=i,await Promise.all([l.notifyWrite(e),e.on.pub(i)]))});return e.sneak=o,e.dispose=n,e}var X=Symbol(),j=Symbol(),U=Symbol(),Gt=Symbol(),k=Symbol(),$t=Symbol(),N=Symbol();var Zt=class r{sneak;[$t];[j];[N];[U];[k];constructor(t,e){if(new.target!==r)throw new Error("Lazy cannot be subclassed");return Ft(t,e)}get value(){return this.get()}[Gt](){for(let o of this[N])o();this[N]=[];let{seen:t,result:e}=l.observe(this[$t]),s=async()=>{this[j]=!0};for(let o of t)this[N].push(l.subscribe(o,s));return this[U]=()=>{for(let o of this[N])o();this[N]=[]},e}get(){if(!this[U])this.sneak=this[Gt](),this[j]=!1;else if(this[j]){this[j]=!1;let t=this[Gt]();!this[k](this.sneak,t)&&(this.sneak=t,l.notifyWrite(this))}return l.notifyRead(this),this.sneak}dispose(){this[U]&&this[U]()}toString(){return`($lazy "${String(this.get())}")`}};function Ft(r,t){function e(){return e.get()}return Object.setPrototypeOf(e,Zt.prototype),e.sneak=void 0,e[$t]=r,e[j]=!1,e[U]=void 0,e[N]=[],e[k]=t?.compare??ct,e}var Jt=class r{sneak;on;[X];[k];constructor(t,e){if(new.target!==r)throw new Error("Signal cannot be subclassed");return D(t,e)}get value(){return this.get()}set value(t){this.set(t)}get(){return l.notifyRead(this),this.sneak}async set(t,e=!1){let s=this.sneak;return this.sneak=t,(e||!this[k](s,t))&&await this.publish(),t}async publish(){if(this[X])throw new Error("forbid circularity");let t=this.sneak,e=Promise.resolve();try{this[X]=!0,e=Promise.all([l.notifyWrite(this),this.on.pub(t)])}finally{this[X]=!1}return await e,t}toString(){return`($signal "${String(this.get())}")`}};function D(r,t){function e(s){let o=e;return arguments.length===0?o.get():o.set(arguments[0])}return Object.setPrototypeOf(e,Jt.prototype),e.sneak=r,e.on=H(),e[X]=!1,e[k]=t?.compare??ct,e}D.derived=Vt;D.lazy=Ft;var tt={status:r=>r[0],value:r=>r[0]==="ready"?r[1]:void 0,error:r=>r[0]==="error"?r[1]:void 0,select:(r,t)=>{switch(r[0]){case"loading":return t.loading();case"error":return t.error(r[1]);case"ready":return t.ready(r[1]);default:throw new Error("unknown op status")}},morph:(r,t)=>tt.select(r,{loading:()=>["loading"],error:e=>["error",e],ready:e=>["ready",t(e)]}),all:(...r)=>{let t=[],e=[],s=0;for(let o of r)switch(o[0]){case"loading":s++;break;case"ready":t.push(o[1]);break;case"error":e.push(o[1]);break}return e.length>0?["error",e]:s===0?["ready",t]:["loading"]}};var wt=class{static loading(){return new this}static ready(t){return new this(["ready",t])}static error(t){return new this(["error",t])}static promise(t){let e=new this;return e.promise(t),e}static load(t){return this.promise(t())}static all(...t){let e=t.map(s=>s.pod);return tt.all(...e)}signal;#t=0;#e=ge();#r=ge();constructor(t=["loading"]){this.signal=D(t)}get wait(){return new Promise((t,e)=>{this.#e.next().then(([s])=>t(s)),this.#r.next().then(([s])=>e(s))})}get then(){return this.wait.then.bind(this.wait)}get catch(){return this.wait.catch.bind(this.wait)}get finally(){return this.wait.finally.bind(this.wait)}async setLoading(){await this.signal.set(["loading"])}async setReady(t){await this.signal.set(["ready",t]),await this.#e(t)}async setError(t){await this.signal.set(["error",t]),await this.#r(t)}async promise(t){let e=++this.#t;await this.setLoading();try{let s=await t;return e===this.#t&&await this.setReady(s),s}catch(s){console.error(s),e===this.#t&&await this.setError(s)}}async load(t){return this.promise(t())}get pod(){return this.signal.get()}set pod(t){this.signal.set(t)}get status(){return this.signal.get()[0]}get value(){return tt.value(this.signal.get())}get error(){return tt.error(this.signal.get())}get isLoading(){return this.status==="loading"}get isReady(){return this.status==="ready"}get isError(){return this.status==="error"}require(){let t=this.signal.get();if(t[0]!=="ready")throw new Error("required value not ready");return t[1]}select(t){return tt.select(this.signal.get(),t)}morph(t){return tt.morph(this.pod,t)}};var _t=class{render;count=0;rendered=Y();constructor(t){this.render=t}doneRender(){this.count++,this.rendered.resolve(),this.rendered=Y()}},z=class extends _t{host;shadow;constructor(t,e,s){super(t),this.host=e,this.shadow=s}};var xe=class{#t=[];get scope(){let t=this.#t.at(-1);if(!t)throw new Error("hooks must be called within a render fn");return t}increment(){let t=this.scope,e=t.position++;return{scope:t,position:e}}wrap(t,e){t.position=0,this.#t.push(t);try{return e()}finally{this.#t.pop()}}},A=globalThis[Symbol.for("e280.hooks")]??=new xe;var Kt=class r extends HTMLElement{static register(){y.register({SlyShadow:r},{soft:!0})}connectedCallback(){this.hasAttribute("view")||this.setAttribute("view","")}};function Fe(r){return T.freeze(T.clone(r))}var R=Symbol("optic");var Qt=class{calculate;#t=!1;#e;constructor(t){this.calculate=t,this.#e=t()}get(){return this.#t&&(this.#t=!1,this.#e=this.calculate()),this.#e}invalidate(){this.#t=!0}};var Yt=class r{on=H();[R];#t;#e;#r=C(()=>this.on.publish(this.state));constructor(t){this[R]=t,this.#t=T.clone(t.getState()),this.#e=new Qt(()=>Fe(t.getState()))}async update(){let t=this[R].getState();!T.equal(t,this.#t)&&(this.#e.invalidate(),this.#t=T.clone(t),this.#r(),await l.notifyWrite(this))}get state(){return l.notifyRead(this),this.#e.get()}async mutate(t){return this[R].mutate(t)}lens(t){let e=new r({getState:()=>t(this[R].getState()),mutate:s=>this[R].mutate(o=>s(t(o))),registerLens:this[R].registerLens});return this[R].registerLens(e),e}};var q=class{#t=[];clear(){this.#t.forEach(t=>t()),this.#t=[]}observe(t,e){let{seen:s,result:o}=l.observe(t);this.clear();for(let n of s){let i=l.subscribe(n,e);this.#t.push(i)}return o}};function Je(r,t){for(let[e,s]of Object.entries(t))Sr(r,e,s)}function Sr(r,t,e){let s=r.getAttribute(t),o=Er(e);o!==s&&(o===null?r.removeAttribute(t):r.setAttribute(t,o))}function Er(r){return typeof r=="string"?r:typeof r=="number"?r.toString():r?"":null}function w(r){let{scope:t,position:e}=A.increment();return t.values.guarantee(e,r)}function B(r){let{scope:t}=A.increment();return w(()=>t.mounts.mount(r))}var Xt=class{#t=[];#e=[];mount(t){this.#t.push(t),this.#e.push(t())}unmountAll(){for(let t of this.#e)t();this.#e=[]}remountAll(){for(let t of this.#t)this.#e.push(t())}};var I=class{cx;position=0;values=new It;mounts=new Xt;constructor(t){this.cx=t}};var{I:Vi}=De;var Ke=r=>r.strings===void 0;var Qe={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},At=r=>(...t)=>({_$litDirective$:r,values:t}),te=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var vt=(r,t)=>{let e=r._$AN;if(e===void 0)return!1;for(let s of e)s._$AO?.(t,!1),vt(s,t);return!0},ee=r=>{let t,e;do{if((t=r._$AM)===void 0)break;e=t._$AN,e.delete(r),r=t}while(e?.size===0)},Ye=r=>{for(let t;t=r._$AM;r=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(r))break;e.add(r),Rr(t)}};function Cr(r){this._$AN!==void 0?(ee(this),this._$AM=r,Ye(this)):this._$AM=r}function kr(r,t=!1,e=0){let s=this._$AH,o=this._$AN;if(o!==void 0&&o.size!==0)if(t)if(Array.isArray(s))for(let n=e;n<s.length;n++)vt(s[n],!1),ee(s[n]);else s!=null&&(vt(s,!1),ee(s));else vt(this,r)}var Rr=r=>{r.type==Qe.CHILD&&(r._$AP??=kr,r._$AQ??=Cr)},ut=class extends te{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),Ye(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(vt(this,t),ee(this))}setValue(t){if(Ke(this._$Ct))this._$Ct._$AI(t,this);else{let e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}};function Pr(){Kt.register();let r=document.createElement("sly-shadow"),t=r.attachShadow({mode:"open"});return{host:r,shadow:t}}function S(r){return Xe(Pr,r)}S.setup=r=>(t=>Xe(r,t));function Xe(r,t){let e=At(class extends ut{#t;#e;#r;#s=new q;constructor(o){super(o);let{host:n,shadow:i}=r(),c=C(()=>{if(!this.#r)throw new Error("cannot render before props");if(!this.isConnected)return;let a=this.#o(this.#r);g(a,this.#t.shadow),this.#t.doneRender()});this.#t=new z(c,n,i),this.#e=new I(this.#t)}#o(o){return this.#r=o,this.#s.observe(()=>A.wrap(this.#e,()=>t(...this.#r)),this.#t.render)}render({props:o,children:n,attrs:i}){let{host:c}=this.#t;return this.isConnected&&(i&&Je(c,i),g(n,this.#t.host),g(this.#o(o),this.#t.shadow),this.#t.doneRender()),c}disconnected(){this.#e.mounts.unmountAll(),this.#s.clear()}reconnected(){this.#e.mounts.remountAll(),this.#t.render()}});function s(...o){return e({props:o})}return s.with=e,s}var Et={};ne(Et,{AsciiAnim:()=>ir,ErrorDisplay:()=>Ae,anims:()=>_e,make:()=>fs,makeAsciiAnim:()=>u,mock:()=>ds});var _e={};ne(_e,{arrow:()=>jr,bar:()=>Ur,bar2:()=>Dr,bar3:()=>zr,bar4:()=>qr,bin:()=>rs,binary:()=>ss,binary2:()=>os,block:()=>Br,block2:()=>Ir,brackets:()=>Fr,brackets2:()=>Jr,braille:()=>Hr,bright:()=>ps,clock:()=>as,cylon:()=>Gr,dots:()=>Kr,dots2:()=>Qr,earth:()=>we,fistbump:()=>cs,kiss:()=>is,lock:()=>us,moon:()=>ls,pie:()=>Vr,pulseblue:()=>ns,runner:()=>Wr,slider:()=>Zr,speaker:()=>hs,spinner:()=>Lr,wave:()=>Yr,wavepulse:()=>ts,wavepulse2:()=>es,wavescrub:()=>Xr});var W=x`
4
+ * {
5
+ margin: 0;
6
+ padding: 0;
7
+ box-sizing: border-box;
8
+
9
+ scrollbar-width: thin;
10
+ scrollbar-color: #888 transparent;
18
11
  }
19
- `;var ye=g(s=>(t,e)=>{s.name("counter"),s.styles(C,_s);let r=s.signal(t),o=()=>{r.value+=e};return $`
20
- <slot></slot>
21
- <div>
22
- <span>${r()}</span>
23
- </div>
24
- <div>
25
- <button @click="${o}">++</button>
26
- </div>
27
- `}),te=class extends ye.component(class extends E{attrs=p.attrs(this).spec({start:Number,step:Number})}).props(t=>[t.attrs.start??0,t.attrs.step??1]){},_s=w`
28
- :host {
29
- display: flex;
30
- justify-content: center;
31
- gap: 1em;
32
- }
33
12
 
34
- button {
35
- padding: 0.2em 0.5em;
36
- }
37
- `;var $t={};re($t,{AsciiAnim:()=>Ye,ErrorDisplay:()=>$e,anims:()=>we,make:()=>rr,makeAsciiAnim:()=>h,mock:()=>or});var we={};re(we,{arrow:()=>Es,bar:()=>Cs,bar2:()=>ks,bar3:()=>Ps,bar4:()=>Rs,bin:()=>Vs,binary:()=>Fs,binary2:()=>Gs,block:()=>Ts,block2:()=>Ms,brackets:()=>Us,brackets2:()=>Hs,braille:()=>Ss,bright:()=>Xs,clock:()=>Ks,cylon:()=>js,dots:()=>zs,dots2:()=>Ds,earth:()=>be,fistbump:()=>Qs,kiss:()=>Zs,lock:()=>Ys,moon:()=>er,pie:()=>Ns,pulseblue:()=>Js,runner:()=>Os,slider:()=>Ls,speaker:()=>tr,spinner:()=>As,wave:()=>qs,wavepulse:()=>Ws,wavepulse2:()=>Is,wavescrub:()=>Bs});function h(s,t){return()=>Ye({hz:s,frames:t})}var Ye=g(s=>({hz:t,frames:e})=>{s.name("loading"),s.styles(C,vs);let r=s.signal(0);return s.mount(()=>et(async()=>{await st(1e3/t);let o=r.get()+1;r.set(o>=e.length?0:o)})),e.at(r.get())}),vs=w`
13
+ ::-webkit-scrollbar { width: 8px; }
14
+ ::-webkit-scrollbar-track { background: transparent; }
15
+ ::-webkit-scrollbar-thumb { background: #888; border-radius: 1em; }
16
+ ::-webkit-scrollbar-thumb:hover { background: #999; }
17
+ `;function re(r){return At(class extends ut{#t;#e=new _t(C(()=>{if(!this.#t)throw new Error("cannot render before props");if(this.isConnected){let e=this.render(...this.#t);this.setValue(e),this.#e.doneRender()}}));#r=new I(this.#e);#s=new q;update(e,s){let o=super.update(e,s);return this.isConnected&&this.#e.doneRender(),o}render(...e){return this.#t=e,this.#s.observe(()=>A.wrap(this.#r,()=>r(...this.#t)),this.#e.render)}disconnected(){this.#r.mounts.unmountAll(),this.#s.clear()}reconnected(){this.#r.mounts.remountAll(),this.#e.render()}})}function tr(r){let t=re(r);return class extends HTMLElement{connectedCallback(){g(t(),this)}disconnectedCallback(){g(null,this)}}}function er(r){return class extends HTMLElement{#t;#e;#r=new q;#s=this.attachShadow({mode:"open"});constructor(){super();let t=C(()=>{if(!this.isConnected)return;let e=this.#o();g(e,this.#t.shadow),this.#t.doneRender()});this.#t=new z(t,this,this.#s),this.#e=new I(this.#t)}#o(){return this.#r.observe(()=>A.wrap(this.#e,()=>r()),this.#t.render)}render(){g(this.#o(),this.#t.shadow),this.#t.doneRender()}connectedCallback(){this.#e.mounts.remountAll(),this.#t.render()}disconnectedCallback(){this.#e.mounts.unmountAll(),this.#r.clear()}}}function Or(){let{scope:r}=A.increment();return r.cx}function rr(){let r=Or();if(!(r instanceof z))throw new Error("this hook only works on shadow views (but was called in a light view)");return r}function $e(){return rr().host}function sr(){return rr().shadow}function nr(r,t){Pt(r,Tr(t))}function Tr(r){let t=[];if(Array.isArray(r)){let e=new Set(r.flat(1/0).reverse());for(let s of e)t.unshift(et(s))}else r!==void 0&&t.push(et(r));return t}function St(...r){let t=sr();w(()=>nr(t,r))}var V=St;function v(r=""){let t=$e();w(()=>t.setAttribute("view",r))}function P(r){return w(()=>D(r))}function u(r,t){return()=>ir({hz:r,frames:t})}var ir=S(({hz:r,frames:t})=>{v("loading"),V(W,Nr);let e=P(0);return B(()=>it(async()=>{await at(1e3/r);let s=e.get()+1;e.set(s>=t.length?0:s)})),t.at(e.get())}),Nr=x`
38
18
  :host {
39
19
  font-family: monospace;
40
20
  white-space: pre;
41
21
  user-select: none;
42
22
  }
43
- `;var f=20,ct=10,ht=4,As=h(f,["|","/","-","\\"]),Ss=h(f,["\u2808","\u2810","\u2820","\u2880","\u2840","\u2804","\u2802","\u2801"]),Es=h(f,["\u2B06\uFE0F","\u2197\uFE0F","\u27A1\uFE0F","\u2198\uFE0F","\u2B07\uFE0F","\u2199\uFE0F","\u2B05\uFE0F","\u2196\uFE0F"]),Cs=h(f,["\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B1\u25B0\u25B1\u25B1\u25B1","\u25B1\u25B1\u25B0\u25B1\u25B1","\u25B1\u25B1\u25B1\u25B0\u25B1","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B1","\u25B1\u25B1\u25B0\u25B1\u25B1","\u25B1\u25B0\u25B1\u25B1\u25B1"]),ks=h(f,["\u25B1\u25B1\u25B0\u25B1\u25B1","\u25B1\u25B1\u25B1\u25B0\u25B1","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B1","\u25B1\u25B1\u25B0\u25B1\u25B1","\u25B1\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B1\u25B0\u25B1\u25B1\u25B1"]),Ps=h(f,["\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B1\u25B0\u25B0\u25B0\u25B1","\u25B1\u25B1\u25B0\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B0\u25B0\u25B0","\u25B1\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1"]),Rs=h(f,["\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B1\u25B0\u25B0\u25B0\u25B0","\u25B1\u25B1\u25B0\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0"]),Ts=h(f,["\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581","\u2588\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581","\u2588\u2588\u2588\u2588\u2581","\u2588\u2588\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2588","\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2588"]),Ms=h(f,["\u2588\u2581\u2581\u2581\u2581","\u2588\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581","\u2588\u2588\u2588\u2588\u2581","\u2588\u2588\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2588","\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2588\u2588\u2588","\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581","\u2588\u2588\u2588\u2581\u2581","\u2588\u2588\u2581\u2581\u2581"]),Os=h(ht,["\u{1F6B6}","\u{1F3C3}"]),Ns=h(ct,["\u25F7","\u25F6","\u25F5","\u25F4"]),js=h(f,["=----","-=---","--=--","---=-","----=","----=","---=-","--=--","-=---","=----"]),Ls=h(f,["o----","-o---","--o--","---o-","----o","----o","---o-","--o--","-o---","o----"]),Us=h(ct,["[ ]","[ ]","[= ]","[== ]","[===]","[ ==]","[ =]"]),Hs=h(ct,["[ ]","[ ]","[= ]","[== ]","[===]","[ ==]","[ =]","[ ]","[ ]","[ =]","[ ==]","[===]","[== ]","[= ]"]),zs=h(ct,[" "," ",". ",".. ","..."," .."," ."]),Ds=h(f,[". ",". ",".. ","..."," .."," ."," ."," ..","...",".. "]),qs=h(f,[".....",".....",":....","::...",":::..","::::.",":::::",":::::",".::::","..:::","...::","....:"]),Bs=h(f,[":....",":....","::...",".::..","..::.","...::","....:","....:","...::","..::.",".::..","::..."]),Ws=h(f,[".....",".....","..:..",".:::.",".:::.",":::::",":::::","::.::",":...:"]),Is=h(f,[".....",".....","..:..",".:::.",".:::.",":::::",":::::","::.::",":...:",".....",".....",":...:","::.::",":::::",":::::",".:::.",".:::.","..:.."]),Vs=h(f,["000","100","110","111","011","001"]),Fs=h(f,["11111","01111","00111","10011","11001","01100","00110","10011","11001","11100","11110"]),Gs=h(f,["11111","01111","10111","11011","11101","11110","11111","11110","11101","11011","10111","01111"]),Js=h(ht,["\u{1F539}","\u{1F535}"]),Zs=h(ct,["\u{1F642}","\u{1F642}","\u{1F617}","\u{1F619}","\u{1F618}","\u{1F618}","\u{1F619}"]),Ks=h(f,["\u{1F550}","\u{1F551}","\u{1F552}","\u{1F553}","\u{1F554}","\u{1F555}","\u{1F556}","\u{1F557}","\u{1F558}","\u{1F559}","\u{1F55A}","\u{1F55B}"]),Qs=h(f,["\u{1F91C} \u{1F91B}","\u{1F91C} \u{1F91B}","\u{1F91C} \u{1F91B}"," \u{1F91C} \u{1F91B} "," \u{1F91C}\u{1F91B} "," \u{1F91C}\u{1F91B} "," \u{1F91C}\u{1F4A5}\u{1F91B} ","\u{1F91C} \u{1F4A5} \u{1F91B}","\u{1F91C} \u2728 \u{1F91B}","\u{1F91C} \u2728 \u{1F91B}"]),be=h(ht,["\u{1F30E}","\u{1F30F}","\u{1F30D}"]),Ys=h(ht,["\u{1F513}","\u{1F512}"]),Xs=h(ht,["\u{1F505}","\u{1F506}"]),tr=h(ht,["\u{1F508}","\u{1F508}","\u{1F509}","\u{1F50A}","\u{1F50A}","\u{1F509}"]),er=h(ct,["\u{1F311}","\u{1F311}","\u{1F311}","\u{1F318}","\u{1F317}","\u{1F316}","\u{1F315}","\u{1F314}","\u{1F313}","\u{1F312}"]);var $e=g(s=>t=>(s.name("error"),s.styles(C,sr),typeof t=="string"?t:t instanceof Error?$`<strong>${t.name}:</strong> <span>${t.message}</span>`:"error")),sr=w`
44
- :host {
45
- font-family: monospace;
46
- color: red;
47
- }
48
- `;function rr(s=be,t=e=>$e(e)){return(e,r)=>e.select({loading:s,ready:r,error:t})}function or(){return(s,t)=>s.select({ready:t,loading:()=>"[loading]",error:()=>"[error]"})}var Xe=g(s=>()=>{s.name("loaders"),s.styles(C,ir);let t=s.once(()=>W.loading());return s.once(()=>Object.entries($t.anims).map(([r,o])=>({key:r,loader:$t.make(o)}))).map(({key:r,loader:o})=>$`
49
- <div data-anim="${r}">
50
- <span>${r}</span>
51
- <span>${o(t,()=>null)}</span>
23
+ `;var m=20,pt=10,ht=4,Lr=u(m,["|","/","-","\\"]),Hr=u(m,["\u2808","\u2810","\u2820","\u2880","\u2840","\u2804","\u2802","\u2801"]),jr=u(m,["\u2B06\uFE0F","\u2197\uFE0F","\u27A1\uFE0F","\u2198\uFE0F","\u2B07\uFE0F","\u2199\uFE0F","\u2B05\uFE0F","\u2196\uFE0F"]),Ur=u(m,["\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B1\u25B0\u25B1\u25B1\u25B1","\u25B1\u25B1\u25B0\u25B1\u25B1","\u25B1\u25B1\u25B1\u25B0\u25B1","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B1","\u25B1\u25B1\u25B0\u25B1\u25B1","\u25B1\u25B0\u25B1\u25B1\u25B1"]),Dr=u(m,["\u25B1\u25B1\u25B0\u25B1\u25B1","\u25B1\u25B1\u25B1\u25B0\u25B1","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B1","\u25B1\u25B1\u25B0\u25B1\u25B1","\u25B1\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B1\u25B0\u25B1\u25B1\u25B1"]),zr=u(m,["\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B1\u25B0\u25B0\u25B0\u25B1","\u25B1\u25B1\u25B0\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B0\u25B0\u25B0","\u25B1\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1"]),qr=u(m,["\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B1\u25B0\u25B0\u25B0\u25B0","\u25B1\u25B1\u25B0\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0"]),Br=u(m,["\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581","\u2588\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581","\u2588\u2588\u2588\u2588\u2581","\u2588\u2588\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2588","\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2588"]),Ir=u(m,["\u2588\u2581\u2581\u2581\u2581","\u2588\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581","\u2588\u2588\u2588\u2588\u2581","\u2588\u2588\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2588","\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2588\u2588\u2588","\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581","\u2588\u2588\u2588\u2581\u2581","\u2588\u2588\u2581\u2581\u2581"]),Wr=u(ht,["\u{1F6B6}","\u{1F3C3}"]),Vr=u(pt,["\u25F7","\u25F6","\u25F5","\u25F4"]),Gr=u(m,["=----","-=---","--=--","---=-","----=","----=","---=-","--=--","-=---","=----"]),Zr=u(m,["o----","-o---","--o--","---o-","----o","----o","---o-","--o--","-o---","o----"]),Fr=u(pt,["[ ]","[ ]","[= ]","[== ]","[===]","[ ==]","[ =]"]),Jr=u(pt,["[ ]","[ ]","[= ]","[== ]","[===]","[ ==]","[ =]","[ ]","[ ]","[ =]","[ ==]","[===]","[== ]","[= ]"]),Kr=u(pt,[" "," ",". ",".. ","..."," .."," ."]),Qr=u(m,[". ",". ",".. ","..."," .."," ."," ."," ..","...",".. "]),Yr=u(m,[".....",".....",":....","::...",":::..","::::.",":::::",":::::",".::::","..:::","...::","....:"]),Xr=u(m,[":....",":....","::...",".::..","..::.","...::","....:","....:","...::","..::.",".::..","::..."]),ts=u(m,[".....",".....","..:..",".:::.",".:::.",":::::",":::::","::.::",":...:"]),es=u(m,[".....",".....","..:..",".:::.",".:::.",":::::",":::::","::.::",":...:",".....",".....",":...:","::.::",":::::",":::::",".:::.",".:::.","..:.."]),rs=u(m,["000","100","110","111","011","001"]),ss=u(m,["11111","01111","00111","10011","11001","01100","00110","10011","11001","11100","11110"]),os=u(m,["11111","01111","10111","11011","11101","11110","11111","11110","11101","11011","10111","01111"]),ns=u(ht,["\u{1F539}","\u{1F535}"]),is=u(pt,["\u{1F642}","\u{1F642}","\u{1F617}","\u{1F619}","\u{1F618}","\u{1F618}","\u{1F619}"]),as=u(m,["\u{1F550}","\u{1F551}","\u{1F552}","\u{1F553}","\u{1F554}","\u{1F555}","\u{1F556}","\u{1F557}","\u{1F558}","\u{1F559}","\u{1F55A}","\u{1F55B}"]),cs=u(m,["\u{1F91C} \u{1F91B}","\u{1F91C} \u{1F91B}","\u{1F91C} \u{1F91B}"," \u{1F91C} \u{1F91B} "," \u{1F91C}\u{1F91B} "," \u{1F91C}\u{1F91B} "," \u{1F91C}\u{1F4A5}\u{1F91B} ","\u{1F91C} \u{1F4A5} \u{1F91B}","\u{1F91C} \u2728 \u{1F91B}","\u{1F91C} \u2728 \u{1F91B}"]),we=u(ht,["\u{1F30E}","\u{1F30F}","\u{1F30D}"]),us=u(ht,["\u{1F513}","\u{1F512}"]),ps=u(ht,["\u{1F505}","\u{1F506}"]),hs=u(ht,["\u{1F508}","\u{1F508}","\u{1F509}","\u{1F50A}","\u{1F50A}","\u{1F509}"]),ls=u(pt,["\u{1F311}","\u{1F311}","\u{1F311}","\u{1F318}","\u{1F317}","\u{1F316}","\u{1F315}","\u{1F314}","\u{1F313}","\u{1F312}"]);var Ae=S(r=>(v("error"),V(W,ms),typeof r=="string"?r:r instanceof Error?$`<strong>${r.name}:</strong> <span>${r.message}</span>`:"error")),ms=x`
24
+ :host {
25
+ font-family: monospace;
26
+ color: red;
27
+ }
28
+ `;function fs(r=we,t=e=>Ae(e)){return(e,s)=>e.select({loading:r,ready:s,error:t})}function ds(){return(r,t)=>r.select({ready:t,loading:()=>"[loading]",error:()=>"[error]"})}var ar=S(()=>{v("loaders"),V(W,gs);let r=w(()=>wt.loading());return w(()=>Object.entries(Et.anims).map(([e,s])=>({key:e,loader:Et.make(s)}))).map(({key:e,loader:s})=>$`
29
+ <div data-anim="${e}">
30
+ <span>${e}</span>
31
+ <span>${s(r,()=>null)}</span>
52
32
  </div>
53
- `)}),ir=w`
33
+ `)}),gs=x`
54
34
  :host {
55
35
  display: flex;
56
36
  flex-direction: row;
@@ -91,24 +71,33 @@ div {
91
71
  min-height: 2.5em;
92
72
  }
93
73
  }
94
- `;var ts=g(s=>()=>{let t=s.signal(!1);return s.mount(()=>et(async()=>{await st(1e3),t(!t())})),t()?nr():$`bravo`}),nr=g(()=>()=>$`
95
- <span>${ar()}</span>
96
- `),ar=g(s=>()=>(s.mount(()=>()=>{}),$`charlie`));var ee=class extends g.component(t=>(t.name("demo"),t.styles(C,cr),$`
97
- ${ts()}
98
-
99
- ${ye.props(768,3).children("view").render()}
100
-
101
- ${Xe()}
102
- `)){},cr=w`
103
- :host {
104
- display: flex;
105
- flex-direction: column;
106
- align-items: center;
107
- gap: 1em;
108
- }
109
- `;var se=class extends E{static styles=w`span{color:orange}`;attrs=p.attrs(this).spec({value:Number});something={whatever:"rofl"};render(t){let{value:e=1}=this.attrs,r=t.signal(0);return t.mount(()=>et(async()=>{await st(10),await r(r()+1)})),$`
110
- <span>${r()*e}</span>
111
- `}};p.register({DemoComponent:ee,CounterComponent:te,FastcountElement:se});console.log("\u{1F99D} sly");
74
+ `;var cr=re(r=>{let t=P(r);return $`
75
+ <button @click="${()=>t.value++}">${t()}</button>
76
+ `});var ur=S(r=>{v("counter-shadow"),St(x`:host{display:inline-block} button{color:cyan}`);let t=P(r);return $`
77
+ <button @click="${()=>t.value++}">${t()}</button>
78
+ `});var pr=S(()=>(v("demo"),V(W,ys),$`
79
+ <p>light ${cr(123)}</p>
80
+
81
+ <p>
82
+ shadow ${ur.with({props:[234],attrs:{"data-lol":555},children:$`<p>hello</p>`})}
83
+ </p>
84
+
85
+ <time-shadow></time-shadow>
86
+ <time-light></time-light>
87
+
88
+ ${ar()}
89
+ `)),ys=x`
90
+ :host {
91
+ display: flex;
92
+ flex-direction: column;
93
+ align-items: center;
94
+ gap: 1em;
95
+ }
96
+ `;var se=class extends tr(()=>{let t=P(Date.now());return B(()=>it(async()=>{await at(100),t(Date.now())})),$`
97
+ <p>${t()}</p>
98
+ `}){};var oe=class extends er(()=>{v("time-shadow"),St(x`:host{display:inline-block} button{color:cyan}`);let t=P(Date.now());return B(()=>it(async()=>{await at(100),t(Date.now())})),$`
99
+ <p>${t()}</p>
100
+ `}){};y.register({TimeShadow:oe,TimeLight:se});y.render(y(".demo"),pr());console.log("\u{1F99D} sly");
112
101
  /*! Bundled license information:
113
102
 
114
103
  @lit/reactive-element/css-tag.js: