@e280/sly 0.1.0 → 0.1.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/README.md +2 -1
- package/package.json +6 -4
- package/x/demo/demo.bundle.min.js +15 -15
- package/x/demo/demo.bundle.min.js.map +4 -4
- package/x/index.html +2 -2
package/README.md
CHANGED
|
@@ -18,10 +18,11 @@
|
|
|
18
18
|
## 🦝 sly and friends
|
|
19
19
|
|
|
20
20
|
```sh
|
|
21
|
-
npm install @e280/sly lit
|
|
21
|
+
npm install @e280/sly lit
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
> [!NOTE]
|
|
25
|
+
> ecosystem buddies:
|
|
25
26
|
> - 🔥 [lit](https://lit.dev/) for html rendering
|
|
26
27
|
> - ⛏️ [@e280/strata](https://github.com/e280/strata) for state management (signals, state trees)
|
|
27
28
|
> - 🏂 [@e280/stz](https://github.com/e280/stz) ***(optional)*** stz is our ts standard library
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@e280/sly",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "web shadow views",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -13,12 +13,14 @@
|
|
|
13
13
|
"s"
|
|
14
14
|
],
|
|
15
15
|
"peerDependencies": {
|
|
16
|
-
"@e280/strata": "^0.1.0",
|
|
17
|
-
"@e280/stz": "^0.1.0",
|
|
18
16
|
"lit": "^3.3.1"
|
|
19
17
|
},
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"@e280/strata": "^0.1.0",
|
|
20
|
+
"@e280/stz": "^0.2.0-4"
|
|
21
|
+
},
|
|
20
22
|
"devDependencies": {
|
|
21
|
-
"@e280/science": "^0.1.
|
|
23
|
+
"@e280/science": "^0.1.1",
|
|
22
24
|
"@e280/scute": "^0.0.0",
|
|
23
25
|
"http-server": "^14.1.1",
|
|
24
26
|
"npm-run-all": "^4.1.5",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var
|
|
2
|
-
\f\r]`,
|
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),se=/'/g,oe=/"/g,ae=/^(?:script|style|textarea|title)$/i,Ut=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),v=Ut(1),Dr=Ut(2),Ir=Ut(3),P=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),ne=new WeakMap,C=k.createTreeWalker(k,129);function ce(r,t){if(!Mt(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return te!==void 0?te.createHTML(t):t}var le=(r,t)=>{let e=r.length-1,s=[],o,n=t===2?"<svg>":t===3?"<math>":"",i=F;for(let c=0;c<e;c++){let a=r[c],l,h,p=-1,y=0;for(;y<a.length&&(i.lastIndex=y,h=i.exec(a),h!==null);)y=i.lastIndex,i===F?h[1]==="!--"?i=ee:h[1]!==void 0?i=re:h[2]!==void 0?(ae.test(h[2])&&(o=RegExp("</"+h[2],"g")),i=B):h[3]!==void 0&&(i=B):i===B?h[0]===">"?(i=o??F,p=-1):h[1]===void 0?p=-2:(p=i.lastIndex-h[2].length,l=h[1],i=h[3]===void 0?B:h[3]==='"'?oe:se):i===oe||i===se?i=B:i===ee||i===re?i=F:(i=B,o=void 0);let A=i===B&&r[c+1].startsWith("/>")?" ":"";n+=i===F?a+Ie:p>=0?(s.push(l),a.slice(0,p)+Tt+a.slice(p)+_+A):a+_+(p===-2?c:A)}return[ce(r,n+(r[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]},Q=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,h]=le(t,e);if(this.el=r.createElement(l,s),C.currentNode=this.el.content,e===2||e===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(o=C.nextNode())!==null&&a.length<c;){if(o.nodeType===1){if(o.hasAttributes())for(let p of o.getAttributeNames())if(p.endsWith(Tt)){let y=h[i++],A=o.getAttribute(p).split(_),et=/([.?@])?(.*)/.exec(y);a.push({type:1,index:n,name:et[2],strings:A,ctor:et[1]==="."?ct:et[1]==="?"?lt:et[1]==="@"?ut:T}),o.removeAttribute(p)}else p.startsWith(_)&&(a.push({type:6,index:n}),o.removeAttribute(p));if(ae.test(o.tagName)){let p=o.textContent.split(_),y=p.length-1;if(y>0){o.textContent=it?it.emptyScript:"";for(let A=0;A<y;A++)o.append(p[A],Z()),C.nextNode(),a.push({type:2,index:++n});o.append(p[y],Z())}}}else if(o.nodeType===8)if(o.data===jt)a.push({type:2,index:n});else{let p=-1;for(;(p=o.data.indexOf(_,p+1))!==-1;)a.push({type:7,index:n}),p+=_.length-1}n++}}static createElement(t,e){let s=k.createElement("template");return s.innerHTML=t,s}};function O(r,t,e=r,s){if(t===P)return t;let o=s!==void 0?e._$Co?.[s]:e._$Cl,n=K(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=O(r,o._$AS(r,t.values),o,s)),t}var at=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??k).importNode(e,!0);C.currentNode=o;let n=C.nextNode(),i=0,c=0,a=s[0];for(;a!==void 0;){if(i===a.index){let l;a.type===2?l=new N(n,n.nextSibling,this,t):a.type===1?l=new a.ctor(n,a.name,a.strings,this,t):a.type===6&&(l=new pt(n,this,t)),this._$AV.push(l),a=s[++c]}i!==a?.index&&(n=C.nextNode(),i++)}return C.currentNode=k,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++}},N=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=O(this,t,e),K(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==P&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):ie(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&&K(this._$AH)?this._$AA.nextSibling.data=t:this.T(k.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=Q.createElement(ce(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===o)this._$AH.p(e);else{let n=new at(o,this),i=n.u(this.options);n.p(e),this.T(i),this._$AH=n}}_$AC(t){let e=ne.get(t.strings);return e===void 0&&ne.set(t.strings,e=new Q(t)),e}k(t){Mt(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(Z()),this.O(Z()),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))}},T=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=O(this,t,e,0),i=!K(t)||t!==this._$AH&&t!==P,i&&(this._$AH=t);else{let c=t,a,l;for(t=n[0],a=0;a<n.length-1;a++)l=O(this,c[s+a],e,a),l===P&&(l=this._$AH[a]),i||=!K(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??"")}},ct=class extends T{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}},lt=class extends T{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}},ut=class extends T{constructor(t,e,s,o,n){super(t,e,s,o,n),this.type=5}_$AI(t,e=this){if((t=O(this,t,e,0)??d)===P)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)}},pt=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){O(this,t)}},ue={M:Tt,P:_,A:jt,C:1,L:le,R:at,D:ie,V:O,I:N,H:T,N:lt,U:ut,B:ct,F:pt},Le=Ot.litHtmlPolyfillSupport;Le?.(Q,N),(Ot.litHtmlVersions??=[]).push("3.3.0");var S=(r,t,e)=>{let s=e?.renderBefore??t,o=s._$litPart$;if(o===void 0){let n=e?.renderBefore??null;s._$litPart$=o=new N(t.insertBefore(Z(),n),n,void 0,e??{})}return o._$AI(r),o};var Ht=globalThis,R=class extends w{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=S(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return P}};R._$litElement$=!0,R.finalized=!0,Ht.litElementHydrateSupport?.({LitElement:R});var Ve=Ht.litElementPolyfillSupport;Ve?.({LitElement:R});(Ht.litElementVersions??=[]).push("4.2.0");function pe(r){return r.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()}function ht(r,t={}){let{soft:e=!1,upgrade:s=!0}=t;for(let[o,n]of Object.entries(r)){let i=pe(o),c=customElements.get(i);e&&c||(customElements.define(i,n),s&&document.querySelectorAll(i).forEach(a=>{a.constructor===HTMLElement&&customElements.upgrade(a)}))}}function E(r,t=document){let e=t.querySelector(r);if(!e)throw new Error(`$1 ${r} not found`);return e}function qe(r,t=document){return Array.from(t.querySelectorAll(r))}E.maybe=(r,t=document)=>t.querySelector(r);E.all=qe;E.render=(r,...t)=>S(t,r);E.register=ht;var b=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 j=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(b.random(r))},string(r){return j.fromBytes(r)},bytes(r){return j.toBytes(r)}});var Nt=58,ft="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",Rt=Object.freeze({fromBytes(r){let t=BigInt("0x"+j.fromBytes(r)),e="";for(;t>0;){let s=t%BigInt(Nt);t=t/BigInt(Nt),e=ft[Number(s)]+e}for(let s of r)if(s===0)e=ft[0]+e;else break;return e},toBytes(r){let t=BigInt(0);for(let i of r){let c=ft.indexOf(i);if(c===-1)throw new Error(`Invalid character '${i}' in base58 string`);t=t*BigInt(Nt)+BigInt(c)}let e=t.toString(16);e.length%2!==0&&(e="0"+e);let s=j.toBytes(e),o=0;for(let i of r)if(i===ft[0])o++;else break;let n=new Uint8Array(o+s.length);return n.set(s,o),n},random(r=32){return this.fromBytes(b.random(r))},string(r){return Rt.fromBytes(r)},bytes(r){return Rt.toBytes(r)}});var he=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 h of t){if(h===this.lexicon.padding?.character)continue;let p=this.lookup[h];if(p===void 0)throw new Error(`Invalid character: ${h}`);for(c=c<<e|p,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 h=i>>c&(1<<e)-1;a+=this.lexicon.characters[h]}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(b.random(t))}};var zt=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(b.random(r))},string(r){return zt.fromBytes(r)},bytes(r){return zt.toBytes(r)}});var fe=Object.freeze({fromBytes(r){return new TextDecoder().decode(r)},toBytes(r){return new TextEncoder().encode(r)},string(r){return fe.fromBytes(r)},bytes(r){return fe.toBytes(r)}});function dt(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 Dt=Object.freeze({set:r=>r!=null,unset: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 J(){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 z=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 de=(r=0)=>new Promise(t=>setTimeout(t,r));function We(r){return{map:t=>me(r,t),filter:t=>ye(r,t)}}We.pipe=Object.freeze({map:r=>(t=>me(t,r)),filter:r=>(t=>ye(t,r))});var me=(r,t)=>Object.fromEntries(Object.entries(r).map(([e,s])=>[e,t(s,e)])),ye=(r,t)=>Object.fromEntries(Object.entries(r).filter(([e,s])=>t(s,e)));function ge(){let r=new Set;function t(n){return r.add(n),()=>{r.delete(n)}}async function e(...n){await Promise.all([...r].map(i=>i(...n)))}async function s(){let{promise:n,resolve:i}=J(),c=t((...a)=>{i(a),c()});return n}function o(){r.clear()}return t.pub=e,t.sub=t,t.on=t,t.next=s,t.clear=o,e.pub=e,e.sub=t,e.on=t,e.next=s,e.clear=o,[e,t]}function mt(r){let t=ge()[1];return r&&t.sub(r),t}function It(r){let t=ge()[0];return r&&t.sub(r),t}function yt(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 Lt=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=mt(),this.#e.set(t,e)),e}},g=globalThis[Symbol.for("e280.tracker")]??=new Lt;var{I:fn}=ue;var be=r=>r.strings===void 0;var xe={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},bt=r=>(...t)=>({_$litDirective$:r,values:t}),gt=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 G=(r,t)=>{let e=r._$AN;if(e===void 0)return!1;for(let s of e)s._$AO?.(t,!1),G(s,t);return!0},xt=r=>{let t,e;do{if((t=r._$AM)===void 0)break;e=t._$AN,e.delete(r),r=t}while(e?.size===0)},$e=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),Ke(t)}};function Fe(r){this._$AN!==void 0?(xt(this),this._$AM=r,$e(this)):this._$AM=r}function Ze(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++)G(s[n],!1),xt(s[n]);else s!=null&&(G(s,!1),xt(s));else G(this,r)}var Ke=r=>{r.type==xe.CHILD&&(r._$AP??=Ze,r._$AQ??=Fe)},$t=class extends gt{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),$e(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(G(this,t),xt(this))}setValue(t){if(be(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 we(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 wt(r,t){ot(r,Qe(t))}function Qe(r){let t=[];if(Array.isArray(r)){let e=new Set(r.flat(1/0).reverse());for(let s of e)t.unshift(H(s))}else r!==void 0&&t.push(H(r));return t}function Vt(r,t=r){let{seen:e,result:s}=g.observe(r),o=dt(0,t),n=[],i=()=>n.forEach(c=>c());for(let c of e){let a=g.subscribe(c,o);n.push(a)}return{result:s,dispose:i}}var Je={compare:(r,t)=>r===t};function D(r={}){return{...Je,...r}}var _t=class{sneak;constructor(t){this.sneak=t}get(){return g.notifyRead(this),this.sneak}get value(){return this.get()}},At=class extends _t{on=mt();dispose(){this.on.clear()}},Y=class extends At{_options;kind="signal";_lock=!1;constructor(t,e){super(t),this._options=e}async set(t){return!this._options.compare(this.sneak,t)&&await this.publish(t),t}get value(){return this.get()}set value(t){this.set(t)}async publish(t=this.get()){if(this._lock)throw new Error("forbid circularity");let e=Promise.resolve();try{this._lock=!0,this.sneak=t,e=Promise.all([g.notifyWrite(this),this.on.pub(t)])}finally{this._lock=!1}return await e,t}},X=class extends _t{_formula;_options;kind="lazy";_dirty=!1;_effect;constructor(t,e){super(void 0),this._formula=t,this._options=e}get(){if(!this._effect){let{result:t,dispose:e}=Vt(this._formula,()=>this._dirty=!0);this._effect=e,this.sneak=t}if(this._dirty){this._dirty=!1;let t=this._formula();!this._options.compare(this.sneak,t)&&(this.sneak=t,g.notifyWrite(this))}return super.get()}get value(){return this.get()}dispose(){this._effect&&this._effect()}},tt=class extends At{_effect;static make(t,e,s){let{result:o,dispose:n}=Vt(e,async()=>{let i=e();!s.compare(t.sneak,i)&&(t.sneak=i,await Promise.all([g.notifyWrite(t),t.on.pub(i)]))});return new this(o,n)}kind="derived";constructor(t,e){super(t),this._effect=e}get value(){return this.get()}dispose(){super.dispose(),this._effect()}};function _e(r,t={}){function e(){return e.value}let s=D(t),o=tt.make(e,r,s);return Object.setPrototypeOf(e,tt.prototype),Object.assign(e,o),e}function Ae(r,t={}){function e(){return e.value}let s=D(t),o=new X(r,s);return Object.setPrototypeOf(e,X.prototype),Object.assign(e,o),e}function I(r,t={}){function e(n){return n!==void 0?e.set(n):e.get()}let s=D(t),o=new Y(r,s);return Object.setPrototypeOf(e,Y.prototype),Object.assign(e,o),e}I.lazy=Ae;I.derive=_e;var M={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)=>M.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 U=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 fn(t){return this.promise(t())}static all(...t){let e=t.map(s=>s.pod);return M.all(...e)}signal;#t=0;#e=It();#r=It();constructor(t=["loading"]){this.signal=I(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(["loading"])}async setReady(t){await this.signal(["ready",t]),await this.#e(t)}async setError(t){await this.signal(["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 fn(t){return this.promise(t())}get pod(){return this.signal()}set pod(t){this.signal(t)}get status(){return this.signal()[0]}get value(){return M.value(this.signal())}get error(){return M.error(this.signal())}get isLoading(){return this.status==="loading"}get isReady(){return this.status==="ready"}get isError(){return this.status==="error"}require(){let t=this.signal();if(t[0]!=="ready")throw new Error("required value not ready");return t[1]}select(t){return M.select(this.signal(),t)}morph(t){return M.morph(this.pod,t)}};var vt=class{#t=[];#e=[];mount(t){this.#t.push(t),this.#e.push(t())}unmountAll(){for(let t of this.#e)t();this.#e=[]}remountAll(){for(let t of this.#t)this.#e.push(t())}};var ve=(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 Se(r,t){let e=new MutationObserver(t);return e.observe(r,{attributes:!0}),()=>e.disconnect()}var qt=Symbol(),Wt=Symbol(),Ft=Symbol(),St=class{element;shadow;renderNow;render;#t=0;#e=0;#r=new z;#s=J();#o=new vt;[qt](t){this.#t++,this.#e=0,this.#s=J();let e=t();return this.#s.resolve(),e}[Wt](){this.#o.unmountAll()}[Ft](){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(()=>wt(this.shadow,t))}css(...t){return this.styles(...t)}attrs(t){return this.mount(()=>Se(this.element,this.render)),this.once(()=>ve(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(()=>U.fn(s))}return e.fn=e,e.promise=s=>this.once(()=>U.promise(s)),e})();signal(t){return this.once(()=>I(t))}};var x=Ee({mode:"open"}),Zt=class extends HTMLElement{};ht({SlyView:Zt},{soft:!0,upgrade:!0});function Ee(r){function t(e){let s=i=>class extends $t{#t=i.getElement();#e=this.#t.attachShadow(r);#r=dt(0,()=>this.#i());#s=new z;#o;#n=new St(this.#t,this.#e,()=>this.#i(),this.#r);#a=(()=>{let a=e(this.#n);return this.#t.setAttribute("view",r.name??""),r.styles&&wt(this.#e,r.styles),a})();#i(){if(!this.#o||!this.isConnected)return;let{with:a,props:l}=this.#o;this.#n[qt](()=>{we(this.#t,a.attrs);let{result:h,seen:p}=g.observe(()=>this.#a(...l));S(h,this.#e);for(let y of p)this.#s.guarantee(y,()=>g.subscribe(y,async()=>this.#r()));i.isComponent||S(a.children,this.#t)})}render(a,l){return this.#o={with:a,props:l},this.#i(),i.isComponent?null:this.#t}disconnected(){this.#n[Wt]();for(let a of this.#s.values())a();this.#s.clear()}reconnected(){this.#n[Ft]()}},o=bt(s({getElement:()=>document.createElement(r.tag??"sly-view"),isComponent:!1}));function n(i){let c=(...a)=>o(i,a);return c.props=c,c.with=a=>n({...i,...a}),c.children=(...a)=>n({...i,children:a}),c.attrs=a=>n({...i,attrs:a}),c.attr=(a,l)=>n({...i,attrs:{...i.attrs,[a]:l}}),c.component=(...a)=>class extends HTMLElement{#t=bt(s({getElement:()=>this,isComponent:!0}));constructor(){super(),this.render(...a)}render(...l){this.isConnected&&S(this.#t(i,l),this)}},c}return n({attrs:{},children:null})}return t.view=t,t.settings=e=>Ee({...r,...e}),t.component=e=>t(s=>()=>e(s)).component(),t}var $=m`
|
|
1
|
+
var qt=Object.defineProperty;var Vt=(t,e)=>{for(var r in e)qt(t,r,{get:e[r],enumerable:!0})};var oe=globalThis,ne=oe.ShadowRoot&&(oe.ShadyCSS===void 0||oe.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Pe=Symbol(),tt=new WeakMap,W=class{constructor(e,r,s){if(this._$cssResult$=!0,s!==Pe)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o,r=this.t;if(ne&&e===void 0){let s=r!==void 0&&r.length===1;s&&(e=tt.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),s&&tt.set(r,e))}return e}toString(){return this.cssText}},rt=t=>new W(typeof t=="string"?t:t+"",void 0,Pe),y=(t,...e)=>{let r=t.length===1?t[0]:e.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)+t[n+1]),t[0]);return new W(r,t,Pe)},ie=(t,e)=>{if(ne)t.adoptedStyleSheets=e.map((r=>r instanceof CSSStyleSheet?r:r.styleSheet));else for(let r of e){let s=document.createElement("style"),o=oe.litNonce;o!==void 0&&s.setAttribute("nonce",o),s.textContent=r.cssText,t.appendChild(s)}},I=ne?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let s of e.cssRules)r+=s.cssText;return rt(r)})(t):t;var{is:Ft,defineProperty:Wt,getOwnPropertyDescriptor:Zt,getOwnPropertyNames:Kt,getOwnPropertySymbols:Qt,getPrototypeOf:Jt}=Object,ce=globalThis,st=ce.trustedTypes,Yt=st?st.emptyScript:"",Xt=ce.reactiveElementPolyfillSupport,Z=(t,e)=>t,je={toAttribute(t,e){switch(e){case Boolean:t=t?Yt:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},nt=(t,e)=>!Ft(t,e),ot={attribute:!0,type:String,converter:je,reflect:!1,useDefault:!1,hasChanged:nt};Symbol.metadata??=Symbol("metadata"),ce.litPropertyMetadata??=new WeakMap;var v=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,r=ot){if(r.state&&(r.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((r=Object.create(r)).wrapped=!0),this.elementProperties.set(e,r),!r.noAccessor){let s=Symbol(),o=this.getPropertyDescriptor(e,s,r);o!==void 0&&Wt(this.prototype,e,o)}}static getPropertyDescriptor(e,r,s){let{get:o,set:n}=Zt(this.prototype,e)??{get(){return this[r]},set(i){this[r]=i}};return{get:o,set(i){let a=o?.call(this);n?.call(this,i),this.requestUpdate(e,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??ot}static _$Ei(){if(this.hasOwnProperty(Z("elementProperties")))return;let e=Jt(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Z("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Z("properties"))){let r=this.properties,s=[...Kt(r),...Qt(r)];for(let o of s)this.createProperty(o,r[o])}let e=this[Symbol.metadata];if(e!==null){let r=litPropertyMetadata.get(e);if(r!==void 0)for(let[s,o]of r)this.elementProperties.set(s,o)}this._$Eh=new Map;for(let[r,s]of this.elementProperties){let o=this._$Eu(r,s);o!==void 0&&this._$Eh.set(o,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let s=new Set(e.flat(1/0).reverse());for(let o of s)r.unshift(I(o))}else e!==void 0&&r.push(I(e));return r}static _$Eu(e,r){let s=r.attribute;return s===!1?void 0:typeof s=="string"?s:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((e=>e(this)))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,r=this.constructor.elementProperties;for(let s of r.keys())this.hasOwnProperty(s)&&(e.set(s,this[s]),delete this[s]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return ie(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((e=>e.hostConnected?.()))}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach((e=>e.hostDisconnected?.()))}attributeChangedCallback(e,r,s){this._$AK(e,s)}_$ET(e,r){let s=this.constructor.elementProperties.get(e),o=this.constructor._$Eu(e,s);if(o!==void 0&&s.reflect===!0){let n=(s.converter?.toAttribute!==void 0?s.converter:je).toAttribute(r,s.type);this._$Em=e,n==null?this.removeAttribute(o):this.setAttribute(o,n),this._$Em=null}}_$AK(e,r){let s=this.constructor,o=s._$Eh.get(e);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:je;this._$Em=o,this[o]=i.fromAttribute(r,n.type)??this._$Ej?.get(o)??null,this._$Em=null}}requestUpdate(e,r,s){if(e!==void 0){let o=this.constructor,n=this[e];if(s??=o.getPropertyOptions(e),!((s.hasChanged??nt)(n,r)||s.useDefault&&s.reflect&&n===this._$Ej?.get(e)&&!this.hasAttribute(o._$Eu(e,s))))return;this.C(e,r,s)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,r,{useDefault:s,reflect:o,wrapped:n},i){s&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,i??r??this[e]),n!==!0||i!==void 0)||(this._$AL.has(e)||(this.hasUpdated||s||(r=void 0),this._$AL.set(e,r)),o===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[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,a=this[o];i!==!0||this._$AL.has(o)||a===void 0||this.C(o,void 0,n,a)}}let e=!1,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),this._$EO?.forEach((s=>s.hostUpdate?.())),this.update(r)):this._$EM()}catch(s){throw e=!1,this._$EM(),s}e&&this._$AE(r)}willUpdate(e){}_$AE(e){this._$EO?.forEach((r=>r.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach((r=>this._$ET(r,this[r]))),this._$EM()}updated(e){}firstUpdated(e){}};v.elementStyles=[],v.shadowRootOptions={mode:"open"},v[Z("elementProperties")]=new Map,v[Z("finalized")]=new Map,Xt?.({ReactiveElement:v}),(ce.reactiveElementVersions??=[]).push("2.1.0");var Te=globalThis,ae=Te.trustedTypes,it=ae?ae.createPolicy("lit-html",{createHTML:t=>t}):void 0,Me="$lit$",A=`lit$${Math.random().toFixed(9).slice(2)}$`,ze="?"+A,Gt=`<${ze}>`,P=document,Q=()=>P.createComment(""),J=t=>t===null||typeof t!="object"&&typeof t!="function",He=Array.isArray,ft=t=>He(t)||typeof t?.[Symbol.iterator]=="function",Oe=`[
|
|
2
|
+
\f\r]`,K=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ct=/-->/g,at=/>/g,C=RegExp(`>|${Oe}(?:([^\\s"'>=/]+)(${Oe}*=${Oe}*(?:[^
|
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),lt=/'/g,ut=/"/g,ht=/^(?:script|style|textarea|title)$/i,Ue=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),B=Ue(1),ts=Ue(2),rs=Ue(3),j=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),pt=new WeakMap,k=P.createTreeWalker(P,129);function dt(t,e){if(!He(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return it!==void 0?it.createHTML(e):e}var mt=(t,e)=>{let r=t.length-1,s=[],o,n=e===2?"<svg>":e===3?"<math>":"",i=K;for(let a=0;a<r;a++){let c=t[a],l,f,u=-1,m=0;for(;m<c.length&&(i.lastIndex=m,f=i.exec(c),f!==null);)m=i.lastIndex,i===K?f[1]==="!--"?i=ct:f[1]!==void 0?i=at:f[2]!==void 0?(ht.test(f[2])&&(o=RegExp("</"+f[2],"g")),i=C):f[3]!==void 0&&(i=C):i===C?f[0]===">"?(i=o??K,u=-1):f[1]===void 0?u=-2:(u=i.lastIndex-f[2].length,l=f[1],i=f[3]===void 0?C:f[3]==='"'?ut:lt):i===ut||i===lt?i=C:i===ct||i===at?i=K:(i=C,o=void 0);let _=i===C&&t[a+1].startsWith("/>")?" ":"";n+=i===K?c+Gt:u>=0?(s.push(l),c.slice(0,u)+Me+c.slice(u)+A+_):c+A+(u===-2?a:_)}return[dt(t,n+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),s]},Y=class t{constructor({strings:e,_$litType$:r},s){let o;this.parts=[];let n=0,i=0,a=e.length-1,c=this.parts,[l,f]=mt(e,r);if(this.el=t.createElement(l,s),k.currentNode=this.el.content,r===2||r===3){let u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(o=k.nextNode())!==null&&c.length<a;){if(o.nodeType===1){if(o.hasAttributes())for(let u of o.getAttributeNames())if(u.endsWith(Me)){let m=f[i++],_=o.getAttribute(u).split(A),se=/([.?@])?(.*)/.exec(m);c.push({type:1,index:n,name:se[2],strings:_,ctor:se[1]==="."?ue:se[1]==="?"?pe:se[1]==="@"?fe:T}),o.removeAttribute(u)}else u.startsWith(A)&&(c.push({type:6,index:n}),o.removeAttribute(u));if(ht.test(o.tagName)){let u=o.textContent.split(A),m=u.length-1;if(m>0){o.textContent=ae?ae.emptyScript:"";for(let _=0;_<m;_++)o.append(u[_],Q()),k.nextNode(),c.push({type:2,index:++n});o.append(u[m],Q())}}}else if(o.nodeType===8)if(o.data===ze)c.push({type:2,index:n});else{let u=-1;for(;(u=o.data.indexOf(A,u+1))!==-1;)c.push({type:7,index:n}),u+=A.length-1}n++}}static createElement(e,r){let s=P.createElement("template");return s.innerHTML=e,s}};function O(t,e,r=t,s){if(e===j)return e;let o=s!==void 0?r._$Co?.[s]:r._$Cl,n=J(e)?void 0:e._$litDirective$;return o?.constructor!==n&&(o?._$AO?.(!1),n===void 0?o=void 0:(o=new n(t),o._$AT(t,r,s)),s!==void 0?(r._$Co??=[])[s]=o:r._$Cl=o),o!==void 0&&(e=O(t,o._$AS(t,e.values),o,s)),e}var le=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:s}=this._$AD,o=(e?.creationScope??P).importNode(r,!0);k.currentNode=o;let n=k.nextNode(),i=0,a=0,c=s[0];for(;c!==void 0;){if(i===c.index){let l;c.type===2?l=new N(n,n.nextSibling,this,e):c.type===1?l=new c.ctor(n,c.name,c.strings,this,e):c.type===6&&(l=new he(n,this,e)),this._$AV.push(l),c=s[++a]}i!==c?.index&&(n=k.nextNode(),i++)}return k.currentNode=P,o}p(e){let r=0;for(let s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(e,s,r),r+=s.strings.length-2):s._$AI(e[r])),r++}},N=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,s,o){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=s,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=O(this,e,r),J(e)?e===d||e==null||e===""?(this._$AH!==d&&this._$AR(),this._$AH=d):e!==this._$AH&&e!==j&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):ft(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==d&&J(this._$AH)?this._$AA.nextSibling.data=e:this.T(P.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:s}=e,o=typeof s=="number"?this._$AC(e):(s.el===void 0&&(s.el=Y.createElement(dt(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===o)this._$AH.p(r);else{let n=new le(o,this),i=n.u(this.options);n.p(r),this.T(i),this._$AH=n}}_$AC(e){let r=pt.get(e.strings);return r===void 0&&pt.set(e.strings,r=new Y(e)),r}k(e){He(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,s,o=0;for(let n of e)o===r.length?r.push(s=new t(this.O(Q()),this.O(Q()),this,this.options)):s=r[o],s._$AI(n),o++;o<r.length&&(this._$AR(s&&s._$AB.nextSibling,o),r.length=o)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e&&e!==this._$AB;){let s=e.nextSibling;e.remove(),e=s}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},T=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,s,o,n){this.type=1,this._$AH=d,this._$AN=void 0,this.element=e,this.name=r,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(e,r=this,s,o){let n=this.strings,i=!1;if(n===void 0)e=O(this,e,r,0),i=!J(e)||e!==this._$AH&&e!==j,i&&(this._$AH=e);else{let a=e,c,l;for(e=n[0],c=0;c<n.length-1;c++)l=O(this,a[s+c],r,c),l===j&&(l=this._$AH[c]),i||=!J(l)||l!==this._$AH[c],l===d?e=d:e!==d&&(e+=(l??"")+n[c+1]),this._$AH[c]=l}i&&!o&&this.j(e)}j(e){e===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},ue=class extends T{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===d?void 0:e}},pe=class extends T{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==d)}},fe=class extends T{constructor(e,r,s,o,n){super(e,r,s,o,n),this.type=5}_$AI(e,r=this){if((e=O(this,e,r,0)??d)===j)return;let s=this._$AH,o=e===d&&s!==d||e.capture!==s.capture||e.once!==s.once||e.passive!==s.passive,n=e!==d&&(s===d||o);o&&this.element.removeEventListener(this.name,this,s),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},he=class{constructor(e,r,s){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(e){O(this,e)}},yt={M:Me,P:A,A:ze,C:1,L:mt,R:le,D:ft,V:O,I:N,H:T,N:pe,U:fe,B:ue,F:he},er=Te.litHtmlPolyfillSupport;er?.(Y,N),(Te.litHtmlVersions??=[]).push("3.3.0");var S=(t,e,r)=>{let s=r?.renderBefore??e,o=s._$litPart$;if(o===void 0){let n=r?.renderBefore??null;s._$litPart$=o=new N(e.insertBefore(Q(),n),n,void 0,r??{})}return o._$AI(t),o};var Ie=globalThis,D=class extends v{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=S(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return j}};D._$litElement$=!0,D.finalized=!0,Ie.litElementHydrateSupport?.({LitElement:D});var tr=Ie.litElementPolyfillSupport;tr?.({LitElement:D});(Ie.litElementVersions??=[]).push("4.2.0");function gt(t){return t.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()}function de(t,e={}){let{soft:r=!1,upgrade:s=!0}=e;for(let[o,n]of Object.entries(t)){let i=gt(o),a=customElements.get(i);r&&a||(customElements.define(i,n),s&&document.querySelectorAll(i).forEach(c=>{c.constructor===HTMLElement&&customElements.upgrade(c)}))}}function E(t,e=document){let r=e.querySelector(t);if(!r)throw new Error(`$1 ${t} not found`);return r}function rr(t,e=document){return Array.from(e.querySelectorAll(t))}E.maybe=(t,e=document)=>e.querySelector(t);E.all=rr;E.render=(t,...e)=>S(e,t);E.register=de;var b=Object.freeze({eq(t,e){if(t.length!==e.length)return!1;for(let r=0;r<=t.length;r++)if(t.at(r)!==e.at(r))return!1;return!0},random(t){return crypto.getRandomValues(new Uint8Array(t))}});var M=Object.freeze({fromBytes(t){return[...t].map(e=>e.toString(16).padStart(2,"0")).join("")},toBytes(t){if(t.length%2!==0)throw new Error("must have even number of hex characters");let e=new Uint8Array(t.length/2);for(let r=0;r<t.length;r+=2)e[r/2]=parseInt(t.slice(r,r+2),16);return e},random(t=32){return this.fromBytes(b.random(t))},string(t){return M.fromBytes(t)},bytes(t){return M.toBytes(t)}});var Ne=58,me="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",De=Object.freeze({fromBytes(t){let e=BigInt("0x"+M.fromBytes(t)),r="";for(;e>0;){let s=e%BigInt(Ne);e=e/BigInt(Ne),r=me[Number(s)]+r}for(let s of t)if(s===0)r=me[0]+r;else break;return r},toBytes(t){let e=BigInt(0);for(let i of t){let a=me.indexOf(i);if(a===-1)throw new Error(`Invalid character '${i}' in base58 string`);e=e*BigInt(Ne)+BigInt(a)}let r=e.toString(16);r.length%2!==0&&(r="0"+r);let s=M.toBytes(r),o=0;for(let i of t)if(i===me[0])o++;else break;let n=new Uint8Array(o+s.length);return n.set(s,o),n},random(t=32){return this.fromBytes(b.random(t))},string(t){return De.fromBytes(t)},bytes(t){return De.toBytes(t)}});var bt=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(e){this.lexicon=e,this.lookup=Object.fromEntries([...e.characters].map((r,s)=>[r,s])),this.negativePrefix=e.negativePrefix??"-"}toBytes(e){let r=Math.log2(this.lexicon.characters.length);if(Number.isInteger(r)){let a=0,c=0,l=[];for(let f of e){if(f===this.lexicon.padding?.character)continue;let u=this.lookup[f];if(u===void 0)throw new Error(`Invalid character: ${f}`);for(a=a<<r|u,c+=r;c>=8;)c-=8,l.push(a>>c&255)}return new Uint8Array(l)}let s=0n,o=BigInt(this.lexicon.characters.length),n=!1;e.startsWith(this.negativePrefix)&&(e=e.slice(this.negativePrefix.length),n=!0);for(let a of e){let c=this.lookup[a];if(c===void 0)throw new Error(`Invalid character: ${a}`);s=s*o+BigInt(c)}let i=[];for(;s>0n;)i.unshift(Number(s%256n)),s=s/256n;return new Uint8Array(i)}fromBytes(e){let r=Math.log2(this.lexicon.characters.length);if(Number.isInteger(r)){let i=0,a=0,c="";for(let l of e)for(i=i<<8|l,a+=8;a>=r;){a-=r;let f=i>>a&(1<<r)-1;c+=this.lexicon.characters[f]}if(a>0){let l=i<<r-a&(1<<r)-1;c+=this.lexicon.characters[l]}if(this.lexicon.padding)for(;c.length%this.lexicon.padding.size!==0;)c+=this.lexicon.padding.character;return c}let s=0n;for(let i of e)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(e){if(!e)return 0;let r=0n,s=!1,o=BigInt(this.lexicon.characters.length);e.startsWith(this.negativePrefix)&&(e=e.slice(this.negativePrefix.length),s=!0);for(let n of e){let i=this.lookup[n];if(i===void 0)throw new Error(`Invalid character: ${n}`);r=r*o+BigInt(i)}return Number(s?-r:r)}fromInteger(e){e=Math.floor(e);let r=e<0,s=BigInt(r?-e:e);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 r?`${this.negativePrefix}${n}`:n}random(e=32){return this.fromBytes(b.random(e))}};var Re=Object.freeze({fromBytes(t){return typeof btoa=="function"?btoa(String.fromCharCode(...t)):Buffer.from(t).toString("base64")},toBytes(t){return typeof atob=="function"?Uint8Array.from(atob(t),e=>e.charCodeAt(0)):Uint8Array.from(Buffer.from(t,"base64"))},random(t=32){return this.fromBytes(b.random(t))},string(t){return Re.fromBytes(t)},bytes(t){return Re.toBytes(t)}});var xt=Object.freeze({fromBytes(t){return new TextDecoder().decode(t)},toBytes(t){return new TextEncoder().encode(t)},string(t){return xt.fromBytes(t)},bytes(t){return xt.toBytes(t)}});function wt(t,e){let r,s,o=[];function n(){r=[],s&&clearTimeout(s),s=void 0,o=[]}return n(),((...i)=>{r=i,s&&clearTimeout(s);let a=new Promise((c,l)=>{o.push({resolve:c,reject:l})});return s=setTimeout(()=>{Promise.resolve().then(()=>e(...r)).then(c=>{for(let{resolve:l}of o)l(c);n()}).catch(c=>{for(let{reject:l}of o)l(c);n()})},t),a})}var Le=Object.freeze({happy:t=>t!=null,sad:t=>t==null,boolean:t=>typeof t=="boolean",number:t=>typeof t=="number",string:t=>typeof t=="string",bigint:t=>typeof t=="bigint",object:t=>typeof t=="object"&&t!==null,array:t=>Array.isArray(t),fn:t=>typeof t=="function",symbol:t=>typeof t=="symbol"});function X(){let t,e,r=new Promise((o,n)=>{t=o,e=n});function s(o){return o.then(t).catch(e),r}return{promise:r,resolve:t,reject:e,entangle:s}}var R=class t extends Map{static require(e,r){if(e.has(r))return e.get(r);throw new Error(`required key not found: "${r}"`)}static guarantee(e,r,s){if(e.has(r))return e.get(r);{let o=s();return e.set(r,o),o}}array(){return[...this]}require(e){return t.require(this,e)}guarantee(e,r){return t.guarantee(this,e,r)}};var $t=(t=0)=>new Promise(e=>setTimeout(e,t));function sr(t){return{map:e=>vt(t,e),filter:e=>At(t,e)}}sr.pipe=Object.freeze({map:t=>(e=>vt(e,t)),filter:t=>(e=>At(e,t))});var vt=(t,e)=>Object.fromEntries(Object.entries(t).map(([r,s])=>[r,e(s,r)])),At=(t,e)=>Object.fromEntries(Object.entries(t).filter(([r,s])=>e(s,r)));function or(){let t=new Set;async function e(...c){await Promise.all([...t].map(l=>l(...c)))}function r(c){return t.add(c),()=>{t.delete(c)}}async function s(...c){return e(...c)}function o(c){return r(c)}async function n(c){let{promise:l,resolve:f}=X(),u=o(async(...m)=>{c&&await c(...m),f(m),u()});return l}function i(){t.clear()}let a={pub:s,sub:o,publish:e,subscribe:r,on:r,next:n,clear:i};return Object.assign(o,a),Object.assign(s,a),a}function qe(t){let e=or();return t&&e.sub(t),e.pub}function ye(t){let e,r=!1,s=()=>{r=!0,clearTimeout(e)},o=async()=>{r||(await t(s),!r&&(e=setTimeout(o,0)))};return o(),s}var x=Object.freeze({eq(t,e){if(t.length!==e.length)return!1;for(let r=0;r<=t.length;r++)if(t.at(r)!==e.at(r))return!1;return!0},random(t){return crypto.getRandomValues(new Uint8Array(t))}});var z=Object.freeze({fromBytes(t){return[...t].map(e=>e.toString(16).padStart(2,"0")).join("")},toBytes(t){if(t.length%2!==0)throw new Error("must have even number of hex characters");let e=new Uint8Array(t.length/2);for(let r=0;r<t.length;r+=2)e[r/2]=parseInt(t.slice(r,r+2),16);return e},random(t=32){return this.fromBytes(x.random(t))},string(t){return z.fromBytes(t)},bytes(t){return z.toBytes(t)}});var Ve=58,ge="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",Fe=Object.freeze({fromBytes(t){let e=BigInt("0x"+z.fromBytes(t)),r="";for(;e>0;){let s=e%BigInt(Ve);e=e/BigInt(Ve),r=ge[Number(s)]+r}for(let s of t)if(s===0)r=ge[0]+r;else break;return r},toBytes(t){let e=BigInt(0);for(let i of t){let a=ge.indexOf(i);if(a===-1)throw new Error(`Invalid character '${i}' in base58 string`);e=e*BigInt(Ve)+BigInt(a)}let r=e.toString(16);r.length%2!==0&&(r="0"+r);let s=z.toBytes(r),o=0;for(let i of t)if(i===ge[0])o++;else break;let n=new Uint8Array(o+s.length);return n.set(s,o),n},random(t=32){return this.fromBytes(x.random(t))},string(t){return Fe.fromBytes(t)},bytes(t){return Fe.toBytes(t)}});var _t=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(e){this.lexicon=e,this.lookup=Object.fromEntries([...e.characters].map((r,s)=>[r,s])),this.negativePrefix=e.negativePrefix??"-"}toBytes(e){let r=Math.log2(this.lexicon.characters.length);if(Number.isInteger(r)){let a=0,c=0,l=[];for(let f of e){if(f===this.lexicon.padding?.character)continue;let u=this.lookup[f];if(u===void 0)throw new Error(`Invalid character: ${f}`);for(a=a<<r|u,c+=r;c>=8;)c-=8,l.push(a>>c&255)}return new Uint8Array(l)}let s=0n,o=BigInt(this.lexicon.characters.length),n=!1;e.startsWith(this.negativePrefix)&&(e=e.slice(this.negativePrefix.length),n=!0);for(let a of e){let c=this.lookup[a];if(c===void 0)throw new Error(`Invalid character: ${a}`);s=s*o+BigInt(c)}let i=[];for(;s>0n;)i.unshift(Number(s%256n)),s=s/256n;return new Uint8Array(i)}fromBytes(e){let r=Math.log2(this.lexicon.characters.length);if(Number.isInteger(r)){let i=0,a=0,c="";for(let l of e)for(i=i<<8|l,a+=8;a>=r;){a-=r;let f=i>>a&(1<<r)-1;c+=this.lexicon.characters[f]}if(a>0){let l=i<<r-a&(1<<r)-1;c+=this.lexicon.characters[l]}if(this.lexicon.padding)for(;c.length%this.lexicon.padding.size!==0;)c+=this.lexicon.padding.character;return c}let s=0n;for(let i of e)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(e){if(!e)return 0;let r=0n,s=!1,o=BigInt(this.lexicon.characters.length);e.startsWith(this.negativePrefix)&&(e=e.slice(this.negativePrefix.length),s=!0);for(let n of e){let i=this.lookup[n];if(i===void 0)throw new Error(`Invalid character: ${n}`);r=r*o+BigInt(i)}return Number(s?-r:r)}fromInteger(e){e=Math.floor(e);let r=e<0,s=BigInt(r?-e:e);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 r?`${this.negativePrefix}${n}`:n}random(e=32){return this.fromBytes(x.random(e))}};var We=Object.freeze({fromBytes(t){return typeof btoa=="function"?btoa(String.fromCharCode(...t)):Buffer.from(t).toString("base64")},toBytes(t){return typeof atob=="function"?Uint8Array.from(atob(t),e=>e.charCodeAt(0)):Uint8Array.from(Buffer.from(t,"base64"))},random(t=32){return this.fromBytes(x.random(t))},string(t){return We.fromBytes(t)},bytes(t){return We.toBytes(t)}});var Bt=Object.freeze({fromBytes(t){return new TextDecoder().decode(t)},toBytes(t){return new TextEncoder().encode(t)},string(t){return Bt.fromBytes(t)},bytes(t){return Bt.toBytes(t)}});function St(t,e){let r,s,o=[];function n(){r=[],s&&clearTimeout(s),s=void 0,o=[]}return n(),((...i)=>{r=i,s&&clearTimeout(s);let a=new Promise((c,l)=>{o.push({resolve:c,reject:l})});return s=setTimeout(()=>{Promise.resolve().then(()=>e(...r)).then(c=>{for(let{resolve:l}of o)l(c);n()}).catch(c=>{for(let{reject:l}of o)l(c);n()})},t),a})}var Ze=Object.freeze({set:t=>t!=null,unset:t=>t==null,boolean:t=>typeof t=="boolean",number:t=>typeof t=="number",string:t=>typeof t=="string",bigint:t=>typeof t=="bigint",object:t=>typeof t=="object"&&t!==null,array:t=>Array.isArray(t),fn:t=>typeof t=="function",symbol:t=>typeof t=="symbol"});function Et(){let t,e,r=new Promise((o,n)=>{t=o,e=n});function s(o){return o.then(t).catch(e),r}return{promise:r,resolve:t,reject:e,entangle:s}}function nr(t){return{map:e=>Ct(t,e),filter:e=>kt(t,e)}}nr.pipe=Object.freeze({map:t=>(e=>Ct(e,t)),filter:t=>(e=>kt(e,t))});var Ct=(t,e)=>Object.fromEntries(Object.entries(t).map(([r,s])=>[r,e(s,r)])),kt=(t,e)=>Object.fromEntries(Object.entries(t).filter(([r,s])=>e(s,r)));function ir(){let t=new Set;function e(n){return t.add(n),()=>{t.delete(n)}}async function r(...n){await Promise.all([...t].map(i=>i(...n)))}async function s(){let{promise:n,resolve:i}=Et(),a=e((...c)=>{i(c),a()});return n}function o(){t.clear()}return e.pub=r,e.sub=e,e.on=e,e.next=s,e.clear=o,r.pub=r,r.sub=e,r.on=e,r.next=s,r.clear=o,[r,e]}function be(t){let e=ir()[1];return t&&e.sub(t),e}var Ke=class{#e=[];#t=new WeakMap;#r=[];#s=new Set;notifyRead(e){this.#e.at(-1)?.add(e)}async notifyWrite(e){if(this.#s.has(e))throw new Error("circularity forbidden");let r=this.#o(e).pub();return this.#r.at(-1)?.add(r),r}observe(e){this.#e.push(new Set);let r=e();return{seen:this.#e.pop(),result:r}}subscribe(e,r){return this.#o(e)(async()=>{let s=new Set;this.#r.push(s),this.#s.add(e),s.add(r()),this.#s.delete(e),await Promise.all(s),this.#r.pop()})}#o(e){let r=this.#t.get(e);return r||(r=be(),this.#t.set(e,r)),r}},g=globalThis[Symbol.for("e280.tracker")]??=new Ke;var{I:Oc}=yt;var Pt=t=>t.strings===void 0;var jt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},we=t=>(...e)=>({_$litDirective$:t,values:e}),xe=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,s){this._$Ct=e,this._$AM=r,this._$Ci=s}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}};var G=(t,e)=>{let r=t._$AN;if(r===void 0)return!1;for(let s of r)s._$AO?.(e,!1),G(s,e);return!0},$e=t=>{let e,r;do{if((e=t._$AM)===void 0)break;r=e._$AN,r.delete(t),t=e}while(r?.size===0)},Ot=t=>{for(let e;e=t._$AM;t=e){let r=e._$AN;if(r===void 0)e._$AN=r=new Set;else if(r.has(t))break;r.add(t),lr(e)}};function cr(t){this._$AN!==void 0?($e(this),this._$AM=t,Ot(this)):this._$AM=t}function ar(t,e=!1,r=0){let s=this._$AH,o=this._$AN;if(o!==void 0&&o.size!==0)if(e)if(Array.isArray(s))for(let n=r;n<s.length;n++)G(s[n],!1),$e(s[n]);else s!=null&&(G(s,!1),$e(s));else G(this,t)}var lr=t=>{t.type==jt.CHILD&&(t._$AP??=ar,t._$AQ??=cr)},ve=class extends xe{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,r,s){super._$AT(e,r,s),Ot(this),this.isConnected=e._$AU}_$AO(e,r=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),r&&(G(this,e),$e(this))}setValue(e){if(Pt(this._$Ct))this._$Ct._$AI(e,this);else{let r=[...this._$Ct._$AH];r[this._$Ci]=e,this._$Ct._$AI(r,this,0)}}disconnected(){}reconnected(){}};function Tt(t,e){for(let[r,s]of Object.entries(e))s===void 0||s===null?t.removeAttribute(r):typeof s=="string"?t.setAttribute(r,s):typeof s=="number"?t.setAttribute(r,s.toString()):typeof s=="boolean"?s===!0?t.setAttribute(r,""):t.removeAttribute(r):console.warn(`invalid attribute type ${r} is ${typeof s}`)}function Ae(t,e){ie(t,ur(e))}function ur(t){let e=[];if(Array.isArray(t)){let r=new Set(t.flat(1/0).reverse());for(let s of r)e.unshift(I(s))}else t!==void 0&&e.push(I(t));return e}function Qe(t,e=t){let{seen:r,result:s}=g.observe(t),o=St(0,e),n=[],i=()=>n.forEach(a=>a());for(let a of r){let c=g.subscribe(a,o);n.push(c)}return{result:s,dispose:i}}var pr={compare:(t,e)=>t===e};function L(t={}){return{...pr,...t}}var _e=class{sneak;constructor(e){this.sneak=e}get(){return g.notifyRead(this),this.sneak}get value(){return this.get()}},Be=class extends _e{on=be();dispose(){this.on.clear()}},ee=class extends Be{_options;kind="signal";_lock=!1;constructor(e,r){super(e),this._options=r}async set(e){return!this._options.compare(this.sneak,e)&&await this.publish(e),e}get value(){return this.get()}set value(e){this.set(e)}async publish(e=this.get()){if(this._lock)throw new Error("forbid circularity");let r=Promise.resolve();try{this._lock=!0,this.sneak=e,r=Promise.all([g.notifyWrite(this),this.on.pub(e)])}finally{this._lock=!1}return await r,e}},te=class extends _e{_formula;_options;kind="lazy";_dirty=!1;_effect;constructor(e,r){super(void 0),this._formula=e,this._options=r}get(){if(!this._effect){let{result:e,dispose:r}=Qe(this._formula,()=>this._dirty=!0);this._effect=r,this.sneak=e}if(this._dirty){this._dirty=!1;let e=this._formula();!this._options.compare(this.sneak,e)&&(this.sneak=e,g.notifyWrite(this))}return super.get()}get value(){return this.get()}dispose(){this._effect&&this._effect()}},re=class extends Be{_effect;static make(e,r,s){let{result:o,dispose:n}=Qe(r,async()=>{let i=r();!s.compare(e.sneak,i)&&(e.sneak=i,await Promise.all([g.notifyWrite(e),e.on.pub(i)]))});return new this(o,n)}kind="derived";constructor(e,r){super(e),this._effect=r}get value(){return this.get()}dispose(){super.dispose(),this._effect()}};function Mt(t,e={}){function r(){return r.value}let s=L(e),o=re.make(r,t,s);return Object.setPrototypeOf(r,re.prototype),Object.assign(r,o),r}function zt(t,e={}){function r(){return r.value}let s=L(e),o=new te(t,s);return Object.setPrototypeOf(r,te.prototype),Object.assign(r,o),r}function q(t,e={}){function r(n){return n!==void 0?r.set(n):r.get()}let s=L(e),o=new ee(t,s);return Object.setPrototypeOf(r,ee.prototype),Object.assign(r,o),r}q.lazy=zt;q.derive=Mt;var H={status:t=>t[0],value:t=>t[0]==="ready"?t[1]:void 0,error:t=>t[0]==="error"?t[1]:void 0,select:(t,e)=>{switch(t[0]){case"loading":return e.loading();case"error":return e.error(t[1]);case"ready":return e.ready(t[1]);default:throw new Error("unknown op status")}},morph:(t,e)=>H.select(t,{loading:()=>["loading"],error:r=>["error",r],ready:r=>["ready",e(r)]}),all:(...t)=>{let e=[],r=[],s=0;for(let o of t)switch(o[0]){case"loading":s++;break;case"ready":e.push(o[1]);break;case"error":r.push(o[1]);break}return r.length>0?["error",r]:s===0?["ready",e]:["loading"]}};var U=class{static loading(){return new this}static ready(e){return new this(["ready",e])}static error(e){return new this(["error",e])}static promise(e){let r=new this;return r.promise(e),r}static fn(e){return this.promise(e())}static all(...e){let r=e.map(s=>s.pod);return H.all(...r)}signal;#e=0;#t=qe();#r=qe();constructor(e=["loading"]){this.signal=q(e)}get wait(){return new Promise((e,r)=>{this.#t.next().then(([s])=>e(s)),this.#r.next().then(([s])=>r(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(["loading"])}async setReady(e){await this.signal(["ready",e]),await this.#t(e)}async setError(e){await this.signal(["error",e]),await this.#r(e)}async promise(e){let r=++this.#e;await this.setLoading();try{let s=await e;return r===this.#e&&await this.setReady(s),s}catch(s){r===this.#e&&await this.setError(s)}}async fn(e){return this.promise(e())}get pod(){return this.signal()}set pod(e){this.signal(e)}get status(){return this.signal()[0]}get value(){return H.value(this.signal())}get error(){return H.error(this.signal())}get isLoading(){return this.status==="loading"}get isReady(){return this.status==="ready"}get isError(){return this.status==="error"}require(){let e=this.signal();if(e[0]!=="ready")throw new Error("required value not ready");return e[1]}select(e){return H.select(this.signal(),e)}morph(e){return H.morph(this.pod,e)}};var Se=class{#e=[];#t=[];mount(e){this.#e.push(e),this.#t.push(e())}unmountAll(){for(let e of this.#t)e();this.#t=[]}remountAll(){for(let e of this.#e)this.#t.push(e())}};var Ht=(t,e)=>new Proxy(e,{get:(r,s)=>{let o=e[s],n=t.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:(r,s,o)=>{switch(e[s]){case String:return t.setAttribute(s,o),!0;case Number:return t.setAttribute(s,o.toString()),!0;case Boolean:return o?t.setAttribute(s,""):t.removeAttribute(s),!0;default:throw new Error(`invalid attribute type for "${s}"`)}}});function Ut(t,e){let r=new MutationObserver(e);return r.observe(t,{attributes:!0}),()=>r.disconnect()}var Je=Symbol(),Ye=Symbol(),Xe=Symbol(),Ee=class{element;shadow;renderNow;render;#e=0;#t=0;#r=new R;#s=X();#o=new Se;[Je](e){this.#e++,this.#t=0,this.#s=X();let r=e();return this.#s.resolve(),r}[Ye](){this.#o.unmountAll()}[Xe](){this.#o.remountAll()}constructor(e,r,s,o){this.element=e,this.shadow=r,this.renderNow=s,this.render=o}get renderCount(){return this.#e}get rendered(){return this.#s.promise}name(e){this.once(()=>this.element.setAttribute("view",e))}styles(...e){this.once(()=>Ae(this.shadow,e))}css(...e){return this.styles(...e)}attrs(e){return this.mount(()=>Ut(this.element,this.render)),this.once(()=>Ht(this.element,e))}once(e){return this.#r.guarantee(this.#t++,e)}mount(e){return this.once(()=>this.#o.mount(e))}life(e){let r;return this.mount(()=>{let[s,o]=e();return r=s,o}),r}wake(e){return this.life(()=>[e(),()=>{}])}op=(()=>{let e=this;function r(s){return e.once(()=>U.fn(s))}return r.fn=r,r.promise=s=>this.once(()=>U.promise(s)),r})();signal(e){return this.once(()=>q(e))}};var w=It({mode:"open"}),Ge=class extends HTMLElement{};de({SlyView:Ge},{soft:!0,upgrade:!0});function It(t){function e(r){let s=i=>class extends ve{#e=i.getElement();#t=this.#e.attachShadow(t);#r=wt(0,()=>this.#i());#s=new R;#o;#n=new Ee(this.#e,this.#t,()=>this.#i(),this.#r);#c=(()=>{let c=r(this.#n);return this.#e.setAttribute("view",t.name??""),t.styles&&Ae(this.#t,t.styles),c})();#i(){if(!this.#o||!this.isConnected)return;let{with:c,props:l}=this.#o;this.#n[Je](()=>{Tt(this.#e,c.attrs);let{result:f,seen:u}=g.observe(()=>this.#c(...l));S(f,this.#t);for(let m of u)this.#s.guarantee(m,()=>g.subscribe(m,async()=>this.#r()));i.isComponent||S(c.children,this.#e)})}render(c,l){return this.#o={with:c,props:l},this.#i(),i.isComponent?null:this.#e}disconnected(){this.#n[Ye]();for(let c of this.#s.values())c();this.#s.clear()}reconnected(){this.#n[Xe]()}},o=we(s({getElement:()=>document.createElement(t.tag??"sly-view"),isComponent:!1}));function n(i){let a=(...c)=>o(i,c);return a.props=a,a.with=c=>n({...i,...c}),a.children=(...c)=>n({...i,children:c}),a.attrs=c=>n({...i,attrs:c}),a.attr=(c,l)=>n({...i,attrs:{...i.attrs,[c]:l}}),a.component=(...c)=>class extends HTMLElement{#e=we(s({getElement:()=>this,isComponent:!0}));constructor(){super(),this.render(...c)}render(...l){this.isConnected&&S(this.#e(i,l),this)}},a}return n({attrs:{},children:null})}return e.view=e,e.settings=r=>It({...t,...r}),e.component=r=>e(s=>()=>r(s)).component(),e}var $=y`
|
|
4
4
|
@layer reset {
|
|
5
5
|
* {
|
|
6
6
|
margin: 0;
|
|
@@ -16,7 +16,7 @@ var Oe=Object.defineProperty;var Te=(r,t)=>{for(var e in t)Oe(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
|
|
19
|
+
`;var Ce=w(t=>e=>{t.name("counter"),t.styles($,fr);let r=t.once(()=>Date.now()),s=t.signal(0);t.mount(()=>ye(async()=>{let i=Date.now()-r;s(Math.floor(i/1e3))}));let o=t.signal(e),n=()=>o(o()+1);return B`
|
|
20
20
|
<slot></slot>
|
|
21
21
|
<div>
|
|
22
22
|
<span>${s()}</span>
|
|
@@ -25,7 +25,7 @@ var Oe=Object.defineProperty;var Te=(r,t)=>{for(var e in t)Oe(r,e,{get:t[e],enum
|
|
|
25
25
|
<span>${o()}</span>
|
|
26
26
|
<button @click="${n}">+</button>
|
|
27
27
|
</div>
|
|
28
|
-
`}),
|
|
28
|
+
`}),fr=y`
|
|
29
29
|
:host {
|
|
30
30
|
display: flex;
|
|
31
31
|
justify-content: center;
|
|
@@ -35,23 +35,23 @@ var Oe=Object.defineProperty;var Te=(r,t)=>{for(var e in t)Oe(r,e,{get:t[e],enum
|
|
|
35
35
|
button {
|
|
36
36
|
padding: 0.2em 0.5em;
|
|
37
37
|
}
|
|
38
|
-
`;var
|
|
38
|
+
`;var ke={};Vt(ke,{arrow:()=>yr,bar:()=>gr,bar2:()=>br,bar3:()=>xr,bar4:()=>wr,bin:()=>zr,binary:()=>Hr,binary2:()=>Ur,block:()=>$r,block2:()=>vr,brackets:()=>Er,brackets2:()=>Cr,braille:()=>et,bright:()=>Vr,clock:()=>Dr,cylon:()=>Br,dots:()=>kr,dots2:()=>Pr,earth:()=>Lr,fistbump:()=>Rr,kiss:()=>Nr,lock:()=>qr,moon:()=>Wr,pie:()=>_r,pulseblue:()=>Ir,runner:()=>Ar,slider:()=>Sr,speaker:()=>Fr,spinner:()=>mr,wave:()=>jr,wavepulse:()=>Tr,wavepulse2:()=>Mr,wavescrub:()=>Or});function p(t,e){return()=>hr({hz:t,frames:e})}var hr=w(t=>({hz:e,frames:r})=>{t.name("loading"),t.styles($,dr);let s=t.signal(0);return t.mount(()=>ye(async()=>{await $t(1e3/e);let o=s()+1;s(o>=r.length?0:o)})),r.at(s())}),dr=y`
|
|
39
39
|
:host {
|
|
40
40
|
font-family: monospace;
|
|
41
41
|
white-space: pre;
|
|
42
42
|
user-select: none;
|
|
43
43
|
}
|
|
44
|
-
`;var
|
|
44
|
+
`;var h=20,V=10,F=4,mr=p(h,["|","/","-","\\"]),et=p(h,["\u2808","\u2810","\u2820","\u2880","\u2840","\u2804","\u2802","\u2801"]),yr=p(h,["\u2B06\uFE0F","\u2197\uFE0F","\u27A1\uFE0F","\u2198\uFE0F","\u2B07\uFE0F","\u2199\uFE0F","\u2B05\uFE0F","\u2196\uFE0F"]),gr=p(h,["\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"]),br=p(h,["\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"]),xr=p(h,["\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"]),wr=p(h,["\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"]),$r=p(h,["\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"]),vr=p(h,["\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"]),Ar=p(F,["\u{1F6B6}","\u{1F3C3}"]),_r=p(V,["\u25F7","\u25F6","\u25F5","\u25F4"]),Br=p(h,["=----","-=---","--=--","---=-","----=","----=","---=-","--=--","-=---","=----"]),Sr=p(h,["o----","-o---","--o--","---o-","----o","----o","---o-","--o--","-o---","o----"]),Er=p(V,["[ ]","[ ]","[= ]","[== ]","[===]","[ ==]","[ =]"]),Cr=p(V,["[ ]","[ ]","[= ]","[== ]","[===]","[ ==]","[ =]","[ ]","[ ]","[ =]","[ ==]","[===]","[== ]","[= ]"]),kr=p(V,[" "," ",". ",".. ","..."," .."," ."]),Pr=p(h,[". ",". ",".. ","..."," .."," ."," ."," ..","...",".. "]),jr=p(h,[".....",".....",":....","::...",":::..","::::.",":::::",":::::",".::::","..:::","...::","....:"]),Or=p(h,[":....",":....","::...",".::..","..::.","...::","....:","....:","...::","..::.",".::..","::..."]),Tr=p(h,[".....",".....","..:..",".:::.",".:::.",":::::",":::::","::.::",":...:"]),Mr=p(h,[".....",".....","..:..",".:::.",".:::.",":::::",":::::","::.::",":...:",".....",".....",":...:","::.::",":::::",":::::",".:::.",".:::.","..:.."]),zr=p(h,["000","100","110","111","011","001"]),Hr=p(h,["11111","01111","00111","10011","11001","01100","00110","10011","11001","11100","11110"]),Ur=p(h,["11111","01111","10111","11011","11101","11110","11111","11110","11101","11011","10111","01111"]),Ir=p(F,["\u{1F539}","\u{1F535}"]),Nr=p(V,["\u{1F642}","\u{1F642}","\u{1F617}","\u{1F619}","\u{1F618}","\u{1F618}","\u{1F619}"]),Dr=p(h,["\u{1F550}","\u{1F551}","\u{1F552}","\u{1F553}","\u{1F554}","\u{1F555}","\u{1F556}","\u{1F557}","\u{1F558}","\u{1F559}","\u{1F55A}","\u{1F55B}"]),Rr=p(h,["\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}"]),Lr=p(F,["\u{1F30E}","\u{1F30F}","\u{1F30D}"]),qr=p(F,["\u{1F513}","\u{1F512}"]),Vr=p(F,["\u{1F505}","\u{1F506}"]),Fr=p(F,["\u{1F508}","\u{1F508}","\u{1F509}","\u{1F50A}","\u{1F50A}","\u{1F509}"]),Wr=p(V,["\u{1F311}","\u{1F311}","\u{1F311}","\u{1F318}","\u{1F317}","\u{1F316}","\u{1F315}","\u{1F314}","\u{1F313}","\u{1F312}"]);var Nt=w(t=>e=>(t.name("error"),t.styles($,Zr),typeof e=="string"?e:e instanceof Error?B`<strong>${e.name}:</strong> <span>${e.message}</span>`:"error")),Zr=y`
|
|
45
45
|
:host {
|
|
46
46
|
font-family: monospace;
|
|
47
47
|
color: red;
|
|
48
48
|
}
|
|
49
|
-
`;function
|
|
49
|
+
`;function Dt(t=et,e=r=>Nt(r)){return(r,s)=>r.select({loading:t,ready:s,error:e})}var Rt=w(t=>()=>{t.name("loaders"),t.styles($,Kr);let e=t.once(()=>U.loading());return t.once(()=>Object.entries(ke).map(([s,o])=>({key:s,loader:Dt(o)}))).map(({key:s,loader:o})=>B`
|
|
50
50
|
<div data-anim="${s}">
|
|
51
51
|
<span>${s}</span>
|
|
52
|
-
<span>${o(
|
|
52
|
+
<span>${o(e,()=>null)}</span>
|
|
53
53
|
</div>
|
|
54
|
-
`)}),
|
|
54
|
+
`)}),Kr=y`
|
|
55
55
|
:host {
|
|
56
56
|
display: flex;
|
|
57
57
|
flex-direction: row;
|
|
@@ -92,16 +92,16 @@ div {
|
|
|
92
92
|
min-height: 2.5em;
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
|
-
`;var
|
|
96
|
-
${
|
|
97
|
-
${
|
|
98
|
-
`)),
|
|
95
|
+
`;var Lt=w(t=>()=>(t.name("demo"),t.styles($,Qr),B`
|
|
96
|
+
${Ce.children("view")(2)}
|
|
97
|
+
${Rt()}
|
|
98
|
+
`)),Qr=y`
|
|
99
99
|
:host {
|
|
100
100
|
display: flex;
|
|
101
101
|
flex-direction: column;
|
|
102
102
|
gap: 1em;
|
|
103
103
|
}
|
|
104
|
-
`;E.render(E(".demo"),
|
|
104
|
+
`;E.render(E(".demo"),Lt());E.register({DemoCounter:Ce.component(1)});console.log("\u{1F99D} sly");
|
|
105
105
|
/*! Bundled license information:
|
|
106
106
|
|
|
107
107
|
@lit/reactive-element/css-tag.js:
|