@e280/sly 0.2.0 → 0.2.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e280/sly",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "web shadow views",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -23,11 +23,11 @@
23
23
  "lit": "^3.3.1"
24
24
  },
25
25
  "dependencies": {
26
- "@e280/strata": "^0.2.2",
26
+ "@e280/strata": "^0.2.3",
27
27
  "@e280/stz": "^0.2.14"
28
28
  },
29
29
  "devDependencies": {
30
- "@e280/science": "^0.1.3",
30
+ "@e280/science": "^0.1.4",
31
31
  "@e280/scute": "^0.1.1",
32
32
  "http-server": "^14.1.1",
33
33
  "npm-run-all": "^4.1.5",
@@ -1,6 +1,6 @@
1
- var We=Object.defineProperty;var ue=(r,t)=>{for(var e in t)We(r,e,{get:t[e],enumerable:!0})};var dt=globalThis,ft=dt.ShadowRoot&&(dt.ShadyCSS===void 0||dt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Zt=Symbol(),le=new WeakMap,et=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(ft&&t===void 0){let s=e!==void 0&&e.length===1;s&&(t=le.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&le.set(e,t))}return t}toString(){return this.cssText}},me=r=>new et(typeof r=="string"?r:r+"",void 0,Zt),$=(r,...t)=>{let e=r.length===1?r[0]:t.reduce(((s,o,i)=>s+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+r[i+1]),r[0]);return new et(e,r,Zt)},gt=(r,t)=>{if(ft)r.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet));else for(let e of t){let s=document.createElement("style"),o=dt.litNonce;o!==void 0&&s.setAttribute("nonce",o),s.textContent=e.cssText,r.appendChild(s)}},z=ft?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(let s of t.cssRules)e+=s.cssText;return me(e)})(r):r;var{is:Ge,defineProperty:Fe,getOwnPropertyDescriptor:Ze,getOwnPropertyNames:Je,getOwnPropertySymbols:Ke,getPrototypeOf:Qe}=Object,yt=globalThis,de=yt.trustedTypes,Ye=de?de.emptyScript:"",Xe=yt.reactiveElementPolyfillSupport,rt=(r,t)=>r,Jt={toAttribute(r,t){switch(t){case Boolean:r=r?Ye: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}},ge=(r,t)=>!Ge(r,t),fe={attribute:!0,type:String,converter:Jt,reflect:!1,useDefault:!1,hasChanged:ge};Symbol.metadata??=Symbol("metadata"),yt.litPropertyMetadata??=new WeakMap;var E=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=fe){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&&Fe(this.prototype,t,o)}}static getPropertyDescriptor(t,e,s){let{get:o,set:i}=Ze(this.prototype,t)??{get(){return this[e]},set(n){this[e]=n}};return{get:o,set(n){let h=o?.call(this);i?.call(this,n),this.requestUpdate(t,h,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??fe}static _$Ei(){if(this.hasOwnProperty(rt("elementProperties")))return;let t=Qe(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(rt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(rt("properties"))){let e=this.properties,s=[...Je(e),...Ke(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(z(o))}else t!==void 0&&e.push(z(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 gt(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 i=(s.converter?.toAttribute!==void 0?s.converter:Jt).toAttribute(e,s.type);this._$Em=t,i==null?this.removeAttribute(o):this.setAttribute(o,i),this._$Em=null}}_$AK(t,e){let s=this.constructor,o=s._$Eh.get(t);if(o!==void 0&&this._$Em!==o){let i=s.getPropertyOptions(o),n=typeof i.converter=="function"?{fromAttribute:i.converter}:i.converter?.fromAttribute!==void 0?i.converter:Jt;this._$Em=o,this[o]=n.fromAttribute(e,i.type)??this._$Ej?.get(o)??null,this._$Em=null}}requestUpdate(t,e,s){if(t!==void 0){let o=this.constructor,i=this[t];if(s??=o.getPropertyOptions(t),!((s.hasChanged??ge)(i,e)||s.useDefault&&s.reflect&&i===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:i},n){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,n??e??this[t]),i!==!0||n!==void 0)||(this._$AL.has(t)||(this.hasUpdated||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,i]of this._$Ep)this[o]=i;this._$Ep=void 0}let s=this.constructor.elementProperties;if(s.size>0)for(let[o,i]of s){let{wrapped:n}=i,h=this[o];n!==!0||this._$AL.has(o)||h===void 0||this.C(o,void 0,i,h)}}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){}};E.elementStyles=[],E.shadowRootOptions={mode:"open"},E[rt("elementProperties")]=new Map,E[rt("finalized")]=new Map,Xe?.({ReactiveElement:E}),(yt.reactiveElementVersions??=[]).push("2.1.0");var Qt=globalThis,$t=Qt.trustedTypes,ye=$t?$t.createPolicy("lit-html",{createHTML:r=>r}):void 0,Yt="$lit$",C=`lit$${Math.random().toFixed(9).slice(2)}$`,Xt="?"+C,tr=`<${Xt}>`,M=document,ot=()=>M.createComment(""),it=r=>r===null||typeof r!="object"&&typeof r!="function",te=Array.isArray,ve=r=>te(r)||typeof r?.[Symbol.iterator]=="function",Kt=`[
2
- \f\r]`,st=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,$e=/-->/g,be=/>/g,T=RegExp(`>|${Kt}(?:([^\\s"'>=/]+)(${Kt}*=${Kt}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),_e=/'/g,we=/"/g,Ae=/^(?:script|style|textarea|title)$/i,ee=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),w=ee(1),ts=ee(2),es=ee(3),O=Symbol.for("lit-noChange"),f=Symbol.for("lit-nothing"),xe=new WeakMap,N=M.createTreeWalker(M,129);function Se(r,t){if(!te(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return ye!==void 0?ye.createHTML(t):t}var Ee=(r,t)=>{let e=r.length-1,s=[],o,i=t===2?"<svg>":t===3?"<math>":"",n=st;for(let h=0;h<e;h++){let a=r[h],p,d,l=-1,_=0;for(;_<a.length&&(n.lastIndex=_,d=n.exec(a),d!==null);)_=n.lastIndex,n===st?d[1]==="!--"?n=$e:d[1]!==void 0?n=be:d[2]!==void 0?(Ae.test(d[2])&&(o=RegExp("</"+d[2],"g")),n=T):d[3]!==void 0&&(n=T):n===T?d[0]===">"?(n=o??st,l=-1):d[1]===void 0?l=-2:(l=n.lastIndex-d[2].length,p=d[1],n=d[3]===void 0?T:d[3]==='"'?we:_e):n===we||n===_e?n=T:n===$e||n===be?n=st:(n=T,o=void 0);let P=n===T&&r[h+1].startsWith("/>")?" ":"";i+=n===st?a+tr:l>=0?(s.push(p),a.slice(0,l)+Yt+a.slice(l)+C+P):a+C+(l===-2?h:P)}return[Se(r,i+(r[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]},nt=class r{constructor({strings:t,_$litType$:e},s){let o;this.parts=[];let i=0,n=0,h=t.length-1,a=this.parts,[p,d]=Ee(t,e);if(this.el=r.createElement(p,s),N.currentNode=this.el.content,e===2||e===3){let l=this.el.content.firstChild;l.replaceWith(...l.childNodes)}for(;(o=N.nextNode())!==null&&a.length<h;){if(o.nodeType===1){if(o.hasAttributes())for(let l of o.getAttributeNames())if(l.endsWith(Yt)){let _=d[n++],P=o.getAttribute(l).split(C),mt=/([.?@])?(.*)/.exec(_);a.push({type:1,index:i,name:mt[2],strings:P,ctor:mt[1]==="."?_t:mt[1]==="?"?wt:mt[1]==="@"?xt:H}),o.removeAttribute(l)}else l.startsWith(C)&&(a.push({type:6,index:i}),o.removeAttribute(l));if(Ae.test(o.tagName)){let l=o.textContent.split(C),_=l.length-1;if(_>0){o.textContent=$t?$t.emptyScript:"";for(let P=0;P<_;P++)o.append(l[P],ot()),N.nextNode(),a.push({type:2,index:++i});o.append(l[_],ot())}}}else if(o.nodeType===8)if(o.data===Xt)a.push({type:2,index:i});else{let l=-1;for(;(l=o.data.indexOf(C,l+1))!==-1;)a.push({type:7,index:i}),l+=C.length-1}i++}}static createElement(t,e){let s=M.createElement("template");return s.innerHTML=t,s}};function U(r,t,e=r,s){if(t===O)return t;let o=s!==void 0?e._$Co?.[s]:e._$Cl,i=it(t)?void 0:t._$litDirective$;return o?.constructor!==i&&(o?._$AO?.(!1),i===void 0?o=void 0:(o=new i(r),o._$AT(r,e,s)),s!==void 0?(e._$Co??=[])[s]=o:e._$Cl=o),o!==void 0&&(t=U(r,o._$AS(r,t.values),o,s)),t}var bt=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??M).importNode(e,!0);N.currentNode=o;let i=N.nextNode(),n=0,h=0,a=s[0];for(;a!==void 0;){if(n===a.index){let p;a.type===2?p=new q(i,i.nextSibling,this,t):a.type===1?p=new a.ctor(i,a.name,a.strings,this,t):a.type===6&&(p=new vt(i,this,t)),this._$AV.push(p),a=s[++h]}n!==a?.index&&(i=N.nextNode(),n++)}return N.currentNode=M,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++}},q=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,o){this.type=2,this._$AH=f,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=U(this,t,e),it(t)?t===f||t==null||t===""?(this._$AH!==f&&this._$AR(),this._$AH=f):t!==this._$AH&&t!==O&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):ve(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!==f&&it(this._$AH)?this._$AA.nextSibling.data=t:this.T(M.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=nt.createElement(Se(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===o)this._$AH.p(e);else{let i=new bt(o,this),n=i.u(this.options);i.p(e),this.T(n),this._$AH=i}}_$AC(t){let e=xe.get(t.strings);return e===void 0&&xe.set(t.strings,e=new nt(t)),e}k(t){te(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,s,o=0;for(let i of t)o===e.length?e.push(s=new r(this.O(ot()),this.O(ot()),this,this.options)):s=e[o],s._$AI(i),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))}},H=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,o,i){this.type=1,this._$AH=f,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=i,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=f}_$AI(t,e=this,s,o){let i=this.strings,n=!1;if(i===void 0)t=U(this,t,e,0),n=!it(t)||t!==this._$AH&&t!==O,n&&(this._$AH=t);else{let h=t,a,p;for(t=i[0],a=0;a<i.length-1;a++)p=U(this,h[s+a],e,a),p===O&&(p=this._$AH[a]),n||=!it(p)||p!==this._$AH[a],p===f?t=f:t!==f&&(t+=(p??"")+i[a+1]),this._$AH[a]=p}n&&!o&&this.j(t)}j(t){t===f?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},_t=class extends H{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===f?void 0:t}},wt=class extends H{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==f)}},xt=class extends H{constructor(t,e,s,o,i){super(t,e,s,o,i),this.type=5}_$AI(t,e=this){if((t=U(this,t,e,0)??f)===O)return;let s=this._$AH,o=t===f&&s!==f||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,i=t!==f&&(s===f||o);o&&this.element.removeEventListener(this.name,this,s),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},vt=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){U(this,t)}},Ce={M:Yt,P:C,A:Xt,C:1,L:Ee,R:bt,D:ve,V:U,I:q,H,N:wt,U:xt,B:_t,F:vt},er=Qt.litHtmlPolyfillSupport;er?.(nt,q),(Qt.litHtmlVersions??=[]).push("3.3.0");var k=(r,t,e)=>{let s=e?.renderBefore??t,o=s._$litPart$;if(o===void 0){let i=e?.renderBefore??null;s._$litPart$=o=new q(t.insertBefore(ot(),i),i,void 0,e??{})}return o._$AI(r),o};var re=globalThis,B=class extends E{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=k(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return O}};B._$litElement$=!0,B.finalized=!0,re.litElementHydrateSupport?.({LitElement:B});var rr=re.litElementPolyfillSupport;rr?.({LitElement:B});(re.litElementVersions??=[]).push("4.2.0");var x={string:(r,t)=>r.getAttribute(t)??void 0,number:(r,t)=>{let e=r.getAttribute(t);return e===null||!e?void 0:Number(e)},boolean:(r,t)=>r.getAttribute(t)!==null},g={string:(r,t,e)=>(e===void 0?r.removeAttribute(t):r.setAttribute(t,e),!0),number:(r,t,e)=>(e===void 0?r.removeAttribute(t):r.setAttribute(t,e.toString()),!0),boolean:(r,t,e)=>(e?r.setAttribute(t,""):r.removeAttribute(t),!0),any:(r,t,e)=>{e==null?r.removeAttribute(t):typeof e=="string"?r.setAttribute(t,e):typeof e=="number"?r.setAttribute(t,e.toString()):typeof e=="boolean"?e===!0?r.setAttribute(t,""):r.removeAttribute(t):console.warn(`invalid attribute "${t}" type is "${typeof e}"`)},entries:(r,t)=>{for(let[e,s]of t)g.any(r,e,s)},record:(r,t)=>g.entries(r,Object.entries(t))};function Pe(r,t={}){let e=document.createElement(r);return g.record(e,t),e}function ke(r){let t=document.createDocumentFragment();return k(r,t),t.firstElementChild}function V(r,t){let e=[];for(let[s,o]of Object.entries(t))if(typeof o=="function")r.addEventListener(s,o),e.push(()=>r.removeEventListener(s,o));else{let[i,n]=o;r.addEventListener(s,n,i),e.push(()=>r.removeEventListener(s,n))}return()=>e.forEach(s=>s())}function Re(r,t){let e=new MutationObserver(t);return e.observe(r,{attributes:!0}),()=>e.disconnect()}var Te=(r,t)=>new Proxy(t,{get:(e,s)=>{switch(t[s]){case String:return x.string(r,s);case Number:return x.number(r,s);case Boolean:return x.boolean(r,s);default:throw new Error(`invalid attribute type for "${s}"`)}},set:(e,s,o)=>{switch(t[s]){case String:return g.string(r,s,o);case Number:return g.number(r,s,o);case Boolean:return g.boolean(r,s,o);default:throw new Error(`invalid attribute type for "${s}"`)}}});var At=class{element;constructor(t){this.element=t}strings=new Proxy({},{get:(t,e)=>x.string(this.element,e),set:(t,e,s)=>g.string(this.element,e,s)});numbers=new Proxy({},{get:(t,e)=>x.number(this.element,e),set:(t,e,s)=>g.number(this.element,e,s)});booleans=new Proxy({},{get:(t,e)=>x.boolean(this.element,e),set:(t,e,s)=>g.boolean(this.element,e,s)})};function I(r){let t=new At(r);return{strings:t.strings,numbers:t.numbers,booleans:t.booleans,on:e=>Re(r,e),spec:e=>Te(r,e)}}I.get=x;I.set=g;function Ne(r){return new se(r)}var se=class{tagName;#t=new Map;#e=[];constructor(t){this.tagName=t}attr(t,e=!0){return this.#t.set(t,e),this}attrs(t){for(let[e,s]of Object.entries(t))this.attr(e,s);return this}children(...t){return this.#e.push(...t),this}done(){let t=document.createElement(this.tagName);return g.entries(t,this.#t),t.append(...this.#e),t}};function W(r,t=document){let e=t.querySelector(r);if(!e)throw new Error(`element not found (${r})`);return e}function St(r,t=document){return t.querySelector(r)}function Et(r,t=document){return Array.from(t.querySelectorAll(r))}var Ct=class r{element;#t;constructor(t){this.element=t}in(t){return new r(typeof t=="string"?W(t,this.element):t)}require(t){return W(t,this.element)}maybe(t){return St(t,this.element)}all(t){return Et(t,this.element)}render(...t){return k(t,this.element)}get attrs(){return this.#t??=I(this.element)}events(t){return V(this.element,t)}};function Me(r){return r.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()}function Oe(r,t={}){let{soft:e=!1,upgrade:s=!0}=t;for(let[o,i]of Object.entries(r)){let n=Me(o),h=customElements.get(n);e&&h||(customElements.define(n,i),s&&document.querySelectorAll(n).forEach(a=>{a.constructor===HTMLElement&&customElements.upgrade(a)}))}}function u(r,t=document){return W(r,t)}u.in=(r,t=document)=>new Ct(t).in(r);u.require=W;u.maybe=St;u.all=Et;u.el=Pe;u.elmer=Ne;u.mk=ke;u.events=V;u.attrs=I;u.register=Oe;u.render=(r,...t)=>k(t,r);var Pt=class{#t;#e;constructor(t,e){this.#e=t,this.#t=e}attr(t,e=!0){return this.#e.attrs.set(t,e),this}attrs(t){for(let[e,s]of Object.entries(t))this.#e.attrs.set(e,s);return this}children(...t){return this.#e.children.push(...t),this}render(){return this.#t(this.#e)}};function kt(r,t){let e,s,o=[];function i(){e=[],s&&clearTimeout(s),s=void 0,o=[]}return i(),((...n)=>{e=n,s&&clearTimeout(s);let h=new Promise((a,p)=>{o.push({resolve:a,reject:p})});return s=setTimeout(()=>{Promise.resolve().then(()=>t(...e)).then(a=>{for(let{resolve:p}of o)p(a);i()}).catch(a=>{for(let{reject:p}of o)p(a);i()})},r),h})}function L(){let r,t,e=new Promise((o,i)=>{r=o,t=i});function s(o){return o.then(r).catch(t),e}return{promise:e,resolve:r,reject:t,entangle:s}}function Ue(r){let t=null;return((...e)=>(t?t.params=e:(t={params:e,deferred:L()},queueMicrotask(()=>{let{params:s,deferred:o}=t;t=null,Promise.resolve(r(...s)).then(o.resolve).catch(o.reject)})),t.deferred.promise))}var G=class r extends Map{static require(t,e){if(t.has(e))return t.get(e);throw new Error(`required key not found: "${e}"`)}static guarantee(t,e,s){if(t.has(e))return t.get(e);{let o=s();return t.set(e,o),o}}array(){return[...this]}require(t){return r.require(this,t)}guarantee(t,e){return r.guarantee(this,t,e)}};function Rt(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 Tt=(r=0)=>new Promise(t=>setTimeout(t,r));function He(){let r=new Set;async function t(...a){await Promise.all([...r].map(p=>p(...a)))}function e(a){return r.add(a),()=>{r.delete(a)}}async function s(...a){return t(...a)}function o(a){return e(a)}async function i(a){let{promise:p,resolve:d}=L(),l=o(async(..._)=>{a&&await a(..._),d(_),l()});return p}function n(){r.clear()}let h={pub:s,sub:o,publish:t,subscribe:e,on:e,next:i,clear:n};return Object.assign(o,h),Object.assign(s,h),h}function Nt(r){let t=He();return r&&t.sub(r),t.sub}function oe(r){let t=He();return r&&t.sub(r),t.pub}var ie=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=Nt(),this.#e.set(t,e)),e}},y=globalThis[Symbol.for("e280.tracker")]??=new ie;var F=class{sneak;constructor(t){this.sneak=t}get(){return y.notifyRead(this),this.sneak}get value(){return this.get()}};var Z=class extends F{on=Nt();dispose(){this.on.clear()}};function Mt(r,t=r){let{seen:e,result:s}=y.observe(r),o=Ue(t),i=[],n=()=>i.forEach(h=>h());for(let h of e){let a=y.subscribe(h,o);i.push(a)}return{result:s,dispose:n}}function J(r,t){return r===t}var Ot=class extends Z{#t;constructor(t,e){let s=e?.compare??J,{result:o,dispose:i}=Mt(t,async()=>{let n=t();!s(this.sneak,n)&&(this.sneak=n,await Promise.all([y.notifyWrite(this),this.on.pub(n)]))});super(o),this.#t=i}toString(){return`(derived "${String(this.get())}")`}dispose(){super.dispose(),this.#t()}get core(){return this}fn(){let t=this;function e(){return t.get()}return e.core=t,e.get=t.get.bind(t),e.on=t.on,e.dispose=t.dispose.bind(t),e.fn=t.fn.bind(t),Object.defineProperty(e,"value",{get:()=>t.value}),Object.defineProperty(e,"sneak",{get:()=>t.sneak}),e}};var Ut=class extends F{#t;#e;#r=!1;#s;constructor(t,e){super(void 0),this.#t=t,this.#e=e?.compare??J}toString(){return`($lazy "${String(this.get())}")`}get(){if(!this.#s){let{result:t,dispose:e}=Mt(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,y.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 Ht=class extends Z{#t=!1;#e;constructor(t,e){super(t),this.#e=e?.compare??J}toString(){return`($signal "${String(this.get())}")`}async set(t,e=!1){let s=this.sneak;return this.sneak=t,(e||!this.#e(s,t))&&await this.publish(),t}get value(){return this.get()}set value(t){this.set(t)}async publish(){if(this.#t)throw new Error("forbid circularity");let t=this.sneak,e=Promise.resolve();try{this.#t=!0,e=Promise.all([y.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 sr(r,t){return new Ut(r,t).fn()}function or(r,t){return new Ot(r,t).fn()}function v(r,t){return new Ht(r,t).fn()}v.lazy=sr;v.derived=or;var R=class{#t=new G;effect(t,e){let{seen:s,result:o}=y.observe(t);for(let i of s)this.#t.guarantee(i,()=>y.subscribe(i,e));for(let[i,n]of this.#t)s.has(i)||(n(),this.#t.delete(i));return o}clear(){for(let t of this.#t.values())t();this.#t.clear()}};var K=class{element;response;#t;constructor(t,e){this.element=t,this.response=e}start(){this.#t||(this.#t=u.attrs(this.element).on(this.response))}stop(){this.#t&&this.#t(),this.#t=void 0}};function Lt(r,t){gt(r,nr(t))}function nr(r){let t=[];if(Array.isArray(r)){let e=new Set(r.flat(1/0).reverse());for(let s of e)t.unshift(z(s))}else r!==void 0&&t.push(z(r));return t}var j={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)=>j.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 D=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 j.all(...e)}signal;#t=0;#e=oe();#r=oe();constructor(t=["loading"]){this.signal=v(t)}get wait(){return new Promise((t,e)=>{this.#e.next().then(([s])=>t(s)),this.#r.next().then(([s])=>e(s))})}get then(){return this.wait.then.bind(this.wait)}get catch(){return this.wait.catch.bind(this.wait)}get finally(){return this.wait.finally.bind(this.wait)}async setLoading(){await this.signal.set(["loading"])}async setReady(t){await this.signal.set(["ready",t]),await this.#e(t)}async setError(t){await this.signal.set(["error",t]),await this.#r(t)}async promise(t){let e=++this.#t;await this.setLoading();try{let s=await t;return e===this.#t&&await this.setReady(s),s}catch(s){console.error(s),e===this.#t&&await this.setError(s)}}async load(t){return this.promise(t())}get pod(){return this.signal.get()}set pod(t){this.signal.set(t)}get status(){return this.signal.get()[0]}get value(){return j.value(this.signal.get())}get error(){return j.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 j.select(this.signal.get(),t)}morph(t){return j.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 Dt=class{#t;constructor(t){this.#t=t.attachInternals().states}[Symbol.iterator](){return this.#t.values()}values(){return this.#t.values()}forEach(t){return this.#t.forEach(t),this}get size(){return this.#t.size}has(t){return this.#t.has(t)}add(...t){for(let e of t)this.#t.add(e);return this}delete(...t){for(let e of t)this.#t.delete(e);return this}clear(){return this.#t.clear(),this}assign(...t){return this.clear().add(...t)}};function Le(r){let t=u.attrs(r.element);function e(s){return r.once(()=>t.spec(s))}return e.strings=t.strings,e.numbers=t.numbers,e.booleans=t.booleans,e.spec=s=>r.once(()=>t.spec(s)),e.on=s=>r.mount(()=>t.on(s)),e}var at=Symbol(),ct=Symbol(),ht=Symbol(),Q=class{element;shadow;renderNow;render;attrs;#t=0;#e=0;#r=new G;#s=L();#o=new jt;[at](t){this.#t++,this.#e=0,this.#s=L();let e=t();return this.#s.resolve(),e}[ct](){this.#o.unmountAll()}[ht](){this.#o.remountAll()}constructor(t,e,s,o){this.element=t,this.shadow=e,this.renderNow=s,this.render=o,this.attrs=Le(this)}get renderCount(){return this.#t}get rendered(){return this.#s.promise}name(t){this.once(()=>this.element.setAttribute("view",t))}styles(...t){this.once(()=>Lt(this.shadow,t))}css(...t){return this.styles(...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(),()=>{}])}events(t){return this.mount(()=>V(this.element,t))}states(){return this.once(()=>new Dt(this.element))}op=(()=>{let t=this;function e(s){return t.once(()=>D.load(s))}return e.load=e,e.promise=s=>this.once(()=>D.promise(s)),e})();signal=(()=>{let t=this;function e(s,o){return t.once(()=>v(s,o))}return e.derived=function(o,i){return t.once(()=>v.derived(o,i))},e.lazy=function(o,i){return t.once(()=>v.lazy(o,i))},e})();derived(t,e){return this.once(()=>v.derived(t,e))}lazy(t,e){return this.once(()=>v.lazy(t,e))}};var A=class extends HTMLElement{static styles;shadow;#t;#e=0;#r=new R;#s=new K(this,()=>this.update());createShadow(){return this.attachShadow({mode:"open"})}constructor(){super(),this.shadow=this.createShadow(),this.#t=new Q(this,this.shadow,this.updateNow,this.update)}render(t){}updateNow=()=>{this.#t[at](()=>{u.render(this.shadow,this.#r.effect(()=>this.render(this.#t),this.update))})};update=kt(0,this.updateNow);connectedCallback(){if(this.#e===0){let t=this.constructor.styles;t&&Lt(this.shadow,t),this.updateNow()}else this.#t[ht]();this.#s.start(),this.#e++}disconnectedCallback(){this.#t[ct](),this.#r.clear(),this.#s.stop()}};var pt=class{props;attrs=new Map;children=[];constructor(t){this.props=t}};function je(r,t,e,s){return class extends t{static view=Y(s,r);#t=new R;createShadow(){return this.attachShadow(r)}render(i){return s(i)(...this.#t.effect(()=>e(this),()=>this.update()))}}}var{I:yn}=Ce;var De=r=>r.strings===void 0;var ze={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},ne=r=>(...t)=>({_$litDirective$:r,values:t}),zt=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 ut=(r,t)=>{let e=r._$AN;if(e===void 0)return!1;for(let s of e)s._$AO?.(t,!1),ut(s,t);return!0},qt=r=>{let t,e;do{if((t=r._$AM)===void 0)break;e=t._$AN,e.delete(r),r=t}while(e?.size===0)},qe=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),hr(t)}};function ar(r){this._$AN!==void 0?(qt(this),this._$AM=r,qe(this)):this._$AM=r}function cr(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 i=e;i<s.length;i++)ut(s[i],!1),qt(s[i]);else s!=null&&(ut(s,!1),qt(s));else ut(this,r)}var hr=r=>{r.type==ze.CHILD&&(r._$AP??=cr,r._$AQ??=ar)},Bt=class extends zt{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),qe(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(ut(this,t),qt(this))}setValue(t){if(De(this._$Ct))this._$Ct._$AI(t,this);else{let e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}};var Vt=class r extends HTMLElement{static#t=!1;static make(){return this.#t||(u.register({SlyView:r},{soft:!0,upgrade:!0}),this.#t=!0),document.createElement("sly-view")}};var It=class{viewFn;settings;#t=Vt.make();#e=new R;#r;#s;#o;#i=new K(this.#t,()=>this.#a());constructor(t,e){this.viewFn=t,this.settings=e,this.#s=this.#t.attachShadow(this.settings),this.#r=new Q(this.#t,this.#s,this.#n,this.#a)}update(t){return this.#o=t,this.#n(),this.#t}#n=()=>{this.#r[at](()=>{let t=this.#e.effect(()=>this.viewFn(this.#r)(...this.#o.props),()=>this.#a());g.entries(this.#t,this.#o.attrs),u.render(this.#s,t),u.render(this.#t,this.#o.children),this.#i.start()})};#a=kt(0,this.#n);disconnected(){this.#r[ct](),this.#e.clear(),this.#i.stop()}reconnected(){this.#r[ht](),this.#i.start()}};function Be(r,t){return ne(class extends Bt{#t=new It(r,t);render(s){return this.#t.update(s)}disconnected(){this.#t.disconnected()}reconnected(){this.#t.reconnected()}})}function Y(r,t){let e=Be(r,t);function s(...o){return e(new pt(o))}return s.props=(...o)=>new Pt(new pt(o),e),s.transmute=o=>Y(n=>{let h=r(n);return(...a)=>h(...o(...a))},t),s.component=(o=A)=>({props:i=>je(t,o,i,r)}),s}function b(r){return Y(r,{mode:"open"})}b.settings=r=>({render:t=>Y(t,r)});b.render=b;b.component=r=>b(t=>()=>r(t)).component(A).props(()=>[]);var S=$`
1
+ var Ye=Object.defineProperty;var ee=(s,t)=>{for(var e in t)Ye(s,e,{get:t[e],enumerable:!0})};var $t=globalThis,wt=$t.ShadowRoot&&($t.ShadyCSS===void 0||$t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,se=Symbol(),$e=new WeakMap,ot=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==se)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(wt&&t===void 0){let r=e!==void 0&&e.length===1;r&&(t=$e.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&$e.set(e,t))}return t}toString(){return this.cssText}},we=s=>new ot(typeof s=="string"?s:s+"",void 0,se),b=(s,...t)=>{let e=s.length===1?s[0]:t.reduce(((r,o,i)=>r+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+s[i+1]),s[0]);return new ot(e,s,se)},xt=(s,t)=>{if(wt)s.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet));else for(let e of t){let r=document.createElement("style"),o=$t.litNonce;o!==void 0&&r.setAttribute("nonce",o),r.textContent=e.cssText,s.appendChild(r)}},B=wt?s=>s:s=>s instanceof CSSStyleSheet?(t=>{let e="";for(let r of t.cssRules)e+=r.cssText;return we(e)})(s):s;var{is:Xe,defineProperty:ts,getOwnPropertyDescriptor:es,getOwnPropertyNames:ss,getOwnPropertySymbols:rs,getPrototypeOf:os}=Object,_t=globalThis,xe=_t.trustedTypes,is=xe?xe.emptyScript:"",ns=_t.reactiveElementPolyfillSupport,it=(s,t)=>s,re={toAttribute(s,t){switch(t){case Boolean:s=s?is:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,t){let e=s;switch(t){case Boolean:e=s!==null;break;case Number:e=s===null?null:Number(s);break;case Object:case Array:try{e=JSON.parse(s)}catch{e=null}}return e}},Ae=(s,t)=>!Xe(s,t),_e={attribute:!0,type:String,converter:re,reflect:!1,useDefault:!1,hasChanged:Ae};Symbol.metadata??=Symbol("metadata"),_t.litPropertyMetadata??=new WeakMap;var C=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=_e){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){let r=Symbol(),o=this.getPropertyDescriptor(t,r,e);o!==void 0&&ts(this.prototype,t,o)}}static getPropertyDescriptor(t,e,r){let{get:o,set:i}=es(this.prototype,t)??{get(){return this[e]},set(n){this[e]=n}};return{get:o,set(n){let c=o?.call(this);i?.call(this,n),this.requestUpdate(t,c,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??_e}static _$Ei(){if(this.hasOwnProperty(it("elementProperties")))return;let t=os(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(it("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(it("properties"))){let e=this.properties,r=[...ss(e),...rs(e)];for(let o of r)this.createProperty(o,e[o])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[r,o]of e)this.elementProperties.set(r,o)}this._$Eh=new Map;for(let[e,r]of this.elementProperties){let o=this._$Eu(e,r);o!==void 0&&this._$Eh.set(o,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let r=new Set(t.flat(1/0).reverse());for(let o of r)e.unshift(B(o))}else t!==void 0&&e.push(B(t));return e}static _$Eu(t,e){let r=e.attribute;return r===!1?void 0:typeof r=="string"?r:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let r of e.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return xt(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$ET(t,e){let r=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,r);if(o!==void 0&&r.reflect===!0){let i=(r.converter?.toAttribute!==void 0?r.converter:re).toAttribute(e,r.type);this._$Em=t,i==null?this.removeAttribute(o):this.setAttribute(o,i),this._$Em=null}}_$AK(t,e){let r=this.constructor,o=r._$Eh.get(t);if(o!==void 0&&this._$Em!==o){let i=r.getPropertyOptions(o),n=typeof i.converter=="function"?{fromAttribute:i.converter}:i.converter?.fromAttribute!==void 0?i.converter:re;this._$Em=o;let c=n.fromAttribute(e,i.type);this[o]=c??this._$Ej?.get(o)??c,this._$Em=null}}requestUpdate(t,e,r){if(t!==void 0){let o=this.constructor,i=this[t];if(r??=o.getPropertyOptions(t),!((r.hasChanged??Ae)(i,e)||r.useDefault&&r.reflect&&i===this._$Ej?.get(t)&&!this.hasAttribute(o._$Eu(t,r))))return;this.C(t,e,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:r,reflect:o,wrapped:i},n){r&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,n??e??this[t]),i!==!0||n!==void 0)||(this._$AL.has(t)||(this.hasUpdated||r||(e=void 0),this._$AL.set(t,e)),o===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[o,i]of this._$Ep)this[o]=i;this._$Ep=void 0}let r=this.constructor.elementProperties;if(r.size>0)for(let[o,i]of r){let{wrapped:n}=i,c=this[o];n!==!0||this._$AL.has(o)||c===void 0||this.C(o,void 0,i,c)}}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((r=>r.hostUpdate?.())),this.update(e)):this._$EM()}catch(r){throw t=!1,this._$EM(),r}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((e=>e.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach((e=>this._$ET(e,this[e]))),this._$EM()}updated(t){}firstUpdated(t){}};C.elementStyles=[],C.shadowRootOptions={mode:"open"},C[it("elementProperties")]=new Map,C[it("finalized")]=new Map,ns?.({ReactiveElement:C}),(_t.reactiveElementVersions??=[]).push("2.1.1");var ie=globalThis,At=ie.trustedTypes,ve=At?At.createPolicy("lit-html",{createHTML:s=>s}):void 0,ne="$lit$",k=`lit$${Math.random().toFixed(9).slice(2)}$`,ae="?"+k,as=`<${ae}>`,j=document,at=()=>j.createComment(""),ct=s=>s===null||typeof s!="object"&&typeof s!="function",ce=Array.isArray,Re=s=>ce(s)||typeof s?.[Symbol.iterator]=="function",oe=`[
2
+ \f\r]`,nt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Se=/-->/g,Ee=/>/g,M=RegExp(`>|${oe}(?:([^\\s"'>=/]+)(${oe}*=${oe}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Ce=/'/g,ke=/"/g,Oe=/^(?:script|style|textarea|title)$/i,he=s=>(t,...e)=>({_$litType$:s,strings:t,values:e}),_=he(1),hr=he(2),ur=he(3),L=Symbol.for("lit-noChange"),g=Symbol.for("lit-nothing"),Pe=new WeakMap,N=j.createTreeWalker(j,129);function Te(s,t){if(!ce(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return ve!==void 0?ve.createHTML(t):t}var Me=(s,t)=>{let e=s.length-1,r=[],o,i=t===2?"<svg>":t===3?"<math>":"",n=nt;for(let c=0;c<e;c++){let a=s[c],u,d,l=-1,w=0;for(;w<a.length&&(n.lastIndex=w,d=n.exec(a),d!==null);)w=n.lastIndex,n===nt?d[1]==="!--"?n=Se:d[1]!==void 0?n=Ee:d[2]!==void 0?(Oe.test(d[2])&&(o=RegExp("</"+d[2],"g")),n=M):d[3]!==void 0&&(n=M):n===M?d[0]===">"?(n=o??nt,l=-1):d[1]===void 0?l=-2:(l=n.lastIndex-d[2].length,u=d[1],n=d[3]===void 0?M:d[3]==='"'?ke:Ce):n===ke||n===Ce?n=M:n===Se||n===Ee?n=nt:(n=M,o=void 0);let R=n===M&&s[c+1].startsWith("/>")?" ":"";i+=n===nt?a+as:l>=0?(r.push(u),a.slice(0,l)+ne+a.slice(l)+k+R):a+k+(l===-2?c:R)}return[Te(s,i+(s[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},ht=class s{constructor({strings:t,_$litType$:e},r){let o;this.parts=[];let i=0,n=0,c=t.length-1,a=this.parts,[u,d]=Me(t,e);if(this.el=s.createElement(u,r),N.currentNode=this.el.content,e===2||e===3){let l=this.el.content.firstChild;l.replaceWith(...l.childNodes)}for(;(o=N.nextNode())!==null&&a.length<c;){if(o.nodeType===1){if(o.hasAttributes())for(let l of o.getAttributeNames())if(l.endsWith(ne)){let w=d[n++],R=o.getAttribute(l).split(k),bt=/([.?@])?(.*)/.exec(w);a.push({type:1,index:i,name:bt[2],strings:R,ctor:bt[1]==="."?St:bt[1]==="?"?Et:bt[1]==="@"?Ct:H}),o.removeAttribute(l)}else l.startsWith(k)&&(a.push({type:6,index:i}),o.removeAttribute(l));if(Oe.test(o.tagName)){let l=o.textContent.split(k),w=l.length-1;if(w>0){o.textContent=At?At.emptyScript:"";for(let R=0;R<w;R++)o.append(l[R],at()),N.nextNode(),a.push({type:2,index:++i});o.append(l[w],at())}}}else if(o.nodeType===8)if(o.data===ae)a.push({type:2,index:i});else{let l=-1;for(;(l=o.data.indexOf(k,l+1))!==-1;)a.push({type:7,index:i}),l+=k.length-1}i++}}static createElement(t,e){let r=j.createElement("template");return r.innerHTML=t,r}};function U(s,t,e=s,r){if(t===L)return t;let o=r!==void 0?e._$Co?.[r]:e._$Cl,i=ct(t)?void 0:t._$litDirective$;return o?.constructor!==i&&(o?._$AO?.(!1),i===void 0?o=void 0:(o=new i(s),o._$AT(s,e,r)),r!==void 0?(e._$Co??=[])[r]=o:e._$Cl=o),o!==void 0&&(t=U(s,o._$AS(s,t.values),o,r)),t}var vt=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:r}=this._$AD,o=(t?.creationScope??j).importNode(e,!0);N.currentNode=o;let i=N.nextNode(),n=0,c=0,a=r[0];for(;a!==void 0;){if(n===a.index){let u;a.type===2?u=new I(i,i.nextSibling,this,t):a.type===1?u=new a.ctor(i,a.name,a.strings,this,t):a.type===6&&(u=new kt(i,this,t)),this._$AV.push(u),a=r[++c]}n!==a?.index&&(i=N.nextNode(),n++)}return N.currentNode=j,o}p(t){let e=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}},I=class s{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,r,o){this.type=2,this._$AH=g,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=U(this,t,e),ct(t)?t===g||t==null||t===""?(this._$AH!==g&&this._$AR(),this._$AH=g):t!==this._$AH&&t!==L&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Re(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!==g&&ct(this._$AH)?this._$AA.nextSibling.data=t:this.T(j.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:r}=t,o=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=ht.createElement(Te(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===o)this._$AH.p(e);else{let i=new vt(o,this),n=i.u(this.options);i.p(e),this.T(n),this._$AH=i}}_$AC(t){let e=Pe.get(t.strings);return e===void 0&&Pe.set(t.strings,e=new ht(t)),e}k(t){ce(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,r,o=0;for(let i of t)o===e.length?e.push(r=new s(this.O(at()),this.O(at()),this,this.options)):r=e[o],r._$AI(i),o++;o<e.length&&(this._$AR(r&&r._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let r=t.nextSibling;t.remove(),t=r}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},H=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,o,i){this.type=1,this._$AH=g,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=i,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=g}_$AI(t,e=this,r,o){let i=this.strings,n=!1;if(i===void 0)t=U(this,t,e,0),n=!ct(t)||t!==this._$AH&&t!==L,n&&(this._$AH=t);else{let c=t,a,u;for(t=i[0],a=0;a<i.length-1;a++)u=U(this,c[r+a],e,a),u===L&&(u=this._$AH[a]),n||=!ct(u)||u!==this._$AH[a],u===g?t=g:t!==g&&(t+=(u??"")+i[a+1]),this._$AH[a]=u}n&&!o&&this.j(t)}j(t){t===g?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},St=class extends H{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===g?void 0:t}},Et=class extends H{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==g)}},Ct=class extends H{constructor(t,e,r,o,i){super(t,e,r,o,i),this.type=5}_$AI(t,e=this){if((t=U(this,t,e,0)??g)===L)return;let r=this._$AH,o=t===g&&r!==g||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,i=t!==g&&(r===g||o);o&&this.element.removeEventListener(this.name,this,r),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},kt=class{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){U(this,t)}},Ne={M:ne,P:k,A:ae,C:1,L:Me,R:vt,D:Re,V:U,I,H,N:Et,U:Ct,B:St,F:kt},cs=ie.litHtmlPolyfillSupport;cs?.(ht,I),(ie.litHtmlVersions??=[]).push("3.3.1");var O=(s,t,e)=>{let r=e?.renderBefore??t,o=r._$litPart$;if(o===void 0){let i=e?.renderBefore??null;r._$litPart$=o=new I(t.insertBefore(at(),i),i,void 0,e??{})}return o._$AI(s),o};var ue=globalThis,V=class extends C{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=O(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return L}};V._$litElement$=!0,V.finalized=!0,ue.litElementHydrateSupport?.({LitElement:V});var hs=ue.litElementPolyfillSupport;hs?.({LitElement:V});(ue.litElementVersions??=[]).push("4.2.1");var A={string:(s,t)=>s.getAttribute(t)??void 0,number:(s,t)=>{let e=s.getAttribute(t);return e===null||!e?void 0:Number(e)},boolean:(s,t)=>s.getAttribute(t)!==null},y={string:(s,t,e)=>(e===void 0?s.removeAttribute(t):s.setAttribute(t,e),!0),number:(s,t,e)=>(e===void 0?s.removeAttribute(t):s.setAttribute(t,e.toString()),!0),boolean:(s,t,e)=>(e?s.setAttribute(t,""):s.removeAttribute(t),!0),any:(s,t,e)=>{e==null?s.removeAttribute(t):typeof e=="string"?s.setAttribute(t,e):typeof e=="number"?s.setAttribute(t,e.toString()):typeof e=="boolean"?e===!0?s.setAttribute(t,""):s.removeAttribute(t):console.warn(`invalid attribute "${t}" type is "${typeof e}"`)},entries:(s,t)=>{for(let[e,r]of t)y.any(s,e,r)},record:(s,t)=>y.entries(s,Object.entries(t))};function je(s,t={}){let e=document.createElement(s);return y.record(e,t),e}function Le(s){let t=document.createDocumentFragment();return O(s,t),t.firstElementChild}function W(s,t){let e=[];for(let[r,o]of Object.entries(t))if(typeof o=="function")s.addEventListener(r,o),e.push(()=>s.removeEventListener(r,o));else{let[i,n]=o;s.addEventListener(r,n,i),e.push(()=>s.removeEventListener(r,n))}return()=>e.forEach(r=>r())}function Ue(s,t){let e=new MutationObserver(t);return e.observe(s,{attributes:!0}),()=>e.disconnect()}var He=(s,t)=>new Proxy(t,{get:(e,r)=>{switch(t[r]){case String:return A.string(s,r);case Number:return A.number(s,r);case Boolean:return A.boolean(s,r);default:throw new Error(`invalid attribute type for "${r}"`)}},set:(e,r,o)=>{switch(t[r]){case String:return y.string(s,r,o);case Number:return y.number(s,r,o);case Boolean:return y.boolean(s,r,o);default:throw new Error(`invalid attribute type for "${r}"`)}}});var Pt=class{element;constructor(t){this.element=t}strings=new Proxy({},{get:(t,e)=>A.string(this.element,e),set:(t,e,r)=>y.string(this.element,e,r)});numbers=new Proxy({},{get:(t,e)=>A.number(this.element,e),set:(t,e,r)=>y.number(this.element,e,r)});booleans=new Proxy({},{get:(t,e)=>A.boolean(this.element,e),set:(t,e,r)=>y.boolean(this.element,e,r)})};function G(s){let t=new Pt(s);return{strings:t.strings,numbers:t.numbers,booleans:t.booleans,on:e=>Ue(s,e),spec:e=>He(s,e)}}G.get=A;G.set=y;function ze(s){return new pe(s)}var pe=class{tagName;#t=new Map;#e=[];constructor(t){this.tagName=t}attr(t,e=!0){return this.#t.set(t,e),this}attrs(t){for(let[e,r]of Object.entries(t))this.attr(e,r);return this}children(...t){return this.#e.push(...t),this}done(){let t=document.createElement(this.tagName);return y.entries(t,this.#t),t.append(...this.#e),t}};function F(s,t=document){let e=t.querySelector(s);if(!e)throw new Error(`element not found (${s})`);return e}function Rt(s,t=document){return t.querySelector(s)}function Ot(s,t=document){return Array.from(t.querySelectorAll(s))}var Tt=class s{element;#t;constructor(t){this.element=t}in(t){return new s(typeof t=="string"?F(t,this.element):t)}require(t){return F(t,this.element)}maybe(t){return Rt(t,this.element)}all(t){return Ot(t,this.element)}render(...t){return O(t,this.element)}get attrs(){return this.#t??=G(this.element)}events(t){return W(this.element,t)}};function De(s){return s.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()}function qe(s,t={}){let{soft:e=!1,upgrade:r=!0}=t;for(let[o,i]of Object.entries(s)){let n=De(o),c=customElements.get(n);e&&c||(customElements.define(n,i),r&&document.querySelectorAll(n).forEach(a=>{a.constructor===HTMLElement&&customElements.upgrade(a)}))}}function p(s,t=document){return F(s,t)}p.in=(s,t=document)=>new Tt(t).in(s);p.require=F;p.maybe=Rt;p.all=Ot;p.el=je;p.elmer=ze;p.mk=Le;p.events=W;p.attrs=G;p.register=qe;p.render=(s,...t)=>O(t,s);var Mt=class{#t;#e;constructor(t,e){this.#e=t,this.#t=e}attr(t,e=!0){return this.#e.attrs.set(t,e),this}attrs(t){for(let[e,r]of Object.entries(t))this.#e.attrs.set(e,r);return this}children(...t){return this.#e.children.push(...t),this}render(){return this.#t(this.#e)}};function Nt(s,t){let e,r,o=[];function i(){e=[],r&&clearTimeout(r),r=void 0,o=[]}return i(),((...n)=>{e=n,r&&clearTimeout(r);let c=new Promise((a,u)=>{o.push({resolve:a,reject:u})});return r=setTimeout(()=>{Promise.resolve().then(()=>t(...e)).then(a=>{for(let{resolve:u}of o)u(a);i()}).catch(a=>{for(let{reject:u}of o)u(a);i()})},s),c})}function z(){let s,t,e=new Promise((o,i)=>{s=o,t=i});function r(o){return o.then(s).catch(t),e}return{promise:e,resolve:s,reject:t,entangle:r}}function jt(s){let t=null;return((...e)=>(t?t.params=e:(t={params:e,deferred:z()},queueMicrotask(()=>{let{params:r,deferred:o}=t;t=null,Promise.resolve(s(...r)).then(o.resolve).catch(o.reject)})),t.deferred.promise))}var P={};ee(P,{clone:()=>ut,equal:()=>us,freeze:()=>ps});function ut(s,t=new Set){if(t.has(s))throw new Error("cannot clone circular reference");let e;return typeof s=="function"||s!==null&&typeof s=="object"?(t.add(s),Array.isArray(s)?e=s.map(r=>ut(r,new Set(t))):s.constructor===Object?e=Object.fromEntries(Object.entries(s).map(([r,o])=>[r,ut(o,new Set(t))])):s instanceof Map?e=new Map(Array.from(s,([r,o])=>[r,ut(o,new Set(t))])):s instanceof Set?e=new Set(Array.from(s,r=>ut(r,new Set(t)))):s instanceof Date?e=new Date(s.getTime()):e=s,t.delete(s)):e=s,e}var pt=Object.freeze({happy:s=>s!=null,sad:s=>s==null,boolean:s=>typeof s=="boolean",number:s=>typeof s=="number",string:s=>typeof s=="string",bigint:s=>typeof s=="bigint",object:s=>typeof s=="object"&&s!==null,array:s=>Array.isArray(s),fn:s=>typeof s=="function",symbol:s=>typeof s=="symbol"});var us=(s,t)=>{function e(r,o,i){if(!pt.object(r)||!pt.object(o))return r===o;if(i.includes(r))throw new Error("forbidden circularity detected in deep equal comparison");let n=[...i,r];if(r instanceof Map&&o instanceof Map){if(r.size!==o.size)return!1;for(let[c,a]of r)if(!o.has(c)||!e(a,o.get(c),n))return!1}else if(r instanceof Set&&o instanceof Set){if(r.size!==o.size)return!1;for(let c of r)if(!Array.from(o).some(a=>e(c,a,n)))return!1}else{let c=Object.keys(r),a=Object.keys(o);if(c.length!==a.length)return!1;for(let u of c)if(!a.includes(u)||!e(r[u],o[u],n))return!1}return!0}return e(s,t,[])};function ps(s){function t(e,r){if(!pt.object(e)||r.includes(e))return e;let o=[...r,e];if(e instanceof Map)for(let i of e.entries())for(let n of i)t(n,o);else if(e instanceof Set)for(let i of e)t(i,o);else if(Array.isArray(e))for(let i of e)t(i,o);else for(let i of Object.values(e))t(i,o);return Object.freeze(e)}return t(s,[])}var J=class s extends Map{static require(t,e){if(t.has(e))return t.get(e);throw new Error(`required key not found: "${e}"`)}static guarantee(t,e,r){if(t.has(e))return t.get(e);{let o=r();return t.set(e,o),o}}array(){return[...this]}require(t){return s.require(this,t)}guarantee(t,e){return s.guarantee(this,t,e)}};function Lt(s){let t,e=!1,r=()=>{e=!0,clearTimeout(t)},o=async()=>{e||(await s(r),!e&&(t=setTimeout(o,0)))};return o(),r}var Ut=(s=0)=>new Promise(t=>setTimeout(t,s));function Be(){let s=new Set;async function t(...a){await Promise.all([...s].map(u=>u(...a)))}function e(a){return s.add(a),()=>{s.delete(a)}}async function r(...a){return t(...a)}function o(a){return e(a)}async function i(a){let{promise:u,resolve:d}=z(),l=o(async(...w)=>{a&&await a(...w),d(w),l()});return u}function n(){s.clear()}let c={pub:r,sub:o,publish:t,subscribe:e,on:e,next:i,clear:n};return Object.assign(o,c),Object.assign(r,c),c}function Z(s){let t=Be();return s&&t.sub(s),t.sub}function le(s){let t=Be();return s&&t.sub(s),t.pub}function Ie(s){return P.freeze(P.clone(s))}var me=class{#t=[];#e=new WeakMap;#s=[];#r=new Set;notifyRead(t){this.#t.at(-1)?.add(t)}async notifyWrite(t){if(this.#r.has(t))throw new Error("circularity forbidden");let e=this.#o(t).pub();return this.#s.at(-1)?.add(e),e}observe(t){this.#t.push(new Set);let e=t();return{seen:this.#t.pop(),result:e}}subscribe(t,e){return this.#o(t)(async()=>{let r=new Set;this.#s.push(r),this.#r.add(t),r.add(e()),this.#r.delete(t),await Promise.all(r),this.#s.pop()})}#o(t){let e=this.#e.get(t);return e||(e=Z(),this.#e.set(t,e)),e}},f=globalThis[Symbol.for("e280.tracker")]??=new me;var v=Symbol("optic");var Ht=class{calculate;#t=!1;#e;constructor(t){this.calculate=t,this.#e=t()}get(){return this.#t&&(this.#t=!1,this.#e=this.calculate()),this.#e}invalidate(){this.#t=!0}};var zt=class s{on=Z();[v];#t;#e;#s=jt(()=>this.on.publish(this.state));constructor(t){this[v]=t,this.#t=P.clone(t.getState()),this.#e=new Ht(()=>Ie(t.getState()))}async update(){let t=this[v].getState();!P.equal(t,this.#t)&&(this.#e.invalidate(),this.#t=P.clone(t),this.#s(),await f.notifyWrite(this))}get state(){return f.notifyRead(this),this.#e.get()}async mutate(t){return this[v].mutate(t)}lens(t){let e=new s({getState:()=>t(this[v].getState()),mutate:r=>this[v].mutate(o=>r(t(o))),registerLens:this[v].registerLens});return this[v].registerLens(e),e}};var K=class{sneak;constructor(t){this.sneak=t}get(){return f.notifyRead(this),this.sneak}get value(){return this.get()}};var Q=class extends K{on=Z();dispose(){this.on.clear()}};function Dt(s,t=s){let{seen:e,result:r}=f.observe(s),o=jt(t),i=[],n=()=>i.forEach(c=>c());for(let c of e){let a=f.subscribe(c,o);i.push(a)}return{result:r,dispose:n}}function Y(s,t){return s===t}var qt=class extends Q{#t;constructor(t,e){let r=e?.compare??Y,{result:o,dispose:i}=Dt(t,async()=>{let n=t();!r(this.sneak,n)&&(this.sneak=n,await Promise.all([f.notifyWrite(this),this.on.pub(n)]))});super(o),this.#t=i}toString(){return`(derived "${String(this.get())}")`}dispose(){super.dispose(),this.#t()}get core(){return this}fn(){let t=this;function e(){return t.get()}return e.core=t,e.get=t.get.bind(t),e.on=t.on,e.dispose=t.dispose.bind(t),e.fn=t.fn.bind(t),Object.defineProperty(e,"value",{get:()=>t.value}),Object.defineProperty(e,"sneak",{get:()=>t.sneak}),e}};var Bt=class extends K{#t;#e;#s=!1;#r;constructor(t,e){super(void 0),this.#t=t,this.#e=e?.compare??Y}toString(){return`($lazy "${String(this.get())}")`}get(){if(!this.#r){let{result:t,dispose:e}=Dt(this.#t,()=>this.#s=!0);this.#r=e,this.sneak=t}if(this.#s){this.#s=!1;let t=this.#t();!this.#e(this.sneak,t)&&(this.sneak=t,f.notifyWrite(this))}return super.get()}dispose(){this.#r&&this.#r()}get core(){return this}fn(){let t=this;function e(){return t.get()}return e.core=t,e.get=t.get.bind(t),e.dispose=t.dispose.bind(t),e.fn=t.fn.bind(t),Object.defineProperty(e,"value",{get:()=>t.value}),Object.defineProperty(e,"sneak",{get:()=>t.sneak}),e}};var It=class extends Q{#t=!1;#e;constructor(t,e){super(t),this.#e=e?.compare??Y}toString(){return`($signal "${String(this.get())}")`}async set(t,e=!1){let r=this.sneak;return this.sneak=t,(e||!this.#e(r,t))&&await this.publish(),t}get value(){return this.get()}set value(t){this.set(t)}async publish(){if(this.#t)throw new Error("forbid circularity");let t=this.sneak,e=Promise.resolve();try{this.#t=!0,e=Promise.all([f.notifyWrite(this),this.on.publish(t)])}finally{this.#t=!1}return await e,t}get core(){return this}fn(){let t=this;function e(r){return arguments.length===0?t.get():t.set(arguments[0])}return e.core=t,e.get=t.get.bind(t),e.set=t.set.bind(t),e.on=t.on,e.dispose=t.dispose.bind(t),e.publish=t.publish.bind(t),e.fn=t.fn.bind(t),Object.defineProperty(e,"value",{get:()=>t.value,set:r=>t.value=r}),Object.defineProperty(e,"sneak",{get:()=>t.sneak,set:r=>t.sneak=r}),e}};function ls(s,t){return new Bt(s,t).fn()}function ms(s,t){return new qt(s,t).fn()}function x(s,t){return new It(s,t).fn()}x.lazy=ls;x.derived=ms;var T=class{#t=new J;effect(t,e){let{seen:r,result:o}=f.observe(t);for(let i of r)this.#t.guarantee(i,()=>f.subscribe(i,e));for(let[i,n]of this.#t)r.has(i)||(n(),this.#t.delete(i));return o}clear(){for(let t of this.#t.values())t();this.#t.clear()}};var X=class{element;response;#t;constructor(t,e){this.element=t,this.response=e}start(){this.#t||(this.#t=p.attrs(this.element).on(this.response))}stop(){this.#t&&this.#t(),this.#t=void 0}};function Vt(s,t){xt(s,ds(t))}function ds(s){let t=[];if(Array.isArray(s)){let e=new Set(s.flat(1/0).reverse());for(let r of e)t.unshift(B(r))}else s!==void 0&&t.push(B(s));return t}var D={status:s=>s[0],value:s=>s[0]==="ready"?s[1]:void 0,error:s=>s[0]==="error"?s[1]:void 0,select:(s,t)=>{switch(s[0]){case"loading":return t.loading();case"error":return t.error(s[1]);case"ready":return t.ready(s[1]);default:throw new Error("unknown op status")}},morph:(s,t)=>D.select(s,{loading:()=>["loading"],error:e=>["error",e],ready:e=>["ready",t(e)]}),all:(...s)=>{let t=[],e=[],r=0;for(let o of s)switch(o[0]){case"loading":r++;break;case"ready":t.push(o[1]);break;case"error":e.push(o[1]);break}return e.length>0?["error",e]:r===0?["ready",t]:["loading"]}};var q=class{static loading(){return new this}static ready(t){return new this(["ready",t])}static error(t){return new this(["error",t])}static promise(t){let e=new this;return e.promise(t),e}static load(t){return this.promise(t())}static all(...t){let e=t.map(r=>r.pod);return D.all(...e)}signal;#t=0;#e=le();#s=le();constructor(t=["loading"]){this.signal=x(t)}get wait(){return new Promise((t,e)=>{this.#e.next().then(([r])=>t(r)),this.#s.next().then(([r])=>e(r))})}get then(){return this.wait.then.bind(this.wait)}get catch(){return this.wait.catch.bind(this.wait)}get finally(){return this.wait.finally.bind(this.wait)}async setLoading(){await this.signal.set(["loading"])}async setReady(t){await this.signal.set(["ready",t]),await this.#e(t)}async setError(t){await this.signal.set(["error",t]),await this.#s(t)}async promise(t){let e=++this.#t;await this.setLoading();try{let r=await t;return e===this.#t&&await this.setReady(r),r}catch(r){console.error(r),e===this.#t&&await this.setError(r)}}async load(t){return this.promise(t())}get pod(){return this.signal.get()}set pod(t){this.signal.set(t)}get status(){return this.signal.get()[0]}get value(){return D.value(this.signal.get())}get error(){return D.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 D.select(this.signal.get(),t)}morph(t){return D.morph(this.pod,t)}};var Wt=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 Gt=class{#t;constructor(t){this.#t=t.attachInternals().states}[Symbol.iterator](){return this.#t.values()}values(){return this.#t.values()}forEach(t){return this.#t.forEach(t),this}get size(){return this.#t.size}has(t){return this.#t.has(t)}add(...t){for(let e of t)this.#t.add(e);return this}delete(...t){for(let e of t)this.#t.delete(e);return this}clear(){return this.#t.clear(),this}assign(...t){return this.clear().add(...t)}};function Ve(s){let t=p.attrs(s.element);function e(r){return s.once(()=>t.spec(r))}return e.strings=t.strings,e.numbers=t.numbers,e.booleans=t.booleans,e.spec=r=>s.once(()=>t.spec(r)),e.on=r=>s.mount(()=>t.on(r)),e}var lt=Symbol(),mt=Symbol(),ft=Symbol(),tt=class{element;shadow;renderNow;render;attrs;#t=0;#e=0;#s=new J;#r=z();#o=new Wt;[lt](t){this.#t++,this.#e=0,this.#r=z();let e=t();return this.#r.resolve(),e}[mt](){this.#o.unmountAll()}[ft](){this.#o.remountAll()}constructor(t,e,r,o){this.element=t,this.shadow=e,this.renderNow=r,this.render=o,this.attrs=Ve(this)}get renderCount(){return this.#t}get rendered(){return this.#r.promise}name(t){this.once(()=>this.element.setAttribute("view",t))}styles(...t){this.once(()=>Vt(this.shadow,t))}css(...t){return this.styles(...t)}once(t){return this.#s.guarantee(this.#e++,t)}mount(t){return this.once(()=>this.#o.mount(t))}life(t){let e;return this.mount(()=>{let[r,o]=t();return e=r,o}),e}wake(t){return this.life(()=>[t(),()=>{}])}events(t){return this.mount(()=>W(this.element,t))}states(){return this.once(()=>new Gt(this.element))}op=(()=>{let t=this;function e(r){return t.once(()=>q.load(r))}return e.load=e,e.promise=r=>this.once(()=>q.promise(r)),e})();signal=(()=>{let t=this;function e(r,o){return t.once(()=>x(r,o))}return e.derived=function(o,i){return t.once(()=>x.derived(o,i))},e.lazy=function(o,i){return t.once(()=>x.lazy(o,i))},e})();derived(t,e){return this.once(()=>x.derived(t,e))}lazy(t,e){return this.once(()=>x.lazy(t,e))}};var S=class extends HTMLElement{static styles;shadow;#t;#e=0;#s=new T;#r=new X(this,()=>this.update());createShadow(){return this.attachShadow({mode:"open"})}constructor(){super(),this.shadow=this.createShadow(),this.#t=new tt(this,this.shadow,this.updateNow,this.update)}render(t){}updateNow=()=>{this.#t[lt](()=>{p.render(this.shadow,this.#s.effect(()=>this.render(this.#t),this.update))})};update=Nt(0,this.updateNow);connectedCallback(){if(this.#e===0){let t=this.constructor.styles;t&&Vt(this.shadow,t),this.updateNow()}else this.#t[ft]();this.#r.start(),this.#e++}disconnectedCallback(){this.#t[mt](),this.#s.clear(),this.#r.stop()}};var dt=class{props;attrs=new Map;children=[];constructor(t){this.props=t}};function We(s,t,e,r){return class extends t{static view=et(r,s);#t=new T;createShadow(){return this.attachShadow(s)}render(i){return r(i)(...this.#t.effect(()=>e(this),()=>this.update()))}}}var{I:la}=Ne;var Ge=s=>s.strings===void 0;var Fe={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},fe=s=>(...t)=>({_$litDirective$:s,values:t}),Ft=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,r){this._$Ct=t,this._$AM=e,this._$Ci=r}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var gt=(s,t)=>{let e=s._$AN;if(e===void 0)return!1;for(let r of e)r._$AO?.(t,!1),gt(r,t);return!0},Jt=s=>{let t,e;do{if((t=s._$AM)===void 0)break;e=t._$AN,e.delete(s),s=t}while(e?.size===0)},Je=s=>{for(let t;t=s._$AM;s=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(s))break;e.add(s),bs(t)}};function gs(s){this._$AN!==void 0?(Jt(this),this._$AM=s,Je(this)):this._$AM=s}function ys(s,t=!1,e=0){let r=this._$AH,o=this._$AN;if(o!==void 0&&o.size!==0)if(t)if(Array.isArray(r))for(let i=e;i<r.length;i++)gt(r[i],!1),Jt(r[i]);else r!=null&&(gt(r,!1),Jt(r));else gt(this,s)}var bs=s=>{s.type==Fe.CHILD&&(s._$AP??=ys,s._$AQ??=gs)},Zt=class extends Ft{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,r){super._$AT(t,e,r),Je(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(gt(this,t),Jt(this))}setValue(t){if(Ge(this._$Ct))this._$Ct._$AI(t,this);else{let e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}};var Kt=class s extends HTMLElement{static#t=!1;static make(){return this.#t||(p.register({SlyView:s},{soft:!0,upgrade:!0}),this.#t=!0),document.createElement("sly-view")}};var Qt=class{viewFn;settings;#t=Kt.make();#e=new T;#s;#r;#o;#i=new X(this.#t,()=>this.#a());constructor(t,e){this.viewFn=t,this.settings=e,this.#r=this.#t.attachShadow(this.settings),this.#s=new tt(this.#t,this.#r,this.#n,this.#a)}update(t){return this.#o=t,this.#n(),this.#t}#n=()=>{this.#s[lt](()=>{let t=this.#e.effect(()=>this.viewFn(this.#s)(...this.#o.props),()=>this.#a());y.entries(this.#t,this.#o.attrs),p.render(this.#r,t),p.render(this.#t,this.#o.children),this.#i.start()})};#a=Nt(0,this.#n);disconnected(){this.#s[mt](),this.#e.clear(),this.#i.stop()}reconnected(){this.#s[ft](),this.#i.start()}};function Ze(s,t){return fe(class extends Zt{#t=new Qt(s,t);render(r){return this.#t.update(r)}disconnected(){this.#t.disconnected()}reconnected(){this.#t.reconnected()}})}function et(s,t){let e=Ze(s,t);function r(...o){return e(new dt(o))}return r.props=(...o)=>new Mt(new dt(o),e),r.transmute=o=>et(n=>{let c=s(n);return(...a)=>c(...o(...a))},t),r.component=(o=S)=>({props:i=>We(t,o,i,s)}),r}function $(s){return et(s,{mode:"open"})}$.settings=s=>({render:t=>et(t,s)});$.render=$;$.component=s=>$(t=>()=>s(t)).component(S).props(()=>[]);var E=b`
4
4
  @layer reset {
5
5
  * {
6
6
  margin: 0;
@@ -16,15 +16,15 @@ var We=Object.defineProperty;var ue=(r,t)=>{for(var e in t)We(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 ae=b(r=>(t,e)=>{r.name("counter"),r.styles(S,pr);let s=r.signal(t),o=()=>{s.value+=e};return w`
19
+ `;var de=$(s=>(t,e)=>{s.name("counter"),s.styles(E,$s);let r=s.signal(t),o=()=>{r.value+=e};return _`
20
20
  <slot></slot>
21
21
  <div>
22
- <span>${s()}</span>
22
+ <span>${r()}</span>
23
23
  </div>
24
24
  <div>
25
25
  <button @click="${o}">++</button>
26
26
  </div>
27
- `}),Wt=class extends ae.component(class extends A{attrs=u.attrs(this).spec({start:Number,step:Number})}).props(t=>[t.attrs.start??0,t.attrs.step??1]){},pr=$`
27
+ `}),Yt=class extends de.component(class extends S{attrs=p.attrs(this).spec({start:Number,step:Number})}).props(t=>[t.attrs.start??0,t.attrs.step??1]){},$s=b`
28
28
  :host {
29
29
  display: flex;
30
30
  justify-content: center;
@@ -34,23 +34,23 @@ var We=Object.defineProperty;var ue=(r,t)=>{for(var e in t)We(r,e,{get:t[e],enum
34
34
  button {
35
35
  padding: 0.2em 0.5em;
36
36
  }
37
- `;var lt={};ue(lt,{AsciiAnim:()=>Ve,ErrorDisplay:()=>pe,anims:()=>he,make:()=>Wr,makeAsciiAnim:()=>c,mock:()=>Gr});var he={};ue(he,{arrow:()=>dr,bar:()=>fr,bar2:()=>gr,bar3:()=>yr,bar4:()=>$r,bin:()=>Mr,binary:()=>Or,binary2:()=>Ur,block:()=>br,block2:()=>_r,brackets:()=>Sr,brackets2:()=>Er,braille:()=>mr,bright:()=>qr,clock:()=>jr,cylon:()=>vr,dots:()=>Cr,dots2:()=>Pr,earth:()=>ce,fistbump:()=>Dr,kiss:()=>Lr,lock:()=>zr,moon:()=>Vr,pie:()=>xr,pulseblue:()=>Hr,runner:()=>wr,slider:()=>Ar,speaker:()=>Br,spinner:()=>lr,wave:()=>kr,wavepulse:()=>Tr,wavepulse2:()=>Nr,wavescrub:()=>Rr});function c(r,t){return()=>Ve({hz:r,frames:t})}var Ve=b(r=>({hz:t,frames:e})=>{r.name("loading"),r.styles(S,ur);let s=r.signal(0);return r.mount(()=>Rt(async()=>{await Tt(1e3/t);let o=s.get()+1;s.set(o>=e.length?0:o)})),e.at(s.get())}),ur=$`
37
+ `;var yt={};ee(yt,{AsciiAnim:()=>Ke,ErrorDisplay:()=>be,anims:()=>ye,make:()=>tr,makeAsciiAnim:()=>h,mock:()=>er});var ye={};ee(ye,{arrow:()=>As,bar:()=>vs,bar2:()=>Ss,bar3:()=>Es,bar4:()=>Cs,bin:()=>Bs,binary:()=>Is,binary2:()=>Vs,block:()=>ks,block2:()=>Ps,brackets:()=>Ns,brackets2:()=>js,braille:()=>_s,bright:()=>Ks,clock:()=>Fs,cylon:()=>Ts,dots:()=>Ls,dots2:()=>Us,earth:()=>ge,fistbump:()=>Js,kiss:()=>Gs,lock:()=>Zs,moon:()=>Ys,pie:()=>Os,pulseblue:()=>Ws,runner:()=>Rs,slider:()=>Ms,speaker:()=>Qs,spinner:()=>xs,wave:()=>Hs,wavepulse:()=>Ds,wavepulse2:()=>qs,wavescrub:()=>zs});function h(s,t){return()=>Ke({hz:s,frames:t})}var Ke=$(s=>({hz:t,frames:e})=>{s.name("loading"),s.styles(E,ws);let r=s.signal(0);return s.mount(()=>Lt(async()=>{await Ut(1e3/t);let o=r.get()+1;r.set(o>=e.length?0:o)})),e.at(r.get())}),ws=b`
38
38
  :host {
39
39
  font-family: monospace;
40
40
  white-space: pre;
41
41
  user-select: none;
42
42
  }
43
- `;var m=20,X=10,tt=4,lr=c(m,["|","/","-","\\"]),mr=c(m,["\u2808","\u2810","\u2820","\u2880","\u2840","\u2804","\u2802","\u2801"]),dr=c(m,["\u2B06\uFE0F","\u2197\uFE0F","\u27A1\uFE0F","\u2198\uFE0F","\u2B07\uFE0F","\u2199\uFE0F","\u2B05\uFE0F","\u2196\uFE0F"]),fr=c(m,["\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B1\u25B0\u25B1\u25B1\u25B1","\u25B1\u25B1\u25B0\u25B1\u25B1","\u25B1\u25B1\u25B1\u25B0\u25B1","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B1","\u25B1\u25B1\u25B0\u25B1\u25B1","\u25B1\u25B0\u25B1\u25B1\u25B1"]),gr=c(m,["\u25B1\u25B1\u25B0\u25B1\u25B1","\u25B1\u25B1\u25B1\u25B0\u25B1","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B1","\u25B1\u25B1\u25B0\u25B1\u25B1","\u25B1\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B1\u25B0\u25B1\u25B1\u25B1"]),yr=c(m,["\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B1\u25B0\u25B0\u25B0\u25B1","\u25B1\u25B1\u25B0\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B0\u25B0\u25B0","\u25B1\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1"]),$r=c(m,["\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B1\u25B0\u25B0\u25B0\u25B0","\u25B1\u25B1\u25B0\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0"]),br=c(m,["\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581","\u2588\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581","\u2588\u2588\u2588\u2588\u2581","\u2588\u2588\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2588","\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2588"]),_r=c(m,["\u2588\u2581\u2581\u2581\u2581","\u2588\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581","\u2588\u2588\u2588\u2588\u2581","\u2588\u2588\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2588","\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2588\u2588\u2588","\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581","\u2588\u2588\u2588\u2581\u2581","\u2588\u2588\u2581\u2581\u2581"]),wr=c(tt,["\u{1F6B6}","\u{1F3C3}"]),xr=c(X,["\u25F7","\u25F6","\u25F5","\u25F4"]),vr=c(m,["=----","-=---","--=--","---=-","----=","----=","---=-","--=--","-=---","=----"]),Ar=c(m,["o----","-o---","--o--","---o-","----o","----o","---o-","--o--","-o---","o----"]),Sr=c(X,["[ ]","[ ]","[= ]","[== ]","[===]","[ ==]","[ =]"]),Er=c(X,["[ ]","[ ]","[= ]","[== ]","[===]","[ ==]","[ =]","[ ]","[ ]","[ =]","[ ==]","[===]","[== ]","[= ]"]),Cr=c(X,[" "," ",". ",".. ","..."," .."," ."]),Pr=c(m,[". ",". ",".. ","..."," .."," ."," ."," ..","...",".. "]),kr=c(m,[".....",".....",":....","::...",":::..","::::.",":::::",":::::",".::::","..:::","...::","....:"]),Rr=c(m,[":....",":....","::...",".::..","..::.","...::","....:","....:","...::","..::.",".::..","::..."]),Tr=c(m,[".....",".....","..:..",".:::.",".:::.",":::::",":::::","::.::",":...:"]),Nr=c(m,[".....",".....","..:..",".:::.",".:::.",":::::",":::::","::.::",":...:",".....",".....",":...:","::.::",":::::",":::::",".:::.",".:::.","..:.."]),Mr=c(m,["000","100","110","111","011","001"]),Or=c(m,["11111","01111","00111","10011","11001","01100","00110","10011","11001","11100","11110"]),Ur=c(m,["11111","01111","10111","11011","11101","11110","11111","11110","11101","11011","10111","01111"]),Hr=c(tt,["\u{1F539}","\u{1F535}"]),Lr=c(X,["\u{1F642}","\u{1F642}","\u{1F617}","\u{1F619}","\u{1F618}","\u{1F618}","\u{1F619}"]),jr=c(m,["\u{1F550}","\u{1F551}","\u{1F552}","\u{1F553}","\u{1F554}","\u{1F555}","\u{1F556}","\u{1F557}","\u{1F558}","\u{1F559}","\u{1F55A}","\u{1F55B}"]),Dr=c(m,["\u{1F91C} \u{1F91B}","\u{1F91C} \u{1F91B}","\u{1F91C} \u{1F91B}"," \u{1F91C} \u{1F91B} "," \u{1F91C}\u{1F91B} "," \u{1F91C}\u{1F91B} "," \u{1F91C}\u{1F4A5}\u{1F91B} ","\u{1F91C} \u{1F4A5} \u{1F91B}","\u{1F91C} \u2728 \u{1F91B}","\u{1F91C} \u2728 \u{1F91B}"]),ce=c(tt,["\u{1F30E}","\u{1F30F}","\u{1F30D}"]),zr=c(tt,["\u{1F513}","\u{1F512}"]),qr=c(tt,["\u{1F505}","\u{1F506}"]),Br=c(tt,["\u{1F508}","\u{1F508}","\u{1F509}","\u{1F50A}","\u{1F50A}","\u{1F509}"]),Vr=c(X,["\u{1F311}","\u{1F311}","\u{1F311}","\u{1F318}","\u{1F317}","\u{1F316}","\u{1F315}","\u{1F314}","\u{1F313}","\u{1F312}"]);var pe=b(r=>t=>(r.name("error"),r.styles(S,Ir),typeof t=="string"?t:t instanceof Error?w`<strong>${t.name}:</strong> <span>${t.message}</span>`:"error")),Ir=$`
43
+ `;var m=20,st=10,rt=4,xs=h(m,["|","/","-","\\"]),_s=h(m,["\u2808","\u2810","\u2820","\u2880","\u2840","\u2804","\u2802","\u2801"]),As=h(m,["\u2B06\uFE0F","\u2197\uFE0F","\u27A1\uFE0F","\u2198\uFE0F","\u2B07\uFE0F","\u2199\uFE0F","\u2B05\uFE0F","\u2196\uFE0F"]),vs=h(m,["\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B1\u25B0\u25B1\u25B1\u25B1","\u25B1\u25B1\u25B0\u25B1\u25B1","\u25B1\u25B1\u25B1\u25B0\u25B1","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B1","\u25B1\u25B1\u25B0\u25B1\u25B1","\u25B1\u25B0\u25B1\u25B1\u25B1"]),Ss=h(m,["\u25B1\u25B1\u25B0\u25B1\u25B1","\u25B1\u25B1\u25B1\u25B0\u25B1","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B1","\u25B1\u25B1\u25B0\u25B1\u25B1","\u25B1\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B1\u25B0\u25B1\u25B1\u25B1"]),Es=h(m,["\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B1\u25B0\u25B0\u25B0\u25B1","\u25B1\u25B1\u25B0\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B0\u25B0\u25B0","\u25B1\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1"]),Cs=h(m,["\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B1\u25B0\u25B0\u25B0\u25B0","\u25B1\u25B1\u25B0\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0"]),ks=h(m,["\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581","\u2588\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581","\u2588\u2588\u2588\u2588\u2581","\u2588\u2588\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2588","\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2588"]),Ps=h(m,["\u2588\u2581\u2581\u2581\u2581","\u2588\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581","\u2588\u2588\u2588\u2588\u2581","\u2588\u2588\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2588","\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2588\u2588\u2588","\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581","\u2588\u2588\u2588\u2581\u2581","\u2588\u2588\u2581\u2581\u2581"]),Rs=h(rt,["\u{1F6B6}","\u{1F3C3}"]),Os=h(st,["\u25F7","\u25F6","\u25F5","\u25F4"]),Ts=h(m,["=----","-=---","--=--","---=-","----=","----=","---=-","--=--","-=---","=----"]),Ms=h(m,["o----","-o---","--o--","---o-","----o","----o","---o-","--o--","-o---","o----"]),Ns=h(st,["[ ]","[ ]","[= ]","[== ]","[===]","[ ==]","[ =]"]),js=h(st,["[ ]","[ ]","[= ]","[== ]","[===]","[ ==]","[ =]","[ ]","[ ]","[ =]","[ ==]","[===]","[== ]","[= ]"]),Ls=h(st,[" "," ",". ",".. ","..."," .."," ."]),Us=h(m,[". ",". ",".. ","..."," .."," ."," ."," ..","...",".. "]),Hs=h(m,[".....",".....",":....","::...",":::..","::::.",":::::",":::::",".::::","..:::","...::","....:"]),zs=h(m,[":....",":....","::...",".::..","..::.","...::","....:","....:","...::","..::.",".::..","::..."]),Ds=h(m,[".....",".....","..:..",".:::.",".:::.",":::::",":::::","::.::",":...:"]),qs=h(m,[".....",".....","..:..",".:::.",".:::.",":::::",":::::","::.::",":...:",".....",".....",":...:","::.::",":::::",":::::",".:::.",".:::.","..:.."]),Bs=h(m,["000","100","110","111","011","001"]),Is=h(m,["11111","01111","00111","10011","11001","01100","00110","10011","11001","11100","11110"]),Vs=h(m,["11111","01111","10111","11011","11101","11110","11111","11110","11101","11011","10111","01111"]),Ws=h(rt,["\u{1F539}","\u{1F535}"]),Gs=h(st,["\u{1F642}","\u{1F642}","\u{1F617}","\u{1F619}","\u{1F618}","\u{1F618}","\u{1F619}"]),Fs=h(m,["\u{1F550}","\u{1F551}","\u{1F552}","\u{1F553}","\u{1F554}","\u{1F555}","\u{1F556}","\u{1F557}","\u{1F558}","\u{1F559}","\u{1F55A}","\u{1F55B}"]),Js=h(m,["\u{1F91C} \u{1F91B}","\u{1F91C} \u{1F91B}","\u{1F91C} \u{1F91B}"," \u{1F91C} \u{1F91B} "," \u{1F91C}\u{1F91B} "," \u{1F91C}\u{1F91B} "," \u{1F91C}\u{1F4A5}\u{1F91B} ","\u{1F91C} \u{1F4A5} \u{1F91B}","\u{1F91C} \u2728 \u{1F91B}","\u{1F91C} \u2728 \u{1F91B}"]),ge=h(rt,["\u{1F30E}","\u{1F30F}","\u{1F30D}"]),Zs=h(rt,["\u{1F513}","\u{1F512}"]),Ks=h(rt,["\u{1F505}","\u{1F506}"]),Qs=h(rt,["\u{1F508}","\u{1F508}","\u{1F509}","\u{1F50A}","\u{1F50A}","\u{1F509}"]),Ys=h(st,["\u{1F311}","\u{1F311}","\u{1F311}","\u{1F318}","\u{1F317}","\u{1F316}","\u{1F315}","\u{1F314}","\u{1F313}","\u{1F312}"]);var be=$(s=>t=>(s.name("error"),s.styles(E,Xs),typeof t=="string"?t:t instanceof Error?_`<strong>${t.name}:</strong> <span>${t.message}</span>`:"error")),Xs=b`
44
44
  :host {
45
45
  font-family: monospace;
46
46
  color: red;
47
47
  }
48
- `;function Wr(r=ce,t=e=>pe(e)){return(e,s)=>e.select({loading:r,ready:s,error:t})}function Gr(){return(r,t)=>r.select({ready:t,loading:()=>"[loading]",error:()=>"[error]"})}var Ie=b(r=>()=>{r.name("loaders"),r.styles(S,Fr);let t=r.once(()=>D.loading());return r.once(()=>Object.entries(lt.anims).map(([s,o])=>({key:s,loader:lt.make(o)}))).map(({key:s,loader:o})=>w`
49
- <div data-anim="${s}">
50
- <span>${s}</span>
48
+ `;function tr(s=ge,t=e=>be(e)){return(e,r)=>e.select({loading:s,ready:r,error:t})}function er(){return(s,t)=>s.select({ready:t,loading:()=>"[loading]",error:()=>"[error]"})}var Qe=$(s=>()=>{s.name("loaders"),s.styles(E,sr);let t=s.once(()=>q.loading());return s.once(()=>Object.entries(yt.anims).map(([r,o])=>({key:r,loader:yt.make(o)}))).map(({key:r,loader:o})=>_`
49
+ <div data-anim="${r}">
50
+ <span>${r}</span>
51
51
  <span>${o(t,()=>null)}</span>
52
52
  </div>
53
- `)}),Fr=$`
53
+ `)}),sr=b`
54
54
  :host {
55
55
  display: flex;
56
56
  flex-direction: row;
@@ -91,19 +91,19 @@ div {
91
91
  min-height: 2.5em;
92
92
  }
93
93
  }
94
- `;var Gt=class extends b.component(t=>(t.name("demo"),t.styles(S,Zr),w`
95
- ${ae.props(768,3).children("view").render()}
96
- ${Ie()}
97
- `)){},Zr=$`
94
+ `;var Xt=class extends $.component(t=>(t.name("demo"),t.styles(E,rr),_`
95
+ ${de.props(768,3).children("view").render()}
96
+ ${Qe()}
97
+ `)){},rr=b`
98
98
  :host {
99
99
  display: flex;
100
100
  flex-direction: column;
101
101
  align-items: center;
102
102
  gap: 1em;
103
103
  }
104
- `;var Ft=class extends A{static styles=$`span{color:orange}`;attrs=u.attrs(this).spec({value:Number});something={whatever:"rofl"};render(t){let{value:e=1}=this.attrs,s=t.signal(0);return t.mount(()=>Rt(async()=>{await Tt(10),await s(s()+1)})),w`
105
- <span>${s()*e}</span>
106
- `}};u.register({DemoComponent:Gt,CounterComponent:Wt,FastcountElement:Ft});console.log("\u{1F99D} sly");
104
+ `;var te=class extends S{static styles=b`span{color:orange}`;attrs=p.attrs(this).spec({value:Number});something={whatever:"rofl"};render(t){let{value:e=1}=this.attrs,r=t.signal(0);return t.mount(()=>Lt(async()=>{await Ut(10),await r(r()+1)})),_`
105
+ <span>${r()*e}</span>
106
+ `}};p.register({DemoComponent:Xt,CounterComponent:Yt,FastcountElement:te});console.log("\u{1F99D} sly");
107
107
  /*! Bundled license information:
108
108
 
109
109
  @lit/reactive-element/css-tag.js: