@e280/sly 0.2.0-5 → 0.2.0-6

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.
package/README.md CHANGED
@@ -4,15 +4,14 @@
4
4
  # 🦝 sly
5
5
  > *mischievous shadow views*
6
6
 
7
- [@e280](https://e280.org/)'s shiny, tasteful, incredible new [lit](https://lit.dev/)-based toolkit for frontend web developers.
8
- sly replaces its predecessor, [slate](https://github.com/benevolent-games/slate).
7
+ [@e280](https://e280.org/)'s shiny new [lit](https://lit.dev/)-based frontend lib for webdevs. *(sly replaces its predecessor, [slate](https://github.com/benevolent-games/slate))*
9
8
 
10
- - 🍋 **views** — hooks-based, shadow-dom'd, componentizable
11
- - 🪄 **dom** — the "it's not jquery" multitool
12
- - 🪵 **base element** — for a more classical experience
13
- - 🫛 **ops** — tools for async operations and loading spinners
14
- - 🪙 **loot** — drag-and-drop facilities
15
- - 🧪 **testing page** — https://sly.e280.org/
9
+ - 🍋 [**views**](#views) — hooks-based, shadow-dom'd, componentizable
10
+ - 🪵 [**base element**](#base-element)for a more classical experience
11
+ - 🪄 [**dom**](#dom)the "it's not jquery" multitool
12
+ - 🫛 [**ops**](#ops) — tools for async operations and loading spinners
13
+ - 🪙 [**loot**](#loot) — drag-and-drop facilities
14
+ - 🧪 testing page — https://sly.e280.org/
16
15
 
17
16
 
18
17
 
@@ -25,14 +24,15 @@ npm install @e280/sly lit
25
24
  ```
26
25
 
27
26
  > [!NOTE]
28
- > - 🔥 [lit](https://lit.dev/) for html rendering
27
+ > - 🔥 [lit](https://lit.dev/), for html rendering
29
28
  > - ⛏️ [@e280/strata](https://github.com/e280/strata), for state management (signals, state trees)
30
- > - 🏂 [@e280/stz](https://github.com/e280/stz) is our ts standard library
31
- > - 🐢 [scute](https://github.com/e280/scute) is our buildy-bundly-buddy
29
+ > - 🏂 [@e280/stz](https://github.com/e280/stz), our ts standard library
30
+ > - 🐢 [@e280/scute](https://github.com/e280/scute), our buildy-bundly-buddy
32
31
 
33
32
 
34
33
 
35
34
  <br/><br/>
35
+ <a id="views"></a>
36
36
 
37
37
  ## 🦝🍋 sly views
38
38
  > *views are the crown jewel of sly.. shadow-dom'd.. hooks-based.. "ergonomics"..*
@@ -198,7 +198,8 @@ import {html, css} from "lit"
198
198
 
199
199
  v // 123
200
200
  ```
201
- - **use.attrs** — ergonomic typed html attribute access
201
+ - **use.attrs** — ergonomic typed html attribute access
202
+ *(see [dom.attrs](#dom.attrs) for more details)*
202
203
  ```ts
203
204
  const attrs = use.attrs({
204
205
  name: String,
@@ -211,14 +212,6 @@ import {html, css} from "lit"
211
212
  attrs.count // 123
212
213
  attrs.active // true
213
214
  ```
214
- ```ts
215
- attrs.name = "zenky"
216
- attrs.count = 124
217
- attrs.active = false // removes html attr
218
- ```
219
- ```ts
220
- attrs.name = undefined // removes the attr
221
- ```
222
215
  - **use.render** — rerender the view (debounced)
223
216
  ```ts
224
217
  use.render()
@@ -269,12 +262,13 @@ import {html, css} from "lit"
269
262
 
270
263
 
271
264
  <br/><br/>
265
+ <a id="base-element"></a>
272
266
 
273
267
  ## 🦝🪵 sly base element
274
268
  > *the classic experience*
275
269
 
276
270
  ```ts
277
- import {BaseElement, Use, attributes, dom} from "@e280/sly"
271
+ import {BaseElement, Use, dom} from "@e280/sly"
278
272
  import {html, css} from "lit"
279
273
  ```
280
274
 
@@ -294,7 +288,7 @@ base element enjoys the same `use` hooks as views.
294
288
  start = 10
295
289
 
296
290
  // custom attributes
297
- attrs = attributes(this, {
291
+ attrs = dom.attrs(this, {
298
292
  multiply: Number,
299
293
  })
300
294
 
@@ -338,7 +332,7 @@ base element enjoys the same `use` hooks as views.
338
332
  myElement.start = 100
339
333
 
340
334
  // html attributes
341
- myElement.attr.multiply = 2
335
+ myElement.attrs.multiply = 2
342
336
 
343
337
  // methods
344
338
  myElement.hello()
@@ -348,6 +342,7 @@ base element enjoys the same `use` hooks as views.
348
342
 
349
343
 
350
344
  <br/><br/>
345
+ <a id="dom"></a>
351
346
 
352
347
  ## 🦝🪄 sly dom
353
348
  > *the "it's not jquery!" multitool*
@@ -403,10 +398,33 @@ import {dom} from "@e280/sly"
403
398
  ```ts
404
399
  dom.render(element, html`<p>hello world</p>`)
405
400
  ```
401
+ - `attrs` <a id="dom.attrs"></a> to setup a type-happy html attribute helper
402
+ ```ts
403
+ const attrs = dom.attrs({
404
+ name: String,
405
+ count: Number,
406
+ active: Boolean,
407
+ })
408
+ ```
409
+ ```ts
410
+ attrs.name // "chase"
411
+ attrs.count // 123
412
+ attrs.active // true
413
+ ```
414
+ ```ts
415
+ attrs.name = "zenky"
416
+ attrs.count = 124
417
+ attrs.active = false // removes html attr
418
+ ```
419
+ ```ts
420
+ attrs.name = undefined // removes the attr
421
+ attrs.count = undefined // removes the attr
422
+ ```
406
423
 
407
424
 
408
425
 
409
426
  <br/><br/>
427
+ <a id="ops"></a>
410
428
 
411
429
  ## 🦝🫛 sly ops
412
430
  > *tools for async operations and loading spinners*
@@ -536,12 +554,14 @@ import {Pod, podium, Op, makeLoader, anims} from "@e280/sly"
536
554
 
537
555
 
538
556
  <br/><br/>
557
+ <a id="loot"></a>
539
558
 
540
559
  ## 🦝🪙 loot
541
560
  > *drag-and-drop facilities*
542
561
 
543
562
  ```ts
544
- import {loot, ev, view} from "@e280/sly"
563
+ import {loot, view, dom} from "@e280/sly"
564
+ import {ev} from "@e280/stz"
545
565
  ```
546
566
 
547
567
  ### 🪙 `loot.Drops`
@@ -571,18 +591,20 @@ import {loot, ev, view} from "@e280/sly"
571
591
  ```
572
592
  - **vanilla-js whole-page example**
573
593
  ```ts
574
- // attach listeners to accept drops and stuff
594
+ // attach listeners to the body
575
595
  ev(document.body, {
576
596
  dragover: drops.dragover,
577
597
  dragleave: drops.dragleave,
578
598
  drop: drops.drop,
579
599
  })
580
600
 
581
- // update indicator attribute on body
582
- drops.$indicator.on(indicator => {
583
- if (indicator) document.body.setAttribute("data-indicator", "")
584
- else document.body.removeAttribute("data-indicator")
601
+ // sly attribute handler for the body
602
+ const attrs = dom.attrs(document.body, {
603
+ "data-indicator": Boolean,
585
604
  })
605
+
606
+ // sync the data-indicator attribute
607
+ drops.$indicator.on(bool => attrs["data-indicator"] = bool)
586
608
  ```
587
609
  - **flashy css indicator for the dropzone,** so the user knows your app is eager to accept the drop
588
610
  ```css
@@ -593,7 +615,7 @@ import {loot, ev, view} from "@e280/sly"
593
615
 
594
616
  ### 🪙 `loot.DragAndDrops`
595
617
  > *setup drag-and-drops between items within your page*
596
- - **declare types for your grabbable and hoverable things**
618
+ - **declare types for your draggy and droppy things**
597
619
  ```ts
598
620
  // money that can be picked up and dragged
599
621
  type Money = {value: number}
@@ -611,8 +633,7 @@ import {loot, ev, view} from "@e280/sly"
611
633
  },
612
634
  })
613
635
  ```
614
- - **attach dragzone listeners**
615
- (there can be many dragzones...)
636
+ - **attach dragzone listeners** (there can be many dragzones...)
616
637
  ```ts
617
638
  view(use => () => {
618
639
  const money = use.once((): Money => ({value: 280}))
@@ -628,8 +649,7 @@ import {loot, ev, view} from "@e280/sly"
628
649
  `
629
650
  })
630
651
  ```
631
- - **attach dropzone listeners**
632
- (there can be many dropzones...)
652
+ - **attach dropzone listeners** (there can be many dropzones...)
633
653
  ```ts
634
654
  view(use => () => {
635
655
  const bag = use.once((): Bag => ({id: 1}))
@@ -656,8 +676,13 @@ import {loot, ev, view} from "@e280/sly"
656
676
 
657
677
 
658
678
  <br/><br/>
679
+ <a id="e280"></a>
659
680
 
660
681
  ## 🦝🧑‍💻 sly is by e280
661
682
  reward us with github stars
662
683
  build with us at https://e280.org/ but only if you're cool
663
684
 
685
+
686
+
687
+ <br/><br/>
688
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e280/sly",
3
- "version": "0.2.0-5",
3
+ "version": "0.2.0-6",
4
4
  "description": "web shadow views",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -2,13 +2,13 @@
2
2
  import {css, html} from "lit"
3
3
  import {nap, repeat} from "@e280/stz"
4
4
 
5
+ import {dom} from "../../dom/dom.js"
5
6
  import {Use} from "../../views/use.js"
6
- import {attributes} from "../../views/attributes.js"
7
7
  import {BaseElement} from "../../views/base-element.js"
8
8
 
9
9
  export class IncrediElement extends BaseElement {
10
10
  static styles = css`span{color:orange}`
11
- attrs = attributes(this, {value: Number})
11
+ attrs = dom.attrs(this, {value: Number})
12
12
  something = {whatever: "rofl"}
13
13
 
14
14
  render(use: Use) {
package/s/dom/dom.ts CHANGED
@@ -2,7 +2,10 @@
2
2
  import {render} from "lit"
3
3
  import {register} from "./register.js"
4
4
  import {Content} from "../views/types.js"
5
- import {Queryable, Renderable} from "./types.js"
5
+ import {attributes, AttrSpec, AttrTypes} from "./attributes.js"
6
+
7
+ export type Renderable = HTMLElement | ShadowRoot | DocumentFragment
8
+ export type Queryable = HTMLElement | ShadowRoot | Element | Document | DocumentFragment
6
9
 
7
10
  function require<E extends Element>(
8
11
  container: Queryable,
@@ -41,6 +44,10 @@ export class Dom<C extends Queryable> {
41
44
  render(...content: Content[]) {
42
45
  return render(content, this.element as Renderable)
43
46
  }
47
+
48
+ attrs<A extends AttrSpec>(spec: A) {
49
+ return attributes(this.element as HTMLElement, spec)
50
+ }
44
51
  }
45
52
 
46
53
  export function dom<E extends Queryable>(selector: string): E
@@ -56,6 +63,8 @@ dom.in = doc.in.bind(doc)
56
63
  dom.require = doc.require.bind(doc)
57
64
  dom.maybe = doc.maybe.bind(doc)
58
65
  dom.all = doc.all.bind(doc)
66
+
67
+ dom.attrs = attributes
59
68
  dom.register = register
60
69
  dom.render = (container: Renderable, ...content: Content[]) => {
61
70
  return render(content, container)
package/s/dom/register.ts CHANGED
@@ -1,6 +1,9 @@
1
1
 
2
2
  import {dashify} from "./dashify.js"
3
- import {HTMLElementClasses} from "./types.js"
3
+
4
+ export type HTMLElementClasses = {
5
+ [key: string]: {new(...args: any[]): HTMLElement}
6
+ }
4
7
 
5
8
  export type RegistrationOptions = {
6
9
  soft: boolean
package/s/index.ts CHANGED
@@ -1,8 +1,8 @@
1
1
 
2
+ export * from "./dom/attributes.js"
2
3
  export * from "./dom/dashify.js"
3
4
  export * from "./dom/dom.js"
4
5
  export * from "./dom/register.js"
5
- export * from "./dom/types.js"
6
6
 
7
7
  export * from "./ops/loaders/make-loader.js"
8
8
  export * from "./ops/loaders/parts/ascii-anim.js"
@@ -13,7 +13,7 @@ export * from "./ops/types.js"
13
13
 
14
14
  export * as loot from "./loot/index.js"
15
15
 
16
- export * from "./views/attributes.js"
16
+ export * from "./dom/attributes.js"
17
17
  export * from "./views/base-element.js"
18
18
  export * from "./views/css-reset.js"
19
19
  export * from "./views/types.js"
@@ -5,7 +5,7 @@ import {debounce, MapG} from "@e280/stz"
5
5
 
6
6
  import {dom} from "../dom/dom.js"
7
7
  import {Content} from "./types.js"
8
- import {onAttrChange} from "./attributes.js"
8
+ import {onAttrChange} from "../dom/attributes.js"
9
9
  import {applyStyles} from "./utils/apply-styles.js"
10
10
  import {Use, _disconnect, _reconnect, _wrap} from "./use.js"
11
11
 
package/s/views/use.ts CHANGED
@@ -4,9 +4,10 @@ import {defer, MapG} from "@e280/stz"
4
4
  import {signal, SignalOptions} from "@e280/strata/signals"
5
5
 
6
6
  import {Op} from "../ops/op.js"
7
+ import {dom} from "../dom/dom.js"
7
8
  import {Mounts} from "./utils/mounts.js"
8
9
  import {applyStyles} from "./utils/apply-styles.js"
9
- import {attributes, AttrSpec, onAttrChange} from "./attributes.js"
10
+ import {AttrSpec, onAttrChange} from "../dom/attributes.js"
10
11
 
11
12
  export const _wrap = Symbol()
12
13
  export const _disconnect = Symbol()
@@ -66,7 +67,7 @@ export class Use {
66
67
 
67
68
  attrs<A extends AttrSpec>(spec: A) {
68
69
  this.mount(() => onAttrChange(this.element, this.render))
69
- return this.once(() => attributes(this.element, spec))
70
+ return this.once(() => dom.attrs(this.element, spec))
70
71
  }
71
72
 
72
73
  once<V>(fn: () => V) {
@@ -1,6 +1,6 @@
1
- var Ne=Object.defineProperty;var Ue=(r,t)=>{for(var e in t)Ne(r,e,{get:t[e],enumerable:!0})};var lt=globalThis,ut=lt.ShadowRoot&&(lt.ShadyCSS===void 0||lt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,zt=Symbol(),re=new WeakMap,Y=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==zt)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(ut&&t===void 0){let s=e!==void 0&&e.length===1;s&&(t=re.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&re.set(e,t))}return t}toString(){return this.cssText}},se=r=>new Y(typeof r=="string"?r:r+"",void 0,zt),y=(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 Y(e,r,zt)},pt=(r,t)=>{if(ut)r.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet));else for(let e of t){let s=document.createElement("style"),o=lt.litNonce;o!==void 0&&s.setAttribute("nonce",o),s.textContent=e.cssText,r.appendChild(s)}},D=ut?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:He,defineProperty:Re,getOwnPropertyDescriptor:ze,getOwnPropertyNames:De,getOwnPropertySymbols:Ie,getPrototypeOf:Le}=Object,ht=globalThis,oe=ht.trustedTypes,qe=oe?oe.emptyScript:"",Ve=ht.reactiveElementPolyfillSupport,G=(r,t)=>r,Dt={toAttribute(r,t){switch(t){case Boolean:r=r?qe: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}},ie=(r,t)=>!He(r,t),ne={attribute:!0,type:String,converter:Dt,reflect:!1,useDefault:!1,hasChanged:ie};Symbol.metadata??=Symbol("metadata"),ht.litPropertyMetadata??=new WeakMap;var S=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=ne){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&&Re(this.prototype,t,o)}}static getPropertyDescriptor(t,e,s){let{get:o,set:n}=ze(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)??ne}static _$Ei(){if(this.hasOwnProperty(G("elementProperties")))return;let t=Le(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(G("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(G("properties"))){let e=this.properties,s=[...De(e),...Ie(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(D(o))}else t!==void 0&&e.push(D(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:Dt).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:Dt;this._$Em=o,this[o]=i.fromAttribute(e,n.type)??this._$Ej?.get(o)??null,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??ie)(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){}};S.elementStyles=[],S.shadowRootOptions={mode:"open"},S[G("elementProperties")]=new Map,S[G("finalized")]=new Map,Ve?.({ReactiveElement:S}),(ht.reactiveElementVersions??=[]).push("2.1.0");var Lt=globalThis,ft=Lt.trustedTypes,ae=ft?ft.createPolicy("lit-html",{createHTML:r=>r}):void 0,qt="$lit$",E=`lit$${Math.random().toFixed(9).slice(2)}$`,Vt="?"+E,We=`<${Vt}>`,T=document,tt=()=>T.createComment(""),et=r=>r===null||typeof r!="object"&&typeof r!="function",Wt=Array.isArray,fe=r=>Wt(r)||typeof r?.[Symbol.iterator]=="function",It=`[
2
- \f\r]`,X=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ce=/-->/g,le=/>/g,P=RegExp(`>|${It}(?:([^\\s"'>=/]+)(${It}*=${It}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),ue=/'/g,pe=/"/g,de=/^(?:script|style|textarea|title)$/i,Ft=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),$=Ft(1),Wr=Ft(2),Fr=Ft(3),j=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),he=new WeakMap,O=T.createTreeWalker(T,129);function me(r,t){if(!Wt(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return ae!==void 0?ae.createHTML(t):t}var ye=(r,t)=>{let e=r.length-1,s=[],o,n=t===2?"<svg>":t===3?"<math>":"",i=X;for(let c=0;c<e;c++){let a=r[c],l,u,h=-1,g=0;for(;g<a.length&&(i.lastIndex=g,u=i.exec(a),u!==null);)g=i.lastIndex,i===X?u[1]==="!--"?i=ce:u[1]!==void 0?i=le:u[2]!==void 0?(de.test(u[2])&&(o=RegExp("</"+u[2],"g")),i=P):u[3]!==void 0&&(i=P):i===P?u[0]===">"?(i=o??X,h=-1):u[1]===void 0?h=-2:(h=i.lastIndex-u[2].length,l=u[1],i=u[3]===void 0?P:u[3]==='"'?pe:ue):i===pe||i===ue?i=P:i===ce||i===le?i=X:(i=P,o=void 0);let b=i===P&&r[c+1].startsWith("/>")?" ":"";n+=i===X?a+We:h>=0?(s.push(l),a.slice(0,h)+qt+a.slice(h)+E+b):a+E+(h===-2?c:b)}return[me(r,n+(r[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]},rt=class r{constructor({strings:t,_$litType$:e},s){let o;this.parts=[];let n=0,i=0,c=t.length-1,a=this.parts,[l,u]=ye(t,e);if(this.el=r.createElement(l,s),O.currentNode=this.el.content,e===2||e===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(o=O.nextNode())!==null&&a.length<c;){if(o.nodeType===1){if(o.hasAttributes())for(let h of o.getAttributeNames())if(h.endsWith(qt)){let g=u[i++],b=o.getAttribute(h).split(E),ct=/([.?@])?(.*)/.exec(g);a.push({type:1,index:n,name:ct[2],strings:b,ctor:ct[1]==="."?mt:ct[1]==="?"?yt:ct[1]==="@"?gt:N}),o.removeAttribute(h)}else h.startsWith(E)&&(a.push({type:6,index:n}),o.removeAttribute(h));if(de.test(o.tagName)){let h=o.textContent.split(E),g=h.length-1;if(g>0){o.textContent=ft?ft.emptyScript:"";for(let b=0;b<g;b++)o.append(h[b],tt()),O.nextNode(),a.push({type:2,index:++n});o.append(h[g],tt())}}}else if(o.nodeType===8)if(o.data===Vt)a.push({type:2,index:n});else{let h=-1;for(;(h=o.data.indexOf(E,h+1))!==-1;)a.push({type:7,index:n}),h+=E.length-1}n++}}static createElement(t,e){let s=T.createElement("template");return s.innerHTML=t,s}};function M(r,t,e=r,s){if(t===j)return t;let o=s!==void 0?e._$Co?.[s]:e._$Cl,n=et(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=M(r,o._$AS(r,t.values),o,s)),t}var dt=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??T).importNode(e,!0);O.currentNode=o;let n=O.nextNode(),i=0,c=0,a=s[0];for(;a!==void 0;){if(i===a.index){let l;a.type===2?l=new I(n,n.nextSibling,this,t):a.type===1?l=new a.ctor(n,a.name,a.strings,this,t):a.type===6&&(l=new bt(n,this,t)),this._$AV.push(l),a=s[++c]}i!==a?.index&&(n=O.nextNode(),i++)}return O.currentNode=T,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++}},I=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=M(this,t,e),et(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):fe(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&&et(this._$AH)?this._$AA.nextSibling.data=t:this.T(T.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=rt.createElement(me(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===o)this._$AH.p(e);else{let n=new dt(o,this),i=n.u(this.options);n.p(e),this.T(i),this._$AH=n}}_$AC(t){let e=he.get(t.strings);return e===void 0&&he.set(t.strings,e=new rt(t)),e}k(t){Wt(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(tt()),this.O(tt()),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&&t!==this._$AB;){let s=t.nextSibling;t.remove(),t=s}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},N=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=M(this,t,e,0),i=!et(t)||t!==this._$AH&&t!==j,i&&(this._$AH=t);else{let c=t,a,l;for(t=n[0],a=0;a<n.length-1;a++)l=M(this,c[s+a],e,a),l===j&&(l=this._$AH[a]),i||=!et(l)||l!==this._$AH[a],l===d?t=d:t!==d&&(t+=(l??"")+n[a+1]),this._$AH[a]=l}i&&!o&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},mt=class extends N{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}},yt=class extends N{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}},gt=class extends N{constructor(t,e,s,o,n){super(t,e,s,o,n),this.type=5}_$AI(t,e=this){if((t=M(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)}},bt=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){M(this,t)}},ge={M:qt,P:E,A:Vt,C:1,L:ye,R:dt,D:fe,V:M,I,H:N,N:yt,U:gt,B:mt,F:bt},Fe=Lt.litHtmlPolyfillSupport;Fe?.(rt,I),(Lt.litHtmlVersions??=[]).push("3.3.0");var C=(r,t,e)=>{let s=e?.renderBefore??t,o=s._$litPart$;if(o===void 0){let n=e?.renderBefore??null;s._$litPart$=o=new I(t.insertBefore(tt(),n),n,void 0,e??{})}return o._$AI(r),o};var Zt=globalThis,L=class extends S{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=C(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return j}};L._$litElement$=!0,L.finalized=!0,Zt.litElementHydrateSupport?.({LitElement:L});var Ze=Zt.litElementPolyfillSupport;Ze?.({LitElement:L});(Zt.litElementVersions??=[]).push("4.2.0");function be(r){return r.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()}function xt(r,t={}){let{soft:e=!1,upgrade:s=!0}=t;for(let[o,n]of Object.entries(r)){let i=be(o),c=customElements.get(i);e&&c||(customElements.define(i,n),s&&document.querySelectorAll(i).forEach(a=>{a.constructor===HTMLElement&&customElements.upgrade(a)}))}}function xe(r,t){let e=r.querySelector(t);if(!e)throw new Error(`element not found (${t})`);return e}var wt=class r{element;constructor(t){this.element=t}in(t){return new r(typeof t=="string"?xe(this.element,t):t)}require(t){let e=this.element.querySelector(t);if(!e)throw new Error(`element not found (${t})`);return e}maybe(t){return this.element.querySelector(t)}all(t){return Array.from(this.element.querySelectorAll(t))}render(...t){return C(t,this.element)}};function x(r){return typeof r=="string"?xe(document,r):new wt(r)}var B=new wt(document);x.in=B.in.bind(B);x.require=B.require.bind(B);x.maybe=B.maybe.bind(B);x.all=B.all.bind(B);x.register=xt;x.render=(r,...t)=>C(t,r);var v=Object.freeze({eq(r,t){if(r.length!==t.length)return!1;for(let e=0;e<=r.length;e++)if(r.at(e)!==t.at(e))return!1;return!0},random(r){return crypto.getRandomValues(new Uint8Array(r))}});var U=Object.freeze({fromBytes(r){return[...r].map(t=>t.toString(16).padStart(2,"0")).join("")},toBytes(r){if(r.length%2!==0)throw new Error("must have even number of hex characters");let t=new Uint8Array(r.length/2);for(let e=0;e<r.length;e+=2)t[e/2]=parseInt(r.slice(e,e+2),16);return t},random(r=32){return this.fromBytes(v.random(r))},string(r){return U.fromBytes(r)},bytes(r){return U.toBytes(r)}});var Jt=58,$t="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",Kt=Object.freeze({fromBytes(r){let t=BigInt("0x"+U.fromBytes(r)),e="";for(;t>0;){let s=t%BigInt(Jt);t=t/BigInt(Jt),e=$t[Number(s)]+e}for(let s of r)if(s===0)e=$t[0]+e;else break;return e},toBytes(r){let t=BigInt(0);for(let i of r){let c=$t.indexOf(i);if(c===-1)throw new Error(`Invalid character '${i}' in base58 string`);t=t*BigInt(Jt)+BigInt(c)}let e=t.toString(16);e.length%2!==0&&(e="0"+e);let s=U.toBytes(e),o=0;for(let i of r)if(i===$t[0])o++;else break;let n=new Uint8Array(o+s.length);return n.set(s,o),n},random(r=32){return this.fromBytes(v.random(r))},string(r){return Kt.fromBytes(r)},bytes(r){return Kt.toBytes(r)}});var we=class{lexicon;static lexicons=Object.freeze({base2:{characters:"01"},hex:{characters:"0123456789abcdef"},base36:{characters:"0123456789abcdefghijklmnopqrstuvwxyz"},base58:{characters:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"},base62:{characters:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"},base64url:{negativePrefix:"~",characters:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"},base64:{characters:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",padding:{character:"=",size:4}}});lookup;negativePrefix;constructor(t){this.lexicon=t,this.lookup=Object.fromEntries([...t.characters].map((e,s)=>[e,s])),this.negativePrefix=t.negativePrefix??"-"}toBytes(t){let e=Math.log2(this.lexicon.characters.length);if(Number.isInteger(e)){let c=0,a=0,l=[];for(let u of t){if(u===this.lexicon.padding?.character)continue;let h=this.lookup[u];if(h===void 0)throw new Error(`Invalid character: ${u}`);for(c=c<<e|h,a+=e;a>=8;)a-=8,l.push(c>>a&255)}return new Uint8Array(l)}let s=0n,o=BigInt(this.lexicon.characters.length),n=!1;t.startsWith(this.negativePrefix)&&(t=t.slice(this.negativePrefix.length),n=!0);for(let c of t){let a=this.lookup[c];if(a===void 0)throw new Error(`Invalid character: ${c}`);s=s*o+BigInt(a)}let i=[];for(;s>0n;)i.unshift(Number(s%256n)),s=s/256n;return new Uint8Array(i)}fromBytes(t){let e=Math.log2(this.lexicon.characters.length);if(Number.isInteger(e)){let i=0,c=0,a="";for(let l of t)for(i=i<<8|l,c+=8;c>=e;){c-=e;let u=i>>c&(1<<e)-1;a+=this.lexicon.characters[u]}if(c>0){let l=i<<e-c&(1<<e)-1;a+=this.lexicon.characters[l]}if(this.lexicon.padding)for(;a.length%this.lexicon.padding.size!==0;)a+=this.lexicon.padding.character;return a}let s=0n;for(let i of t)s=(s<<8n)+BigInt(i);if(s===0n)return this.lexicon.characters[0];let o=BigInt(this.lexicon.characters.length),n="";for(;s>0n;)n=this.lexicon.characters[Number(s%o)]+n,s=s/o;return n}toInteger(t){if(!t)return 0;let e=0n,s=!1,o=BigInt(this.lexicon.characters.length);t.startsWith(this.negativePrefix)&&(t=t.slice(this.negativePrefix.length),s=!0);for(let n of t){let i=this.lookup[n];if(i===void 0)throw new Error(`Invalid character: ${n}`);e=e*o+BigInt(i)}return Number(s?-e:e)}fromInteger(t){t=Math.floor(t);let e=t<0,s=BigInt(e?-t:t);if(s===0n)return this.lexicon.characters[0];let o=BigInt(this.lexicon.characters.length),n="";for(;s>0n;)n=this.lexicon.characters[Number(s%o)]+n,s=s/o;return e?`${this.negativePrefix}${n}`:n}random(t=32){return this.fromBytes(v.random(t))}};var Qt=Object.freeze({fromBytes(r){return typeof btoa=="function"?btoa(String.fromCharCode(...r)):Buffer.from(r).toString("base64")},toBytes(r){return typeof atob=="function"?Uint8Array.from(atob(r),t=>t.charCodeAt(0)):Uint8Array.from(Buffer.from(r,"base64"))},random(r=32){return this.fromBytes(v.random(r))},string(r){return Qt.fromBytes(r)},bytes(r){return Qt.toBytes(r)}});var $e=Object.freeze({fromBytes(r){return new TextDecoder().decode(r)},toBytes(r){return new TextEncoder().encode(r)},string(r){return $e.fromBytes(r)},bytes(r){return $e.toBytes(r)}});function H(r,t){let e,s,o=[];function n(){e=[],s&&clearTimeout(s),s=void 0,o=[]}return n(),((...i)=>{e=i,s&&clearTimeout(s);let c=new Promise((a,l)=>{o.push({resolve:a,reject:l})});return s=setTimeout(()=>{Promise.resolve().then(()=>t(...e)).then(a=>{for(let{resolve:l}of o)l(a);n()}).catch(a=>{for(let{reject:l}of o)l(a);n()})},r),c})}var Yt=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"});function st(){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}}var k=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)}};var vt=(r=0)=>new Promise(t=>setTimeout(t,r));function Je(r){return{map:t=>ve(r,t),filter:t=>Ae(r,t)}}Je.pipe=Object.freeze({map:r=>(t=>ve(t,r)),filter:r=>(t=>Ae(t,r))});var ve=(r,t)=>Object.fromEntries(Object.entries(r).map(([e,s])=>[e,t(s,e)])),Ae=(r,t)=>Object.fromEntries(Object.entries(r).filter(([e,s])=>t(s,e)));function _e(){let r=new Set;async function t(...a){await Promise.all([...r].map(l=>l(...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:l,resolve:u}=st(),h=o(async(...g)=>{a&&await a(...g),u(g),h()});return l}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 At(r){let t=_e();return r&&t.sub(r),t.sub}function Gt(r){let t=_e();return r&&t.sub(r),t.pub}function q(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 Se={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},St=r=>(...t)=>({_$litDirective$:r,values:t}),_t=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 Xt=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=At(),this.#e.set(t,e)),e}},m=globalThis[Symbol.for("e280.tracker")]??=new Xt;var{I:An}=ge;var Ee=r=>r.strings===void 0;var ot=(r,t)=>{let e=r._$AN;if(e===void 0)return!1;for(let s of e)s._$AO?.(t,!1),ot(s,t);return!0},Et=r=>{let t,e;do{if((t=r._$AM)===void 0)break;e=t._$AN,e.delete(r),r=t}while(e?.size===0)},Ce=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),Ye(t)}};function Ke(r){this._$AN!==void 0?(Et(this),this._$AM=r,Ce(this)):this._$AM=r}function Qe(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++)ot(s[n],!1),Et(s[n]);else s!=null&&(ot(s,!1),Et(s));else ot(this,r)}var Ye=r=>{r.type==Se.CHILD&&(r._$AP??=Qe,r._$AQ??=Ke)},Ct=class extends _t{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),Ce(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(ot(this,t),Et(this))}setValue(t){if(Ee(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 Be(r,t){for(let[e,s]of Object.entries(t))s===void 0||s===null?r.removeAttribute(e):typeof s=="string"?r.setAttribute(e,s):typeof s=="number"?r.setAttribute(e,s.toString()):typeof s=="boolean"?s===!0?r.setAttribute(e,""):r.removeAttribute(e):console.warn(`invalid attribute type ${e} is ${typeof s}`)}function V(r,t){pt(r,Ge(t))}function Ge(r){let t=[];if(Array.isArray(r)){let e=new Set(r.flat(1/0).reverse());for(let s of e)t.unshift(D(s))}else r!==void 0&&t.push(D(r));return t}var W=class{sneak;constructor(t){this.sneak=t}get(){return m.notifyRead(this),this.sneak}get value(){return this.get()}};var F=class extends W{on=At();dispose(){this.on.clear()}};function Bt(r,t=r){let{seen:e,result:s}=m.observe(r),o=H(0,t),n=[],i=()=>n.forEach(c=>c());for(let c of e){let a=m.subscribe(c,o);n.push(a)}return{result:s,dispose:i}}function Z(r,t){return r===t}var kt=class extends F{#t;constructor(t,e){let s=e?.compare??Z,{result:o,dispose:n}=Bt(t,async()=>{let i=t();!s(this.sneak,i)&&(this.sneak=i,await Promise.all([m.notifyWrite(this),this.on.pub(i)]))});super(o),this.#t=n}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 Pt=class extends W{#t;#e;#r=!1;#s;constructor(t,e){super(void 0),this.#t=t,this.#e=e?.compare??Z}get(){if(!this.#s){let{result:t,dispose:e}=Bt(this.#t,()=>this.#r=!0);this.#s=e,this.sneak=t}if(this.#r){this.#r=!1;let t=this.#t();!this.#e(this.sneak,t)&&(this.sneak=t,m.notifyWrite(this))}return super.get()}dispose(){this.#s&&this.#s()}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 Ot=class extends F{#t=!1;#e;constructor(t,e){super(t),this.#e=e?.compare??Z}async set(t){return!this.#e(this.sneak,t)&&await this.publish(t),t}get value(){return this.get()}set value(t){this.set(t)}async publish(t=this.sneak){if(this.#t)throw new Error("forbid circularity");let e=Promise.resolve();try{this.#t=!0,this.sneak=t,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(s){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:s=>t.value=s}),Object.defineProperty(e,"sneak",{get:()=>t.sneak,set:s=>t.sneak=s}),e}};function Xe(r,t){return new Pt(r,t).fn()}function ke(r,t){return new kt(r,t).fn()}function w(r,t){return new Ot(r,t).fn()}w.lazy=Xe;w.derive=ke;var R={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)=>R.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 z=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 R.all(...e)}signal;#t=0;#e=Gt();#r=Gt();constructor(t=["loading"]){this.signal=w(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){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 R.value(this.signal.get())}get error(){return R.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 R.select(this.signal.get(),t)}morph(t){return R.morph(this.pod,t)}};var Tt=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())}};function jt(r,t){let e=new MutationObserver(t);return e.observe(r,{attributes:!0}),()=>e.disconnect()}var Mt=(r,t)=>new Proxy(t,{get:(e,s)=>{let o=t[s],n=r.getAttribute(s);switch(o){case String:return n??void 0;case Number:return n!==null?Number(n):void 0;case Boolean:return n!==null;default:throw new Error(`invalid attribute type for "${s}"`)}},set:(e,s,o)=>{switch(t[s]){case String:return r.setAttribute(s,o),!0;case Number:return r.setAttribute(s,o.toString()),!0;case Boolean:return o?r.setAttribute(s,""):r.removeAttribute(s),!0;default:throw new Error(`invalid attribute type for "${s}"`)}}});var nt=Symbol(),it=Symbol(),at=Symbol(),J=class{element;shadow;renderNow;render;#t=0;#e=0;#r=new k;#s=st();#o=new Tt;[nt](t){this.#t++,this.#e=0,this.#s=st();let e=t();return this.#s.resolve(),e}[it](){this.#o.unmountAll()}[at](){this.#o.remountAll()}constructor(t,e,s,o){this.element=t,this.shadow=e,this.renderNow=s,this.render=o}get renderCount(){return this.#t}get rendered(){return this.#s.promise}name(t){this.once(()=>this.element.setAttribute("view",t))}styles(...t){this.once(()=>V(this.shadow,t))}css(...t){return this.styles(...t)}attrs(t){return this.mount(()=>jt(this.element,this.render)),this.once(()=>Mt(this.element,t))}once(t){return this.#r.guarantee(this.#e++,t)}mount(t){return this.once(()=>this.#o.mount(t))}life(t){let e;return this.mount(()=>{let[s,o]=t();return e=s,o}),e}wake(t){return this.life(()=>[t(),()=>{}])}op=(()=>{let t=this;function e(s){return t.once(()=>z.load(s))}return e.load=e,e.promise=s=>this.once(()=>z.promise(s)),e})();signal=(()=>{let t=this;function e(s,o){return t.once(()=>w(s,o))}return e.derive=function(o,n){return t.once(()=>w.derive(o,n))},e.lazy=function(o,n){return t.once(()=>w.lazy(o,n))},e})();derive(t,e){return this.once(()=>w.derive(t,e))}lazy(t,e){return this.once(()=>w.lazy(t,e))}};var A=Pe({mode:"open"}),te=class extends HTMLElement{};xt({SlyView:te},{soft:!0,upgrade:!0});function Pe(r){function t(e){let s=c=>class extends Ct{#t=c.getElement();#e=this.#t.attachShadow(r);#r=H(0,()=>this.#i());#s=new k;#o;#n=new J(this.#t,this.#e,()=>this.#i(),this.#r);#a=(()=>{let l=e(this.#n);return this.#t.setAttribute("view",r.name??""),r.styles&&V(this.#e,r.styles),l})();#i(){if(!this.#o||!this.isConnected)return;let{context:l,props:u}=this.#o;this.#n[nt](()=>{Be(this.#t,l.attrs);let{result:h,seen:g}=m.observe(()=>this.#a(...u));C(h,this.#e);for(let b of g)this.#s.guarantee(b,()=>m.subscribe(b,async()=>this.#r()));c.isComponent||C(l.children,this.#t)})}render(l,u){return this.#o={context:l,props:u},this.#i(),c.isComponent?null:this.#t}disconnected(){this.#n[it]();for(let l of this.#s.values())l();this.#s.clear()}reconnected(){this.#n[at]()}},o=St(s({getElement:()=>document.createElement(r.tag??"sly-view"),isComponent:!1})),n=()=>({attrs:{},children:[]});function i(...c){return o(n(),c)}return i.props=(...c)=>{let a=n(),l={children(...u){return a={...a,children:[...a.children,...u]},l},attrs(u){return a={...a,attrs:{...a.attrs,...u}},l},attr(u,h){return a={...a,attrs:{...a.attrs,[u]:h}},l},render(){return o(a,c)}};return l},i.component=(...c)=>class extends HTMLElement{#t=St(s({getElement:()=>this,isComponent:!0}));constructor(){super(),this.render(...c)}render(...a){this.isConnected&&C(this.#t(n(),a),this)}},i}return t.declare=t,t.settings=e=>Pe({...r,...e}),t.component=e=>t(s=>()=>e(s)).component(),t}var _=y`
1
+ var Ne=Object.defineProperty;var Ue=(r,t)=>{for(var e in t)Ne(r,e,{get:t[e],enumerable:!0})};var lt=globalThis,ut=lt.ShadowRoot&&(lt.ShadyCSS===void 0||lt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Rt=Symbol(),re=new WeakMap,Y=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==Rt)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(ut&&t===void 0){let s=e!==void 0&&e.length===1;s&&(t=re.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&re.set(e,t))}return t}toString(){return this.cssText}},se=r=>new Y(typeof r=="string"?r:r+"",void 0,Rt),g=(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 Y(e,r,Rt)},pt=(r,t)=>{if(ut)r.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet));else for(let e of t){let s=document.createElement("style"),o=lt.litNonce;o!==void 0&&s.setAttribute("nonce",o),s.textContent=e.cssText,r.appendChild(s)}},D=ut?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:He,defineProperty:Re,getOwnPropertyDescriptor:ze,getOwnPropertyNames:De,getOwnPropertySymbols:Ie,getPrototypeOf:Le}=Object,ht=globalThis,oe=ht.trustedTypes,qe=oe?oe.emptyScript:"",Ve=ht.reactiveElementPolyfillSupport,G=(r,t)=>r,zt={toAttribute(r,t){switch(t){case Boolean:r=r?qe: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}},ie=(r,t)=>!He(r,t),ne={attribute:!0,type:String,converter:zt,reflect:!1,useDefault:!1,hasChanged:ie};Symbol.metadata??=Symbol("metadata"),ht.litPropertyMetadata??=new WeakMap;var S=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=ne){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&&Re(this.prototype,t,o)}}static getPropertyDescriptor(t,e,s){let{get:o,set:n}=ze(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)??ne}static _$Ei(){if(this.hasOwnProperty(G("elementProperties")))return;let t=Le(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(G("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(G("properties"))){let e=this.properties,s=[...De(e),...Ie(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(D(o))}else t!==void 0&&e.push(D(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:zt).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:zt;this._$Em=o,this[o]=i.fromAttribute(e,n.type)??this._$Ej?.get(o)??null,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??ie)(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){}};S.elementStyles=[],S.shadowRootOptions={mode:"open"},S[G("elementProperties")]=new Map,S[G("finalized")]=new Map,Ve?.({ReactiveElement:S}),(ht.reactiveElementVersions??=[]).push("2.1.0");var It=globalThis,ft=It.trustedTypes,ae=ft?ft.createPolicy("lit-html",{createHTML:r=>r}):void 0,Lt="$lit$",E=`lit$${Math.random().toFixed(9).slice(2)}$`,qt="?"+E,We=`<${qt}>`,T=document,tt=()=>T.createComment(""),et=r=>r===null||typeof r!="object"&&typeof r!="function",Vt=Array.isArray,fe=r=>Vt(r)||typeof r?.[Symbol.iterator]=="function",Dt=`[
2
+ \f\r]`,X=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ce=/-->/g,le=/>/g,P=RegExp(`>|${Dt}(?:([^\\s"'>=/]+)(${Dt}*=${Dt}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),ue=/'/g,pe=/"/g,de=/^(?:script|style|textarea|title)$/i,Wt=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),$=Wt(1),Wr=Wt(2),Fr=Wt(3),j=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),he=new WeakMap,O=T.createTreeWalker(T,129);function me(r,t){if(!Vt(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return ae!==void 0?ae.createHTML(t):t}var ye=(r,t)=>{let e=r.length-1,s=[],o,n=t===2?"<svg>":t===3?"<math>":"",i=X;for(let c=0;c<e;c++){let a=r[c],l,u,h=-1,b=0;for(;b<a.length&&(i.lastIndex=b,u=i.exec(a),u!==null);)b=i.lastIndex,i===X?u[1]==="!--"?i=ce:u[1]!==void 0?i=le:u[2]!==void 0?(de.test(u[2])&&(o=RegExp("</"+u[2],"g")),i=P):u[3]!==void 0&&(i=P):i===P?u[0]===">"?(i=o??X,h=-1):u[1]===void 0?h=-2:(h=i.lastIndex-u[2].length,l=u[1],i=u[3]===void 0?P:u[3]==='"'?pe:ue):i===pe||i===ue?i=P:i===ce||i===le?i=X:(i=P,o=void 0);let x=i===P&&r[c+1].startsWith("/>")?" ":"";n+=i===X?a+We:h>=0?(s.push(l),a.slice(0,h)+Lt+a.slice(h)+E+x):a+E+(h===-2?c:x)}return[me(r,n+(r[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]},rt=class r{constructor({strings:t,_$litType$:e},s){let o;this.parts=[];let n=0,i=0,c=t.length-1,a=this.parts,[l,u]=ye(t,e);if(this.el=r.createElement(l,s),O.currentNode=this.el.content,e===2||e===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(o=O.nextNode())!==null&&a.length<c;){if(o.nodeType===1){if(o.hasAttributes())for(let h of o.getAttributeNames())if(h.endsWith(Lt)){let b=u[i++],x=o.getAttribute(h).split(E),ct=/([.?@])?(.*)/.exec(b);a.push({type:1,index:n,name:ct[2],strings:x,ctor:ct[1]==="."?mt:ct[1]==="?"?yt:ct[1]==="@"?gt:N}),o.removeAttribute(h)}else h.startsWith(E)&&(a.push({type:6,index:n}),o.removeAttribute(h));if(de.test(o.tagName)){let h=o.textContent.split(E),b=h.length-1;if(b>0){o.textContent=ft?ft.emptyScript:"";for(let x=0;x<b;x++)o.append(h[x],tt()),O.nextNode(),a.push({type:2,index:++n});o.append(h[b],tt())}}}else if(o.nodeType===8)if(o.data===qt)a.push({type:2,index:n});else{let h=-1;for(;(h=o.data.indexOf(E,h+1))!==-1;)a.push({type:7,index:n}),h+=E.length-1}n++}}static createElement(t,e){let s=T.createElement("template");return s.innerHTML=t,s}};function M(r,t,e=r,s){if(t===j)return t;let o=s!==void 0?e._$Co?.[s]:e._$Cl,n=et(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=M(r,o._$AS(r,t.values),o,s)),t}var dt=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??T).importNode(e,!0);O.currentNode=o;let n=O.nextNode(),i=0,c=0,a=s[0];for(;a!==void 0;){if(i===a.index){let l;a.type===2?l=new I(n,n.nextSibling,this,t):a.type===1?l=new a.ctor(n,a.name,a.strings,this,t):a.type===6&&(l=new bt(n,this,t)),this._$AV.push(l),a=s[++c]}i!==a?.index&&(n=O.nextNode(),i++)}return O.currentNode=T,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++}},I=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=M(this,t,e),et(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):fe(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&&et(this._$AH)?this._$AA.nextSibling.data=t:this.T(T.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=rt.createElement(me(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===o)this._$AH.p(e);else{let n=new dt(o,this),i=n.u(this.options);n.p(e),this.T(i),this._$AH=n}}_$AC(t){let e=he.get(t.strings);return e===void 0&&he.set(t.strings,e=new rt(t)),e}k(t){Vt(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(tt()),this.O(tt()),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&&t!==this._$AB;){let s=t.nextSibling;t.remove(),t=s}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},N=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=M(this,t,e,0),i=!et(t)||t!==this._$AH&&t!==j,i&&(this._$AH=t);else{let c=t,a,l;for(t=n[0],a=0;a<n.length-1;a++)l=M(this,c[s+a],e,a),l===j&&(l=this._$AH[a]),i||=!et(l)||l!==this._$AH[a],l===d?t=d:t!==d&&(t+=(l??"")+n[a+1]),this._$AH[a]=l}i&&!o&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},mt=class extends N{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}},yt=class extends N{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}},gt=class extends N{constructor(t,e,s,o,n){super(t,e,s,o,n),this.type=5}_$AI(t,e=this){if((t=M(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)}},bt=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){M(this,t)}},ge={M:Lt,P:E,A:qt,C:1,L:ye,R:dt,D:fe,V:M,I,H:N,N:yt,U:gt,B:mt,F:bt},Fe=It.litHtmlPolyfillSupport;Fe?.(rt,I),(It.litHtmlVersions??=[]).push("3.3.0");var C=(r,t,e)=>{let s=e?.renderBefore??t,o=s._$litPart$;if(o===void 0){let n=e?.renderBefore??null;s._$litPart$=o=new I(t.insertBefore(tt(),n),n,void 0,e??{})}return o._$AI(r),o};var Ft=globalThis,L=class extends S{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=C(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return j}};L._$litElement$=!0,L.finalized=!0,Ft.litElementHydrateSupport?.({LitElement:L});var Ze=Ft.litElementPolyfillSupport;Ze?.({LitElement:L});(Ft.litElementVersions??=[]).push("4.2.0");function be(r){return r.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()}function xt(r,t={}){let{soft:e=!1,upgrade:s=!0}=t;for(let[o,n]of Object.entries(r)){let i=be(o),c=customElements.get(i);e&&c||(customElements.define(i,n),s&&document.querySelectorAll(i).forEach(a=>{a.constructor===HTMLElement&&customElements.upgrade(a)}))}}function wt(r,t){let e=new MutationObserver(t);return e.observe(r,{attributes:!0}),()=>e.disconnect()}var Zt=(r,t)=>new Proxy(t,{get:(e,s)=>{let o=t[s],n=r.getAttribute(s);switch(o){case String:return n??void 0;case Number:return n!==null?Number(n):void 0;case Boolean:return n!==null;default:throw new Error(`invalid attribute type for "${s}"`)}},set:(e,s,o)=>{switch(t[s]){case String:return r.setAttribute(s,o),!0;case Number:return r.setAttribute(s,o.toString()),!0;case Boolean:return o?r.setAttribute(s,""):r.removeAttribute(s),!0;default:throw new Error(`invalid attribute type for "${s}"`)}}});function xe(r,t){let e=r.querySelector(t);if(!e)throw new Error(`element not found (${t})`);return e}var $t=class r{element;constructor(t){this.element=t}in(t){return new r(typeof t=="string"?xe(this.element,t):t)}require(t){let e=this.element.querySelector(t);if(!e)throw new Error(`element not found (${t})`);return e}maybe(t){return this.element.querySelector(t)}all(t){return Array.from(this.element.querySelectorAll(t))}render(...t){return C(t,this.element)}attrs(t){return Zt(this.element,t)}};function y(r){return typeof r=="string"?xe(document,r):new $t(r)}var B=new $t(document);y.in=B.in.bind(B);y.require=B.require.bind(B);y.maybe=B.maybe.bind(B);y.all=B.all.bind(B);y.attrs=Zt;y.register=xt;y.render=(r,...t)=>C(t,r);var v=Object.freeze({eq(r,t){if(r.length!==t.length)return!1;for(let e=0;e<=r.length;e++)if(r.at(e)!==t.at(e))return!1;return!0},random(r){return crypto.getRandomValues(new Uint8Array(r))}});var U=Object.freeze({fromBytes(r){return[...r].map(t=>t.toString(16).padStart(2,"0")).join("")},toBytes(r){if(r.length%2!==0)throw new Error("must have even number of hex characters");let t=new Uint8Array(r.length/2);for(let e=0;e<r.length;e+=2)t[e/2]=parseInt(r.slice(e,e+2),16);return t},random(r=32){return this.fromBytes(v.random(r))},string(r){return U.fromBytes(r)},bytes(r){return U.toBytes(r)}});var Jt=58,vt="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",Kt=Object.freeze({fromBytes(r){let t=BigInt("0x"+U.fromBytes(r)),e="";for(;t>0;){let s=t%BigInt(Jt);t=t/BigInt(Jt),e=vt[Number(s)]+e}for(let s of r)if(s===0)e=vt[0]+e;else break;return e},toBytes(r){let t=BigInt(0);for(let i of r){let c=vt.indexOf(i);if(c===-1)throw new Error(`Invalid character '${i}' in base58 string`);t=t*BigInt(Jt)+BigInt(c)}let e=t.toString(16);e.length%2!==0&&(e="0"+e);let s=U.toBytes(e),o=0;for(let i of r)if(i===vt[0])o++;else break;let n=new Uint8Array(o+s.length);return n.set(s,o),n},random(r=32){return this.fromBytes(v.random(r))},string(r){return Kt.fromBytes(r)},bytes(r){return Kt.toBytes(r)}});var we=class{lexicon;static lexicons=Object.freeze({base2:{characters:"01"},hex:{characters:"0123456789abcdef"},base36:{characters:"0123456789abcdefghijklmnopqrstuvwxyz"},base58:{characters:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"},base62:{characters:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"},base64url:{negativePrefix:"~",characters:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"},base64:{characters:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",padding:{character:"=",size:4}}});lookup;negativePrefix;constructor(t){this.lexicon=t,this.lookup=Object.fromEntries([...t.characters].map((e,s)=>[e,s])),this.negativePrefix=t.negativePrefix??"-"}toBytes(t){let e=Math.log2(this.lexicon.characters.length);if(Number.isInteger(e)){let c=0,a=0,l=[];for(let u of t){if(u===this.lexicon.padding?.character)continue;let h=this.lookup[u];if(h===void 0)throw new Error(`Invalid character: ${u}`);for(c=c<<e|h,a+=e;a>=8;)a-=8,l.push(c>>a&255)}return new Uint8Array(l)}let s=0n,o=BigInt(this.lexicon.characters.length),n=!1;t.startsWith(this.negativePrefix)&&(t=t.slice(this.negativePrefix.length),n=!0);for(let c of t){let a=this.lookup[c];if(a===void 0)throw new Error(`Invalid character: ${c}`);s=s*o+BigInt(a)}let i=[];for(;s>0n;)i.unshift(Number(s%256n)),s=s/256n;return new Uint8Array(i)}fromBytes(t){let e=Math.log2(this.lexicon.characters.length);if(Number.isInteger(e)){let i=0,c=0,a="";for(let l of t)for(i=i<<8|l,c+=8;c>=e;){c-=e;let u=i>>c&(1<<e)-1;a+=this.lexicon.characters[u]}if(c>0){let l=i<<e-c&(1<<e)-1;a+=this.lexicon.characters[l]}if(this.lexicon.padding)for(;a.length%this.lexicon.padding.size!==0;)a+=this.lexicon.padding.character;return a}let s=0n;for(let i of t)s=(s<<8n)+BigInt(i);if(s===0n)return this.lexicon.characters[0];let o=BigInt(this.lexicon.characters.length),n="";for(;s>0n;)n=this.lexicon.characters[Number(s%o)]+n,s=s/o;return n}toInteger(t){if(!t)return 0;let e=0n,s=!1,o=BigInt(this.lexicon.characters.length);t.startsWith(this.negativePrefix)&&(t=t.slice(this.negativePrefix.length),s=!0);for(let n of t){let i=this.lookup[n];if(i===void 0)throw new Error(`Invalid character: ${n}`);e=e*o+BigInt(i)}return Number(s?-e:e)}fromInteger(t){t=Math.floor(t);let e=t<0,s=BigInt(e?-t:t);if(s===0n)return this.lexicon.characters[0];let o=BigInt(this.lexicon.characters.length),n="";for(;s>0n;)n=this.lexicon.characters[Number(s%o)]+n,s=s/o;return e?`${this.negativePrefix}${n}`:n}random(t=32){return this.fromBytes(v.random(t))}};var Qt=Object.freeze({fromBytes(r){return typeof btoa=="function"?btoa(String.fromCharCode(...r)):Buffer.from(r).toString("base64")},toBytes(r){return typeof atob=="function"?Uint8Array.from(atob(r),t=>t.charCodeAt(0)):Uint8Array.from(Buffer.from(r,"base64"))},random(r=32){return this.fromBytes(v.random(r))},string(r){return Qt.fromBytes(r)},bytes(r){return Qt.toBytes(r)}});var $e=Object.freeze({fromBytes(r){return new TextDecoder().decode(r)},toBytes(r){return new TextEncoder().encode(r)},string(r){return $e.fromBytes(r)},bytes(r){return $e.toBytes(r)}});function H(r,t){let e,s,o=[];function n(){e=[],s&&clearTimeout(s),s=void 0,o=[]}return n(),((...i)=>{e=i,s&&clearTimeout(s);let c=new Promise((a,l)=>{o.push({resolve:a,reject:l})});return s=setTimeout(()=>{Promise.resolve().then(()=>t(...e)).then(a=>{for(let{resolve:l}of o)l(a);n()}).catch(a=>{for(let{reject:l}of o)l(a);n()})},r),c})}var Yt=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"});function st(){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}}var k=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)}};var At=(r=0)=>new Promise(t=>setTimeout(t,r));function Je(r){return{map:t=>ve(r,t),filter:t=>Ae(r,t)}}Je.pipe=Object.freeze({map:r=>(t=>ve(t,r)),filter:r=>(t=>Ae(t,r))});var ve=(r,t)=>Object.fromEntries(Object.entries(r).map(([e,s])=>[e,t(s,e)])),Ae=(r,t)=>Object.fromEntries(Object.entries(r).filter(([e,s])=>t(s,e)));function _e(){let r=new Set;async function t(...a){await Promise.all([...r].map(l=>l(...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:l,resolve:u}=st(),h=o(async(...b)=>{a&&await a(...b),u(b),h()});return l}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 _t(r){let t=_e();return r&&t.sub(r),t.sub}function Gt(r){let t=_e();return r&&t.sub(r),t.pub}function q(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 Se={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Et=r=>(...t)=>({_$litDirective$:r,values:t}),St=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 Xt=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=_t(),this.#e.set(t,e)),e}},m=globalThis[Symbol.for("e280.tracker")]??=new Xt;var{I:Sn}=ge;var Ee=r=>r.strings===void 0;var ot=(r,t)=>{let e=r._$AN;if(e===void 0)return!1;for(let s of e)s._$AO?.(t,!1),ot(s,t);return!0},Ct=r=>{let t,e;do{if((t=r._$AM)===void 0)break;e=t._$AN,e.delete(r),r=t}while(e?.size===0)},Ce=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),Ye(t)}};function Ke(r){this._$AN!==void 0?(Ct(this),this._$AM=r,Ce(this)):this._$AM=r}function Qe(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++)ot(s[n],!1),Ct(s[n]);else s!=null&&(ot(s,!1),Ct(s));else ot(this,r)}var Ye=r=>{r.type==Se.CHILD&&(r._$AP??=Qe,r._$AQ??=Ke)},Bt=class extends St{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),Ce(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(ot(this,t),Ct(this))}setValue(t){if(Ee(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 Be(r,t){for(let[e,s]of Object.entries(t))s===void 0||s===null?r.removeAttribute(e):typeof s=="string"?r.setAttribute(e,s):typeof s=="number"?r.setAttribute(e,s.toString()):typeof s=="boolean"?s===!0?r.setAttribute(e,""):r.removeAttribute(e):console.warn(`invalid attribute type ${e} is ${typeof s}`)}function V(r,t){pt(r,Ge(t))}function Ge(r){let t=[];if(Array.isArray(r)){let e=new Set(r.flat(1/0).reverse());for(let s of e)t.unshift(D(s))}else r!==void 0&&t.push(D(r));return t}var W=class{sneak;constructor(t){this.sneak=t}get(){return m.notifyRead(this),this.sneak}get value(){return this.get()}};var F=class extends W{on=_t();dispose(){this.on.clear()}};function kt(r,t=r){let{seen:e,result:s}=m.observe(r),o=H(0,t),n=[],i=()=>n.forEach(c=>c());for(let c of e){let a=m.subscribe(c,o);n.push(a)}return{result:s,dispose:i}}function Z(r,t){return r===t}var Pt=class extends F{#t;constructor(t,e){let s=e?.compare??Z,{result:o,dispose:n}=kt(t,async()=>{let i=t();!s(this.sneak,i)&&(this.sneak=i,await Promise.all([m.notifyWrite(this),this.on.pub(i)]))});super(o),this.#t=n}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 Ot=class extends W{#t;#e;#r=!1;#s;constructor(t,e){super(void 0),this.#t=t,this.#e=e?.compare??Z}get(){if(!this.#s){let{result:t,dispose:e}=kt(this.#t,()=>this.#r=!0);this.#s=e,this.sneak=t}if(this.#r){this.#r=!1;let t=this.#t();!this.#e(this.sneak,t)&&(this.sneak=t,m.notifyWrite(this))}return super.get()}dispose(){this.#s&&this.#s()}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 Tt=class extends F{#t=!1;#e;constructor(t,e){super(t),this.#e=e?.compare??Z}async set(t){return!this.#e(this.sneak,t)&&await this.publish(t),t}get value(){return this.get()}set value(t){this.set(t)}async publish(t=this.sneak){if(this.#t)throw new Error("forbid circularity");let e=Promise.resolve();try{this.#t=!0,this.sneak=t,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(s){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:s=>t.value=s}),Object.defineProperty(e,"sneak",{get:()=>t.sneak,set:s=>t.sneak=s}),e}};function Xe(r,t){return new Ot(r,t).fn()}function ke(r,t){return new Pt(r,t).fn()}function w(r,t){return new Tt(r,t).fn()}w.lazy=Xe;w.derive=ke;var R={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)=>R.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 z=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 R.all(...e)}signal;#t=0;#e=Gt();#r=Gt();constructor(t=["loading"]){this.signal=w(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){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 R.value(this.signal.get())}get error(){return R.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 R.select(this.signal.get(),t)}morph(t){return R.morph(this.pod,t)}};var jt=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 nt=Symbol(),it=Symbol(),at=Symbol(),J=class{element;shadow;renderNow;render;#t=0;#e=0;#r=new k;#s=st();#o=new jt;[nt](t){this.#t++,this.#e=0,this.#s=st();let e=t();return this.#s.resolve(),e}[it](){this.#o.unmountAll()}[at](){this.#o.remountAll()}constructor(t,e,s,o){this.element=t,this.shadow=e,this.renderNow=s,this.render=o}get renderCount(){return this.#t}get rendered(){return this.#s.promise}name(t){this.once(()=>this.element.setAttribute("view",t))}styles(...t){this.once(()=>V(this.shadow,t))}css(...t){return this.styles(...t)}attrs(t){return this.mount(()=>wt(this.element,this.render)),this.once(()=>y.attrs(this.element,t))}once(t){return this.#r.guarantee(this.#e++,t)}mount(t){return this.once(()=>this.#o.mount(t))}life(t){let e;return this.mount(()=>{let[s,o]=t();return e=s,o}),e}wake(t){return this.life(()=>[t(),()=>{}])}op=(()=>{let t=this;function e(s){return t.once(()=>z.load(s))}return e.load=e,e.promise=s=>this.once(()=>z.promise(s)),e})();signal=(()=>{let t=this;function e(s,o){return t.once(()=>w(s,o))}return e.derive=function(o,n){return t.once(()=>w.derive(o,n))},e.lazy=function(o,n){return t.once(()=>w.lazy(o,n))},e})();derive(t,e){return this.once(()=>w.derive(t,e))}lazy(t,e){return this.once(()=>w.lazy(t,e))}};var A=Pe({mode:"open"}),te=class extends HTMLElement{};xt({SlyView:te},{soft:!0,upgrade:!0});function Pe(r){function t(e){let s=c=>class extends Bt{#t=c.getElement();#e=this.#t.attachShadow(r);#r=H(0,()=>this.#i());#s=new k;#o;#n=new J(this.#t,this.#e,()=>this.#i(),this.#r);#a=(()=>{let l=e(this.#n);return this.#t.setAttribute("view",r.name??""),r.styles&&V(this.#e,r.styles),l})();#i(){if(!this.#o||!this.isConnected)return;let{context:l,props:u}=this.#o;this.#n[nt](()=>{Be(this.#t,l.attrs);let{result:h,seen:b}=m.observe(()=>this.#a(...u));C(h,this.#e);for(let x of b)this.#s.guarantee(x,()=>m.subscribe(x,async()=>this.#r()));c.isComponent||C(l.children,this.#t)})}render(l,u){return this.#o={context:l,props:u},this.#i(),c.isComponent?null:this.#t}disconnected(){this.#n[it]();for(let l of this.#s.values())l();this.#s.clear()}reconnected(){this.#n[at]()}},o=Et(s({getElement:()=>document.createElement(r.tag??"sly-view"),isComponent:!1})),n=()=>({attrs:{},children:[]});function i(...c){return o(n(),c)}return i.props=(...c)=>{let a=n(),l={children(...u){return a={...a,children:[...a.children,...u]},l},attrs(u){return a={...a,attrs:{...a.attrs,...u}},l},attr(u,h){return a={...a,attrs:{...a.attrs,[u]:h}},l},render(){return o(a,c)}};return l},i.component=(...c)=>class extends HTMLElement{#t=Et(s({getElement:()=>this,isComponent:!0}));constructor(){super(),this.render(...c)}render(...a){this.isConnected&&C(this.#t(n(),a),this)}},i}return t.declare=t,t.settings=e=>Pe({...r,...e}),t.component=e=>t(s=>()=>e(s)).component(),t}var _=g`
4
4
  @layer reset {
5
5
  * {
6
6
  margin: 0;
@@ -16,7 +16,7 @@ var Ne=Object.defineProperty;var Ue=(r,t)=>{for(var e in t)Ne(r,e,{get:t[e],enum
16
16
  ::-webkit-scrollbar-thumb { background: #333; border-radius: 1em; }
17
17
  ::-webkit-scrollbar-thumb:hover { background: #444; }
18
18
  }
19
- `;var Nt=A(r=>t=>{r.name("counter"),r.styles(_,tr);let e=r.signal(0),s=r.once(()=>Date.now());r.mount(()=>q(async()=>{let c=Date.now()-s;e.set(Math.floor(c/1e3))}));let o=r.signal(t),n=()=>o.value++,i=r.signal.derive(()=>o()*e());return $`
19
+ `;var Mt=A(r=>t=>{r.name("counter"),r.styles(_,tr);let e=r.signal(0),s=r.once(()=>Date.now());r.mount(()=>q(async()=>{let c=Date.now()-s;e.set(Math.floor(c/1e3))}));let o=r.signal(t),n=()=>o.value++,i=r.signal.derive(()=>o()*e());return $`
20
20
  <slot></slot>
21
21
  <div>
22
22
  <span>${e.get()}</span>
@@ -30,7 +30,7 @@ var Ne=Object.defineProperty;var Ue=(r,t)=>{for(var e in t)Ne(r,e,{get:t[e],enum
30
30
  <div>
31
31
  <button @click="${n}">+</button>
32
32
  </div>
33
- `}),tr=y`
33
+ `}),tr=g`
34
34
  :host {
35
35
  display: flex;
36
36
  justify-content: center;
@@ -40,23 +40,23 @@ var Ne=Object.defineProperty;var Ue=(r,t)=>{for(var e in t)Ne(r,e,{get:t[e],enum
40
40
  button {
41
41
  padding: 0.2em 0.5em;
42
42
  }
43
- `;var Ut={};Ue(Ut,{arrow:()=>or,bar:()=>nr,bar2:()=>ir,bar3:()=>ar,bar4:()=>cr,bin:()=>Ar,binary:()=>_r,binary2:()=>Sr,block:()=>lr,block2:()=>ur,brackets:()=>mr,brackets2:()=>yr,braille:()=>ee,bright:()=>Tr,clock:()=>Br,cylon:()=>fr,dots:()=>gr,dots2:()=>br,earth:()=>Pr,fistbump:()=>kr,kiss:()=>Cr,lock:()=>Or,moon:()=>Mr,pie:()=>hr,pulseblue:()=>Er,runner:()=>pr,slider:()=>dr,speaker:()=>jr,spinner:()=>sr,wave:()=>xr,wavepulse:()=>$r,wavepulse2:()=>vr,wavescrub:()=>wr});function p(r,t){return()=>er({hz:r,frames:t})}var er=A(r=>({hz:t,frames:e})=>{r.name("loading"),r.styles(_,rr);let s=r.signal(0);return r.mount(()=>q(async()=>{await vt(1e3/t);let o=s.get()+1;s.set(o>=e.length?0:o)})),e.at(s.get())}),rr=y`
43
+ `;var Nt={};Ue(Nt,{arrow:()=>or,bar:()=>nr,bar2:()=>ir,bar3:()=>ar,bar4:()=>cr,bin:()=>Ar,binary:()=>_r,binary2:()=>Sr,block:()=>lr,block2:()=>ur,brackets:()=>mr,brackets2:()=>yr,braille:()=>ee,bright:()=>Tr,clock:()=>Br,cylon:()=>fr,dots:()=>gr,dots2:()=>br,earth:()=>Pr,fistbump:()=>kr,kiss:()=>Cr,lock:()=>Or,moon:()=>Mr,pie:()=>hr,pulseblue:()=>Er,runner:()=>pr,slider:()=>dr,speaker:()=>jr,spinner:()=>sr,wave:()=>xr,wavepulse:()=>$r,wavepulse2:()=>vr,wavescrub:()=>wr});function p(r,t){return()=>er({hz:r,frames:t})}var er=A(r=>({hz:t,frames:e})=>{r.name("loading"),r.styles(_,rr);let s=r.signal(0);return r.mount(()=>q(async()=>{await At(1e3/t);let o=s.get()+1;s.set(o>=e.length?0:o)})),e.at(s.get())}),rr=g`
44
44
  :host {
45
45
  font-family: monospace;
46
46
  white-space: pre;
47
47
  user-select: none;
48
48
  }
49
- `;var f=20,K=10,Q=4,sr=p(f,["|","/","-","\\"]),ee=p(f,["\u2808","\u2810","\u2820","\u2880","\u2840","\u2804","\u2802","\u2801"]),or=p(f,["\u2B06\uFE0F","\u2197\uFE0F","\u27A1\uFE0F","\u2198\uFE0F","\u2B07\uFE0F","\u2199\uFE0F","\u2B05\uFE0F","\u2196\uFE0F"]),nr=p(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"]),ir=p(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"]),ar=p(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"]),cr=p(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"]),lr=p(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"]),ur=p(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"]),pr=p(Q,["\u{1F6B6}","\u{1F3C3}"]),hr=p(K,["\u25F7","\u25F6","\u25F5","\u25F4"]),fr=p(f,["=----","-=---","--=--","---=-","----=","----=","---=-","--=--","-=---","=----"]),dr=p(f,["o----","-o---","--o--","---o-","----o","----o","---o-","--o--","-o---","o----"]),mr=p(K,["[ ]","[ ]","[= ]","[== ]","[===]","[ ==]","[ =]"]),yr=p(K,["[ ]","[ ]","[= ]","[== ]","[===]","[ ==]","[ =]","[ ]","[ ]","[ =]","[ ==]","[===]","[== ]","[= ]"]),gr=p(K,[" "," ",". ",".. ","..."," .."," ."]),br=p(f,[". ",". ",".. ","..."," .."," ."," ."," ..","...",".. "]),xr=p(f,[".....",".....",":....","::...",":::..","::::.",":::::",":::::",".::::","..:::","...::","....:"]),wr=p(f,[":....",":....","::...",".::..","..::.","...::","....:","....:","...::","..::.",".::..","::..."]),$r=p(f,[".....",".....","..:..",".:::.",".:::.",":::::",":::::","::.::",":...:"]),vr=p(f,[".....",".....","..:..",".:::.",".:::.",":::::",":::::","::.::",":...:",".....",".....",":...:","::.::",":::::",":::::",".:::.",".:::.","..:.."]),Ar=p(f,["000","100","110","111","011","001"]),_r=p(f,["11111","01111","00111","10011","11001","01100","00110","10011","11001","11100","11110"]),Sr=p(f,["11111","01111","10111","11011","11101","11110","11111","11110","11101","11011","10111","01111"]),Er=p(Q,["\u{1F539}","\u{1F535}"]),Cr=p(K,["\u{1F642}","\u{1F642}","\u{1F617}","\u{1F619}","\u{1F618}","\u{1F618}","\u{1F619}"]),Br=p(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}"]),kr=p(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}"]),Pr=p(Q,["\u{1F30E}","\u{1F30F}","\u{1F30D}"]),Or=p(Q,["\u{1F513}","\u{1F512}"]),Tr=p(Q,["\u{1F505}","\u{1F506}"]),jr=p(Q,["\u{1F508}","\u{1F508}","\u{1F509}","\u{1F50A}","\u{1F50A}","\u{1F509}"]),Mr=p(K,["\u{1F311}","\u{1F311}","\u{1F311}","\u{1F318}","\u{1F317}","\u{1F316}","\u{1F315}","\u{1F314}","\u{1F313}","\u{1F312}"]);var Oe=A(r=>t=>(r.name("error"),r.styles(_,Nr),typeof t=="string"?t:t instanceof Error?$`<strong>${t.name}:</strong> <span>${t.message}</span>`:"error")),Nr=y`
49
+ `;var f=20,K=10,Q=4,sr=p(f,["|","/","-","\\"]),ee=p(f,["\u2808","\u2810","\u2820","\u2880","\u2840","\u2804","\u2802","\u2801"]),or=p(f,["\u2B06\uFE0F","\u2197\uFE0F","\u27A1\uFE0F","\u2198\uFE0F","\u2B07\uFE0F","\u2199\uFE0F","\u2B05\uFE0F","\u2196\uFE0F"]),nr=p(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"]),ir=p(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"]),ar=p(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"]),cr=p(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"]),lr=p(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"]),ur=p(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"]),pr=p(Q,["\u{1F6B6}","\u{1F3C3}"]),hr=p(K,["\u25F7","\u25F6","\u25F5","\u25F4"]),fr=p(f,["=----","-=---","--=--","---=-","----=","----=","---=-","--=--","-=---","=----"]),dr=p(f,["o----","-o---","--o--","---o-","----o","----o","---o-","--o--","-o---","o----"]),mr=p(K,["[ ]","[ ]","[= ]","[== ]","[===]","[ ==]","[ =]"]),yr=p(K,["[ ]","[ ]","[= ]","[== ]","[===]","[ ==]","[ =]","[ ]","[ ]","[ =]","[ ==]","[===]","[== ]","[= ]"]),gr=p(K,[" "," ",". ",".. ","..."," .."," ."]),br=p(f,[". ",". ",".. ","..."," .."," ."," ."," ..","...",".. "]),xr=p(f,[".....",".....",":....","::...",":::..","::::.",":::::",":::::",".::::","..:::","...::","....:"]),wr=p(f,[":....",":....","::...",".::..","..::.","...::","....:","....:","...::","..::.",".::..","::..."]),$r=p(f,[".....",".....","..:..",".:::.",".:::.",":::::",":::::","::.::",":...:"]),vr=p(f,[".....",".....","..:..",".:::.",".:::.",":::::",":::::","::.::",":...:",".....",".....",":...:","::.::",":::::",":::::",".:::.",".:::.","..:.."]),Ar=p(f,["000","100","110","111","011","001"]),_r=p(f,["11111","01111","00111","10011","11001","01100","00110","10011","11001","11100","11110"]),Sr=p(f,["11111","01111","10111","11011","11101","11110","11111","11110","11101","11011","10111","01111"]),Er=p(Q,["\u{1F539}","\u{1F535}"]),Cr=p(K,["\u{1F642}","\u{1F642}","\u{1F617}","\u{1F619}","\u{1F618}","\u{1F618}","\u{1F619}"]),Br=p(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}"]),kr=p(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}"]),Pr=p(Q,["\u{1F30E}","\u{1F30F}","\u{1F30D}"]),Or=p(Q,["\u{1F513}","\u{1F512}"]),Tr=p(Q,["\u{1F505}","\u{1F506}"]),jr=p(Q,["\u{1F508}","\u{1F508}","\u{1F509}","\u{1F50A}","\u{1F50A}","\u{1F509}"]),Mr=p(K,["\u{1F311}","\u{1F311}","\u{1F311}","\u{1F318}","\u{1F317}","\u{1F316}","\u{1F315}","\u{1F314}","\u{1F313}","\u{1F312}"]);var Oe=A(r=>t=>(r.name("error"),r.styles(_,Nr),typeof t=="string"?t:t instanceof Error?$`<strong>${t.name}:</strong> <span>${t.message}</span>`:"error")),Nr=g`
50
50
  :host {
51
51
  font-family: monospace;
52
52
  color: red;
53
53
  }
54
- `;function Te(r=ee,t=e=>Oe(e)){return(e,s)=>e.select({loading:r,ready:s,error:t})}var je=A(r=>()=>{r.name("loaders"),r.styles(_,Ur);let t=r.once(()=>z.loading());return r.once(()=>Object.entries(Ut).map(([s,o])=>({key:s,loader:Te(o)}))).map(({key:s,loader:o})=>$`
54
+ `;function Te(r=ee,t=e=>Oe(e)){return(e,s)=>e.select({loading:r,ready:s,error:t})}var je=A(r=>()=>{r.name("loaders"),r.styles(_,Ur);let t=r.once(()=>z.loading());return r.once(()=>Object.entries(Nt).map(([s,o])=>({key:s,loader:Te(o)}))).map(({key:s,loader:o})=>$`
55
55
  <div data-anim="${s}">
56
56
  <span>${s}</span>
57
57
  <span>${o(t,()=>null)}</span>
58
58
  </div>
59
- `)}),Ur=y`
59
+ `)}),Ur=g`
60
60
  :host {
61
61
  display: flex;
62
62
  flex-direction: row;
@@ -98,18 +98,18 @@ div {
98
98
  }
99
99
  }
100
100
  `;var Me=A(r=>()=>(r.name("demo"),r.styles(_,Hr),$`
101
- ${Nt.props(2).children("view").render()}
101
+ ${Mt.props(2).children("view").render()}
102
102
  ${je()}
103
- `)),Hr=y`
103
+ `)),Hr=g`
104
104
  :host {
105
105
  display: flex;
106
106
  flex-direction: column;
107
107
  align-items: center;
108
108
  gap: 1em;
109
109
  }
110
- `;var Ht=class extends HTMLElement{static styles;shadow;#t;#e=0;#r=new k;constructor(){super(),this.shadow=this.attachShadow({mode:"open"}),this.#t=new J(this,this.shadow,this.updateNow,this.update)}updateNow=()=>{this.#t[nt](()=>{let{result:t,seen:e}=m.observe(()=>this.render(this.#t));x.render(this.shadow,t);for(let s of e)this.#r.guarantee(s,()=>m.subscribe(s,this.update))})};update=H(0,this.updateNow);connectedCallback(){if(this.#e===0){let t=this.constructor.styles;t&&V(this.shadow,t),this.updateNow()}else this.#t[at]();this.#s.start(),this.#e++}disconnectedCallback(){this.#s.stop(),this.#t[it]();for(let t of this.#r.values())t();this.#r.clear()}#s=(()=>{let t;return{start:()=>{t&&t(),t=jt(this,()=>this.update)},stop:()=>{t&&t(),t=void 0}}})()};var Rt=class extends Ht{static styles=y`span{color:orange}`;attrs=Mt(this,{value:Number});something={whatever:"rofl"};render(t){let{value:e=1}=this.attrs,s=t.signal(0);return t.mount(()=>q(async()=>{await vt(10),await s(s()+1)})),$`
110
+ `;var Ut=class extends HTMLElement{static styles;shadow;#t;#e=0;#r=new k;constructor(){super(),this.shadow=this.attachShadow({mode:"open"}),this.#t=new J(this,this.shadow,this.updateNow,this.update)}updateNow=()=>{this.#t[nt](()=>{let{result:t,seen:e}=m.observe(()=>this.render(this.#t));y.render(this.shadow,t);for(let s of e)this.#r.guarantee(s,()=>m.subscribe(s,this.update))})};update=H(0,this.updateNow);connectedCallback(){if(this.#e===0){let t=this.constructor.styles;t&&V(this.shadow,t),this.updateNow()}else this.#t[at]();this.#s.start(),this.#e++}disconnectedCallback(){this.#s.stop(),this.#t[it]();for(let t of this.#r.values())t();this.#r.clear()}#s=(()=>{let t;return{start:()=>{t&&t(),t=wt(this,()=>this.update)},stop:()=>{t&&t(),t=void 0}}})()};var Ht=class extends Ut{static styles=g`span{color:orange}`;attrs=y.attrs(this,{value:Number});something={whatever:"rofl"};render(t){let{value:e=1}=this.attrs,s=t.signal(0);return t.mount(()=>q(async()=>{await At(10),await s(s()+1)})),$`
111
111
  <span>${s()*e}</span>
112
- `}};x.in(".demo").render(Me());x.register({IncrediElement:Rt,DemoCounter:Nt.component(1)});console.log("\u{1F99D} sly");
112
+ `}};y.in(".demo").render(Me());y.register({IncrediElement:Ht,DemoCounter:Mt.component(1)});console.log("\u{1F99D} sly");
113
113
  /*! Bundled license information:
114
114
 
115
115
  @lit/reactive-element/css-tag.js: